~canonical-sysadmins/wordpress/4.7.4

« back to all changes in this revision

Viewing changes to wp-content/themes/twentythirteen/category.php

  • Committer: Jacek Nykis
  • Date: 2015-01-05 16:17:05 UTC
  • Revision ID: jacek.nykis@canonical.com-20150105161705-w544l1h5mcg7u4w9
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * The template for displaying Category pages
 
4
 *
 
5
 * @link http://codex.wordpress.org/Template_Hierarchy
 
6
 *
 
7
 * @package WordPress
 
8
 * @subpackage Twenty_Thirteen
 
9
 * @since Twenty Thirteen 1.0
 
10
 */
 
11
 
 
12
get_header(); ?>
 
13
 
 
14
        <div id="primary" class="content-area">
 
15
                <div id="content" class="site-content" role="main">
 
16
 
 
17
                <?php if ( have_posts() ) : ?>
 
18
                        <header class="archive-header">
 
19
                                <h1 class="archive-title"><?php printf( __( 'Category Archives: %s', 'twentythirteen' ), single_cat_title( '', false ) ); ?></h1>
 
20
 
 
21
                                <?php if ( category_description() ) : // Show an optional category description ?>
 
22
                                <div class="archive-meta"><?php echo category_description(); ?></div>
 
23
                                <?php endif; ?>
 
24
                        </header><!-- .archive-header -->
 
25
 
 
26
                        <?php /* The loop */ ?>
 
27
                        <?php while ( have_posts() ) : the_post(); ?>
 
28
                                <?php get_template_part( 'content', get_post_format() ); ?>
 
29
                        <?php endwhile; ?>
 
30
 
 
31
                        <?php twentythirteen_paging_nav(); ?>
 
32
 
 
33
                <?php else : ?>
 
34
                        <?php get_template_part( 'content', 'none' ); ?>
 
35
                <?php endif; ?>
 
36
 
 
37
                </div><!-- #content -->
 
38
        </div><!-- #primary -->
 
39
 
 
40
<?php get_sidebar(); ?>
 
41
<?php get_footer(); ?>
 
 
b'\\ No newline at end of file'