소스 검색

add calendar demo data

CauseFX 4 년 전
부모
커밋
df24a4595c
2개의 변경된 파일13821개의 추가작업 그리고 0개의 파일을 삭제
  1. 13817 0
      api/demo_data/calendar/calendar.json
  2. 4 0
      api/homepage/calendar.php

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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();

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.