-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
59 lines (37 loc) · 986 Bytes
/
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
55
56
57
58
59
<?php
/**
* Default Generic Template File
*
* @package MPH Starter
* @since 0.1.0
*/
get_header();
?>
<div class="row">
<section class="primary-content grid-8">
<?php get_template_part( 'parts/index/header' ); ?>
<div class="entries">
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
if ( is_search() ) {
get_template_part( 'parts/index/search-single' );
} elseif ( $post_format = get_post_format() ) {
get_template_part( 'parts/index/single', $post_format );
} else {
get_template_part( 'parts/index/single', get_post_type() );
}
}
} else {
get_template_part( 'parts/index/single-no-results' );
}
?>
</div>
<?php get_template_part( 'parts/nav-pagination' ); ?>
</section><!-- / .primary-content -->
<section class="sidebar grid-4" role="complementary">
<?php get_sidebar(); ?>
</section><!-- .secondary-content .widget-area -->
</div>
<?php get_footer(); ?>