sgodar

Wikeasi Sidebar

Apr 6th, 2012
38
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * Sidebar Template
  4.  *
  5.  * If a `primary` widget area is active and has widgets, display the sidebar.
  6.  *
  7.  * @package WooFramework
  8.  * @subpackage Template
  9.  */
  10.     global $woo_options;
  11.    
  12.     if ( isset( $woo_options['woo_layout'] ) && ( $woo_options['woo_layout'] != 'layout-full' ) ) {
  13. ?> 
  14. <aside id="sidebar" class="col-left">
  15.  
  16.     <?php if ( woo_active_sidebar( 'primary' ) ) { ?>
  17.     <div class="primary">
  18.         <?php woo_sidebar( 'primary' ); ?>                 
  19.     </div>        
  20.     <?php } ?>    
  21.    
  22. </aside><!-- /#sidebar -->
  23. <?php if ( woo_active_sidebar( 'secondary' ) ) { ?>
  24. <aside id="sidebar-secondary" class="col-right">
  25.     <div class="secondary">
  26.         <?php woo_sidebar( 'secondary' ); ?>                   
  27.     </div>  
  28. </aside><!-- /#sidebar-secondary -->
  29. <?php } ?>
  30. <?php } // End IF Statement ?>
RAW Paste Data