Stelle alle CMS-Bilder auf die zentrale Medienverwaltung um.
- Einstieg, Bild und Text, redaktionelle Karten, Premium-Karten und Abschnittshintergrund speichern die Kennung des Mediums (Bildschlüssel image) und lesen über WebsiteMedia; öffentlich nur mit Website-Freigabe, in der Redaktionsvorschau sonst das Vorschaubild mit Hinweis. - Gemeinsame Felder: Medienpicker mit Vorschaubild und Status, Upload direkt über WebsiteIntake, Anzeige des gewählten Mediums mit Verweis auf den Medienmanager. Die CMS-eigene Bildauswahl entfällt. - Frühere CMS-Bilder übernimmt ein Warteschlangen-Job (dedupliziert, nichts gelöscht); website_media_aliases ordnet frühere Pfade zu, wirksam erst nach der ersten Website-Freigabe; /medien/cms/ folgt danach der Freigabe. - Medienansicht nennt die Website-Seiten, die ein Bild verwenden. - Bewusst geändert: Der Alternativtext gehört zum Medium und ist im Widget nur noch eine optionale Abweichung; die Tests zur Alt-Text-Pflicht prüfen jetzt Übernahme und andere Registry-Fehler. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7c63424ea6
commit
053a8d4648
35 files changed
+1170
-164
No files matched your search
@@ -54,6 +54,23 @@
|
||||
.luf-sections .fi-fo-repeater-item-header .fi-icon-btn,
|
||||
.luf-sections .fi-fo-builder-item-header .fi-icon-btn { min-width: 2.25rem; min-height: 2.25rem; opacity: 1; }
|
||||
.luf-sections .fi-fo-builder-item-header { flex-wrap: wrap; }
|
||||
/* Medienpicker (Bilder aus dem Medienmanager): Vorschaubild, Titel und Website-Status in der Auswahl. */
|
||||
.luf-media-option { display: flex; align-items: center; gap: .75rem; min-width: 0; }
|
||||
.luf-media-option img, .luf-media-option-empty { flex: none; width: 4.5rem; height: 2.75rem; object-fit: cover; border-radius: .375rem; background: #eef1ee; }
|
||||
.luf-media-option-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
|
||||
.luf-media-option-text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.luf-media-badge { align-self: flex-start; padding: 0 .45rem; border-radius: 999px; font-size: .72rem; line-height: 1.35rem; }
|
||||
.luf-media-badge-ok { background: #e3f0d8; color: #2d5c07; }
|
||||
.luf-media-badge-warn { background: #fff1c7; color: #6b4b00; }
|
||||
.luf-media-badge-wait { background: #e5eef8; color: #18456f; }
|
||||
.luf-media-badge-quiet { background: #eceff1; color: #3e4c5c; }
|
||||
.luf-media-status { display: flex; gap: 1rem; align-items: flex-start; padding: .75rem; border: 1px solid #d5ddd6; border-radius: .5rem; }
|
||||
.luf-media-status img { width: 10rem; height: auto; border-radius: .375rem; }
|
||||
.luf-media-status strong { display: block; }
|
||||
.luf-media-status p { margin: .25rem 0 .4rem; font-size: .875rem; }
|
||||
.luf-media-status a { font-size: .875rem; text-decoration: underline; }
|
||||
.luf-media-status-unreleased, .luf-media-status-missing { border-color: #e7c35a; background: #fffaeb; }
|
||||
.luf-media-status-pending { border-color: #9cbbe0; background: #f3f8fd; }
|
||||
</style>
|
||||
<script>
|
||||
// Vorschau-Iframes an ihren Inhalt anpassen (nach Bildern und Schriften erneut), Höhe begrenzen.
|
||||
|
||||
@@ -81,6 +81,20 @@
|
||||
</p>
|
||||
<p class="luf-editor-lead">{{ $this->websiteFeedback !== '' ? $this->websiteFeedback : ($this->websiteIsPublic() ? 'Für die Website freigegeben. Öffentliche Seiten lesen nur diese Ableitung.' : 'Noch nicht für die Website freigegeben. Der interne Vermerk bleibt intern.') }}</p>
|
||||
@endif
|
||||
@php($webPages = $this->websitePages())
|
||||
<p class="luf-editor-lead">
|
||||
@if ($webPages === [])
|
||||
Auf keiner Website-Seite als Bild verwendet.
|
||||
@else
|
||||
Als Bild auf der Website verwendet:
|
||||
@foreach ($webPages as $usage)
|
||||
{{ $usage['path'] }} ({{ $usage['published'] ? 'veröffentlicht' : '' }}{{ $usage['published'] && $usage['draft'] ? ', ' : '' }}{{ $usage['draft'] ? 'Entwurf' : '' }}){{ $loop->last ? '' : ',' }}
|
||||
@endforeach
|
||||
@if ($this->websiteIsPublic())
|
||||
– Zurücknehmen entfernt das Bild dort von der öffentlichen Seite.
|
||||
@endif
|
||||
@endif
|
||||
</p>
|
||||
@php($history = $this->editorialHistory())
|
||||
@if ($history !== [])
|
||||
<details>
|
||||
|
||||
@@ -35,3 +35,4 @@
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
@include('widgets.partials.image-notice')
|
||||
@@ -14,7 +14,7 @@
|
||||
<div class="lf-hero lf-hero--{{ $layout }} lf-hero--height-{{ $heightClass }} lf-hero--accent-{{ $accent }}"
|
||||
style="--lf-hero-focus-x: {{ $focus['x'] }}%; --lf-hero-focus-y: {{ $focus['y'] }}%">
|
||||
@if ($layout === 'photo-split' && $imageUrl)
|
||||
<img class="lf-hero__photo" src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}" {!! $loading !!} decoding="async">
|
||||
<img class="lf-hero__photo" src="{{ $imageUrl }}" alt="{{ $imageAlt ?? '' }}" {!! $loading !!} decoding="async">
|
||||
@endif
|
||||
<div class="lf-hero__inner">
|
||||
<div class="lf-hero__copy">
|
||||
@@ -43,3 +43,4 @@
|
||||
<span class="lf-hero__bottom" aria-hidden="true"></span>
|
||||
</div>
|
||||
</div>
|
||||
@include('widgets.partials.image-notice')
|
||||
@@ -40,8 +40,9 @@
|
||||
</div>
|
||||
@if ($imageUrl)
|
||||
<div class="lf-bt__media">
|
||||
<img class="lf-bt__image" src="{{ $imageUrl }}" alt="{{ $data['alt'] ?? '' }}" @if (! empty($first)) loading="eager" fetchpriority="high" @else loading="lazy" @endif decoding="async">
|
||||
<img class="lf-bt__image" src="{{ $imageUrl }}" alt="{{ $imageAlt ?? '' }}" @if (! empty($first)) loading="eager" fetchpriority="high" @else loading="lazy" @endif decoding="async">
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@include('widgets.partials.image-notice')
|
||||
@@ -0,0 +1,4 @@
|
||||
{{-- Nur Redaktionsvorschau: Das gewählte Bild erscheint öffentlich nicht (fehlende Website-Freigabe, Verarbeitung). --}}
|
||||
@if (! empty($imageNotice) && $context->preview)
|
||||
<p class="preview-note">{{ $imageNotice }}</p>
|
||||
@endif
|
||||
@@ -104,4 +104,5 @@
|
||||
@endif
|
||||
</div>
|
||||
</article>
|
||||
@include('widgets.partials.image-notice')
|
||||
@endif
|
||||
Reference in new issue
Block a user