-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.php
97 lines (87 loc) · 3.22 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
90
91
92
93
94
95
96
97
<?php
/*
* Copyright (C) 2015 greg
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program in the LICENSE file.
* If not, see <http://www.gnu.org/licenses/>.
*/
?>
<style>
.rotator {
-webkit-transform: rotate(180deg); /* Chrome, Opera 15+, Safari 3.1+ */
-ms-transform: rotate(180deg); /* IE 9 */
transform: rotate(180deg); /* Firefox 16+, IE 10+, Opera */
position:inherit;
float:left;
}
</style>
<div id="footer">
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<p class="muted credit"><a href="https://github.com/freephile/wikireport" class="rotator" title="copyleft AGPLv3">© </a> 2015-<?php echo date("Y"); ?> <a href="https://eQuality-Tech.com">eQuality Technology</a> and <a href="https://linkedin.com/in/freephile/">Greg Rundlett</a>
<?php
$Profiler->end();
$Profiler->stopwatch();
echo "<br />";
echo $Profiler->getElapsedTime("page completed in ", " seconds");
echo "<br />";
echo $Profiler->__toString();
?>
</p>
</div>
</div>
</div>
</div>
<script src="./node_modules/jquery/dist/jquery.slim.min.js"></script>
<script src="./vendor/jquery-number/jquery.number.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<?php
if ($_SERVER['REQUEST_URI'] == '/wikireport/version.php') {
echo '<script src="cssCharts/jquery.chart.js"></script>' . "\n";
}
?>
<script>
// format any class="number" element
// we're using a jQuery plugin, but could use regular JavaScript
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat/format
$(".number").number(true, 0);
// onSubmit handler to fix up the URL in case someone pastes a full URL
$('#wr').submit(function(e) {
$('#url').val( $('#url').val().replace(/^(http:\/\/)https?:\/\//g, "$1", '') );
});
<?php
if ($_SERVER['REQUEST_URI'] == '/wikireport/version.php') {
echo <<<HERE
// draw our chart on the version page
$('.pie-chart').cssCharts({type:"pie"});
HERE;
}
?>
// add Google Analytics
// UA-39339059-2
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-39339059-2', 'auto');
ga('send', 'pageview');
</script>