generated from halo-dev/halo-theme-quick-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.ftl
283 lines (279 loc) · 11.5 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
<#--
/**
* The template for displaying the footer.
*
* Contains the closing of the #content div and all content after.
*
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
*
* @package Akina
*/
-->
<#global res_base_url = settings.cdn?then("//cdn.jsdelivr.net/gh/LIlGG/[email protected]", theme_base)/>
<#macro footer>
</div><!-- #content -->
<#include "comments.ftl">
<#if is_post??>
<@comment post,"post" />
<#elseif is_sheet??>
<@comment sheet,"sheet" />
</#if>
</div><!-- #page Pjax container-->
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="site-info">
<div class="footertext">
<p class="foo-logo"
style="background-image: url('${settings.footer_logo?default('${res_base_url!}/source/images/sakura.svg')}');"></p>
<@global.footer />
</div>
<div class="footer-device">
<!-- 请尊重作者,请务必保留版权 -->
<p style="font-family: 'Ubuntu', sans-serif;">
<span>Powered
<i class="fa fa-vimeo animated" style="color: #e74c3c;"></i>
by
<a rel="me" target="_blank" href="http://halo.run" title="一个优秀的开源博客发布应用" style="text-decoration:none;">Halo</a>
</span>
•
<span>Crafted with
<i class="fa fa-heart animated" style="color: #e74c3c;"></i>
by
<a rel="me" target="_blank" href="https://github.com/LIlGG/halo-theme-sakura" style="text-decoration:none;">LIlGG</a>
</span>
</p>
<p>
© ${.now?string("yyyy")} ${(user.nickname)!}
<#if settings.footer_case_number?? && settings.footer_case_number != "">
<a href="https://beian.miit.gov.cn/ " target="_blank">${settings.footer_case_number}</a>
</#if>
</p>
</div>
</div><!-- .site-info -->
</footer><!-- #colophon -->
<div class="openNav">
<div class="iconflat">
<div class="icon"></div>
</div>
<div class="site-branding">
<#if blog_logo?? && blog_logo!=''>
<div class="site-title">
<a href="${blog_url!}">
<img src="${blog_logo!}">
</a>
</div>
<#else>
<h1 class="site-title"><a href="${blog_url!}">${blog_title!}</a></h1>
</#if>
</div>
</div><!-- m-nav-bar -->
</section><!-- #section -->
<!-- m-nav-center -->
<div id="mo-nav">
<div class="m-avatar">
<img src="${(user.avatar)!'${res_base_url!}/source/images/avatar.jpg'}">
</div>
<#if settings.glitch_text??>
<p style="text-align: center; color: #333; font-weight: 900; font-family: 'Ubuntu', sans-serif; letter-spacing: 1.5px">${settings.glitch_text}</p>
</#if>
<#if settings.focus_infos!true>
<p style="text-align: center; word-spacing: 20px;">
<#if settings.twitter??>
<a href="${settings.twitter!}" class="social-twitter" target="_blank" style="color: #00aced"><img src="${res_base_url!}/source/images/sns/twitter.png" width="18"/></a>
</#if>
<#if settings.sina??>
<a href="${settings.sina!}" class="social-sina" target="_blank" style="color: #dd4b39"><img src="${res_base_url!}/source/images/sns/sina.png" width="18"/></a>
</#if>
<#if settings.github??>
<a href="${settings.github!}" class="social-github" target="_blank" style="color: #333"><img src="${res_base_url!}/source/images/sns/github.png" width="18"/></a>
</#if>
<#if settings.wechat??>
<a href="${settings.wechat!}" class="social-wechat" target="_blank" style="color: #333"><img src="${res_base_url!}/source/images/sns/wechat.png" width="18"/></a>
</#if>
<#if settings.qq??>
<a href="//wpa.qq.com/msgrd?v=3&uin=${settings.qq!}&site=qq&menu=yes" class="social-wangyiyun" target="_blank" style="color: #333"><img src="${res_base_url!}/source/images/sns/qq.png" width="18"/></a>
</#if>
<#if settings.bili??>
<a href="${settings.bili!}" class="social-bili" target="_blank" style="color: #333"><img src="${res_base_url!}/source/images/sns/bilibili.png" width="18"/></a>
</#if>
<#if settings.wangyiyun??>
<a href="${settings.wangyiyun!}" class="social-wangyiyun" target="_blank" style="color: #333"><img src="${res_base_url!}/source/images/sns/wangyiyun.png" width="18"/></a>
</#if>
</p>
</#if>
<div class="m-search">
<form class="m-search-form" method="get" action="/search" role="search">
<input class="m-search-input" type="search" name="keyword" placeholder="搜索..." required>
</form>
</div>
<#include "layouts/nav.ftl">
<p class="m-footer">© ${.now?string("yyyy")} ${(user.nickname)!}</p>
</div><!-- m-nav-center end -->
<a href="#" class="cd-top"></a>
<!-- m-cd-top start -->
<button class="m-cd-top" title="Go to top">
<i class="fa fa-chevron-up" aria-hidden="true"></i>
</button>
<!-- m-cd-top end -->
<!-- search start -->
<form class="js-search search-form search-form--modal" method="get" action="/search" role="search">
<div class="search-form__inner">
<div>
<p class="micro mb-">输入后按回车搜索 ...</p>
<i class="iconfont icon-search"></i>
<input class="text-input" type="search" name="keyword" placeholder="Search" required>
</div>
</div>
<div class="search_close"></div>
</form>
<!-- search end -->
<!-- aplayer start -->
<#if settings.is_aplayer!false || settings.aplayer_float!false>
<div id="aplayer-float" style="z-index: 100;" class="aplayer" data-global="true" data-id="${settings.aplayer_id!'2345868969'}" data-server="${settings.aplayer_server!'netease'}" data-type="${settings.aplayer_type!'playlist'}" data-fixed="true" data-preload="${settings.aplayer_preload!'none'}" data-order="${settings.aplayer_order!'list'}" data-theme="${settings.aplayer_theme!'orange'}" data-autoplay="${(settings.aplayer_autoplay!false)?string('true', 'false')}"></div>
</#if>
<!-- aplayer end -->
<!-- theme-change start -->
<#if settings.theme_change!true>
<div class="changeSkin-gear no-select">
<div class="keys">
<span id="open-skinMenu">切换主题 | SCHEME TOOL <i class="iconfont icon-gear inline-block rotating"></i></span>
</div>
</div>
<div class="skin-menu no-select">
<div class="theme-controls row-container">
<ul class="menu-list">
<#list 0..7 as i>
<#assign iconStr="settings.bg_icon_${i}" icon = (iconStr?eval)?default("fa fa-television") />
<#assign descStr="settings.bg_desc_${i}" desc = (descStr?eval)?default("") />
<li id="bg_${i}" data-text="${desc}">
<i class="${icon}" aria-hidden="true" ></i>
</li>
</#list>
</ul>
</div>
</div>
</#if>
<!-- theme-change end -->
<!-- 定义全局属性 -->
<script type='text/javascript'>
/* <![CDATA[ */
var Poi = {
"pjax":"${(settings.poi_pjax!true)?string('true','')}",
"windowheight":"${(!(settings.focus_height!true))?string('fixed','auto')}",
"ajaxurl":"${blog_url!}",
"formpostion":"bottom",
"toc": "${(settings.post_toc!true)?string('true','')}",
"codeLine": "${(settings.code_line!true)?string('true','')}",
"themeChange": "${(settings.code_line!true)?string('true','')}",
"headFocus": "${(settings.head_focus!true)?string('true','')}",
"bgvideo": "${(settings.bgvideo!true)?string('true','')}",
"tagRandomColorMin": "${settings.tag_randomColorMin!0.965}",
"tagRandomColorMax": "${settings.tag_randomColorMax!0.969}",
"nickname": "${user.nickname!}",
"sitename": "${blog_title!}",
"themeBase": "${theme_base!}",
"openToast": "${(settings.open_toast!true)?string('true','')}",
"toastWidth": ${settings.toast_width!},
"toastHeight": ${settings.toast_height!},
"toastTop": "${settings.toast_top!}",
"toastBackground": "${settings.theme_skin!}",
"toastColor": "${settings.toast_color!}",
"toastFontSize": ${settings.toast_font_size!},
"copyMonitor": "${(settings.copy_monitor!true)?string('true','')}",
"copyrightNotice": "${(settings.copyright_notice!true)?string('true','')}",
"photosStyle": "${(settings.photos_style)!'justify'}",
"photosGutter": ${(settings.photos_gutter)!10},
"tocDepth": ${(settings.toc_depth)!0},
"i18n": "${settings.i18n!'auto'}",
"mathjax": "${(settings.mathjax!false)?string('true','')}",
"coverNum": "${(settings.rimage_cover_back_num)!'0'}",
"rimageUrl": "${(settings.rimage_url)!''}",
"coverOpen": "${(settings.rimage_cover_back_open!false)?string('true','')}",
"meEmail": "${(settings.email)!''}",
"defaultTheme": "${(settings.default_theme)!'bg_0'}"
};
var bgConfig = {
<#list 0..7 as i>
<#assign name = (("settings.bg_name_" + i)?eval)?default(""),
desc = (("settings.bg_desc_" + i)?eval)?default(""),
url = (("settings.bg_url_" + i)?eval)?default(""),
strategy = (("settings.bg_img_strategy_" + i)?eval)?default(""),
isNight = (("settings.bg_night_" + i)?eval)?default("") />
"bg_${i}": {
"name": "${name}",
"desc": "${desc}",
"url": "${url}",
"strategy": "${strategy}",
"isNight": "${(isNight!true)?string('true', '')}"
},
</#list>
};
/* ]]> */
</script>
<script type='text/javascript' src='${res_base_url!}/script/utils.min.js?ver=1.3.0'></script>
<script type="text/javascript" src="${res_base_url!}/source/lib/lazysizes/lazysizes.min.js"></script>
<script type="text/javascript" src="${res_base_url!}/source/js/lib.js"></script>
<!-- 相册 -->
<#if settings.photos_style == "justify">
<script src="${res_base_url!}/source/lib/justifiedGallery/jquery.justifiedGallery.min.js"></script>
<#elseif settings.photos_style == "masonry" || settings.photos_style == "packery">
<script src="${res_base_url!}/source/lib/isotope.pkgd.min/index.js"></script>
<script src="${res_base_url!}/source/lib/imagesloaded/imagesloaded.pkgd.min.js"></script>
<#if settings.photos_style == "packery">
<script type='text/javascript' src='${res_base_url!}/source/lib/packery-mode.pkgd.min/index.js'></script>
</#if>
</#if>
<script type="text/javascript" src="${res_base_url!}/source/js/highlight/highlight.pack.js"></script>
<#if settings.code_line!true>
<script type="text/javascript" src="${res_base_url!}/source/js/highlight/highlightjs-line-numbers.min.js"></script>
</#if>
<#if settings.is_aplayer!false>
<script src="${res_base_url!}/source/lib/APlayer/APlayer.min.js" defer></script>
<script src="${res_base_url!}/plugins/aplayer/js/index.js" defer></script>
</#if>
<#if settings.post_toc!true>
<script src="${res_base_url!}/source/lib/tocbot/dist/tocbot.min.js" defer></script>
</#if>
<script src="${settings.comment_mode!'//cdn.jsdelivr.net/gh/LIlGG/[email protected]/dist/halo-comment.min.js'}" defer></script>
<#if settings.tag_cloud!true>
<script src="${res_base_url!}/source/lib/jqcloud2/jqcloud.min.js" defer></script>
<script type='text/javascript'>
var wordcloud = [
<@tagTag method="list">
<#list tags as tag>
{'text': '${tag.name!}', 'weight': '${tag.postCount!}', 'link': '${tag.fullPath!}'},
</#list>
</@tagTag>
]
</script>
</#if>
<#if settings.category_radar!true>
<script src="${res_base_url!}/source/js/echarts/echarts.min.js" defer></script>
<script type='text/javascript'>
var categoryRadar = {
<@categoryTag method="list">
<#list categories as category>
'${category.name!}': '${category.postCount!}',
</#list>
</@categoryTag>
}
</script>
</#if>
<script type='text/javascript' src='${res_base_url!}/source/js/qrcode.min.js' defer></script>
<script type='text/javascript' src='${res_base_url!}/source/lib/flv.min/index.js' defer></script>
<script type='text/javascript' src='${res_base_url!}/script/i18n.min.js?ver=1.3.0' defer></script>
<#if settings.mathjax!false>
<script type='text/javascript' src="${res_base_url!}/plugins/mathjax/js/index.js"></script>
</#if>
<script type='text/javascript' src='${theme_base!}/script/app.min.js?ver=1.3.0'></script>
<#nested />
<#if settings.live2d_switch!true>
<script src="${res_base_url!}/source/lib/jquery-ui/jquery-ui.min.js" async defer></script>
<#include "plugins/live2d/ftl/live2d.ftl">
<@live2d/>
</#if>
<div class="site-statistics">
<@global.statistics />
</div>
</body>
</html>
</#macro>