diff options
author | Silvio <silvio@socioambiental.org> | 2012-08-01 16:40:48 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2012-08-01 16:40:48 -0300 |
commit | 0984f3d81efe59a3028b3f00a1f9afb8926da885 (patch) | |
tree | 846b9a47f9e10af078730bbb16cd92c70ad0619c /timelinejs_json_event.tpl.php | |
parent | b0fe5cb2bec5ce8c983530dceb1ec77f5720d656 (diff) | |
download | timelinejs-0984f3d81efe59a3028b3f00a1f9afb8926da885.tar.gz timelinejs-0984f3d81efe59a3028b3f00a1f9afb8926da885.tar.bz2 |
Loading event nodes
Diffstat (limited to 'timelinejs_json_event.tpl.php')
-rw-r--r-- | timelinejs_json_event.tpl.php | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/timelinejs_json_event.tpl.php b/timelinejs_json_event.tpl.php index 92ac391..2e69e8d 100644 --- a/timelinejs_json_event.tpl.php +++ b/timelinejs_json_event.tpl.php @@ -1,18 +1,11 @@ -{ - "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; ?> - ] - } -} + { + "startDate":"<?php print $event['date']; ?>", + "headline":"<?php print $event['headline']; ?>", + "text":"<?php print $event['text']; ?>", + "asset": + { + "media":"<?php print $event['media']; ?>", + "credit":"", + "caption":"" + } + } |