So, das Update machte die Sache für mich auch nicht besser.
Ich habe mich nun mit dem Template (calext_yearview.html5) mal näher auseinander gesetzt und ein paar Dinge geändert.
PHP-Code:
<!-- TABLE Version -->
<div class="yearview">
<?php if ($this->use_navigation): ?>
<div class="yearview_navi">
<?php if ($this->linkCurrent): ?>
<div class="head current"><a href="<?php echo $this->currHref; ?>" title="<?php echo $this->currTitle; ?>"><?php echo $this->currLink; ?></a></div>
<?php endif; ?>
<div class="head previous"><a href="<?php echo $this->prevHref; ?>" title="<?php echo $this->prevTitle; ?>"><?php echo $this->prevLink; ?></a></div>
<div class="head current"><?php echo $this->current; ?></div>
<div class="head next"><a href="<?php echo $this->nextHref; ?>" title="<?php echo $this->nextTitle; ?>"><?php echo $this->nextLink; ?></a></div>
</div>
<?php endif; ?>
<table cellspacing="0" cellpadding="0" border="0" class="yearview_body full" summary="Yearview">
<tr class="yearview_days">
<?php foreach ($this->months as $i => $day): ?>
<td colspan="2" class="<?php echo $day['class']; ?>">
<div class="head"><?php echo $day['label']; ?></div>
</td>
<?php endforeach; ?>
</tr>
<?php foreach ($this->yeardays as $d => $days): ?>
<tr class="yearview_events">
<?php foreach ($days as $dd => $day): ?>
<td nowrap valign="top" class="<?php echo $day['class']; ?>"><?php echo $day['label']; ?></td>
<td class="<?php echo $day['class']; ?>">
<?php if ($day['events']): ?>
<?php foreach ($day['events'] as $e => $event): ?>
<?php if ($event): ?>
<div class="event<?php if ($event['class']): echo $event['class']; endif; ?>" style="<?php echo $event['bstyle']; ?><?php echo $event['fstyle']; ?>">
<div class="event_title">
<a href="<?php echo $event['href']; ?>" title="<?php echo $event['title']; ?> (<?php if ($event['day']): echo $event['day']; ?>, <?php endif; echo $event['date']; if ($event['time']): ?>, <?php echo $event['time']; endif; ?>)"<?php echo $event['target']; ?>><?php echo $event['link']; ?></a>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
<?php else: ?>
<div class="event_empty">[nbsp]</div>
<?php endif; ?>
</td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</table>
</div>
- Ein Tag ohne Event gibt nun ein leeres DIV aus
- Die Titel in der Jahresansicht sind verlinkt
- Man könnte dem div class="event<?php if ($event['class']): echo $event['class']; endif; ?>" noch eine eigene Klasse geben, in meinem Fall "bezeichnung" um die Tagesbezeichnung anzusprechen
Lesezeichen