
<div class="layout_full block<?= $this->class ?>">

	<div class="spwn-head">
		<p class="category"><?php foreach ($this->categories as $category): ?><?php echo $category['title']; ?><?php endforeach; ?></p>

		<?php if ($this->hasMetaFields): ?>
			<p class="info"><time datetime="<?= $this->datetime ?>"><?= date("d. m. Y",$this->tstamp) ?></time> <?= $this->author ?> <?= $this->commentCount ?></p>
		<?php endif; ?>
	</div>

	<?php if ($this->addImage): ?>
		<figure class="image_container spwn-js-img">
			<img src="<?php echo $this->src; ?>"<?php echo $this->imgSize; ?> alt="<?php echo $this->alt; ?>" />
		</figure>
	<?php endif; ?>

	<h1><?= $this->newsHeadline ?></h1>

	<?php if ($this->hasSubHeadline): ?>
		<h2 class="spwn-subhl"><?= $this->subHeadline ?></h2>
	<?php endif; ?>

	<?php if ($this->hasText): ?>
		<?= $this->text ?>
	<?php else: ?>
		<div class="ce_text block">
			<?php if (!$this->addBefore): ?>
				<?= $this->teaser ?>
			<?php endif; ?>

			<?php if ($this->addImage): ?>
				<?php $this->insert('image', $this->arrData); ?>
			<?php endif; ?>

			<?php if ($this->addBefore): ?>
				<?= $this->teaser ?>
			<?php endif; ?>
		</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>

<?php

$schemaOrg = $this->getSchemaOrgData();

if ($this->hasText) {
$schemaOrg['text'] = $this->rawHtmlToPlainText($this->text);
}

$this->addSchemaOrg($schemaOrg);
