diff options
Diffstat (limited to 'themes/twentyfourteen/archive.php')
-rw-r--r-- | themes/twentyfourteen/archive.php | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/themes/twentyfourteen/archive.php b/themes/twentyfourteen/archive.php index 9d2ba95f..f11a57ff 100644 --- a/themes/twentyfourteen/archive.php +++ b/themes/twentyfourteen/archive.php @@ -27,31 +27,30 @@ get_header(); ?> <header class="page-header"> <h1 class="page-title"> <?php - if ( is_day() ) : + if ( is_day() ) { + /* translators: %s: Date. */ printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() ); - - elseif ( is_month() ) : - printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) ); - - elseif ( is_year() ) : - printf( __( 'Yearly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) ); - - else : - _e( 'Archives', 'twentyfourteen' ); - - endif; - ?> + } elseif ( is_month() ) { + /* translators: %s: Date. */ + printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) ); + } elseif ( is_year() ) { + /* translators: %s: Date. */ + printf( __( 'Yearly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfourteen' ) ) ); + } else { + _e( 'Archives', 'twentyfourteen' ); + } + ?> </h1> </header><!-- .page-header --> <?php - // Start the Loop. + // Start the Loop. while ( have_posts() ) : the_post(); /* - * Include the post format-specific template for the content. If you want to - * use this in a child theme, then include a file called content-___.php + * Include the post format-specific template for the content. If you want + * to use this in a child theme, then include a file called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'content', get_post_format() ); |