forked from kneath/hemingway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
single.php
64 lines (59 loc) · 2.14 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
<?php get_header(); ?>
<div id="primary" class="single-post">
<div class="inside">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="primary">
<h1><?php the_title(); ?></h1>
<?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
<?php wp_link_pages(); ?>
</div>
<hr class="hide" />
<div class="secondary">
<h2>About this entry</h2>
<div class="featured">
<p>You’re currently reading “<?php the_title(); ?>,” an entry on <?php bloginfo('name'); ?></p>
<dl>
<dt>Published:</dt>
<dd><?php the_time('n.j.y') ?> / <?php the_time('ga') ?></dd>
</dl>
<dl>
<dt>Category:</dt>
<dd><?php the_category(', ') ?></dd>
</dl>
<?php if (is_callable('the_tags')) : ?>
<dl>
<dt>Tags:</dt>
<dd><?php the_tags(''); ?></dd>
</dl>
<?php endif; ?>
<?php edit_post_link('Edit this entry.', '<dl><dt>Edit:</dt><dd> ', '</dd></dl>'); ?>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<!-- [END] #primary -->
<hr class="hide" />
<div id="secondary">
<div class="inside">
<?php if ('open' == $post-> comment_status) {
// Comments are open ?>
<div class="comment-head">
<h2><?php comments_number('No comments','1 Comment','% Comments'); ?></h2>
<span class="details"><a href="#comment-form">Jump to comment form</a> | <?php comments_rss_link('comments rss'); ?> <a href="#what-is-comment-rss" class="help">[?]</a> <?php if ('open' == $post->ping_status): ?>| <a href="<?php trackback_url(true); ?>">trackback uri</a> <a href="#what-is-trackback" class="help">[?]</a><?php endif; ?></span>
</div>
<?php } elseif ('open' != $post-> comment_status) {
// Neither Comments, nor Pings are open ?>
<div class="comment-head">
<h2>Comments are closed</h2>
<span class="details">Comments are currently closed on this entry.</span>
</div>
<?php } ?>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>