Skip to content

news_latest.html5

Im Template news_latest.html5 wird

  • das Image ersetzt
  • eine zusätzliche Klasse .teaser um die Inhalte zu wrappen eingefügt
  • die Headline <h2> durch <h3> ausgetauscht
news_latest.html5
<div class="layout_latest arc_<?= $this->archive->id ?> block<?= $this->class ?>">
<?php /* a11y */ if ($this->addImage): ?>
<?php $this->insert('image_newsteaser_ohne_link', $this->arrData); ?>
<?php endif; ?>
<div class="teaser">
<h3 class="headline"><?= $this->headline ?></h3>
<?php if ($this->subheadline): ?>
<p class="subheadline"><?= $this->subheadline ?></p>
<?php endif; ?>
<?php if ($this->teaser): ?>
<div class="content">
<?= $this->cspInlineStyles($this->teaser) ?>
</div>
<?php endif; ?>
<?php /* a11y */ if ($this->hasText): ?>
<p class="more">
<a href="<?= $this->link ?>">
Weiterlesen ...
<span class="visually-hidden">
<?= $this->newsHeadline ?>
</span>
</a>
</p>
<?php endif; ?>
</div>
</div>
<?php
// This template is used as a news list template by default, so we only add
// JSON-LD data in case this is a news article without a reader
if (!$this->hasReader) {
$this->addSchemaOrg($this->getSchemaOrgData());
}
<!-- einfache Datumsausgabe: -->
<?php $this->block('info'); ?>
<p class="info">
<time datetime="<?= $this->datetime ?>">
<?= Contao\Date::parse("d. F Y", $this->time); ?>
</time>
</p>
<?php $this->endblock(); ?>