$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 '
'; } // shop user if( $has_user ){ $modal_type = 'is-boxed'; if ( 'header-creative' == mfn_header_style(true) ) { $modal_type = false; } 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 '
'; } } 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 ''; } else { echo ''; } echo ''; } echo '
'; echo '
'; } ?>