'primary',
'depth' => 2,
'container' => 'div',
'container_class' => 'collapse navbar-collapse',
'container_id' => 'navbarCollapse',
'menu_class' => 'navbar-nav ml-auto ',
'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
'walker' => new WP_Bootstrap_Navwalker(),
) );
}
endif;
/**
* Main navigation menu
*/
if (!function_exists('full_screen_menu')) :
function full_screen_menu() {
wp_nav_menu( array(
'theme_location' => 'full-screen-menu',
'depth' => 1,
'container' => 'div',
'container_class' => 'e',
'container_id' => '',
'menu_class' => 'navbar-nav',
) );
}
endif;
/**
* Main Featured Blog
*/
/*
* Inner page banner
*/
if(!function_exists('inner_banner')){
function inner_banner(){
$category = get_category( get_query_var( 'cat' ) );
@$cat_id = ($category->cat_ID?$category->cat_ID :'');
$image_id = get_term_meta ( $cat_id, 'category-image-id', true );
if(class_exists( 'WooCommerce' ) ) :
if(is_shop()):
$urlImg = wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) );
else:
$urlImg = get_theme_file_uri('img/bannerbg.jpg');
endif;
else:
if( has_post_thumbnail() ):
$urlImg = wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) );
elseif( $image_id != ''):
$urlImg = wp_get_attachment_url( $image_id );
else:
$urlImg = get_theme_file_uri('img/bannerbg.jpg');
endif;
endif;
?>
%1$s