diff --git a/templates/calendar/entries/icons.php b/templates/calendar/entries/icons.php index 9829d41a387385e254980f1abc792721778668c8..1edb480c546c7935329a1006781befc690c1e1be 100644 --- a/templates/calendar/entries/icons.php +++ b/templates/calendar/entries/icons.php @@ -1,6 +1,12 @@ +<?php +/** + * @var string $element_id + * @var array $entry + */ +?> <div id="schedule_icons_<?= $element_id ?>" class="schedule_icons"> <? if (!empty($entry['icons'])) foreach ($entry['icons'] as $icon) : ?> - <? if($icon['url']) : ?> + <? if (!empty($icon['url'])) : ?> <a href="<?= $icon['url'] ?>" <?= $icon['onClick'] ? 'onClick="STUDIP.Calendar.clickEngine('. $icon['onClick'].', this, event); return false;"' : '' ?>> <?= Assets::img($icon['image'], ['title' => $icon['title'], 'alt' => $icon['title']]) ?> </a>