BEGIN:VCALENDAR VERSION:2.0 X-WR-TIMEZONE:Europe/London X-WR-CALNAME:<?php print sanical($name); foreach ($events as $event) { require __DIR__ . '/event.tpl.php'; } ?> END:VCALENDAR
BEGIN:VEVENT URL;VALUE=URI:<?php print sanical($event['uri']); ?> DTSTART:<?php print sanical(date('Ymd\\THis', $event['start'])); ?> DTEND:<?php print sanical(date('Ymd\\THis', $event['end'])); ?> SUMMARY:<?php print sanical($event['summary']); ?> DESCRIPTION:<?php print sanical($event['description']); ?> LOCATION:<?php print sanical($event['location']); ?> END:VEVENT
<?php foreach ($events as $event) { ?> BEGIN:VEVENT URL;VALUE=URI:<?php sanical($event['dc:identifier']); ?> DTSTART:<?php sanical(date('Ymd\\THis', $event['start'])); ?> DTEND:<?php sanical(date('Ymd\\THis', $event['end'])); ?> SUMMARY:<?php sanical($event['dc:title']); ?> DESCRIPTION:<?php sanical($event['dc:description']); ?> LOCATION:<?php sanical($event['location'] ? $event['location'] : $defs->name); ?> END:VEVENT <?php } ?> END:VCALENDAR