@@ -75,63 +79,60 @@ class kit_custom_main_menu extends Walker_Nav_Menu {
}
}
- function start_el(&$output, $item, $depth = 0, $args=array(), $id = 0) {
- $object = $item->object;
- $type = $item->type;
- $title = $item->title;
- $description = $item->description;
- $permalink = $item->url;
+ # Menu element, equivalent to
+ function start_el(&$output, $item, $depth = 0, $args=array(), $id = 0) {
+ $object = $item->object;
+ $type = $item->type;
+ $title = $item->title;
+ $description = $item->description;
+ $permalink = $item->url;
- $theme_template_path = get_template_directory_uri();
+ $theme_template_path = get_template_directory_uri();
- if ($depth == 1) {
- $output .= '
- ';
+ } else {
+ $output .= '';
}
+ }
}