mirror of
https://gh.wpcy.net/https://github.com/presscustomizr/hueman.git
synced 2026-04-24 18:32:44 +08:00
35 lines
No EOL
1.1 KiB
PHP
35 lines
No EOL
1.1 KiB
PHP
<?php get_header(); ?>
|
|
|
|
<section class="content">
|
|
<?php if ( ! hu_is_home_empty() ) : ?>
|
|
<?php hu_get_template_part('parts/page-title'); ?>
|
|
|
|
<div class="pad group">
|
|
|
|
<?php if ( hu_is_checked('featured-posts-enabled') ) { get_template_part('parts/featured'); } ?>
|
|
|
|
<?php if ( have_posts() ) : ?>
|
|
|
|
<?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'); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div><!--/.pad-->
|
|
<?php endif; ?>
|
|
</section><!--/.content-->
|
|
|
|
<?php get_sidebar(); ?>
|
|
|
|
<?php get_footer(); ?>
|