summaryrefslogtreecommitdiff
path: root/timelinejs_json.tpl.php
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2012-08-01 16:40:48 -0300
committerSilvio <silvio@socioambiental.org>2012-08-01 16:40:48 -0300
commit0984f3d81efe59a3028b3f00a1f9afb8926da885 (patch)
tree846b9a47f9e10af078730bbb16cd92c70ad0619c /timelinejs_json.tpl.php
parentb0fe5cb2bec5ce8c983530dceb1ec77f5720d656 (diff)
downloadtimelinejs-0984f3d81efe59a3028b3f00a1f9afb8926da885.tar.gz
timelinejs-0984f3d81efe59a3028b3f00a1f9afb8926da885.tar.bz2
Loading event nodes
Diffstat (limited to 'timelinejs_json.tpl.php')
-rw-r--r--timelinejs_json.tpl.php29
1 files changed, 18 insertions, 11 deletions
diff --git a/timelinejs_json.tpl.php b/timelinejs_json.tpl.php
index 2e69e8d..92ac391 100644
--- a/timelinejs_json.tpl.php
+++ b/timelinejs_json.tpl.php
@@ -1,11 +1,18 @@
- {
- "startDate":"<?php print $event['date']; ?>",
- "headline":"<?php print $event['headline']; ?>",
- "text":"<?php print $event['text']; ?>",
- "asset":
- {
- "media":"<?php print $event['media']; ?>",
- "credit":"",
- "caption":""
- }
- }
+{
+ "timeline":
+ {
+ "headline":"<?php print $headline; ?>",
+ "type":"default",
+ "startDate":"<?php print $date; ?>",
+ "text":"<?php print $text; ?>",
+ "asset":
+ {
+ "media":"<?php print $media; ?>",
+ "credit":"",
+ "caption":""
+ },
+ "date": [
+<?php print $events; ?>
+ ]
+ }
+}