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
@@ -12,16 +12,16 @@
|
||||
|
||||
<div class="gridContainer marginTop">
|
||||
<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' => $community->getSlug(), 'eventSlug' => $event->getSlug()]) ?>"><?= $event->getTitle() ?></a>
|
||||
<span class="small"><?= $event->getStartDate()->format('Y-m-d') ?> – <?= $event->getEndDate()->format('Y-m-d') ?></span>
|
||||
</p>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<p>There is no upcoming event.</p>
|
||||
<p>There is no event to show.</p>
|
||||
<?php endif; ?>
|
||||
<p class="marginTop"><a href="<?= Container::$routeCollection->getRoute('community.events')->generateLink(['communitySlug' => $community->getSlug()]) ?>">All events</a> | <a href="<?= Container::$routeCollection->getRoute('community.events.new')->generateLink(['communitySlug' => $community->getSlug()]) ?>">New event</a></p>
|
||||
</div>
|
||||
|
||||
+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