<?php
use Rhyme\WMassArtsHub\Helper\GeneralHelper;
$arrImage = $this->getReaderMainImage();
?>
<div class="event layout_full block<?= $this->class ?>" itemscope itemtype="http://schema.org/Event">
<div class="mod_article anglesBottom red1 rhyme_article_554 angles block" id="article-554">
<div class="angles top">
<div class="leftAngle">
<svg id="Layer_1" style="enable-background:new 0 0 75 87.4;" height="100%" width="100%" viewBox="0 0 75 87.4" preserveAspectRatio="none">
<polygon height="100%" width="100%" class="st0" points="0,87.4 75,0 75,87.4 ">
</polygon></svg>
</div>
<div class="rightAngle">
<svg id="Layer_2" style="enable-background:new 0 0 75 87.4;" height="100%" width="100%" viewBox="0 0 75 87.4" preserveAspectRatio="none">
<polygon height="100%" width="100%" class="st0" points="75,87.4 0,0 0,87.4 ">
</polygon></svg>
</div>
</div>
<div class="inner">
<div class="ce_pageheader noimage block">
<div class="textContent">
<div class="inner">
<h1 itemprop="name"><?= $this->title ?></h1>
</div>
</div>
<div class="angles_placeholder"></div>
</div>
</div>
<div class="angles bottom">
<div class="leftAngle">
<svg id="Layer_1" style="enable-background:new 0 0 75 87.4;" height="100%" width="100%" viewBox="0 0 75 87.4" preserveAspectRatio="none">
<polygon height="100%" width="100%" class="st0" points="0,87.4 75,0 75,87.4 ">
</polygon></svg>
</div>
<div class="rightAngle">
<svg id="Layer_2" style="enable-background:new 0 0 75 87.4;" height="100%" width="100%" viewBox="0 0 75 87.4" preserveAspectRatio="none">
<polygon height="100%" width="100%" class="st0" points="75,87.4 0,0 0,87.4 ">
</polygon></svg>
</div>
</div>
</div>
<div class="mainContent">
<div class="dateTimeLocation">
<div class="dateTime">
<h2>Date/Time</h2>
<?php if ($this->recurring): ?>
<p class="info recurring"><?= $this->recurring ?></p>
<?php else: ?>
<p class="info"><time datetime="<?= $this->datetime ?>" itemprop="startDate"><?= $this->date ?><?php if ($this->time): ?> <span class="time"><?= $this->time ?></span><?php endif; ?></time></p>
<?php endif; ?>
</div>
<?php if ($this->location): ?>
<div class="location">
<h2>Location</h2>
<p itemprop="location" itemscope itemtype="http://schema.org/Place">
<span itemprop="name"><?= $this->location ?></span>
<?php if ($this->address): ?>
<span class="address" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">(<?= $this->address ?>)</span>
<?php endif; ?>
</p>
</div>
<?php endif; ?>
</div>
<div class="details">
<div class="inner">
<?php if ($this->details): ?>
<?= $this->details ?>
<?php else: ?>
<?php if ($this->addImage && !empty($arrImage)): ?>
<figure class="image_container main_image<?= $arrImage['additionalClasses'] ?>">
<a href="<?= $arrImage['originalSrc'] ?>" class="photoswipe"<?= GeneralHelper::getPhotoswipeDataForImage($arrImage, 'lightbox-profile' . $this->id) ?>>
<?php $this->insert('picture_default', $arrImage['picture']); ?>
</a>
</figure>
<?php endif; ?>
<div class="ce_text block">
<p><?= $this->teaser ?></p>
</div>
<?php endif; ?>
<?php if ($this->enclosure): ?>
<ul class="enclosure">
<?php foreach ($this->enclosure as $enclosure): ?>
<li class="download-element ext-<?= $enclosure['extension'] ?>">
<a href="<?= $enclosure['href'] ?>" title="<?= $enclosure['title'] ?>"><?= $enclosure['link'] ?> <span class="size">(<?= $enclosure['filesize'] ?>)</span></a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</div>
</div>
</div>
</div>