Advertisement
likoma

sidebar

May 12th, 2012
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  
  5. * Sidebar Template
  6.  
  7. *
  8.  
  9. * If a `primary` widget area is active and has widgets, display the sidebar.
  10.  
  11. *
  12.  
  13. * @package WooFramework
  14.  
  15. * @subpackage Template
  16.  
  17. */
  18.  
  19. global $woo_options;
  20.  
  21.  
  22.  
  23. $layout = $woo_options['woo_layout'];
  24.  
  25. // Cater for custom portfolio gallery layout option.
  26.  
  27. if ( is_tax( 'portfolio-gallery' ) || is_post_type_archive( 'portfolio' ) ) {
  28.  
  29. $portfolio_gallery_layout = get_option( 'woo_portfolio_layout' );
  30.  
  31.  
  32.  
  33. if ( $portfolio_gallery_layout != '' ) { $layout = $portfolio_gallery_layout; }
  34.  
  35. }
  36.  
  37.  
  38.  
  39. if ( $layout != 'one-col' ) {
  40.  
  41.  
  42.  
  43. if ( woo_active_sidebar( 'primary' ) ) {
  44.  
  45.  
  46.  
  47. woo_sidebar_before();
  48.  
  49. ?>
  50.  
  51. <div id="sidebar">
  52.  
  53. <?php
  54.  
  55. woo_sidebar_inside_before();
  56.  
  57. woo_sidebar('primary');
  58.  
  59. woo_sidebar_inside_after();
  60.  
  61. ?>
  62.  
  63. </div><!-- /#sidebar -->
  64.  
  65. <?php
  66.  
  67. woo_sidebar_after();
  68.  
  69. } // End IF Statement
  70.  
  71. } // End IF Statement
  72.  
  73. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement