Neue Einstellung "fullscreen" (Vorgabe: nicht anbieten) an den Kartenwidgets und an Bild und Text. Die Schaltfläche erscheint nur mit freigegebenem Clip und wenn das Gerät Vollbild kann. Im Vollbild gibt es Ton und native Bedienung, Scrollen und Zeiger stoppen den Clip nicht; beim Verlassen kehrt die Karte zum Kartenbild zurück. Gemeinsames Modul resources/js/player/fullscreen.js. iPhone-Weg bisher nur als Logik, Gerätetest steht aus. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
70 lines
4.0 KiB
PHP
70 lines
4.0 KiB
PHP
{{--
|
||
Premium-Bild-und-Text (Brand-UI-Kit v1.6, Komponente lf-bild-text), angepasst an die Widget-Hülle der Registry.
|
||
Darstellung nach tatsächlicher Containerbreite: unter 540 px gestapelt, 540–899 px flacher Bildstreifen,
|
||
ab 900 px zweispaltig mit Bild links oder rechts (Variante). Die Höhe ändert Bildproportion und Abstände,
|
||
nie die zulässige Textmenge. Der Text ist bereits bereinigter formatierter Text (RichText::sanitize).
|
||
Der Bildanteil (imageShare) gilt nur im zweispaltigen Stand. Ohne Text, Überschrift, Label und Schaltflächen
|
||
(hasCopy) steht das Bild allein über die ganze Breite. Ein freigegebenes Video (video.url, CardClip) liegt über dem
|
||
Bild und spielt dort wie auf der Medienkarte (resources/js/card-clip.js); ohne freigegebenen Clip bleibt es beim Bild.
|
||
--}}
|
||
@php
|
||
$side = $variant === 'image_left' ? 'left' : 'right';
|
||
$heightClass = in_array($height, ['compact', 'normal', 'spacious'], true) ? $height : 'normal';
|
||
$tag = \App\Domain\Cms\Widgets\Support\PremiumFields::headingTag($settings, ! empty($first));
|
||
$hasCopy = $hasCopy ?? true;
|
||
$imageShare = $imageShare ?? null;
|
||
$clipUrl = $imageUrl ? ($video['url'] ?? null) : null;
|
||
$clipTitle = (string) ($video['title'] ?? '');
|
||
@endphp
|
||
@if ($imageUrl || $hasCopy)
|
||
<div class="lf-bt-host">
|
||
<div @class([
|
||
'lf-bt',
|
||
'lf-bt--'.$surface,
|
||
'lf-bt--image-'.$side,
|
||
'lf-bt--height-'.$heightClass,
|
||
'lf-bt--without-image' => ! $imageUrl,
|
||
'lf-bt--without-text' => ! $hasCopy,
|
||
'lf-bt--shared' => $imageShare !== null && $imageUrl && $hasCopy,
|
||
'lf-bt--share-'.$imageShare => $imageShare !== null && $imageUrl && $hasCopy,
|
||
]) style="--bt-focus-x: {{ $focus['x'] }}%; --bt-focus-y: {{ $focus['y'] }}%">
|
||
@if ($hasCopy)
|
||
<div class="lf-bt__copy">
|
||
@php($lead = \App\Domain\Cms\Widgets\Support\HeadingAccent::lead($settings))
|
||
@if ($lead['side'] !== null)<div class="lf-lead lf-lead--{{ $lead['side'] }} lf-lead--{{ $lead['align'] }}"><x-brand.symbol :name="$lead['symbol']" class="lf-lead__symbol" /><div class="lf-lead__body">@endif
|
||
@if (filled($data['eyebrow'] ?? null))
|
||
<p class="lf-bt__eyebrow">{{ $data['eyebrow'] }}</p>
|
||
@endif
|
||
@if (filled($data['title'] ?? null))
|
||
<{{ $tag }} class="lf-bt__headline"><x-brand.heading-symbol :settings="$lead['inline']" />{{ $data['title'] }}</{{ $tag }}>
|
||
<span class="lf-bt__accent" aria-hidden="true"></span>
|
||
@endif
|
||
<div class="lf-bt__body">{!! $body !!}</div>
|
||
@if ($actions !== [])
|
||
<div class="lf-bt__actions">
|
||
@foreach ($actions as $index => $item)
|
||
@if ($index === 0)
|
||
<a class="lf-bt__button" href="{{ $item['url'] }}">{{ $item['label'] }} <span aria-hidden="true">→</span></a>
|
||
@else
|
||
<a class="lf-bt__button lf-bt__button--secondary" href="{{ $item['url'] }}">{{ $item['label'] }}</a>
|
||
@endif
|
||
@endforeach
|
||
</div>
|
||
@endif
|
||
@if ($lead['side'] !== null)</div></div>@endif
|
||
</div>
|
||
@endif
|
||
@if ($imageUrl)
|
||
<div class="lf-bt__media" @if ($clipUrl !== null) data-card-clip data-clip-src="{{ $clipUrl }}" data-clip-title="{{ $clipTitle }}" @endif>
|
||
<img class="lf-bt__image" src="{{ $imageUrl }}" @if (! empty($imageSrcset)) srcset="{{ $imageSrcset }}" sizes="100vw" @endif alt="{{ $imageAlt ?? '' }}" @if (! empty($first)) loading="eager" fetchpriority="high" @else loading="lazy" @endif decoding="async">
|
||
@include('widgets.partials.card-clip', ['clipFullscreen' => $clipUrl !== null && ! empty($videoFullscreen)])
|
||
</div>
|
||
@endif
|
||
</div>
|
||
</div>
|
||
@endif
|
||
@include('widgets.partials.image-notice')
|
||
@if ($context->preview && ! empty($video['notice']))
|
||
<p class="preview-note">{{ $video['notice'] }}</p>
|
||
@endif
|