venom/tpl/admin/base.php

29 lines
723 B
PHP
Raw Permalink Normal View History

2020-09-25 21:33:54 +02:00
<?php
2020-10-05 20:02:43 +02:00
use Venom\Views\Asset;
use Venom\Core\Config;
2020-09-25 21:33:54 +02:00
2020-10-05 20:02:43 +02:00
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Venom Admin Interface</title>
<?php Asset::get()->renderCSS(); ?>
2020-11-01 18:59:05 +01:00
<!--link rel="stylesheet" href="/theme/admin/css/admin-panel.css"-->
2020-10-05 20:02:43 +02:00
</head>
<body <?=Config::getInstance()->isDevMode() ? 'debug' : ''?>>
2020-10-05 20:02:43 +02:00
<?php
if (!$this->getVar('isLoggedIn')) {
$this->renderTemplate('login');
2020-09-25 21:33:54 +02:00
} else {
2020-11-01 18:59:05 +01:00
$this->renderTemplate('admin-panel');
2020-09-25 21:33:54 +02:00
}
2020-10-05 20:02:43 +02:00
Asset::get()->renderJS();
?>
</body>
</html>