forked from ilaoniu/pluto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
359 lines (333 loc) · 11.4 KB
/
footer.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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
<?php
// 获取选项
error_reporting(0);
$edit = cs_get_option( 'i_footer_edit' );
$copyright = cs_get_option( 'i_foot_copyright' );
$gotop = cs_get_option( 'i_gotop' );
$qrcode = cs_get_option( 'i_qrcode' );
$qrcodeimg = cs_get_option( 'i_qrcode_image' );
$loadmore = cs_get_option( 'i_ajax_loading' );
$loadend = cs_get_option( 'i_ajax_end' );
$loadnum = cs_get_option( 'i_ajax_num' );
$pagination = cs_get_option('i_pagination');
$comment = cs_get_option( 'i_comment_switch' );
$player_id = cs_get_option( 'i_player_id' );
$player = cs_get_option('i_player');
$player_mobi = cs_get_option('i_player_mobi');
$share = cs_get_option( 'i_share' );
$tongji = cs_get_option( 'i_js_tongji' );
$shengming = cs_get_option( 'i_download_shengming' );
$sliders = cs_get_option( 'i_slider' );
$login = cs_get_option( 'i_login' );
$sidebar = cs_get_option( 'i_sidebar' );
$meta_data = get_post_meta( get_the_ID(), 'standard_options', true );
$download = $meta_data['i_download'];
$index = $meta_data['i_index'];
$circle = cs_get_option( 'i_circle' );
$footer_text = cs_get_option( 'i_footer_text' );
$notice = cs_get_option( 'i_notice' );
$notice_img = cs_get_option( 'i_notice_img' );
$notice_title = cs_get_option( 'i_notice_title' );
$notice_text = cs_get_option( 'i_notice_text' );
$notice_link = cs_get_option( 'i_notice_link' );
?>
<a href="#top" class="post-top"></a>
</div>
<!-- content-inner 结束-->
</div>
<!-- container 结束-->
</section>
<!-- content 结束-->
<?php if ($sidebar == true && !is_mobile() ) {?>
<?php get_sidebar(); ?>
<?php }?>
<!-- footer 开始-->
<footer id="footer">
<div class="footer-inner">
<div class="container">
<?php if ($footer_text && !is_mobile()) {?>
<div class="footer-text wb clearfix m_hide">
<?php echo $edit ?>
</div>
<?php }?>
</div>
</div>
<div class="footer-end">
<div class="container">
<?php if( ! empty( $copyright ) ){ echo ''.$copyright.'';}else{echo'© '.date("Y").' All Rights Reserved.';} ?>
<a href="http://zhw-island.com/" target="_blank"> Theme by Pluto</a>
<?php if( ! empty( $tongji ) ){ echo '<script>'.$tongji.'</script>';}else{echo' ';} ?>
</div>
</div>
</footer>
<!-- footer 结束-->
<?php if (!is_mobile()) { ?>
<!-- 浮动按钮 开始 -->
<div id="footer-btn" class="m_hide">
<ul>
<?php if ($gotop == true) {
echo '<li class="item">
<a href="#top" class="icon">
<i class="hand fa fa-chevron-up"></i>
</a>
</li>';
}?>
<?php if ($share == true) {
echo '<li class="item">
<a href="javascript:void(0)" class="icon" title="分享">
<i class="hand fa fa-share-alt"></i>
</a>
<div class="show-box baidu-share">
<div class="bdsharebuttonbox show-box-inner clearfix">
<a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间">分享到QQ空间</a>
<a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博">分享到新浪微博</a>
<a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信">分享到微信</a>
<a href="#" class="bds_douban" data-cmd="douban" title="分享到豆瓣网">分享到豆瓣网</a>
<a href="#" class="bds_tieba" data-cmd="tieba" title="分享到百度贴吧">分享到百度贴吧</a>
<a href="#" class="bds_sqq" data-cmd="sqq" title="分享到QQ好友">分享到QQ好友</a>
<a href="#" class="bds_mshare" data-cmd="mshare" title="分享到一键分享">分享到一键分享</a>
</div>
<script>
window._bd_share_config={
"common":{
"bdSnsKey":{},
"bdText":"",
"bdMini":"2",
"bdPic":"",
"bdStyle":"0",
"bdSize":"16"
},
"share":{}
};
with(document)0[(getElementsByTagName("head")[0]||body).appendChild(createElement("script")).src="http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion="+~(-new Date()/36e5)];
</script>
</div>
</li>';
}?>
<?php if ($comment == true && is_single ()) {
echo '<li class="item">
<a href="#comments" class="comment_btn hand icon"><i class="fa fa-comment-o"></i></a>
</li>';
}?>
<?php if ($qrcode == true) {
echo '<li class="item">
<a class="icon" href="javascript:void(0)">
<i class="fa fa-qrcode"></i>
</a>
<div class="show-box">
<div class="show-box-inner qr-box">
<img src="'. $qrcodeimg .'">
</div>
</div>
</li>';
}?>
</ul>
</div>
<!-- 浮动按钮 结束 -->
<?php }?>
<?php if ($player_mobi == true && is_mobile() ) { }else{ ?>
<?php if ($player == true && ! empty( $player_id ) && function_exists('cue_playlist') ) {?>
<!-- 播放器 开始 -->
<?php cue_playlist( $player_id ); ?>
<!-- 播放器 结束 -->
<?php } ?>
<?php } ?>
<?php if ( is_single() && !is_mobile() && $download) {?>
<!-- 下载弹窗 开始 -->
<div class="modal-wrap download-modal m_hide">
<div class="modal-container">
<div class="modal-header clearfix">
<span class="modal-title fl">
资源下载
</span>
<span class="modal-close"></span>
</div>
<div class="modal-body text-c">
<div class="dl-btn">
<a class="btn" href="javascript:void(0)" target="_black">
<i class="fa fa-arrow-circle-o-down"></i>点击下载
</a>
</div>
<div class="dl-tqcode">提取码:<span></span></div>
</div>
<div class="modal-bottom">
<span class="ofh">下载声明:<?php echo $shengming ?></span>
</div>
</div>
</div>
<!-- 下载弹窗 结束 -->
<?php } ?>
<?php if ( !is_user_logged_in() && $login == true && !is_mobile() ) { ?>
<!-- 登陆弹窗 开始 -->
<div class="modal-wrap login-modal m_hide">
<div class="modal-container">
<div class="modal-header clearfix">
<span class="modal-title fl">
登陆
</span>
<span class="modal-close"></span>
</div>
<div class="modal-body">
<?php
$login_form_args = array (
'form_id' => 'login-form',
'label_log_in' => '登录',
'remember' => false,
'value_remember' => false
);
?>
<?php wp_login_form($login_form_args); ?>
</div>
<div class="modal-bottom clearfix">
<span class="fl">
<a href="<?php echo htmlspecialchars(wp_lostpassword_url(get_permalink()), ENT_QUOTES); ?>"><?php echo __('忘记密码', 'pinthis'); ?></a>
</span>
<?php if (get_option('users_can_register')) { ?>
<span class="fr"><?php wp_register('', ''); ?></span>
<?php } ?>
</div>
</div>
</div>
<!-- 登陆弹窗 结束 -->
<?php } ?>
<?php if ( $notice == true && !is_mobile() ) { ?>
<!-- 公告弹窗 开始 -->
<div class="notice clearfix">
<div class="notice-img fl">
<img src="<?php echo $notice_img; ?>" alt="" class="">
</div>
<div class="notice-txt fl">
<h5 class="ofh notice-title ofh">
<?php echo $notice_title; ?>
</h5>
<div class="notice-content wb">
<?php echo $notice_text; ?>
</div>
<div class="notice-btn">
<a href="<?php echo $notice_link; ?>">阅读更多</a>
<a href="javascript:void(0)" class="notice-close">关闭</a>
</div>
</div>
</div>
<!-- 公告弹窗 结束 -->
<?php }?>
<?php if ( $circle == true && !is_mobile() ) { ?>
<canvas id="pixie"></canvas>
<?php }?>
<?php wp_footer(); ?>
<script>
<?php if ($sliders == true) { ?>
<?php
$effect = cs_get_option( 'i_slider_effect' );
$effect_style = '';
switch ($effect) {
case "i_sliceDown":
$effect_style = 'sliceDown';
break;
case "i_sliceDownLeft":
$effect_style = 'sliceDownLeft';
break;
case "i_sliceUp":
$effect_style = 'sliceUp';
break;
case "i_sliceUpLeft":
$effect_style = 'sliceUpLeft';
break;
case "i_sliceUpDown":
$effect_style = 'sliceUpDown';
break;
case "i_sliceUpDownLeft":
$effect_style = 'sliceUpDownLeft';
break;
case "i_fold":
$effect_style = 'fold';
break;
case "i_fade":
$effect_style = 'fade';
break;
case "i_random":
$effect_style = 'random';
break;
case "i_slideInRight":
$effect_style = 'slideInRight';
break;
case "i_slideInLeft":
$effect_style = 'slideInLeft';
break;
case "i_boxRandom":
$effect_style = 'boxRandom';
break;
case "i_boxRain":
$effect_style = 'boxRain';
break;
case "i_boxRainReverse":
$effect_style = 'boxRainReverse';
break;
case "i_boxRainGrow":
$effect_style = 'boxRainGrow';
break;
case "i_boxRainGrowReverse":
$effect_style = 'boxRainGrowReverse';
break;
}
?>
jQuery(window).load(function() {
jQuery('.nivoSlider').nivoSlider({
effect: '<?php echo $effect_style; ?>',
boxCols: 10,
boxRows: 5,
animSpeed: 300,
prevText: '',
nextText: '',
afterLoad: function(){
jQuery('.app_slider .slider_inner').removeClass('loading');
}
});
});
<?php } ?>
jQuery(document).ready(function($) {
<?php if ( $pagination == 'i_ajax' && is_home() || $pagination == 'i_ajax' && is_archive()) { ?>
// ajax加载
var ias = $.ias({
container: ".posts",
item: ".post",
pagination: ".post-nav-inside",
next: ".post-nav-right a",
});
ias.extension(new IASTriggerExtension({
textPrev: ' ',
text: '<?php echo $loadmore ?>',
offset: <?php echo $loadnum ?>,
}));
ias.extension(new IASNoneLeftExtension({
text: '<?php echo $loadend ?>',
}));
ias.extension(new IASSpinnerExtension());
ias.extension(new IASPagingExtension());
ias.extension(new IASHistoryExtension({
prev: '.post-nav-right a',
}));
ias.on('rendered', function(items) {
echo.init({
offset: 100,
throttle: 250,
unload: false,
});
if($(".audio-wrapper audio").length>0){
$('.audio-wrapper audio').mediaelementplayer();
};
$("img").not($(".wp-smiley")) .addClass('ajax_gif').load(function() {
$(this).removeClass('ajax_gif');
}).on('error', function () {
$(this).removeClass('ajax_gif').prop('src', 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==');
}).each(function(){
if ($(this).attr('src') == '') {
$(this).prop('src', 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==');
}
});
});
<?php } ?>
});
</script>
</body>
</html>