Esempio n. 1
0
 /**
  * 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;
         }
     }
 }
Esempio n. 2
0
 public function showListShortCodes()
 {
     $obj = WPO_Shortcodes::getInstance();
     $shortcodes = $obj->getButtons();
     require WPO_FRAMEWORK_PATH . 'megamenu/templates/shortcodes.php';
     exit;
 }
Esempio n. 3
0
 public function showListShortCodes()
 {
     $obj = WPO_Shortcodes::getInstance();
     $shortcodes = $obj->getButtons();
     require FRAMEWORK_ADMIN_TEMPLATE_PATH . 'megamenu/shortcodes.php';
     exit;
 }
Esempio n. 4
0
 public function megaMenuVerticalPage()
 {
     $wpos = WPO_Shortcodes::getInstance();
     $widgets = WPO_Megamenu_Widget::getInstance()->getWidgets();
     require WPO_FRAMEWORK_ADMIN_TEMPLATE_PATH . 'megamenu/editor-vertical.php';
 }