Bernd Wurst commited on 2018-01-12 11:48:05
Zeige 4 geänderte Dateien mit 28 Einfügungen und 1 Löschungen.
| ... | ... |
@@ -185,6 +185,19 @@ function output($arg) |
| 185 | 185 |
$output .= $arg; |
| 186 | 186 |
} |
| 187 | 187 |
|
| 188 |
+function footnote($explaination) |
|
| 189 |
+{
|
|
| 190 |
+ global $footnotes; |
|
| 191 |
+ if (!isset($footnotes) || !is_array($footnotes)) {
|
|
| 192 |
+ $footnotes = array(); |
|
| 193 |
+ } |
|
| 194 |
+ $fnid = array_search($explaination, $footnotes); |
|
| 195 |
+ if (!$fnid) {
|
|
| 196 |
+ $footnotes[] = $explaination; |
|
| 197 |
+ } |
|
| 198 |
+ $fnid = array_search($explaination, $footnotes); |
|
| 199 |
+ return str_repeat('*', ($fnid+1));
|
|
| 200 |
+} |
|
| 188 | 201 |
|
| 189 | 202 |
function random_string($len) |
| 190 | 203 |
{
|
| ... | ... |
@@ -16,7 +16,7 @@ Nevertheless, in case you use a significant part of this code, we ask (but not r |
| 16 | 16 |
|
| 17 | 17 |
function show_page($path = NULL) |
| 18 | 18 |
{
|
| 19 |
- global $go, $title, $headline, $output, $module, $page, $html_header; |
|
| 19 |
+ global $go, $title, $headline, $output, $module, $page, $html_header, $footnotes; |
|
| 20 | 20 |
if ($path) {
|
| 21 | 21 |
$module = $path; |
| 22 | 22 |
} |
| ... | ... |
@@ -66,6 +66,13 @@ if ($messages) {
|
| 66 | 66 |
<p><em><a href="../../certlogin/?destination=go/<?php echo $go; ?>" >Mit einem Client-Zertifikat anmelden</a></em> (<a href="../../go/index/certinfo" >Wie geht das?</a>)</p> |
| 67 | 67 |
|
| 68 | 68 |
|
| 69 |
+<?php if ($footnotes) {
|
|
| 70 |
+ echo '<div class="footnotes">'; |
|
| 71 |
+ foreach ($footnotes as $num => $explaination) {
|
|
| 72 |
+ echo str_repeat('*', $num+1).': '.$explaination;
|
|
| 73 |
+ } |
|
| 74 |
+ echo '</div>'; |
|
| 75 |
+} ?> |
|
| 69 | 76 |
</div> |
| 70 | 77 |
|
| 71 | 78 |
<div class="foot"> |
| ... | ... |
@@ -61,6 +61,13 @@ if ($headline) {
|
| 61 | 61 |
|
| 62 | 62 |
<?php echo $content; ?> |
| 63 | 63 |
|
| 64 |
+<?php if ($footnotes) {
|
|
| 65 |
+ echo '<div class="footnotes">'; |
|
| 66 |
+ foreach ($footnotes as $num => $explaination) {
|
|
| 67 |
+ echo str_repeat('*', $num+1).': '.$explaination;
|
|
| 68 |
+ } |
|
| 69 |
+ echo '</div>'; |
|
| 70 |
+} ?> |
|
| 64 | 71 |
</div> |
| 65 | 72 |
<div class="foot"> |
| 66 | 73 |
<p>Sollten Sie auf dieser Administrations-Oberfläche ein Problem entdecken oder Hilfe benötigen, schreiben Sie bitte eine einfache eMail an <a href="mailto:root@schokokeks.org">root@schokokeks.org</a>. Unser <a href="https://schokokeks.org/kontakt">Impressum</a> finden Sie auf der <a href="https://schokokeks.org/">öffentlichen Seite</a>. Lizenzinformationen zu diesem Webinterface und verwendeten Rechten finden Sie <a href="<?php echo $BASE_PATH; ?>go/about/about">indem Sie hier klicken</a>.</p> |
| 67 | 74 |