version 0.8.0
This commit is contained in:
parent
f22007003a
commit
e5ca9ef194
95 changed files with 5601 additions and 4042 deletions
11
app/Controllers/Pages/AdminController.php
Normal file
11
app/Controllers/Pages/AdminController.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/** Admin-Seite: eigenständiges Dokument (noindex) -> ohne Layout. */
|
||||
final class AdminController extends Controller
|
||||
{
|
||||
public function index(): void
|
||||
{
|
||||
$this->view('admin', [], false);
|
||||
}
|
||||
}
|
||||
54
app/Controllers/Pages/ContentController.php
Normal file
54
app/Controllers/Pages/ContentController.php
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* SEO-/Content-Seiten. Jede Methode rendert eine Artikel-View im gemeinsamen
|
||||
* Layout. Neue Seite = View unter app/Views/pages/seo/ + Methode + Route.
|
||||
*/
|
||||
final class ContentController extends Controller
|
||||
{
|
||||
public function spielanleitung(): void
|
||||
{
|
||||
$this->view('seo/spielanleitung', [
|
||||
'title' => 'Spielanleitung: Black Sheep Bluff einfach erklärt',
|
||||
'description' => 'Die komplette Spielanleitung für Black Sheep Bluff – Lobby starten, Fragen verteilen, aufdecken, abstimmen. In 5 Minuten startklar.',
|
||||
'css' => ['content'],
|
||||
]);
|
||||
}
|
||||
|
||||
public function strategie(): void
|
||||
{
|
||||
$this->view('seo/strategie', [
|
||||
'title' => 'Bluff-Strategie: So entlarvst du das schwarze Schaf',
|
||||
'description' => 'Taktiken für Innocents und Imposter in Black Sheep Bluff – Fragen stellen, Antworten lesen, clever abstimmen und unauffällig bluffen.',
|
||||
'css' => ['content'],
|
||||
]);
|
||||
}
|
||||
|
||||
public function spielvarianten(): void
|
||||
{
|
||||
$this->view('seo/spielvarianten', [
|
||||
'title' => 'Spielvarianten & Hausregeln für Black Sheep Bluff',
|
||||
'description' => 'Mehr Abwechslung: Team-Modus, mehrere schwarze Schafe, Schnellrunden, Themen-Abende und weitere Hausregeln für Black Sheep Bluff.',
|
||||
'css' => ['content'],
|
||||
]);
|
||||
}
|
||||
|
||||
public function faq(): void
|
||||
{
|
||||
$this->view('seo/faq', [
|
||||
'title' => 'FAQ – Häufige Fragen zu Black Sheep Bluff',
|
||||
'description' => 'Antworten auf die häufigsten Fragen zu Black Sheep Bluff: Spieleranzahl, Kosten, Geräte, Account, Datenschutz und mehr.',
|
||||
'css' => ['content'],
|
||||
]);
|
||||
}
|
||||
|
||||
public function partyspiele(): void
|
||||
{
|
||||
$this->view('seo/partyspiele', [
|
||||
'title' => 'Die besten Bluff-Partyspiele für jede Gruppe',
|
||||
'description' => 'Bluff-Partyspiele im Überblick: Wann sie sich lohnen, worauf es ankommt und warum Black Sheep Bluff für 3–15+ Spieler perfekt ist.',
|
||||
'css' => ['content'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
15
app/Controllers/Pages/HomeController.php
Normal file
15
app/Controllers/Pages/HomeController.php
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
final class HomeController extends Controller
|
||||
{
|
||||
public function index(): void
|
||||
{
|
||||
$this->view('home', [
|
||||
'title' => 'Black Sheep Bluff – Wer ist das schwarze Schaf?',
|
||||
'description' => 'Black Sheep Bluff – das Bluff-Partyspiel. Imposters bekommen eine andere Frage. Findet das schwarze Schaf!',
|
||||
'css' => ['home'],
|
||||
'js' => ['home'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
32
app/Controllers/Pages/LegalController.php
Normal file
32
app/Controllers/Pages/LegalController.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
final class LegalController extends Controller
|
||||
{
|
||||
public function datenschutz(): void
|
||||
{
|
||||
$this->view('datenschutz', [
|
||||
'title' => 'Datenschutz – Black Sheep Bluff',
|
||||
'description' => 'Datenschutzerklärung von Black Sheep Bluff.',
|
||||
'css' => ['legal'],
|
||||
]);
|
||||
}
|
||||
|
||||
public function impressum(): void
|
||||
{
|
||||
$this->view('impressum', [
|
||||
'title' => 'Impressum – Black Sheep Bluff',
|
||||
'description' => 'Impressum von Black Sheep Bluff.',
|
||||
'css' => ['legal'],
|
||||
]);
|
||||
}
|
||||
|
||||
public function notFound(): void
|
||||
{
|
||||
$this->view('404', [
|
||||
'title' => 'Seite nicht gefunden – Black Sheep Bluff',
|
||||
'description' => '',
|
||||
'css' => ['legal'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
11
app/Controllers/Pages/LoginController.php
Normal file
11
app/Controllers/Pages/LoginController.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/** Login-Seite: eigenständiges Dokument (noindex) -> ohne Layout. */
|
||||
final class LoginController extends Controller
|
||||
{
|
||||
public function index(): void
|
||||
{
|
||||
$this->view('login', [], false);
|
||||
}
|
||||
}
|
||||
11
app/Controllers/Pages/PlayController.php
Normal file
11
app/Controllers/Pages/PlayController.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/** Spiel-Seite: eigenständiges Dokument (eigene Nav, noindex) -> ohne Layout. */
|
||||
final class PlayController extends Controller
|
||||
{
|
||||
public function index(): void
|
||||
{
|
||||
$this->view('play', [], false);
|
||||
}
|
||||
}
|
||||
11
app/Controllers/Pages/ProfileController.php
Normal file
11
app/Controllers/Pages/ProfileController.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/** Profil-Seite: eigenständiges Dokument (noindex) -> ohne Layout. */
|
||||
final class ProfileController extends Controller
|
||||
{
|
||||
public function index(): void
|
||||
{
|
||||
$this->view('profile', [], false);
|
||||
}
|
||||
}
|
||||
14
app/Controllers/Pages/RegelnController.php
Normal file
14
app/Controllers/Pages/RegelnController.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
final class RegelnController extends Controller
|
||||
{
|
||||
public function index(): void
|
||||
{
|
||||
$this->view('regeln', [
|
||||
'title' => 'Spielregeln – Black Sheep Bluff',
|
||||
'description' => 'Spielregeln von Black Sheep Bluff – so findet ihr das schwarze Schaf.',
|
||||
'css' => ['regeln'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
26
app/Controllers/Pages/SitemapController.php
Normal file
26
app/Controllers/Pages/SitemapController.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/** Dynamische sitemap.xml (Domain wird automatisch erkannt). */
|
||||
final class SitemapController extends Controller
|
||||
{
|
||||
public function xml(): void
|
||||
{
|
||||
header('Content-Type: application/xml; charset=utf-8');
|
||||
$scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http';
|
||||
$base = $scheme . '://' . ($_SERVER['HTTP_HOST'] ?? 'localhost');
|
||||
|
||||
// Nur indexierbare Inhaltsseiten (App-Seiten sind noindex)
|
||||
$paths = [
|
||||
'/', '/regeln', '/spielanleitung', '/strategie', '/spielvarianten',
|
||||
'/faq', '/partyspiele', '/datenschutz', '/impressum',
|
||||
];
|
||||
|
||||
echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
|
||||
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . "\n";
|
||||
foreach ($paths as $p) {
|
||||
echo ' <url><loc>' . htmlspecialchars($base . $p, ENT_QUOTES) . '</loc></url>' . "\n";
|
||||
}
|
||||
echo '</urlset>' . "\n";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue