author | ymh <ymh.work@gmail.com> |
Mon, 14 Oct 2019 17:39:30 +0200 | |
changeset 7 | cf61fcea0001 |
parent 0 | d970ebf37754 |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
3 |
* Template Name: Front Page Template |
|
4 |
* |
|
5 |
* Description: A page template that provides a key component of WordPress as a CMS |
|
6 |
* by meeting the need for a carefully crafted introductory page. The front page template |
|
7 |
* in Twenty Twelve consists of a page content area for adding text, images, video -- |
|
8 |
* anything you'd like -- followed by front-page-only widgets in one or two columns. |
|
9 |
* |
|
10 |
* @package WordPress |
|
11 |
* @subpackage Twenty_Twelve |
|
12 |
* @since Twenty Twelve 1.0 |
|
13 |
*/ |
|
14 |
||
15 |
get_header(); ?> |
|
16 |
||
17 |
<div id="primary" class="site-content"> |
|
18 |
<div id="content" role="main"> |
|
19 |
||
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
20 |
<?php |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
21 |
while ( have_posts() ) : |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
22 |
the_post(); |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
23 |
?> |
0 | 24 |
<?php if ( has_post_thumbnail() ) : ?> |
25 |
<div class="entry-page-image"> |
|
26 |
<?php the_post_thumbnail(); ?> |
|
27 |
</div><!-- .entry-page-image --> |
|
28 |
<?php endif; ?> |
|
29 |
||
30 |
<?php get_template_part( 'content', 'page' ); ?> |
|
31 |
||
32 |
<?php endwhile; // end of the loop. ?> |
|
33 |
||
34 |
</div><!-- #content --> |
|
35 |
</div><!-- #primary --> |
|
36 |
||
37 |
<?php get_sidebar( 'front' ); ?> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
0
diff
changeset
|
38 |
<?php get_footer(); ?> |