forked from rflrkn/Basic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
posts.php
32 lines (30 loc) · 1.19 KB
/
posts.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
<?php theme_include('header'); ?>
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<?php if(has_posts()) : while(posts()) : ?>
<div class="post-preview">
<a href="<?php echo article_url(); ?>" title="<?php echo article_title(); ?>">
<h2 class="post-title">
<?php echo article_title(); ?>
</h2>
<h3 class="post-subtitle">
<?php echo article_description(); ?>
</h3>
</a>
<p class="post-meta">Written by <?php echo article_author(); ?> on <?php echo article_date(); ?></p>
</div>
<hr>
<?php endwhile; endif; ?>
<?php if(has_pagination()) : ?>
<!-- Pager -->
<ul class="pager">
<li class="previous"><?php echo posts_prev(); ?></li>
<li class="next"><?php echo posts_next(); ?></li>
</ul>
<?php endif; ?>
</div>
</div>
</div>
<hr>
<?php theme_include('footer'); ?>