From 73bee08ac2ce4e89ab365d23f431f5e0c465abd6 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Wed, 15 Feb 2012 12:47:50 +0100 Subject: enable ajax calendar with $a->config['experimentals']['new_calendar']=1 --- mod/events.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mod/events.php') diff --git a/mod/events.php b/mod/events.php index e10f508dd..0906d16c2 100755 --- a/mod/events.php +++ b/mod/events.php @@ -284,7 +284,11 @@ function events_content(&$a) { if (x($_GET,'id')){ $tpl = get_markup_template("event.tpl"); } else { - $tpl = get_markup_template("events.tpl"); + if (get_config('experimentals','new_calendar')==1){ + $tpl = get_markup_template("events-js.tpl"); + } else { + $tpl = get_markup_template("events.tpl"); + } } $o = replace_macros($tpl, array( '$baseurl' => $a->get_baseurl(), -- cgit v1.2.3