This repository has been archived by the owner on Oct 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
/
footer.php
executable file
·162 lines (153 loc) · 9.34 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
</section>
<footer>
<div id="footer"<?php echo ' style="background:rgba('.kratos_option('footer_color').')"'; ?>>
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3 footer-list text-center">
<p class="kratos-social-icons"><?php
echo (!kratos_option('social_weibo'))?'':'<a target="_blank" rel="nofollow" href="'.kratos_option('social_weibo').'"><i class="fa fa-weibo"></i></a>';
echo (!kratos_option('social_tweibo'))?'':'<a target="_blank" rel="nofollow" href="'.kratos_option('social_tweibo').'"><i class="fa fa-tencent-weibo"></i></a>';
echo (!kratos_option('social_mail'))?'':'<a target="_blank" rel="nofollow" href="'.kratos_option('social_mail').'"><i class="fa fa-envelope"></i></a>';
echo (!kratos_option('social_twitter'))?'':'<a target="_blank" rel="nofollow" href="'.kratos_option('social_twitter').'"><i class="fa fa-twitter"></i></a>';
echo (!kratos_option('social_facebook'))?'':'<a target="_blank" rel="nofollow" href="'.kratos_option('social_facebook').'"><i class="fa fa-facebook-official"></i></a>';
echo (!kratos_option('social_linkedin'))?'':'<a target="_blank" rel="nofollow" href="'.kratos_option('social_linkedin').'"><i class="fa fa-linkedin-square"></i></a>';
echo (!kratos_option('social_github'))?'':'<a class="github-tip" target="_blank" rel="nofollow" href="'.kratos_option('social_github').'"><i class="fa fa-github"></i></a>';
echo (!kratos_option('show_rss'))?'':'<a class="rss-tip" title="RSS订阅" target="_blank" rel="nofollow" href="';
if(kratos_option('show_rss')){ bloginfo('url');
echo '/feed"><i class="fa fa-rss"></i></a>';}
//B站logo
if(kratos_option('social_bilibili'))
{
echo '<a target="_blank" rel="nofollow" href="https://space.bilibili.com/'.kratos_option('social_bilibili').'"><img style="height: 30px;top:-9px;position:relative;left:-4px;" title="bilibili" src="';
bloginfo('template_url');
echo '/static/images/ua/bilibili.png"></a>';
}?>
</p>
<p> © <?php echo date('Y'); ?> <a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a>. All Rights Reserved.<br>本站已萌萌哒(✪ω✪)运行<span id="span_dt_dt">Loading...</span><br>Theme <a href="https://xiaoyou66.com/%e6%9c%ac%e7%ab%99%e4%b8%bb%e9%a2%98%e6%ad%a3%e5%bc%8f%e5%bc%80%e6%ba%90%ef%bc%81/" target="_blank" rel="nofollow">Kratos</a> Made by <a href="https://www.fczbl.vip" target="_blank" rel="nofollow">moedog</a> Modified by <a href="https://xiaoyou66.com" target="_blank" rel="nofollow">XiaoYou</a><?php if(kratos_option('sitemap')) echo ' <br><a href="'.get_option('home').'/sitemap.html" target="_blank">Sitemap</a>'; ?>
<?php if(kratos_option('icp_num')) echo '<br><a href="http://www.miitbeian.gov.cn/" rel="external nofollow" target="_blank">'.kratos_option('icp_num').'</a>';
if(kratos_option('gov_num')) echo '<br><a href="'.kratos_option('gov_link').'" rel="external nofollow" target="_blank"><i class="govimg"></i>'.kratos_option('gov_num').'</a>'; ?>
<br><!-- 站长统计-->
<?php if(kratos_option('script_tongji')) echo '<script type="text/javascript">'.kratos_option('script_tongji').'</script>';?>
</p>
</div>
</div>
</div>
<div class="cd-tool text-center">
<div class="<?php if(kratos_option('cd_weixin')) echo 'gotop-box2 '; ?>gotop-box"><div class="gotop-btn"><span class="fa fa-chevron-up"></span></div></div>
<?php if(kratos_option('cd_weixin')) echo '<div id="wechat-img" class="wechat-img"><span class="fa fa-weixin"></span><div id="wechat-pic"><img src="'.kratos_option('weixin_image').'"></div></div>'; ?>
<?php if(kratos_option('bibo_open')) {?>
<?php if(kratos_option('bibo_pagelink')){?>
<div class="bilbili-box">
<?php if($_COOKIE['goto_bibo']==1){?>
<a href="<?php echo site_url();?>?style=krato"> <span class="fa fa-exchange" title="切换风格"></span></a>
<?php }else{?>
<a href="<?php echo site_url();?>?style=bibo"> <span class="fa fa-exchange" title="切换风格"></span></a>
<?php }?>
</div>
<?php } ?>
<?php }?>
<div class="search-box">
<span class="fa fa-search"></span>
<form class="search-form" role="search" method="get" id="searchform" action="<?php echo home_url('/'); ?>">
<input type="text" name="s" id="search" placeholder="Search..." style="display:none"/>
</form>
</div>
</div>
<?php if(kratos_option('site_snow')&&(!wp_is_mobile()||wp_is_mobile()&&kratos_option('snow_xb2016_mobile'))){ ?>
<div class="xb-snow">
<canvas id="Snow" data-count="<?php echo kratos_option('snow_xb2016_flakecount'); ?>" data-dist="<?php echo kratos_option('snow_xb2016_mindist'); ?>" data-color="<?php echo kratos_option('snow_xb2016_snowcolor'); ?>" data-size="<?php echo kratos_option('snow_xb2016_size'); ?>" data-speed="<?php echo kratos_option('snow_xb2016_speed'); ?>" data-opacity="<?php echo kratos_option('snow_xb2016_opacity'); ?>" data-step="<?php echo kratos_option('snow_xb2016_stepsize'); ?>"></canvas>
</div>
<?php } ?>
</div>
</footer>
</div>
</div>
<?php
if (! wp_is_mobile() && kratos_option('openlive2d')) {
echo '<div class="waifu" >
<!--提示框 -->
<div class="waifu-tips" ></div >
<!--看板娘画布 -->
<canvas id = "live2d" class="live2d" ></canvas >
<!--工具栏 -->
<div class="waifu-tool" >
<span class="fui-home" ><i class="fa fa-home" aria-hidden="true"></i></span >
<span class="fui-chat" ><i class="fa fa-commenting" aria-hidden="true"></i></span >
<span class="fui-eye" ><i class="fa fa-refresh" aria-hidden="true"></i></span >
<span class="fui-user" ><i class="fa fa-eye" aria-hidden="true"></i></span >
<span class="fui-photo" ><i class="fa fa-camera-retro" aria-hidden="true"></i></span >
<span class="fui-info-circle" ><i class="fa fa-question-circle" aria-hidden="true"></i></span >
<span class="wifu-moon" ><i class="fa fa-moon-o" aria-hidden="true"></i></span >
<span class="fui-cross" ><i class="fa fa-times" aria-hidden="true"></i></span >
</div >
</div >
<script src = "';
echo bloginfo('template_url');
echo '/inc/live2d/waifu-tips.js" ></script ><script src = "';
echo bloginfo('template_url');
echo '/inc/live2d/live2d.js" ></script ><script type = "text/javascript" >initModel("';
echo bloginfo('template_url');
echo '/inc/live2d/waifu-tips.json")</script >';
}
?>
<!--Qplayer-->
<!--动态加载效果-->
<?php wp_footer();if(kratos_option('add_script')){ ?>
<script type="text/javascript">
<?php echo kratos_option('add_script'); ?>
</script>
<?php } ?>
<!--切换标签实现网页标题变化-->
<script type="text/javascript">
/*自动刷新页面,避免无法访问*/
var OriginTitile = document.title;
var titleTime;
document.addEventListener('visibilitychange', function() {
if (document.hidden) {
<?PHP if(kratos_option('title_change')){?>
document.title = '<?php echo kratos_option('title_change'); ?> ';
clearTimeout(titleTime);
<?php }?>
}
else {
<?php if(kratos_option('title_back')){?>
document.title = '<?php echo kratos_option('title_back'); ?>';
titleTime = setTimeout(function() {
document.title = OriginTitile;
}, 3000);
<?php } ?>
}
});
</script>
<!-- 鼠标特效 -->
<script type="text/javascript">
var a_idx = 0;
jQuery(document).ready(function($) {
$("body").click(function(e) {
var a = new Array(<?php echo kratos_option('click_content'); ?>);
var $i = $("<span />").text(a[a_idx]);
a_idx = (a_idx + 1) % a.length;
var x = e.pageX,
y = e.pageY;
$i.css({
"z-index": 99999999999999999999999999999999999999999999999999999999999999999999999999 ,
"top": y - 20,
"left": x,
"position": "absolute",
"font-weight": "bold",
"color": "#ff7bb0"
});
$("body").append($i);
$i.animate({
"top": y - 180,
"opacity": 0
},
1500,
function() {
$i.remove();
});
});
});
</script>
</body>
</html>