Hi, habe das Template von calender extendet so angepasst, das der angeklickte Termin in einem Akkordion direkt unter dem Kalender erscheint.
Die Anpassung ist auch sehr nützlich, wenn man nicht immer zu jedem Artikel eine Seite mit Inhalt machen möchte/kann.
Angezeigt wird der Inhalt von event details.
Die geänderte Datei: calext_default.html5
Code:
<table cellspacing="0" cellpadding="0" class="calendar" summary="Calendar">
<thead>
<tr>
<th colspan="2" class="head previous"><a href="<?php echo $this->prevHref; ?>" title="<?php echo $this->prevTitle; ?>"><?php echo $this->prevLink; ?></a></th>
<th colspan="3" class="head current"><?php echo $this->current; ?></th>
<th colspan="2" class="head next"><a href="<?php echo $this->nextHref; ?>" title="<?php echo $this->nextTitle; ?>"><?php echo $this->nextLink; ?></a></th>
</tr>
<tr>
<?php foreach ($this->days as $i=>$day): ?>
<th class="label<?php if ($i == 0 || $i == 6) echo ' weekend'; ?>"><?php echo $day; ?></th>
<?php endforeach; ?>
</tr>
</thead>
<tbody>
<?php foreach ($this->weeks as $class=>$week): ?>
<tr class="<?php echo $class; ?>">
<?php foreach ($week as $day): ?>
<td class="<?php echo $day['class']; ?>">
<div class="header"><?php echo $day['label']; ?></div>
<?php foreach ($day['events'] as $event): ?>
<div style="<?php echo $event['bgstyle']; ?>" class="toggler event cal_<?php echo $event['parent']; ?><?php echo $event['class']; ?>">
<span class="toggler_first">
<?php echo $event['link']; ?>
</span>
</div><div></div>
<div class="event_body">
</div>
<?php endforeach; ?>
</td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<div>
<?php foreach ($this->weeks as $class=>$week): ?>
<?php foreach ($week as $day): ?>
<?php foreach ($day['events'] as $event): ?>
<div class="accordion">
<div>
<div class="fullevent">
<div class="kalender"><?php echo $event['calendar']; ?></div>
<div class="date time"><?php echo $event['date']; ?>, <?php echo $event['time']; ?> <?php if ($event['time']): ?>Uhr<?php endif; ?></div>
<div><?php echo $event['link']; ?></div>
<div><?php if ($event['teaser']): ?>
<?php echo $event['teaser']; ?>
<?php endif; ?></div>
<div><?php echo $event['details']; ?></div>
</div>
</div>
</div>
<?php endforeach; ?>
<?php endforeach; ?>
<?php endforeach; ?>
</div>
noch ein Bild zum besseren Verständniss
kalender.jpg
Lesezeichen