visibleAreas as $areaRecord) { // wrap the area record into a task area object $taskArea = VBOTaskArea::getInstance((array) $areaRecord); // push active area ID $activeAreaIds[] = $taskArea->getID(); } // determine the current calendar type $allowedTypes = [ 'month', 'day', ]; $calendarType = $this->filters['calendar_type'] ?? $allowedTypes[0]; $calendarType = in_array($calendarType, $allowedTypes) ? $calendarType : $allowedTypes[0]; // make sure to set the proper calendar type filter $this->filters['calendar_type'] = $calendarType; ?>
[ 'filters' => $this->filters, // empty list for task area IDs to load just an empty calendar 'area_ids' => [], ], ]; echo JLayoutHelper::render('taskmanager.calendar.' . $calendarType, $layout_data); ?>