-
Notifications
You must be signed in to change notification settings - Fork 4
/
footer.php
49 lines (42 loc) · 1.68 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
<footer>
<p>
Powered by <a href="http://typecho.org/">Typecho</a>.
<a href="http://dolast.com/pages/trapecho">Trapecho</a> theme by <a href="http://blog.gregwym.info">咳嗽di小鱼</a>.
Hosting on <a href="http://secure.quickweb.co.nz/system/aff.php?aff=165">QuickWeb VPS Server</a>
</p>
</footer><!-- end #footer -->
</div>
</div>
<script src="<?php $this->options->themeUrl('js/jquery-1.7.1.min.js'); ?>"></script>
<script src="<?php $this->options->themeUrl('js/bootstrap.min.js'); ?>"></script>
<?php if ($this->options->codePrettify != null && in_array('EnablePrettify', $this->options->codePrettify)): ?>
<script src="<?php $this->options->themeUrl('js/prettify.js'); ?>"></script>
<?php endif;?>
<script type="text/javascript">
// fix navbar on scroll
var $win = $(window)
, $nav = $('.navbar')
, navTop = $('.navbar').length && $('.navbar').offset().top - 10
, isFixed = 0
processScroll()
$win.on('scroll', processScroll)
function processScroll() {
var i, scrollTop = $win.scrollTop()
if (scrollTop >= navTop && !isFixed) {
isFixed = 1
$nav.addClass('navbar-fixed-top')
} else if (scrollTop <= navTop && isFixed) {
isFixed = 0
$nav.removeClass('navbar-fixed-top')
}
}
$('.page-navigator li:not(:has(a))').html('<a>...</a>');
$('.page-navigator .current').addClass('active');
<?php if ($this->options->codePrettify != null && in_array('EnablePrettify', $this->options->codePrettify)): ?>
$('pre').addClass('prettyprint linenums');
<?php endif;?>
$('.entry-content a').attr('target','_blank');
</script>
<?php $this->footer(); ?>
</body>
</html>