Skip to content
Snippets Groups Projects
Commit fd50b7a4 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

fixes #2613

Closes #2613

Merge request studip/studip!1763
parent 5f4e0d13
No related branches found
No related tags found
No related merge requests found
<?php
/**
* @var string $element_id
* @var array $entry
*/
?>
<div id="schedule_icons_<?= $element_id ?>" class="schedule_icons"> <div id="schedule_icons_<?= $element_id ?>" class="schedule_icons">
<? if (!empty($entry['icons'])) foreach ($entry['icons'] as $icon) : ?> <? 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;"' : '' ?>> <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']]) ?> <?= Assets::img($icon['image'], ['title' => $icon['title'], 'alt' => $icon['title']]) ?>
</a> </a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment