Neue opt-in-Prop groupsInDash in group-schedule zieht schlichte Gruppen (ohne intro/details) als volle Bodenreihe MIT ins Dashboard-Bento, ohne eigene Sektion und ohne "Unsere Gruppen"-Ueberschrift. Trampolin nutzt das, damit Hinweis, Trainingsort, Kontakt und die drei Gruppen-Karten ein zusammenhaengender Block sind statt einer losgeloesten Kartenreihe darunter. Wiederverwendung von .group-list--grid/.group-card, Karten-Markup DRY in renderSimpleCard. Wettkampfturnen/Kinderturnen bleiben unberuehrt. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HXDvgRDHQ9iGjs4KCXykEj
37 lines
1.3 KiB
PHP
37 lines
1.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* Turnen → Trampolinturnen. Inhalt: data/turnen.json (disciplines.trampolin).
|
|
* Struktur: Hero → Gruppen/Trainingszeiten → CTA.
|
|
*/
|
|
$slug = 'turnen/trampolin';
|
|
$d = json_load('turnen')['disciplines']['trampolin'];
|
|
|
|
$meta = [
|
|
'title' => 'Trampolinturnen in Kulmbach',
|
|
'description' => 'Sprünge, Schrauben und Salti auf dem Großtrampolin: Trampolinturnen beim TSV 08 Kulmbach in der Carl-von-Linde-Realschule. Zeiten und Kontakt im Überblick.',
|
|
'og_image' => 'img/pages/vereinsgelaende-1600.jpg',
|
|
'schema' => page_schema([
|
|
['name' => 'Startseite', 'slug' => ''],
|
|
['name' => 'Turnen', 'slug' => 'turnen'],
|
|
['name' => 'Trampolinturnen', 'slug' => $slug],
|
|
]),
|
|
];
|
|
|
|
component('hero', ['hero' => $d['hero']]);
|
|
component('group-schedule', [
|
|
'location' => $d['location'] ?? [],
|
|
'lead' => $d['lead'] ?? '',
|
|
'contactEmail' => $d['contact_email'] ?? '',
|
|
'contactPhone' => $d['contact_phone'] ?? '',
|
|
'notice' => $d['notice'] ?? '',
|
|
'noticeTitle' => $d['notice_title'] ?? '',
|
|
'noticeTone' => $d['notice_tone'] ?? 'info',
|
|
'noticeIcon' => $d['notice_icon'] ?? 'info-circle',
|
|
'groups' => $d['groups'] ?? [],
|
|
'groupsInDash' => true,
|
|
'footnote' => $d['footnote'] ?? '',
|
|
]);
|