/
single.php
57 lines (39 loc) · 1.3 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
<?php get_header(); ?>
<div id="content">
<div id="content_head">
<div class="content_title">
<h1> <?php the_title(); ?></h1>
</div>
<div class="ny_two_column">
<div class="ny_column column_first">
<p>
<strong>简介:</strong><?php the_excerpt(); ?>
</p>
</div>
<div class="ny_column column_second">
<p>
<strong>发布日期:</strong><?php the_time('F j, Y'); ?><br />
<strong>关于作者:</strong><?php the_modified_author(); ?><?php the_author_description(); ?><br />
<strong>技术主题:</strong><?php the_category(', ') ?>
</p>
</div>
</div>
</div>
<div id="contentleft">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(__('Read more'));?><div style="clear:both;"></div>
<!--
<?php trackback_rdf(); ?>
-->
<div class="postmeta">
<p>Tags: <?php the_tags('') ?> </p>
</div>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
<h3>Comments</h3>
<?php comments_template(); // Get wp-comments.php template ?>
</div>
<?php include(TEMPLATEPATH."/sidebar.php");?>
</div>
<!-- The main column ends -->
<?php get_footer(); ?>