Skip to content

Instantly share code, notes, and snippets.

@thetristan
Created March 11, 2010 03:14
Show Gist options
  • Save thetristan/328773 to your computer and use it in GitHub Desktop.
Save thetristan/328773 to your computer and use it in GitHub Desktop.
<?php
header("Content-Type: text/x-vCalendar");
header("Content-Disposition: inline; filename=MyvCalFile.vcs");
?>
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
X-WR-TIMEZONE:US/Eastern
X-WR-CALNAME:Presagis Event
X-WR-TIMEZONE:US/Eastern
{exp:weblog:entries weblog="about_events_tradeshows" show_future_entries="yes"}
BEGIN:VEVENT
UID:{seg_3}
DTSTAMP:{entry_date format="%Y%m%dT%H%i00Z"}
DTSTART:{entry_date format="%Y%m%dT%H%i00"}
DTEND:{expiration_date format="%Y%m%dT%H%i00"}
SUMMARY:{title}
DESCRIPTION:{event_abstract}
END:VEVENT{/exp:weblog:entries}
END:VCALENDAR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment