42 lines
2.1 KiB
PHP
42 lines
2.1 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Sportheim-Seite der Stadionzeitung (Live-Seite) — Nachbau der gelungenen
|
||
|
|
* Canva-Seite „Feiern Sie Veranstaltungen im Katzbachtal": Kicker + große
|
||
|
|
* Headline, Lese-Serif-Text, unten das einblendende Gastraum-Foto mit
|
||
|
|
* QR-Karte darauf, rote Pinselstrich-Ecken als Gestaltungselement (hier als
|
||
|
|
* CSS-Näherung, keine Bild-Assets). Fester Baustein jeder Ausgabe
|
||
|
|
* (Felix, 29.07.2026).
|
||
|
|
*
|
||
|
|
* Text kommt aus data/sportheimbuchung.json (hero.text — dieselbe Quelle wie
|
||
|
|
* /sportheimbuchung, nie duplizieren), Foto aus dem geteilten Bestand,
|
||
|
|
* QR: geteilter qr-sportheimbuchung.png (bin/stadionzeitung-add.php).
|
||
|
|
*/
|
||
|
|
$heroText = (string) (json_load('sportheimbuchung')['hero']['text'] ?? '');
|
||
|
|
$sportheimQr = is_file(PUBLIC_PATH . '/assets/img/stadionzeitung/qr-sportheimbuchung.png')
|
||
|
|
? 'img/stadionzeitung/qr-sportheimbuchung.png'
|
||
|
|
: null;
|
||
|
|
$sportheimLink = preg_replace('~^https?://(www\.)?~', '', abs_url('sportheimbuchung'));
|
||
|
|
?>
|
||
|
|
<?php /* Pinselstrich-Ecken bewusst entfernt (Felix, 29.07.2026) — kommen
|
||
|
|
ggf. später als saubere Bild-Assets zurück. */ ?>
|
||
|
|
<div class="stadionzeitung-sportheim">
|
||
|
|
<header class="stadionzeitung-page__head">
|
||
|
|
<p class="stadionzeitung-page__kicker">Veranstaltung</p>
|
||
|
|
<h2 class="stadionzeitung-page__heading">Feiern im Katzbachtal</h2>
|
||
|
|
</header>
|
||
|
|
<p class="stadionzeitung-sportheim__text"><?= e($heroText) ?></p>
|
||
|
|
<div class="stadionzeitung-sportheim__foto-bereich">
|
||
|
|
<img class="stadionzeitung-sportheim__foto" src="<?= e(asset('img/pages/sportheim-1000.jpg')) ?>" alt="Der Gastraum unseres Sportheims" loading="lazy" decoding="async">
|
||
|
|
<div class="stadionzeitung-sportheim__foto-fade" aria-hidden="true"></div>
|
||
|
|
<div class="stadionzeitung-sportheim__qr-karte">
|
||
|
|
<?php if ($sportheimQr !== null): ?>
|
||
|
|
<img class="stadionzeitung-sportheim__qr" src="<?= e(asset($sportheimQr)) ?>" alt="" width="120" height="120" loading="lazy" decoding="async">
|
||
|
|
<?php endif; ?>
|
||
|
|
<span class="stadionzeitung-sportheim__link"><?= e($sportheimLink) ?></span>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|