Пример #1
1
 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);
 }
 function end_el(&$output, $item, $depth = 0, $args = array())
 {
     if (0 == $depth) {
         return;
     }
     parent::end_el($output, $item, $depth, $args);
 }
    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);
    }
 /**
  * (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);
 }
 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
 }
 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;
 }
 /**
  * (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
0
 function end_el(&$output, $item, $depth = 0, $args = array())
 {
     parent::end_el($output, $item, $depth, $args);
 }
 /**
  * @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
-1
 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);
 }