<a href="javascript:void(0);" title="<?php _e('Clear Search', WR_MEGAMENU_TEXTDOMAIN); ?> " class="jsn-reset-search" id="reset-search-btn"><i class="icon-remove"></i></a> </div> </fieldset> </div> <!-- Elements --> <ul class="jsn-items-list"> <?php // shortcode elements foreach ($elements_html as $idx => $element) { echo balanceTags($element); } // widgets global $wr_megamenu_widgets; foreach ($wr_megamenu_widgets as $wg_class => $config) { $extra_ = $config['extra_']; $config['edit_using_ajax'] = true; echo balanceTags(WR_Megamenu_Shortcode_Element::el_button($extra_, $config)); } ?> </ul> </div> </div> <?php }
/** * Constructor * * @return void */ public function __construct() { parent::__construct(); }
/** * Over write parent method * * @param string $content * @param string $shortcode_data * @param string $el_title * @return string */ public function element_in_megamenu($content = '', $shortcode_data = '', $el_title = '', $index = '') { $this->config['sub_element'] = true; return parent::element_in_megamenu($content, $shortcode_data, $el_title, $index); }