changed dir structure to handle second version of the book
This commit is contained in:
27
Vanilla/templates/_header.html.php
Normal file
27
Vanilla/templates/_header.html.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Address Book
|
||||
<?php if (!empty($user->getNick())): ?>
|
||||
- <?= $user->getNick() ?>
|
||||
<?php endif; ?>
|
||||
</title>
|
||||
<link rel="stylesheet" href="/assets/styles/main.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>Address Book</h1>
|
||||
<a href="<?= $router->path('app_main'); ?>">⌂ Home</a>
|
||||
<a href="<?= $router->path('app_admin'); ?>">⚙ Admin</a>
|
||||
<?php if (empty($user) || $user->getAuth() == \App\Enums\UserAuth::AUTH_ANONYMOUS): ?>
|
||||
<a href="<?= $router->path('app_login'); ?>">⎆ Login</a>
|
||||
<?php else: ?>
|
||||
<a href="<?= $router->path('app_logout'); ?>">⎋ Logout</a>
|
||||
<?php endif; ?>
|
||||
<br>
|
||||
<div id="info_box">Info</div>
|
||||
<div id="error_box">
|
||||
<span class="close_button" onclick="closeError()">×</span>
|
||||
<div id="error_text"></div>
|
||||
</div>
|
||||
<br>
|
Reference in New Issue
Block a user