Ciao a tutti.
Ecco il mio problema: vorrei modificare la larghezza dei blocchi user1 e user2 nel tempplate bizrule II, impostandoli rispettivamente a 75% e 25%, quando presenti insieme. So che bisogna agire sul file index.php del template, ma non sono un programmatore e non so come fare. Potreste aiutarmi, per favore? Il codice da modificare dovrebbe essere questo:
<?php
if ($this->countModules( "user1" )>0 && $this->countModules( "user2" )>0){
$modtopwidth = 50;
}
else if ($this->countModules( "user1","user2" )) {
$modtopwidth = 100;
}
?>
<?php if ($this->countModules( "user1" )>0 or $this->countModules( "user2" )>0) : ?>
<tr>
<?php if($this->countModules('user1')) : ?>
<td valign="top" class="contentmod" width="<?php echo $modtopwidth; ?>%">
<div>
<jdoc:include type="modules" name="user1" style="table"/>
</div>
</td>
<?php endif; ?>
<?php if ($this->countModules( "user1" )>0 && $this->countModules( "user2" )>0) : ?>
<td><div class="mod"></div></td>
<?php endif; ?>
<?php if($this->countModules('user2')) : ?>
<td valign="top" class="contentmod" width="<?php echo $modtopwidth; ?>%">
<div>
<jdoc:include type="modules" name="user2" style="table"/>
</div></td>
<?php endif; ?>
</tr>
<tr><td colspan="3"></td></tr>
<?php endif; ?>