Beispiel #1
0
 public function _applycontentplugins(&$text)
 {
     jimport('joomla.html.parameter');
     if (!class_exists("plgContentWidgetkit_Content")) {
         JPluginHelper::importPlugin('content');
     }
     $params = new JParameter();
     $article = new stdClass();
     $wkplugin = new plgContentWidgetkit_Content(JDispatcher::getInstance());
     $posplugin = new plgContentLoadmodule(JDispatcher::getInstance());
     $article->text = $text;
     $posplugin->params = $params;
     $posplugin->onContentPrepare('widgetkit', $article, $params, 0);
     $wkplugin->onContentPrepare('widgetkit', $article, $params, 0);
     $text = $article->text;
 }
Beispiel #2
0
 public function _applycontentplugins(&$text)
 {
     if (!class_exists("plgContentWidgetkit_Content")) {
         JPluginHelper::importPlugin('content');
     }
     $params = new JRegistry();
     $article = new stdClass();
     $dispatcher = JDispatcher::getInstance();
     $wkplugin = new plgContentWidgetkit_Content($dispatcher);
     $posplugin = new plgContentLoadmodule($dispatcher);
     $article->text = $text;
     $posplugin->params = $params;
     $posplugin->onContentPrepare('widgetkit', $article, $params, 0);
     $wkplugin->onContentPrepare('widgetkit', $article, $params, 0);
     $text = $article->text;
 }