full-width.php 939 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Template Name: Full Width Page
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Fourteen
  7. * @since Twenty Fourteen 1.0
  8. */
  9. get_header(); ?>
  10. <div id="main-content" class="main-content">
  11. <?php
  12. if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
  13. // Include the featured content template.
  14. get_template_part( 'featured-content' );
  15. }
  16. ?>
  17. <div id="primary" class="content-area">
  18. <div id="content" class="site-content" role="main">
  19. <?php
  20. // Start the Loop.
  21. while ( have_posts() ) : the_post();
  22. // Include the page content template.
  23. get_template_part( 'content', 'page' );
  24. // If comments are open or we have at least one comment, load up the comment template.
  25. if ( comments_open() || get_comments_number() ) {
  26. comments_template();
  27. }
  28. endwhile;
  29. ?>
  30. </div><!-- #content -->
  31. </div><!-- #primary -->
  32. </div><!-- #main-content -->
  33. <?php
  34. get_sidebar();
  35. get_footer();