aboutsummaryrefslogtreecommitdiffstats
path: root/mod/events.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2012-02-15 12:47:50 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2012-02-15 12:47:50 +0100
commit73bee08ac2ce4e89ab365d23f431f5e0c465abd6 (patch)
treeae0b3a7f4aaadd010656d2f6cfae00b85d71f3b1 /mod/events.php
parentfe3e8ee8547dbb7dab5b756056d688d2b8bfbd5f (diff)
downloadvolse-hubzilla-73bee08ac2ce4e89ab365d23f431f5e0c465abd6.tar.gz
volse-hubzilla-73bee08ac2ce4e89ab365d23f431f5e0c465abd6.tar.bz2
volse-hubzilla-73bee08ac2ce4e89ab365d23f431f5e0c465abd6.zip
enable ajax calendar with $a->config['experimentals']['new_calendar']=1
Diffstat (limited to 'mod/events.php')
-rwxr-xr-xmod/events.php6
1 files changed, 5 insertions, 1 deletions
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(),