2012-03-30 19:18:25 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* load view/theme/$current_theme/style.php with friendica contex
|
|
|
|
*/
|
2016-02-07 14:11:34 +00:00
|
|
|
|
|
|
|
function view_init($a){
|
2012-03-30 19:18:25 +00:00
|
|
|
header("Content-Type: text/css");
|
2016-02-07 14:11:34 +00:00
|
|
|
|
2012-03-30 19:18:25 +00:00
|
|
|
if ($a->argc == 4){
|
|
|
|
$theme = $a->argv[2];
|
|
|
|
$THEMEPATH = "view/theme/$theme";
|
2017-01-26 14:23:30 +00:00
|
|
|
if (file_exists("view/theme/$theme/style.php")) {
|
2012-04-01 23:21:55 +00:00
|
|
|
require_once("view/theme/$theme/style.php");
|
2017-01-26 14:23:30 +00:00
|
|
|
}
|
2012-03-30 19:18:25 +00:00
|
|
|
}
|
2016-02-07 14:11:34 +00:00
|
|
|
|
2012-03-30 19:18:25 +00:00
|
|
|
killme();
|
|
|
|
}
|