function formatEvent($event) { if (strlen($event['description']) < 1) { // HACK There's probably a better way of doing this $event['description'] = '<em>No description.</em>'; } return '<h3>' . $event['summary'] . ": " . formatEventDate($event['start'], $event['end']) . "</h3>\n" . "<article>\n" . $event['description'] . "</article>\n"; }
<?php if ($close_li && $open_li) { $close_li = false; $open_li = false; ?> </li> <?php } ?> <li> <?php $open_li = true; ?> <div class="eventdate"> <?php echo formatEventDate($etime, 'week'); ?> </div> <?php } ?> <div> <div class="eventrecords"> <div class="record yui-gd"> <div class="yui-u first"> <div> <?php echo link_to($etime->fullTitle(), '@show_event?slug=' . $etime->getEvent()->getSlug()); ?> </div> <div class="time">