RVRNEXT-45 show recent events as well with upcoming events
This commit is contained in:
5 files changed
+25
-16
No files matched your search
+4
-4
@@ -16,9 +16,9 @@
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="marginBottom">Upcoming events</h3>
|
||||
<?php if (count($upcomingEvents) > 0): ?>
|
||||
<?php foreach ($upcomingEvents as $event): ?>
|
||||
<h3 class="marginBottom">Upcoming and recent events</h3>
|
||||
<?php if (count($upcomingAndRecentEvents) > 0): ?>
|
||||
<?php foreach ($upcomingAndRecentEvents as $event): ?>
|
||||
<p>
|
||||
<a href="<?= Container::$routeCollection->getRoute('community.event')->generateLink(['communitySlug' => $event->getCommunity()->getSlug(), 'eventSlug' => $event->getSlug()]) ?>"><?= $event->getTitle() ?></a>
|
||||
<span class="small">
|
||||
@@ -28,7 +28,7 @@
|
||||
</p>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<p>There is no upcoming event.</p>
|
||||
<p>There is no event to show.</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user