-
Notifications
You must be signed in to change notification settings - Fork 2
/
single.php
69 lines (48 loc) · 2.74 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
<?php get_header(); ?>
<div class="single-main"> <!--Single-Main-->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<div class="author">作者: <strong><?php the_author() ?></strong></div>
<div class="date"><?php the_date(); ?></div>
<hr />
<?php the_content(); ?>
<?php the_tags( '<p class="tags">Tags: ', ', ', '</p>'); ?>
<div class="navigation-post">
<div class="alignleft"><?php previous_post_link('« %link') ?></div>
<div class="alignright"><?php next_post_link('%link »') ?></div>
</div>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
<!--
<div class="author-detail">
<h5>Tentang Penulis</h5>
<p>
<?php echo get_avatar( get_the_author_email(), '60', 'http://example.com/no_avatar.jpg' ); ?><a href="<?php the_author_url(); ?>"><strong><?php the_author();?></strong></a> - <?php the_author_description(); ?>
</p>
</div>
-->
<div class="post-data">
分类: <?php the_category(', ') ?> | <?php post_comments_feed_link('RSS 2.0'); ?>
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
| <a href="#respond">我说两句</a> | <a href="<?php trackback_url(); ?>" rel="trackback">Trackback</a>
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
评论已关闭,您可以 <a href="<?php trackback_url(); ?> " rel="trackback">Trackback</a> 此文.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
| <a href="#respond">我说两句</a>
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
评论已关闭 | Trackback 已关闭
<?php } edit_post_link('编辑此文','','.'); ?>
</div>
<div class="comments">
<h4><?php comments_number('还没有人评论此文', '1 条评论 ', '% 条评论' );?></h4>
<?php comments_template(); ?>
</div>
</div><!--Single-Main-->
<?php get_sidebar(); ?>
<div class="ffix"></div>
<?php get_footer(); ?>