-
Notifications
You must be signed in to change notification settings - Fork 1
/
footer.ftl
171 lines (159 loc) · 4.81 KB
/
footer.ftl
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
<#--
Bolo - A stable and beautiful blogging system based in Solo.
Copyright (c) 2020, https://github.com/adlered
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<style type="text/css">
.container {
max-width: 1280px;
}
.media-comment .media-content {
max-width: 240px;
max-height: 130px;
}
</style>
<footer class="footer">
<div class="container">
<div class="level footer_main">
<div class="level-start has-text-centered-mobile">
<#include "../../common-template/macro-user_site.ftl"/>
<@userSite dir="n"/>
<br>
© ${.now?string('yyyy')} ${blogTitle!} • ${onlineVisitor1Label}${onlineVisitorCnt}
<br>
${footerContent}
<br>
Powered by <a href="https://doc.stackoverflow.wiki/web/#/7?page_id=87" target="_blank">Bolo</a>
Theme ${skinDirName}
</div>
<div class="field has-addons is-flex-center-mobile has-mt-5-mobile is-flex-wrap is-flex-middle">
</div>
</div>
</div>
</div>
</footer>
<script type="text/javascript" src="${staticServePath}/js/lib/jquery/jquery.min.js" charset="utf-8"></script>
<script src="${staticServePath}/js/lib/compress/pjax.min.js"></script>
<script src="${staticServePath}/js/common${miniPostfix}.js?${staticResourceVersion}"></script>
<script src="${staticServePath}/skins/${skinDirName}/js/common${miniPostfix}.js?${staticResourceVersion}"></script>
<script src="${staticServePath}/skins/${skinDirName}/js/layer.js?${staticResourceVersion}"></script>
<script src="${staticServePath}/skins/${skinDirName}/js/lazyload.js?${staticResourceVersion}"></script>
<script type="text/javascript" >
$(document).ready(function(){
var ctrlDown = false,ctrlKey = 17,cmdKey = 91,vKey = 86, cKey = 67;
$(document).keydown(function(e) {
if (e.keyCode == ctrlKey || e.keyCode == cmdKey) {
ctrlDown = true;
}
}).keyup(function(e) {
if (e.keyCode == ctrlKey || e.keyCode == cmdKey) {
ctrlDown = false;
}
});
$(document).keydown(function(e) {
if (ctrlDown && (e.keyCode == cKey)) {
layer.open({
title:"${blogTitle!}友情提示",
content:"您复制了本站内容,转载请注明来源:<a href=\"\">${blogTitle!}</a>。",
anim:4
});
}
if (ctrlDown && (e.keyCode == vKey)) console.log("Document catch Ctrl+V");
});
document.oncopy = function(){
layer.open({
title:"${blogTitle!}友情提示",
content:"您复制了本站内容,转载请注明来源:<a href=\"\">${blogTitle!}</a>。",
anim:4
});
}
$(".gallery-item").each(function(){
var href = $(this).attr("href");
var img = $(this).find("img");
var w = img.width;
var h = img.height;
$(this).attr("href","javascript:void(0)");
});
$(".gallery-item").on("click",function(){
var img = $(this).find("img");
var w = img.width;
var h = img.height;
var url = $(img).attr("src");
var alt = $(img).attr("alt");
showImage(w, h, url, alt);
});
$(".thumbnail").each(function(){
var src = $(this).attr("data-src");
$(this).attr("data-original", src);
$(this).attr("src", src);
$(this).lazyload();
});
});
function showImage(w, h,url, alt){
layer.photos({
photos:{
"title":"${blogTitle!}图片显示",
"id":"",
"data":[{
"alt":alt,
"src":url,
"thumb":url
}]
},anim: 0
});
}
function enterSearch(event){
if(event.keyCode == "13"){
search();
}
}
function qq(){
layer.open({
title:"${blogTitle!}友情提示",
content:"${blogTitle!}的QQ号码是:${usite.usiteQQ}",
anim:4
});
}
function wechat(){
layer.open({
title:"${blogTitle!}友情提示",
content:"${blogTitle!}的微信号码是:${usite.usiteWeChat}",
anim:4
});
}
function search(){
var s = $("#search").val();
if (s == ""){
layer.open({
title:"${blogTitle!}友情提示",
content:"搜索关键词不能为空!",
anim:4
});
return;
}
window.open("https://www.zeekling.cn/search?keyword=" + s);
}
function search_m(){
var s = $("#search-m").val();
if (s == ""){
layer.open({
title:"${blogTitle!}友情提示",
content:"搜索关键词不能为空!",
anim:4
});
return;
}
window.open("https://www.zeekling.cn/search?keyword=" + s);
}
</script>
<#include "../../common-template/label.ftl">
${plugins}