Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 61 lines (38 sloc) 1.746 kb
457c459 @justintadlock This could be the start of something...
authored
1 <?php
2 /**
3 * Index Template
4 *
5 * This is the default template. It is used when a more specific template can't be found to display
6 * posts. It is unlikely that this template will ever be used, but there may be rare cases.
7 *
8 * @package MyLife
9 * @subpackage Template
10 * @since 0.1.0
11 * @author Justin Tadlock <justin@justintadlock.com>
12 * @copyright Copyright (c) 2011, Justin Tadlock
13 * @link http://themehybrid.com/themes/my-life
14 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
15 */
16
17 get_header(); // Loads the header.php template. ?>
18
19 <?php do_atomic( 'before_content' ); // my-life_before_content ?>
20
21 <div id="content">
22
23 <?php do_atomic( 'open_content' ); // my-life_open_content ?>
24
25 <div class="hfeed">
26
27 <?php get_template_part( 'loop-meta' ); // Loads the loop-meta.php template. ?>
28
29 <?php if ( have_posts() ) : ?>
30
31 <?php while ( have_posts() ) : the_post(); ?>
32
33 <?php get_template_part( 'content', ( post_type_supports( get_post_type(), 'post-formats' ) ? get_post_format() : get_post_type() ) ); ?>
34
35 <?php if ( is_singular() ) { ?>
36
37 <?php do_atomic( 'after_singular' ); // my-life_after_singular ?>
38
300007f @justintadlock This is for the folks who love business-casual Fridays. A little seriou...
authored
39 <?php comments_template( '/comments.php', true ); // Loads the comments.php template. ?>
457c459 @justintadlock This could be the start of something...
authored
40
41 <?php } ?>
42
43 <?php endwhile; ?>
44
45 <?php else : ?>
46
47 <?php get_template_part( 'loop-error' ); // Loads the loop-error.php template. ?>
48
49 <?php endif; ?>
50
51 </div><!-- .hfeed -->
52
53 <?php do_atomic( 'close_content' ); // my-life_close_content ?>
54
55 <?php get_template_part( 'loop-nav' ); // Loads the loop-nav.php template. ?>
56
57 </div><!-- #content -->
58
59 <?php do_atomic( 'after_content' ); // my-life_after_content ?>
60
61 <?php get_footer(); // Loads the footer.php template. ?>
Something went wrong with that request. Please try again.