Changeset View
Changeset View
Standalone View
Standalone View
plugins/calendar/calendar.php
Show First 20 Lines • Show All 1,740 Lines • ▼ Show 20 Lines | private function _client_event($event, $addcss = false) | ||||
} | } | ||||
foreach ((array)$event['attachments'] as $k => $attachment) { | foreach ((array)$event['attachments'] as $k => $attachment) { | ||||
$event['attachments'][$k]['classname'] = rcube_utils::file2class($attachment['mimetype'], $attachment['name']); | $event['attachments'][$k]['classname'] = rcube_utils::file2class($attachment['mimetype'], $attachment['name']); | ||||
} | } | ||||
// convert link URIs references into structs | // convert link URIs references into structs | ||||
if (array_key_exists('links', $event)) { | if (array_key_exists('links', $event)) { | ||||
foreach ((array)$event['links'] as $i => $link) { | foreach ((array) $event['links'] as $i => $link) { | ||||
if (strpos($link, 'imap://') === 0 && ($msgref = $this->driver->get_message_reference($link))) { | if (strpos($link, 'imap://') === 0 && ($msgref = $this->driver->get_message_reference($link))) { | ||||
$event['links'][$i] = $msgref; | $event['links'][$i] = $msgref; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
// check for organizer in attendees list | // check for organizer in attendees list | ||||
$organizer = null; | $organizer = null; | ||||
foreach ((array)$event['attendees'] as $i => $attendee) { | foreach ((array)$event['attendees'] as $i => $attendee) { | ||||
if ($attendee['role'] == 'ORGANIZER') { | if ($attendee['role'] == 'ORGANIZER') { | ||||
$organizer = $attendee; | $organizer = $attendee; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,555 Lines • Show Last 20 Lines |