Changeset 30236
- Timestamp:
- 11/04/2014 09:00:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/archive.php
r30216 r30236 26 26 27 27 <header class="page-header"> 28 <h1 class="page-title">29 <?php30 if ( is_category() ) :31 single_cat_title();32 33 elseif ( is_tag() ) :34 single_tag_title();35 36 elseif ( is_author() ) :37 printf( esc_html__( 'Author: %s', 'twentyfifteen' ), '<span class="vcard">' . get_the_author() . '</span>' );38 39 elseif ( is_day() ) :40 printf( esc_html__( 'Day: %s', 'twentyfifteen' ), get_the_date() );41 42 elseif ( is_month() ) :43 printf( esc_html__( 'Month: %s', 'twentyfifteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfifteen' ) ) );44 45 elseif ( is_year() ) :46 printf( esc_html__( 'Year: %s', 'twentyfifteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyfifteen' ) ) );47 48 elseif ( is_tax( 'post_format', 'post-format-aside' ) ) :49 esc_html_e( 'Asides', 'twentyfifteen' );50 51 elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) :52 esc_html_e( 'Galleries', 'twentyfifteen' );53 54 elseif ( is_tax( 'post_format', 'post-format-image' ) ) :55 esc_html_e( 'Images', 'twentyfifteen' );56 57 elseif ( is_tax( 'post_format', 'post-format-video' ) ) :58 esc_html_e( 'Videos', 'twentyfifteen' );59 60 elseif ( is_tax( 'post_format', 'post-format-quote' ) ) :61 esc_html_e( 'Quotes', 'twentyfifteen' );62 63 elseif ( is_tax( 'post_format', 'post-format-link' ) ) :64 esc_html_e( 'Links', 'twentyfifteen' );65 66 elseif ( is_tax( 'post_format', 'post-format-status' ) ) :67 esc_html_e( 'Statuses', 'twentyfifteen' );68 69 elseif ( is_tax( 'post_format', 'post-format-audio' ) ) :70 esc_html_e( 'Audios', 'twentyfifteen' );71 72 elseif ( is_tax( 'post_format', 'post-format-chat' ) ) :73 esc_html_e( 'Chats', 'twentyfifteen' );74 75 else :76 esc_html_e( 'Archives', 'twentyfifteen' );77 78 endif;79 ?>80 </h1>81 28 <?php 82 // Show an optional term description. 83 $term_description = term_description(); 84 if ( ! empty( $term_description ) ) : 85 printf( '<div class="taxonomy-description">%s</div>', $term_description ); 86 endif; 29 the_archive_title( '<h1 class="page-title">', '</h1>' ); 30 the_archive_description( '<div class="taxonomy-description">', '</div>' ); 87 31 ?> 88 32 </header><!-- .page-header -->
Note: See TracChangeset
for help on using the changeset viewer.