Author: sevein
Date: Wed Oct 14 07:23:06 2009
New Revision: 3737

Log:
Drop some layers in layout.php if their components were disabled, checked by 
has_component_slot(). Fixes issue 1002.

Modified:
   trunk/apps/qubit/templates/layout.php

Modified: trunk/apps/qubit/templates/layout.php
==============================================================================
--- trunk/apps/qubit/templates/layout.php       Wed Oct 14 00:02:39 2009        
(r3736)
+++ trunk/apps/qubit/templates/layout.php       Wed Oct 14 07:23:06 2009        
(r3737)
@@ -59,14 +59,18 @@
 
     <div id="context-column">
 
+    <?php if (has_component_slot('SearchBox') || 
has_component_slot('BrowseBox')): ?>
     <div class="context-column-box">
     <?php include_component_slot('SearchBox') ?>
     <?php include_component_slot('BrowseBox') ?>
     </div>
+    <?php endif;?>
 
+    <?php if (has_component_slot('sidebar')): ?>
     <div id="sidebar">
       <?php include_component_slot('sidebar') ?>
     </div>
+    <?php endif; ?>
 
     </div> <!-- close context-column" -->
 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to