date-vevent.tpl.php in Date 7
1 theme call to date-vevent.tpl.php
- date-vcalendar.tpl.php in date_views/
theme/ date-vcalendar.tpl.php
File
date_views/theme/date-vevent.tpl.phpView source
<?php
/**
* $event
* An array with the following information about each event:
*
* $event['uid'] - a unique id for the event (usually the url).
* $event['summary'] - the name of the event.
* $event['start'] - the formatted start date of the event.
* $event['end'] - the formatted end date of the event.
* $event['rrule'] - the RRULE of the event, if any.
* $event['timezone'] - the formatted timezone name of the event, if any.
* $event['url'] - the url for the event.
* $event['location'] - the name of the event location, or a vvenue location id.
* $event['description'] - a description of the event.
* $event['alarm'] - an optional array of alarm values.
* @see date-valarm.tpl.php.
*/
?>
BEGIN:VEVENT
UID:<?php
print $event['uid'] . "\r\n";
?>
SUMMARY:<?php
print $event['summary'] . "\r\n";
?>
DTSTAMP:<?php
print $site_timezone_utc . "Z\r\n";
?>
DTSTART;<?php
print $event['timezone'];
print $event['start'] . "\r\n";
if (!empty($event['end'])) {
?>
DTEND;<?php
print $event['timezone'];
print $event['end'] . "\r\n";
}
if (!empty($event['rrule'])) {
print $event['rrule'] . "\r\n";
}
if (!empty($event['url'])) {
?>
URL;VALUE=URI:<?php
print $event['url'] . "\r\n";
}
if (!empty($event['location'])) {
?>
LOCATION:<?php
print $event['location'] . "\r\n";
}
if (!empty($event['description'])) {
?>
DESCRIPTION:<?php
print $event['description'] . "\r\n";
}
?>
END:VEVENT