/
single.php
47 lines (28 loc) · 993 Bytes
/
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
46
47
<?php get_header(); ?>
<div id="main">
<div>
<div id="contentContainer">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div class="postTitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></div>
<div class="meta">
<em>Posted on:</em> <span class="postTime"><?php the_time('F jS, Y') ?></span> by <span class="postAuthor"><?php echo get_the_author()?></span>
</div>
<div class="entry">
<?php the_content(); ?>
</div>
<div class="postmetadata">
<?php the_tags('Tags: ', ', ', '<br />'); ?>
Entries: <?php the_category(', ') ?>
</div>
<?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?>
</div>
<?php comments_template(); ?>
<?php endwhile; endif; ?>
</div>
<div id="sidebarContainer">
<?php get_sidebar(); ?>
</div>
</div>
</div>
<?php get_footer(); ?>