<?php
$date = new \Date($this->firstDate);
$newtime = $date->tstamp ?: $this->startDate;
?>
<div class=" block event layout_list <?= $this->classList ?>" itemscope itemtype="http://schema.org/Event">
<div class=" block date">
<?php echo $this->parseDate("d", $newtime); ?><br><?php echo $this->parseDate("M", $newtime); ?>
</div>
<div class=" block event-content">
<div class=" block title">
<a href="<?= $this->href ?>" itemprop="url" title="<?= $this->title ?> (<?php if ($this->day) echo $this->day . ', '; ?><?= $this->date ?><?php if ($this->time) echo ', ' . $this->time; ?>)"<?= $this->target ?>><?= $this->link ?></a>
</div>
<div class=" block location">
<?php if ($this->location): ?>
<i class="fa fa-location-arrow"></i><?= $this->locationLabel ?>: <?= $this->location ?>
<?php endif; ?>
</div>
<?php if ($this->time): ?>
<div class=" block time" itemprop="startDate">
<i class="fa fa-clock-o"></i><?= $this->time ?>
</div>
<?php endif; ?>
</div>
</div>