logo', $custom_logo_url); // +since: 3.1.10: add alt= } else $logo = apply_filters('aweaver_menu_logo', 'logo', $custom_logo_url); // +since: 3.1.10: add alt= } } $site_title = ''; if ( aweaver_getopt('m_primary_site_title_left') ) { $classt = 'site-title-on-menu wvrx-menu-html wvrx-menu-left'; // font-family $val = aweaver_getopt( 'site_title_font_family' ); if ( $val && $val != 'default' ) { $classt .= ' font-' . $val; } $classt .= aweaver_get_bold_italic('site_title','bold'); $classt .= aweaver_get_bold_italic('site_title','italic'); $site_title = '' . get_bloginfo('name') . ''; } $left = aweaver_getopt('m_primary_html_left'); $right = aweaver_getopt('m_primary_html_right'); if ( $left ) { $hide = ' ' . aweaver_getopt('m_primary_hide_left'); $left = '' . do_shortcode( $left ) . ''; $left = str_replace('%','%%',$left); // wp_nav_menu uses sprintf! This will almost always fix the issue. } elseif (is_customize_preview()) { $hide = ' ' . aweaver_getopt('m_primary_hide_left'); $left = ''; } if ( $right ) { $hide = ' ' . aweaver_getopt('m_primary_hide_right'); $right = '' . do_shortcode( $right ) . ''; $right = str_replace('%','%%',$right); // wp_nav_menu uses sprintf! } elseif (is_customize_preview()) { $hide = ' ' . aweaver_getopt('m_primary_hide_right'); $right = ''; } if ( aweaver_getopt_checked( 'm_primary_search' ) ) { $right = ' ' . get_search_form( false ) . ' ' . $right; } $left = $logo . $site_title . $left; if ( aweaver_getopt('use_smartmenus') ) { // ================== SMART MENUS (make any changes in default menu version, too in filters.php) $hamburger = apply_filters('aweaver_mobile_menu_name',aweaver_getopt('m_primary_hamburger')); if ( $hamburger == '' ) { $alt = aweaver_getopt('mobile_alt_label'); if ( $alt == '') $hamburger = ''; else $hamburger = '' . $alt . ''; } $left = '' . "{$hamburger}{$left}"; // +since: 3.1.10: remove empty href="" } $menu_class = apply_filters('aweaver_menu_class', 'weaverx-theme-menu wvrx-menu menu-hover', 'primary'); $align = aweaver_getopt( 'm_primary_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 ( aweaver_getopt ('m_primary_move') ) $nav_class = 'menu-primary menu-primary-moved menu-type-standard'; else $nav_class = 'menu-primary menu-primary-standard menu-type-standard'; if ( aweaver_getopt('m_primary_fixedtop') == 'fixed-top' ) { // really is a drop-down value, so need to check for === for backward compat. $class .= ' wvrx-fixedtop'; $nav_class .= ' wvrx-primary-fixedtop'; } echo "\n\n" . '
\n\n"; if ( aweaver_getopt('use_smartmenus') ) { if ( function_exists('aweaverplus_plugin_installed') ) do_action('aweaver_plus_smartmenu', 'nav-primary', 'm_primary'); // emit required JS to invoke smartmenu else { // use theme "action" aweaver_smartmenu( 'nav-primary', 'm_primary' ); } } } ?>