-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
29 lines (24 loc) · 964 Bytes
/
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
<?php get_header(); ?>
<div id="content" class="widecolumn" role="main">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="single-post post">
<h2 class="post-title"><?php the_title(); ?></h2>
<div class="post-meta">
<span><?php the_time(__('Y年m月j日')) ?></span>
<span><?php the_category(','); ?></span>
<span><?php lmsim_theme_views(); ?> 浏览</span>
<span><?php comments_popup_link('0 评论', '1 评论', '% 评论', '', '评论已关闭'); ?></span>
</div>
<div class="entry">
<?php the_content(); ?>
<?php wp_link_pages(array('before' => '<p><strong>' . __('Pages:') . '</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
</div>
<?php the_post_navigation(); ?>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>