]> git.mxchange.org Git - friendica.git/blob - view/theme/duepuntozero/style.php
48be1e02653ff5fc8763b6a243d959caaab99cfa
[friendica.git] / view / theme / duepuntozero / style.php
1 <?php
2
3 use Friendica\Core\Config;
4 use Friendica\Core\PConfig;
5
6 if (file_exists("$THEMEPATH/style.css")){
7     echo file_get_contents("$THEMEPATH/style.css");
8 }
9 $uid = get_theme_uid();
10
11 $s_colorset = Config::get('duepuntozero','colorset');
12 $colorset = PConfig::get( $uid, 'duepuntozero', 'colorset');
13 if (!x($colorset))
14     $colorset = $s_colorset;
15
16 if ($colorset) {
17     if ($colorset == 'greenzero')
18         $setcss = file_get_contents('view/theme/duepuntozero/deriv/greenzero.css');
19     if ($colorset == 'purplezero')
20         $setcss = file_get_contents('view/theme/duepuntozero/deriv/purplezero.css');
21     if ($colorset == 'easterbunny')
22         $setcss = file_get_contents('view/theme/duepuntozero/deriv/easterbunny.css');
23     if ($colorset == 'darkzero')
24         $setcss = file_get_contents('view/theme/duepuntozero/deriv/darkzero.css');
25     if ($colorset == 'comix')
26         $setcss = file_get_contents('view/theme/duepuntozero/deriv/comix.css');
27     if ($colorset == 'slackr')
28         $setcss = file_get_contents('view/theme/duepuntozero/deriv/slackr.css');
29 }
30
31 echo $setcss;