Spiele den freigegebenen Trailer auf Medien-, Programm- und Modulkarten ab
Die Karte spielt den für die Website freigegebenen Trailer (Rolle Trailer, sonst Vorschauclip, bei einem Film ersatzweise sein Teaser) stumm beim Überfahren mit der Maus ab, am Handy mit Tippen, per Tastatur über die Schaltfläche. Reduzierte Bewegung und Datensparmodus starten nichts von selbst; der Clip wird erst beim ersten Start geladen. Ohne Freigabe bleibt das Kartenbild, die Redaktionsvorschau nennt den Grund. Neue Einstellung "Trailer auf der Karte" je Karte (ADR-43). Die Route website.media beantwortet Bereichsabrufe (206/416) für Filme und Hörstücke, damit Safari und iOS abspielen. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fc40aba26c
commit
ea4244487f
15 files changed
+954
-9
No files matched your search
@@ -0,0 +1,12 @@
|
||||
{{--
|
||||
Trailer der Premium-Karte (CardClip): stummer Clip über dem Kartenbild plus Schaltfläche. Das <video> bekommt seine
|
||||
Quelle erst beim ersten Start (resources/js/card-clip.js, preload="none"). Der Clip ist Beiwerk; Titel und Text der
|
||||
Karte stehen daneben, deshalb ist das Video für Hilfstechnik verborgen und die Schaltfläche trägt die Bedeutung.
|
||||
--}}
|
||||
@if (($clipUrl ?? null) !== null)
|
||||
<video class="lf-pc__clip" muted loop playsinline preload="none" disablepictureinpicture disableremoteplayback tabindex="-1" aria-hidden="true"></video>
|
||||
<button type="button" class="lf-pc__clip-toggle" aria-pressed="false" data-clip-toggle aria-label="Trailer abspielen: {{ $clipTitle }}">
|
||||
<svg class="lf-pc__clip-icon" viewBox="0 0 24 24" focusable="false" aria-hidden="true"><path class="lf-pc__clip-play" d="M8 5.5v13l11-6.5z" fill="currentColor"/><path class="lf-pc__clip-pause" d="M7 5h4v14H7zM13 5h4v14h-4z" fill="currentColor"/></svg>
|
||||
<span class="lf-pc__clip-label" aria-hidden="true">Trailer</span>
|
||||
</button>
|
||||
@endif
|
||||
@@ -9,6 +9,11 @@
|
||||
öffentlich markiert. Es hat keine Freigabe für die Website und wird öffentlich nie ausgegeben.
|
||||
3. Tafel nach Fachobjekt: Programm/Modul (Navy), Film (Filmtafel), Material (Materialsymbol); Thema ohne Bildbereich.
|
||||
Hinweise auf fehlende Inhalte stehen nur in der Redaktionsvorschau, öffentlich nie.
|
||||
|
||||
Trailer: Ist für das Objekt ein für die Website freigegebener Clip da ($clip['url'], CardClip), liegt er stumm und
|
||||
unsichtbar über dem Bildbereich und startet beim Überfahren mit der Maus, am Handy mit Tippen auf das Bild, per
|
||||
Tastatur über die Schaltfläche (resources/js/card-clip.js). Ohne JavaScript bleibt es beim Bild. Der Clip wird erst
|
||||
beim ersten Start geladen.
|
||||
--}}
|
||||
@if ($subject === null)
|
||||
@if ($context->preview)
|
||||
@@ -21,6 +26,11 @@
|
||||
$action = $show['action'] && $subject->url !== null ? ['url' => $subject->url, 'label' => $actionLabel] : null;
|
||||
$meta = $show['meta'] ? $subject->meta : [];
|
||||
$hints = $subject->missing;
|
||||
$clipUrl = $clip['url'] ?? null;
|
||||
$clipTitle = (string) ($clip['title'] ?? '') !== '' ? $clip['title'] : $subject->title;
|
||||
if ($context->preview && ! empty($clip['hint'])) {
|
||||
$hints[] = $clip['hint'];
|
||||
}
|
||||
$panelName = ['catalog' => 'die Navy-Tafel', 'film' => 'die Filmtafel', 'material' => 'das Materialsymbol'][$subject->visual] ?? 'die Karte ohne Bild';
|
||||
if ($context->preview && $imageUrl === null) {
|
||||
$hints[] = $subject->previewImage !== null
|
||||
@@ -38,8 +48,9 @@
|
||||
'lf-pc--internal' => ! $subject->public,
|
||||
]) style="--pc-focus-x: {{ $focus['x'] }}%; --pc-focus-y: {{ $focus['y'] }}%">
|
||||
@if ($imageUrl !== null || $libraryImage !== null)
|
||||
<div class="lf-pc__visual">
|
||||
<div class="lf-pc__visual" @if ($clipUrl !== null) data-card-clip data-clip-src="{{ $clipUrl }}" data-clip-title="{{ $clipTitle }}" @endif>
|
||||
<img class="lf-pc__image" src="{{ $imageUrl ?? $libraryImage }}" alt="{{ $imageUrl !== null ? $alt : '' }}" loading="lazy" decoding="async">
|
||||
@include('widgets.partials.card-clip')
|
||||
@if ($show['kind'] && $subject->badge !== null)
|
||||
<span class="lf-pc__badge">{{ $subject->badge }}</span>
|
||||
@endif
|
||||
@@ -47,6 +58,14 @@
|
||||
<span class="lf-pc__library-flag">Bibliotheksbild · nur Vorschau</span>
|
||||
@endif
|
||||
</div>
|
||||
@elseif ($panel !== null && $clipUrl !== null)
|
||||
<div class="lf-pc__visual lf-pc__visual--panel" data-card-clip data-clip-src="{{ $clipUrl }}" data-clip-title="{{ $clipTitle }}">
|
||||
<div class="lf-pc__panel lf-pc__panel--{{ $panel }}" aria-hidden="true">
|
||||
<span class="lf-pc__panel-label">{{ $subject->visualLabel ?? $subject->kind }}</span>
|
||||
<x-brand.underline class="lf-pc__panel-accent" />
|
||||
</div>
|
||||
@include('widgets.partials.card-clip')
|
||||
</div>
|
||||
@elseif ($panel !== null)
|
||||
<div class="lf-pc__panel lf-pc__panel--{{ $panel }}" aria-hidden="true">
|
||||
@if ($panel === 'film')
|
||||
@@ -105,4 +124,7 @@
|
||||
</div>
|
||||
</article>
|
||||
@include('widgets.partials.image-notice')
|
||||
@if ($context->preview && ! empty($clip['notice']))
|
||||
<p class="preview-note">{{ $clip['notice'] }}</p>
|
||||
@endif
|
||||
@endif
|
||||
Reference in new issue
Block a user