Exemplo n.º 1
0
?>
">
	<?php 
if (!empty($sortable)) {
    include locate_template('templates/portfolio/loop/sortable-header.php');
}
?>
	<ul class="clearfix <?php 
echo $sortable;
?>
 portfolio-items" data-columns="<?php 
echo $column;
?>
">
		<?php 
while (have_posts()) {
    the_post();
    include locate_template('templates/portfolio/loop/item.php');
}
?>
	</ul>
	<?php 
if ($nopaging == 'false') {
    WpvTemplates::pagination($paging_preference);
}
?>
</section>
<?php 
if ($scrollable) {
    echo '</div>';
}
Exemplo n.º 2
0
        $post_class[] = $column > 1 || $news ? "grid-1-{$column}" : 'clearfix';
        if ($news && $i % $column == 0) {
            $post_class[] = 'clearboth';
        }
        if (!is_single()) {
            $post_class[] = 'list-item';
        }
        ?>
		<div <?php 
        post_class(implode(' ', $post_class));
        ?>
 >
			<div>
				<?php 
        get_template_part('templates/post', get_post_type());
        ?>
			</div>
		</div>
<?php 
        $i++;
    }
}
do_action('wpv_after_main_loop');
?>
</div>

<?php 
$wpv_loop_vars = $old_wpv_loop_vars;
if (!$nopaging) {
    WpvTemplates::pagination();
}
Exemplo n.º 3
0
<?php

if ($query->have_posts()) {
    ?>
	<div class="wpv-sermons-loop">
		<?php 
    while ($query->have_posts()) {
        $query->the_post();
        ?>
			<?php 
        get_template_part('templates/sermons/item');
        ?>
		<?php 
    }
    ?>
	</div>
	<?php 
    if ($pagination) {
        WpvTemplates::pagination('paged', $query);
    }
    ?>
	<?php 
    wp_reset_postdata();
}