This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 13th, 2012  |  syntax: None  |  size: 0.97 KB  |  views: 11  |  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. if (get_option_tree('select_blog_header', '')) {
  3. $blog_header_element = get_option_tree('select_blog_header', '');
  4. if ($blog_header_element == 'Post Slider'){
  5. get_header('post-slider'); }
  6. if ($blog_header_element == 'Orbit slider'){
  7. get_header('orbit-slider'); }
  8. if ($blog_header_element == 'Custom Header'){
  9. get_header('custom-element'); }
  10. if ($blog_header_element == 'Custom Header w/ background'){
  11. get_header('custom-element-bg'); }
  12.  
  13. if ($blog_header_element == 'None'){
  14. get_header(); }
  15. } else {get_header();}
  16. ?>
  17. <div id="container_bg">
  18.  
  19. <?php if (get_option_tree('blog_layout_sidebar', '')) { echo '<div id="content_full2" >'; } else {echo '<div id="content" class="left">';} ?>
  20.  
  21. <?php get_template_part( 'loop', 'index' ); ?>
  22.  
  23. </div><!-- #content -->
  24. <?php if (get_option_tree('blog_layout_sidebar', '')) {} else {echo '<div id="sidebar_right">', get_sidebar() . '</div>';}?>
  25. <div class="clear"></div>
  26.  
  27. </div><!-- #container -->
  28. <?php get_footer(); ?>
clone this paste RAW Paste Data