1<?php
2/**
3 * gCalendar configuration-file
4 *
5 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
6 * @author     Frank Hinkel <frank@hi-sys.de>
7 */
8
9# match sections as categories. The first subpattern must contain the result
10$conf['gCal_match_category'][] = '#^\={2,}\s*(.*?)\s*\={2,}\s*$#s';
11
12
13# match unordered lists as events. The first subpattern must contain the result
14$conf['gCal_match_event'][] = '#^\s*\*{2}([0-9]{1,2}\..*)\*{2}\s*$#s';  // " ** abc **" gets "abc"
15$conf['gCal_match_event'][] = '#^\s*\*\s*(.*)\s*$#s';                   // " * abc "    gets "abc"
16
17
18# match dates in american-style, i.e. 12/31/2006
19$conf['gCal_date_mdy'] = '([0-9]{1,2})\/([0-9]{1,2})\/([0-9]{4}|[0-9]{2}|)';
20
21# match european styled dates. i.e. 31.12.2006
22$conf['gCal_date_dmy'] = '([0-9]{1,2})\.([0-9]{1,2})\.([0-9]{4}|[0-9]{2}|)';
23
24# match isodates. i.e. 2006-12-31 or 06-12-31
25$conf['gCal_date_ymd'] = '([0-9]{2}|[0-9]{4}|)\-([0-9]{1,2})\-([0-9]{1,2})';
26
27
28# security-option. only this tags are allowed in calendar-entries
29$conf['gCal_allowed_tags'] = '<a><b><br><br/><code><del><div><em><i><p><span><strong><sub><sup>';
30
31
32# match inline-category in event string.
33# the inline-section has to be placed after the time (or date, if time is omitted)
34$conf['gCal_inline_Category_hidden']  = '^\s*\[([A-Za-z_ ]+)\]';
35$conf['gCal_inline_Category_visible'] = '^\s*\(([A-Za-z_ ]+)\)';
36
37
38# how to display times in events -> #h=hour ; #m=minutes ; #r=rest (am/pm)
39$conf['gCal_time'] = "#h<sup><em class='u'>#m</em></sup>#r"; // minutes superscript underlined
40#$conf['gCal_time'] = "#h:#m#r"; // use this, if you dont like the superscript-form
41