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.

22 lines
383 B

  1. <?php
  2. use Friendica\App;
  3. /**
  4. * load view/theme/$current_theme/style.php with friendica context
  5. *
  6. * @param App $a
  7. */
  8. function view_init(App $a)
  9. {
  10. header("Content-Type: text/css");
  11. if ($a->argc == 4){
  12. $theme = $a->argv[2];
  13. $THEMEPATH = "view/theme/$theme";
  14. if(file_exists("view/theme/$theme/style.php"))
  15. require_once("view/theme/$theme/style.php");
  16. }
  17. exit();
  18. }