\n";
$args = array(
'fallback_cb' => 'aweaver_page_menu',
'theme_location' => $menu,
'menu_class' => $menu_class,
'container' => 'div',
'container_class' => 'wvrx-menu-container ' . $class,
'items_wrap' => $left . $right .
'
'
);
$locations = get_nav_menu_locations(); // note - the default menu is handled in aweaver_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 aweaver_Walker_Nav_Menu();
}
}
wp_nav_menu( $args );
echo "
\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' );
}
}
}
?>