Пример #1
0
 function wpex_get_portfolio_wrap_classes()
 {
     // Get grid style
     $grid_style = wpex_get_mod('portfolio_archive_grid_style') ? wpex_get_mod('portfolio_archive_grid_style') : 'fit-rows';
     // Add default classes
     $classes = array('wpex-row', 'clr');
     // Add grid style class
     $classes[] = 'portfolio-' . $grid_style;
     // Add equal height class
     $classes[] = wpex_portfolio_match_height() ? 'match-height-grid' : '';
     // Apply filters
     $classes = apply_filters('wpex_portfolio_wrap_classes', $classes);
     // Turn into string
     $classes = implode(" ", $classes);
     // Return classes
     return $classes;
 }
Пример #2
0
	<?php 
}
?>
	<h2 class="portfolio-entry-title">
		<a href="<?php 
the_permalink();
?>
" title="<?php 
echo esc_attr(the_title_attribute('echo=0'));
?>
"><?php 
the_title();
?>
</a>
	</h2>
	<div class="portfolio-entry-excerpt clr">
		<?php 
// Display excerpt
$args = array('length' => get_theme_mod('portfolio_entry_excerpt_length', '20'), 'readmore' => false);
wpex_excerpt($args);
?>
	</div>
	<?php 
// Close Match Height div
if (wpex_portfolio_match_height()) {
    ?>
	</div>
	<?php 
}
?>
</div><!-- .portfolio-entry-details -->