add ability to use css files with schemes

This commit is contained in:
Mario Vavti 2015-03-06 12:15:56 +01:00
parent 73891dc582
commit dcfa26819f

View File

@ -59,6 +59,10 @@ if(! $a->install) {
$schemefile = 'view/theme/redbasic/schema/' . $schema . '.php'; $schemefile = 'view/theme/redbasic/schema/' . $schema . '.php';
require_once ($schemefile); 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 // 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. // should leave it for admins to define for themselves.
@ -442,3 +446,7 @@ if($converse_center && file_exists('view/theme/redbasic/css/converse_center.css'
$x = file_get_contents('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); echo str_replace(array_keys($options), array_values($options), $x);
} }
if($schemecss) {
echo $schemecss;
}