Файловый менеджер - Редактировать - /home/beautybuzzbeyond/public_html/wp-content/themes/music-night/framework/include/kode_front_func/kode_header.php
Назад
<?php /* * Kodeforest Header File * --------------------------------------------------------------------- * This file contains header function in the theme * --------------------------------------------------------------------- */ if( !function_exists('musicnight_get_woo_cart') ){ function musicnight_get_woo_cart(){ if(class_exists('Woocommerce')){ global $post,$post_id,$product,$woocommerce; $currency = get_woocommerce_currency_symbol(); if($woocommerce->cart->cart_contents_count <> 0){ return $shopping_cart_div = '<div class="divine_woo_dropdown_icon"><a href="#" id="no-active-btn-shopping"><sub>'.esc_attr($woocommerce->cart->cart_contents_count).' </sub><i class="fa fa-shopping-cart"></i></a><div class="widget_shopping_cart_content"></div></div>'; }else{ return $shopping_cart_div = '<div class="divine_woo_dropdown_icon"><a href="#" id="no-active-btn-shopping"><sub>'.esc_attr($woocommerce->cart->cart_contents_count).' </sub><i class="fa fa-shopping-cart"></i></a><div class="widget_shopping_cart_content"></div></div>'; } } } } if( !function_exists('musicnight_get_selected_header') ){ function musicnight_get_selected_header($musicnight_post_option,$musicnight_theme_option) { if(isset($musicnight_theme_option['enable-header-option'])){ if($musicnight_theme_option['enable-header-option'] == 'disable'){ if(isset($musicnight_post_option['kode-header-style'])){ $musicnight_theme_option['kode-header-style'] = $musicnight_post_option['kode-header-style']; musicnight_get_header($musicnight_theme_option); }else{ musicnight_get_header($musicnight_theme_option); } }else{ musicnight_get_header($musicnight_theme_option); } }else{ if(isset($musicnight_post_option['kode-header-style'])){ $musicnight_theme_option['kode-header-style'] = $musicnight_post_option['kode-header-style']; musicnight_get_header($musicnight_theme_option); }else{ musicnight_get_header($musicnight_theme_option); } } } } if( !function_exists('musicnight_get_selected_header_class') ){ function musicnight_get_selected_header_class($musicnight_post_option,$musicnight_theme_option) { if(isset($musicnight_theme_option['enable-header-option'])){ if($musicnight_theme_option['enable-header-option'] == 'disable'){ if(isset($musicnight_post_option['kode-header-style'])){ $musicnight_theme_option['kode-header-style'] = $musicnight_post_option['kode-header-style']; return $musicnight_theme_option['kode-header-style']; }else{ return $musicnight_theme_option['kode-header-style']; } }else{ return $musicnight_theme_option['kode-header-style']; } }else{ if(isset($musicnight_post_option['kode-header-style'])){ $musicnight_theme_option['kode-header-style'] = $musicnight_post_option['kode-header-style']; return $musicnight_theme_option['kode-header-style']; }else{ //return $musicnight_theme_option['kode-header-style']; return 'default'; } } } } if( !function_exists('musicnight_search_form') ){ function musicnight_search_form(){ ?> <!--Search Wrap End--> <div id="kode_search" class="kode_search"> <a class="search-here"><i class="fa fa-search"></i></a> <?php echo get_search_form();?> <span class="kode_search-close"></span> </div><!-- /kode_search --> <div class="overlay"></div> <?php } } if( !function_exists('musicnight_get_header') ){ function musicnight_get_header ($musicnight_theme_option) { $musicnight_theme_option = get_option('musicnight_admin_option', array()); $musicnight_plugin_option = get_option('musicnight_plugin_option'); $musicnight_theme_option['top-bar-location'] = empty($musicnight_theme_option['top-bar-location'])? '':$musicnight_theme_option['top-bar-location']; $musicnight_theme_option['top-bar-phone'] = empty($musicnight_theme_option['top-bar-phone'])? '':$musicnight_theme_option['top-bar-phone']; $top_search = ''; if(!function_exists('musicnight_search_autocomplete_hotel_location')){$top_search = 'top-search-disable';}else{$top_search = 'top-search-enable';} if($musicnight_theme_option['kode-header-style'] == 'header-style-1'){ ?> <header class="header-style-3 <?php if(isset($musicnight_theme_option['enable-sticky-nav']) && $musicnight_theme_option['enable-sticky-nav'] == 'enable'){echo 'sticky-nav';}?>"> <?php if(isset($musicnight_theme_option['enable-top-bar']) && $musicnight_theme_option['enable-top-bar'] == 'enable'){ ?> <div class="header-1st-row"> <div class="container"> <?php if(isset($musicnight_theme_option['breaking_news_enable']) && $musicnight_theme_option['breaking_news_enable'] == 'enable'){ $breaking_posts = get_posts(array('category'=>$musicnight_theme_option['breaking_news_category'],'posts_per_page'=>5)); if(!empty($breaking_posts)){ ?> <div class="breaking-news-column"> <strong><?php esc_attr_e('Breaking News','music-night');?>:</strong> <div class="brk-slider"> <?php foreach($breaking_posts as $breaking_post){ ?> <div class="news_items"><p><?php echo esc_attr(substr($breaking_post->post_content,0,90))?>...</p></div> <?php }?> </div> </div> <?php } } ?> </div> </div> <?php }?> <div class="header-2st-row "> <div class="container"> <div class="pull-left"> <div class="social-icons"> <strong><?php esc_attr_e('FOLLOW US','music-night');?>:</strong> <?php musicnight_print_header_social_icon('social-icons_list'); ?> </div> </div> <div class="center-logo"> <div class="logo"> <div class="main-logo-wrap"> <a class="kode-logo" href="<?php echo esc_url(home_url('/')); ?>" > <?php if(empty($musicnight_theme_option['logo'])){ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); }else{ if(musicnight_get_image($musicnight_theme_option['logo']) <> ''){ echo musicnight_get_image($musicnight_theme_option['logo']); }else{ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); } } ?> </a> </div> </div> </div> <div class="pull-right"> <ul class="playlist_menu_bar"> <li><a href="#" data-toggle="modal" data-target="#login-register1"><i class="fa fa-user-circle"></i></a></li> <li><a data-action="open" data-side="right" class="side_t kf_menu_button" href="#"><i class="fa fa-bars" aria-hidden="true"></i></a></li> </ul> <?php // mobile navigation if( class_exists('musicnight_dlmenu_walker') && has_nav_menu('main_menu_responsive') ){ echo '<div class="kode-responsive-navigation dl-menuwrapper" id="kode-responsive-navigation" >'; echo '<button class="dl-trigger">'.esc_attr__('Open Menu','music-night').'</button>'; wp_nav_menu( array( 'theme_location'=>'main_menu', 'container'=> '', 'menu_class'=> 'dl-menu kode-main-mobile-menu', 'walker'=> new musicnight_dlmenu_walker() ) ); echo '</div>'; } ?> </div> </div> </div> <div class="header-2st-row align-center-nav"> <div class="container"> <div class="fst-navigation"> <?php //Main Navigation get_template_part( 'header', 'nav' ); ?> </div> </div> </div> </header> <?php }else if($musicnight_theme_option['kode-header-style'] == 'header-style-2'){ ?> <!--Header style 1--> <header class="header-element-1"> <?php if(isset($musicnight_theme_option['enable-top-bar']) && $musicnight_theme_option['enable-top-bar'] == 'enable'){ ?> <div class="header-1st-row"> <div class="container"> <div class="pull-left"> <p><?php esc_attr_e('Welcome to Musicalforest','music-night');?></p> </div> <div class="pull-right"> <div class="social-icons"> <strong><?php esc_attr_e('FOLLOW US:','music-night');?></strong> <?php musicnight_print_header_social_icon('social-icons_list'); ?> </div> <div class="login-register"> <span><i class="fa fa-user-circle-o" aria-hidden="true"></i></span> <a href="#" data-toggle="modal" data-target="#login-register1">login</a> <a href="#" data-toggle="modal" data-target="#login-register1">register</a> </div> </div> </div> </div> <?php }?> <div class="header-2st-row"> <div class="container"> <div class="logo"> <div class="main-logo-wrap"> <a class="kode-logo" href="<?php echo esc_url(home_url('/')); ?>" > <?php if(empty($musicnight_theme_option['logo'])){ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); }else{ if(musicnight_get_image($musicnight_theme_option['logo']) <> ''){ echo musicnight_get_image($musicnight_theme_option['logo']); }else{ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); } } ?> </a> </div> </div> <div class="fst-navigation"> <nav class="navigation-1"> <?php //Main Navigation get_template_part( 'header', 'nav' ); ?> </nav> <div class="pull-right"> <ul class="playlist_menu_bar"> <?php if(function_exists('musicnight_login_sign_up_script')){ ?> <li><a href="#" data-toggle="modal" data-target="#login-register1"><i class="fa fa-user-circle"></i></a></li> <?php }?> <li> <?php $menu_class = ''; if(isset($musicnight_theme_option['enable-top-responsive-menu-on-desktop']) && $musicnight_theme_option['enable-top-responsive-menu-on-desktop'] == 'enable'){ $menu_class = 'show-in-main-header'; } if( class_exists('musicnight_dlmenu_walker') && has_nav_menu('main_menu_responsive') ){ echo '<div class="kode-responsive-navigation dl-menuwrapper '.esc_attr($menu_class).'" id="kode-responsive-navigation" >'; echo '<button class="dl-trigger">'.esc_attr__('Open Menu','music-night').'</button>'; wp_nav_menu( array( 'theme_location'=>'main_menu', 'container'=> '', 'menu_class'=> 'dl-menu kode-main-mobile-menu', 'walker'=> new musicnight_dlmenu_walker() ) ); echo '</div>'; } ?> </li> </ul> </div> </div> </div> </div> </header> <?php }else if($musicnight_theme_option['kode-header-style'] == 'header-style-3'){ ?> <header class="header-element-2"> <?php if(isset($musicnight_theme_option['enable-top-bar']) && $musicnight_theme_option['enable-top-bar'] == 'enable'){ ?> <div class="header-1st-row"> <div class="container"> <div class="minus-div"></div> <?php if(isset($musicnight_theme_option['breaking_news_enable']) && $musicnight_theme_option['breaking_news_enable'] == 'enable'){ $breaking_posts = get_posts(array('category'=>$musicnight_theme_option['breaking_news_category'],'posts_per_page'=>5)); if(!empty($breaking_posts)){ ?> <div class="breaking-news-column"> <strong><?php esc_attr_e('Breaking News','music-night');?>:</strong> <div class="brk-slider"> <?php foreach($breaking_posts as $breaking_post){ ?> <div class="news_items"><p><?php echo esc_attr(substr($breaking_post->post_content,0,90))?>...</p></div> <?php }?> </div> </div> <?php } } ?> </div> </div> <?php }?> <div class="header-2st-row"> <div class="container"> <div class="logo top-logo"> <div class="main-logo-wrap"> <a class="kode-logo" href="<?php echo esc_url(home_url('/')); ?>" > <?php if(empty($musicnight_theme_option['logo'])){ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/music-night-white.png'); }else{ if(musicnight_get_image($musicnight_theme_option['logo']) <> ''){ echo musicnight_get_image($musicnight_theme_option['logo']); }else{ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/music-night-white.png'); } } ?> </a> </div> </div> <div class="fst-navigation"> <nav class="navigation-1"> <?php //Main Navigation get_template_part( 'header', 'nav' ); ?> </nav> <div class="pull-right"> <ul class="playlist_menu_bar"> <?php if(function_exists('musicnight_login_sign_up_script')){ ?> <li><a href="#" data-toggle="modal" data-target="#login-register1"><i class="fa fa-user-circle"></i></a></li> <?php }?> <li> <?php $menu_class = ''; if(isset($musicnight_theme_option['enable-top-responsive-menu-on-desktop']) && $musicnight_theme_option['enable-top-responsive-menu-on-desktop'] == 'enable'){ $menu_class = 'show-in-main-header'; } if( class_exists('musicnight_dlmenu_walker') && has_nav_menu('main_menu_responsive') ){ echo '<div class="kode-responsive-navigation dl-menuwrapper '.esc_attr($menu_class).'" id="kode-responsive-navigation" >'; echo '<button class="dl-trigger">'.esc_attr__('Open Menu','music-night').'</button>'; wp_nav_menu( array( 'theme_location'=>'main_menu', 'container'=> '', 'menu_class'=> 'dl-menu kode-main-mobile-menu', 'walker'=> new musicnight_dlmenu_walker() ) ); echo '</div>'; } ?> </li> </ul> </div> </div> </div> </div> </header> <?php }else if($musicnight_theme_option['kode-header-style'] == 'header-style-4'){ ?> <header class="header-element-2 header-style-2"> <?php if(isset($musicnight_theme_option['enable-top-bar']) && $musicnight_theme_option['enable-top-bar'] == 'enable'){ ?> <div class="header-1st-row"> <div class="container"> <div class="minus-div"></div> <?php if(isset($musicnight_theme_option['breaking_news_enable']) && $musicnight_theme_option['breaking_news_enable'] == 'enable'){ $breaking_posts = get_posts(array('category'=>$musicnight_theme_option['breaking_news_category'],'posts_per_page'=>5)); if(!empty($breaking_posts)){ ?> <div class="breaking-news-column"> <strong><?php esc_attr_e('Breaking News','music-night');?>:</strong> <div class="brk-slider"> <?php foreach($breaking_posts as $breaking_post){ ?> <div class="news_items"><p><?php echo esc_attr(substr($breaking_post->post_content,0,90))?>...</p></div> <?php }?> </div> </div> <?php } } ?> </div> </div> <?php }?> <div class="header-2st-row"> <div class="container"> <div class="logo top-logo"> <div class="main-logo-wrap"> <a class="kode-logo" href="<?php echo esc_url(home_url('/')); ?>" > <?php if(empty($musicnight_theme_option['logo'])){ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); }else{ if(musicnight_get_image($musicnight_theme_option['logo']) <> ''){ echo musicnight_get_image($musicnight_theme_option['logo']); }else{ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); } } ?> </a></div> </div> <div class="fst-navigation"> <nav class="navigation-1"> <?php //Main Navigation get_template_part( 'header', 'nav' ); ?> </nav> <div class="pull-right"> <ul class="playlist_menu_bar"> <?php if(function_exists('musicnight_login_sign_up_script')){ ?> <li><a href="#" data-toggle="modal" data-target="#login-register1"><i class="fa fa-user-circle"></i></a></li> <?php }?> <li> <?php $menu_class = ''; if(isset($musicnight_theme_option['enable-top-responsive-menu-on-desktop']) && $musicnight_theme_option['enable-top-responsive-menu-on-desktop'] == 'enable'){ $menu_class = 'show-in-main-header'; } if( class_exists('musicnight_dlmenu_walker') && has_nav_menu('main_menu_responsive') ){ echo '<div class="kode-responsive-navigation dl-menuwrapper '.esc_attr($menu_class).'" id="kode-responsive-navigation" >'; echo '<button class="dl-trigger">'.esc_attr__('Open Menu','music-night').'</button>'; wp_nav_menu( array( 'theme_location'=>'main_menu', 'container'=> '', 'menu_class'=> 'dl-menu kode-main-mobile-menu', 'walker'=> new musicnight_dlmenu_walker() ) ); echo '</div>'; } ?> </li> </ul> </div> </div> </div> </div> </header> <?php }else if($musicnight_theme_option['kode-header-style'] == 'header-style-5'){ ?> <header class="header-style-3"> <?php if(isset($musicnight_theme_option['enable-top-bar']) && $musicnight_theme_option['enable-top-bar'] == 'enable'){ ?> <div class="header-1st-row"> <div class="container"> <?php if(isset($musicnight_theme_option['breaking_news_enable']) && $musicnight_theme_option['breaking_news_enable'] == 'enable'){ $breaking_posts = get_posts(array('category'=>$musicnight_theme_option['breaking_news_category'],'posts_per_page'=>5)); if(!empty($breaking_posts)){ ?> <div class="breaking-news-column"> <strong><?php esc_attr_e('Breaking News','music-night');?>:</strong> <div class="brk-slider"> <?php foreach($breaking_posts as $breaking_post){ ?> <div class="news_items"><p><?php echo esc_attr(substr($breaking_post->post_content,0,90))?>...</p></div> <?php }?> </div> </div> <?php } } ?> </div> </div> <?php }?> <div class="header-2st-row "> <div class="container"> <div class="pull-left"> <div class="social-icons"> <strong><?php esc_attr_e('FOLLOW US:','music-night');?></strong> <?php musicnight_print_header_social_icon('social-icons_list'); ?> </div> </div> <div class="center-logo"> <div class="logo"> <div class="main-logo-wrap"> <a class="kode-logo" href="<?php echo esc_url(home_url('/')); ?>" > <?php if(empty($musicnight_theme_option['logo'])){ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); }else{ if(musicnight_get_image($musicnight_theme_option['logo']) <> ''){ echo musicnight_get_image($musicnight_theme_option['logo']); }else{ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); } } ?> </a> </div> </div> </div> <div class="pull-right"> <ul class="playlist_menu_bar"> <?php if(function_exists('musicnight_login_sign_up_script')){ ?> <li><a href="#" data-toggle="modal" data-target="#login-register1"><i class="fa fa-user-circle"></i></a></li> <?php }?> <li> <?php $menu_class = ''; if(isset($musicnight_theme_option['enable-top-responsive-menu-on-desktop']) && $musicnight_theme_option['enable-top-responsive-menu-on-desktop'] == 'enable'){ $menu_class = 'show-in-main-header'; } if( class_exists('musicnight_dlmenu_walker') && has_nav_menu('main_menu_responsive') ){ echo '<div class="kode-responsive-navigation dl-menuwrapper '.esc_attr($menu_class).'" id="kode-responsive-navigation" >'; echo '<button class="dl-trigger">'.esc_attr__('Open Menu','music-night').'</button>'; wp_nav_menu( array( 'theme_location'=>'main_menu', 'container'=> '', 'menu_class'=> 'dl-menu kode-main-mobile-menu', 'walker'=> new musicnight_dlmenu_walker() ) ); echo '</div>'; } ?> </li> </ul> </div> </div> </div> <div class="header-2st-row align-center-nav"> <div class="container"> <div class="fst-navigation"> <nav class="navigation-1"> <?php get_template_part( 'header', 'left' ); ?> </nav> </div> </div> </div> </header> <?php }else if($musicnight_theme_option['kode-header-style'] == 'header-style-6'){ ?> <!--church header--> <header class="church_version_1 <?php if(isset($musicnight_theme_option['enable-sticky-nav']) && $musicnight_theme_option['enable-sticky-nav'] == 'enable'){echo 'sticky-nav';}?>"> <!--church header container--> <div class="church_container"> <!--church container--> <div class="container"> <!--church logo--> <div class="church_logo"> <a class="kode-logo" href="<?php echo esc_url(home_url('/')); ?>" > <?php if(empty($musicnight_theme_option['logo'])){ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); }else{ if(musicnight_get_image($musicnight_theme_option['logo']) <> ''){ echo musicnight_get_image($musicnight_theme_option['logo']); }else{ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); } } ?> </a> </div> <!--church menus--> <div class="church_menu_row"> <!--church music player--> <div class="church_audio_row"> <?php if(function_exists('musicnight_get_sermon_playlist_item')){ $settings['post_id'] = '79'; if(isset($musicnight_theme_option['header-sermon-item']) && $musicnight_theme_option['header-sermon-item'] <> ''){ $settings['post_id'] = $musicnight_theme_option['header-sermon-item']; }else{ $settings['post_id'] = ''; } $settings['position'] = 'static'; $settings['background-color'] = 'green'; $settings['player-type'] = 'horizontal'; echo musicnight_get_sermon_playlist_item($settings); } ?> </div> <!--church music player ends--> <!--church social icons--> <div class="social-icons"> <?php musicnight_print_header_social_icon('social-icons_list'); ?> </div> <!--church social icons ends--> <!--church social navigation menu--> <div class="church_social-menu"> <div class="church_navigation"> <?php //Main Navigation get_template_part( 'header', 'nav' ); ?> </div> <!--church cart menu--> <div class="cart_items_show"> <div class="divine-woo-cart"> <?php echo musicnight_get_woo_cart();?> </div> <div class="divine-search-form"> <?php echo musicnight_search_form()?> </div> </div> <!--church cart menu ends--> </div> <!--church social navigation menu ends--> </div> <!--church menus ends--> </div> <!--church container ends--> </div> <!--church header container end--> </header> <!--church header ends--> <?php }else if($musicnight_theme_option['kode-header-style'] == 'header-style-7'){ ?> <!--church header--> <header class="header_version_6 <?php if(isset($musicnight_theme_option['enable-sticky-nav']) && $musicnight_theme_option['enable-sticky-nav'] == 'enable'){echo 'sticky-nav';}?>"> <div class="header_top_row"> <div class="container"> <ul class="church_accounts_language"> <li><a href="#"><i class="fa fa-lock" aria-hidden="true"></i>login/user</a></li> <li><a href="#"><i class="fa fa-user-o" aria-hidden="true"></i>My Account</a></li> </ul> <div class="pull-right"> <!--church social icons--> <div class="social-icons"> <?php musicnight_print_header_social_icon('social-icons_list'); ?> </div> <!--church social icons ends--> </div> </div> </div> <!--church header container--> <div class="church_version_7"> <!--church container--> <div class="container"> <div class="church_logo"> <a class="kode-logo" href="<?php echo esc_url(home_url('/')); ?>" > <?php if(empty($musicnight_theme_option['logo'])){ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); }else{ if(musicnight_get_image($musicnight_theme_option['logo']) <> ''){ echo musicnight_get_image($musicnight_theme_option['logo']); }else{ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); } } ?> </a> </div> <?php // mobile navigation if( class_exists('musicnight_dlmenu_walker') && has_nav_menu('main_menu_responsive') ){ echo '<div class="kode-responsive-navigation dl-menuwrapper" id="kode-responsive-navigation" >'; echo '<button class="dl-trigger">'.esc_attr__('Open Menu','music-night').'</button>'; wp_nav_menu( array( 'theme_location'=>'main_menu', 'container'=> '', 'menu_class'=> 'dl-menu kode-main-mobile-menu', 'walker'=> new musicnight_dlmenu_walker() ) ); echo '</div>'; } ?> <!--Responsive Menu END--> <!--church logo ends--> <div class="church_navigation pull-right"> <?php //Main Navigation get_template_part( 'header', 'nav' ); ?> </div> <div class="divine-search-form hide"> <?php echo musicnight_search_form()?> </div> </div> </div> </header> <!--church header ends--> <?php }else if($musicnight_theme_option['kode-header-style'] == 'header-style-8'){ ?> <header class="header-style-5 <?php if(isset($musicnight_theme_option['enable-sticky-nav']) && $musicnight_theme_option['enable-sticky-nav'] == 'enable'){echo 'sticky-nav';}?>"> <div class="container"> <div class="logo"> <div class="main-logo-wrap"> <a class="kode-logo" href="<?php echo esc_url(home_url('/')); ?>" > <?php if(empty($musicnight_theme_option['logo'])){ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); }else{ if(musicnight_get_image($musicnight_theme_option['logo']) <> ''){ echo musicnight_get_image($musicnight_theme_option['logo']); }else{ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); } } ?> </a> </div> </div> <div class="header-1st-row"> <div class="left-side"> <?php if(isset($musicnight_theme_option['breaking_news_enable']) && $musicnight_theme_option['breaking_news_enable'] == 'enable'){ $breaking_posts = get_posts(array('category'=>$musicnight_theme_option['breaking_news_category'],'posts_per_page'=>5)); if(!empty($breaking_posts)){ ?> <div class="breaking-news-column"> <strong><?php esc_attr_e('Breaking News','music-night');?>:</strong> <div class="brk-slider"> <?php foreach($breaking_posts as $breaking_post){ ?> <div class="news_items"><p><?php echo esc_attr(substr($breaking_post->post_content,0,90))?>...</p></div> <?php }?> </div> </div> <?php } } ?> </div> <div class="right-side"> <div class="login-register"> <span><i class="fa fa-user-circle-o" aria-hidden="true"></i></span> <?php if(function_exists('musicnight_login_sign_up_script')){ ?> <a href="#" data-toggle="modal" data-target="#login-register1">login</a> <?php }?> <a href="#" data-toggle="modal" data-target="#login-register1">register</a> </div> <div class="social-icons"> <?php musicnight_print_header_social_icon('social-icons_list'); ?> </div> </div> </div> <div class="header-2st-row"> <div class="fst-navigation"> <nav class="navigation-1"> <?php //Main Navigation get_template_part( 'header', 'nav' ); ?> </nav> <?php // mobile navigation $menu_class = ''; if(isset($musicnight_theme_option['enable-top-responsive-menu-on-desktop']) && $musicnight_theme_option['enable-top-responsive-menu-on-desktop'] == 'enable'){ $menu_class = 'show-in-main-header'; } if( class_exists('musicnight_dlmenu_walker') && has_nav_menu('main_menu_responsive') ){ echo '<div class="kode-responsive-navigation dl-menuwrapper '.esc_attr($menu_class).'" id="kode-responsive-navigation" >'; echo '<button class="dl-trigger">'.esc_attr__('Open Menu','music-night').'</button>'; wp_nav_menu( array( 'theme_location'=>'main_menu', 'container'=> '', 'menu_class'=> 'dl-menu kode-main-mobile-menu', 'walker'=> new musicnight_dlmenu_walker() ) ); echo '</div>'; } ?> <div class="pull-right"> <ul class="playlist_menu_bar"> <li><a id="search-btn" href="#"><div id="search-button"><i class="fa fa-search"></i></div></a></li> <li><a data-action="open" data-side="right" class="side_t kf_menu_button" href="#"><i class="fa fa-bars" aria-hidden="true"></i></a></li> </ul> </div> </div> </div> </div> </header> <?php }else{ ?> <header class="header-style-3 <?php if(isset($musicnight_theme_option['enable-sticky-nav']) && $musicnight_theme_option['enable-sticky-nav'] == 'enable'){echo 'sticky-nav';}?>"> <div class="header-1st-row"> <div class="container"> <?php if(isset($musicnight_theme_option['breaking_news_enable']) && $musicnight_theme_option['breaking_news_enable'] == 'enable'){ $breaking_posts = get_posts(array('category'=>$musicnight_theme_option['breaking_news_category'],'posts_per_page'=>5)); if(!empty($breaking_posts)){ ?> <div class="breaking-news-column"> <strong><?php esc_attr_e('Breaking News','music-night');?>:</strong> <div class="brk-slider"> <?php foreach($breaking_posts as $breaking_post){ ?> <div class="news_items"><p><?php echo esc_attr(substr($breaking_post->post_content,0,90))?>...</p></div> <?php }?> </div> </div> <?php } } ?> </div> </div> <div class="header-2st-row "> <div class="container"> <div class="pull-left"> <div class="social-icons"> <strong>FOLLOW US:</strong> <?php musicnight_print_header_social_icon('social-icons_list'); ?> </div> </div> <div class="center-logo"> <div class="logo"> <div class="main-logo-wrap"> <a class="kode-logo" href="<?php echo esc_url(home_url('/')); ?>" > <?php if(empty($musicnight_theme_option['logo'])){ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); }else{ if(musicnight_get_image($musicnight_theme_option['logo']) <> ''){ echo musicnight_get_image($musicnight_theme_option['logo']); }else{ echo musicnight_get_image(MUSICNIGHT_PATH . '/images/logo.png'); } } ?> </a> </div> </div> </div> <div class="pull-right"> <ul class="playlist_menu_bar"> <?php if(isset($musicnight_theme_option['playlist_track_arc_enable']) && $musicnight_theme_option['playlist_track_arc_enable'] == 'enable'){ ?> <li><a href="<?php echo esc_url($musicnight_theme_option['playlist_track_arc_link']);?>" class="musiclist-btn"><i class="icon-music"></i></a></li> <?php }?> <?php if(function_exists('musicnight_login_sign_up_script')){ ?> <li><a href="#" data-toggle="modal" data-target="#login-register1"><i class="fa fa-user-circle"></i></a></li> <?php }?> <li><a data-action="open" data-side="right" class="side_t kf_menu_button" href="#"><i class="fa fa-bars" aria-hidden="true"></i></a></li> </ul> <?php // mobile navigation if( class_exists('musicnight_dlmenu_walker') && has_nav_menu('main_menu_responsive') ){ echo '<div class="kode-responsive-navigation dl-menuwrapper" id="kode-responsive-navigation" >'; echo '<button class="dl-trigger">'.esc_attr__('Open Menu','music-night').'</button>'; wp_nav_menu( array( 'theme_location'=>'main_menu', 'container'=> '', 'menu_class'=> 'dl-menu kode-main-mobile-menu', 'walker'=> new musicnight_dlmenu_walker() ) ); echo '</div>'; } ?> </div> </div> </div> <div class="header-2st-row align-center-nav"> <div class="container"> <div class="fst-navigation"> <?php //Main Navigation get_template_part( 'header', 'nav' ); ?> </div> </div> </div> </header> <?php } } }
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка