From ee2d1c66cdc77d780bd6b53cfd1b1d39af03ab1c Mon Sep 17 00:00:00 2001 From: isUnknown Date: Tue, 24 Sep 2024 11:42:01 +0200 Subject: [PATCH] program calendar - open two first months --- site/plugins/helpers/index.php | 19 +++++++++++++++++++ site/snippets/collapsable-section.php | 5 ++++- site/templates/program.php | 7 +++++-- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/site/plugins/helpers/index.php b/site/plugins/helpers/index.php index 06df972..9139197 100644 --- a/site/plugins/helpers/index.php +++ b/site/plugins/helpers/index.php @@ -1,5 +1,24 @@ 1, + 'février' => 2, + 'mars' => 3, + 'avril' => 4, + 'mai' => 5, + 'juin' => 6, + 'juillet' => 7, + 'août' => 8, + 'septembre' => 9, + 'octobre' => 10, + 'novembre' => 11, + 'décembre' => 12, + ]; + + return $array[$month]; +} + function filterFutureEvents($events) { $futureEvents = new Pages(); diff --git a/site/snippets/collapsable-section.php b/site/snippets/collapsable-section.php index 1642d21..48ae630 100644 --- a/site/snippets/collapsable-section.php +++ b/site/snippets/collapsable-section.php @@ -1,5 +1,8 @@ +
$sessions): ?> + 0): ?> - $month, 'padding' => false], slots: true) ?> + $month, 'padding' => false, 'open' => $open], slots: true) ?>