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