-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathfooter.php
91 lines (88 loc) · 3.78 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<footer class="footer">
<section class="container">
<span id="hitokoto">少女祈祷中......</span>
<p>
<span class='left'>© <?php echo date('Y'); ?>
<a href="<?php echo $this->options->SiteUrl(); ?>"><?php echo $this->options->title(); ?></a>
<span class='right'>Theme by <a href="https://biji.io" target="_blank">Adams</a></span>
</p>
</section>
</footer>
<script src="https://v1.hitokoto.cn/?encode=js&select=%23hitokoto" defer></script>
<?php $this->footer(); ?>
<div class="setting_tool iconfont">
<a class="back2top" style="display:none;"><i class="czs-arrow-up-l"></i></a>
<a class="sosearch"><i class="czs-search-l"></i></a>
<a class="socolor"><i class="czs-clothes-l"></i></a>
<div class="s">
<form id="search" method="post" action="<?php $this->options->siteUrl(); ?>" role="search" class="search">
<input class="search-key text" id="s" name="s" autocomplete="off" placeholder="输入关键词..." type="text" value="" required="required">
</form>
</div>
<div class="c">
<ul>
<li class="color undefined">默认</li>
<li class="color sepia">护眼</li>
<li class="color night">夜晚</li>
<li class="hr"></li>
<li class="font serif">Serif</li>
<li class="font sans">Sans</li>
</ul>
</div>
</div>
<script data-no-instant>
document.addEventListener('DOMContentLoaded', () => {
pangu.autoSpacingPage();
});
(function ($) {
$.extend({
adamsOverload: function () {
$('.navigation:eq(0)').remove();
$(".post_article a").attr("rel" , "external");
$("a[rel='external']:not([href^='#']),a[rel='external nofollow']:not([href^='#'])").attr("target","_blank");
$("a.vi,.gallery a,.attachment a").attr("rel" , "");
$.viewImage({
'target' : '.gallery a,.gallery img,.attachment a,.post_article img,.post_article a,a.vi',
'exclude' : '.readerswall img,.gallery a img,.attachment a img',
'delay' : 300
});
$.lately({
'target' : '.commentmetadata a,.infos time,.post-list time'
});
prettyPrint();
$('ul.links li a').each(function(){
if($(this).parent().find('.bg').length==0){
$(this).parent().append('<div class="bg" style="background-image:url(https://www.google.com/s2/favicons?domain='+$(this).attr("href")+')"></div>')
}
});
}
});
})(jQuery);
InstantClick.on('change', function(isInitialLoad) {
jQuery.adamsOverload();
if (isInitialLoad === false) {
// support MathJax
if (typeof MathJax !== 'undefined') MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
// support google code prettify
if (typeof prettyPrint !== 'undefined') prettyPrint();
// support 百度统计
if (typeof _hmt !== 'undefined') _hmt.push(['_trackPageview', location.pathname + location.search]);
// support google analytics
if (typeof ga !== 'undefined') ga('send', 'pageview', location.pathname + location.search);
}
});
InstantClick.on('wait', function() {
// pjax href click
});
InstantClick.on('fetch', function() {
// pjax begin
});
InstantClick.on('receive', function() {
// pjax end
});
InstantClick.init('mousedown');
jQuery.adamsOverload();
</script>
</body>
</html>