addressbook/templates/_header.html.php

22 lines
648 B
PHP
Raw Normal View History

2022-10-24 18:41:28 +02:00
<html lang="en">
2022-10-25 15:48:11 +02:00
<head>
<title>Address Book
<?php if (!empty($user->getNick())): ?>
2022-10-24 18:41:28 +02:00
&nbsp;-&nbsp;<?= $user->getNick() ?>
2022-10-25 15:48:11 +02:00
<?php endif; ?>
</title>
<link rel="stylesheet" href="/assets/styles/main.css">
2022-10-24 18:41:28 +02:00
</head>
<body>
2022-10-25 15:48:11 +02:00
<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; ?>
2022-10-25 16:08:00 +02:00
2022-10-24 18:41:28 +02:00
<br>