Mandantenabschluss: Marken, Vertragsdateien und Archive trennen
Deploy FeWo mit PipelineManager / deploy (push) Successful in 2m23s

This commit is contained in:
Lars committed 2026-10-26 17:07:11 +01:00
1 parent 86374b1659
commit 06df80e4db
45 files changed
+592 -99

No files matched your search

@@ -1,7 +1,4 @@
{{--
Picture mark of the logo (styles/satz4: traced master SVG, WebP renditions for the web).
Variables: $class, $sizes (default: 10rem), $label (optional; without it the mark is decorative next to the name).
--}}
<img src="{{ Vite::asset('resources/themes/seebad/img/logo-bildmarke-360.webp') }}"
srcset="{{ Vite::asset('resources/themes/seebad/img/logo-bildmarke-360.webp') }} 360w, {{ Vite::asset('resources/themes/seebad/img/logo-bildmarke-720.webp') }} 720w, {{ Vite::asset('resources/themes/seebad/img/logo-bildmarke-1440.webp') }} 1440w"
sizes="{{ $sizes ?? '10rem' }}" width="360" height="154" alt="{{ $label ?? '' }}" decoding="async" class="{{ $class ?? '' }}">
{{-- A website without a logo never inherits another landlord's identity. --}}
@if ($logo = $theme->brand('logo'))
<img src="{{ $logo }}" alt="{{ $label ?? '' }}" decoding="async" class="{{ $class ?? '' }}">
@endif
@@ -1,31 +1,2 @@
{{--
Inline graphic of the theme's picture world ("Bildwelt", docs/DESIGN-KONZEPT.md §7, MANDANTEN-ANFORDERUNGEN A18/A19).
Templates ask for a slot, never for a file, so a later picture-world system can replace the mapping below.
Variables: $slot (divider, closing, crest, railing, bracket, gulls, vignette.beach|pier|train|bike|forest), $class (optional),
$label (optional; without it the graphic is decorative).
--}}
@php
$motifFiles = [
'divider' => 'band-sonne',
'closing' => 'band-seebruecke',
'crest' => 'gaube',
'railing' => 'gelaender',
'bracket' => 'kopfband',
'gulls' => 'moewen',
'vignette.beach' => 'vignette-strand',
'vignette.pier' => 'vignette-seebruecke',
'vignette.train' => 'vignette-molli',
'vignette.bike' => 'vignette-rad',
'vignette.forest' => 'vignette-wald',
];
static $motifSvgs = [];
$motifFile = $motifFiles[$slot] ?? null;
$motifPath = $motifFile ? resource_path("themes/seebad/motifs/{$motifFile}.svg") : null;
$motifSvgs[$slot] ??= $motifPath && is_file($motifPath) ? file_get_contents($motifPath) : '';
$motifUid = 'm'.\Illuminate\Support\Str::lower(\Illuminate\Support\Str::random(6));
$motifSvg = preg_replace(['/\s(role|aria-label|aria-hidden)="[^"]*"/', '/<title>.*?<\/title>/s'], '', $motifSvgs[$slot]);
$motifSvg = preg_replace(['/id="([^"]+)"/', '/url\(#([^)]+)\)/'], ['id="$1-'.$motifUid.'"', 'url(#$1-'.$motifUid.')'], $motifSvg);
$motifAttributes = 'class="'.e($class ?? '').'" '.(isset($label) ? 'role="img" aria-label="'.e($label).'"' : 'aria-hidden="true" focusable="false"');
$motifSvg = preg_replace('/<svg\s/', '<svg '.$motifAttributes.' ', $motifSvg, 1);
@endphp
{!! $motifSvg !!}
{{-- Decoration follows the website, overridden by the current apartment. --}}
{!! $theme->motif($slot, $class ?? null, $label ?? null) !!}