Commit 016612ec authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Adds the latest template for events on start page

parent c8755072
Pipeline #1678 passed with stages
in 3 minutes and 11 seconds
...@@ -16,3 +16,5 @@ plugin.tx_certifications.persistence.storagePid = 212 ...@@ -16,3 +16,5 @@ plugin.tx_certifications.persistence.storagePid = 212
plugin.tx_t3omembership.persistence.storagePid = 227 plugin.tx_t3omembership.persistence.storagePid = 227
plugin.tx_typo3roadmap.persistence.storagePid = 228 plugin.tx_typo3roadmap.persistence.storagePid = 228
# Events
plugin.tx_sfeventmgt.settings.detailPid = 230
...@@ -10,4 +10,6 @@ plugin.tx_sfeventmgt { ...@@ -10,4 +10,6 @@ plugin.tx_sfeventmgt {
100 = EXT:t3org_layout/Resources/Private/Extensions/SfEventMgt/Layouts 100 = EXT:t3org_layout/Resources/Private/Extensions/SfEventMgt/Layouts
} }
} }
settings.detailPid = {$plugin.tx_sfeventmgt.settings.detailPid}
} }
...@@ -4,19 +4,29 @@ ...@@ -4,19 +4,29 @@
<f:section name="main"> <f:section name="main">
<f:if condition="{settings.templateLayout} == 1"> <f:if condition="{settings.templateLayout} == 1">
<f:then> <f:then>
<div class="latestEvents"> <ul class="list-unstyled event-list listing__group">
<f:for each="{events}" as="event"> <f:for each="{events}" as="event">
<div class="calendar-event"> <li class="m-3 m-md-4 mx-lg-5 mt-lg-5">
<span class="calendar-day">{event.startdate -> f:format.date(format:'d')}</span> <f:link.action action="detail" arguments="{event : event}" pageUid="{settings.detailPid}" class="media listing__group-item p-sm-2 card-date">
<span class="calendar-month">{event.startdate -> f:format.date(format:'M')}</span> <div class="d-flex mr-sm-4">
<span class="calendar-month">{event.startdate -> f:format.date(format:'Y')}</span> <time class="listing__group-item_time" datetime="{event.startdate -> f:format.date(format:'Y-m-d H:i')}">
</div> <span class="listing__group-item_time-day mt-sm-2">{event.startdate -> f:format.date(format:'d')}</span>
<div class="event-text"> <span class="listing__group-item_time-month">{event.startdate -> f:format.date(format:'M')}</span>
<h3 class="event-title">{event.title}</h3> <span class="listing__group-item_time-year">{event.startdate -> f:format.date(format:'Y')}</span>
<p>{event.location.title}<br>{event.location.zip} {event.location.city}<br>{event.location.country}</p> </time>
</div> </div>
<div class="media-body listing__group-item_body">
<h5 class="mb-0 mt-sm-1 mb-sm-3">
<strong>{event.title}</strong>
</h5>
<p class="listing__group-item_body-text">
{event.location.title}<br>{event.location.zip} {event.location.city}<br>{event.location.country}<i class="fa fa-chevron-right ml-2" aria-hidden="true"></i>
</p>
</div>
</f:link.action>
</li>
</f:for> </f:for>
</div> </ul>
</f:then> </f:then>
<f:else> <f:else>
<div class="container"> <div class="container">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment