forked from drlippman/IMathAS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
footer.php
60 lines (58 loc) · 2.11 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
<div class="clear"></div>
</div>
<div class="footerwrapper"><?php
$curdir = rtrim(dirname(__FILE__), '/\\');
if (file_exists("$curdir/footercontent.php")) {
require("$curdir/footercontent.php");
}
?>
</div>
</div>
<?php
if (isset($CFG['GEN']['translatewidgetID'])) {
echo '<div id="google_translate_element" style="visibility:hidden"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: "en", layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL}, "google_translate_element");
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>';
}
if (isset($useeditor) && !empty($_SESSION['useed'])) {
//echo "<script type=\"text/javascript\">initEditor();</script>\n";
}
if (!isset($courseUIver)) { $courseUIver = 1;}
if (($courseUIver == 1 || isset($useOldassessUI)) && isset($useeqnhelper)
&& ($useeqnhelper==1 || $useeqnhelper==2)) {
$curdir = rtrim(dirname(__FILE__), '/\\');
require("$curdir/assessment/eqnhelper.html");
} else if (($courseUIver == 1 || isset($useOldassessUI)) && isset($useeqnhelper)
&& ($useeqnhelper==3 || $useeqnhelper==4)) {
$curdir = rtrim(dirname(__FILE__), '/\\');
require("$curdir/assessment/mathquilled.html");
require("$curdir/assessment/eqnhelperbasic.html");
}
if ((isset($testsettings) && $testsettings['showtips']==2) ||
(($courseUIver == 1 || isset($useOldassessUI)) && isset($showtips) && $showtips==2)
) {
echo '<div id="ehdd" class="ehdd"><span id="ehddtext"></span> <span onclick="showeh(curehdd);" style="cursor:pointer;">' . _('[more..]') . '</span></div>';
echo '<div id="eh" class="eh"></div>';
}
if (isset($placeinfooter)) {
echo $placeinfooter;
}
$curdir = rtrim(dirname(__FILE__), '/\\');
if (isset($CFG['GEN']['footerscriptinclude'])) {
require("$curdir/{$CFG['GEN']['footerscriptinclude']}");
}
?>
</body>
</html>
<?php
if (isset($DBH)) {
$DBH = null;
}
/*
$end_time = microtime(true);
$exectime = $end_time - $start_time;
echo "Executed in $exectime sec";
*/
?>