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; }
<?php /** * YOOscroller Joomla! Module * * @author yootheme.com * @copyright Copyright (C) 2007 YOOtheme Ltd. & Co. KG. All rights reserved. * @license GNU/GPL */ // no direct access defined('_JEXEC') or die('Restricted access'); JPluginHelper::importPlugin('content', 'loadmodule'); if (JPluginHelper::isEnabled('content', 'loadmodule')) { $plgParams = new JParameter(''); plgContentLoadModule($item, $plgParams); } ?> <div class="article"> <?php echo $item->text; ?> <?php if (isset($item->linkOn) && $item->readmore && $params->get('readmore')) { echo '<a class="readmore" href="' . $item->linkOn . '">Read more...</a>'; } ?> </div>