-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
63 lines (37 loc) · 1.04 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
55
56
57
58
59
60
61
62
63
<?php
/**
* Index Page
*
* Uses default headers and footers with a 9 col content and a 3 col sidebar
* Template for the post index and fallback/default template for other post type
* indexs. Ultimate fallback for all routes.
*
* @author Simon Holloway <[email protected]>
* @license http://opensource.org/licenses/MIT MIT
*/
render_template('header'); ?>
<div class="container">
<div class="row">
<section class="col-md-9">
<header>
<h1><?php page_title() ?></h1>
</header>
<?php if (have_posts()) : ?>
<?php while(have_posts()) : the_post(); ?>
<?php render_template('index-item'); ?>
<?php endwhile; ?>
<footer>
<?php // Pagination module needed ?>
</footer>
<?php else: ?>
<article>
<p>No results were found.</p>
</article><!-- #post-0 -->
<?php endif; ?>
</section>
<section class="col-md-3">
<?php render_template('sidebar'); ?>
</section>
</div>
</div>
<?php render_template('footer'); ?>