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