From 555866fda2516b1c7a5be71b65736c10c2f9d00f Mon Sep 17 00:00:00 2001 From: andrewmbacon Date: Wed, 31 Dec 2014 11:20:03 -0500 Subject: [PATCH] New Left Nav Removed attributes from parent menu items. Changed classes on children menu items. Added new margin for .sub-menu --- inc/nav-walker.php | 722 ++++++++++++++++++++++----------------------- sass/nav.scss | 4 + style.css | 3 + 3 files changed, 364 insertions(+), 365 deletions(-) diff --git a/inc/nav-walker.php b/inc/nav-walker.php index 605724b..9135f45 100644 --- a/inc/nav-walker.php +++ b/inc/nav-walker.php @@ -1,366 +1,358 @@ - - * - * Note on $depth: Counterintuitively, $depth here means the "depth right before we start this menu". - * So basically add one to what you'd expect it to be - */ - function start_lvl(&$output, $depth, $args) - { - if(isset($args->with_search) && $args->with_search == true){ - add_filter('wp_nav_menu_items', 'search_menu_item', 1, 2); - } - - $tabs = str_repeat("\t", $depth); - // If we are about to start the first submenu, we need to give it a dropdown-menu class - if ($depth >= 0) { //really, level-1 or level-2, because $depth is misleading here (see note above) - $output .= "\n{$tabs}