芝麻web文件管理V1.00
编辑当前文件:/home/soundframestudio/public_html/wp-content/themes/betheme/includes/header-template.php
.mfn-content-blur #Content, .mfn-content-blur .mfn-main-slider{filter:blur('.get_post_meta($args['id'], 'header_content_on_submenu_blur', true).'px);}'; }else{ echo ''; } echo '
'; } } // sticky if( !empty($mfn_hasStickyHeader) && $mfn_hasStickyHeader == 'enabled' ) { $mfn_header_tmpl_class[] = 'mfn-hasSticky'; if( !empty($mfn_StickyHeaderWidth) && $mfn_StickyHeaderWidth == 'inherited' ) $mfn_header_tmpl_class[] = 'mfn-sticky-layout-width'; } // mobile if( !empty($mfn_hasMobileHeader) && $mfn_hasMobileHeader == 'enabled' ) { $mfn_header_tmpl_class[] = 'mfn-hasMobile'; $mfn_header_tmpl_mobile_pos = get_post_meta($args['id'], 'mobile_header_position', true); $mfn_header_offset_top_mobile = get_post_meta($args['id'], 'mobile_body_offset_header', true); if($mfn_header_tmpl_mobile_pos) { $mfn_header_tmpl_class[] = 'mfn-mobile-header-tmpl-'.$mfn_header_tmpl_mobile_pos; }else{ $mfn_header_tmpl_class[] = 'mfn-mobile-header-tmpl-fixed'; } if( !empty($mfn_header_offset_top_mobile) ){ $mfn_header_tmpl_class[] = 'mfn-mobile-header-body-offset'; } } if( $mfn_header_offset_top_mobile || $mfn_header_offset_top ) { $mfn_helper_offset_top = 'style="position: relative; pointer-events: none;"'; } echo '
'; $mfn_header_builder = new Mfn_Builder_Front($args['id']); $mfn_header_builder->show(false, $args['visual']); echo '
'; echo mfn_slider(); if ( 'intro' != get_post_meta( mfn_ID(), 'mfn-post-template', true ) ){ if( 'all' != mfn_opts_get('subheader') ){ if( ! get_post_meta( mfn_ID(), 'mfn-post-hide-title', true ) ){ $subheader_advanced = mfn_opts_get('subheader-advanced'); if (is_search()) { echo '
'; echo '
'; echo '
'; if ( ! empty($_GET['s']) ) { global $wp_query; $total_results = $wp_query->found_posts; } else { $total_results = 0; } $translate['search-results'] = mfn_opts_get('translate') ? mfn_opts_get('translate-search-results', 'results found for:') : __('results found for:', 'betheme'); echo '
'. esc_html($total_results) .' '. esc_html($translate['search-results']) .' '. ( ! empty($_GET['s']) ? esc_html(stripslashes($_GET['s'])) : '' ) .'
'; echo '
'; echo '
'; echo '
'; } elseif ( ! mfn_slider_isset() || isset( $subheader_advanced['slider-show'] ) ) { // subheader $subheader_options = mfn_opts_get('subheader'); global $mfn_global; if (is_home() && ! get_option('page_for_posts') && ! mfn_opts_get('blog-page')) { $subheader_show = false; } elseif (is_array($subheader_options) && isset($subheader_options[ 'hide-subheader' ])) { $subheader_show = false; } elseif( is_singular() ) { if( !empty(get_post_meta(mfn_ID(), 'mfn-post-hide-title', true)) || get_post_meta(mfn_ID(), 'mfn-post-hide-title', true) == '0' ) { // single item settings if( get_post_meta(mfn_ID(), 'mfn-post-hide-title', true) == '1' ) { $subheader_show = false; }else{ $subheader_show = true; } }elseif( is_singular('post') && !empty(get_post_meta($mfn_global['single_post'], 'mfn-post-hide-title', true)) && get_post_meta($mfn_global['single_post'], 'mfn-post-hide-title', true) == '1' ) { // template settings $subheader_show = false; }elseif( is_singular('portfolio') && !empty(get_post_meta($mfn_global['single_portfolio'], 'mfn-post-hide-title', true)) && get_post_meta($mfn_global['single_portfolio'], 'mfn-post-hide-title', true) == '1' ) { // template settings $subheader_show = false; }else{ $subheader_show = true; } } else { $subheader_show = true; } // title if (is_array($subheader_options) && isset($subheader_options[ 'hide-title' ])) { $title_show = false; } else { $title_show = true; } // breadcrumbs if (is_array($subheader_options) && isset($subheader_options[ 'hide-breadcrumbs' ])) { $breadcrumbs_show = false; } else { $breadcrumbs_show = true; } if (is_array($subheader_advanced) && isset($subheader_advanced[ 'breadcrumbs-link' ])) { $breadcrumbs_link = 'has-link'; } else { $breadcrumbs_link = 'no-link'; } // output if ($subheader_show) { echo '
'; echo '
'; echo '
'; if( function_exists('is_woocommerce') && is_woocommerce() ){ // shop ----- if ($title_show) { $title_tag = mfn_opts_get('subheader-title-tag', 'h1'); // single product can not use H1 if (function_exists('is_product') && is_product() && $title_tag == 'h1') { $title_tag = 'h2'; } echo '<'. esc_attr($title_tag) .' class="title">'; if (function_exists('is_product') && is_product() && mfn_opts_get('shop-product-title')) { the_title(); } elseif(function_exists('woocommerce_page_title')){ woocommerce_page_title(); }else{ echo 'Please enable WooCommerce plugin'; } echo ''. esc_attr($title_tag) .'>'; } if (function_exists('woocommerce_breadcrumb') && $breadcrumbs_show) { $home = mfn_opts_get('translate') ? mfn_opts_get('translate-home', 'Home') : __('Home', 'betheme'); $woo_crumbs_args = apply_filters('woocommerce_breadcrumb_defaults', array( 'delimiter' => false, 'wrap_before' => '
', 'wrap_after' => '
', 'before' => '
', 'after' => '
', 'home' => esc_html($home), )); woocommerce_breadcrumb($woo_crumbs_args); } } else { // default ----- if ($title_show) { $title_tag = mfn_opts_get('subheader-title-tag', 'h1'); echo '<'. esc_attr($title_tag) .' class="title">'. wp_kses(mfn_page_title(), mfn_allowed_html()) .''. esc_attr($title_tag) .'>'; } if ($breadcrumbs_show) { $params = array( 'classes' => $breadcrumbs_link); mfn_breadcrumbs($params); } } echo '
'; echo '
'; echo '
'; } } } } }