30 lines
1.2 KiB
PHP
30 lines
1.2 KiB
PHP
<?php $pageTitle = $pageTitle ?? 'Tippspiel 2027'; ?>
|
|
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title><?php echo htmlspecialchars($pageTitle); ?></title>
|
|
<link rel="stylesheet" href="/css/style.css">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
<style>
|
|
html {
|
|
font-size: 150%;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<nav>
|
|
<a href="/">Start</a>
|
|
<a href="#">Administration</a>
|
|
<a href="#">Tipps</a>
|
|
<a href="/index.php?page=ranking">Rangliste</a>
|
|
<a href="#">Info</a>
|
|
<div style="margin-left: auto;">
|
|
<?php if (App\Core\Auth::check()): ?>
|
|
<span style="margin-right: 1em;">Hallo, <?php echo htmlspecialchars(App\Core\Auth::user()['name']); ?>!</span>
|
|
<a href="/index.php?page=logout">Logout</a>
|
|
<?php else: ?>
|
|
<a href="/index.php?page=login">Login</a>
|
|
<?php endif; ?>
|
|
</div>
|
|
</nav>
|