function ical_wrapper($ev) { if (!(is_array($ev) && count($ev))) { return ''; } $o .= "BEGIN:VCALENDAR"; $o .= "\nVERSION:2.0"; $o .= "\nMETHOD:PUBLISH"; $o .= "\nPRODID:-//" . get_config('system', 'sitename') . "//" . PLATFORM_NAME . "//" . strtoupper(get_app()->language) . "\n"; if (array_key_exists('start', $ev)) { $o .= format_event_ical($ev); } else { foreach ($ev as $e) { $o .= format_event_ical($e); } } $o .= "\nEND:VCALENDAR\n"; return $o; }
function ical_wrapper($ev) { if (!(is_array($ev) && count($ev))) { return ''; } $o .= "BEGIN:VCALENDAR"; $o .= "\r\nVERSION:2.0"; $o .= "\r\nMETHOD:PUBLISH"; $o .= "\r\nPRODID:-//" . get_config('system', 'sitename') . "//" . Zotlabs\Lib\System::get_platform_name() . "//" . strtoupper(App::$language) . "\r\n"; if (array_key_exists('dtstart', $ev)) { $o .= format_event_ical($ev); } else { foreach ($ev as $e) { $o .= format_event_ical($e); } } $o .= "\r\nEND:VCALENDAR\r\n"; return $o; }