Habs eingefügt. Das Template sieht nun so aus:
PHP-Code:
<div class="t4c_news_layout t4c_news_style_3 arc_<?= $this->archive->id ?> block<?= $this->class ?>">
<div class="t4c_news_date">
<?php if ($this->hasMetaFields): ?>
<?php $date = date_parse($this->date); ?>
<span class="day"><?php echo $date['day']; ?></span>
<span class="month"><?php echo $GLOBALS['TL_LANG']['MONTHS_SHORT'][$date['month']-1]; ?></span>
<span class="year"><?php echo $date['year']; ?></span>
<?php endif; ?>
</div>
<div class="t4c_news_content">
<?php if ($this->addImage): ?>
<figure class="image_container<?= $this->floatClass ?>"<?php if ($this->margin): ?> style="<?= $this->margin ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?= $this->href ?>"<?= $this->attributes ?> title="<?= $this->alt ?>">
<?php endif; ?>
<?php $this->insert('picture_default', $this->picture); ?>
<?php if ($this->href): ?>
</a>
<?php endif; ?>
<?php if ($this->caption): ?>
<figcaption class="caption"><?= $this->caption ?></figcaption>
<?php endif; ?>
</figure>
<?php endif; ?>
<h3><?= $this->linkHeadline ?></h3>
<div class="teaser">
<?= $this->teaser ?>
</div>
<div class="row">
<div class="col-md-6">
<?php if ($this->hasMetaFields): ?>
<p class="info"><?= $this->author ?><?php if ($this->commentCount && $this->author):?> | <?php endif; ?><?= $this->commentCount ?></p>
<?php endif; ?>
</div>
<div class="col-md-6 text-right">
<?php if($this->text && !$this->teaser): ?>
<!-- Text vorhanden, Teaser nicht vorhanden -->
<p class="more"><?= $this->more ?></p>
<?php elseif(!$this->text && $this->teaser): ?>
<!-- Text nicht vorhanden, Teaser vorhanden -->
<p class="more"><?= $this->more ?></p>
<?php elseif($this->text && $this->teaser): ?>
<!-- Text vorhanden, Teaser vorhanden -->
<p class="more"><?= $this->more ?></p>
<?php elseif(!$this->text && !$this->teaser): ?>
<!-- Text nicht vorhanden, Teaser nicht vorhanden -->
<p class="more"><?= $this->more ?></p>
<?php endif; ?>
</div>
</div>
</div>
</div>
Im Frontend hat sich aber leider nichts geändert obwohl ich den Cache von Contao und vom Browser gelöscht hab.
Lesezeichen