Hallo,
ich möchte die Eventliste verändern, mit folgendem Ergebnis:
Beginn: 10.03.2013 (Sonntag) um 13:30 Uhr
Ort: Zementwerkshalle
Beschreibung: Auf geht's zum Singen und Musizieren
Ich hab dazu die event-teaser folgendermaßen abgeändert.
Code:
<?php if ($this->header): ?>
<div class="terminestart g100 <?php echo $this->classHeader; ?>">
<?php if ($this->addImage): ?>
<div class="image_container g35<?php echo $this->floatClass; ?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin . $this->float); ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>">
<?php endif; ?>
<img src="<?php echo $this->src; ?>" alt="<?php echo $this->alt; ?>" />
<?php if ($this->href): ?>
</a>
<?php endif; ?>
</div>
<?php else: ?>
<div class="image_container g35<?php echo $this->floatClass; ?>"<?php if ($this->margin || $this->float): ?> style="<?php echo trim($this->margin . $this->float); ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?php echo $this->href; ?>"<?php echo $this->attributes; ?> title="<?php echo $this->alt; ?>">
<?php endif; ?>
<img alt="Platzhalter" src="/tl_files/gfx/event-holder.jpg" width="250" height="180" />
<?php if ($this->href): ?>
</a>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="detail g55">
<div class="header<?php echo $this->classHeader; ?>">
<?php if ($this->details): ?>
<h2 class=""><a href="<?php echo $this->href; ?>" title="<?php echo $this->title; ?> (<?php if ($this->day): echo $this->day; ?>, <?php endif; echo $this->date; if ($this->time): ?>, <?php echo $this->time; endif; ?>)"<?php echo $this->target; ?>><?php echo $this->link; ?></a></h2>
<?php else: ?>
<h2><?php echo $this->title; ?></h2>
<?php endif; ?>
<span class="start g25"><strong>Beginn:</strong></span><span class="startdate g75"><?php echo $this->parseDate("d.m.Y", $this->startDate); ?> (<?php echo $this->parseDate("l", $this->startDate); ?>) um <?php echo $this->parseDate("H:i", $this->startTime); ?> Uhr</span>
<span class="ende g25"><strong>Ende:</strong></span><span class="enddate g75"><?php echo $this->parseDate("d.m.Y", $this->endDate); ?> (<?php echo $this->parseDate("l", $this->endDate); ?>) um <?php echo $this->parseDate("H:i", $this->endTime); ?> Uhr</span>
<span class="ort g25"><strong>Ort:</strong></span><span class="location g75"><?php echo $this->cep_location; ?></span>
</div>
<?php endif; ?>
<div class="event layout_teaser<?php echo $this->classList; ?>">
<div class="teaser">
<span class="g25"><strong>Beschreibung:</strong></span><span class="g75"><?php echo $this->teaser; ?> </span>
</div>
</div>
</div>
</div>
Jetzt wird mir allerdings bei einem eintägigen Event mit einer Startzeit auch immer das Ende mit dem gleiche Datum und der gleichen Endzeit angezeigt was ja auch logisch ist.
Beginn: 10.03.2013 (Sonntag) um 13:30 Uhr
Ende: 10.03.2013 (Sonntag) um 13:30 Uhr
Ort: Zementwerkshalle
Beschreibung: Auf geht's zum Singen und Musizieren
Wie kann ich jetzt abfragen ob es sich um ein eintägiges Event handelt und mit if und else dann das Ende nicht anzeigen oder bei einem mehrtägigen Event anzeigen lassen.
Kann mir da von Euch jemand helfen?
Lesezeichen