Ciao a tutti,
non sapevo se postare in php, spero vada bene lo stesso.

Sto modificando un template di joomla che ha i titoli del moduli disabilitati.

Nel file modules.php del template c'è questo:

// no direct access
defined('_JEXEC') or die('Restricted access');

function modChrome_tw($module, &$params, &$attribs)
{
if (!empty ($module->content)) : ?>

<div class="moduletable <?php echo $params->get('moduleclass_sfx'); ?>">
<?php if ($module->showtitle != 0) : ?>
<h3><?php echo $module->title; ?></h3>
<?php endif; ?>
<?php echo $module->content; ?> </div>
<?php endif;
}


function modChrome_twsplit($module, &$params, &$attribs)
{
if (!empty ($module->content)) : ?>
<div class="moduletable <?php echo $params->get('moduleclass_sfx'); ?>">
<?php if ($module->showtitle != 0) : ?>
<?php

$str = $module->title;
$temp_title = explode(' ', $str, 2);
$i=0;
$the_title ="";
foreach ($temp_title as $word) {


if($i==0){
$the_title .= "".$word." ";
}else{
$the_title .= $word." ";
}
$i++;

}?>
<h3><?php echo $the_title; ?></h3>
<?php endif; ?>
<div class="modContent">
<?php echo $module->content; ?></div> </div>
<?php endif;
}


?>

Come faccio a far tornare tutto alla normalità in modo che dal pannello administrator possa o meno decidere di far visualizzare il titolo di un modulo?

Grazie in anticipo.