| @@ 47-53 (lines=7) @@ | ||
| 44 | */ |
|
| 45 | public function start_lvl(&$output, $depth = 0, $args = array()) |
|
| 46 | { |
|
| 47 | if (isset($args->item_spacing) && 'discard' === $args->item_spacing) { |
|
| 48 | $t = ''; |
|
| 49 | $n = ''; |
|
| 50 | } else { |
|
| 51 | $t = "\t"; |
|
| 52 | $n = "\n"; |
|
| 53 | } |
|
| 54 | $indent = str_repeat($t, $depth); |
|
| 55 | // Default class to add to the file. |
|
| 56 | $classes = array( 'dropdown-menu' ); |
|
| @@ 104-110 (lines=7) @@ | ||
| 101 | ||
| 102 | public function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) |
|
| 103 | { |
|
| 104 | if (isset($args->item_spacing) && 'discard' === $args->item_spacing) { |
|
| 105 | $t = ''; |
|
| 106 | $n = ''; |
|
| 107 | } else { |
|
| 108 | $t = "\t"; |
|
| 109 | $n = "\n"; |
|
| 110 | } |
|
| 111 | $indent = ($depth) ? str_repeat($t, $depth) : ''; |
|
| 112 | ||
| 113 | $classes = empty($item->classes) ? array() : (array) $item->classes; |
|