-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfooter.php
148 lines (127 loc) · 6.2 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
</div>
<footer id="footer">
<div class="footer-w">
<div class="footer-left">
<?php if ($this->options->ftGithub): ?>
<a href="https://github.com/<?php echo urlencode($this->options->ftGithub) ?>" target="_blank"
class="mdl-button mdl-js-button mdl-button--icon" id="ft-github">
<img src="<?php $this->options->themeUrl('image/icon/github.png'); ?>">
</a>
<label class="mdl-tooltip mdl-tooltip--top" for="ft-github">Github</label>
<?php endif; ?>
<?php if ($this->options->ftQQ): ?>
<a href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo urlencode($this->options->ftQQ) ?>&site=qq&menu=yes"
target="_blank"
class="mdl-button mdl-js-button mdl-button--icon" id="ft-qq">
<img src="<?php $this->options->themeUrl('image/icon/qq.png'); ?>">
</a>
<label class="mdl-tooltip mdl-tooltip--top" for="ft-qq">QQ</label>
<?php endif; ?>
<?php if ($this->options->ftWeibo): ?>
<a href="<?php $this->options->ftWeibo(); ?>" target="_blank"
class="mdl-button mdl-js-button mdl-button--icon" id="ft-Weibo">
<img src="<?php $this->options->themeUrl('image/icon/weibo.png'); ?>">
</a>
<label class="mdl-tooltip mdl-tooltip--top" for="ft-Weibo">Weibo</label>
<?php endif; ?>
<?php if ($this->options->ftEmail): ?>
<a href="mailto:<?php $this->options->ftEmail(); ?>" target="_blank"
class="mdl-button mdl-js-button mdl-button--icon" id="ft-email">
<img src="<?php $this->options->themeUrl('image/icon/mail.png'); ?>">
</a>
<label class="mdl-tooltip mdl-tooltip--top" for="ft-email">Email</label>
<?php endif; ?>
<!--TODO 如果你需要其他图标, 可以到这下载: https://www.iconfont.cn/-->
</div>
<div class="footer-center" style="text-align: center">
<?php if ($this->options->siteTime): ?>
本站已生存了 <span id="build-time"></span><br>
<?php endif; ?>
<div>
Copyright © <?php if ($this->options->siteTime && substr($this->options->siteTime, 0, 4) != date('Y')):
echo substr($this->options->siteTime, 0, 4) . ' - ';
endif; ?><?php echo date('Y'); ?>
<a class="mdl-color-text--primary anim-line" style="opacity: 0.9"
href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a> All rights reserved.
<?php if ($this->options->customFooter): ?>
<br><?php $this->options->customFooter() ?>
<?php endif; ?>
</div>
</div>
<div class="footer-right" style="text-align: end">
Theme <a class="mdl-color-text--primary anim-line" style="opacity: 0.9"
target="_blank" href="https://github.com/mnnyang/typecho_theme_mymaterial">My Material</a><br>
<?php _e('<a class="mdl-color-text--primary anim-line" style="opacity:0.9"
target="_blank" href="http://www.typecho.org">Typecho</a> 强力驱动'); ?>.
</div>
</div>
<button id="to_top"
class="mdl-button mdl-js-button mdl-button--mini-fab mdl-button--fab mdl-js-ripple-effect mdl-button--primary hover-shadow--6dp hover--margin-top-1px">
<i class="material-icons">arrow_upward</i>
</button>
</footer>
</main>
</div>
<div id="demo-snackbar-example" style="z-index: 1111111" class="mdl-js-snackbar mdl-snackbar">
<div class="mdl-snackbar__text"></div>
<button class="mdl-snackbar__action" type="button"></button>
</div><!--snackbar-->
<div id="screen-mask"></div>
</body>
<script src="<?php $this->options->themeUrl('js/jquery.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('material/material.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/jquery.nicescroll.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/jquery.pjax.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/nprogress.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/fancybox/jquery.fancybox.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/base.min.js'); ?>"></script>
<script>
$(function () {
<?php if ($this->options->siteTime): ?>
startTime('<?php $this->options->siteTime();?>');
<?php endif; ?>
// $.pjax.defaults.maxCacheLength = 0;
$(document).pjax('a[href^="<?php Helper::options()->siteUrl()?>"]:not(a[target="_block"], .no-pjax, .comment-reply a, .cancel-comment-reply-link)', {
container: '#page-content',
// fragment: '#page-content',
timeout: 10000
});
$(document).on('submit', '#search,#drawer-search', function (event) {
event.preventDefault();
var value = $(this).find('input[name=s]').val();
value = trim(value);
if (!value) {
$.showSnackbar('请输入搜索关键字');
return;
}
$.pjax.submit(event, '#page-content', {timeout: 10000});
});
$(document).on('pjax:send', function () {
NProgress.start();
});
$(document).on('pjax:complete', function () {
NProgress.done();
$.completePjax();
if (window.location.hash) {
scrollToHash();
} else {
$('#mdl-layout-content').scrollTop(0);
}
});
$(document).on('pjax:end', function () {
$.afterPjax();// 需要第一个执行
reUpgradePageDem();
});
var scrollToHash = function () {
if (window.location.hash) {
var id = window.location.hash.replace('#', "");
$.gotoAnchorSmooth($('#' + id), 0, 0)
}
}
});
</script>
<script>
</script>
<?php $this->footer(); ?>
</html>