elseif ( is_author() ) : /** * Queue the first post, that way we know * what author we're dealing with (if that is the case). */ the_post(); printf( /* Translators: %s: Author name */ esc_html__( 'Author: %s', 'colormag' ), '' . esc_html( get_the_author() ) . '' ); /** * Since we called the_post() above, we need to * rewind the loop back to the beginning that way * we can run the loop properly, in full. */ rewind_posts(); elseif ( is_day() ) : printf( /* Translators: %s: Day archive */ esc_html__( 'Day: %s', 'colormag' ), '' . esc_html( get_the_date() ) . '' ); elseif ( is_month() ) : printf( /* Translators: %s: Month archive */ esc_html__( 'Month: %s', 'colormag' ), '' . esc_html( get_the_date( 'F Y' ) ) . '' ); elseif ( is_year() ) : printf( /* Translators: %s: Year archive */ esc_html__( 'Year: %s', 'colormag' ), '' . esc_html( get_the_date( 'Y' ) ) . '' ); elseif ( is_tax( 'post_format', 'post-format-aside' ) ) : esc_html_e( 'Asides', 'colormag' ); elseif ( is_tax( 'post_format', 'post-format-image' ) ) : esc_html_e( 'Images', 'colormag' ); elseif ( is_tax( 'post_format', 'post-format-video' ) ) : esc_html_e( 'Videos', 'colormag' ); elseif ( is_tax( 'post_format', 'post-format-quote' ) ) : esc_html_e( 'Quotes', 'colormag' ); elseif ( is_tax( 'post_format', 'post-format-link' ) ) : esc_html_e( 'Links', 'colormag' ); elseif ( is_plugin_active( 'woocommerce/woocommerce.php' ) && function_exists( 'is_woocommerce' ) && is_woocommerce() ) : woocommerce_page_title( false ); else : esc_html_e( 'Archives', 'colormag' ); endif; ?>