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

@@ -20,8 +20,9 @@
<meta property="og:image" content="{{ $ogImage }}">
@endisset
<link rel="canonical" href="{{ url()->current() }}">
<link rel="icon" href="{{ asset('brand/favicon.svg') }}" type="image/svg+xml">
<link rel="apple-touch-icon" href="{{ asset('brand/apple-touch-icon.png') }}">
@if ($favicon = $theme->brand('favicon'))
<link rel="icon" href="{{ $favicon }}">
@endif
@if ($theme->isPreview || ! app()->isProduction())
<meta name="robots" content="noindex">
@endif
@@ -1,16 +1,8 @@
{{--
Inline brand graphic from public/brand/<name>.svg (mark, logo, wave-divider, icon-apartment, icon-sea,
icon-terrace, icon-location). Inline, so the colours follow the CSS variables --brand-navy/-teal/-wave/-sun
(theme-base.css maps navy to the text colour, so it stays visible in dark appearances).
Variables: $name, $class (optional), $label (optional; without it the graphic is decorative).
--}}
@php
static $brandSvgs = [];
$brandSvgs[$name] ??= is_file(public_path("brand/{$name}.svg")) ? file_get_contents(public_path("brand/{$name}.svg")) : '';
$brandUid = 'b'.\Illuminate\Support\Str::lower(\Illuminate\Support\Str::random(6));
$brandSvg = preg_replace(['/\s(role|aria-label)="[^"]*"/', '/<title>.*?<\/title>/s'], '', $brandSvgs[$name]);
$brandSvg = preg_replace(['/id="([^"]+)"/', '/url\(#([^)]+)\)/'], ['id="$1-'.$brandUid.'"', 'url(#$1-'.$brandUid.')'], $brandSvg);
$brandAttributes = 'class="'.e($class ?? '').'" '.(isset($label) ? 'role="img" aria-label="'.e($label).'"' : 'aria-hidden="true" focusable="false"');
$brandSvg = preg_replace('/<svg\s/', '<svg '.$brandAttributes.' ', $brandSvg, 1);
@endphp
{!! $brandSvg !!}
{{-- Identity comes from the website, decoration from picture-world slots. --}}
@if (in_array($name, ['mark', 'logo'], true))
@if ($logo = $theme->brand('logo'))
<img src="{{ $logo }}" alt="{{ $label ?? '' }}" class="{{ $class ?? '' }}" decoding="async">
@endif
@else
{!! $theme->motif($name === 'wave-divider' ? 'divider' : $name, $class ?? null, $label ?? null) !!}
@endif
@@ -3,8 +3,7 @@
<a href="{{ route('home') }}" class="flex items-center gap-3 leading-tight" aria-label="{{ $theme->site->name }} – Startseite">
@include('theme::partials.brand', ['name' => 'mark', 'class' => 'h-11 w-auto shrink-0 sm:h-12'])
<span class="flex flex-col">
<span class="font-display text-[1.875rem] font-semibold tracking-wide">{{ str($theme->site->name)->afterLast(' ') }}</span>
<span class="text-[11px] tracking-[0.24em] text-muted uppercase">Ferienwohnung · Kühlungsborn</span>
<span class="font-display text-[1.875rem] font-semibold tracking-wide">{{ $theme->site->name }}</span>
</span>
</a>
@@ -11,6 +11,6 @@
class="{{ $class ?? '' }}">
@else
<div class="{{ $class ?? '' }} flex items-center justify-center bg-surface" role="img" aria-label="Bild folgt">
<img src="{{ asset('brand/coastal-illustration-1200.webp') }}" alt="" loading="lazy" decoding="async" class="h-full max-h-full w-full object-contain p-6 opacity-90">
{!! $theme->motif('placeholder', 'h-full max-h-full w-full p-6 opacity-90') !!}
</div>
@endif