page.php 877 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * The template for displaying all 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 while ( have_posts() ) : the_post(); ?>
  17. <?php get_template_part( 'content', 'page' ); ?>
  18. <?php
  19. // If comments are open or we have at least one comment, load up the comment template
  20. if ( comments_open() || get_comments_number() ) :
  21. comments_template();
  22. endif;
  23. ?>
  24. <?php endwhile; // end of the loop. ?>
  25. </main><!-- .site-main -->
  26. </div><!-- .content-area -->
  27. <?php get_footer(); ?>