-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop.php
More file actions
40 lines (38 loc) · 1.04 KB
/
loop.php
File metadata and controls
40 lines (38 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
29
30
31
32
33
34
35
36
37
38
39
40
<?php
$extra="";
if(preg_match('/^\/forum/',$_SERVER['REQUEST_URI'])){
$extra = "forum";
}
?>
<div id="blog-page" class="<?php print $extra;?> page">
<?php
if( have_posts() ): while ( have_posts() ) : the_post();
?>
<div class="blog-entry">
<h2><a href="<?php the_permalink();?>"><?php the_title();?></a></h2>
<div class="entry-postmeta">
<?php edit_post_link('Edit','<span>','</span> |'); ?>
<span><?php the_time('F jS, Y') ?> </span> |
<span>This post currently has <?php comments_number('no comments','one comment','% comments'); ?></span>
</div>
<div class="entry-content">
<?php the_content();?>
</div>
</div>
<?php
endwhile;
endif;
if(! is_single()):
?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Previous entries') ?></div>
<div class="alignright"><?php previous_posts_link('Next entries »') ?></div>
</div>
<?php else: ?>
<div class="comments">
<?php comments_template(); ?>
</div>
<?php
endif;
?>
</div>