forked from dingzd1995/typecho-theme-waxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
92 lines (82 loc) · 3.75 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div class="copyright">
<div class="container">
<div class="row">
<div class="col-sm-12">
<span> Copyright © <?php echo date("Y"); ?> <a href="<?php $this->options->siteUrl(); ?>" target="_blank"><?php $this->options->title(); ?></a></span><br />
<span>Powered by <a rel="noopener" href="https://typecho.org/" target="_blank">Typecho</a> | Theme by <a rel="noopener" href="https://github.com/dingzd1995/typecho-theme-waxy" target="_blank">Waxy</a><?php add_ICP($this); ?></span><br />
</div>
</div>
</div>
</div>
<a id="back-to-top"><i class="glyphicon glyphicon-menu-up"></i></a>
<!--bootcss-->
<?php if (strcmp($this->options->CDN,"bootcss")==0): ?>
<script src="//cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
<script src="//cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="//cdn.bootcss.com/fancybox/3.5.7/jquery.fancybox.min.js"></script>
<script src="//cdn.bootcss.com/jquery_lazyload/1.9.7/jquery.lazyload.js"></script>
<?php endif; ?>
<!--bootcss END-->
<!--jsdelivr-->
<?php if (strcmp($this->options->CDN,"jsdelivr")==0): ?>
<script src="//cdn.jsdelivr.net/gh/jquery/jquery@3.1.1/dist/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/lazyload@1.8.4/jquery.lazyload.min.js"></script>
<?php endif; ?>
<!--jsdelivr END-->
<!--local-->
<?php if (strcmp($this->options->CDN,"local")==0): ?>
<script src="<?php $this->options->themeUrl('js/jquery.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/bootstrap.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/jquery.fancybox.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/jquery.lazyload.min.js'); ?>"></script>
<?php endif; ?>
<!--local END-->
<script src="<?php $this->options->themeUrl('js/waxy-main.js'); ?>"></script>
<!--代码高亮-->
<?php if ($this->options->codeHighlightControl): ?>
<script type="text/javascript">
(function(){
var pres = document.querySelectorAll('pre');
var lineNumberClassName = 'line-numbers';
pres.forEach(function (item, index) {
item.className = item.className == '' ? lineNumberClassName : item.className + ' ' + lineNumberClassName;
});
})();
</script>
<script type="text/javascript" src="<?php $this->options->themeUrl('lib/prism/clipboard.min.js'); ?>"></script>
<script type="text/javascript" src="<?php $this->options->themeUrl('lib/prism/prism.js'); ?>"></script>
<?php endif; ?>
<!--END-->
<!--置顶文章滚动支持-->
<?php if (!empty($this->options->sticky)&&count(explode(',', strtr($this->options->sticky, ' ', ',')))>1): ?>
<script type="text/javascript">
var doscroll = function(){
var $parent = $('.js-slide-list');
var $first = $parent.find('li:first');
var height = $first.height();
$first.animate({
marginTop: -height + 'px'
}, 500, function() {
$first.css('marginTop', 0).appendTo($parent);
});
};
setInterval(function(){doscroll()}, 2000);
</script>
<?php endif; ?>
<!--END-->
<!--网站加载动画-->
<?php if ($this->options->load_html): ?>
<script type="text/javascript">
$("#loading").fadeOut(500);
</script>
<?php endif; ?>
<!--END-->
<!--自定义JS-->
<?php add_custom_js($this); ?>
<!--END-->
<?php $this->footer(); ?>
</body>
</html>