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.

28 lines
979B

  1. <?php
  2. if (file_exists("$THEMEPATH/style.css")){
  3. echo file_get_contents("$THEMEPATH/style.css");
  4. }
  5. $uid = get_theme_uid();
  6. $s_colorset = get_config('duepuntozero','colorset');
  7. $colorset = get_pconfig( $uid, 'duepuntozero', 'colorset');
  8. if (!x($colorset))
  9. $colorset = $s_colorset;
  10. if ($colorset) {
  11. if ($colorset == 'greenzero')
  12. $setcss = file_get_contents('view/theme/duepuntozero/deriv/greenzero.css');
  13. if ($colorset == 'purplezero')
  14. $setcss = file_get_contents('view/theme/duepuntozero/deriv/purplezero.css');
  15. if ($colorset == 'easterbunny')
  16. $setcss = file_get_contents('view/theme/duepuntozero/deriv/easterbunny.css');
  17. if ($colorset == 'darkzero')
  18. $setcss = file_get_contents('view/theme/duepuntozero/deriv/darkzero.css');
  19. if ($colorset == 'comix')
  20. $setcss = file_get_contents('view/theme/duepuntozero/deriv/comix.css');
  21. if ($colorset == 'slackr')
  22. $setcss = file_get_contents('view/theme/duepuntozero/deriv/slackr.css');
  23. }
  24. echo $setcss;