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