aboutsummaryrefslogtreecommitdiff
path: root/app/views/calendar/group/_tooltip_year.php
blob: edd81cad0a5efec791e8153b1cdd905dd5fa2ca8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<? $i = 0 ?>
<? $html = '' ?>
<? $list_day = date('Ymd', $aday) ?>
<? foreach ($calendars as $calendar) : ?>
    <? if ($count_lists[$i][$list_day]) : ?>
        <? 
        $html .= '<div>'
                . sprintf(ngettext('%s hat 1 Termin', '%s hat %s Termine',
                        count($count_lists[$i][$list_day])),
                        $calendar->range_object->getFullname('no_title'),
                        count($count_lists[$i][$list_day]))
                . '</div>';
        ?>
    <? endif; ?>
    <? $i++ ?>
<? endforeach; ?>
<? if ($html) : ?>
<div class="calendar-tooltip tooltip-content">
    <?= $html ?>
</div>
<? endif; ?>