-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts.php
More file actions
executable file
·28 lines (24 loc) · 1.04 KB
/
posts.php
File metadata and controls
executable file
·28 lines (24 loc) · 1.04 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
<?php theme_include('header'); ?>
<?php if(has_posts()): ?>
<section id="content"<?php if(PLAIN_NO_SIDEBAR == true): echo 'class="no-sidebar"'; endif; ?>>
<?php while(posts()): ?>
<article id="article" class="article-<?php echo article_id(); ?>">
<h2><a href="<?php echo article_url(); ?>" title="<?php echo article_title(); ?>"><?php echo article_title(); ?></a></h2>
<div class="meta">
<time datetime="<?php echo date(DATE_W3C, article_time()); ?>"><?php if(PLAIN_POST_RELATIVE_TIME == false): echo date('F j, Y', article_time()); else: echo relative_time(article_time()); endif; ?></time>
</div>
<div class="entry">
<?php echo article_html(); ?>
</div>
</article>
<?php endwhile; ?>
</section>
<?php if(PLAIN_NO_SIDEBAR == false): ?>
<section id="sidebar">
<?php include "includes/sidebar.php"; ?>
</section>
<?php endif; ?>
<?php else: ?>
<p>404...</p>
<?php endif; ?>
<?php theme_include('footer'); ?>