mirror of
https://github.com/werkraum-media/thuecat.git
synced 2024-09-18 22:36:12 +02:00
Daniel Siepmann
8663d5a759
Some installations might need to add further images to records imported from ThüCAT. The records are now extended to support adding images by editors. The images are not touched during import. The images are also ignored during clean ups, the editor is in full control. This feature for now is only added to tourist attractions by default. The feature is implemented in a way that all objects extending the ``WerkraumMedia\ThueCat\Domain\Model\Frontend\Base`` class are usable by adding an ``editorial_images`` field to their table.
27 lines
1.1 KiB
HTML
27 lines
1.1 KiB
HTML
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
|
<div class="openingHours row">
|
|
<f:for each="{openingHours}" as="openingHour">
|
|
<f:if condition="{openingHours -> f:count()} == 1">
|
|
<f:then>
|
|
<div class="col-12">
|
|
</f:then>
|
|
<f:else>
|
|
<div class="col-md-6">
|
|
</f:else>
|
|
</f:if>
|
|
<h3>
|
|
{openingHour.from -> f:format.date(format: 'd.m.Y')} -
|
|
{openingHour.through -> f:format.date(format: 'd.m.Y')}
|
|
</h3>
|
|
<div>
|
|
<f:for each="{openingHour.daysOfWeekWithMondayFirstWeekDay}" as="weekday">
|
|
<div class="day-row">
|
|
<div class="day"><span>{f:translate(id: 'content.openingHour.weekday.{weekday}', default: weekday, extensionName: 'Thuecat')}</span></div>
|
|
<div class="time"><span>{openingHour.opens} - {openingHour.closes}</span></div>
|
|
</div>
|
|
</f:for>
|
|
</div>
|
|
</div>
|
|
</f:for>
|
|
</div>
|
|
</html>
|