3 * @file view/theme/duepuntozero/style.php
5 use Friendica\Core\Config;
6 use Friendica\Core\PConfig;
8 use Friendica\Model\Profile;
10 if (file_exists("$THEMEPATH/style.css")) {
11 echo file_get_contents("$THEMEPATH/style.css");
14 $uid = $_REQUEST['puid'] ?? 0;
16 $s_colorset = Config::get('duepuntozero', 'colorset');
17 $colorset = DI::pConfig()->get($uid, 'duepuntozero', 'colorset');
19 if (empty($colorset)) {
20 $colorset = $s_colorset;
26 if ($colorset == 'greenzero') {
27 $setcss = file_get_contents('view/theme/duepuntozero/deriv/greenzero.css');
30 if ($colorset == 'purplezero') {
31 $setcss = file_get_contents('view/theme/duepuntozero/deriv/purplezero.css');
34 if ($colorset == 'easterbunny') {
35 $setcss = file_get_contents('view/theme/duepuntozero/deriv/easterbunny.css');
38 if ($colorset == 'darkzero') {
39 $setcss = file_get_contents('view/theme/duepuntozero/deriv/darkzero.css');
42 if ($colorset == 'comix') {
43 $setcss = file_get_contents('view/theme/duepuntozero/deriv/comix.css');
46 if ($colorset == 'slackr') {
47 $setcss = file_get_contents('view/theme/duepuntozero/deriv/slackr.css');