Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Sep 7th, 2012  |  syntax: None  |  size: 1.00 KB  |  hits: 5  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /**
  3.  * The Sidebar containing the main widget area.
  4.  *
  5.  * @package Catch Themes
  6.  * @subpackage Simple_Catch
  7.  * @since Simple Catch 1.0
  8.  */
  9.  
  10.         global $post;
  11.         if( $post )
  12.                 $layout = get_post_meta( $post->ID,'simplecatch-sidebarlayout', true );
  13.                
  14.         if( empty( $layout ) || ( !is_page() && !is_single() ) )
  15.                 $layout='default';
  16.                
  17.         global $simplecatch_options_settings;
  18.     $options = $simplecatch_options_settings;
  19.        
  20.         $themeoption_layout = $options['sidebar_layout'];
  21.        
  22.         if( $layout=='left-sidebar' ||( $layout=='default' && $themeoption_layout == 'left-sidebar') ) {
  23.                 echo '<div id="sidebar" class="col4 no-margin-left">';
  24.         } else {
  25.                 echo '<div id="sidebar" class="col4">';
  26.         }
  27.  
  28.         if ( function_exists( 'dynamic_sidebar' ) ) {
  29.                 //displays 'sidebar' for all pages
  30.                 dynamic_sidebar( 'sidebar' );
  31.         }
  32.         ?>
  33.         </div><!-- #sidebar -->
  34.        
  35.         <?php
  36.         if(!( $layout=='left-sidebar' ||( $layout=='default' && $themeoption_layout == 'left-sidebar') ) ) {
  37.                 echo '<div class="row-end"></div>';
  38.         }