CoreFiles by mySites.guru
modules.php42 lines, 1,194 bytes, from Joomla_2.5.21-Stable-Full_Package.zip
Raw History Compare with 2.5.20
md5
e3e1d9e2ec4526e8133d31d16ac4369b
sha1
2a2aa8ec77b47cf9c69bad6d77e58d570a97a05b
sha256
3b16cbcb1f570ec2851bf7290a9c94d527be2564b09a07c2d9d15a9c7ad86fb2
<?php
/**
 * @package		Joomla.Administrator
 * @subpackage	Templates.bluestork
 * @copyright	Copyright (C) 2005 - 2014 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 submenu style, you would use the following include:
 * <jdoc:include type="module" name="test" style="submenu" />
 *
 * 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.
 */

/*
 * Module chrome for rendering the module in a submenu
 */
function modChrome_rounded($module, &$params, &$attribs)
{
	if ($module->content) {
		?>
		<div id="<?php echo $attribs['id'] ?>">
			<div class="m">
				<?php echo $module->content; ?>
				<div class="clr"></div>
			</div>
		</div>
		<?php
	}
}
?>

The same content is in 11 releases, Joomla 2.5.18 to 2.5.28. See them all, or every version of this file.