From 0e2695240693764ba5a41c975ddd5042c5003107 Mon Sep 17 00:00:00 2001 From: Felix Hahn Date: Fri, 16 Feb 2024 18:17:55 +0100 Subject: [PATCH] add CSS class 'canceled' --- models/fullcalendar/FullCalendar.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/models/fullcalendar/FullCalendar.php b/models/fullcalendar/FullCalendar.php index 27254407..964af9d5 100644 --- a/models/fullcalendar/FullCalendar.php +++ b/models/fullcalendar/FullCalendar.php @@ -81,6 +81,11 @@ public static function getFullCalendarArray(CalendarEventIF $entry) // $result['rrule'] = $entry->getRrule(); // $result['exdate'] = $entry->getExdate(); } + + // Add CSS class for canceled events + if($entry instanceof CalendarEventStatusIF && $entry->getEventStatus() === CalendarEventStatusIF::STATUS_CANCELLED) { + $result['className'] = 'canceled'; + } return $result; }