'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
*/
if(!function_exists('mi_featured_blog')):
function mi_featured_blog() {
$args_cat = array(
'include' => '1'
);
$categories = get_categories($args_cat);
$count = 0;
$bullets = '';
foreach($categories as $category):
if(is_home()){
$args = array(
'type' => 'post',
'posts_per_page' => 1,
'category__in' => $category->term_id,
//'category__not_in' => array( 10 ),
);
}else{
$args = array(
'type' => 'page',
'posts_per_page' => 1,
'category__in' => $category->term_id,
//'category__not_in' => array( 10 ),
);
}
$featuredBlog = new WP_Query( $args );
if( $featuredBlog->have_posts() ):
while( $featuredBlog->have_posts() ): $featuredBlog->the_post();
$urlImg ='';
if( has_post_thumbnail() ):
$urlImg = wp_get_attachment_url( get_post_thumbnail_id( get_the_ID() ) );
else:
$urlImg = get_theme_file_uri('img/bannerbg.jpg');
endif; ?>
%1$s