/
single.php
92 lines (47 loc) · 1.76 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php get_header(); ?>
<div class="north">
<div class="main-column grid-8">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="single-entry group">
<h2><?php the_title(); ?></h2>
<div class="post-meta group">
<div class="post-date">
<span class="sub-title">Posted</span>
<span class="title"><?php the_time('M jS, Y') ?> <?php edit_post_link('(Edit)', '', ''); ?></span>
</div>
<div class="post-author">
<span class="sub-title">Author</span>
<span class="title"><?php the_author_posts_link(); ?></span>
</div>
<div class="post-comments">
<span class="sub-title">Discuss</span>
<span class="title"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span>
</div>
<div class="post-comments">
<span class="sub-title">Category</span>
<span class="title"><?php the_category(', ') ?></span>
</div>
</div>
<div <?php post_class() ?>>
<?php the_content(); ?>
<?php wp_link_pages(array('before' => '<p class="paginate-post"><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
<?php if (has_tag()) { ?>
<div class="post-meta">
<span class="sub-title">Tags</span>
<span class="title"><?php the_tags('',', '); ?></span>
</div>
<?php } ?>
</div>
<?php comments_template(); ?>
<?php endwhile; else : ?>
<div class="single-entry group">
<h2>Nothing Found</h2>
<p>Oops! It looks like you may have stumbled upon a page that may have existed at one point - but is missing now. Please check the link and try again.</p>
</div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<div class="clear"></div>
</div>
<?php get_footer(); ?>