' . do_shortcode( $left ) . ''; $left = str_replace('%','%%',$left); // wp_nav_menu uses sprintf! This will almost always fix the issue. } elseif (is_customize_preview()) { $hide = ' ' . weaverx_getopt('m_secondary_hide_left'); $left = ''; } if ( $right ) { $hide = ' ' . weaverx_getopt('m_secondary_hide_right'); $right = ''; $right = str_replace('%','%%',$right); // wp_nav_menu uses sprintf! } elseif (is_customize_preview()) { $hide = ' ' . weaverx_getopt('m_secondary_hide_right'); $right = ''; } if ( weaverx_getopt('use_smartmenus') ) { // ================== SMART MENUS $hamburger = apply_filters('weaverx_mobile_menu_name',weaverx_getopt('m_secondary_hamburger')); if ( $hamburger == '' ) { $alt = weaverx_getopt('mobile_alt_label'); if ( $alt == '') $hamburger = ''; else $hamburger = ''; } $left = '{$left}"; // +since: 3.1.10: remove empty href="" } $menu_class = apply_filters('weaverx_menu_class', 'weaverx-theme-menu wvrx-menu menu-hover', 'secondary'); $align = weaverx_getopt( 'm_secondary_align' ); switch ( $align ) { // add classes for alignment and fixed top case 'left': case 'alignwide left': case 'alignfull left': $menu_class .= ' menu-alignleft'; break; case 'center': case 'alignwide center': case 'alignfull center': $menu_class .= ' wvrx-center-menu'; break; case 'right': case 'alignwide right': case 'alignfull right': $menu_class .= ' menu-alignright'; break; default: $menu_class .= ' menu-alignleft'; } if ( weaverx_getopt ('m_secondary_move') ) $nav_class = 'menu-secondary menu-secondary-moved menu-type-standard'; else $nav_class = 'menu-secondary menu-secondary-standard menu-type-standard'; if ( weaverx_getopt('m_secondary_fixedtop') == 'fixed-top' ) { $class .= ' wvrx-fixedtop'; $nav_class .= ' wvrx-secondary-fixedtop'; } echo "\n\n" . '
\n\n"; if ( weaverx_getopt('use_smartmenus') ) { if ( function_exists('weaverxplus_plugin_installed') ) do_action('weaverx_plus_smartmenu', 'nav-secondary', 'm_secondary'); // emit required JS to invoke smartmenu else { // use theme "action" weaverx_smartmenu( 'nav-secondary', 'm_secondary' ); } } } ?>