-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathfooter.php
executable file
·292 lines (268 loc) · 18 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
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
284
285
286
287
288
289
290
291
292
<!-- Floating Action Button -->
<div class="fabs">
<a href="#top" class="fab">
<i class="material-icons">expand_less</i>
</a>
<?php if ($this->is('index')||$this->is('archive')): ?>
<?php $this->pageLink('
<i class="material-icons">keyboard_arrow_left</i>
'); ?>
<?php else: ?>
<?php $this->theNext('%s', null, array('title' =>
'<i class="material-icons">keyboard_arrow_left</i>',
'tagClass' => 'prev-content')); ?>
<?php endif;?>
<?php if ($this->is('index')||$this->is('archive')): ?>
<?php $this->pageLink('
<i class="material-icons">keyboard_arrow_right</i>
', 'next'); ?>
<?php else: ?>
<?php $this->thePrev('%s', null, array('title' =>
'<i class="material-icons">keyboard_arrow_right</i>',
'tagClass' => 'prev-content')); ?>
<?php endif;?>
<a id="prime" class="fab">
<i class="material-icons prime-i-add">add</i>
</a>
</div>
<!--Footer-->
<footer class="mdl-mini-footer" id="bottom">
<!--mdl-mini-footer-left-section-->
<div class="mdl-mini-footer--left-section">
<?php if (!empty($this->options->footersns) && in_array('ShowTwitter', $this->options->footersns)) : ?>
<?php if (!empty($this->options->CDNURL)): ?>
<a href="<?php $this->options->TwitterURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__twitter" style="background-image: url(<?php $this->options->CDNURL() ?>/MaterialCDN/img/footer/footer_ico-twitter.png);">
<?php else: ?>
<a href="<?php $this->options->TwitterURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__twitter" style="background-image: url(<?php $this->options->themeUrl('img/footer/footer_ico-twitter.png'); ?>);">
<?php endif; ?>
<span class="visuallyhidden">Twitter</span>
</button></a>
<?php endif;?>
<?php if (!empty($this->options->footersns) && in_array('ShowFacebook', $this->options->footersns)) : ?>
<?php if (!empty($this->options->CDNURL)): ?>
<a href="<?php $this->options->FacebookURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__facebook" style="background-image: url(<?php $this->options->CDNURL() ?>/MaterialCDN/img/footer/footer_ico-facebook.png);">
<?php else: ?>
<a href="<?php $this->options->FacebookURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__facebook" style="background-image: url(<?php $this->options->themeUrl('img/footer/footer_ico-facebook.png'); ?>);">
<?php endif; ?>
<span class="visuallyhidden">Facebook</span>
</button></a>
<?php endif;?>
<?php if (!empty($this->options->footersns) && in_array('ShowGooglePlus', $this->options->footersns)) : ?>
<?php if (!empty($this->options->CDNURL)): ?>
<a href="<?php $this->options->GooglePlusURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__gplus" style="background-image: url(<?php $this->options->CDNURL() ?>/MaterialCDN/img/footer/footer_ico-gplus.png);">
<?php else: ?>
<a href="<?php $this->options->GooglePlusURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__gplus" style="background-image: url(<?php $this->options->themeUrl('img/footer/footer_ico-gplus.png'); ?>);">
<?php endif; ?>
<span class="visuallyhidden">Google Plus</span>
</button></a>
<?php endif;?>
<?php if (!empty($this->options->footersns) && in_array('ShowWeibo', $this->options->footersns)) : ?>
<?php if (!empty($this->options->CDNURL)): ?>
<a href="<?php $this->options->WeiboURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->CDNURL() ?>/MaterialCDN/img/footer/footer_ico-weibo.png);">
<?php else: ?>
<a href="<?php $this->options->WeiboURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->themeUrl('img/footer/footer_ico-weibo.png'); ?>);">
<?php endif; ?>
<span class="visuallyhidden">Sina Weibo</span>
</button></a>
<?php endif;?>
<?php if (!empty($this->options->footersns) && in_array('ShowInstagram', $this->options->footersns)) : ?>
<?php if (!empty($this->options->CDNURL)): ?>
<a href="<?php $this->options->InstagramURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->CDNURL() ?>/MaterialCDN/img/footer/footer_ico-instagram.png);">
<?php else: ?>
<a href="<?php $this->options->InstagramURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->themeUrl('img/footer/footer_ico-instagram.png'); ?>);">
<?php endif; ?>
<span class="visuallyhidden">Instagram</span>
</button></a>
<?php endif;?>
<?php if (!empty($this->options->footersns) && in_array('ShowGithub', $this->options->footersns)) : ?>
<?php if (!empty($this->options->CDNURL)): ?>
<a href="<?php $this->options->GithubURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->CDNURL() ?>/MaterialCDN/img/footer/footer_ico-github.png);">
<?php else: ?>
<a href="<?php $this->options->GithubURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->themeUrl('img/footer/footer_ico-github.png'); ?>);">
<?php endif; ?>
<span class="visuallyhidden">Github</span>
</button></a>
<?php endif;?>
<?php if (!empty($this->options->footersns) && in_array('ShowTumblr', $this->options->footersns)) : ?>
<?php if (!empty($this->options->CDNURL)): ?>
<a href="<?php $this->options->TumblrURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->CDNURL() ?>/MaterialCDN/img/footer/footer_ico-tumblr.png);">
<?php else: ?>
<a href="<?php $this->options->TumblrURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->themeUrl('img/footer/footer_ico-tumblr.png'); ?>);">
<?php endif; ?>
<span class="visuallyhidden">Tumblr</span>
</button></a>
<?php endif;?>
<?php if (!empty($this->options->footersns) && in_array('ShowBilibili', $this->options->footersns)) : ?>
<?php if (!empty($this->options->CDNURL)): ?>
<a href="<?php $this->options->BilibiliURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->CDNURL() ?>/MaterialCDN/img/footer/footer_ico-bilibili.png);">
<?php else: ?>
<a href="<?php $this->options->BilibiliURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->themeUrl('img/footer/footer_ico-bilibili.png'); ?>);">
<?php endif; ?>
<span class="visuallyhidden">Bilibili</span>
</button></a>
<?php endif;?>
<?php if (!empty($this->options->footersns) && in_array('ShowTelegram', $this->options->footersns)) : ?>
<?php if (!empty($this->options->CDNURL)): ?>
<a href="<?php $this->options->TelegramURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->CDNURL() ?>/MaterialCDN/img/footer/footer_ico-telegram.png);">
<?php else: ?>
<a href="<?php $this->options->TelegramURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->themeUrl('img/footer/footer_ico-telegram.png'); ?>);">
<?php endif; ?>
<span class="visuallyhidden">Telegram</span>
</button></a>
<?php endif;?>
<?php if (!empty($this->options->footersns) && in_array('ShowZhihu', $this->options->footersns)) : ?>
<?php if (!empty($this->options->CDNURL)): ?>
<a href="<?php $this->options->ZhihuURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->CDNURL() ?>/MaterialCDN/img/footer/footer_ico-zhihu.png);">
<?php else: ?>
<a href="<?php $this->options->ZhihuURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->themeUrl('img/footer/footer_ico-zhihu.png'); ?>);">
<?php endif; ?>
<span class="visuallyhidden">Zhihu</span>
</button></a>
<?php endif;?>
<?php if (!empty($this->options->footersns) && in_array('ShowLinkedin', $this->options->footersns)) : ?>
<?php if (!empty($this->options->CDNURL)): ?>
<a href="<?php $this->options->LinkedinURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->CDNURL() ?>/MaterialCDN/img/footer/footer_ico-linkedin.png);">
<?php else: ?>
<a href="<?php $this->options->LinkedinURL() ?>" target="view_window"><button class="mdl-mini-footer--social-btn social-btn social-btn__weibo" style="background-image: url(<?php $this->options->themeUrl('img/footer/footer_ico-linkedin.png'); ?>);">
<?php endif; ?>
<span class="visuallyhidden">Linkedin</span>
</button></a>
<?php endif;?>
</div>
<!--copyright-->
<div id="copyright">Copyright ©
<?php echo date("Y"); ?>
<?php $this->options->title(); ?>
</div>
<?php if (class_exists("Uptime_Plugin")): ?>
<div id="copyright">
<?php Uptime_Plugin::show(); ?>
</div>
<?php endif; ?>
<!--mdl-mini-footer-right-section-->
<div class="mdl-mini-footer--right-section">
<div>
<div class="footer-develop-div">Powered by <a href="http://typecho.org" target="_blank" class="footer-develop-a">Typecho</a></div>
<div class="footer-develop-div">Theme by <a href="https://viosey.com" target="_blank" class="footer-develop-a">Viosey</a></div>
</div>
</div>
</footer>
</main>
<div class="mdl-layout__obfuscator"></div>
</div>
<!--Analysis code-->
<?php $this->options->analysis(); ?>
</body>
<!-- Material js -->
<?php if (!empty($this->options->CDNURL)): ?>
<script src="<?php $this->options->CDNURL() ?>/MaterialCDN/js/jquery.min.js"></script>
<script src="<?php $this->options->CDNURL() ?>/MaterialCDN/js/js.min.js"></script>
<script src="<?php $this->options->CDNURL() ?>/MaterialCDN/js/jquery.pjax.js"></script>
<?php else: ?>
<script src="<?php $this->options->themeUrl('js/jquery.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/js.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/jquery.pjax.js'); ?>"></script>
<?php endif; ?>
<?php if (!empty($this->options->switch) && in_array('ShowLoadingLine', $this->options->switch)): ?>
<?php if (!empty($this->options->CDNURL)): ?>
<script src="<?php $this->options->CDNURL() ?>/MaterialCDN/js/nprogress.js"></script>
<?php else: ?>
<script src="<?php $this->options->themeUrl('js/nprogress.js'); ?>"></script>
<?php endif; ?>
<script type="text/javascript">
NProgress.configure({
showSpinner: true
});
NProgress.start();
$('#nprogress .bar').css({
'background': '<?php $this->options->loadingcolor(); ?>'
});
$('#nprogress .peg').css({
'box-shadow': '0 0 10px <?php $this->options->loadingcolor(); ?>, 0 0 15px <?php $this->options->loadingcolor(); ?>'
});
$('#nprogress .spinner-icon').css({
'border-top-color': '<?php $this->options->loadingcolor(); ?>',
'border-left-color': '<?php $this->options->loadingcolor(); ?>'
});
setTimeout(function() {
NProgress.done();
$('.fade').removeClass('out');
}, <?php $this->options->loadingbuffer(); ?>);
</script>
<?php endif; ?>
<?php if (!empty($this->options->switch) && in_array('SmoothScroll', $this->options->switch)): ?>
<?php if (!empty($this->options->CDNURL)): ?>
<script src="<?php $this->options->CDNURL() ?>/MaterialCDN/js/smoothscroll.js" async></script>
<?php else: ?>
<script src="<?php $this->options->themeUrl('js/smoothscroll.js'); ?>" async></script>
<?php endif; ?>
<?php endif; ?>
<?php if (!empty($this->options->switch) && in_array('atargetblank', $this->options->switch)): ?>
<script>
//Add target="_blank" to a tags
$(document).bind('DOMNodeInserted', function(event) {
$('a[href^="http"]').each(
function() {
if (!$(this).attr('target')) {
$(this).attr('target', '_blank')
}
}
);
});
</script>
<?php endif; ?>
<?php if (!empty($this->options->switch) && in_array('PJAX', $this->options->switch)) : ?>
<script>
jQuery(document).ready(function() {
var $ = jQuery;
//绑定链接
$.pjax({
selector: "a[href^='<?php $this->options->siteUrl(); ?>'][href$='.html']",
container: '.demo-blog__posts', //内容替换的容器
show: 'slide', //展现的动画,支持默认和fade, 可以自定义动画方式,这里为自定义的function即可。
cache: true, //是否使用缓存
storage: true, //是否使用本地存储
// titleSuffix: ' | Ray', //标题后缀
filter: function() {},
callback: function(status) {
$("#nav-menu").addClass("animated fadeInUp");
}
});
//绑定跳转开始事件
$(".demo-blog__posts").bind("pjax.start",
function() {
$(".demo-blog__posts").css("opacity", "0.6");
// $(".spinner").css("opacity","1");
// $(".spinner").show();
});
//绑定跳转结束事件
$(".demo-blog__posts").bind("pjax.end",
function() {
// $(".spinner").hide();
$(".demo-blog__posts").css("opacity", "1");
// Main
initHeader();
addListeners();
if (navigator.userAgent.indexOf('Firefox') >= 0) {
document.documentElement.scrollTop = 120;
} else {
$('body').animate({
scrollTop: 120
});
}
});
});
</script>
<?php endif; ?>
<!-- Pangu js -->
<?php if (!empty($this->options->switch) && in_array('Pangu', $this->options->switch)): ?>
<?php if (!empty($this->options->CDNURL)): ?>
<script src="<?php $this->options->CDNURL() ?>/MaterialCDN/js/pangu.min.js"></script>
<?php else: ?>
<script src="<?php $this->options->themeUrl('js/pangu.min.js'); ?>"></script>
<?php endif; ?>
<script> pangu.spacingPage(); </script>
<?php endif; ?>
<?php $html_source = ob_get_contents(); ob_clean(); print compressHtml($html_source); ob_end_flush(); ?>
<?php $this->footer(); ?>
</html>