10 get_header(); ?> |
10 get_header(); ?> |
11 |
11 |
12 <div id="main-content" class="main-content"> |
12 <div id="main-content" class="main-content"> |
13 |
13 |
14 <?php |
14 <?php |
15 if ( is_front_page() && twentyfourteen_has_featured_posts() ) { |
15 if ( is_front_page() && twentyfourteen_has_featured_posts() ) { |
16 // Include the featured content template. |
16 // Include the featured content template. |
17 get_template_part( 'featured-content' ); |
17 get_template_part( 'featured-content' ); |
18 } |
18 } |
19 ?> |
19 ?> |
20 |
20 |
21 <div id="primary" class="content-area"> |
21 <div id="primary" class="content-area"> |
22 <div id="content" class="site-content" role="main"> |
22 <div id="content" class="site-content" role="main"> |
23 <?php |
23 <?php |
24 // Start the Loop. |
24 // Start the Loop. |
25 while ( have_posts() ) : the_post(); |
25 while ( have_posts() ) : |
|
26 the_post(); |
26 |
27 |
27 // Include the page content template. |
28 // Include the page content template. |
28 get_template_part( 'content', 'page' ); |
29 get_template_part( 'content', 'page' ); |
29 |
30 |
30 // If comments are open or we have at least one comment, load up the comment template. |
31 // If comments are open or we have at least one comment, load up the comment template. |
31 if ( comments_open() || get_comments_number() ) { |
32 if ( comments_open() || get_comments_number() ) { |
32 comments_template(); |
33 comments_template(); |
33 } |
34 } |
34 endwhile; |
35 endwhile; |
35 ?> |
36 ?> |
36 </div><!-- #content --> |
37 </div><!-- #content --> |
37 </div><!-- #primary --> |
38 </div><!-- #primary --> |
38 </div><!-- #main-content --> |
39 </div><!-- #main-content --> |