mirror of
https://gh.wpcy.net/https://github.com/presscustomizr/hueman.git
synced 2026-04-26 19:51:08 +08:00
39 lines
No EOL
996 B
PHP
39 lines
No EOL
996 B
PHP
<?php get_header(); ?>
|
|
|
|
<section class="content">
|
|
|
|
<?php get_template_part('parts/page-title'); ?>
|
|
|
|
<div class="pad group">
|
|
|
|
<?php if ((category_description() != '') && !is_paged()) : ?>
|
|
<div class="notebox">
|
|
<?php echo category_description(); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?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 class="post-list group">
|
|
<?php $i = 1; echo '<div class="post-row">'; while ( have_posts() ): the_post(); ?>
|
|
<?php get_template_part('content'); ?>
|
|
<?php if($i % 2 == 0) { echo '</div><div class="post-row">'; } $i++; endwhile; echo '</div>'; ?>
|
|
</div><!--/.post-list-->
|
|
<?php endif; ?>
|
|
|
|
<?php get_template_part('parts/pagination'); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div><!--/.pad-->
|
|
|
|
</section><!--/.content-->
|
|
|
|
<?php get_sidebar(); ?>
|
|
|
|
<?php get_footer(); ?>
|