| 28 | | <h1 class="page-title"> |
| 29 | | <?php |
| 30 | | 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> |