Merge pull request #9039 from MrPetovan/task/frio-accent-scheme

[frio] Add accented schemes including dark scheme and black scheme
This commit is contained in:
Tobias Diekershoff 2020-08-20 07:01:40 +02:00 committed by GitHub
commit 0d1fa70e2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 1471 additions and 846 deletions

View file

@ -32,19 +32,17 @@ class Theme extends BaseModule
{
public static function rawContent(array $parameters = [])
{
header("Content-Type: text/css");
header('Content-Type: text/css');
$a = DI::app();
$theme = Strings::sanitizeFilePathItem($parameters['theme']);
if ($a->argc == 4) {
$theme = $a->argv[2];
$theme = Strings::sanitizeFilePathItem($theme);
if (file_exists("view/theme/$theme/theme.php")) {
require_once "view/theme/$theme/theme.php";
}
// set the path for later use in the theme styles
$THEMEPATH = "view/theme/$theme";
if (file_exists("view/theme/$theme/style.php")) {
require_once("view/theme/$theme/style.php");
}
// set the path for later use in the theme styles
if (file_exists("view/theme/$theme/style.php")) {
require_once "view/theme/$theme/style.php";
}
exit();