- app.js: Der Anfangsscan übergab das Dokument, das kein Element ist; HLS-Filme im Quelltext wurden nie angebunden. Vollbild findet sein Video auch neben dem Player. - Download und Ansicht heißen nach dem Anzeigetitel statt „laden.mp4“. - Mitgliederprofil: Name, E-Mail mit Bestätigung der neuen Adresse, Passwort, Rechnungsadresse (ADR-46). - Kleine Fußzeile mit Rechtlichem aus der CMS-Navigation. - Lizenzdetail nennt, dass Einzel-/Mehrfachlizenz nicht festgelegt ist (Funktion gibt es noch nicht). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
35 lines
1.9 KiB
PHP
35 lines
1.9 KiB
PHP
@php
|
|
$navigation = \App\Domain\Cms\NavigationItem::query()->visible()->with('page')->orderBy('sort_order')->orderBy('id')->get();
|
|
$groups = collect(\App\Domain\Cms\SiteNavigation::forPath($navigation, request()->path())->footerGroups());
|
|
// Rechtliches und Kontakt wie im Fußbereich der Website (Plätze „Fußbereich: Rechtliches“ und „Fußbereich: Kontakt“).
|
|
$links = $groups->whereIn('key', ['footer_legal', 'footer_contact'])->flatMap(fn (array $group): array => $group['links'])->values();
|
|
|
|
// Ist im CMS noch kein Rechtliches-Platz belegt, gelten die veröffentlichten Seiten /impressum und /datenschutz, falls es sie gibt.
|
|
if (! $groups->contains('key', 'footer_legal')) {
|
|
$pages = \App\Domain\Cms\Page::query()->whereIn('path', ['/impressum', '/datenschutz'])->whereNotNull('published_revision_id')->get()->keyBy('path');
|
|
foreach (['/impressum' => 'Impressum', '/datenschutz' => 'Datenschutz'] as $path => $label) {
|
|
if ($pages->has($path)) {
|
|
$links->push(['label' => $label, 'href' => $pages[$path]->publicUrl(), 'current' => request()->path() === ltrim($path, '/')]);
|
|
}
|
|
}
|
|
}
|
|
@endphp
|
|
{{--
|
|
Kleine Fußzeile des Mitgliederbereichs: Links zu Impressum, Datenschutz und weiteren Rechtsseiten aus der CMS-Navigation.
|
|
Keine eigenen Rechtstexte und keine fest codierten Adressen; die Seiten pflegt die Redaktion im CMS.
|
|
--}}
|
|
<footer class="mb-footer">
|
|
<div class="mb-footer-inner">
|
|
<p class="mb-footer-brand">© {{ now()->year }} Lara & Felix</p>
|
|
@if ($links->isNotEmpty())
|
|
<nav aria-label="Rechtliches und Kontakt">
|
|
<ul>
|
|
@foreach ($links as $link)
|
|
<li><a href="{{ $link['href'] }}" @if ($link['current']) aria-current="page" @endif>{{ $link['label'] }}</a></li>
|
|
@endforeach
|
|
</ul>
|
|
</nav>
|
|
@endif
|
|
</div>
|
|
</footer>
|