forked from weipxiu/Art_Blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategory.php
146 lines (137 loc) · 5.31 KB
/
category.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Author" content="李俊" />
<meta name="description" content="<?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 200,"
... "); ?>" />
<meta name="keywords" content="个人博客,唯品秀个人博客,个人博客网站,唯品秀,web前端博客,网页制作,博客,HTML5/CSS3,Javascript" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no">
<title>
<?php the_title(); ?> | 关注WEB前端开发技术 - 唯品秀博客</title>
<link rel="shortcut icon" type="image/x-icon" href="<?php bloginfo('template_url'); ?>/favicon.ico" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" media="screen and (max-width:767px)" href="<?php bloginfo('template_url'); ?>/css/style-ios.css">
<link rel="stylesheet" type="text/css" media="screen and (min-width:768px) and (max-width:1199px)" href="<?php bloginfo('template_url'); ?>/css/style-ipd.css">
<link rel="stylesheet" type="text/css" media="screen and (min-width:1200px)" href="<?php bloginfo('template_url'); ?>/style.css">
<?php wp_head(); ?>
</head>
<body>
<!--头部文件引用开始-->
<?php get_header();?>
<!--头部文件引用结束-->
<!-- 正文区域start -->
<div class="continar">
<div class="continar-left" style="border:0; padding:0; background: transparent;">
<!-- 文章start -->
<?php
if(have_posts()): while(have_posts()):the_post();
?>
<div class="text">
<div class="img-left">
<a class="read-more" href="<?php the_permalink(); ?>" target="_blank">
<?php
if ( has_post_thumbnail() )
the_post_thumbnail();
else
echo '<img src="http://www.weipxiu.com/wp-content/uploads/2017/04/default-220x150.png" alt="" />';
?>
</a>
</div>
<div class="text_right">
<h2>
<span>
<?php the_category() ?>
<i></i>
</span>
<a href="<?php the_permalink(); ?>" target="_blank">
<?php the_title(); ?>
</a>
</h2>
<div class="entry-meta">
<a href="http://www.weipxiu.com">唯品秀</a>
<i class="space">•</i>
<a href="#">前端开发资讯</a>
<i class="space">•</i>
<?php the_author(); ?>
<a href="#" class="comments-number">
<span></span>
</a>
</div>
<h3>
<?php echo mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 150,"..."); ?>
<!--文章内容-->
</h3>
<a class="read-more" href="<?php the_permalink(); ?>" target="_blank">阅读全文
<i class="fa fa-chevron-circle-right"></i>
</a>
<p class="l">
<!-- <span>
<a href="<?php the_permalink(); ?> ">
<i class="fa fa-calendar"> </i><?php echo '发表于 '.timeago( get_gmt_from_date(get_the_time('Y-m-d G:i:s')) ); ?>
</a>
</span> -->
<span>
<i class="iconfont icon-shijian1"></i>
<?php the_time('Y年m月d日') ?>
</span>
<span>
<a href="<?php the_permalink(); ?> ">
<i class="iconfont icon-liulan"></i>
<?php echo getPostViews(get_the_ID()); ?>℃</span>
</a>
<span class="comm">
<a href="<?php the_permalink(); ?> ">
<i class="iconfont icon-pinglun2"></i>
<span id="url::<?php the_permalink(); ?>" class="cy_cmt_count"></span>
<script id="cy_cmt_num" src="https://changyan.sohu.com/upload/plugins/plugins.list.count.js?clientId=cyt2b1NqT">
</script>
条评论
</a>
</span>
<span class="post-like">
<a href="javascript:;" style="color: #f78585" data-action="ding" data-id="<?php the_ID(); ?>" class="favorite<?php if(isset($_COOKIE['bigfa_ding_'.$post->ID])) echo ' done';?>">
<i class="fa fa-thumbs-o-up" style="color: #f78585"></i>
<span class="count">
<?php if( get_post_meta($post->ID,'bigfa_ding',true) ){
echo get_post_meta($post->ID,'bigfa_ding',true);
} else {
echo '0';
}?>
</span>喜欢
</a>
</span>
<span class="r"></span>
</p>
<?php if( is_sticky() ) echo '<em><a href="">顶</a></em>'; ?>
<!-- <span class="new-icon">NEW</span> -->
</div>
<!-- <font class="s_bar"></font> -->
<!--竖条-->
</div>
<?php endwhile; else : ?>
<h2>
<?php _e('Not Found'); ?>
</h2>
<?php endif; ?>
<?php wp_pagenavi(); ?>
<!--分页插件调用-->
</div>
<!-- 左侧区域结束 -->
<!-- 右侧区域开始 -->
<div class="continar-right">
<?php get_sidebar( $name ); ?>
</div>
<!-- 右侧区域结束 -->
</div>
<!-- 正文区域end -->
<!-- 首页背景音乐开始 -->
<!-- <audio src="http://sc1.111ttt.com/2015/1/04/01/97011918297.mp3" autoplay="autoplay" loop="loop" id="music"></audio>
<div class="control hover"></div> -->
<!-- 首页背景音乐结束 -->
<!-- 底部引用区域开始 -->
<?php get_footer()?>
<!-- 底部引用区域结束 -->
</body>
</html>