Querschnitt-Verbesserungen ohne eigenes Feature: - Navigation: Untermenü-Trenner (separator) + Mitmachen-Link, rote Akzent-Leiste - Startseiten-Hero zentriert (align center, ohne Hero-CTAs); .hero--center-Styles - person-card/person-grid: Kontakt-Layout, 3-Spalten-Raster (Startseite) - jsonld: geo aus club.json; cta unterstützt #hash-Anker - verein: hartcodierten Maps-Link/Inline-CTA entfernt, .facility zentriert - tokens: Sepia-Farben für Timeline; base: globale p-max-width entfernt - historie: Timeline um 2024/2025 ergänzt - Icons link-45deg (Footer) und robot (meta) nachgereicht Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HGzc6GhWhmLJt1jC2q1SRZ
48 lines
1.7 KiB
PHP
48 lines
1.7 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* JSON-LD als ein @graph. Der SportsClub-Knoten (aus data/club.json) ist auf jeder
|
|
* Seite identisch (NAP-Konsistenz für SEO/GEO) und hat eine feste @id, auf die
|
|
* seitenspezifische Knoten verweisen.
|
|
* Props:
|
|
* $extra array — zusätzliche Graph-Knoten der Seite (z. B. SportsTeam, FAQPage,
|
|
* BreadcrumbList), gebaut via team_schema()/page_schema().
|
|
*/
|
|
$club = json_load('club');
|
|
$clubId = abs_url() . '#club';
|
|
|
|
$clubNode = [
|
|
'@type' => 'SportsClub',
|
|
'@id' => $clubId,
|
|
'name' => $club['name'],
|
|
'alternateName' => $club['legal_name'],
|
|
'foundingDate' => $club['founded'],
|
|
'description' => $club['description'],
|
|
'sport' => $club['departments'],
|
|
'email' => $club['email'],
|
|
'url' => abs_url(),
|
|
'logo' => rtrim((string) config('base_url'), '/') . '/assets/img/logo.svg',
|
|
'address' => [
|
|
'@type' => 'PostalAddress',
|
|
'streetAddress' => $club['address']['street'],
|
|
'postalCode' => $club['address']['zip'],
|
|
'addressLocality' => $club['address']['city'],
|
|
'addressCountry' => $club['address']['country'],
|
|
],
|
|
'sameAs' => array_values(array_filter($club['social'])),
|
|
'geo' => [
|
|
'@type' => 'GeoCoordinates',
|
|
'latitude' => $club['geo']['lat'],
|
|
'longitude' => $club['geo']['lng'],
|
|
],
|
|
];
|
|
|
|
$graph = [
|
|
'@context' => 'https://schema.org',
|
|
'@graph' => array_merge([$clubNode], $extra ?? []),
|
|
];
|
|
?>
|
|
<script type="application/ld+json"><?= json_encode($graph, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) ?></script>
|