joomla1.6 /joomla/administrator/components/com_cpanel/views/cpanel/tmpl/default.php

Language PHP Lines 34
MD5 Hash f1d9edd6885b9c9c42898bd995721b0b
Repository https://github.com/reechalee/joomla1.6.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
 * @version		$Id: default.php 20196 2011-01-09 02:40:25Z ian $
 * @package		Joomla.Administrator
 * @subpackage	com_cpanel
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>

<?php
echo JHtml::_('sliders.start','panel-sliders',array('useCookie'=>'1'));

foreach ($this->modules as $module) {
	$output = JModuleHelper::renderModule($module);
	$params = new JRegistry;
	$params->loadJSON($module->params);
	if ($params->get('automatic_title','0')=='0') {
		echo JHtml::_('sliders.panel', $module->title, 'cpanel-panel-'.$module->name);
	}
	elseif (method_exists('mod'.$module->name.'Helper','getTitle')) {
		echo JHtml::_('sliders.panel', call_user_func_array(array('mod'.$module->name.'Helper','getTitle'), array($params)), 'cpanel-panel-'.$module->name);		
	}
	else {
		echo JHtml::_('sliders.panel', JText::_('MOD_'.$module->name.'_TITLE'), 'cpanel-panel-'.$module->name);		
	}
	echo $output;
}

echo JHtml::_('sliders.end');
Back to Top