protected function _render_widget($col)
 {
     $widget = $col['position'];
     $dwidgets = PGL_Megamenu_Widget::getInstance()->loadWidgets();
     $shortcode = PGL_Shortcodes::getInstance();
     $output = '';
     $o = $dwidgets->getWidgetById($widget);
     if ($o) {
         $output .= '<div class="pgl-module module">';
         $output .= $shortcode->renderContent($o->type, $o->params);
         $output .= '</div>';
     }
     return $output;
 }
예제 #2
0
 public function showListShortCodes()
 {
     $obj = PGL_Shortcodes::getInstance();
     $shortcodes = $obj->getButtons();
     require PGL_MEGAMENU_PATH . 'template/shortcodes.php';
     exit;
 }