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 * Learn more: http://codex.wordpress.org/Template_Hierarchy
11 * @subpackage Twenty_Eleven
12 * @since Twenty Eleven 1.0
17 <section id="primary">
18 <div id="content" role="main">
20 <?php if ( have_posts() ) : ?>
22 <header class="page-header">
23 <h1 class="page-title">
24 <?php if ( is_day() ) : ?>
25 <?php printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' ); ?>
26 <?php elseif ( is_month() ) : ?>
27 <?php printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
28 <?php elseif ( is_year() ) : ?>
29 <?php printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentyeleven' ) ) . '</span>' ); ?>
31 <?php _e( 'Blog Archives', 'twentyeleven' ); ?>
36 <?php twentyeleven_content_nav( 'nav-above' ); ?>
38 <?php /* Start the Loop */ ?>
39 <?php while ( have_posts() ) : the_post(); ?>
42 /* Include the Post-Format-specific template for the content.
43 * If you want to overload this in a child theme then include a file
44 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
46 get_template_part( 'content', get_post_format() );
51 <?php twentyeleven_content_nav( 'nav-below' ); ?>
55 <article id="post-0" class="post no-results not-found">
56 <header class="entry-header">
57 <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
58 </header><!-- .entry-header -->
60 <div class="entry-content">
61 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
62 <?php get_search_form(); ?>
63 </div><!-- .entry-content -->
64 </article><!-- #post-0 -->
68 </div><!-- #content -->
69 </section><!-- #primary -->
71 <?php get_sidebar(); ?>
72 <?php get_footer(); ?>