Hi there
I have customized the Atomic template and am having trouble with some module chrome.
In the template directory html/module.php i have this function:
Code:
function modChrome_footer($module, &$params, &$attribs)
{
if (!empty ($module->content)) : ?>
<?php if ($module->showtitle) : ?>
<div class="footer-module<?php echo $params->get('moduleclass_sfx') ?>">
<h6><?php echo $module->title; ?></h6>
<?php endif; ?>
<?php echo $module->content; ?>
</div>
<?php endif;
}
My problem is that the code
Code:
<?php echo $module->content; ?>
inserts my content wrapped in a div which has
Code:
<?php echo $params->get('moduleclass_sfx') ?>
applied to it. So the resultant html output looks like this:
Code:
<div class="footer-module moduleclassFromCMS">
<h6>titleHere</h6>
<div class="module moduleclassFromCMS">
Module content here
</div>
</div>
See I'm getting a double up!
How do i stop
Code:
<?php echo $module->content; ?>
from inserting the Custom Class specified from the Module in the CMS in the wrapping <div>??
Thank you for reading
