????
| Current Path : /home2/morganrand/www/wp-content-bkp/themes/wanderfuls/partials/portfolio/ |
| Current File : /home2/morganrand/www/wp-content-bkp/themes/wanderfuls/partials/portfolio/portfolio-entry.php |
<?php
/**
* Main portfolio entry template part
*
* @package Wanderfuls WordPress theme
* @subpackage Partials
* @version 3.0.0
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Counter for clearing floats and margins
if ( ! isset( $tb_related_query ) ) {
global $tb_count;
$query = 'archive';
} else {
$query = 'related';
}
// Add Standard Classes
$classes = array();
$classes[] = 'portfolio-entry';
$classes[] = 'col';
$classes[] = tb_portfolio_column_class( $query );
$classes[] = 'col-'. $tb_count;
// Get grid style
$tb_grid_style = tb_get_mod( 'portfolio_archive_grid_style', 'fit-rows' );
// Masonry Classes
if ( 'archive' == $query && in_array( $tb_grid_style, array( 'masonry', 'no-margins' ) ) ) {
$classes[] = ' isotope-entry';
} ?>
<article id="#post-<?php the_ID(); ?>" <?php post_class( $classes ); ?>>
<?php get_template_part( 'partials/portfolio/portfolio-entry-media' ); ?>
<?php get_template_part( 'partials/portfolio/portfolio-entry-content' ); ?>
</article><!-- .portfolio-entry -->