Initial commit
This commit is contained in:
35
menue2.php
Normal file
35
menue2.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
// Planetenliste (unteres Menü links)
|
||||
$planets = [
|
||||
['id'=>'earth', 'name'=>'Earth Prime', 'hint'=>'L1'],
|
||||
['id'=>'mars', 'name'=>'Mars Outpost', 'hint'=>'L2'],
|
||||
['id'=>'io', 'name'=>'Io Refinery', 'hint'=>'L3'],
|
||||
['id'=>'vega', 'name'=>'Vega Station', 'hint'=>'L4'],
|
||||
];
|
||||
?>
|
||||
<nav aria-label="Planetenliste">
|
||||
<div class="panel-title">KOLONIEN</div>
|
||||
<div class="muted">Schnellwechsel (Planeten)</div>
|
||||
|
||||
<ul class="planetlist">
|
||||
<?php foreach($planets as $p): ?>
|
||||
<?php
|
||||
$active = ($p['id'] === $planet);
|
||||
$href = "index.php?s=" . urlencode($section) . "&p=" . urlencode($sub ?? '') . "&planet=" . urlencode($p['id']);
|
||||
?>
|
||||
<li>
|
||||
<a class="<?= $active ? 'is-active' : '' ?>" href="<?= htmlspecialchars($href) ?>">
|
||||
<span class="pl-dot <?= $active ? 'on' : '' ?>"></span>
|
||||
<span class="pl-name"><?= htmlspecialchars($p['name']) ?></span>
|
||||
<span class="navhint"><?= htmlspecialchars($p['hint']) ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
||||
<div class="divider"></div>
|
||||
<div class="muted" style="display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;">
|
||||
<span>Aktiv: <strong><?= htmlspecialchars($planet) ?></strong></span>
|
||||
<span class="tiny">Tip: Shortcuts later</span>
|
||||
</div>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user