modChrome_xhtml in system doesn't use module params - Joomla! Forum - community, help and support
using modchrome_xhtml in modules.php in system templates had hard coded <h3> not use param in module admin. have added code function does.
i think other people might other joomla 3 users might update
/templates/system/html/modules.php
i think other people might other joomla 3 users might update
/templates/system/html/modules.php
code: select all
/*
* xhtml (divs , font headder tags)
*/
function modchrome_xhtml($module, &$params, &$attribs)
{
$moduletag = $params->get('module_tag', 'div');
$headertag = htmlspecialchars($params->get('header_tag', 'h3'));
$bootstrapsize = (int) $params->get('bootstrap_size', 0);
$moduleclass = $bootstrapsize != 0 ? ' span' . $bootstrapsize : '';
if (!empty ($module->content)) : ?>
<<?php echo $moduletag; ?> class="moduletable<?php echo htmlspecialchars($params->get('moduleclass_sfx')) . $moduleclass; ?>">
<?php if ((bool) $module->showtitle) : ?>
<<?php echo $headertag; ?> class="<?php echo $params->get('header_class'); ?>"><?php echo $module->title; ?></<?php echo $headertag; ?>>
<?php endif; ?>
<?php echo $module->content; ?>
</<?php echo $moduletag; ?>>
<?php endif;
}
Comments
Post a Comment