Releasing David's description enhancement to the calendar.
This commit is contained in:
7
cal.php
7
cal.php
@@ -31,12 +31,14 @@ echo "END:VTIMEZONE\r\n";
|
||||
|
||||
// Generate VEVENTS
|
||||
foreach ($events as $event) {
|
||||
$uid = uniqid() . "@yourdomain.com";
|
||||
$uid = uniqid() . "@homelabbrisbane.com.au";
|
||||
|
||||
$dtstart = date("Ymd\THis", strtotime($event["start"]));
|
||||
$dtend = date("Ymd\THis", strtotime($event["end"]));
|
||||
$summary = htmlspecialchars($event["title"]);
|
||||
$location = htmlspecialchars($event["location"]);
|
||||
$description = isset($event["description"]) ? htmlspecialchars($event["description"]) : '';
|
||||
|
||||
|
||||
echo "BEGIN:VEVENT\r\n";
|
||||
echo "UID:$uid\r\n";
|
||||
@@ -45,9 +47,10 @@ foreach ($events as $event) {
|
||||
echo "DTEND;TZID=Australia/Brisbane:$dtend\r\n";
|
||||
echo "SUMMARY:$summary\r\n";
|
||||
echo "LOCATION:$location\r\n";
|
||||
echo "DESCRIPTION:$description\r\n";
|
||||
echo "END:VEVENT\r\n";
|
||||
}
|
||||
|
||||
// End of calendar
|
||||
echo "END:VCALENDAR\r\n";
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user