本文整理汇总了PHP中Walker_Nav_Menu::end_el方法的典型用法代码示例。如果您正苦于以下问题:PHP Walker_Nav_Menu::end_el方法的具体用法?PHP Walker_Nav_Menu::end_el怎么用?PHP Walker_Nav_Menu::end_el使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Walker_Nav_Menu
的用法示例。
在下文中一共展示了Walker_Nav_Menu::end_el方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
function end_el(&$output, $item, $depth = 0, $args = array())
{
if (in_array('menu-has-children', $item->classes)) {
$output .= '<i class="icon bonicons bi-angle-down menu-toggle"></i>';
}
parent::end_el($output, $item, $depth, $args);
}
示例2: array
function end_el(&$output, $item, $depth = 0, $args = array())
{
if (0 == $depth) {
return;
}
parent::end_el($output, $item, $depth, $args);
}
示例3: end_el
public function end_el(&$output, $item, $depth = 0, $args = array())
{
if ($depth === 0) {
ob_start();
?>
</div><!-- .columns.medium-4 -->
<?php
if ($this->description) {
?>
<div class="megamenu-description columns medium-8">
<?php
echo do_shortcode(wpautop($this->description));
?>
</div>
<?php
}
?>
</div><!-- .row -->
</div><!-- .megamenu-container -->
<?php
$output .= ob_get_clean();
$this->description = false;
}
parent::end_el($output, $item, $depth, $args);
}
示例4: end_el
/**
* (non-PHPdoc)
* @see Walker_Nav_Menu::end_el()
* @param string $output Passed by reference. Used to append additional content.
* @param object $item Page data object.
* @param int $depth Depth of page.
*/
public function end_el(&$output, $item, $depth)
{
setup_postdata(get_post($item->object_id));
$this->tpl->set_markup('id', 'post_' . get_the_ID())->set_markup('image', get_the_post_thumbnail(get_the_ID(), 'thumbnail'))->set_markup('permalink', get_permalink())->set_markup('title', get_the_title())->set_markup('body', get_the_excerpt());
wp_reset_postdata();
$output .= $this->tpl->replace_markup();
parent::end_el(&$output, $item, $depth);
}
开发者ID:setola,项目名称:wordpress-theme-utils-classes,代码行数:15,代码来源:ShowTitleThumbExcerptWalkerNavMenu.class.php
示例5:
function end_el(&$output, $item, $depth, $args)
{
if (!$args->dropdown) {
parent::end_el($output, $item, $depth, $args);
} else {
$output .= "</option>\n";
}
// replace closing </li> with the option tag
}
示例6: array
function end_el(&$output, $item, $depth = 0, $args = array())
{
$item_output = '';
parent::end_el($item_output, $item, $depth, $args);
if ($this->in_mega_menu && $depth > 0) {
$this->last_lvl .= $item_output;
return;
}
$output .= $item_output;
}
示例7: end_el
/**
* (non-PHPdoc)
* @see Walker_Nav_Menu::end_el()
* @param string $output Passed by reference. Used to append additional content.
* @param object $item Page data object. Not used.
* @param int $depth Depth of page. Not Used.
*/
public function end_el(&$output, $item, $depth)
{
parent::end_el(&$output, $item, $depth);
$this->remove_unwanted_chars(&$output);
}
示例8: array
function end_el(&$output, $item, $depth = 0, $args = array())
{
parent::end_el($output, $item, $depth, $args);
}
示例9: array
/**
* @see Walker::end_el()
* @since 3.0.0
*
* @param string $output Passed by reference. Used to append additional content.
* @param object $item Page data object. Not used.
* @param int $depth Depth of page. Not Used.
*/
function end_el(&$output, $item, $depth = 0, $args = array())
{
if ($this->in_current_menu && $depth > 0) {
parent::end_el($output, $item, $depth, $args);
}
}
示例10: array
function end_el(&$output, $item, $depth = 0, $args = array())
{
$output .= apply_filters('walker_nav_menu_end_el', '', $item, $depth, $args);
if ($args->mega_wrapper_end && $depth == 0) {
$output .= $args->mega_wrapper_end;
}
parent::end_el($output, $item, $depth, $args);
}