floridabeauties

WP-ClearVideo: Page Template (page.php)

Jun 14th, 2012
65
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. <?php if ( get_post_meta( $postid, 'post_featcontent', true ) == "Yes" ) { ?>
  11. <?php include (TEMPLATEPATH . '/featured-wide.php'); ?>
  12. <?php } ?>
  13.  
  14. <div id="page" class="clearfix">
  15.  
  16. <div id="contentleft">
  17.  
  18. <div id="content" class="maincontent">
  19.  
  20. <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?>
  21.  
  22. <?php include (TEMPLATEPATH . '/banner468.php'); ?>
  23.  
  24. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  25.  
  26. <div class="singlepage">
  27.  
  28. <div class="post clearfix" id="post-main-<?php the_ID(); ?>">
  29.  
  30. <div class="entry">
  31.  
  32. <h1 class="page-title"><?php the_title(); ?></h1>
  33.  
  34. <?php if ( get_post_meta( $post->ID, 'video_embed', true ) ) { ?>
  35. <div class="single-video">
  36. <?php echo get_post_meta( $post->ID, 'video_embed', true ); ?>
  37. </div>
  38. <?php } ?>
  39.  
  40. <?php the_content(); ?>
  41.  
  42. <div style="clear:both;"></div>
  43.  
  44. <?php wp_link_pages(); ?>
  45.  
  46. </div>
  47.  
  48. </div>
  49.  
  50.  
  51. </div>
  52.  
  53. <?php endwhile; endif; ?>
  54.  
  55. </div>
  56.  
  57. <?php include (TEMPLATEPATH . '/sidebar-narrow.php'); ?>
  58.  
  59. </div>
  60.  
  61. <?php get_sidebar(); ?>
  62.  
  63. <?php get_footer(); ?>
RAW Paste Data