b0y-101 Mini Shell


Current Path : E:/www/plan/components/com_jevents/views/default/helpers/
File Upload :
Current File : E:/www/plan/components/com_jevents/views/default/helpers/defaultloadmodules.php

<?php

defined('_JEXEC') or die('Restricted access');

function DefaultLoadModules($view, $position)
{


	$cfg = JEVConfig::getInstance();

	$article = JTable::getInstance('content');
	$article->text = "{loadposition $position}";

	$app = JFactory::getApplication();
	$params = JComponentHelper::getParams("com_content");

	JPluginHelper::importPlugin('content');

	$results = JFactory::getApplication()->triggerEvent('onContentPrepare', array('com_content.article', &$article, &$params, 0));

        if ($article->text == "{loadposition $position}"){
		// in case the content plugin is not enabled
		return "";
	}
	else {
		echo $article->text;
	}

}


Copyright © 2019 by b0y-101