Hi,
ich denke, es wäre am einfachsten z.B. im Template event_upcoming.html5 auf die Klasse "first" zu reagieren.
PHP-Code:
$this->classUpcoming
Wenn die Klasse "first" enthält, ist es das erste Event. Damit kann man doch in dem Template gut arbeiten.
Müsste ca. so aussehen...
PHP-Code:
<?php if (strpos($this->classUpcoming,'first') !== false): ?>
// hier ist das erste Events...
<div class="event layout_upcoming<?= $this->classUpcoming ?>">
<span class="date"><?= $this->date ?></span>
<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 ?>><?= $this->link ?></a>
<?php if ($this->time): ?>
<span class="time">(<?= $this->time ?>)</span>
<?php endif; ?>
</div>
<?php else: ?>
// ... hier kommen die anderen Events hin...
<?php endif; ?>
Gruß
Kester
Lesezeichen