summaryrefslogtreecommitdiff
path: root/timelinejs_json.tpl.php
diff options
context:
space:
mode:
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; ?>
+ ]
+ }
+}