%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/qendrasteps/wp-content/themes/tm-heli/projects/
Upload File :
Create Path :
Current File : /var/www/html/qendrasteps/wp-content/themes/tm-heli/projects/content-project.php

<?php
/**
 * The template for displaying project content within loops.
 *
 * Override this template by copying it to yourtheme/projects/content-project.php
 *
 * @author 		WooThemes
 * @package 	Projects/Templates
 * @version     1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

global $project, $projects_loop;

// Store loop count we're currently on
if ( empty( $projects_loop['loop'] ) )
	$projects_loop['loop'] = 0;

// Store column count for displaying the grid
if ( empty( $projects_loop['columns'] ) )
	$projects_loop['columns'] = apply_filters( 'projects_loop_columns', 3 );

// Increase loop count
$projects_loop['loop']++;

// Extra post classes
$classes = array(
    'column-' . $projects_loop['columns']
);
if ( 0 == ( $projects_loop['loop'] - 1 ) % $projects_loop['columns'] || 1 == $projects_loop['columns'] )
	$classes[] = 'first';
if ( 0 == $projects_loop['loop'] % $projects_loop['columns'] )
	$classes[] = 'last';
?>
<li <?php post_class( $classes ); ?>>

	<?php do_action( 'projects_before_loop_item' ); ?>

    <a href="#" class="project-icon-zoom">
        <i class="pe-7s-search"></i>
    </a>

	<a href="<?php the_permalink(); ?>" class="project-permalink">

		<?php
			/**
			 * projects_loop_item hook
			 *
			 * @hooked projects_template_loop_project_thumbnail - 10
			 * @hooked projects_template_loop_project_title - 20
			 */
			do_action( 'projects_loop_item' );
		?>

	</a>

    <div class="project-loop-category-container">
        <?php
        $categories = get_the_terms( get_the_ID(), 'project-category' );

        if ( $categories ) {
            $category_html = array();

            foreach ($categories as $category ) {
                $category_html[] = '<a href="' . esc_url( get_term_link( $category->term_id ) ) . '">' . $category->name . '</a>';
            }

            echo implode( ', ', $category_html );
        }
        ?>
    </div>

	<?php
		/**
		 * projects_after_loop_item hook
		 *
		 * @hooked projects_template_short_description - 10
		 */
		do_action( 'projects_after_loop_item' );
	?>

</li>

Zerion Mini Shell 1.0