5
|
1 |
<?php |
|
2 |
/** |
|
3 |
* The template for displaying pages |
|
4 |
* |
|
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. |
|
8 |
* |
|
9 |
* @package WordPress |
|
10 |
* @subpackage Twenty_Fifteen |
|
11 |
* @since Twenty Fifteen 1.0 |
|
12 |
*/ |
|
13 |
|
|
14 |
get_header(); ?> |
|
15 |
|
|
16 |
<div id="primary" class="content-area"> |
|
17 |
<main id="main" class="site-main" role="main"> |
|
18 |
|
|
19 |
<?php |
|
20 |
// Start the loop. |
|
21 |
while ( have_posts() ) : the_post(); |
|
22 |
|
|
23 |
// Include the page content template. |
|
24 |
get_template_part( 'content', 'page' ); |
|
25 |
|
|
26 |
// If comments are open or we have at least one comment, load up the comment template. |
|
27 |
if ( comments_open() || get_comments_number() ) : |
|
28 |
comments_template(); |
|
29 |
endif; |
|
30 |
|
|
31 |
// End the loop. |
|
32 |
endwhile; |
|
33 |
?> |
|
34 |
|
|
35 |
</main><!-- .site-main --> |
|
36 |
</div><!-- .content-area --> |
|
37 |
|
|
38 |
<?php get_footer(); ?> |