]> git.mxchange.org Git - friendica.git/blob - view/theme/duepuntozero/style.php
Merge pull request #3200 from Hypolite/issue/#3195
[friendica.git] / view / theme / duepuntozero / style.php
1 <?php
2 if (file_exists("$THEMEPATH/style.css")){
3     echo file_get_contents("$THEMEPATH/style.css");
4 }
5 $uid = get_theme_uid();
6
7 $s_colorset = get_config('duepuntozero','colorset');
8 $colorset = get_pconfig( $uid, 'duepuntozero', 'colorset');
9 if (!x($colorset)) 
10     $colorset = $s_colorset;
11
12 if ($colorset) {
13     if ($colorset == 'greenzero')
14         $setcss = file_get_contents('view/theme/duepuntozero/deriv/greenzero.css');
15     if ($colorset == 'purplezero')
16         $setcss = file_get_contents('view/theme/duepuntozero/deriv/purplezero.css');
17     if ($colorset == 'easterbunny')
18         $setcss = file_get_contents('view/theme/duepuntozero/deriv/easterbunny.css');
19     if ($colorset == 'darkzero')
20         $setcss = file_get_contents('view/theme/duepuntozero/deriv/darkzero.css');
21     if ($colorset == 'comix')
22         $setcss = file_get_contents('view/theme/duepuntozero/deriv/comix.css');
23     if ($colorset == 'slackr')
24         $setcss = file_get_contents('view/theme/duepuntozero/deriv/slackr.css');
25 }
26
27 echo $setcss;
28
29 ?>