Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

continuum-top

By: a guest on Oct 23rd, 2012  |  syntax: None  |  size: 2.48 KB  |  hits: 42  |  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 //get theme options
  2. global $con_front, $con_layout, $con_feed, $con_reviews, $con_ads, $con_misc;
  3. $con_front = get_option( 'con_front', $con_front );
  4. $con_layout = get_option( 'con_layout', $con_layout );
  5. $con_feed = get_option( 'con_feed', $con_feed );
  6. $con_reviews = get_option( 'con_reviews', $con_reviews );
  7. $con_ads = get_option( 'con_ads', $con_ads );
  8. $con_misc = get_option( 'con_misc', $con_misc ); ?>
  9.  
  10. <?php //set theme options
  11. $con_page_latest_show = $con_layout['page_latest_show'];
  12. $con_page_feed_show = $con_layout['page_feed_show'];
  13. $con_page_unique_sidebar = $con_layout['page_unique_sidebar'];
  14. $con_breadcrumb_show = $con_layout['page_breadcrumb_show'];
  15. $con_featuredimage_size = $con_layout['featuredimage_size'];
  16. $con_page_ad_post_show = $con_ads['page_ad_post_show'];
  17. $con_page_ad_feed_show = $con_ads['page_ad_feed_show'];
  18. $con_page_ad_post = $con_ads['page_ad_post'];
  19. $con_page_ad_feed = $con_ads['page_ad_feed'];
  20. ?>
  21.  
  22. <?php // use variables from page custom fields instead of continuum options page (if they exist)
  23. $override = get_post_meta($post->ID, "Show Latest Panel", $single = true);
  24. if($override!="") {
  25.         $con_page_latest_show=$override;
  26.         if($con_page_latest_show=="false") {
  27.                 $con_page_latest_show=false;   
  28.         } else {
  29.                 $con_page_latest_show=true;
  30.         }
  31. }
  32. $override = get_post_meta($post->ID, "Show Feed", $single = true);
  33. if($override!="") {
  34.         $con_page_feed_show=$override;
  35.         if($con_page_feed_show=="false") {
  36.                 $con_page_feed_show=false;     
  37.         } else {
  38.                 $con_page_feed_show=true;
  39.         }
  40. }
  41. $override = get_post_meta($post->ID, "Featured Image Size", $single = true);
  42. if($override!="") $con_featuredimage_size=$override;
  43. $override = get_post_meta($post->ID, "Show Ad Below Post", $single = true);
  44. if($override!="") {
  45.         $con_page_ad_post_show=$override;
  46.         if($con_page_ad_post_show=="false") {
  47.                 $con_page_ad_post_show=false;  
  48.         } else {
  49.                 $con_page_ad_post_show=true;
  50.         }
  51. }
  52. $override = get_post_meta($post->ID, "Show Ad Below Feed", $single = true);
  53. if($override!="") {
  54.         $con_page_ad_feed_show=$override;
  55.         if($con_page_ad_feed_show=="false") {
  56.                 $con_page_ad_feed_show=false;  
  57.         } else {
  58.                 $con_page_ad_feed_show=true;
  59.         }
  60. }
  61. ?>
  62.  
  63. <?php
  64. $sidebar="Sidebar Default";
  65. if($con_page_unique_sidebar) $sidebar="Sidebar Page"; ?>
  66.  
  67. <?php get_header(); // show header ?>
  68.  
  69.  
  70. <div id="content">        
  71.         <div class="padder">
  72.                 <div id="page-content">
  73.                         <div class="left-panel">
  74.                                 <div class="content">
  75.                                        
  76.                                         <div class="post-content">