$e->guid, //'title' => ''.$e->title.'', 'title' => $e->title, 'url' => $e->getURL(), 'start_date' => $e->start_date, 'end_date' => $e->real_end_time, ); if ($times_supported) { $event_item['allDay'] = FALSE; } else { $event_item['allDay'] = TRUE; } $event_array[] = $event_item; } $json_events_string = json_encode($event_array); // TODO: is there an easy way to avoid embedding JS? ?>