Skip to content

Commit

Permalink
Merge branch '3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Uncle Cheese committed Jun 29, 2012
2 parents 20ebb18 + 9391b91 commit 38766d0
Show file tree
Hide file tree
Showing 30 changed files with 3,354 additions and 2,338 deletions.
50 changes: 2 additions & 48 deletions _config.php
Original file line number Diff line number Diff line change
@@ -1,58 +1,12 @@
<?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}'
'OneDay' => '$StartMonth%{sMonShort}. %{sDayNumShort}, %{sYearFull}'
'SameMonthSameYear' => '%{sMonShort}. %{sDayNumShort} - %{eDayNumShort}, %{eYearFull}'
'DiffMonthSameYear' => '%{sMonShort}. %{sDayNumShort} - %{eMonShort}. %{eDayNumShort}, %{eYearFull}'
'DiffMonthDiffYear' => '%{sMonShort}. %{sDayNumShort}, %{sYearFull} - %{eMonShort} %{eDayNumShort}, %{eYearFull}'
Expand Down
Loading

0 comments on commit 38766d0

Please sign in to comment.