3 namespace Friendica\Module;
5 use Friendica\BaseModule;
6 use Friendica\Util\Strings;
9 * load view/theme/$current_theme/style.php with friendica context
11 class Theme extends BaseModule
13 public static function rawContent(array $parameters = [])
15 header("Content-Type: text/css");
21 $theme = Strings::sanitizeFilePathItem($theme);
23 // set the path for later use in the theme styles
24 $THEMEPATH = "view/theme/$theme";
25 if (file_exists("view/theme/$theme/style.php")) {
26 require_once("view/theme/$theme/style.php");