single.php 963 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * The template for displaying all single posts.
  4. *
  5. * @package WordPress
  6. * @subpackage Parea
  7. * @since 1.0
  8. * @version 1.0
  9. */
  10. get_header(); ?>
  11. <?php get_template_part( 'template-parts/content' , 'header' ); ?>
  12. <div id="primary">
  13. <main id="main">
  14. <div class="container">
  15. <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  16. <?php
  17. while(have_posts()): the_post();
  18. get_template_part('template-parts/content', 'single');
  19. ?>
  20. <div class="row">
  21. <div class="parea-pagination text-left col-md-6 col-sm-6 col-xs-6"><?php previous_post_link(); ?></div>
  22. <div class="parea-pagination text-right col-md-6 col-sm-6 col-xs-6"><?php next_post_link(); ?></div>
  23. </div>
  24. <?php
  25. if( comments_open() || get_comments_number()):
  26. comments_template();
  27. endif;
  28. endwhile;
  29. ?>
  30. </div>
  31. </div>
  32. </main>
  33. </div>
  34. <?php get_footer(); ?>