-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcategory.php
executable file
·38 lines (28 loc) · 980 Bytes
/
category.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* The template for displaying Category Archive pages.
*
* @package WordPress
* @subpackage Foghorn
* @since Foghorn 0.1
*/
get_header(); ?>
<section id="primary">
<div id="content" role="main">
<header class="page-header">
<h1 class="page-title"><?php
printf( __( 'Category: %s', 'foghorn' ), '<span>' . single_cat_title( '', false ) . '</span>' );
?></h1>
<?php $categorydesc = category_description(); if ( ! empty( $categorydesc ) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?>
</header>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'index' ); ?>
<?php endwhile; ?>
<?php foghorn_content_nav( 'nav-below' ); ?>
</div><!-- #content -->
</section><!-- #primary -->
<?php if ( of_get_option('layout','layout-2cr') != 'layout-1c') {
get_sidebar();
} ?>
<?php get_footer(); ?>