Example #1
0
/**
 * Print the classes to be added to the portfolio items container.
 *
 * @param integer $columns
 */
function thb_portfolio_classes($columns)
{
    echo thb_get_portfolio_classes($columns);
}
Example #2
0
<?php

if (!isset($args)) {
    $args = array();
}
if (!isset($params)) {
    $params = array();
}
$classes = '';
$data_attrs = array();
if (isset($params['carousel']) && $params['carousel'] == '1') {
    $classes .= ' thb-carousel';
    $data_attrs = thb_get_carousel_attributes($params);
} else {
    $classes .= ' ' . thb_get_portfolio_classes($columns, $gutter);
}
thb_portfolio_query($args);
?>

<?php 
if (have_posts()) {
    ?>

	<ul class="<?php 
    echo $classes;
    ?>
" <?php 
    thb_attributes($data_attrs);
    ?>
>
		<?php