@@ -174,19 +174,19 @@ $this->headLink()
174174 timeMinString = timeMin.toISOString();
175175 var calendarItems = [
176176 <?php foreach ($ options as $ option ): ?>
177- <?php if ($ option ->getStatus () !== 'deleted ' ): ?>
178- {
179- "isPlanned": <?= $ option ->getStatus () === 'approved ' ? 'true ' : 'false ' ?> ,
180- "isOwner": <?= in_array ($ option , $ editableOptions ) ? 'true ' : 'false ' ?> ,
181- "id": "<?= $ option ->getId () ?> ",
182- "title": "<?= $ this ->escapeHtml ($ option ->getProposal ()->getName ()) ?> ",
183- "organizer": "<?= $ option ->getProposal ()->getOrgan () === null ? $ option ->getProposal ()->getCreator ()->getMember ()->getFullName () : $ option ->getProposal ()->getOrgan ()->getAbbr () ?> ",
184- "url": "#",
185- "class": "event-info",
186- "start": <?= $ option ->getBeginTime ()->getTimestamp () * 1000 ?> ,
187- "end": <?= $ option ->getEndTime ()->getTimestamp () * 1000 ?> ,
188- },
189- <?php endif ?>
177+ <?php if ($ option ->getStatus () !== 'deleted ' ): ?>
178+ {
179+ "isPlanned": <?= $ option ->getStatus () === 'approved ' ? 'true ' : 'false ' ?> ,
180+ "isOwner": <?= in_array ($ option , $ editableOptions ) ? 'true ' : 'false ' ?> ,
181+ "id": "<?= $ option ->getId () ?> ",
182+ "title": "<?= $ this ->escapeHtml ($ option ->getProposal ()->getName ()) ?> ",
183+ "organizer": "<?= $ option ->getProposal ()->getOrgan () === null ? $ option ->getProposal ()->getCreator ()->getMember ()->getFullName () : $ option ->getProposal ()->getOrgan ()->getAbbr () ?> ",
184+ "url": "#",
185+ "class": "event-info",
186+ "start": <?= $ option ->getBeginTime ()->getTimestamp () * 1000 ?> ,
187+ "end": <?= $ option ->getEndTime ()->getTimestamp () * 1000 ?>
188+ },
189+ <?php endif ?>
190190 <?php endforeach ?>
191191 ];
192192 $.getJSON('https://www.googleapis.com/calendar/v3/calendars/<?= $ calendarKey ?> @group.calendar.google.com/events?key=<?= $ APIKey ?> &maxResults=2500&showDeleted=false&timeMin=' + timeMinString, function (data) {
0 commit comments