Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
communs
communs-wp-theme
Commits
9e045403
Commit
9e045403
authored
Jul 30, 2016
by
numahell
Browse files
Register a new nav menu template location.
parent
c1e25bdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/navigation.php
View file @
9e045403
...
...
@@ -9,10 +9,30 @@
register_nav_menus
(
array
(
'top-bar-r'
=>
'Right Top Bar'
,
'top-content-r'
=>
'Right Content Bar'
,
'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
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment