'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; ?> 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; ?>
theme\'s page for access to dozens of tips and in-depth tutorials.', "begro" ),$themename, esc_url( $theme_page_url ) ); printf( '

%1$s

', $message ); add_option( 'triggered_welcomet', '1', '', 'yes' ); } } add_action( 'admin_notices', 'mi_starter_reminder' ); if(!function_exists('mi_starter_password_form')){ function mi_starter_password_form() { global $post; $label = 'pwbox-'.( empty( $post->ID ) ? rand() : $post->ID ); $o = '
' . __( "To view this protected post, enter the password below:", "begro" ) . '
'; return $o; } } add_filter( 'the_password_form', 'mi_starter_password_form' ); $maintenance = (get_option( 'maintenance_enabled' )?get_option( 'maintenance_enabled' ):''); if( $maintenance == 1 ){ // Activate WordPress Maintenance Mode function wp_maintenance_mode() { if (!current_user_can('edit_themes') || !is_user_logged_in()) { if ( file_exists( get_stylesheet_directory() . '/inc/maintenance.php' ) ) { include_once get_stylesheet_directory() . '/inc/maintenance.php'; die(); }else{ wp_die("

Under Maintenance


Something ain't right, but we're working on it! Check back later."); } } } add_action('get_header', 'wp_maintenance_mode'); }