blob: 0a7bf41b3aa64176d32f26465923a9c4fe47804e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
<?php
/**
* @var CourseDateList $collection
* @var bool $with_room_names
* @var bool $with_cancelled_dates
*
* @var SeminarCycleDate $regular_date
* @var CourseDate $single_date
* @var CourseExDate $cancelled_date
*/
?>
<? if (!$collection->isEmpty()) : ?>
<ul class="list-unstyled">
<? foreach ($collection->getRegularDates() as $regular_date) : ?>
<li>
<?= $regular_date->toString('long-start', true) ?>
</li>
<? endforeach ?>
<? foreach ($collection->getSingleDates() as $single_date) : ?>
<li>
<?= htmlReady($single_date->getFullName('long')) ?>
<? if ($with_room_names): ?>
<? $rooms = $single_date->getRooms() ?>
<? if ($rooms): ?>
<? foreach ($rooms as $room): ?>
<a href="<?= $room->getActionLink() ?>" data-dialog>
<?= htmlReady($room->name) ?>
</a>
<? endforeach ?>
<? else: ?>
<?= htmlReady($single_date->raum) ?>
<? endif ?>
<? endif ?>
</li>
<? endforeach ?>
<? if ($with_cancelled_dates) : ?>
<? foreach ($collection->getCancelledDates() as $cancelled_date) : ?>
<li>
<?= htmlReady($cancelled_date->getFullName()) ?>
</li>
<? endforeach ?>
<? endif ?>
</ul>
<? endif ?>
|