page.php 929 B

1234567891011121314151617181920212223242526272829303132333435363738
  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
  7. * and that other 'pages' on your WordPress site will use a
  8. * different template.
  9. *
  10. * @package Gazette
  11. */
  12. get_header(); ?>
  13. <div class="site-content-inner">
  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><!-- #main -->
  26. </div><!-- #primary -->
  27. <?php get_sidebar(); ?>
  28. </div><!-- .site-content-inner -->
  29. <?php get_footer(); ?>