Advertisement
Guest User

sidebar

a guest
Jan 30th, 2014
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     global $SMTheme, $post;
  3.    
  4.     if( is_page(1053) || $post->post_parent == 1053 || ($post->ancestors && in_array( 1053, $post->ancestors) ) )
  5.     {
  6.         get_sidebar( 'drugi' );
  7.     }
  8.     else
  9.     {
  10.         if ( !in_array($SMTheme->layout, array(1,3,6) ) )
  11.             get_sidebar('right');
  12.         if ( !in_array($SMTheme->layout, array(1,2) ) )
  13.             get_sidebar('left');
  14.         if ( $SMTheme->layout == 6 ) {
  15.             get_sidebar('right');
  16.         }
  17.     }
  18. ?>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement