Hallo Contao Community,
ich nutze den Contao-Calender mit dem Template cal_default.html5. Allerdings will ich bei diesem Kalender nicht den Name des Events anzeigen lassen, sondern nur die Zahl. (Jedoch müsste diese aber dann verlinkt werden).
Ich versuche seit gut 1 Stunde mit php zu experimentieren, dass der Name ausgeblendet wird und dafür die Tageszahl verlinkt ist.
http://www.jugendkapelle-rohrdorf.de...l?month=201205
Könnte mir hierbei jemand weiterhelfen?
PHP-Code:
<table class="calendar">
<thead>
<tr>
<th class="head previous"><a href="<?php echo $this->prevHref; ?>" rel="nofollow" title="<?php echo $this->prevTitle; ?>"><?php echo $this->prevLabel; ?></a></th>
<th colspan="5" class="head current"><?php echo $this->current; ?></th>
<th class="head next"><a href="<?php echo $this->nextHref; ?>" rel="nofollow" title="<?php echo $this->nextTitle; ?>"><?php echo $this->nextLabel; ?></a></th>
</tr>
<tr>
<?php foreach ($this->days as $i=>$day): ?>
<th class="label<?php if ($i == 0 || $i == 6) echo ' weekend'; ?>"><?php echo utf8_substr($day, 0, $this->substr); ?><span class="invisible"><?php echo utf8_substr($day, $this->substr); ?></span></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 class="event cal_<?php echo $event['parent']; ?><?php echo $event['class']; ?>"><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>
<?php endforeach; ?>
</td>
<?php endforeach; ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
Lesezeichen