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