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-03-21 12:02:59 -04:00
|
|
|
if(file_exists("view/theme/$theme/style.php"))
|
2012-04-01 19:21:55 -04:00
|
|
|
require_once("view/theme/$theme/style.php");
|
2012-03-30 15:18:25 -04:00
|
|
|
}
|
2016-02-07 09:11:34 -05:00
|
|
|
|
2018-12-26 00:40:12 -05:00
|
|
|
exit();
|
2012-03-30 15:18:25 -04:00
|
|
|
}
|