Changeset 8267
- Timestamp:
- 03/16/2007 04:22:29 AM (19 years ago)
- File:
-
- 1 edited
-
ical-events/trunk/readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ical-events/trunk/readme.txt
r7201 r8267 1 1 === iCal Events === 2 2 3 Tags: calendar, events 3 Contributors: dwc 4 Requires at least: 2.0 5 Tested up to: 2.2 6 Stable tag: trunk 4 7 5 A plugin for getting and displayingupcoming events from a shared calendar.8 upcoming events from a shared calendar. 6 9 7 This plugin uses <a href="http://cvs.sourceforge.net/viewcvs.py/webcalendar/webcalendar/import_ical.php?rev=HEAD">import_ical.php</a> from the <a href="http://sourceforge.net/projects/webcalendar/">WebCalendar</a> project. A slightly modified version of their parser is provided with this plugin. 10 == Description == 11 12 Fetch and display events from an iCalendar (`.ics`) URL in your blog. 13 14 This plugin uses [import_ical.php](http://cvs.sourceforge.net/viewcvs.py/webcalendar/webcalendar/import_ical.php?rev=HEAD) from the [WebCalendar](http://sourceforge.net/projects/webcalendar/) project. A slightly modified version of their parser is provided with this plugin. 8 15 9 16 == Installation == … … 22 29 23 30 The `display_events` function takes the following arguments: 31 24 32 * `url`: The URL of the iCalendar file. 25 33 * `gmt_start` (optional): Only events from this time forward are displayed. If not specified, the earliest events are displayed. 26 34 * `gmt_end` (optional): Only events before this time are displayed. 27 35 * `limit` (optional): The maximum number of events to display. 28 * `date_format` (optional): The format string used to format dates (see <a href="http://php.net/strftime">strftime documentation</a>). Default: `%a %b %e`.36 * `date_format` (optional): The format string used to format dates (see ). Default: `%a %b %e`. 29 37 * `time_format` (optional): The format string used to format times. Default: `%l:%M %p`. 30 * `before` (optional): HTML or text to display before each event. Default: `<li>`.31 * `after` (optional): HTML or text to display after each event. Default: `</li>`.32 * `before_date` (optional): HTML or text to display before each event's date. Default: `<strong>`.33 * `after_date` (optional): HTML or text to display after each event's date. Default: `</strong>: `.38 * `before` (optional): HTML or text to display before each event. Default: . 39 * `after` (optional): HTML or text to display after each event. Default: . 40 * `before_date` (optional): HTML or text to display before each event's date. Default: . 41 * `after_date` (optional): HTML or text to display after each event's date. Default: . 34 42 * `use_summary` (optional): Whether or not to use the event summary in the output. Default: `true`. 35 43 * `before_summary` (optional): HTML or text to display before each event's summary. Default: Empty string. … … 38 46 * `before_description` (optional): HTML or text to display before each event's description. Default: ` - `. 39 47 * `after_description` (optional): HTML or text to display after each event's description. Default: Empty string. 40 * `replace_newlines_with` (optional): String with which to replace newlines in the description. Default: `<br />`.48 * `replace_newlines_with` (optional): String with which to replace newlines in the description. Default: . 41 49 * `use_location` (optional): Whether or not to use the event location in the output. If false, only the summary is used. Default: `true`. 42 50 * `before_location` (optional): HTML or text to display before each event's location. Default: ` (`. … … 50 58 51 59 If you need more control over the output, use the `get_events` function, which takes the following arguments: 60 52 61 * `url`: The URL of the iCalendar file. 53 62 * `gmt_start` (optional): Only events from this time forward are displayed. If not specified, the earliest events are displayed. … … 68 77 69 78 There are many iCalendar sources, such as: 70 * <a href="http://www.apple.com/ical/library/">Apple's iCal library</a> 71 * <a href="http://www.icalshare.com/">iCalShare</a> 72 * <a href="http://calendar.google.com/">Google Calendar</a> 79 80 * [Apple's iCal library](http://www.apple.com/ical/library/) 81 * [iCalShare](http://www.icalshare.com/) 82 * [Google Calendar](http://calendar.google.com/) 73 83 74 84 = My server does not support `fopen` on URLs. Can I still use this plugin? =
Note: See TracChangeset
for help on using the changeset viewer.