streams/Zotlabs/Module/View.php

23 lines
411 B
PHP
Raw Normal View History

2016-04-19 03:38:38 +00:00
<?php
namespace Zotlabs\Module;
2021-12-02 22:33:36 +00:00
use Zotlabs\Web\Controller;
2016-04-19 03:38:38 +00:00
/**
* load view/theme/$current_theme/style.php with Hubzilla context
*/
2021-12-02 22:33:36 +00:00
class View extends Controller {
2016-04-19 03:38:38 +00:00
function init() {
header("Content-Type: text/css");
$theme = argv(2);
$THEMEPATH = "view/theme/$theme";
if(file_exists("view/theme/$theme/php/style.php"))
require_once("view/theme/$theme/php/style.php");
killme();
}
}