/** * render list of widgets for column. * * @access protected * @param stdClass $col * @return String $output */ protected function renderWidgetsInCol($col) { if (is_object($col) && isset($col->widgets)) { $widgets = $col->widgets; $widgets = explode('|wid-', '|' . $widgets); if (!empty($widgets)) { $dwidgets = WPO_Megamenu_Widget::getInstance()->loadWidgets(); $shortcode = WPO_Shortcodes::getInstance(); unset($widgets[0]); $output = ''; foreach ($widgets as $wid) { $o = $dwidgets->getWidgetById($wid); if ($o) { $content = !is_admin() ? $shortcode->renderContent($o->type, $o->params) : ""; $output .= '<div id="wid-' . $wid . '" class="wpo-widget">' . $content . '</div>'; } } return $output; } } }
public function showListShortCodes() { $obj = WPO_Shortcodes::getInstance(); $shortcodes = $obj->getButtons(); require WPO_FRAMEWORK_PATH . 'megamenu/templates/shortcodes.php'; exit; }
public function showListShortCodes() { $obj = WPO_Shortcodes::getInstance(); $shortcodes = $obj->getButtons(); require FRAMEWORK_ADMIN_TEMPLATE_PATH . 'megamenu/shortcodes.php'; exit; }
public function megaMenuVerticalPage() { $wpos = WPO_Shortcodes::getInstance(); $widgets = WPO_Megamenu_Widget::getInstance()->getWidgets(); require WPO_FRAMEWORK_ADMIN_TEMPLATE_PATH . 'megamenu/editor-vertical.php'; }