function end_lvl(&$output, $depth = 0, $args = array()) { if (0 == $depth) { return; } parent::end_lvl($output, $depth, $args); }
function end_lvl(&$output, $depth, $args) { if (!$args->dropdown) { parent::end_lvl($output, $depth, $args); } else { $indent = str_repeat("\t", $depth); } // don't output children closing tag }
/** * @see Walker::end_lvl() * @since 3.0.0 * * @param string $output Passed by reference. Used to append additional content. * @param int $depth Depth of page. Used for padding. */ function end_lvl(&$output, $depth = 0, $args = array()) { if ($this->in_current_menu && $depth > 0) { parent::end_lvl($output, $depth, $args); } /* If we're in the current menu and we are closing the top-level item then set $in_current_menu to false */ if ($depth == 0) { $this->in_current_menu = false; } }
public function end_lvl(&$output, $depth = 0, $args = array()) { $item_output = ''; parent::end_lvl($item_output, $depth, $args); if ($this->in_mega_menu) { // end of mega-menu parent - at top-level! if ($depth == 0) { $output .= apply_filters('bunyad_mega_menu_end_lvl', array('sub_menu' => $this->last_lvl, 'item' => $this->current_item)); // unset $this->last_lvl = ''; return; } $this->last_lvl .= $item_output; return; } $output .= $item_output; }
/** * (non-PHPdoc) * @see Walker_Nav_Menu::end_lvl() * @param string $output Passed by reference. Used to append additional content. * @param int $depth Depth of page. Used for padding. */ public function end_lvl(&$output, $depth) { parent::end_lvl(&$output, $depth); $this->remove_unwanted_chars(&$output); }
function end_lvl(&$output, $depth = 0, $args = array()) { parent::end_lvl($output, $depth, $args); }
function end_lvl(&$output, $depth = 0, $args = array()) { parent::end_lvl($output, $depth, $args); $this->level--; }