' . single_cat_title( '', false ) . '' ); } elseif ( is_tag() ) { $title = sprintf( __( 'Tag Archives: %s', 'becorp' ), '' . single_tag_title( '', false ) . '' ); } elseif ( is_author() ) { $title = sprintf( __( 'Author Archives: %s', 'becorp' ), '' . get_the_author() . '' ); } elseif ( is_year() ) { $title = sprintf( __( 'Yearly Archives: %s', 'becorp' ), get_the_date( _x( 'Y', 'yearly archives date format', 'becorp' ) ) ); } elseif ( is_month() ) { $title = sprintf( __( 'Monthly Archives: %s', 'becorp' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'becorp' ) ) ); } elseif ( is_day() ) { $title = sprintf( __( 'Daily Archives: %s', 'becorp' ), get_the_date( _x( 'F j, Y', 'daily archives date format', 'becorp' ) ) ); } elseif ( is_post_type_archive() ) { $title = sprintf( __( 'Archives: %s', 'becorp' ), post_type_archive_title( '', false ) ); } /** * Filter the archive title. * * @param string $title Archive title to be displayed. */ $title = apply_filters( 'get_the_archive_title', $title ); if ( ! empty( $title ) ) { echo $before . $title . $after; } } endif; // Site Footer Function // Contains the closing of the #content div and all content after function becorp_wp_footer () { ?>