CoreFiles by mySites.guru
modules.php42 lines, 1,194 bytes, from Joomla_2.5.0-Stable-Full_Package.zip
Raw History Compare with 1.7.5
md5
d105e188a60d677e598c49b92054bb0b
sha1
d2508243e373d0099c91e9a50889bef9f3080550
sha256
1eef4d87053ecaa4adf510cbad6c7cfda6522c892c3fa5cb8919188f4da391df
<?php
/**
 * @package		Joomla.Administrator
 * @subpackage	Templates.bluestork
 * @copyright	Copyright (C) 2005 - 2012 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 9 releases, Joomla 2.5.0 to 2.5.8. See them all, or every version of this file.