-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
54 lines (32 loc) · 1.55 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Index Template
*
* This is the home template. Technically, it is the "posts page" template. It is used when a visitor is on the
* page assigned to show a site's latest blog posts.
*
* @package Shell
* @subpackage Template
*/
get_header(); // Loads the header.php template. ?>
<?php do_atomic( 'before_content' ); // shell_before_content ?>
<div id="content">
<?php do_atomic( 'open_content' ); // shell_open_content ?>
<div class="hfeed">
<?php do_atomic( 'open_hfeed' ); // shell_open_hfeed ?>
<?php shell_get_atomic_template( 'loop-meta' ); // atomic context template, in "loop-meta" directory ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php shell_get_atomic_template( 'content', true ); // atomic context loop template, in "content" directory ?>
<?php shell_get_atomic_template( 'content-after', true ); // atomic context loop template, in "content-after" directory ?>
<?php endwhile; ?>
<?php else : ?>
<?php get_template_part( 'loop-error' ); // Loads the loop-error.php template. ?>
<?php endif; ?>
<?php do_atomic( 'close_hfeed' ); // shell_close_hfeed ?>
</div><!-- .hfeed -->
<?php do_atomic( 'close_content' ); // shell_close_content ?>
<?php shell_get_atomic_template( 'loop-nav' ); // atomic context loop template, in "loop-nav" directory ?>
</div><!-- #content -->
<?php do_atomic( 'after_content' ); // shell_after_content ?>
<?php get_footer(); // Loads the footer.php template. ?>