blob: 8fdcd6903ca8da36d8d6126811aa193bc0c174e2 (
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
|
<?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') ?></li>
<? endforeach ?>
<? foreach ($collection->getSingleDates() as $single_date) : ?>
<li><?= $single_date->getFullName($with_room_names ? 'long-include-room' : 'long') ?></li>
<? endforeach ?>
<? if ($with_cancelled_dates) : ?>
<? foreach ($collection->getCancelledDates() as $cancelled_date) : ?>
<li><?= $cancelled_date->getFullName() ?></li>
<? endforeach ?>
<? endif ?>
</ul>
<? endif ?>
|