Commit 9e045403 authored by numahell's avatar numahell
Browse files

Register a new nav menu template location.

parent c1e25bdc
...@@ -9,10 +9,30 @@ ...@@ -9,10 +9,30 @@
register_nav_menus(array( register_nav_menus(array(
'top-bar-r' => 'Right Top Bar', 'top-bar-r' => 'Right Top Bar',
'top-content-r' => 'Right Content Bar',
'mobile-nav' => 'Mobile', 'mobile-nav' => 'Mobile',
)); ));
/**
* Desktop navigation - right content bar
*
* @link http://codex.wordpress.org/Function_Reference/wp_nav_menu
*/
if ( ! function_exists( 'foundationpress_content_bar_r' ) ) {
function foundationpress_content_bar_r() {
wp_nav_menu( array(
'container' => false,
'menu_class' => 'dropdown menu',
'items_wrap' => '<ul id="%1$s" class="%2$s desktop-menu" data-dropdown-menu>%3$s</ul>',
'theme_location' => 'top-content-r',
'depth' => 3,
'fallback_cb' => false,
'walker' => new Foundationpress_Top_Bar_Walker(),
));
}
}
/** /**
* Desktop navigation - right top bar * Desktop navigation - right top bar
* *
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment