Spielermenü auf Mobilgeräten als User-Icon anzeigen

This commit is contained in:
torsten 2026-11-10 14:02:52 +01:00
parent bdc64c53f7
commit c7146f0fd2
4 changed files with 27 additions and 19 deletions

View file

@ -87,8 +87,19 @@ $styleVersion = @filemtime(__DIR__ . '/../../../public/css/style.css');
</span>
<span class="nav-user">
<?php if (App\Core\Auth::check()): ?>
<?php $navUserName = (string)App\Core\Auth::user()['name']; ?>
<span class="nav-dropdown">
<a href="#" onclick="return false;">( <?php echo htmlspecialchars(App\Core\Auth::user()['name']); ?> )</a>
<a href="#" onclick="return false;" class="nav-user-link"
aria-label="Benutzermenü von <?php echo htmlspecialchars($navUserName); ?>"
aria-haspopup="true"
title="<?php echo htmlspecialchars($navUserName); ?>">
<svg class="nav-user-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor"
stroke-width="2" stroke-linecap="round" aria-hidden="true" focusable="false">
<circle cx="12" cy="8" r="4"></circle>
<path d="M4 21c0-4 3.6-7 8-7s8 3 8 7"></path>
</svg>
<span class="nav-user-name">( <?php echo htmlspecialchars($navUserName); ?> )</span>
</a>
<span class="nav-dropdown-content">
<a href="/index.php?page=tipps">Tipps</a>
<a href="/index.php?page=settings">Einstellungen</a>