Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Template for displaying all single posts.
  4. *
  5. * @package GeneratePress
  6. */
  7.  
  8. // No direct access, please
  9. if ( ! defined( 'ABSPATH' ) ) exit;
  10.  
  11. get_header(); ?>
  12.  
  13. <div id="primary" <?php generate_content_class();?>>
  14. <main id="main" <?php generate_main_class(); ?>>
  15. <?php do_action('generate_before_main_content'); ?>
  16. <?php while ( have_posts() ) : the_post(); ?>
  17.  
  18. <?php get_template_part( 'content', 'single' ); ?>
  19.  
  20. <?php
  21. // If comments are open or we have at least one comment, load up the comment template
  22. if ( comments_open() || '0' != get_comments_number() ) : ?>
  23. <div class="comments-area">
  24. <?php comments_template(); ?>
  25. </div>
  26. <?php endif; ?>
  27.  
  28. <?php endwhile; // end of the loop. ?>
  29. <?php do_action('generate_after_main_content'); ?>
  30. </main><!-- #main -->
  31. </div><!-- #primary -->
  32.  
  33. <?php
  34. do_action('generate_sidebars');
  35. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement