Außer der Schleife habe ich nichts verändert, deswegen poste ich der Übersichtlichkeit wegen nur die.
Dies funktioniert NICHT (in cal_default):
PHP-Code:
<?php foreach ($day['events'] as $event): ?>
<div class="event cal_<?= $event['parent'] ?><?= $event['class'] ?>" itemscope itemtype="http://schema.org/Event">
<?php if ($this->hasDetails): ?><a href="<?= $event['href'] ?>" title="<?= $event['title'] ?> (<?php if ($event['day']) echo $event['day'] . ', '; ?><?= $event['date'] ?><?php if ($event['time']) echo ', ' . $event['time']; ?>)"<?= $event['target'] ?> itemprop="url"><span itemprop="name"><?php endif; ?><?= $event['link'] ?></span><?php if ($this->hasDetails) echo '</a>'; ?>
</div>
<?php endforeach; ?>
Aus Verlegenheit (siehe auch 19.5.) behelfe ich mir (in cal_default) mit
PHP-Code:
<?php foreach ($day['events'] as $event): ?>
<div class="event cal_<?= $event['parent'] ?><?= $event['class'] ?>" itemscope itemtype="http://schema.org/Event">
<?= $event['link'] ?>
</div>
<?php endforeach; ?>
Im Template event_list klappt das mit der Bedingung:
PHP-Code:
<div class="event layout_list<?= $this->classList ?>" style="margin-left: 10px;">
<p class="time"><strong><?= $this->date ?><?php if ($this->time): ?>, <?= $this->time ?><?php endif; ?>: </strong>
<?php if ($this->hasDetails): ?><a href="<?= $this->href ?>" title="<?= $this->title ?> (<?php if ($this->day) echo $this->day . ', '; ?><?= $this->date ?><?php if ($this->time) echo ', ' . $this->time; ?>)"<?= $this->target ?>><?php endif; ?><?= $this->link ?><?php if ($this->hasDetails) echo '</a>'; ?></p>
<div class="ce_text block">
<?= $this->teaser ?>
</div>
</div>
Lesezeichen