예제 #1
0
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
예제 #2
0
파일: event.tpl.php 프로젝트: hubgit/events
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

예제 #3
0
<?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