Allow nav depth override

This commit is contained in:
Foxaii
2013-08-11 21:59:19 +01:00
parent a8d1a09612
commit 80e77837dd

View File

@@ -80,7 +80,7 @@ function roots_nav_menu_args($args = '') {
$roots_nav_menu_args['items_wrap'] = '<ul class="%2$s">%3$s</ul>';
}
if (current_theme_supports('bootstrap-top-navbar')) {
if (current_theme_supports('bootstrap-top-navbar') && !$args['depth']) {
$roots_nav_menu_args['depth'] = 2;
}