-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathfooter.php
More file actions
121 lines (111 loc) · 5.51 KB
/
Copy pathfooter.php
File metadata and controls
121 lines (111 loc) · 5.51 KB
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
<div class="footer pc">
<div class="navigation"><!--底部菜单导航-->
<?php if ($menu = CustomMenu()): ?>
<?php echo $menu['noIcon']; ?>
<?php endif; ?>
<!--如果需要仅在网站底部额外增加页面路径,则按照以下格式增加即可:
<a href="/archives">归档</a>
-->
</div>
<div class="copyright">
Copyright©<?php if (!empty($this->options->Webtime)): echo $this->options->Webtime().'-'; ?><?php endif; ?><?php echo date('Y'); ?> All Rights Reserved. Load:<?php echo timer_stop();?><br>
<?php if (!empty($this->options->WA)): ?>
<img src="<?php $this->options->themeUrl('/static/img/beian.png'); ?>"/><a href="https://beian.mps.gov.cn" rel="nofollow noreferrer" target="_blank"><?php $this->options->WA(); ?></a>
<?php endif; ?>
<?php if (!empty($this->options->ICP)): ?>
<a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow noreferrer"><?php $this->options->ICP(); ?></a><br>
<?php endif; ?>
Theme by <a id="copyright-pc" href="https://docs.onenote.io" title="自豪地使用OneBlog主题" target="_blank">OneBlog</a> V<?php echo parseThemeVersion();?>
<div class="switch">
<span>夜间模式</span>
<input type="checkbox" id="night2" class="night-toggle">
<label for="night2" class="switchBtn"></label>
</div>
</div>
<div class="contact">
<?php if (!empty($this->options->QQ)): ?>
<a id="qq" title="QQ"><i class="iconfont icon-qq"></i></a>
<?php endif; ?>
<?php if (!empty($this->options->Weixin)): ?>
<a id="wxmp" title="微信公众号"><i class="iconfont icon-wechat"></i></a>
<?php endif; ?>
<?php if (!empty($this->options->Email)): ?>
<a id="tomail" title="博主邮箱"><i class="iconfont icon-mail"></i></a>
<?php endif; ?>
<?php if (!empty($this->options->Github)): ?>
<a href="<?php $this->options->Github();?>" target="_blank" title="Github"><i class="iconfont icon-github"></i></a>
<?php endif; ?>
</div>
</div>
<?php $this->footer();?>
<script src="https://cncdn.cc/jquery/3.7.1/dist/jquery.min.js"></script><!--基础依赖放在最前面-->
<script src="https://cncdn.cc/@fancyapps/fancybox/3.5.7/dist/jquery.fancybox.min.js"></script><!--图片灯箱效果-->
<script src="https://cncdn.cc/layer/3.1.1/layer.js"></script>
<?php if ($this->is('index')):?>
<script src="https://cncdn.cc/swiper/8.3.2/swiper-bundle.min.js"></script>
<script>
var bannerSwitch = '<?= $this->options->switch === 'on' ? 'on' : 'off' ?>';
</script>
<?php endif;?>
<?php if ($this->is('post') || $this->is('page')): ?>
<?php if ($this->options->BeCode == 'on'):?>
<!--代码高亮逻辑-->
<script src="https://cncdn.cc/highlightjs/cdn-release/11.11.1/build/highlight.min.js"></script>
<script defer>
document.addEventListener('DOMContentLoaded', function () {
const codeBlocks = document.querySelectorAll('pre code');
if (!codeBlocks.length || typeof hljs === 'undefined') return;
if (!('IntersectionObserver' in window)) {
codeBlocks.forEach(function (codeBlock) {
hljs.highlightElement(codeBlock);
codeBlock.style.filter = 'none';
});
return;
}
const observer = new IntersectionObserver(function (entries) {
entries.forEach(function (entry) {
if (entry.isIntersecting) {
hljs.highlightElement(entry.target);
observer.unobserve(entry.target);
}
});
}, {
rootMargin: '0px',
threshold: 0.1 // 当代码块进入视口 10% 时触发,减少资源占用
});
codeBlocks.forEach(function (codeBlock) {
observer.observe(codeBlock);
codeBlock.style.filter = 'none'; // 显示高亮后的代码块
});
});
</script>
<?php endif;?>
<!--表情支持-->
<script src="<?php $this->options->themeUrl('/static/js/emoji.js'); ?>"></script>
<?php if ($this->options->GeetestID): ?>
<!--人机验证-->
<script src="https://static.geetest.com/v4/gt4.js"></script>
<?php endif;?>
<!--评论无限加载js-->
<script src="<?php $this->options->themeUrl('/static/js/comments.js?v=3.7.1'); ?>"></script>
<?php endif;?>
<script src="<?php $this->options->themeUrl('/static/js/main.js?v=3.7.1'); ?>"></script><!--主题js-->
<!-- 版权信息 -->
<div id="copyright-info" style="display: none;">
<p>开源不易,请尊重作者版权,保留基本的版权信息。</p>
</div>
<script type="text/javascript">
$(document).on('click', '#qq', function() {layer.msg(<?php echo json_encode((string) $this->options->QQ, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); ?>,{time:4000});});
$(document).on('click', '#wxmp', function() {
var wxmpUrl = <?php echo json_encode((string) $this->options->Weixin, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); ?>;
layer.open({type: 1,title: false,closeBtn: 0,shadeClose: true,skin: 'layui-layer-nobg',area: ['auto'], content: $('<img>', {id: 'mywxmp', src: wxmpUrl}).css({width:'20rem',height:'20rem',display:'block'})});
});
$(document).on('click', '#tomail', function() {layer.msg('联系邮箱:' + <?php echo json_encode((string) $this->options->Email, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); ?>,{time:4000});});
</script>
<!--自定义JS代码-->
<?php if (!empty($this->options->JS)): ?>
<?php $this->options->JS();?>
<?php endif; ?>
</div>
</body>
</html>