-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsingle.php
executable file
·95 lines (91 loc) · 3.63 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php get_header(); ?>
<div id="zan-bodyer" style="padding-top: 30px;">
<div class="container">
<section class="row">
<div class="col-lg-8">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article class="article container well">
<!-- 面包屑 -->
<div class="breadcrumb">
<?php
if(function_exists('bcn_display')) {
echo '<i class="icon-home"></i> ';
bcn_display();
}
?>
</div>
<!-- 面包屑 -->
<!-- 大型设备文章属性 -->
<div class="hidden-xs">
<div class="title-article">
<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
</div>
<div class="tag-article container">
<span class="label label-zan"><i class="icon-tags"></i> <?php the_time(n . '-' .d); ?></span>
<span class="label label-zan"><i class="icon-tags"></i> <?php the_category(','); ?></span>
<span class="label label-zan"><i class="icon-user"></i> <?php the_author_posts_link(); ?></span>
<?php
if(function_exists(the_views)) {
?>
<span class="label label-zan"><i class="icon-eye-open"></i> <?php the_views(); ?></span>
<?php
} else {
echo "<hr/><div class='alert alert-danger'><i class='icon-warning-sign'></i> 未安装WP-PostViews插件,<a href='http://wordpress.org/plugins/wp-postviews/' target='_blank' rel='nofollow'>点击安装</a></div>" ;
}
?>
</div>
</div>
<!-- //大型设备文章属性 -->
<!-- 小型设备文章属性 -->
<div class="visible-xs">
<div class="title-article">
<h4><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
</div>
<p>
<i class="icon-calendar"></i> <?php the_date('m-d'); ?>
<?php
if(function_exists(the_views)) {
?>
<i class="icon-eye-open"></i> <?php the_views(); ?>
<?php
} else {
echo "<hr/><div class='alert alert-danger'><i class='icon-warning-sign'></i> 未安装WP-PostViews插件,<a href='http://wordpress.org/plugins/wp-postviews/' target='_blank' rel='nofollow'>点击安装</a></div>" ;
}
?>
</p>
</div>
<!-- //小型设备文章属性 -->
<div class="centent-article">
<?php $thumb_img = has_post_thumbnail() ? get_the_post_thumbnail( $post->
ID, array(730, 300), array('alt' => trim(strip_tags( $post->post_title )),'title'=> trim(strip_tags( $post->post_title ))) ) : zanblog_get_thumbnail_img( 730, 300, 1);?>
<figure class="thumbnail hidden-xs"><?php echo $thumb_img;?></figure>
<p>
<?php the_content(); ?>
</p>
<!-- Baidu Button BEGIN -->
<div id="bdshare" class="bdshare_b pull-right" style="line-height: 12px;">
<img src="http://bdimg.share.baidu.com/static/images/type-button-1.jpg?cdnversion=20120831" />
<a class="shareCount"></a>
</div>
<script type="text/javascript" id="bdshare_js" data="type=button&uid=6553914" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000);
</script>
<!-- Baidu Button END -->
</div>
</article>
<?php endwhile; else: ?>
<p>
<?php _e('抱歉,该页面不存在!'); ?>
</p>
<?php endif; ?>
<?php comments_template(); ?>
</div>
<?php get_sidebar(); ?>
</section>
</div>
</div>
<?php get_footer(); ?>
</body>
</html>