1. <?php get_header(); ?>
  2.  
  3.  
  4.  
  5. <?php
  6.  
  7. global $wp_query;
  8.  
  9. $postid = $wp_query->post->ID;
  10.  
  11. if ( get_post_meta( $postid, 'post_featpages', true ) == "Yes" ) { ?>
  12.  
  13. <?php include (TEMPLATEPATH . '/featured-pages.php'); ?>
  14.  
  15. <?php } ?>
  16.  
  17.  
  18.  
  19. <div id="page" class="clearfix">
  20.  
  21.  
  22.  
  23. <div id="contentleft">
  24.  
  25.  
  26.  
  27. <?php if ( get_post_meta( $postid, 'post_featcontent', true ) == "Narrow Width Featured Content Slider" ) { ?>
  28.  
  29. <?php include (TEMPLATEPATH . '/featured-narrow.php'); ?>
  30.  
  31. <?php } ?>
  32.  
  33.  
  34.  
  35. <?php include (TEMPLATEPATH . '/banner468.php'); ?>
  36.  
  37.  
  38.  
  39. <?php if ( get_post_meta( $postid, 'post_featgalleries', true ) == "Yes" ) { ?>
  40.  
  41. <?php include (TEMPLATEPATH . '/featured-galleries.php'); ?>
  42.  
  43. <?php } ?>
  44.  
  45.  
  46.  
  47. <?php if ( get_post_meta( $postid, 'post_featvideo', true ) == "Yes" ) { ?>
  48.  
  49. <?php include (TEMPLATEPATH . '/featured-videos.php'); ?>
  50.  
  51. <?php } ?>
  52.  
  53.  
  54.  
  55. <div id="content" class="maincontent">
  56.  
  57.  
  58.  
  59. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  60.  
  61.  
  62.  
  63. <div class="post clearfix" id="post-main-<?php the_ID(); ?>">
  64.  
  65.  
  66.  
  67. <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?>
  68.  
  69.  
  70.  
  71. <div class="entry">
  72.  
  73.  
  74.  
  75. <h1 class="page-title"><?php the_title(); ?></h1>
  76.  
  77.  
  78.  
  79. <?php if ( get_post_meta( $post->ID, 'video_embed', true ) ) { ?>
  80.  
  81. <div class="single-video">
  82.  
  83. <?php echo get_post_meta( $post->ID, 'video_embed', true ); ?>
  84.  
  85. </div>
  86.  
  87. <?php } ?>
  88.  
  89.  
  90.  
  91. <?php the_content(); ?>
  92.  
  93.  
  94.  
  95. <div style="clear:both;"></div>
  96.  
  97.  
  98.  
  99. <?php wp_link_pages(); ?>
  100.  
  101.  
  102.  
  103. </div>
  104.  
  105.  
  106.  
  107. </div>
  108.  
  109.  
  110.  
  111. <?php endwhile; endif; ?>
  112.  
  113.  
  114.  
  115. </div>
  116.  
  117.  
  118.  
  119. <?php include (TEMPLATEPATH . '/sidebar-narrow.php'); ?>
  120.  
  121.  
  122.  
  123. </div>
  124.  
  125.  
  126.  
  127. <?php get_sidebar(); ?>
  128.  
  129.  
  130.  
  131. <?php get_footer(); ?>