22 <section id="primary" class="site-content"> |
22 <section id="primary" class="site-content"> |
23 <div id="content" role="main"> |
23 <div id="content" role="main"> |
24 |
24 |
25 <?php if ( have_posts() ) : ?> |
25 <?php if ( have_posts() ) : ?> |
26 <header class="archive-header"> |
26 <header class="archive-header"> |
27 <h1 class="archive-title"><?php |
27 <h1 class="archive-title"> |
28 if ( is_day() ) : |
28 <?php |
29 printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' ); |
29 if ( is_day() ) : |
|
30 printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' ); |
30 elseif ( is_month() ) : |
31 elseif ( is_month() ) : |
31 printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' ); |
32 printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' ); |
32 elseif ( is_year() ) : |
33 elseif ( is_year() ) : |
33 printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' ); |
34 printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' ); |
34 else : |
35 else : |
35 _e( 'Archives', 'twentytwelve' ); |
36 _e( 'Archives', 'twentytwelve' ); |
36 endif; |
37 endif; |
37 ?></h1> |
38 ?> |
|
39 </h1> |
38 </header><!-- .archive-header --> |
40 </header><!-- .archive-header --> |
39 |
41 |
40 <?php |
42 <?php |
41 /* Start the Loop */ |
43 /* Start the Loop */ |
42 while ( have_posts() ) : the_post(); |
44 while ( have_posts() ) : |
|
45 the_post(); |
43 |
46 |
44 /* Include the post format-specific template for the content. If you want to |
47 /* Include the post format-specific template for the content. If you want to |
45 * this in a child theme then include a file called called content-___.php |
48 * this in a child theme then include a file called content-___.php |
46 * (where ___ is the post format) and that will be used instead. |
49 * (where ___ is the post format) and that will be used instead. |
47 */ |
50 */ |
48 get_template_part( 'content', get_post_format() ); |
51 get_template_part( 'content', get_post_format() ); |
49 |
52 |
50 endwhile; |
53 endwhile; |