forked from jplitza/ical
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
19 lines (15 loc) · 855 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
The file sample.php contains self-contained code to show the calendar and
can be used to adapt the display to other applications apart from MediaWiki.
The file ical.php is the MediaWiki plugin and can be activated by adding the
following to LocalSettings.php:
require_once( "$IP/extensions/ical/ical.php" );
It can then be used on any page by using the following tag:
<ical file="path/to/file.ics" />
or
<ical url="http://example.com/url/to/file.ics" />
The date formats can be modified by specifying the variables
$wgIcalTimeFormat, $wgIcalDateFormat and $wgIcalShortDateFormat in the
LocalSettings.php as strftime()-compatible strings or as parameters
timeformat, dateformat and shortdateformat to the <ical /> tag.
The number of days to show can be modified by setting the variable
$wgIcalDaysToShow in LocalSettings.php or the tag-parameter days.