$themen = [];
if ($termin instanceof CourseDate) {
$themen = $termin->topics->toArray('title description');
}
$description = '';
if ($termin instanceof CourseExDate) {
$description = $termin->content;
} elseif ($termin instanceof CourseDate && isset($termin->cycle)) {
$description = $termin->cycle->description;
} elseif (empty($themen)) {
$description = $termin->getDescription();
}
?>
if ($description || count($themen) > 0) : ?>
= formatReady($description) ?>
if (count($themen)) : ?>
foreach ($themen as $thema) : ?>
= Icon::create('topic', Icon::ROLE_INFO)->asImg(['class' => 'text-bottom']) ?>
= htmlReady($thema['title']) ?>
= formatReady($thema['description']) ?>
endforeach ?>
endif ?>
else : ?>
= _('Keine Beschreibung vorhanden') ?>
endif ?>
foreach ($termin->getAdditionalDescriptions() as $type => $info) : ?>
if (trim($info)) : ?>
-
if (!is_numeric($type)): ?>
= htmlReady($type) ?>:
endif; ?>
= htmlReady(trim($info)) ?>
endif ?>
endforeach ?>
if (!$course_range && in_array($termin->getObjectClass(), [CalendarCourseDate::class, CalendarCourseExDate::class])) : ?>
endif ?>