Пример #1
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;
 }
Пример #2
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;
 }
 public function _applycontentplugins(&$text)
 {
     if (!class_exists("plgContentWidgetkit_Content")) {
         JPluginHelper::importPlugin('content');
     }
     if (!function_exists("plgContentLoadModule")) {
         return;
     }
     $params = null;
     $article = new stdClass();
     $wkplugin = new plgContentWidgetkit_Content(JDispatcher::getInstance());
     $article->text = $text;
     plgContentLoadModule($article, $params);
     $wkplugin->onPrepareContent($article, $params, 0);
     $text = $article->text;
 }