Neue Seiten + Routen: fussball, fussball/{erste-mannschaft,zweite-mannschaft,
damen}, jugendfussball, verein, impressum, datenschutz. Dazu die Komponenten
team, team-cards/-roster/-photo/-bento, faq/faq-contact, key-facts, age-groups,
cta-band, training-location und der contact-slider.
Daten in teams/fussball/jugend/verein.json; club.json um Vorstand, Bankdaten,
Datenschutz-Kontakt erweitert. person-grid bekommt $names-Filter, partner-grid
einen Intro-Stil. Seiten setzen $meta['schema'] via team_/page_schema.
Styles für alle neuen Komponenten in components.css.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KDQZ6FuchNUh2bxSW9PeNv
20 lines
598 B
PHP
20 lines
598 B
PHP
<?php
|
||
|
||
declare(strict_types=1);
|
||
|
||
/**
|
||
* 2. Mannschaft (Herrenfußball). Inhalt: data/teams.json → zweite-mannschaft.
|
||
*/
|
||
$slug = 'fussball/zweite-mannschaft';
|
||
$team = json_load('teams')['zweite-mannschaft'];
|
||
|
||
$meta = [
|
||
'title' => '2. Mannschaft – Herrenfußball Kulmbach',
|
||
'description' => $team['hero']['text'],
|
||
'og_image' => $team['hero']['image']['base'] . '-1600.jpg',
|
||
'scripts' => (count($team['contact_names'] ?? []) > 1) ? ['contact-slider.js'] : [],
|
||
'schema' => team_schema($team, $slug),
|
||
];
|
||
|
||
component('team', ['team' => $team, 'slug' => $slug]);
|