page.php 902 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * The template for displaying pages
  4. *
  5. * This is the template that displays all pages by default.
  6. * Please note that this is the WordPress construct of pages and that
  7. * other "pages" on your WordPress site will use a different template.
  8. *
  9. * @package WordPress
  10. * @subpackage Twenty_Fifteen
  11. * @since Twenty Fifteen 1.0
  12. */
  13. get_header(); ?>
  14. <div id="primary" class="content-area">
  15. <main id="main" class="site-main" role="main">
  16. <?php
  17. // Start the loop.
  18. while ( have_posts() ) : the_post();
  19. // Include the page content template.
  20. get_template_part( 'content', 'page' );
  21. // If comments are open or we have at least one comment, load up the comment template.
  22. if ( comments_open() || get_comments_number() ) :
  23. comments_template();
  24. endif;
  25. // End the loop.
  26. endwhile;
  27. ?>
  28. </main><!-- .site-main -->
  29. </div><!-- .content-area -->
  30. <?php get_footer(); ?>