]> git.mxchange.org Git - friendica.git/blob - view/theme/duepuntozero/style.php
Merge pull request #8131 from nupplaphil/task/cleanup_lock
[friendica.git] / view / theme / duepuntozero / style.php
1 <?php
2 /**
3  * @file view/theme/duepuntozero/style.php
4  */
5 use Friendica\Core\Config;
6 use Friendica\DI;
7
8 if (file_exists("$THEMEPATH/style.css")) {
9         echo file_get_contents("$THEMEPATH/style.css");
10 }
11
12 $uid = $_REQUEST['puid'] ?? 0;
13
14 $s_colorset = Config::get('duepuntozero', 'colorset');
15 $colorset = DI::pConfig()->get($uid, 'duepuntozero', 'colorset');
16
17 if (empty($colorset)) {
18         $colorset = $s_colorset;
19 }
20
21 $setcss = '';
22
23 if ($colorset) {
24         if ($colorset == 'greenzero') {
25                 $setcss = file_get_contents('view/theme/duepuntozero/deriv/greenzero.css');
26         }
27
28         if ($colorset == 'purplezero') {
29                 $setcss = file_get_contents('view/theme/duepuntozero/deriv/purplezero.css');
30         }
31
32         if ($colorset == 'easterbunny') {
33                 $setcss = file_get_contents('view/theme/duepuntozero/deriv/easterbunny.css');
34         }
35
36         if ($colorset == 'darkzero') {
37                 $setcss = file_get_contents('view/theme/duepuntozero/deriv/darkzero.css');
38         }
39
40         if ($colorset == 'comix') {
41                 $setcss = file_get_contents('view/theme/duepuntozero/deriv/comix.css');
42         }
43
44         if ($colorset == 'slackr') {
45                 $setcss = file_get_contents('view/theme/duepuntozero/deriv/slackr.css');
46         }
47 }
48
49 echo $setcss;