Added V4: Access Control (work in progress)
[ssproject1617.git] / testcms-final-anon / themes / default / includes / footer.php
1 <div class="wrap">
2 <footer id="bottom">
3 <small>&copy; <?php echo date('Y'); ?> <?php echo site_name(); ?>. All rights reserved.</small>
4
5 <ul role="navigation">
6 <li><a href="<?php echo rss_url(); ?>">RSS</a></li>
7 <?php if(twitter_account()): ?>
8 <li><a href="<?php echo twitter_url(); ?>">@<?php echo twitter_account(); ?></a></li>
9 <?php endif; ?>
10
11 <li><a href="<?php echo admin_url(); ?>" title="Administer your site!">Admin area</a></li>
12
13 <li><a href="/" title="Return to my website.">Home</a></li>
14
15 <?php if(is_debug()): ?><a id="debug_toggle" href="#debug">Show database profile</a><?php endif; ?>
16 </ul>
17
18 </footer>
19
20 <?php if(is_debug()): ?>
21 <?php echo db_profile(); ?>
22 <script>
23 (function() {
24 var g = function(i) {
25 var e = document.getElementById(i);
26 e.s = function(p, v) {
27 this.style[p] = v;
28 };
29 e.g = function(p) {
30 return this.style[p];
31 };
32
33 return e;
34 };
35
36 var a = g('debug_toggle'), t = g('debug_table');
37
38 var b = function(e) {
39 var d = (t.g('display') == '' || t.g('display') == 'none') ? 'block' : 'none';
40 t.s('display', d);
41 e.preventDefault();
42 e.stopPropagation();
43 };
44
45 a.addEventListener('click', b, false);
46 }());
47 </script>
48 <?php endif; ?>
49 </div>
50 </body>
51 </html>