]> git.mxchange.org Git - friendica.git/blob - view/theme/duepuntozero/style.php
Merge pull request #4237 from zeroadam/Profile-#3878
[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\Core\PConfig;
7 use Friendica\Model\Profile;
8
9 if (file_exists("$THEMEPATH/style.css")) {
10         echo file_get_contents("$THEMEPATH/style.css");
11 }
12
13 $uid = Profile::getThemeUid();
14
15 $s_colorset = Config::get('duepuntozero', 'colorset');
16 $colorset = PConfig::get($uid, 'duepuntozero', 'colorset');
17
18 if (!x($colorset)) {
19         $colorset = $s_colorset;
20 }
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;