diff --git a/index.php b/index.php index 44c0ca3..1a1772b 100644 --- a/index.php +++ b/index.php @@ -1,9 +1,9 @@ [ - 'index' => __DIR__, - ], - ]))->render(); \ No newline at end of file +echo (new Kirby([ + 'roots' => [ + 'index' => __DIR__, + ], +]))->render(); \ No newline at end of file diff --git a/site/config/config.php b/site/config/config.php index e1fe667..00828c1 100644 --- a/site/config/config.php +++ b/site/config/config.php @@ -1,5 +1,5 @@ true, - ]; \ No newline at end of file +return [ + 'debug' => true, +]; \ No newline at end of file diff --git a/site/snippets/dwz.php b/site/snippets/dwz.php index a9981ef..9be1f99 100644 --- a/site/snippets/dwz.php +++ b/site/snippets/dwz.php @@ -1,54 +1,84 @@ $dwzA; - }); - } +function safe($val) +{ + return $val === null || $val === false || $val === '' || $val === 'N' + ? '-' : htmlspecialchars($val); +} + +// Nach DWZ absteigend sortieren +if ($players && is_array($players)) { + usort($players, function ($a, $b) { + $dwzA = isset($a['dwz']) && is_numeric($a['dwz']) ? (int)$a['dwz'] + : 0; + $dwzB = isset($b['dwz']) && is_numeric($b['dwz']) ? (int)$b['dwz'] + : 0; + + return $dwzB <=> $dwzA; + }); +} ?> +
- - - - - - - - - - - - - - - - - - - +
PlatzMitgl.TitelNameDWZELO
- -
+ + + + + + + + + + + + + + + + + + - - + + + + + + + - - - - - -
PlatzMitgl.TitelNameDWZELO
+ + - + -
+ Keine Daten verfügbar. +
Keine Daten verfügbar.
-
+ + + +
\ No newline at end of file diff --git a/site/snippets/footer.php b/site/snippets/footer.php index 977cce9..e68cf97 100644 --- a/site/snippets/footer.php +++ b/site/snippets/footer.php @@ -1,142 +1,125 @@ - + +
+ + + +
- - - - - - + + +
diff --git a/site/snippets/header.php b/site/snippets/header.php deleted file mode 100644 index 35b7a3c..0000000 --- a/site/snippets/header.php +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - <?= $site->title()->esc() ?> | <?= $page->title()->esc() ?> - - - - - - - - - diff --git a/site/snippets/layout.php b/site/snippets/layout.php new file mode 100644 index 0000000..0a8b2bb --- /dev/null +++ b/site/snippets/layout.php @@ -0,0 +1,45 @@ + + + + + + + <?= $site->title()->esc() ?> | <?= $page->title()->esc() ?> + + + + + + + +
+ +
+ +
+ + isHomePage()): ?> + + + + heroText()->isNotEmpty()): ?> + + + +
+
+ +
+
+
+ + + + + diff --git a/site/snippets/navbar.php b/site/snippets/navbar.php index 940411a..68b074f 100644 --- a/site/snippets/navbar.php +++ b/site/snippets/navbar.php @@ -1,7 +1,4 @@ -