/
var
/
www
/
barefootlaw.org
/
wp-content
/
themes
/
barefoot
/
template-parts
/
page-title
/
Upload File
HOME
<?php /** * The template part for displaying a main title in page title * * @package Aisconverse * @subpackage Covercase * @since Covercase 1.0 */ ?> <?php if ( function_exists( 'basement_the_specific_title' ) ) { if ( is_search() ) { basement_the_specific_title( 'search', __( 'Search', 'covercase' ) ); } elseif ( is_home() && ! is_front_page() ) { wp_title( '' ); } elseif ( ( is_home() && is_front_page() ) ) { basement_the_specific_title( 'blog', __( 'Our Blog', 'covercase' ) ); } elseif ( is_singular( 'post' ) ) { $blog_type = get_option( 'show_on_front' ); if ( $blog_type === 'posts' ) { basement_the_specific_title( 'blog', __( 'Our Blog', 'covercase' ) ); } else { echo get_the_title( get_option( 'page_for_posts' ) ); } } elseif ( is_archive() && ! is_tag() && ! Basement_Ecommerce_Woocommerce::is_shop() && ! is_tax( array( 'product_cat', 'product_tag' ) ) ) { if ( empty( basement_the_specific_title( 'archives', '', false ) ) ) { if ( is_day() ) { _e( 'Daily Archives', 'covercase' ); } elseif ( is_month() ) { _e( 'Monthly Archives', 'covercase' ); } elseif ( is_year() ){ _e( 'Yearly Archives', 'covercase' ); } else { if(is_author()) { _e( 'All posts by', 'covercase' ); } elseif(is_category()){ _e( 'Category', 'covercase' ); } else { basement_the_specific_title( 'archives', __( 'Archives', 'covercase' ) ); } } } else { if ( is_day() || is_month() || is_year()) { basement_the_specific_title( 'archives', __( 'Archives', 'covercase' ) ); } else { if(is_author()) { _e( 'All posts by', 'covercase' ); } elseif(is_category()){ _e( 'Category', 'covercase' ); } else { basement_the_specific_title( 'archives', __( 'Archives', 'covercase' ) ); } } } } elseif ( is_tag() ) { _e( 'Tag Archive', 'covercase' ); } elseif ( Basement_Ecommerce_Woocommerce::is_shop() || is_tax( array( 'product_cat', 'product_tag' ) ) ) { if ( apply_filters( 'woocommerce_show_page_title', true ) ) : woocommerce_page_title(); endif; } elseif ( is_singular( 'single_project' ) ) { if ( function_exists( 'basement_single_project_page_title' ) ) { basement_single_project_page_title(); } } elseif ( is_404() ) { basement_the_specific_title( '404', __( 'Page not found', 'covercase' ) ); } else { the_title(); } } else { if ( is_search() ) { _e( 'Search', 'covercase' ); } elseif ( is_home() && ! is_front_page() ) { wp_title( '' ); } elseif ( ( is_home() && is_front_page() ) ) { _e( 'Our Blog', 'covercase' ); } elseif ( is_singular( 'post' ) ) { $blog_type = get_option( 'show_on_front' ); if ( $blog_type === 'posts' ) { _e( 'Our Blog', 'covercase' ); } else { echo get_the_title( get_option( 'page_for_posts' ) ); } } elseif ( is_archive() && ! is_tag() && ! basement_is_shop() && ! is_tax( array( 'product_cat', 'product_tag' ) ) ) { if ( is_day() ) : _e( 'Daily Archives', 'covercase' ); elseif ( is_month() ) : _e( 'Monthly Archives', 'covercase' ); elseif ( is_year() ) : _e( 'Yearly Archives', 'covercase' ); else : if(is_author()) : _e( 'All posts by', 'covercase' ); elseif(is_category()): _e( 'Category', 'covercase' ); else: _e( 'Archives', 'covercase' ); endif; endif; } elseif ( is_tag() ) { _e( 'Tag Archive', 'covercase' ); } elseif ( basement_is_shop() || is_tax( array( 'product_cat', 'product_tag' ) ) ) { if ( basement_woo_active() ) { if ( apply_filters( 'woocommerce_show_page_title', true ) ) : woocommerce_page_title(); endif; } } elseif (is_author()) { _e( 'All posts by', 'covercase' ); } elseif ( is_404() ) { _e( 'Page not found', 'covercase' ); } else { the_title(); } } ?>