Skip to content

Instantly share code, notes, and snippets.

@lira92
Created Feb 24, 2017
Embed
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>
</div>
<p><?= $nextEvent->description; ?></p>
<?= $this->Html->link(__("View Event Page"),
['controller' => 'Races', 'action' => 'details', $nextEvent->id],
['class' => 'panel-big-button-black']); ?>
</div>
</div>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment