2012-03-30 21:18:25 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2019-01-07 18:24:01 +01:00
|
|
|
* load view/theme/$current_theme/style.php with friendica context
|
2019-01-07 07:07:42 +01:00
|
|
|
*
|
|
|
|
* @param App $a
|
2012-03-30 21:18:25 +02:00
|
|
|
*/
|
2016-02-07 15:11:34 +01:00
|
|
|
function view_init($a){
|
2012-03-30 21:18:25 +02:00
|
|
|
header("Content-Type: text/css");
|
2016-02-07 15:11:34 +01:00
|
|
|
|
2012-03-30 21:18:25 +02:00
|
|
|
if ($a->argc == 4){
|
|
|
|
$theme = $a->argv[2];
|
|
|
|
$THEMEPATH = "view/theme/$theme";
|
2017-03-21 17:02:59 +01:00
|
|
|
if(file_exists("view/theme/$theme/style.php"))
|
2012-04-02 01:21:55 +02:00
|
|
|
require_once("view/theme/$theme/style.php");
|
2012-03-30 21:18:25 +02:00
|
|
|
}
|
2016-02-07 15:11:34 +01:00
|
|
|
|
2018-12-26 06:40:12 +01:00
|
|
|
exit();
|
2012-03-30 21:18:25 +02:00
|
|
|
}
|