Oftmals kann man ganz gut ein Div um jeden einzelnen Tag gebrauchen (z.B. Wochenansicht in Tabellenform usw)
Als Grundlage dient: event_teaser.html5:
Code:
<?php
if ($this->header){
if ($this->firstDay){
echo '<div class="eventblock '.$this->day.'">';
}
}
if ($this->header): ?>
<div class="header<?php echo $this->classHeader; ?>">
<?php if ($this->firstDay): ?><span class="day"><strong><?php echo $this->firstDay; ?></strong></span><?php endif; ?><span class="date"><?php echo $this->firstDate; ?></span>
</div>
<?php endif; ?>
<div class="event layout_teaser<?php echo $this->classList; ?>">
<?php if ($this->details): ?>
<h2><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; ?>
<?php if ($this->time || $this->span): ?>
<p class="time"><?php echo $this->time . $this->span; ?></p>
<?php endif; ?>
<div class="teaser">
<?php echo $this->teaser; ?>
</div>
<?php if ($this->details): ?>
<p class="more"><a href="<?php echo $this->href; ?>" title="<?php echo $this->readMore; ?>"<?php echo $this->target; ?>><?php echo $this->more; ?> <span class="invisible"><?php echo $this->link; ?></span></a></p>
<?php endif; ?>
</div>
<?php if($this->classList!=str_replace("last","",$this->classList)) echo "</div>"; ?>
Lesezeichen