- md5
- 611cacb1b6b24dbd5b765ff7da0fad65
- sha1
- 779d1847cc56571b5d0c4eba802ab62f5d009f77
- sha256
- a5e99f4b54c25608c0eb52c49f33196a04eb9ce5c5d4260186c45d531e576f7a
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
<?php
/**
* @version $Id: modules.php 21320 2011-05-11 01:01:37Z dextercowley $
* @package Joomla.Administrator
* @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;
/*
* none (output raw module content)
*/
function modChrome_none($module, &$params, &$attribs)
{
echo $module->content;
}
/*
* xhtml (divs and font header tags)
*/
function modChrome_xhtml($module, &$params, &$attribs)
{
$content = trim($module->content);
if (!empty ($content)) : ?>
<div class="module<?php echo htmlspecialchars($params->get('moduleclass_sfx')); ?>">
<?php if ($module->showtitle != 0) : ?>
<h3><?php echo $module->title; ?></h3>
<?php endif; ?>
<?php echo $content; ?>
</div>
<?php endif;
}
/*
* allows sliders
*/
function modChrome_sliders($module, &$params, &$attribs)
{
$content = trim($module->content);
if (!empty($content))
{
if ($params->get('automatic_title','0')=='0') {
echo JHtml::_('sliders.panel', $module->title, 'module'.$module->id);
}
elseif (method_exists('mod'.$module->name.'Helper','getTitle')) {
echo JHtml::_('sliders.panel', call_user_func_array(array('mod'.$module->name.'Helper','getTitle'), array($params)), 'module'.$module->id);
}
else {
echo JHtml::_('sliders.panel', JText::_('MOD_'.$module->name.'_TITLE'), 'module'.$module->id);
}
echo $content;
}
}
/*
* allows tabs
*/
function modChrome_tabs($module, &$params, &$attribs)
{
$content = trim($module->content);
if (!empty($content))
{
if ($params->get('automatic_title','0')=='0') {
echo JHtml::_('tabs.panel', $module->title, 'module'.$module->id);
}
elseif (method_exists('mod'.$module->name.'Helper','getTitle')) {
echo JHtml::_('tabs.panel', call_user_func_array(array('mod'.$module->name.'Helper','getTitle'), array($params)), 'module'.$module->id);
}
else {
echo JHtml::_('tabs.panel', JText::_('MOD_'.$module->name.'_TITLE'), 'module'.$module->id);
}
echo $content;
}
}
The same content is in 3 releases, Joomla 1.7.0 to 1.7.2. See them all, or every version of this file.