/
single.php
46 lines (30 loc) · 1.01 KB
/
single.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
40
41
42
43
44
45
<?php get_header(); ?>
<div id="bigcontainer">
<div id="postcontainer">
<?php if(have_posts()): ?><?php while(have_posts()): the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title();?></a></h2>
<div class="entry">
<?php the_content(); ?>
<p class="postmetadata">
<?php the_time('M j, Y') ?><?php _e(' | '); ?> <?php the_category(', ') ?><br />
</p>
</div>
<div class="comments-template">
<?php comments_template(); ?>
</div>
</div>
<?php endwhile; ?>
<div class="navi">
<?php previous_post_link('« %link') ?><br/>
<?php next_post_link('%link »') ?>
</div>
<?php else: ?>
<div class="post">
<h2><?php _e('Not Found'); ?></h2>
</div>
<?php endif; ?>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>