forked from krogsgard/happy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
41 lines (25 loc) · 913 Bytes
/
home.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
<?php
/**
* Front-Page Template
*
* The Front-Page template is a placeholder for archives views without a more specific template.
*
* @package happy
* @subpackage Template
*/
get_header(); ?>
<?php do_atomic( 'before_content' ); // Before content hook ?>
<div id="content">
<?php do_atomic( 'open_content' ); // Open content hook ?>
<section class="hfeed">
<?php get_template_part( 'loop-meta' ); // Get the loop meta box ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', ( post_type_supports( get_post_type(), 'post-formats' ) ? get_post_format() : get_post_type() ) ); ?>
<?php endwhile; ?>
<?php endif; ?>
</section><!-- .hfeed -->
<?php do_atomic( 'close_content' ); // Close content hook ?>
<?php get_template_part( 'loop-nav' ); ?>
</div><!-- #content -->
<?php get_footer(); ?>