'; // Close Button echo '
'; echo ''; echo '
'; // Extras echo '
'; // action button if( $action_link = mfn_opts_get( 'header-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 ''. mfn_opts_get( 'header-action-title' ) .''; } // icons echo '
'; // WooCommerce Cart global $woocommerce; $show_cart = trim( mfn_opts_get( 'shop-cart' ) ); if( $woocommerce && $show_cart ){ echo ''. $woocommerce->cart->cart_contents_count .''; } // Search if( mfn_opts_get( 'header-search' ) ){ echo ''; } // Languages menu if( has_nav_menu( 'lang-menu' ) ){ // Custom Languages Menu echo ''. mfn_get_menu_name( 'lang-menu' ) .''; } elseif( function_exists( 'icl_get_languages' ) ){ // WPML | Custom Languages Menu $lang_args = ''; $lang_options = mfn_opts_get( 'header-wpml-options' ); $wmpl_flags = mfn_opts_get( 'header-wpml' ); if( isset( $lang_options['link-to-home'] )){ $lang_args .= 'skip_missing=0'; } else { $lang_args .= 'skip_missing=1'; } $languages = icl_get_languages( $lang_args ); if( is_array( $languages ) && $wmpl_flags != 'hide' ){ $active_lang = false; foreach( $languages as $lang_k=>$lang ){ if( $lang['active'] ){ $active_lang = $lang; } } if( $active_lang ){ echo ''; if( $wmpl_flags == 'dropdown-name' ){ echo $active_lang['native_name']; } elseif( $wmpl_flags == 'horizontal-code' ) { echo strtoupper( $active_lang['language_code'] ); } else { echo ''. $active_lang['translated_name'] .''; } if( count( $languages ) > 1 ) echo ''; echo ''; } } } echo '
'; echo '
'; // Search | wrapper if( mfn_opts_get( 'header-search' ) ){ echo '
'; $translate[ 'search-placeholder' ] = mfn_opts_get( 'translate' ) ? mfn_opts_get( 'translate-search-placeholder', 'Enter your search' ) : __( 'Enter your search', 'betheme' ); echo '
'; echo ''; echo ''; echo ''; echo '
'; echo '
'; } // Languages menu | wrapper echo '
'; // Languages menu if( has_nav_menu( 'lang-menu' ) ){ // Custom Languages Menu mfn_wp_lang_menu(); } elseif( function_exists( 'icl_get_languages' ) ){ // WPML | Custom Languages Menu if( count( $languages ) > 1 ){ echo ''; } else { $translate[ 'wpml-no' ] = mfn_opts_get( 'translate' ) ? mfn_opts_get( 'translate-wpml-no', 'No translations available for this page' ) : __( 'No translations available for this page', 'betheme' ); echo ''; } } echo '
'; // Main Menu | jQuery content - DO NOT DELETE echo ''; // social get_template_part( 'includes/include', 'social' ); echo ''; // #body_overlay echo '
';