<?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';
if (!class_exists("DataObjectManager")) {
    user_error(_t('EventCalendar.DATAOBJECTMANAGER', 'Event Calendar requires the DataObjectManager module.'), E_USER_ERROR);
}
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');
i18n::include_locale_file('event_calendar', 'en_US');
// 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