mirror of
https://github.com/werkraum-media/events.git
synced 2024-12-28 05:06:09 +01:00
Daniel Siepmann
8201782b6f
Do not check for models, but actual file. They might be missing, e.g. cause not downloaded from production into dev environment. The new checks ensure the page will not break with an exception, but show default images.
69 lines
2.8 KiB
HTML
69 lines
2.8 KiB
HTML
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
|
<f:layout name="Default" />
|
|
<f:section name="content">
|
|
<div class="row">
|
|
<div class="col-6">
|
|
<f:if condition="{date.event.images.0}">
|
|
<f:then>
|
|
<f:image image="{date.event.images.0}" alt="" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
|
</f:then>
|
|
<f:else>
|
|
<img src="{settings.defaultImagePath}" alt="Dummy" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
|
</f:else>
|
|
</f:if>
|
|
</div>
|
|
<div class="col-6">
|
|
<h4>
|
|
<f:format.date format="%a">{date.start}</f:format.date>
|
|
<f:format.date format="d.m.">{date.start}</f:format.date>
|
|
<f:format.date format="H:i">{date.start}</f:format.date> Uhr
|
|
</h4>
|
|
<h2>{date.event.title}</h2>
|
|
<h3>{date.event.teaser}</h3>
|
|
<f:format.html>{date.event.details}</f:format.html>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col mt-3 mb-3">
|
|
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-4">
|
|
<p><b>Preis:</b><br>
|
|
<f:if condition="{date.event.priceInfo}">
|
|
<f:then>
|
|
<f:format.nl2br>{date.event.priceInfo}</f:format.nl2br>
|
|
</f:then>
|
|
<f:else>
|
|
Keine Information
|
|
</f:else>
|
|
</f:if>
|
|
</p>
|
|
|
|
<f:if condition="{date.event.web}">
|
|
<p><b>Weitere Informationen:</b><br>
|
|
<a href="{date.event.web}" target="_blank">Website</a>
|
|
</p>
|
|
</f:if>
|
|
</div>
|
|
<div class="col-4">
|
|
<p><b>Veranstaltungsort:</b><br>
|
|
{date.event.name}<br>
|
|
{date.event.street}<br>
|
|
{date.event.zip} {date.event.city}<br>
|
|
{date.event.phone}<br>
|
|
</p>
|
|
</div>
|
|
<div class="col-4">
|
|
<p><b>Veranstalter:</b><br>
|
|
{date.event.organizer.name}<br>
|
|
{date.event.organizer.street}<br>
|
|
{date.event.organizer.zip} {date.event.organizer.city}<br>
|
|
{date.event.organizer.phone}<br>
|
|
<a href="{date.event.organizer.web}" target="_blank">Website</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</f:section>
|
|
</html>
|