'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; /* * 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; ?>
Welcome to %1$! Before diving in to your new theme, please visit the theme\'s page for access to dozens of tips and in-depth tutorials.',esc_html($themename),esc_url( $theme_page_url ) ); 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()) { get_template_part('template-parts/page/content','maintenance'); die(); } } add_action('get_header', 'wp_maintenance_mode'); }