author | ymh <ymh.work@gmail.com> |
Mon, 14 Oct 2019 18:30:03 +0200 | |
changeset 10 | 372f2766ea20 |
parent 7 | cf61fcea0001 |
permissions | -rw-r--r-- |
0 | 1 |
<?php |
2 |
/** |
|
3 |
* The main template file |
|
4 |
* |
|
5 |
* This is the most generic template file in a WordPress theme and one of the |
|
6 |
* two required files for a theme (the other being style.css). |
|
7 |
* It is used to display a page when nothing more specific matches a query. |
|
8 |
* For example, it puts together the home page when no home.php file exists. |
|
9 |
* |
|
10 | 10 |
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/ |
0 | 11 |
* |
12 |
* @package WordPress |
|
13 |
* @subpackage Twenty_Thirteen |
|
14 |
* @since Twenty Thirteen 1.0 |
|
15 |
*/ |
|
16 |
||
17 |
get_header(); ?> |
|
18 |
||
19 |
<div id="primary" class="content-area"> |
|
20 |
<div id="content" class="site-content" role="main"> |
|
21 |
<?php if ( have_posts() ) : ?> |
|
22 |
||
23 |
<?php /* The loop */ ?> |
|
7
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
24 |
<?php |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
25 |
while ( have_posts() ) : |
cf61fcea0001
resynchronize code repo with production
ymh <ymh.work@gmail.com>
parents:
5
diff
changeset
|
26 |
the_post(); |
10 | 27 |
?> |
0 | 28 |
<?php get_template_part( 'content', get_post_format() ); ?> |
29 |
<?php endwhile; ?> |
|
30 |
||
31 |
<?php twentythirteen_paging_nav(); ?> |
|
32 |
||
33 |
<?php else : ?> |
|
34 |
<?php get_template_part( 'content', 'none' ); ?> |
|
35 |
<?php endif; ?> |
|
36 |
||
37 |
</div><!-- #content --> |
|
38 |
</div><!-- #primary --> |
|
39 |
||
40 |
<?php get_sidebar(); ?> |
|
5 | 41 |
<?php get_footer(); ?> |