<div id="site-navigation-wrap" class="<?php echo $wrap_classes; ?> "> <nav id="site-navigation" class="navigation main-navigation clr <?php echo $classes; ?> " role="navigation"> <?php // Top menu hook wpex_hook_main_menu_top(); // Menu Location $menu_location = apply_filters('wpex_main_menu_location', 'main_menu'); // Custom Menu - see framework/header/menu/menu-output.php $menu = wpex_custom_menu(); // Display main menu if ($menu) { wp_nav_menu(array('menu' => $menu, 'theme_location' => $menu_location, 'menu_class' => 'dropdown-menu sf-menu', 'fallback_cb' => false, 'walker' => new WPEX_Dropdown_Walker_Nav_Menu())); } else { wp_nav_menu(array('theme_location' => $menu_location, 'menu_class' => 'dropdown-menu sf-menu', 'walker' => new WPEX_Dropdown_Walker_Nav_Menu(), 'fallback_cb' => false)); } // Botttom main menu hook wpex_hook_main_menu_bottom(); ?> </nav><!-- #site-navigation --> </div><!-- #site-navigation-wrap --> <?php // After main menu hook wpex_hook_main_menu_after();
if (!defined('ABSPATH')) { exit; } // Menu Location $menu_location = apply_filters('wpex_main_menu_location', 'main_menu'); // Multisite global menu $ms_global_menu = apply_filters('wpex_ms_global_menu', false); // Display menu if defined if (has_nav_menu($menu_location) || $ms_global_menu) { // Get classes for the header menu $wrap_classes = wpex_header_menu_classes('wrapper'); $inner_classes = wpex_header_menu_classes('inner'); // Menu arguments $menu_args = array('theme_location' => $menu_location, 'menu_class' => 'dropdown-menu sf-menu', 'container' => false, 'fallback_cb' => false, 'link_before' => '<span class="link-inner">', 'link_after' => '</span>', 'walker' => new WPEX_Dropdown_Walker_Nav_Menu()); // Check for custom menu if ($menu = wpex_custom_menu()) { $menu_args['menu'] = $menu; } ?> <?php wpex_hook_main_menu_before(); ?> <div id="site-navigation-wrap" class="<?php echo $wrap_classes; ?> "> <nav id="site-navigation" class="<?php echo $inner_classes;