-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter.php
61 lines (57 loc) · 2.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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<footer>
<p>Copyright @ <?php echo(date("Y")) ?>
<a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a>
</p>
<p>
Theme by <a target="_blank" href="https://mr158.cn/archives/theme-ayaka.html">Ayaka</a>.
</p>
</footer>
</main>
<div id="to-top">
<i class="iconfont icon-angle-up"></i>
</div>
<?php $this->footer(); ?>
<!-- <script src="<?php $this->options->themeUrl('js/jquery.pjax.js'); ?>" data-no-instant></script> -->
<script src="<?php $this->options->themeUrl('js/prism.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/main.js'); ?>?v1.1.4"></script>
<script data-no-instant src="https://cdnjs.cloudflare.com/ajax/libs/instantclick/3.0.1/instantclick.min.js"></script>
<?php if ($this->options->analytics): ?>
<script data-no-instant>
<?php $this->options->analytics();?>
</script>
<?php endif; ?>
<script data-no-instant>
var SW_LOADING = <?php echo $this->options->swLoading === "able" ? "true" : "false" ?>
InstantClick.on('change', function (isInit) {
if(SW_LOADING && !isInit) pageLoading.active = true
init()
if(!isInit) {
// Prism
if (typeof Prism !== 'undefined') {
Prism.highlightAll(true,null)
}
// 百度统计
if (typeof _hmt !== 'undefined') {
_hmt.push(['_trackPageview', location.pathname + location.search])
}
// MathJax
if (typeof MathJax !== 'undefined') {
MathJax.Hub.Queue(["Typeset",MathJax.Hub])
}
// google analytics
if (typeof ga !== 'undefined') {
ga('send', 'pageview', location.pathname + location.search);
}
<?php
if ($this->options->customJS) {
$this->options->customJS();
}
?>
}
if(SW_LOADING) pageLoading.active = false
})
InstantClick.init('mousedown');
</script>
</body>
</html>