Skip to content

Instantly share code, notes, and snippets.

Created Feb 24, 2017
What would you like to do?
<?php if($nextEvent != null): ?>
<div class="black-panel">
<h3><?= $nextEvent->name; ?></h3>
<span><?= $nextEvent->date->i18nFormat('d MMMM y'); ?></span>
<div class="countdown">
<div class="countdown-timer">
<span class="info-text"><span class="text-icon">&#59249;</span><?= __("Countdown Till Start"); ?></span>
<h4 class="countdown-text" rel="<?= strtotime($nextEvent->date->format('Y-m-d H:i')); ?>"></h4>
<p><?= $nextEvent->description; ?></p>
<?= $this->Html->link(__("View Event Page"),
['controller' => 'Races', 'action' => 'details', $nextEvent->id],
['class' => 'panel-big-button-black']); ?>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment