Guest User

sidebar.php

a guest
Aug 21st, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. <?php
  2. /* Sidebar Widget 1 */
  3. if (is_home())
  4. {
  5. gab_dynamic_sidebar( 'Sidebar1-Home' );
  6. }
  7. else
  8. {
  9. gab_dynamic_sidebar( 'Sidebar1-Innerpage' );
  10. }
  11.  
  12. /* Sidebar Top Ad */
  13. if ( get_option('of_sn_ad2') <> "" )
  14. {
  15. echo '<div class="widget"><div class="widgetinner">';
  16. if(file_exists(TEMPLATEPATH . '/ads/sidebar_top_300x250/'. current_catID() .'.php') && (is_single() || is_category())) {
  17. include_once(TEMPLATEPATH . '/ads/sidebar_top_300x250/'. current_catID() .'.php');
  18. }
  19. else
  20. {
  21. include_once(TEMPLATEPATH . '/ads/sidebar_top_300x250.php');
  22. }
  23. echo '</div></div>';
  24. }
  25.  
  26. /* Sidebar Widget 2 */
  27. if (is_home())
  28. {
  29. gab_dynamic_sidebar( 'Sidebar2-Home' );
  30. }
  31. else
  32. {
  33. gab_dynamic_sidebar( 'Sidebar2-Innerpage' );
  34. }
  35.  
  36. /* Sidebar bottom ad */
  37. if ( get_option('of_sn_ad3') <> "" )
  38. {
  39. if(file_exists(TEMPLATEPATH . '/ads/sidebar_bottom_300x250/'. current_catID() .'.php') && (is_single() || is_category())) {
  40. include_once(TEMPLATEPATH . '/ads/sidebar_bottom_300x250/'. current_catID() .'.php');
  41. }
  42. else
  43. {
  44. include_once(TEMPLATEPATH . '/ads/sidebar_bottom_300x250.php');
  45. }
  46. }
  47.  
  48. /* Sidebar Widget 3 */
  49. if (is_home())
  50. {
  51. gab_dynamic_sidebar( 'Sidebar3-Home' );
  52. }
  53. else
  54. {
  55. gab_dynamic_sidebar( 'Sidebar3-Innerpage' );
  56. }
  57. ?>
Advertisement
Add Comment
Please, Sign In to add comment