full-width-page.php 756 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Template Name: Full Width Page Template
  4. *
  5. * @package Shoreditch
  6. */
  7. get_header(); ?>
  8. <?php
  9. while ( have_posts() ) : the_post();
  10. get_template_part( 'template-parts/content', 'hero' );
  11. endwhile; // End of the loop.
  12. ?>
  13. <div id="primary" class="content-area">
  14. <main id="main" class="site-main" role="main">
  15. <?php
  16. while ( have_posts() ) : the_post();
  17. get_template_part( 'template-parts/content', 'page' );
  18. // If comments are open or we have at least one comment, load up the comment template.
  19. if ( comments_open() || get_comments_number() ) {
  20. comments_template();
  21. }
  22. endwhile; // End of the loop.
  23. ?>
  24. </main><!-- #main -->
  25. </div><!-- #primary -->
  26. <?php
  27. get_sidebar( 'footer' );
  28. get_footer();