<div class="layout_latest arc_<?= $this->archive->id ?> block<?= $this->class ?>" itemscope itemtype="http://schema.org/Article">
<?php if ($this->addImage): ?>
<?php if(!$this->hasText) { $this->arrData['noLink'] = true; } ?>
<?php $this->insert('image_newslist', $this->arrData); ?>
<?php endif; ?>
<div class="news_content">
<h2 itemprop="name"><?php if ($this->hasText): ?><?= $this->linkHeadline ?><?php else: ?><?= $this->headline ?><?php endif ?></h2>
<?php if($this->teaser): ?>
<div class="ce_text block" itemprop="description">
<?= $this->teaser ?>
</div>
<?php endif; ?>
<?php if ($this->hasText): ?>
<p class="more">
<?php if ($this->source=='external'): ?>
<a href="<?= $this->link ?>" target="_blank" title="Extern: <?= $this->newsHeadline ?>" class="<?= $this->source ?> red plus" itemprop="url">Externer Link</a>
<?php else: ?>
<a href="<?= $this->link ?>" title="Den Beitrag lesen: <?= $this->newsHeadline ?>" class="<?= $this->source ?> red plus" itemprop="url">Beitrag weiterlesen...</a>
<?php endif; ?>
</p>
<?php endif; ?>
<div class="meta_informations">
<?php if ($this->categories): ?>
<ul class="categories">
<?php foreach ($this->categories as $category): ?>
<li class="icon-globe <?= $category['class'] ?>">
<?php if ($category['image']): ?>
<figure class="image_container">
<?php $this->insert('picture_default', $category['image']->picture) ?>
</figure>
<?php endif; ?>
<?php if ($category['href']): ?>
<a href="<?= $category['href'] ?>" title="<?= $category['linkTitle'] ?>"><?= $category['name'] ?></a>
<?php else: ?>
<span><?= $category['name'] ?></span>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php if ($this->hasMetaFields): ?>
<p class="info icon-clock"><time datetime="<?= $this->parseDate("d.m.Y", $this->timestamp) ?>" itemprop="datePublished"><?= $this->parseDate("d.m.Y", $this->timestamp) ?></time> <?= $this->author ?> <?= $this->commentCount ?></p>
<?php endif; ?>
</div>
</div>
</div>