diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2012-03-30 21:18:25 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2012-03-30 21:18:25 +0200 |
commit | 01af7d355a0dfdf19db7acf3b5b06b683c58531e (patch) | |
tree | 4c868749e9c2f94a17473d9488467596e59d3be2 /mod/view.php | |
parent | 77f57e1b135674f48a37e7cf0b1d7bb9172665ca (diff) | |
download | volse-hubzilla-01af7d355a0dfdf19db7acf3b5b06b683c58531e.tar.gz volse-hubzilla-01af7d355a0dfdf19db7acf3b5b06b683c58531e.tar.bz2 volse-hubzilla-01af7d355a0dfdf19db7acf3b5b06b683c58531e.zip |
allow themes to use "style.php" instead of "style.css".
Load style.php trhu mod/view.php to pass it friendica framework.
Diffstat (limited to 'mod/view.php')
-rw-r--r-- | mod/view.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mod/view.php b/mod/view.php new file mode 100644 index 000000000..33aa23f44 --- /dev/null +++ b/mod/view.php @@ -0,0 +1,16 @@ +<?php +/** + * load view/theme/$current_theme/style.php with friendica contex + */ + +function view_init($a){ + header("Content-Type: text/css"); + + if ($a->argc == 4){ + $theme = $a->argv[2]; + $THEMEPATH = "view/theme/$theme"; + require_once("view/theme/$theme/style.php"); + } + + killme(); +} |