芝麻web文件管理V1.00
编辑当前文件:/home/soundframestudio/public_html/wp-content/themes/betheme/includes/header-top-bar-right.php
$k ){ $class[] = 'hide-total-'. $val; } } $class = implode(' ', $class); $translate['search-placeholder'] = mfn_opts_get('translate') ? mfn_opts_get('translate-search-placeholder', 'Enter your search') : __('Enter your search', 'betheme'); // output ----- if ( $has_user || $has_wishlist || $has_cart || $header_search || $action_link || $wpml_icon || $has_menu ) { echo '
'; echo '
'; $search_icon = '
'; // header style shop if ( 'header-shop' == mfn_header_style(true) && 'input' == $header_search ){ echo '
'; echo '
'; echo $search_icon; echo '
'; do_action('wpml_add_language_form_field'); echo '
'; if ( mfn_opts_get('header-search-live') ) { get_template_part('includes/header', 'live-search'); } echo '
'; echo '
'; } // shop user if( $has_user ){ $modal_type = 'is-boxed'; if ( 'header-creative' == mfn_header_style(true) ) { $modal_type = false; } echo '
'; if( is_user_logged_in() && get_option('show_avatars') == 1 && get_option('avatar_default') != 'blank' ){ $current_user = wp_get_current_user(); echo get_avatar( $current_user->ID, 32 ); } else { mfn_user_icon( $user_icon ); } echo '
'; } // shop wishlist if( $has_wishlist ){ echo '
'; if( $wishlist_icon ){ echo '
'; } else { echo '
'; } echo '
0
'; echo '
'; } // shop cart if ( $has_cart ) { if( mfn_opts_get('shop-sidecart') && ! is_cart() && ! is_checkout() ){ $class = 'toggle-mfn-cart'; } else { $class = false; } echo '
'; if( $cart_icon ){ echo '
'; } else { echo '
'; } if(mfn_opts_get('shop-icon-count-if-zero') == 1 || $woocommerce->cart->cart_contents_count > 0){ echo '
'. esc_html( $woocommerce->cart->cart_contents_count ) .'
'; echo '
'. wp_strip_all_tags( $woocommerce->cart->get_cart_total() ) .'
'; } echo '
'; } // search icon if ( 'input' == $header_search ) { if ( 'header-shop' != mfn_header_style(true) ){ echo '
'; echo '
'; echo $search_icon; echo '
'; do_action('wpml_add_language_form_field'); echo '
'; if ( mfn_opts_get('header-search-live') ) { get_template_part('includes/header', 'live-search'); } echo '
'; echo '
'; } } elseif ( $header_search ) { echo '
'; echo $search_icon; echo '
'; } // languages menu get_template_part('includes/include', 'wpml'); // action button if ($action_link) { $action_options = mfn_opts_get('header-action-target'); if (isset($action_options['target'])) { $action_target = 'target="_blank"'; } else { $action_target = false; } if (isset($action_options['scroll'])) { $action_class = ' scroll'; } else { $action_class = false; } echo '
'. wp_kses(mfn_opts_get('header-action-title'), mfn_allowed_html('button')) .'
'; } // header style: shop | menu button if( $has_menu ){ // responsive menu button $mb_class = ''; if (mfn_opts_get('header-menu-mobile-sticky')) { $mb_class .= ' is-sticky'; } echo '
'; if ( $menu_text = trim( mfn_opts_get('header-menu-text') ?? '' ) ) { echo '
'. wp_kses($menu_text, mfn_allowed_html()) .'
'; } else { echo '
'; } echo '
'; } echo '
'; echo '
'; } ?>