mirror of
https://github.com/friendica/friendica
synced 2025-04-19 09:10:12 +00:00
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:
commit
0d1fa70e2e
28 changed files with 1471 additions and 846 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue