Advertisement
deliciousthemes

Page with Comments

Sep 8th, 2015
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.90 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.     <?php get_template_part( 'includes/page-title' ); ?>
  4.  
  5.     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  6.    
  7.     <div class="centered-wrapper">
  8.    
  9.         <section class="percent-page <?php echo dt_sidebar_position($post->ID); ?>">
  10.             <article id="page-<?php the_ID(); ?>" class="begin-content">
  11.                     <?php the_content(); ?>
  12.             </article>
  13.             <?php
  14.                 // If comments are open or we have at least one comment, load up the comment template.
  15.                 if ( comments_open() || get_comments_number() ) :
  16.                     comments_template();
  17.                 endif;         
  18.             ?>
  19.             <div class="double-space"></div>           
  20.         </section>
  21.  
  22.         <?php endwhile; ?>
  23.  
  24.         <?php endif; ?>
  25.        
  26.         <?php
  27.             global $dt_sidebar_pos;
  28.             if(($dt_sidebar_pos === 'sidebar-right') || ($dt_sidebar_pos === 'sidebar-left'))
  29.                 get_sidebar();
  30.         ?>
  31.        
  32.  
  33.     </div><!--end centered-wrapper-->
  34.  
  35. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement