|
@@ -5,6 +5,7 @@
|
|
|
|
|
|
|
|
<f:comment><!-- Get the events page' uid if the page is found --></f:comment>
|
|
<f:comment><!-- Get the events page' uid if the page is found --></f:comment>
|
|
|
<v:variable.set value="{ot:eventsPage.getId()}" name="eventsPageUid"/>
|
|
<v:variable.set value="{ot:eventsPage.getId()}" name="eventsPageUid"/>
|
|
|
|
|
+<v:variable.set value="{ot:eventsPage.getId(children: 1)}" name="childrenEventsPageUid"/>
|
|
|
<v:variable.set value="{f:uri.image(src: 'EXT:ot_templating/Resources/Public/media/event-default-modern.jpg')}" name="defaultImage"/>
|
|
<v:variable.set value="{f:uri.image(src: 'EXT:ot_templating/Resources/Public/media/event-default-modern.jpg')}" name="defaultImage"/>
|
|
|
|
|
|
|
|
<f:comment><!-- Should we display the section even if there is no event to show?--></f:comment>
|
|
<f:comment><!-- Should we display the section even if there is no event to show?--></f:comment>
|
|
@@ -80,17 +81,36 @@
|
|
|
</div>
|
|
</div>
|
|
|
</f:for>
|
|
</f:for>
|
|
|
|
|
|
|
|
- <f:if condition="{eventsPageUid} > 0">
|
|
|
|
|
- <div class="card-container col-lg-3 col-md-6 col-sm-12 sm-mb-30">
|
|
|
|
|
- <div class="card border-0 theme-bg o-hidden h-100">
|
|
|
|
|
- <f:link.page pageUid="{eventsPageUid}" class="p-4 more-events">
|
|
|
|
|
- <h2 class="text-white"> <i class="fa fa-plus fa-3x"></i> </h2>
|
|
|
|
|
- <h3 class="text-white"> <f:translate key="see-all-events"/> </h3>
|
|
|
|
|
- </f:link.page>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <f:if condition="{fromParents}">
|
|
|
|
|
+ <f:then>
|
|
|
|
|
+ </f:then>
|
|
|
|
|
+ <f:else if="{fromChildren}">
|
|
|
|
|
+ <f:if condition="{childrenEventsPageUid} > 0"><f:then>
|
|
|
|
|
+ <div class="card-container col-lg-3 col-md-6 col-sm-12 sm-mb-30">
|
|
|
|
|
+ <div class="card border-0 theme-bg o-hidden h-100">
|
|
|
|
|
+ <f:link.page pageUid="{childrenEventsPageUid}" class="p-4 more-events">
|
|
|
|
|
+ <h2 class="text-white"> <i class="fa fa-plus fa-3x"></i> </h2>
|
|
|
|
|
+ <h3 class="text-white"> <f:translate key="see-all-events"/> </h3>
|
|
|
|
|
+ </f:link.page>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </f:then></f:if>
|
|
|
|
|
+ </f:else>
|
|
|
|
|
+ <f:else>
|
|
|
|
|
+ <f:if condition="{eventsPageUid} > 0"><f:then>
|
|
|
|
|
+ <div class="card-container col-lg-3 col-md-6 col-sm-12 sm-mb-30">
|
|
|
|
|
+ <div class="card border-0 theme-bg o-hidden h-100">
|
|
|
|
|
+ <f:link.page pageUid="{eventsPageUid}" class="p-4 more-events">
|
|
|
|
|
+ <h2 class="text-white"> <i class="fa fa-plus fa-3x"></i> </h2>
|
|
|
|
|
+ <h3 class="text-white"> <f:translate key="see-all-events"/> </h3>
|
|
|
|
|
+ </f:link.page>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </f:then></f:if>
|
|
|
|
|
+ </f:else>
|
|
|
</f:if>
|
|
</f:if>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
</f:if>
|
|
</f:if>
|
|
|
|
|
|
|
|
</ot:events.getNext>
|
|
</ot:events.getNext>
|