-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.php
39 lines (30 loc) · 1.04 KB
/
blog.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
33
34
35
36
37
38
39
<?php
/*
Template Name: Blog
*/
?>
<?php get_header(); ?>
<div id="content">
<?php $more = 0; ?>
<?php if (have_posts()) : ?>
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("paged=$paged"); ?>
<?php while (have_posts()) : the_post(); ?>
<div class="content-item">
<div class="content-dets">
<h3>Posted on <?php the_time('M j, Y'); ?></h3>
<ul class="dets">
<li class="comments-link"><a href="<?php the_permalink() ?>#comments" title=""><?php comments_number('0 Comments','1 Comment','% Comments'); ?></a></li>
</ul>
</div>
<div class="content-body">
<h2 class="post-title"><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php the_content('Continue Reading'); ?>
</div>
</div>
</div> <!-- content-item -->
<?php endwhile; else: ?>
<?php endif; ?>
</div> <!-- content -->
<?php if(function_exists('sf_pagenavi')) { sf_pagenavi('', '', '', '', 20, false);} ?>
<?php get_footer(); ?>