-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathsingle.php
More file actions
48 lines (36 loc) · 1.19 KB
/
Copy pathsingle.php
File metadata and controls
48 lines (36 loc) · 1.19 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
<?php
get_header();
?>
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article>
<h2 class="title">
<a href="<?php the_permalink() ?>"><?php the_title_attribute(); ?></a>
<div class="date">
<?php the_time('Y-m-d') ?>
</div>
</h2>
<div class="text">
<?php the_content("Read More..."); ?>
</div>
</article>
<?php
getSingleTags(get_the_ID());
?>
<?php endwhile; ?>
<?php else: ?>
<article>
<h2 class="title"><a href="/">找不到内容噢</a></h2>
<div class="text">未能寻找到您需要的内容,请查看它是不是飞到火星上去了</div>
</article>
<?php endif; ?>
<?php if ($showComment): ?>
<div class="comment">
<?php comments_template(); ?>
</div
<?php endif; ?>
</div>
<?php
get_footer();
?>