-
Notifications
You must be signed in to change notification settings - Fork 17
/
single.php
50 lines (50 loc) · 2.12 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
<?php get_header(); ?>
<div class="row">
<div class="col-sm-12 col-md-9">
<div class="panel panel-default">
<?php if(have_posts()): ?>
<?php while(have_posts()):the_post(); ?>
<article class="vc-blog">
<h1 class="vc-blog-title"><?php the_title(); ?></h1>
<p class="vc-author-info">
<time>
<?php echo get_the_date( 'Y-m-d'); ?>
</time> •
<span><?php echo get_the_author(); ?></span> •
<span><a href=""><?php comments_popup_link( '0','1','%');?>条评论</a></span> •
<span><?php post_views(' ', ' 次浏览'); ?></span>
</p>
<div class="vc-blog-content">
<?php the_content(); ?>
</div>
<span class="vc-tags">
<?php the_tags('',' ',''); ?>
</span>
<div class="vc-copyright">
本站文章除注明转载外,均为原创文章。转载请注明:文章转载自:
<?php bloginfo( 'name'); ?>(
<a href="<?php bloginfo('url'); ?>">
<?php bloginfo( 'url'); ?>
</a>)
</div>
</article>
<?php endwhile; ?>
<?php endif;?>
</div>
<nav>
<ul class="pager">
<li class="previous">
<?php next_post_link( '%link','<i class="fa fa-angle-left"></i> '.'%title'); ?>
</li>
<li class="next">
<?php previous_post_link( '%link','%title'.' <i class="fa fa-angle-right"></i>'); ?>
</li>
</ul>
</nav>
<hr>
<?php comments_template(); ?>
</div>
<?php get_sidebar( 'right'); ?>
</div>
</div>
<?php get_footer(); ?>