2023-04-16 03:31:40 +02:00
|
|
|
|
@extends(templates/layout_normal)
|
|
|
|
|
|
|
|
|
|
@section(main)
|
|
|
|
|
<div class="gridContainer">
|
|
|
|
|
<div>
|
2023-05-01 23:37:30 +02:00
|
|
|
|
<h3 class="marginBottom">
|
|
|
|
|
Communities
|
2023-05-02 00:02:38 +02:00
|
|
|
|
<span class="small">[<a href="<?= Container::$routeCollection->getRoute('community.new')->generateLink() ?>">new</a>]</span>
|
2023-05-01 23:37:30 +02:00
|
|
|
|
</h3>
|
2023-04-16 03:31:40 +02:00
|
|
|
|
<?php if (count($communities) > 0): ?>
|
|
|
|
|
<?php foreach ($communities as $community): ?>
|
2023-05-07 01:50:57 +02:00
|
|
|
|
<p><a href="<?= Container::$routeCollection->getRoute('community')->generateLink(['communitySlug' => $community->getSlug()]) ?>"><?= $community->getName() ?></a></p>
|
2023-04-16 03:31:40 +02:00
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
<?php else: ?>
|
|
|
|
|
<p>You have no community.</p>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
2023-07-08 13:52:24 +02:00
|
|
|
|
<h3 class="marginBottom">Upcoming and recent events</h3>
|
|
|
|
|
<?php if (count($upcomingAndRecentEvents) > 0): ?>
|
|
|
|
|
<?php foreach ($upcomingAndRecentEvents as $event): ?>
|
2023-05-28 04:05:53 +02:00
|
|
|
|
<p>
|
|
|
|
|
<a href="<?= Container::$routeCollection->getRoute('community.event')->generateLink(['communitySlug' => $event->getCommunity()->getSlug(), 'eventSlug' => $event->getSlug()]) ?>"><?= $event->getTitle() ?></a>
|
|
|
|
|
<span class="small">
|
|
|
|
|
(<a href="<?= Container::$routeCollection->getRoute('community')->generateLink(['communitySlug' => $event->getCommunity()->getSlug()]) ?>"><?= $event->getCommunity()->getName() ?></a>)
|
|
|
|
|
<?= $event->getStartDate()->format('Y-m-d') ?> – <?= $event->getEndDate()->format('Y-m-d') ?>
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
2023-04-16 03:31:40 +02:00
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
<?php else: ?>
|
2023-07-08 13:52:24 +02:00
|
|
|
|
<p>There is no event to show.</p>
|
2023-04-16 03:31:40 +02:00
|
|
|
|
<?php endif; ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endsection
|