本文整理汇总了PHP中Walker_Nav_Menu::end_lvl方法的典型用法代码示例。如果您正苦于以下问题:PHP Walker_Nav_Menu::end_lvl方法的具体用法?PHP Walker_Nav_Menu::end_lvl怎么用?PHP Walker_Nav_Menu::end_lvl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Walker_Nav_Menu
的用法示例。
在下文中一共展示了Walker_Nav_Menu::end_lvl方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
function end_lvl(&$output, $depth = 0, $args = array())
{
if (0 == $depth) {
return;
}
parent::end_lvl($output, $depth, $args);
}
示例2:
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
}
示例3: array
/**
* @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;
}
}
示例4: end_lvl
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;
}
示例5: end_lvl
/**
* (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);
}
示例6: array
function end_lvl(&$output, $depth = 0, $args = array())
{
parent::end_lvl($output, $depth, $args);
}
示例7: array
function end_lvl(&$output, $depth = 0, $args = array())
{
parent::end_lvl($output, $depth, $args);
$this->level--;
}