aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2012-03-13 16:40:49 +0100
committerKevin Jardine <kevinjardine@yahoo.com>2012-03-13 16:40:49 +0100
commit1150f289dfb488cc0aaf9f1ae56183e752226312 (patch)
tree17771e41eba4eef5ddc04c2bef79babfd46ff09c /start.php
parente0e9ff33a7f5fc334af8127fc8680925ce967d14 (diff)
downloadelgg-1150f289dfb488cc0aaf9f1ae56183e752226312.tar.gz
elgg-1150f289dfb488cc0aaf9f1ae56183e752226312.tar.bz2
replaced deprecated friendly time, dates now stored properly in GMT and displayed in server time, added beginning of full calendar option
Diffstat (limited to 'start.php')
-rw-r--r--start.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/start.php b/start.php
index 21f79c9fa..ca96624dc 100644
--- a/start.php
+++ b/start.php
@@ -62,6 +62,13 @@ function event_calendar_init() {
//add to the css
elgg_extend_view('css/elgg', 'event_calendar/css');
+
+ $event_calendar_listing_format = elgg_get_plugin_setting('listing_format', 'event_calendar');
+ if ($event_calendar_listing_format == 'full') {
+ elgg_extend_view('css/elgg', 'fullcalendar/css');
+ $plugin_js = elgg_get_simplecache_url('js', 'event_calendar/fullcalendar');
+ elgg_register_js('elgg.full_calendar', $plugin_js);
+ }
//add a widget
elgg_register_widget_type('event_calendar',elgg_echo("event_calendar:widget_title"),elgg_echo('event_calendar:widget:description'));