Advertisement
Guest User

page.php

a guest
Nov 7th, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.76 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.     <?php
  4.     global $wp_query;
  5.     $postid = $wp_query->post->ID;
  6.     if ( get_post_meta( $postid, 'post_featpages', true ) == "Yes" ) { ?>
  7.         <?php include (TEMPLATEPATH . '/featured-pages.php'); ?>
  8.     <?php } ?>
  9.  
  10.     <div id="page" class="clearfix">
  11.  
  12.         <div id="contentleft" class="clearfix">
  13.  
  14.             <?php if ( get_post_meta( $postid, 'post_featcontent', true ) == "Narrow Width Featured Content Slider" ) { ?>
  15.                 <?php include (TEMPLATEPATH . '/featured-narrow.php'); ?>
  16.             <?php } ?>
  17.  
  18.             <?php include (TEMPLATEPATH . '/banner468.php'); ?>
  19.  
  20.             <?php if ( get_post_meta( $postid, 'post_featgalleries', true ) == "Yes" ) { ?>
  21.                 <?php include (TEMPLATEPATH . '/featured-galleries.php'); ?>
  22.             <?php } ?>
  23.  
  24.             <?php if ( get_post_meta( $postid, 'post_featvideo', true ) == "Yes" ) { ?>
  25.                 <?php include (TEMPLATEPATH . '/featured-videos.php'); ?>
  26.             <?php } ?>
  27.  
  28.             <div id="content" class="maincontent">
  29.  
  30. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  31.  
  32.                 <div class="post clearfix" id="post-main-<?php the_ID(); ?>">
  33.  
  34.                     <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?>
  35.  
  36.                     <div class="entry">
  37.  
  38.                         <h1 class="page-title"><?php the_title(); ?></h1>
  39.  
  40.                         <?php if ( get_post_meta( $post->ID, 'video_embed', true ) ) { ?>
  41.                             <div class="single-video">
  42.                                 <?php echo get_post_meta( $post->ID, 'video_embed', true ); ?>
  43.                             </div>
  44.                         <?php } ?>
  45.  
  46.                         <?php the_content(); ?>
  47.  
  48.                         <div style="clear:both;"></div>
  49.  
  50.                         <?php wp_link_pages(); ?>
  51.  
  52.                     </div>
  53.  
  54.                 </div>
  55.  
  56. <?php endwhile; endif; ?>
  57.                
  58.             </div>
  59.  
  60.             <?php include (TEMPLATEPATH . '/sidebar-narrow.php'); ?>
  61.  
  62.         </div>
  63.  
  64. <?php get_sidebar(); ?>
  65.  
  66. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement