]> git.mxchange.org Git - friendica.git/blob - view/theme/duepuntozero/style.php
6d102350cc26e6c1d687aaa6d9ec82933ba05b81
[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 (empty($colorset)) {
19         $colorset = $s_colorset;
20 }
21
22 $setcss = '';
23
24 if ($colorset) {
25         if ($colorset == 'greenzero') {
26                 $setcss = file_get_contents('view/theme/duepuntozero/deriv/greenzero.css');
27         }
28
29         if ($colorset == 'purplezero') {
30                 $setcss = file_get_contents('view/theme/duepuntozero/deriv/purplezero.css');
31         }
32
33         if ($colorset == 'easterbunny') {
34                 $setcss = file_get_contents('view/theme/duepuntozero/deriv/easterbunny.css');
35         }
36
37         if ($colorset == 'darkzero') {
38                 $setcss = file_get_contents('view/theme/duepuntozero/deriv/darkzero.css');
39         }
40
41         if ($colorset == 'comix') {
42                 $setcss = file_get_contents('view/theme/duepuntozero/deriv/comix.css');
43         }
44
45         if ($colorset == 'slackr') {
46                 $setcss = file_get_contents('view/theme/duepuntozero/deriv/slackr.css');
47         }
48 }
49
50 echo $setcss;