-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathposts.php
28 lines (22 loc) · 1.01 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
<?php theme_include('header'); ?>
<section class="content">
<form id="search" action="<?php echo search_url(); ?>" method="post">
<input type="search" id="term" name="term" placeholder="Recherches" value="<?php echo search_term(); ?>">
</form>
<?php if(has_posts()) : while(posts()) : ?>
<article>
<h1>
<a href="<?php echo article_url(); ?>" title="<?php echo article_title(); ?>"><?php echo article_title(); ?></a>
</h1>
<p class="date"><i class="fa fa-clock-o"></i> <?php echo relative_time(article_time()); ?></p>
<p><?php echo article_markdown(); ?></p>
</article>
<?php endwhile; endif; ?>
<?php if(has_pagination()): ?>
<div class="pagination">
<?php echo posts_prev(); ?>
<?php echo posts_next(); ?>
</div>
<?php endif; ?>
</section>
<?php theme_include('footer'); ?>