-
Notifications
You must be signed in to change notification settings - Fork 46
/
footer.php
67 lines (62 loc) · 2.56 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
<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<div id="footer" class="cf">
<div class="social-wrapper">
<?php if ($this->options->socialgithub): ?>
<a class="social github" target="blank" href="<?php $this->options->socialgithub(); ?>">
<i class="icon icon-github"></i>
</a>
<?php endif; ?>
<?php if ($this->options->socialgoogle): ?>
<a class="social google-plus" target="blank" href="<?php $this->options->socialgoogle(); ?>">
<i class="icon icon-google-plus"></i>
</a>
<?php endif; ?>
<a class="social rss" target="blank" href="<?php $this->options->siteUrl(); ?>feed/">
<i class="icon icon-rss"></i>
</a>
<?php if ($this->options->socialtwitter): ?>
<a class="social twitter" target="blank" href="<?php $this->options->socialtwitter(); ?>">
<i class="icon icon-twitter"></i>
</a>
<?php endif; ?>
<?php if ($this->options->socialweibo): ?>
<a class="social weibo" target="blank" href="<?php $this->options->socialweibo(); ?>">
<i class="icon icon-weibo"></i>
</a>
<?php endif; ?>
</div>
<div>
Theme is <span class="codename">Lpisme</span> by <a href="https://www.linpx.com" target="_blank">Chakhsu</a> / Powered by <a href="http://www.typecho.org" target="_blank">Typecho</a>
</div>
<div>
© <?php echo date('Y'); ?> <a href="<?php $this->options->siteUrl(); ?>"><?php $this->options->title(); ?></a>
</div>
</div>
<?php $this->footer(); ?>
<script src="<?php $this->options->themeUrl('js/functions.js'); ?>"></script>
<?php if(!empty($this->options->search_form) && in_array('Pjax', $this->options->search_form)): ?>
<script src="<?php $this->options->themeUrl('js/prism.js'); ?>" data-no-instant></script>
<script src="//cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js" data-no-instant></script>
<script src="//cdn.bootcss.com/instantclick/3.0.1/instantclick.min.js" data-no-instant></script>
<?php if($this->options->GoogleAnalytics): ?>
<script>
<?php $this->options->GoogleAnalytics(); ?>
</script>
<?php endif; ?>
<script data-no-instant>
InstantClick.on('change', function(isInitialLoad) {
if (isInitialLoad === false) {
if (typeof Prism !== 'undefined') Prism.highlightAll(true,null);
<?php if($this->options->GoogleAnalytics): ?>
if (typeof ga !== 'undefined') ga('send', 'pageview', location.pathname + location.search);
<?php endif; ?>
}
});
InstantClick.init();
</script>
<?php else : ?>
<script src="//cdn.bootcss.com/fastclick/1.0.6/fastclick.min.js"></script>
<script src="<?php $this->options->themeUrl('js/prism.js'); ?>" ></script>
<?php endif; ?>
</body>
</html>