forked from mirror/_s
Simplified archive titles
The current archive titles are verbose and fusty. This commit simplifies them to the bare minimum needed (and wanted by actual users) for description, orientation, and navigation.
This commit is contained in:
parent
584ed2a6f2
commit
c09c02081a
12
archive.php
12
archive.php
|
@ -18,17 +18,17 @@ get_header(); ?>
|
||||||
<h1 class="page-title">
|
<h1 class="page-title">
|
||||||
<?php
|
<?php
|
||||||
if ( is_category() ) :
|
if ( is_category() ) :
|
||||||
printf( __( 'Category Archives: %s', '_s' ), '<span>' . single_cat_title( '', false ) . '</span>' );
|
single_cat_title();
|
||||||
|
|
||||||
elseif ( is_tag() ) :
|
elseif ( is_tag() ) :
|
||||||
printf( __( 'Tag Archives: %s', '_s' ), '<span>' . single_tag_title( '', false ) . '</span>' );
|
single_tag_title();
|
||||||
|
|
||||||
elseif ( is_author() ) :
|
elseif ( is_author() ) :
|
||||||
/* Queue the first post, that way we know
|
/* Queue the first post, that way we know
|
||||||
* what author we're dealing with (if that is the case).
|
* what author we're dealing with (if that is the case).
|
||||||
*/
|
*/
|
||||||
the_post();
|
the_post();
|
||||||
printf( __( 'Author Archives: %s', '_s' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
|
printf( __( 'Author: %s', '_s' ), '<span class="vcard"><a class="url fn n" href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '" title="' . esc_attr( get_the_author() ) . '" rel="me">' . get_the_author() . '</a></span>' );
|
||||||
/* Since we called the_post() above, we need to
|
/* Since we called the_post() above, we need to
|
||||||
* rewind the loop back to the beginning that way
|
* rewind the loop back to the beginning that way
|
||||||
* we can run the loop properly, in full.
|
* we can run the loop properly, in full.
|
||||||
|
@ -36,13 +36,13 @@ get_header(); ?>
|
||||||
rewind_posts();
|
rewind_posts();
|
||||||
|
|
||||||
elseif ( is_day() ) :
|
elseif ( is_day() ) :
|
||||||
printf( __( 'Daily Archives: %s', '_s' ), '<span>' . get_the_date() . '</span>' );
|
printf( __( 'Day: %s', '_s' ), '<span>' . get_the_date() . '</span>' );
|
||||||
|
|
||||||
elseif ( is_month() ) :
|
elseif ( is_month() ) :
|
||||||
printf( __( 'Monthly Archives: %s', '_s' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
|
printf( __( 'Month: %s', '_s' ), '<span>' . get_the_date( 'F Y' ) . '</span>' );
|
||||||
|
|
||||||
elseif ( is_year() ) :
|
elseif ( is_year() ) :
|
||||||
printf( __( 'Yearly Archives: %s', '_s' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
|
printf( __( 'Year: %s', '_s' ), '<span>' . get_the_date( 'Y' ) . '</span>' );
|
||||||
|
|
||||||
elseif ( is_tax( 'post_format', 'post-format-aside' ) ) :
|
elseif ( is_tax( 'post_format', 'post-format-aside' ) ) :
|
||||||
_e( 'Asides', '_s' );
|
_e( 'Asides', '_s' );
|
||||||
|
|
Reference in New Issue