Fournier Daniel
2004-05-03 09:14:23 UTC
I'm experimenting with theme design, taking Xaraya_Classic theme as a
starting point.
Regarding left and right menu blocks logic, wouldn't it be simpler to
write it this way:
--------------------------------------------
<xar:if condition="empty($leftblocksgroup)">
<style>td#leftmenus { display:none; }</style>
</xar:if>
<xar:if condition="empty($rightblocksgroup)">
<style>td#rightmenus { display:none; }</style>
</xar:if>
<table id="classiccontentarea">
<tr>
<td id="leftmenus">
<div id="leftmenuswrapper">
<div class="iewintablefixer">
<xar:var name="leftblocksgroup"/>
</div>
</div>
</td>
<td id="maincontent">
<div class="iewintablefixer">
<xar:var name="centerblocksgroup"/>
<xar:module class="modulespace" main="true" />
</div>
</td>
<td id="rightmenus">
<div id="rightmenuswrapper">
<div class="iewintablefixer">
<xar:var name="rightblocksgroup"/>
</div>
</div>
</td>
</tr>
</table>
--------------------------------------------
Daniel
starting point.
Regarding left and right menu blocks logic, wouldn't it be simpler to
write it this way:
--------------------------------------------
<xar:if condition="empty($leftblocksgroup)">
<style>td#leftmenus { display:none; }</style>
</xar:if>
<xar:if condition="empty($rightblocksgroup)">
<style>td#rightmenus { display:none; }</style>
</xar:if>
<table id="classiccontentarea">
<tr>
<td id="leftmenus">
<div id="leftmenuswrapper">
<div class="iewintablefixer">
<xar:var name="leftblocksgroup"/>
</div>
</div>
</td>
<td id="maincontent">
<div class="iewintablefixer">
<xar:var name="centerblocksgroup"/>
<xar:module class="modulespace" main="true" />
</div>
</td>
<td id="rightmenus">
<div id="rightmenuswrapper">
<div class="iewintablefixer">
<xar:var name="rightblocksgroup"/>
</div>
</div>
</td>
</tr>
</table>
--------------------------------------------
Daniel