author | ymh <ymh.work@gmail.com> |
Mon, 14 Oct 2019 17:39:30 +0200 | |
changeset 7 | cf61fcea0001 |
parent 5 | 5e2f62d02dcd |
permissions | -rw-r--r-- |
5 | 1 |
<?php |
2 |
/** |
|
3 |
* The template for displaying all 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_Fourteen |
|
11 |
* @since Twenty Fourteen 1.0 |
|
12 |
*/ |
|
13 |
||
14 |
get_header(); ?> |
|
15 |
||
16 |
<div id="main-content" class="main-content"> |
|
17 |
||
18 |
<?php |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
19 |
if ( is_front_page() && twentyfourteen_has_featured_posts() ) { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
20 |
// Include the featured content template. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
21 |
get_template_part( 'featured-content' ); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
22 |
} |
5 | 23 |
?> |
24 |
<div id="primary" class="content-area"> |
|
25 |
<div id="content" class="site-content" role="main"> |
|
26 |
||
27 |
<?php |
|
28 |
// Start the Loop. |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
29 |
while ( have_posts() ) : |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
30 |
the_post(); |
5 | 31 |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
32 |
// Include the page content template. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
33 |
get_template_part( 'content', 'page' ); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
34 |
|
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
35 |
// If comments are open or we have at least one comment, load up the comment template. |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
36 |
if ( comments_open() || get_comments_number() ) { |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
37 |
comments_template(); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
38 |
} |
5 | 39 |
endwhile; |
40 |
?> |
|
41 |
||
42 |
</div><!-- #content --> |
|
43 |
</div><!-- #primary --> |
|
44 |
<?php get_sidebar( 'content' ); ?> |
|
45 |
</div><!-- #main-content --> |
|
46 |
||
47 |
<?php |
|
48 |
get_sidebar(); |
|
49 |
get_footer(); |