add new feature to donwload a calendar
This commit is contained in:
@@ -176,6 +176,7 @@ class EmbeddedCalendar extends ComponentBase {
|
||||
$data += ['wkst' => 2];
|
||||
}
|
||||
|
||||
// Calenders from config
|
||||
$calendarList = $this->getCalendarsFromProperties();
|
||||
$dataParams = http_build_query($data);
|
||||
|
||||
@@ -220,9 +221,9 @@ class EmbeddedCalendar extends ComponentBase {
|
||||
$exp_key = explode($this->calPropSeparator, $key);
|
||||
if($exp_key[0] == 'cal' && $this->property($key) == true){
|
||||
$calendar = [];
|
||||
$calendar['src'] = $exp_key[2];
|
||||
$calendar['color'] = $exp_key[1];
|
||||
$calendars[] = $calendar;
|
||||
$calendar['src'] = $exp_key[2];
|
||||
array_push($calendars, $calendar);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -230,7 +231,6 @@ class EmbeddedCalendar extends ComponentBase {
|
||||
}
|
||||
|
||||
private function calendarProperties() {
|
||||
// ToDo: Add cache => https://octobercms.com/docs/services/cache
|
||||
$service = new GoogleCalendarService();
|
||||
$calendars = $service->calendarList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user