venom/tpl/admin/base.php
engineerTrooper a2931d93f7 VENOM-2 : WIP
2020-10-05 20:02:43 +02:00

28 lines
619 B
PHP

<?php
use Venom\Views\Asset;
?>
<!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(); ?>
</head>
<body>
<?php
if (!$this->getVar('isLoggedIn')) {
$this->renderTemplate('login');
} else {
echo 'Admin Interface!';
echo '<a href="/admin/api/login/logout">Ausloggen</a>';
}
Asset::get()->renderJS();
?>
</body>
</html>