This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Create a Google Calendar "add to calendar" link. | |
* | |
* This function is convienient because it does not require an API connection. | |
* Note that this only allows for adding a single event. | |
* The data does not have to exist already on any Google Calendar anywhere. | |
* This just adds your event data to the end-users GCal one item at a time. | |
* See https://stackoverflow.com/a/19867654/947370 for a full explaination of | |
* the Google Calendar URL structure. |