streams/Zotlabs/Module/View.php

23 lines
460 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 23:02:31 +00:00
class View extends Controller
{
2016-04-19 03:38:38 +00:00
2021-12-02 23:02:31 +00:00
public 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();
}
2016-04-19 03:38:38 +00:00
}