equal
deleted
inserted
replaced
|
1 <?php |
|
2 /** |
|
3 * The template for displaying Post Format pages |
|
4 * |
|
5 * Used to display archive-type pages for posts with a post format. |
|
6 * If you'd like to further customize these Post Format views, you may create a |
|
7 * new template file for each specific one. |
|
8 * |
|
9 * @link http://codex.wordpress.org/Template_Hierarchy |
|
10 * |
|
11 * @package WordPress |
|
12 * @subpackage Twenty_Thirteen |
|
13 * @since Twenty Thirteen 1.0 |
|
14 */ |
|
15 |
|
16 get_header(); ?> |
|
17 |
|
18 <div id="primary" class="content-area"> |
|
19 <div id="content" class="site-content" role="main"> |
|
20 |
|
21 <?php if ( have_posts() ) : ?> |
|
22 <header class="archive-header"> |
|
23 <h1 class="archive-title"><?php printf( __( '%s Archives', 'twentythirteen' ), '<span>' . get_post_format_string( get_post_format() ) . '</span>' ); ?></h1> |
|
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(); ?> |