|
|
|
@ -24,8 +24,17 @@ foreach($calendars as $calendar){ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$eventSources[] = array('url' => '?app=calendar&getfile=ajax/events.php?calendar_id=shared_rw', 'backgroundColor' => '#1D2D44', 'borderColor' => '#888', 'textColor' => 'white', 'editable'=>'true'); |
|
|
|
|
$eventSources[] = array('url' => '?app=calendar&getfile=ajax/events.php?calendar_id=shared_r', 'backgroundColor' => '#1D2D44', 'borderColor' => '#888', 'textColor' => 'white', 'editable' => 'false'); |
|
|
|
|
$events_baseURL = OCP\Util::linkTo('calendar', 'ajax/events.php'); |
|
|
|
|
$eventSources[] = array('url' => $events_baseURL.'?calendar_id=shared_rw', |
|
|
|
|
'backgroundColor' => '#1D2D44', |
|
|
|
|
'borderColor' => '#888', |
|
|
|
|
'textColor' => 'white', |
|
|
|
|
'editable'=>'true'); |
|
|
|
|
$eventSources[] = array('url' => $events_baseURL.'?calendar_id=shared_r', |
|
|
|
|
'backgroundColor' => '#1D2D44', |
|
|
|
|
'borderColor' => '#888', |
|
|
|
|
'textColor' => 'white', |
|
|
|
|
'editable' => 'false'); |
|
|
|
|
|
|
|
|
|
OCP\Util::emitHook('OC_Calendar', 'getSources', array('sources' => &$eventSources)); |
|
|
|
|
$categories = OC_Calendar_App::getCategoryOptions(); |
|
|
|
|