Skip to content

Commit 39aae0e

Browse files
committed
Moar progress
1 parent 1c82742 commit 39aae0e

2 files changed

Lines changed: 1 addition & 26 deletions

File tree

footer.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
<?php
22

3-
$foot = '';
4-
if ( ! $CFG->OFFLINE ) $foot .= '
5-
<div id="google_translate_element" style="position: fixed; right: 1em; bottom: 0.25em;"></div><script type="text/javascript">
6-
function googleTranslateElementInit() {
7-
new google.translate.TranslateElement({pageLanguage: "en", layout: google.translate.TranslateElement.InlineLayout.SIMPLE, gaTrack: true, gaId: "UA-423997-22"}, "google_translate_element");
8-
}
9-
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
10-
';
11-
12-
$foot .= '
3+
$foot = '
134
<p style="font-size: 75%; margin-top: 5em;">
145
Copyright Creative Commons Attribution 3.0 - Charles R. Severance
156
</p>

top.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,4 @@
55
require_once "tsugi/config.php";
66
$LAUNCH = LTIX::session_start();
77

8-
// https://lefkomedia.com/adding-external-link-indicator-with-css/
9-
$head = '
10-
<style>
11-
a[target="_blank"]:after {
12-
font-family: "FontAwesome";
13-
content: " \f08e";
14-
}
15-
.goog-te-banner-frame.skiptranslate {
16-
display: none !important;
17-
}
18-
body {
19-
top: 0px !important;
20-
}
21-
</style>';
22-
23-
$OUTPUT->setAppHeader($head);
248
$OUTPUT->header();

0 commit comments

Comments
 (0)