fullwidth-page.php 750 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Template Name: Full Width, No Sidebar
  4. *
  5. * @package Sketch
  6. */
  7. // Access global variable directly to set content_width
  8. if ( isset( $GLOBALS['content_width'] ) )
  9. $GLOBALS['content_width'] = 1091;
  10. get_header(); ?>
  11. <div id="primary" class="content-area">
  12. <main id="main" class="site-main" role="main">
  13. <?php while ( have_posts() ) : the_post(); ?>
  14. <?php get_template_part( 'content', 'page' ); ?>
  15. <?php
  16. // If comments are open or we have at least one comment, load up the comment template
  17. if ( comments_open() || '0' != get_comments_number() ) :
  18. comments_template();
  19. endif;
  20. ?>
  21. <?php endwhile; // end of the loop. ?>
  22. </main><!-- #main -->
  23. </div><!-- #primary -->
  24. <?php get_footer(); ?>