mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-24 10:09:47 +01:00
ff4d0e5249
git-svn-id: http://svn.automattic.com/wordpress/trunk@17787 1a063a9b-81f0-0310-95a4-ce76da25c4cd
53 lines
1.5 KiB
PHP
53 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* The template for displaying Archive pages.
|
|
*
|
|
* Used to display archive-type pages if nothing more specific matches a query.
|
|
* For example, puts together date-based pages if no date.php file exists.
|
|
*
|
|
* Learn more: http://codex.wordpress.org/Template_Hierarchy
|
|
*
|
|
* @package WordPress
|
|
* @subpackage Twenty Eleven
|
|
* @since Twenty Eleven 1.0
|
|
*/
|
|
|
|
get_header(); ?>
|
|
|
|
<section id="primary">
|
|
<div id="content" role="main">
|
|
|
|
<?php the_post(); ?>
|
|
|
|
<header class="page-header">
|
|
<h1 class="page-title">
|
|
<?php if ( is_day() ) : ?>
|
|
<?php printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' ); ?>
|
|
<?php elseif ( is_month() ) : ?>
|
|
<?php printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( 'F Y' ) . '</span>' ); ?>
|
|
<?php elseif ( is_year() ) : ?>
|
|
<?php printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( 'Y' ) . '</span>' ); ?>
|
|
<?php else : ?>
|
|
<?php _e( 'Blog Archives', 'twentyeleven' ); ?>
|
|
<?php endif; ?>
|
|
</h1>
|
|
</header>
|
|
|
|
<?php rewind_posts(); ?>
|
|
|
|
<?php twentyeleven_content_nav( 'nav-above' ); ?>
|
|
|
|
<?php /* Start the Loop */ ?>
|
|
<?php while ( have_posts() ) : the_post(); ?>
|
|
|
|
<?php get_template_part( 'content', get_post_format() ); ?>
|
|
|
|
<?php endwhile; ?>
|
|
|
|
<?php twentyeleven_content_nav( 'nav-below' ); ?>
|
|
|
|
</div><!-- #content -->
|
|
</section><!-- #primary -->
|
|
|
|
<?php get_sidebar(); ?>
|
|
<?php get_footer(); ?>
|