@@ 96-102 (lines=7) @@ | ||
93 | * @param int $id Current item ID. |
|
94 | */ |
|
95 | public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { |
|
96 | if ( isset( $args->item_spacing ) && 'discard' === $args->item_spacing ) { |
|
97 | $t = ''; |
|
98 | $n = ''; |
|
99 | } else { |
|
100 | $t = "\t"; |
|
101 | $n = "\n"; |
|
102 | } |
|
103 | $indent = ( $depth ) ? str_repeat( $t, $depth ) : ''; |
|
104 | ||
105 | $classes = empty( $item->classes ) ? array() : (array) $item->classes; |
|
@@ 41-47 (lines=7) @@ | ||
38 | * @param stdClass $args An object of wp_nav_menu() arguments. |
|
39 | */ |
|
40 | public function start_lvl( &$output, $depth = 0, $args = array() ) { |
|
41 | if ( isset( $args->item_spacing ) && 'discard' === $args->item_spacing ) { |
|
42 | $t = ''; |
|
43 | $n = ''; |
|
44 | } else { |
|
45 | $t = "\t"; |
|
46 | $n = "\n"; |
|
47 | } |
|
48 | $indent = str_repeat( $t, $depth ); |
|
49 | // Default class to add to the file. |
|
50 | $classes = array( 'dropdown-menu' ); |