Okay, Danke.. ich finde einfach meine Fehler nicht, was in dem Template falsch ist das es immer das umschließende <a> Tag mit ausgibt.
PHP-Code:
<?php if ($this->header): ?>
<div class="header<?= $this->classHeader ?>">
<?php if ($this->firstDay): ?><span class="day"><?= $this->firstDay ?>, </span><?php endif; ?><span class="date"><?= $this->firstDate ?></span>
</div>
<?php endif; ?>
<div class="event layout_teaser<?= $this->classList ?>">
<a href="<?= $this->href ?>" title="<?= $this->title ?> (<?php if ($this->day): ?><?= $this->day ?>, <?php endif; ?><?= $this->date ?><?php if ($this->time): ?> <?= $this->time ?><?php endif; ?>)"<?= $this->target ?>>
<div class="event-item">
<div class="category">
<?php if ($this->calendar->title == "Esstheater"): ?><img src="files/themes/standard/img/svg_icon_event_esstheater.svg" alt="Villa Mocc Icon / Esstheater" title="Villa Mocc Icon / Esstheater" /><?php endif; ?>
<?php if ($this->calendar->title == "Tanzschule"): ?><img src="files/themes/standard/img/svg_icon_event_tanzschule.svg" alt="Villa Mocc Icon / Tanzschule" title="Villa Mocc Icon / Tanzschule" /><?php endif; ?>
<?php if ($this->calendar->title == "Veranstaltungen"): ?><img src="files/themes/standard/img/svg_icon_event_veranstaltungen.svg" alt="Villa Mocc Icon / Veranstaltungen" title="Villa Mocc Icon / Veranstaltungen" /><?php endif; ?>
<?php if ($this->calendar->title == "Tastings"): ?><img src="files/themes/standard/img/svg_icon_event_tasting.svg" alt="Villa Mocc Icon / Tastings" title="Villa Mocc Icon / Tastings" /><?php endif; ?>
<?php if ($this->calendar->title == "Party"): ?><img src="files/themes/standard/img/svg_icon_event_party.svg" alt="Villa Mocc Icon / Party" title="Villa Mocc Icon / Party" /><?php endif; ?>
</div>
<div class="time">
<time datetime="<?= $this->datetime ?>">
<span class="event-date"><span class="big"><?php echo $this->parseDate("d. ", $this->startDate); ?></span><?php echo $this->parseDate("F", $this->startDate); ?></span>
<span class="event-weekday"><?php echo $this->parseDate("D. ", $this->startDate); ?></span>
<span class="event-time"><?php echo $this->parseDate("H:i ", $this->startTime); ?> - <?php echo $this->parseDate("H:i ", $this->endTime); ?></span>
</time>
</div>
</div>
<div class="event-item">
<h3><?= $this->title ?></h3>
</div>
<div class="event-item event-preview-image">
<?php if ($this->addImage): ?>
<?php unset($this->arrData['href']); ?>
<?php $this->insert('image', $this->arrData); ?>
<?php endif; ?>
</div>
</a>
</div>
<pre>
<?php $this->dumpTemplateVars(); ?>
</pre>
<?php
// This template is used as an event list template by default, so we only add
// JSON-LD data in case this is an event without a reader
if (!$this->hasReader) {
$this->addSchemaOrg($this->getSchemaOrgData());
}
Was ist denn der Unterschied zwischen (siehe draunter), außer das es ein umschließendes <a> Tag gibt?
<?php $this->insert('picture_default', $this->picture); ?>
und
<?php $this->insert('image', $this->arrData); ?>
Lesezeichen