3 * @file view/theme/duepuntozero/style.php
5 use Friendica\Core\Config;
6 use Friendica\Core\PConfig;
7 use Friendica\Model\Profile;
9 if (file_exists("$THEMEPATH/style.css")) {
10 echo file_get_contents("$THEMEPATH/style.css");
13 $uid = $_REQUEST['puid'] ?? 0;
15 $s_colorset = Config::get('duepuntozero', 'colorset');
16 $colorset = PConfig::get($uid, 'duepuntozero', 'colorset');
18 if (empty($colorset)) {
19 $colorset = $s_colorset;
25 if ($colorset == 'greenzero') {
26 $setcss = file_get_contents('view/theme/duepuntozero/deriv/greenzero.css');
29 if ($colorset == 'purplezero') {
30 $setcss = file_get_contents('view/theme/duepuntozero/deriv/purplezero.css');
33 if ($colorset == 'easterbunny') {
34 $setcss = file_get_contents('view/theme/duepuntozero/deriv/easterbunny.css');
37 if ($colorset == 'darkzero') {
38 $setcss = file_get_contents('view/theme/duepuntozero/deriv/darkzero.css');
41 if ($colorset == 'comix') {
42 $setcss = file_get_contents('view/theme/duepuntozero/deriv/comix.css');
45 if ($colorset == 'slackr') {
46 $setcss = file_get_contents('view/theme/duepuntozero/deriv/slackr.css');