get_queried_object_id();
// Front page displays in Reading Settings.
$page_on_front = absint( get_option( 'page_on_front' ) );
$page_for_posts = absint( get_option( 'page_for_posts' ) );
switch ( $featured_slider_status ) {
case 'entire-site':
do_action('bizlight_main_slider');
break;
case 'front-index-page':
if (is_front_page()) {
do_action('bizlight_main_slider');
}
break;
case 'home-page':
if ( $page_on_front === $page_id && $page_on_front > 0 ) {
do_action('bizlight_main_slider');
}
break;
default:
break;
}
}
endif;
add_action( 'bizlight_action_on_header', 'bizlight_main_slider_setion', 10 );
/*breadcrumb*/
if( ! function_exists( 'bizlight_add_breadcrumb' ) ) :
/**
* Breadcrumb
*
* @since Bizlight 1.0.0
*
* @param null
* @return null
*
*/
function bizlight_add_breadcrumb(){
// Bail if Home Page
if ( is_front_page() || is_home() ) {
return;
}
echo '
';
bizlight_simple_breadcrumb();
echo '
';
return;
}
endif;
add_action( 'bizlight_action_after_header', 'bizlight_add_breadcrumb', 10 );