student numbers
[ssproject1617.git] / testcms-final-anon / system / admin / theme / includes / footer.php
1
2 <?php if(($user = Users::authed()) !== false): ?>
3 <aside id="sidebar">
4 <h2>Status check</h2>
5
6 <?php if(error_check() !== false): ?>
7 <p>Oh no, we found <?php echo count(error_check()) === 1 ? 'a problem' : 'some problems'; ?>!</p>
8
9 <ul>
10 <?php foreach(error_check() as $error): ?>
11 <li><?php echo $error; ?></li>
12 <?php endforeach; ?>
13 </ul>
14 <?php else: ?>
15 <p>Nice job, keep on going!</p>
16 <?php endif; ?>
17 </aside>
18 <?php endif; ?>
19
20 <footer id="bottom">
21 <small>Powered by Test CMS, version <?php echo VERSION; ?>.
22 <a href="<?php echo Url::make(); ?>">Visit your site</a>.
23 <?php if(Config::get('debug', false)): ?>
24 <br><a id="debug_toggle" href="#debug">Show database profile</a>
25 <?php endif; ?></small>
26
27 <em>Make blogging beautiful.</em>
28 </footer>
29
30 <?php if(Config::get('debug', false)): ?>
31 <?php echo db_profile(); ?>
32 <script>
33 (function() {
34 var g = function(i) {
35 var e = document.getElementById(i);
36 e.s = function(p, v) {
37 this.style[p] = v;
38 };
39 e.g = function(p) {
40 return this.style[p];
41 };
42
43 return e;
44 };
45
46 var a = g('debug_toggle'), t = g('debug_table');
47
48 var b = function(e) {
49 var d = (t.g('display') == '' || t.g('display') == 'none') ? 'block' : 'none';
50 t.s('display', d);
51 e.preventDefault();
52 e.stopPropagation();
53 };
54
55 a.addEventListener('click', b, false);
56 }());
57 </script>
58 <?php endif; ?>
59
60 </body>
61 </html>