pluto3/category.php
2017-09-19 16:23:41 +08:00

58 lines
1.8 KiB
PHP

<?php
/**
* The template for displaying Category pages
*
* @link http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @since Pluto 1.0
*/
get_header(); ?>
<div class="main-content-w">
<div class="main-content-m">
<?php os_the_primary_sidebar('left'); ?>
<div class="main-content-i">
<?php if ( have_posts() ) : ?>
<header class="archive-header">
<h3><?php printf( __( 'Category Archives: %s', 'pluto' ), single_cat_title( '', false ) ); ?></h3>
<?php
// Show an optional term description.
$term_description = term_description();
if ( ! empty( $term_description ) ) :
printf( '<div class="taxonomy-description">%s</div>', $term_description );
endif;
?>
</header><!-- .archive-header -->
<?php require_once(get_template_directory() . '/inc/set-layout-vars.php') ?>
<div class="content side-padded-content">
<div class="index-isotope <?php echo $isotope_class; ?>" data-layout-mode="<?php echo $layout_mode; ?>">
<?php $os_current_box_counter = 1; $os_ad_block_counter = 0; ?>
<?php
// Start the Loop.
while ( have_posts() ) : the_post();
get_template_part( $template_part, get_post_format() );
os_ad_between_posts();
endwhile; ?>
</div>
<?php require_once(get_template_directory() . '/inc/isotope-navigation.php') ?>
</div>
<?php
else :
// If no content, include the "No posts found" template.
get_template_part( 'content', 'none' );
endif; ?>
</div>
<?php os_the_primary_sidebar('right'); ?>
</div>
<?php os_footer(); ?>
</div>
<?php
get_footer();