', '' );
elseif ( is_search() ) : ?>
' . esc_html__( 'Oops! That page can't be found.', 'corponotch' ) . '';
endif;
}
if ( ! function_exists( 'corponotch_add_breadcrumb' ) ) :
/**
* Add breadcrumb.
*
* @since CorpoNotch 1.0.0
*/
function corponotch_add_breadcrumb() {
// Bail if Breadcrumb disabled.
if ( ! corponotch_theme_option( 'enable_breadcrumb' ) ) {
return;
}
// Bail if Home Page.
if ( ! is_home() && is_front_page() ) {
return;
}
echo '
';
/**
* corponotch_breadcrumb hook
*
* @hooked corponotch_breadcrumb - 10
*
*/
do_action( 'corponotch_breadcrumb' );
echo '
';
return;
}
endif;
if ( ! function_exists( 'corponotch_custom_header' ) ) :
/**
* Site content codes
*
* @since CorpoNotch 1.0.0
*
*/
function corponotch_custom_header() {
if ( ! is_home() && is_front_page() ) {
return;
}
$header_layout = corponotch_theme_option( 'header_layout', 'normal-header' );
$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;
}
?>