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