', '' );
elseif ( is_search() ) : ?>
' . esc_html__( 'Oops! That page can't be found.', 'corpobrand' ) . '';
endif;
}
if ( ! function_exists( 'corpobrand_add_breadcrumb' ) ) :
/**
* Add breadcrumb.
*
* @since Corpobrand 1.0.0
*/
function corpobrand_add_breadcrumb() {
// Bail if Breadcrumb disabled.
if ( ! corpobrand_theme_option( 'enable_breadcrumb' ) ) {
return;
}
// Bail if Home Page.
if ( ! is_home() && is_front_page() ) {
return;
}
echo '
';
/**
* corpobrand_breadcrumb hook
*
* @hooked corpobrand_breadcrumb - 10
*
*/
do_action( 'corpobrand_breadcrumb' );
echo '
';
return;
}
endif;
if ( ! function_exists( 'corpobrand_custom_header' ) ) :
/**
* Site content codes
*
* @since Corpobrand 1.0.0
*
*/
function corpobrand_custom_header() {
if ( ! is_home() && is_front_page() ) {
return;
}
$image = get_header_image() ? get_header_image() : get_template_directory_uri() . '/assets/uploads/banner.jpg';
if ( is_singular() ) {
$image = has_post_thumbnail() ? get_the_post_thumbnail_url( get_the_id(), 'full' ) : $image;
}
?>