events
All checks were successful
Deploy / deploy (push) Successful in 52s

This commit is contained in:
2026-08-03 21:51:32 +02:00
parent 0197ad93d8
commit ded7f98255

View File

@@ -10,6 +10,7 @@ $radius = ($radius > 0) ? $radius : 5.0;
$lat = isset($_GET['lat']) && $_GET['lat'] !== '' ? (float)$_GET['lat'] : null;
$lng = isset($_GET['lng']) && $_GET['lng'] !== '' ? (float)$_GET['lng'] : null;
$results = [];
$isLoggedIn = isset($_SESSION['user_id']);
function geocode_loc(string $loc): array
{
@@ -48,6 +49,19 @@ if ($pdo && ($q !== '' || $loc !== '' || ($lat !== null && $lng !== null))) {
Finde lokale Vater-Kind-Events, Papa-Treffen, Familienaktionen und gemeinsame Freizeitangebote in deiner Naehe.
Mit der Event Suche kannst du nach Ort, PLZ, Titel oder Beschreibung passende Termine schnell filtern.
</p>
<div class="card" style="margin:16px 0 0; max-width:72ch;">
<p style="margin:0;">
Du planst selbst ein Treffen? Eigene Events kannst du im Mitgliederbereich anlegen und mit anderen Vaetern teilen.
</p>
<div class="flex gap-12" style="margin-top:12px; flex-wrap:wrap;">
<?php if ($isLoggedIn): ?>
<a class="btn" href="/dashboard?section=events">Event erstellen</a>
<?php else: ?>
<a class="btn" href="/login">Einloggen</a>
<a class="btn ghost" href="/register">Registrieren</a>
<?php endif; ?>
</div>
</div>
<form method="get" class="form-grid single" style="margin: 14px 0; gap:12px; align-items:end;" id="searchForm">
<div class="stack gap-6">
<label class="label" for="q">Suchbegriff (Titel, Ort, Beschreibung)</label>