\n";
$args = array(
'fallback_cb' => 'weaverx_page_menu',
'theme_location' => $menu,
'menu_class' => $menu_class,
'container' => 'div',
'container_class' => 'wvrx-menu-container ' . $class,
'items_wrap' => $left . $right .
'
'
);
$alt_menu = weaverx_get_per_page_value('_pp_alt_primary_menu');
if ( $alt_menu != '' ) {
$args['theme_location'] = '';
$args['menu'] = wp_get_nav_menu_object($alt_menu);
} else {
$locations = get_nav_menu_locations(); // note - the default menu is handled in weaverx_page_menu() in filters.php
if ( isset( $locations[ $menu ] ) ) {
$the_menu = wp_get_nav_menu_object( $locations[ $menu ] );
if ( ! empty( $the_menu )) {
$args['fallback_cb'] = '';
$args['walker'] = new weaverx_Walker_Nav_Menu();
}
}
}
wp_nav_menu( $args );
echo "
\n\n";
if ( weaverx_getopt('use_smartmenus') ) {
if ( function_exists('weaverxplus_plugin_installed') )
do_action('weaverx_plus_smartmenu', 'nav-primary', 'm_primary'); // emit required JS to invoke smartmenu
else { // use theme "action"
weaverx_smartmenu( 'nav-primary', 'm_primary' );
}
}
}
?>