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:
parent
77f57e1b13
commit
01af7d355a
2 changed files with 26 additions and 5 deletions
16
mod/view.php
Normal file
16
mod/view.php
Normal 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue