Xaraya_Classic theme menu blocks logic

Fournier Daniel <[email protected]> Mon, 03 May 2004 11:14:23 +0200
Newsgroups gmane.comp.cms.xaraya.ui
Organization Xaraya News Server
Message-ID <[email protected]>
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