-
Datum anpassen von - bis
Morgen,
ich möchte das Datum der Events anpassen, klappt auch soweit, jedoch fehlt mir dann das "bis" Datum. Original schauts so aus:
07.05.2016 01:00 - 29.10.2016 23:59
Die Uhrzeit soll jedoch raus. Nun passe ich es an: <?php echo $this->parseDate("d.m.Y", $this->timestamp); ?>
Jetzt fehlt mir aber das 2. Datum
Jemand eine Idee?
Dani
-
Hast du mit
PHP-Code:
<?= $this->showTemplateVars() ?>
schon überprüft, welche Variablen du im Template zur Verfügung hast? Dort sollte es zB intStart und intEnd oder etwas in der Art geben.
-
Ich habe es in der event_upcoming.html5 so gelöst:
PHP-Code:
<div class="event layout_upcoming<?php echo $this->classUpcoming; ?>">
<span class="date"><?php echo $this->date; ?></span>
<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>
<?php if ($this->time): ?>
<span class="time">(<?php echo $this->time; ?>)</span>
<?php endif; ?>
</div>