Bernd Wurst commited on 2018-01-19 20:48:26
Zeige 3 geänderte Dateien mit 35 Einfügungen und 17 Löschungen.
... | ... |
@@ -16,7 +16,15 @@ 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, $footnotes; |
|
19 |
+ global $prefix, $go, $title, $headline, $output, $module, $page, $html_header, $footnotes; |
|
20 |
+ |
|
21 |
+ $styles = array(); |
|
22 |
+ if (file_exists("modules/{$module}/style.css")) { |
|
23 |
+ $styles[] = "modules/{$module}/style.css"; |
|
24 |
+ } |
|
25 |
+ foreach ($styles as $style) { |
|
26 |
+ html_header('<link rel="stylesheet" href="'.$prefix.$style.'" type="text/css" />'."\n"); |
|
27 |
+ } |
|
20 | 28 |
if ($path) { |
21 | 29 |
$module = $path; |
22 | 30 |
} |
... | ... |
@@ -38,8 +38,9 @@ foreach (config('modules') as $module) |
38 | 38 |
DEBUG("Modul {$module} hat keine Menüeinträge"); |
39 | 39 |
continue; |
40 | 40 |
} |
41 |
- DEBUG("<h4>$module</h4>"); |
|
42 |
- DEBUG($menu); |
|
41 |
+ // Menüeinträge spammen den debug-output zu |
|
42 |
+ //DEBUG("<h4>$module</h4>"); |
|
43 |
+ //DEBUG($menu); |
|
43 | 44 |
// $menu["foo"]["file"] enthält den Link |
44 | 45 |
foreach (array_keys($menu) as $key) |
45 | 46 |
{ |
... | ... |
@@ -1,17 +1,26 @@ |
1 |
-#------------------------------------------------------------------------------- |
|
2 |
-# This file belongs to the Webinterface of schokokeks.org Hosting |
|
3 |
-# |
|
4 |
-# Written 2008-2014 by schokokeks.org Hosting, namely |
|
5 |
-# Bernd Wurst <bernd@schokokeks.org> |
|
6 |
-# Hanno Böck <hanno@schokokeks.org> |
|
7 |
-# |
|
8 |
-# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. |
|
9 |
-# |
|
10 |
-# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see |
|
11 |
-# http://creativecommons.org/publicdomain/zero/1.0/ |
|
12 |
-# |
|
13 |
-# Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code. |
|
14 |
-#------------------------------------------------------------------------------- |
|
1 |
+/* |
|
2 |
+ * ------------------------------------------------------------------------------- |
|
3 |
+ * This file belongs to the Webinterface of schokokeks.org Hosting |
|
4 |
+ * |
|
5 |
+ * Written 2008-2018 by schokokeks.org Hosting, namely |
|
6 |
+ * Bernd Wurst <bernd@schokokeks.org> |
|
7 |
+ * Hanno Böck <hanno@schokokeks.org> |
|
8 |
+ * |
|
9 |
+ * To the extent possible under law, the author(s) have dedicated all copyright |
|
10 |
+ * and related and neighboring rights to this software to the public domain |
|
11 |
+ * worldwide. This software is distributed without any warranty. |
|
12 |
+ * |
|
13 |
+ * You should have received a copy of the CC0 Public Domain Dedication along |
|
14 |
+ * with this software. If not, see |
|
15 |
+ * http://creativecommons.org/publicdomain/zero/1.0/ |
|
16 |
+ * |
|
17 |
+ * Nevertheless, in case you use a significant part of this code, we ask (but |
|
18 |
+ * not require, see the license) that you keep the authors' names in place and |
|
19 |
+ * return your changes to the public. We would be especially happy if you tell |
|
20 |
+ * us what you're going to do with this code. |
|
21 |
+ * ------------------------------------------------------------------------------- |
|
22 |
+ */ |
|
23 |
+ |
|
15 | 24 |
@charset "utf-8"; |
16 | 25 |
|
17 | 26 |
html { |
18 | 27 |