-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathfooter.php
executable file
·89 lines (75 loc) · 2.78 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
</div>
<footer id="bottom">
<div class="container">
<div class="grid 1of3">
<small>
<p>
© <?php echo date('Y'); ?> <?php echo site_name(); ?>.<br />
All rights reserved.
</p>
<p>
Built with <a href="http://melodycss.co" target="_blank">Melody</a><br />
Powered by <a href="http://anchorcms.com" target="_blank">Anchor CMS</a>
</p>
</small>
</div>
<div class="grid 1of3 offset-4">
<small>
<ul role="navigation">
<li><a href="<?php echo rss_url(); ?>">RSS</a></li>
<?php if(twitter_account()): ?>
<li><a href="<?php echo twitter_url(); ?>" target="_blank">@<?php echo twitter_account(); ?></a></li>
<?php endif; ?>
<li><a href="<?php echo base_url('admin'); ?>" title="Administer your site!">Admin area</a></li>
<li><a href="<?php echo base_url(); ?>" title="Return to my website.">Home</a></li>
</ul>
</small>
</div>
</div>
</footer>
</div>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script>
jQuery(document).ready(function($) {
if($('nav .latest-post').hasClass('current')) {
$('nav .latest-post').siblings('a').removeClass('current');
}
$('a[href="#menu"]').click(function() {
$('a[href="#menu"]').toggleClass('current');
$('.slidey').slideToggle(300);
});
$('section.content ol').not('.items').children('li').wrapInner('<p>');
$('section.content img').each(function(){
var act = $(this);
var src = act.attr('src');
var caption = act.attr('alt');
var figureClass = act.attr('title');
if (!figureClass) {
figureClass = ' ';
}
act.wrap('<figure class="image-wrapper ' + figureClass + '" />');
if (caption) {
act.after('<figcaption>' + caption + '</figcaption>');
act.attr('alt', 'Image');
} else {
act.removeAttr('alt');
}
if (figureClass) {
act.removeAttr('title');
}
if (!src.substring(0,4).match('http') && !src.substring(0,5).match('https') && !src.substring(0,2).match('//')) {
act.attr('src', '<?php echo base_url(); ?>content/' + src);
}
});
});
</script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script>
jQuery(document).ready(function($) {
$('body').addClass('ie');
});
</script>
<![endif]-->
</body>
</html>