Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.1 KiB

  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. if (file_exists("$THEMEPATH/style.css")) {
  9. echo file_get_contents("$THEMEPATH/style.css");
  10. }
  11. $uid = $_REQUEST['puid'] ?? 0;
  12. $s_colorset = Config::get('duepuntozero', 'colorset');
  13. $colorset = PConfig::get($uid, 'duepuntozero', 'colorset');
  14. if (empty($colorset)) {
  15. $colorset = $s_colorset;
  16. }
  17. $setcss = '';
  18. if ($colorset) {
  19. if ($colorset == 'greenzero') {
  20. $setcss = file_get_contents('view/theme/duepuntozero/deriv/greenzero.css');
  21. }
  22. if ($colorset == 'purplezero') {
  23. $setcss = file_get_contents('view/theme/duepuntozero/deriv/purplezero.css');
  24. }
  25. if ($colorset == 'easterbunny') {
  26. $setcss = file_get_contents('view/theme/duepuntozero/deriv/easterbunny.css');
  27. }
  28. if ($colorset == 'darkzero') {
  29. $setcss = file_get_contents('view/theme/duepuntozero/deriv/darkzero.css');
  30. }
  31. if ($colorset == 'comix') {
  32. $setcss = file_get_contents('view/theme/duepuntozero/deriv/comix.css');
  33. }
  34. if ($colorset == 'slackr') {
  35. $setcss = file_get_contents('view/theme/duepuntozero/deriv/slackr.css');
  36. }
  37. }
  38. echo $setcss;