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; }