- md5
- f6ad083176d3ca6a0835869a8409b87b
- sha1
- 393a1d26a309085d34bf1cbaf4701d0695cb9516
- sha256
- 66a1f5acd44492f21ffb950cab8c861fa93925a2e3e05800f1bbd8f18a9e67ba
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
<?php
/**
* @version $Id: modules.php 22338 2011-11-04 17:24:53Z github_bot $
* @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.3 to 1.7.5. See them all, or every version of this file.