program calendar - open two first months

This commit is contained in:
isUnknown 2024-09-24 11:42:01 +02:00
parent 09a7d48a31
commit ee2d1c66cd
3 changed files with 28 additions and 3 deletions

View file

@ -1,5 +1,24 @@
<?php
function getMonthNumber($month) {
$array = [
'janvier' => 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();