grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026
*
* 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
* three arguments.
*/
/*
* Default Module Chrome that has sematic markup and has best SEO support
*/
function modChrome_T3Xhtml($module, &$params, &$attribs)
{
$badge = preg_match ('/badge/', $params->get('moduleclass_sfx'))? ' ' : '';
$moduleTag = htmlspecialchars($params->get('module_tag', 'div'));
$headerTag = htmlspecialchars($params->get('header_tag', 'h3'));
$headerClass = $params->get('header_class');
$bootstrapSize = $params->get('bootstrap_size');
$moduleClass = !empty($bootstrapSize) ? ' col-sm-' . (int) $bootstrapSize . '' : '';
$moduleClassSfx = htmlspecialchars($params->get('moduleclass_sfx'));
if (!empty ($module->content)) {
$html = "<{$moduleTag} class=\"t3-module module{$moduleClassSfx} {$moduleClass}\" id=\"Mod{$module->id}\">" .
"
" . $badge;
if ($module->showtitle != 0) {
if ($module->showtitle != 0) {
$title = explode(':', trim($module->title));
}
if(count($title) == 2) {
$html .= "<{$headerTag} class=\"module-title {$headerClass}\">";
$html .= "
{$title[0]}";
$html .= "
{$title[1]}";
$html .= "{$headerTag}>";
} else {
$html .= "<{$headerTag} class=\"module-title {$headerClass}\">
{$module->title}{$headerTag}>";
}
}
$html .= "
{$module->content}
{$moduleTag}>";
echo $html;
}
}
function modChrome_t3tabs($module, $params, $attribs)
{
$area = isset($attribs['id']) ? (int) $attribs['id'] :'1';
$area = 'area-'.$area;
static $modulecount;
static $modules;
if ($modulecount < 1) {
$modulecount = count(JModuleHelper::getModules($attribs['name']));
$modules = array();
}
if ($modulecount == 1) {
$temp = new stdClass;
$temp->content = $module->content;
$temp->title = $module->title;
$temp->params = $module->params;
$temp->id = $module->id;
$modules[] = $temp;
// list of moduletitles
echo '';
$counter = 0;
// modulecontent
foreach($modules as $rendermodule) {
$counter ++;
echo '
';
echo $rendermodule->content;
echo '
';
}
echo '
';
echo '';
$modulecount--;
} else {
$temp = new stdClass;
$temp->content = $module->content;
$temp->params = $module->params;
$temp->title = $module->title;
$temp->id = $module->id;
$modules[] = $temp;
$modulecount--;
}
}
function modChrome_t3slider($module, &$params, &$attribs)
{
$badge = preg_match ('/badge/', $params->get('moduleclass_sfx'))?"
showtitle != 0) : ?>
";
$html .="<{$headerTag} class=\"module-title {$headerClass}\">";
// $html .="{$first_letter}";
$html .=$module->title;
$html .="{$headerTag}>";
$html .='
';?>