- md5
- 00a5bf0558c21685b3db1725f9f1c71f
- sha1
- f2027e2f9febc909cace2d848e281210f4dedd82
- sha256
- 96cf8aecf94112b7dcc124fb29bc0c19039ff6c2b44f596c18f19c01d0866512
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
<?php
/**
* @version $Id: modules.php 14276 2010-01-18 14:20:28Z louis $
* @package Joomla.Site
* @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;
/**
* This is a file to add template specific chrome to module rendering. To use it you would
* set the style attribute for the given module(s) include in your template to use the style
* for each given modChrome function.
*
* eg. To render a module mod_test in the sliders style, you would use the following include:
* <jdoc:include type="module" name="test" style="slider" />
*
* This gives template designers ultimate control over how modules are rendered.
*
* NOTICE: All chrome wrapping methods should be named: modChrome_{STYLE} and take the same
* two arguments.
*
* This module chrome file creates custom output for modules used with the Atomic template.
* The first function wraps modules using the "container" style in a DIV. The second function
* uses the "bottommodule" style to change the header on the bottom modules to H6. The third
* function uses the "sidebar" style to change the header on the sidebar to H3.
*/
function modChrome_container($module, &$params, &$attribs)
{
if (!empty ($module->content)) : ?>
<div class="container">
<?php echo $module->content; ?>
</div>
<?php endif;
}
function modChrome_bottommodule($module, &$params, &$attribs)
{
if (!empty ($module->content)) : ?>
<?php if ($module->showtitle) : ?>
<h6><?php echo $module->title; ?></h6>
<?php endif; ?>
<?php echo $module->content; ?>
<?php endif;
}
function modChrome_sidebar($module, &$params, &$attribs)
{
if (!empty ($module->content)) : ?>
<?php if ($module->showtitle) : ?>
<h3><?php echo $module->title; ?></h3>
<?php endif; ?>
<?php echo $module->content; ?>
<?php endif;
}
?>
The same content is in 7 releases, Joomla 1.6.0 to 1.6.6. See them all, or every version of this file.