new features
This commit is contained in:
parent
9fcd228eb2
commit
a73358d2f1
9 changed files with 538 additions and 2 deletions
|
|
@ -1,4 +1,16 @@
|
|||
<?php $pageTitle = $pageTitle ?? 'Tippspiel 2027'; ?>
|
||||
<?php
|
||||
$pageTitle = $pageTitle ?? 'Tippspiel 2027';
|
||||
|
||||
// Leucht-Hinweis am Menüpunkt "Fragen", wenn eine neue Antwort oder (für
|
||||
// Admins) eine neue Frage vorliegt.
|
||||
$questionsGlow = false;
|
||||
if (App\Core\Auth::check()) {
|
||||
$questionsGlow = App\Models\Question::hasNewAnswer((int)App\Core\Auth::id());
|
||||
if (App\Core\Auth::isAdmin()) {
|
||||
$questionsGlow = $questionsGlow || App\Models\Question::hasNewQuestion();
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
|
|
@ -14,9 +26,10 @@
|
|||
<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" />
|
||||
</head>
|
||||
<body class="<?php echo htmlspecialchars($bodyClass ?? ''); ?>">
|
||||
<?php if (App\Core\Auth::check()): ?>
|
||||
<nav class="site-nav">
|
||||
<a href="/" class="brand"><span class="brand-ball">⚽</span> Tippspiel <span class="brand-year">2027</span></a>
|
||||
<a href="/">Start</a>
|
||||
<a href="/index.php?page=questions"<?php if ($questionsGlow): ?> class="is-glowing"<?php endif; ?>>Fragen</a>
|
||||
<?php if (App\Core\Auth::isAdmin()): $registrationOpen = App\Models\Setting::isRegistrationOpen(); ?>
|
||||
<span class="nav-dropdown">
|
||||
<a href="#" onclick="return false;">Administration</a>
|
||||
|
|
@ -26,6 +39,7 @@
|
|||
<a href="/index.php?page=admin_rounds">Spiele & Ergebnisse eintragen</a>
|
||||
<a href="/index.php?page=admin_roundmails">Runden-E-Mails versenden</a>
|
||||
<a href="/index.php?page=admin_accounts">Kontoliste</a>
|
||||
<a href="/index.php?page=admin_message">Aktuelle Mitteilung</a>
|
||||
<form method="post" action="/index.php?page=admin" class="nav-dropdown-form">
|
||||
<input type="hidden" name="action" value="set_registration">
|
||||
<input type="hidden" name="registration_open" value="<?php echo $registrationOpen ? '0' : '1'; ?>">
|
||||
|
|
@ -65,4 +79,5 @@
|
|||
<?php endif; ?>
|
||||
</span>
|
||||
</nav>
|
||||
<?php endif; ?>
|
||||
<main class="page">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue