friendica_2021-01/mod/view.php

24 lines
435 B
PHP
Raw Normal View History

<?php
2019-01-07 18:26:46 +01:00
use Friendica\App;
/**
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
*/
2019-01-07 18:26:46 +01:00
function view_init(App $a)
{
header("Content-Type: text/css");
if ($a->argc == 4){
$theme = $a->argv[2];
2019-01-22 13:44:49 +01:00
// set the path for later use in the theme styles
2019-01-22 10:36:42 +01:00
$THEMEPATH = "view/theme/$theme";
if(file_exists("view/theme/$theme/style.php"))
require_once("view/theme/$theme/style.php");
}
2018-12-26 06:40:12 +01:00
exit();
}