3 * The template for displaying all pages
5 * This is the template that displays all pages by default.
6 * Please note that this is the WordPress construct of pages and that
7 * other 'pages' on your WordPress site will use a different template.
10 * @subpackage Twenty_Fourteen
11 * @since Twenty Fourteen 1.0
16 <div id="main-content" class="main-content">
19 if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
20 // Include the featured content template.
21 get_template_part( 'featured-content' );
24 <div id="primary" class="content-area">
25 <div id="content" class="site-content" role="main">
29 while ( have_posts() ) : the_post();
31 // Include the page content template.
32 get_template_part( 'content', 'page' );
34 // If comments are open or we have at least one comment, load up the comment template.
35 if ( comments_open() || get_comments_number() ) {
41 </div><!-- #content -->
42 </div><!-- #primary -->
43 <?php get_sidebar( 'content' ); ?>
44 </div><!-- #main-content -->