full-width-page.php 801 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Template Name: Full-Width Page
  4. *
  5. * @package Apostrophe 2
  6. *
  7. * The template for displaying full-width pages. Effectively the exact same as the regular page template,
  8. * but can be used to span the full width of the site.
  9. *
  10. */
  11. get_header(); ?>
  12. <section id="primary" class="content-area full-width">
  13. <main id="main" class="site-main" role="main">
  14. <?php while ( have_posts() ) : the_post(); ?>
  15. <?php get_template_part( 'content', 'page' ); ?>
  16. <?php
  17. // If comments are open or we have at least one comment, load up the comment template
  18. if ( comments_open() || '0' !== get_comments_number() ) :
  19. comments_template();
  20. endif;
  21. ?>
  22. <?php endwhile; // end of the loop. ?>
  23. </main><!-- #main -->
  24. </section><!-- #primary -->
  25. <?php get_footer(); ?>