page.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 may use a
  8. * different template.
  9. *
  10. * @link https://codex.wordpress.org/Template_Hierarchy
  11. *
  12. * @package Shoreditch
  13. */
  14. get_header(); ?>
  15. <?php
  16. while ( have_posts() ) : the_post();
  17. get_template_part( 'template-parts/content', 'hero' );
  18. endwhile; // End of the loop.
  19. ?>
  20. <div class="site-content-wrapper">
  21. <div id="primary" class="content-area">
  22. <main id="main" class="site-main" role="main">
  23. <?php
  24. while ( have_posts() ) : the_post();
  25. get_template_part( 'template-parts/content', 'page' );
  26. // If comments are open or we have at least one comment, load up the comment template.
  27. if ( comments_open() || get_comments_number() ) {
  28. comments_template();
  29. }
  30. endwhile; // End of the loop.
  31. ?>
  32. </main><!-- #main -->
  33. </div><!-- #primary -->
  34. <?php get_sidebar(); ?>
  35. </div><!-- .site-content-wrapper -->
  36. <?php
  37. get_sidebar( 'footer' );
  38. get_footer();