aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-03-06 12:15:56 +0100
committerMario Vavti <mario@mariovavti.com>2015-03-06 12:15:56 +0100
commitdcfa26819fa0913cdea31839792ba436ad6f4e66 (patch)
tree3b6aeaf939b030dd479c763a95cac17563817a93 /view/theme
parent73891dc5824f7495ce1103f826b88f3b8750f70f (diff)
downloadvolse-hubzilla-dcfa26819fa0913cdea31839792ba436ad6f4e66.tar.gz
volse-hubzilla-dcfa26819fa0913cdea31839792ba436ad6f4e66.tar.bz2
volse-hubzilla-dcfa26819fa0913cdea31839792ba436ad6f4e66.zip
add ability to use css files with schemes
Diffstat (limited to 'view/theme')
-rw-r--r--view/theme/redbasic/php/style.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/view/theme/redbasic/php/style.php b/view/theme/redbasic/php/style.php
index 5bc702d8c..7234e926f 100644
--- a/view/theme/redbasic/php/style.php
+++ b/view/theme/redbasic/php/style.php
@@ -59,6 +59,10 @@ if(! $a->install) {
$schemefile = 'view/theme/redbasic/schema/' . $schema . '.php';
require_once ($schemefile);
}
+ if(file_exists('view/theme/redbasic/schema/' . $schema . '.css')) {
+ $schemecss = file_get_contents('view/theme/redbasic/schema/' . $schema . '.css');
+ }
+
}
// If we haven't got a schema, load the default. We shouldn't touch this - we
// should leave it for admins to define for themselves.
@@ -441,4 +445,8 @@ if($narrow_navbar && file_exists('view/theme/redbasic/css/narrow_navbar.css')) {
if($converse_center && file_exists('view/theme/redbasic/css/converse_center.css')) {
$x = file_get_contents('view/theme/redbasic/css/converse_center.css');
echo str_replace(array_keys($options), array_values($options), $x);
-}
+}
+
+if($schemecss) {
+ echo $schemecss;
+}