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