Rename menu partials for clarity
This commit is contained in:
@@ -17,3 +17,4 @@ Alles, was später auf den Webserver gehört, lebt unter `web/`. Die anderen Ord
|
|||||||
## Weitere Infos
|
## Weitere Infos
|
||||||
- Die ausführliche Demo-Beschreibung und Abläufe stehen in `docs/README.md`.
|
- Die ausführliche Demo-Beschreibung und Abläufe stehen in `docs/README.md`.
|
||||||
- Trage Planungsnotizen und zusätzliche Quellen in `planning/` ein, damit sie nicht mit in `web/` landen.
|
- Trage Planungsnotizen und zusätzliche Quellen in `planning/` ein, damit sie nicht mit in `web/` landen.
|
||||||
|
- Die Partial-Templates (`main-nav.php`, `planet-switcher.php`, `alert-banner.php`, `footer-links.php`, `ressourcen.php`, `site.php`) liegen jeweils unter `web/desktop/src/partials/` und `web/mobile/src/partials/`.
|
||||||
|
|||||||
@@ -10,12 +10,13 @@ Diese Demo zeigt eine HUD-artige Navigation mit statischem Hauptmenü, kontextab
|
|||||||
- `web/mobile/src/partials/`: Mobile-Partial-Templates (momentan identisch zum Desktop-Set).
|
- `web/mobile/src/partials/`: Mobile-Partial-Templates (momentan identisch zum Desktop-Set).
|
||||||
|
|
||||||
## Layout-Highlights
|
## Layout-Highlights
|
||||||
- **Sidebar**: Hauptmenü (links) mit statischem Link-Set plus optionaler Planetenliste auf der Unterseite.
|
- **Sidebar**: Hauptmenü (`main-nav.php`) plus Planetenwechsler (`planet-switcher.php`) in der linken Spalte.
|
||||||
- **Topbar & Notification-Dropdown**: Anzeige, Actions & Test-Toast-Button.
|
- **Topbar & Notification-Dropdown**: Anzeige, Actions & Test-Toast-Button; bleibt innerhalb von `web/desktop/public/index.php`.
|
||||||
- **Subnav**: Mittig platzierte Tabs (Kontextmenü) basierend auf dem `$subnav`-Array in `public/index.php`.
|
- **Subnav**: Mittig platzierte Tabs (Kontextmenü) basierend auf dem `$subnav`-Array in `web/desktop/public/index.php`.
|
||||||
- **Ressourcenleiste**: Sticky-Komponente unterhalb der Subnav (`src/partials/ressourcen.php`).
|
- **Alert Banner**: `alert-banner.php` sitzt direkt unterhalb der Topbar, wenn `$errorMessage` gesetzt ist.
|
||||||
- **Content**: Demo-Inhalte aus `src/partials/site.php`, die Sections und Subpages simulieren.
|
- **Ressourcenleiste**: Sticky-Komponente unterhalb der Subnav (`web/desktop/src/partials/ressourcen.php`).
|
||||||
- **Footer**: Menü-Links und optionaler Admin-Chip, gesteuert über `$isAdmin`.
|
- **Content**: Demo-Inhalte aus `web/desktop/src/partials/site.php`, die Sections und Subpages simulieren.
|
||||||
|
- **Footer**: Menü-Links und optionaler Admin-Chip, gesteuert über `$isAdmin` und `footer-links.php`.
|
||||||
|
|
||||||
## Lokale Entwicklung
|
## Lokale Entwicklung
|
||||||
1. `cd /path/to/Space-Theme`.
|
1. `cd /path/to/Space-Theme`.
|
||||||
@@ -24,5 +25,5 @@ Diese Demo zeigt eine HUD-artige Navigation mit statischem Hauptmenü, kontextab
|
|||||||
|
|
||||||
## Hinweise
|
## Hinweise
|
||||||
- Die PHP-Session (`session_start()`) im Entry-Point dient Flash-Toasts und Alert-Messages.
|
- Die PHP-Session (`session_start()`) im Entry-Point dient Flash-Toasts und Alert-Messages.
|
||||||
- Die Partial-Templates erwarten die Variablen `$section`, `$sub`, `$planet` und greifen über `$partialsPath` aus `web/public/index.php` aufeinander zu.
|
- Die Partial-Templates erwarten die Variablen `$section`, `$sub`, `$planet` und greifen über `$partialsPath` aus `web/desktop/public/index.php` aufeinander zu.
|
||||||
- Performance-/Alert-Profile werden über `sessionStorage` bzw. `localStorage` gesteuert – die Buttons in `public/assets/ui.js` sorgen für die Visualisierung.
|
- Performance-/Alert-Profile werden über `sessionStorage` bzw. `localStorage` gesteuert – die Buttons in `web/desktop/public/assets/ui.js` sorgen für die Visualisierung.
|
||||||
|
|||||||
@@ -108,11 +108,11 @@ $partialsPath = __DIR__ . '/../src/partials';
|
|||||||
<!-- LINKS: Sidebar -->
|
<!-- LINKS: Sidebar -->
|
||||||
<aside class="sidebar" aria-label="Seitenleiste">
|
<aside class="sidebar" aria-label="Seitenleiste">
|
||||||
<div class="card panel">
|
<div class="card panel">
|
||||||
<?php include $partialsPath . '/menue.php'; ?>
|
<?php include $partialsPath . '/main-nav.php'; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card panel">
|
<div class="card panel">
|
||||||
<?php include $partialsPath . '/menue2.php'; ?>
|
<?php include $partialsPath . '/planet-switcher.php'; ?>
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
@@ -170,7 +170,7 @@ $partialsPath = __DIR__ . '/../src/partials';
|
|||||||
<!-- OPTIONAL: Alert Banner (über Subnav) -->
|
<!-- OPTIONAL: Alert Banner (über Subnav) -->
|
||||||
<?php if (!empty($errorMessage)): ?>
|
<?php if (!empty($errorMessage)): ?>
|
||||||
<header class="alertbar card panel" role="alert" aria-live="polite">
|
<header class="alertbar card panel" role="alert" aria-live="polite">
|
||||||
<?php include $partialsPath . '/menue-top.php'; ?>
|
<?php include $partialsPath . '/alert-banner.php'; ?>
|
||||||
</header>
|
</header>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
@@ -215,7 +215,7 @@ $partialsPath = __DIR__ . '/../src/partials';
|
|||||||
|
|
||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<footer class="footer card panel">
|
<footer class="footer card panel">
|
||||||
<?php include $partialsPath . '/menue-foot.php'; ?>
|
<?php include $partialsPath . '/footer-links.php'; ?>
|
||||||
<?php if ($isAdmin): ?>
|
<?php if ($isAdmin): ?>
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<a class="chip" href="index.php?s=admin&planet=<?= urlencode($planet) ?>">Admin</a>
|
<a class="chip" href="index.php?s=admin&planet=<?= urlencode($planet) ?>">Admin</a>
|
||||||
|
|||||||
@@ -108,11 +108,11 @@ $partialsPath = __DIR__ . '/../src/partials';
|
|||||||
<!-- LINKS: Sidebar -->
|
<!-- LINKS: Sidebar -->
|
||||||
<aside class="sidebar" aria-label="Seitenleiste">
|
<aside class="sidebar" aria-label="Seitenleiste">
|
||||||
<div class="card panel">
|
<div class="card panel">
|
||||||
<?php include $partialsPath . '/menue.php'; ?>
|
<?php include $partialsPath . '/main-nav.php'; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card panel">
|
<div class="card panel">
|
||||||
<?php include $partialsPath . '/menue2.php'; ?>
|
<?php include $partialsPath . '/planet-switcher.php'; ?>
|
||||||
</div>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
@@ -170,7 +170,7 @@ $partialsPath = __DIR__ . '/../src/partials';
|
|||||||
<!-- OPTIONAL: Alert Banner (über Subnav) -->
|
<!-- OPTIONAL: Alert Banner (über Subnav) -->
|
||||||
<?php if (!empty($errorMessage)): ?>
|
<?php if (!empty($errorMessage)): ?>
|
||||||
<header class="alertbar card panel" role="alert" aria-live="polite">
|
<header class="alertbar card panel" role="alert" aria-live="polite">
|
||||||
<?php include $partialsPath . '/menue-top.php'; ?>
|
<?php include $partialsPath . '/alert-banner.php'; ?>
|
||||||
</header>
|
</header>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
@@ -215,7 +215,7 @@ $partialsPath = __DIR__ . '/../src/partials';
|
|||||||
|
|
||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<footer class="footer card panel">
|
<footer class="footer card panel">
|
||||||
<?php include $partialsPath . '/menue-foot.php'; ?>
|
<?php include $partialsPath . '/footer-links.php'; ?>
|
||||||
<?php if ($isAdmin): ?>
|
<?php if ($isAdmin): ?>
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
<a class="chip" href="index.php?s=admin&planet=<?= urlencode($planet) ?>">Admin</a>
|
<a class="chip" href="index.php?s=admin&planet=<?= urlencode($planet) ?>">Admin</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user