Changeset 19915 for trunk/wp-content/themes/twentytwelve/archive.php
- Timestamp:
- 02/14/2012 03:54:46 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentytwelve/archive.php
r19843 r19915 19 19 20 20 <?php if ( have_posts() ) : ?> 21 22 <header class="page-header"> 23 <h1 class="page-title"><?php 24 if ( is_day() ) { 25 printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' ); 26 } elseif ( is_month() ) { 27 printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' ); 28 } elseif ( is_year() ) { 29 printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' ); 30 } elseif ( is_tag() ) { 31 printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' ); 32 // Show an optional tag description 33 $tag_description = tag_description(); 34 if ( $tag_description ) 35 echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' ); 36 } elseif ( is_category() ) { 37 printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' ); 38 // Show an optional category description 39 $category_description = category_description(); 40 if ( $category_description ) 41 echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' ); 42 } else { 43 _e( 'Blog Archives', 'twentytwelve' ); 44 } 45 ?></h1> 46 </header> 21 <h1 class="archive-title all-caps-title"><?php 22 if ( is_day() ) { 23 printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' ); 24 } elseif ( is_month() ) { 25 printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' ); 26 } elseif ( is_year() ) { 27 printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' ); 28 } elseif ( is_tag() ) { 29 printf( __( 'Tag Archives: %s', 'twentytwelve' ), '<span>' . single_tag_title( '', false ) . '</span>' ); 30 // Show an optional tag description 31 $tag_description = tag_description(); 32 if ( $tag_description ) 33 echo apply_filters( 'tag_archive_meta', '<div class="tag-archive-meta">' . $tag_description . '</div>' ); 34 } elseif ( is_category() ) { 35 printf( __( 'Category Archives: %s', 'twentytwelve' ), '<span>' . single_cat_title( '', false ) . '</span>' ); 36 // Show an optional category description 37 $category_description = category_description(); 38 if ( $category_description ) 39 echo apply_filters( 'category_archive_meta', '<div class="category-archive-meta">' . $category_description . '</div>' ); 40 } else { 41 _e( 'Blog Archives', 'twentytwelve' ); 42 } 43 ?></h1> 47 44 48 45 <?php 49 twentytwelve_content_nav( 'nav-above' );50 51 46 /* Start the Loop */ 52 47 while ( have_posts() ) : the_post();
Note: See TracChangeset
for help on using the changeset viewer.