friendica_2021-01/mod/view.php

19 lines
356 B
PHP
Raw Normal View History

<?php
/**
* load view/theme/$current_theme/style.php with friendica contex
2019-01-07 07:07:42 +01:00
*
* @param App $a
*/
function view_init($a){
header("Content-Type: text/css");
if ($a->argc == 4){
$theme = $a->argv[2];
$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();
}