mirror of
https://gh.wpcy.net/https://github.com/presscustomizr/hueman.git
synced 2026-04-30 18:01:22 +08:00
17 lines
No EOL
722 B
PHP
17 lines
No EOL
722 B
PHP
<?php
|
|
/* Print the post list articles. Runs the WP loop on the $wp_query object.
|
|
/* ------------------------------------ */
|
|
?>
|
|
<?php if ( hu_is_checked('blog-standard') ): ?>
|
|
<?php while ( have_posts() ): the_post(); ?>
|
|
<?php get_template_part('content-standard'); ?>
|
|
<?php endwhile; ?>
|
|
<?php else: ?>
|
|
<div id="grid-wrapper" class="post-list group">
|
|
<?php global $wp_query; echo '<div class="post-row">'; while ( have_posts() ): the_post(); ?>
|
|
<?php get_template_part('content'); ?>
|
|
<?php if( ( $wp_query->current_post + 1 ) % 2 == 0 ) { echo '</div><div class="post-row">'; }; endwhile; echo '</div>'; ?>
|
|
</div><!--/.post-list-->
|
|
<?php endif; ?>
|
|
|
|
<?php get_template_part('parts/pagination'); ?>
|