| @@ 43-49 (lines=7) @@ | ||
| 40 | * @param stdClass $args An object of wp_nav_menu() arguments. |
|
| 41 | */ |
|
| 42 | public function start_lvl( &$output, $depth = 0, $args = array() ) { |
|
| 43 | if ( isset( $args->item_spacing ) && 'discard' === $args->item_spacing ) { |
|
| 44 | $t = ''; |
|
| 45 | $n = ''; |
|
| 46 | } else { |
|
| 47 | $t = "\t"; |
|
| 48 | $n = "\n"; |
|
| 49 | } |
|
| 50 | $indent = str_repeat( $t, $depth ); |
|
| 51 | // Default class to add to the file. |
|
| 52 | $classes = array( 'dropdown-menu' ); |
|
| @@ 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 | $value = ''; |
|