
<div class="row no-gutters align-items-start justify-content-between layout_full block<?= $this->class ?>" itemscope itemtype="http://schema.org/Article">

  <?php if ($this->hasTeaser): ?>
    <div class="d-none d-lg-block col-md-6 col-24 mr-5 bg-light border rounded">
    <div class="p-3">
      <?= $this->teaser ?>
      <?php if ($this->addImage): ?>
        <?php $this->insert('image', $this->arrData); ?>
      <?php endif; ?>
      </div>
    </div>
  <?php endif; ?>

<div class="newsReader col row no-gutters">
  <h1 itemprop="name" class="col p-2 bg-gryM rounded-left display-4 text-white"><?= $this->newsHeadline ?></h1>
  <?php if ($this->hasMetaFields): ?>
  <p class="col-auto p-2 bg-gryL rounded-right text-lg-right small text-black"><time datetime="<?= $this->datetime ?>" itemprop="datePublished"><?= $this->date ?></time> <?= $this->author ?> <?= $this->commentCount ?></p>
  <?php endif; ?>

  <?php if ($this->hasText): ?>
    <div class="col-24 mt-3 pt-4 border-top">
    <?= $this->text ?>
    </div>
  <?php else: ?>
    <div class="ce_text block">
      <?php if (!$this->addBefore): ?>
        <div class="mb-3">
        <?= $this->teaser ?>
        </div>
      <?php endif; ?>

      <?php if ($this->addImage): ?>
        <div class="img-thumbnail border"><?php $this->insert('image', $this->arrData); ?></div>
      <?php endif; ?>

      <?php if ($this->addBefore): ?>
        <div class="mt-3">
        <?= $this->teaser ?>
        </div>
      <?php endif; ?>
    </div>
  <?php endif; ?>

  <?php if ($this->enclosure): ?>
    <ul class="enclosure list-group">
      <?php foreach ($this->enclosure as $enclosure): ?>
        <li class="download-element list-group-item 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>
