=== iCal Events === Tags: calendar, events Contributors: dwc A plugin for getting and displaying upcoming events from a shared calendar. This plugin uses import_ical.php from the WebCalendar project. == Installation == 1. Upload `ical-events.php` and `import_ical.php` to your plugins folder, usually `wp-content/plugins`. 2. Activate the plugin on the Plugins screen. 3. Place the following in your template: `` This example displays three events from the University of Florida calendar, from the current time forward. For more information, see below. == Frequently Asked Questions == = How can I control the output of this plugin? = The `display_events` function takes the following arguments: * URL: The URL of the iCal file. * Start time (optional): Only events from this time forward are displayed. If not specified, the earliest events are displayed. * End time (optional): Only events before this time are displayed. * Number of events (optional): The maximum number of events to display. * Date format (optional): The format string used to format dates (see strftime documentation). Default: `%a %b %d`. * Time format (optional): The format string used to format times. Default: `%l:%M %p`. * Before (optional): HTML or text to display before each event. Default: `
  • `. * After (optional): HTML or text to display after each event. Default: `
  • `. * Before date (optional): HTML or text to display before each event's date. Default: ``. * After date (optional): HTML or text to display after each event's date. Default: ``. * Before description (optional): HTML or text to display before each event's description. Default: Empty string. * After description (optional): HTML or text to display after each event's description. Default: Empty string. * Echo (optional): Whether or not to directly display the events. Default: `true`. = How often is the calendar checked for new events? = Once a day. You can change this in the `cache_url` function. Eventually, this might be an option available from the administration screens. = Where can I find iCal files? = There are many iCal sources, such as: * Apple's iCal library * iCalShare