28 lines
831 B
PHP
28 lines
831 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Turnen → Erwachsenenturnen. Inhalt: data/turnen.json (disciplines.erwachsenenturnen).
|
||
|
|
* Struktur: Hero → Gruppen/Trainingszeiten → CTA.
|
||
|
|
*/
|
||
|
|
$slug = 'turnen/erwachsenenturnen';
|
||
|
|
$d = json_load('turnen')['disciplines']['erwachsenenturnen'];
|
||
|
|
|
||
|
|
$meta = [
|
||
|
|
'title' => 'Erwachsenenturnen in Kulmbach',
|
||
|
|
'description' => $d['hero']['text'],
|
||
|
|
'og_image' => 'img/hero/hero-1600.jpg',
|
||
|
|
'schema' => page_schema([
|
||
|
|
['name' => 'Startseite', 'slug' => ''],
|
||
|
|
['name' => 'Turnen', 'slug' => 'turnen'],
|
||
|
|
['name' => 'Erwachsenenturnen', 'slug' => $slug],
|
||
|
|
]),
|
||
|
|
];
|
||
|
|
|
||
|
|
component('hero', ['hero' => $d['hero']]);
|
||
|
|
component('group-schedule', [
|
||
|
|
'location' => $d['location'] ?? [],
|
||
|
|
'lead' => $d['lead'] ?? '',
|
||
|
|
'groups' => $d['groups'] ?? [],
|
||
|
|
]);
|