-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle.php
68 lines (68 loc) · 2.99 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
<?php
get_header();
?>
<div class="main">
<div class="content-widescreen">
<?php if (have_posts()) : ?>
<div class="crumbs_patch">
<?php if(function_exists('cmp_breadcrumbs')) cmp_breadcrumbs();?>
</div>
<?php while (have_posts()) : the_post(); ?>
<section class="posts">
<div class="posts-inner">
<article class="post text" itemscope itemtype="http://schema.org/Article">
<?php
if ( has_post_thumbnail() ) :
?>
<h1 class="article-title">
<?php the_post_thumbnail();?>
<span itemprop="name"><?php the_title(); ?></span></h1><?php else :?>
<h1 itemprop="name"><?php the_title(); ?></h1>
<?php endif;?>
<?php the_content(); ?>
<footer class="post-footer">
<div class="notes-options">
<div class="post-info">
<ul>
<li>
<a href="<?php the_permalink() ?>" rel="bookmark"><i class="fa fa-calendar"></i><time itemprop="dateCreated"><?php the_time('Y-m-d H:i') ?></time></a></li><li><i class="fa fa-th-large"></i><?php the_category(', ') ?></li><?php edit_post_link('编辑','<li><i class="fa fa-pencil-square-o"></i>','</li>'); ?>
</ul>
</div><!-- /.footer-post-info -->
<div class="post-options">
<div class="content_tags"> <?php the_tags('<span class="the_tags">', '</span><span class="the_tags">', '</span>'); ?></div>
</div> <!-- /.footer-post-options -->
</div><!-- /.notes-options -->
<?php wp_link_pages( array(
'before' => '<div class="page-next">',
'after' => '<span class="page-links-title tooltip" title="隐藏/显示分页页码">页码</span></div>',
'next_or_number' => 'next',
'nextpagelink' =>'下一页',
'previouspagelink' => '上一页',
) );?>
<?php wp_link_pages( array(
'before' => '<div class="page-links">',
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
) );?>
</footer>
</article>
</div><!-- /.posts-inner -->
<ul class="single_nav">
<li><?php previous_post_link('上一篇:%link','%title') ?></li>
<li><?php next_post_link('下一篇:%link','%title') ?></li>
</ul>
<span class="pre_link"><?php previous_post_link('%link','<i class="fa fa-angle-left fa-4x"> </i>') ?></span>
<span class="nex_link"><?php next_post_link('%link','<i class="fa fa-angle-right fa-4x"> </i>') ?></span>
<div class="post-comment">
<?php comments_template(); ?>
</div>
</section>
<!-- /.posts -->
<?php endwhile; ?>
<?php endif; ?>
</div>
<div class="clear"></div>
<a href="#" id="top" tilte="返回顶部"> <i class="fa fa-chevron-up fa-2x"> </i></a>
</div>
<?php get_footer(); ?>