forked from dospuntocero/EventCalendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.php
65 lines (55 loc) · 2.06 KB
/
_config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
require_once(Director::baseFolder().'/event_calendar/code/sfTime.class.php');
require_once(Director::baseFolder().'/event_calendar/code/sfDate.class.php');
require_once(Director::baseFolder().'/event_calendar/code/sfDateTimeToolkit.class.php');
require_once(Director::baseFolder().'/event_calendar/code/CalendarUI.class.php');
LeftAndMain::require_javascript('event_calendar/javascript/calendar_interface.js');
LeftAndMain::require_css('event_calendar/css/calendar_cms.css');
Object::add_extension('SiteTree','CalendarSiteTree');
Calendar::set_param('language','EN');
Calendar::set_param('timezone', 'US-Eastern');
CalendarDateTime::set_param('offset','-04:00');
CalendarDateTime::set_date_format('dmy');
CalendarDateTime::set_time_format('24');
// Override to specify custom date templates. Falls back on lang file.
/**
* Available date format keys
** Start Date **
%{sWeekDayShort} e.g. Mon
%{sWeekDayFull} e.g. Monday
%{sDayNumFull} e.g. 09
%{sDayNumShort} e.g. 9
%{sDaySuffix} e.g. th, rd, st
%{sMonNumShort} e.g. 8
%{sMonNumFull} e.g. 08
%{sMonShort} e.g. Oct
%{sMonFull} e.g. October
%{sYearShort} e.g. 09
%{sYearFull} e.g. 2009
** End Date **
%{eWeekDayShort}
%{eWeekDayFull}
%{eDayNumFull}
%{eDayNumShort
%{eDaySuffix}
%{eMonNumShort}
%{eMonNumFull}
%{eMonShort}
%{eMonFull}
%{eYearShort}
%{eYearFull}
*/
global $customDateTemplates;
$customDateTemplates = array(
/*
You can modify the date display by assigning new date templates to any of the following
date scenarios. Use the above date format keys.
'OneDay' => '%{sMonShort}. %{sDayNumShort}, %{sYearFull}'
'SameMonthSameYear' => '%{sMonShort}. %{sDayNumShort} - %{eDayNumShort}, %{eYearFull}'
'DiffMonthSameYear' => '%{sMonShort}. %{sDayNumShort} - %{eMonShort}. %{eDayNumShort}, %{eYearFull}'
'DiffMonthDiffYear' => '%{sMonShort}. %{sDayNumShort}, %{sYearFull} - %{eMonShort} %{eDayNumShort}, %{eYearFull}'
'OneDayHeader' => '%{sMonFull} %{sDayNumShort}%{sDaySuffix}, %{sYearFull}'
'MonthHeader' => '%{sMonFull}, %{sYearFull}'
'YearHeader' => '%{sYearFull}'
*/
);