-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathsingle.php
More file actions
66 lines (43 loc) · 1.67 KB
/
single.php
File metadata and controls
66 lines (43 loc) · 1.67 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php get_header(); ?>
<div id="page">
<div class="column span-10 first" id="maincontent">
<div class="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- <div class="navigation small">
<div class="alignleft"><?php previous_post_link('« %link') ?></div>
<div class="alignright"><?php next_post_link('%link »') ?></div>
</div>
<div style="padding-bottom: 15px;"></div> -->
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="small">
<?php the_time('F jS, Y') ?> |
<!-- by <?php the_author() ?> -->
Published in
<?php
the_category(', ');
if($post->comment_count > 0) {
echo ' | ';
if($post->comment_count > 1) {
echo '<a href="#comments">' . $post->comment_count . ' Comments</a>';
} else {
echo '<a href="#comments">1 Comment</a>';
}
}
edit_post_link('Edit', ' | ', '');
?>
</p>
<div class="entry">
<?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div> <!-- /content -->
</div> <!-- /maincontent-->
<?php get_sidebar(); ?>
</div> <!-- /page -->
<?php get_footer(); ?>