allow themes to use "style.php" instead of "style.css".

Load style.php trhu mod/view.php to pass it friendica framework.
This commit is contained in:
Fabio Comuni 2012-03-30 21:18:25 +02:00
commit 01af7d355a
2 changed files with 26 additions and 5 deletions

16
mod/view.php Normal file
View file

@ -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();
}