Changeset 45604 for trunk/src/wp-content/themes/twentyeleven/archive.php
- Timestamp:
- 07/05/2019 08:03:40 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/archive.php
r44496 r45604 22 22 <header class="page-header"> 23 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>' ); ?> 30 <?php else : ?> 31 <?php _e( 'Blog Archives', 'twentyeleven' ); ?> 32 <?php endif; ?> 24 <?php 25 if ( is_day() ) { 26 /* translators: %s: date */ 27 printf( __( 'Daily Archives: %s', 'twentyeleven' ), '<span>' . get_the_date() . '</span>' ); 28 } elseif ( is_month() ) { 29 /* translators: %s: date */ 30 printf( __( 'Monthly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyeleven' ) ) . '</span>' ); 31 } elseif ( is_year() ) { 32 /* translators: %s: date */ 33 printf( __( 'Yearly Archives: %s', 'twentyeleven' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentyeleven' ) ) . '</span>' ); 34 } else { 35 _e( 'Blog Archives', 'twentyeleven' ); 36 } 37 ?> 33 38 </h1> 34 39 </header>
Note: See TracChangeset
for help on using the changeset viewer.