This commit is contained in:
andre committed 2026-06-12 21:20:23 +01:00
1 parent e68d357177
commit 3e3382df57
65 files changed
+1836 -42

No files matched your search

+7
View File
@@ -62,6 +62,13 @@ function site_modalidades(PDO $pdo): array {
} catch (Throwable $e) { return []; }
}
// Currently-visible time-limited events for the homepage banner. Thin wrapper
// over db_events_active() (functions_events.php) so the site code reads in the
// same site_*() style as everything else here.
function site_active_events(PDO $pdo): array {
return function_exists('db_events_active') ? db_events_active($pdo) : [];
}
// ─── Image-path resolver ──────────────────────────────────────────────────────
// DB stores either a bare filename ("1.jpg") or a full relative path
// ("uploads/team/foto/1.jpg"). This normalises both to a working URL.