Parcourir la source

add calendar demo data

CauseFX il y a 5 ans
Parent
commit
df24a4595c
2 fichiers modifiés avec 13821 ajouts et 0 suppressions
  1. 13817 0
      api/demo_data/calendar/calendar.json
  2. 4 0
      api/homepage/calendar.php

Fichier diff supprimé car celui-ci est trop grand
+ 13817 - 0
api/demo_data/calendar/calendar.json


+ 4 - 0
api/homepage/calendar.php

@@ -87,6 +87,10 @@ trait CalendarHomepageItem
 	
 	public function getCalendar()
 	{
+		if ($this->demo) {
+			// for now, we will return all data - soon we will break out between all services
+			return $this->demoData('calendar/calendar.json');
+		}
 		$startDate = date('Y-m-d', strtotime("-" . $this->config['calendarStart'] . " days"));
 		$endDate = date('Y-m-d', strtotime("+" . $this->config['calendarEnd'] . " days"));
 		$icalCalendarSources = array();

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff