3 * The template for displaying Archive pages.
5 * Used to display archive-type pages if nothing more specific matches a query.
6 * For example, puts together date-based pages if no date.php file exists.
8 * If you'd like to further customize these archive views, you may create a
9 * new template file for each specific one. For example, Twenty Twelve already
10 * has tag.php for Tag archives, category.php for Category archives, and
11 * author.php for Author archives.
13 * Learn more: http://codex.wordpress.org/Template_Hierarchy
16 * @subpackage Twenty_Twelve
17 * @since Twenty Twelve 1.0
22 <section id="primary" class="site-content">
23 <div id="content" role="main">
25 <?php if ( have_posts() ) : ?>
26 <header class="archive-header">
27 <h1 class="archive-title"><?php
29 printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
30 elseif ( is_month() ) :
31 printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
32 elseif ( is_year() ) :
33 printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
35 _e( 'Archives', 'twentytwelve' );
38 </header><!-- .archive-header -->
42 while ( have_posts() ) : the_post();
44 /* 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
46 * (where ___ is the post format) and that will be used instead.
48 get_template_part( 'content', get_post_format() );
52 twentytwelve_content_nav( 'nav-below' );
56 <?php get_template_part( 'content', 'none' ); ?>
59 </div><!-- #content -->
60 </section><!-- #primary -->
62 <?php get_sidebar(); ?>
63 <?php get_footer(); ?>