' . single_tag_title( '', false ) . '' );
$description = tag_description();
} elseif ( is_category() ) {
$title = sprintf( __( 'All posts in category %1$s', 'comet' ), '
' . esc_html( single_cat_title( '', false ) ) . '' );
$description = category_description();
} elseif ( is_day() ) {
$title = sprintf( __( 'All posts for the day %1$s', 'comet' ), '
' . esc_html( get_the_date( __( 'F jS, Y', 'comet' ) ) ) . '' );
} elseif ( is_month() ) {
$title = sprintf( __( 'All posts for the month %1$s', 'comet' ), '
' . esc_html( get_the_date( __( 'F, Y', 'comet' ) ) ) . '' );
} elseif ( is_year() ) {
$title = sprintf( __( 'All posts for the year %1$s', 'comet' ), '
' . esc_html( get_the_date( __( 'Y', 'comet' ) ) ) . '' );
} elseif ( is_author() ) {
the_post();
$title = sprintf( __( 'All posts by %1$s', 'comet' ), '
' . esc_html( get_the_author() ) . '' );
rewind_posts();
} elseif ( is_tax( 'post_format', 'post-format-aside' ) ) {
$title = __( 'Asides', 'comet' );
} elseif ( is_tax( 'post_format', 'post-format-image' ) ) {
$title = __( 'Images', 'comet');
} elseif ( is_tax( 'post_format', 'post-format-video' ) ) {
$title = __( 'Videos', 'comet' );
} elseif ( is_tax( 'post_format', 'post-format-quote' ) ) {
$title = __( 'Quotes', 'comet' );
} elseif ( is_tax( 'post_format', 'post-format-link' ) ) {
$title = __( 'Links', 'comet' );
}
if ( ! empty( $title ) ) {
echo '
' . $title . '
';
}
if ( ! empty( $description ) ) {
echo '
' . $description . '
';
}
?>