-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts.php
More file actions
executable file
·52 lines (44 loc) · 1.43 KB
/
posts.php
File metadata and controls
executable file
·52 lines (44 loc) · 1.43 KB
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
<?php theme_include('header'); ?>
<section>
<?php if (has_posts()) : ?>
<?php posts(); ?>
<ul class="list-unstyled">
<li>
<article class="wrap">
<h1>
<a href="<?php echo article_url(); ?>" title="<?php echo article_title(); ?>"><?php echo article_title(); ?></a>
</h1>
<div class="content">
<?php echo article_markdown(); ?>
</div>
<footer class="text-muted">
Posted <time datetime="<?php echo date(DATE_W3C, article_time()); ?>"><?php echo relative_time(article_time()); ?></time> by <?php echo article_author('real_name'); ?>
</footer>
</article>
</li>
<?php while (posts()) : ?>
<li>
<article>
<h2>
<a href="<?php echo article_url(); ?>" title="<?php echo article_title(); ?>">
<span class="glyphicon glyphicon-chevron-right" style="font-size:smaller"></span>
<?php echo article_title(); ?>
</a>
</h2>
</article>
</li>
<?php endwhile; ?>
</ul>
<?php if (has_pagination()) : ?>
<nav>
<ul class="pager">
<li class="previous"><?php echo posts_prev(); ?></li>
<li class="next"><?php echo posts_next(); ?></li>
</ul>
</nav>
<?php endif; ?>
<?php else : ?>
<p>Looks like you have some writing to do!</p>
<?php endif; ?>
</section>
<?php theme_include('footer'); ?>