<?php if (!isset($link)) { $link = true; } echo $date->toString(); if ($date->getResourceId()) { echo ', ' . _("Ort:") . ' '; echo implode(', ', getFormattedRooms(array($date->getResourceId() => '1'), $link)); } elseif ($date->getFreeRoomText()) { echo ', ' . _("Ort:") . ' '; echo '(' . htmlReady($date->getFreeRoomText()) . ')'; }
if (is_array($dates['irregular'])): foreach ($dates['irregular'] as $date) : if (in_array($date['typ'], $presence_types) !== false) : $irregular[] = $date; $irregular_strings[] = $date['tostring']; if ($date['resource_id']) : $irregular_rooms[$date['resource_id']]++; elseif ($date['raum']) : $freetext_rooms['(' . htmlReady($date['raum']) . ')']++; endif; endif; endforeach; unset($irregular_rooms['']); $rooms = array_merge(getFormattedRooms($irregular_rooms, $link), array_keys($freetext_rooms)); if (is_array($irregular) && sizeof($irregular)) : $dates = shrink_dates($irregular); echo _("Termine am"); if (is_array($dates)) : if (count($dates) > 10) : echo implode(', ', array_slice($dates, 0, 10)); echo '<span class="more-dates-infos" style="display: none">'; echo ', '; echo implode(', ', array_slice($dates, 10)); echo '</span>'; echo '<span class="more-dates-digits"> ...</span>'; echo '<a class="more-dates" style="cursor: pointer; margin-left: 3px"
<?php # Lifter010: TODO unset($freetext['']); if (!isset($link)) { $link = false; } if ($assigned && sizeof($assigned) || sizeof($freetext)) { if ($assigned) { $rooms = $plain ? getPlainRooms($assigned) : getFormattedRooms($assigned, $link); } if ($freetext) { foreach ($freetext as $name => $count) { if ($name) { $rooms[] = '(' . ($plain ? $name : htmlReady($name)) . ')'; } } } $ort .= ', ' . _('Ort') . ': '; $ort .= implode(', ', array_slice($rooms, 0, 3)); } else { $ort = ' ' . _('k.A.'); } echo $ort;