diff options
author | Silvio <silvio@socioambiental.org> | 2012-08-02 16:41:37 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2012-08-02 16:41:37 -0300 |
commit | d6d6b670401e28caff59f330d3d2843d65b85de9 (patch) | |
tree | bb83b20c977bee5f7c5f7cde13e5ca747de7992c /timelinejs_json_event.tpl.php | |
parent | 0984f3d81efe59a3028b3f00a1f9afb8926da885 (diff) | |
download | timelinejs-d6d6b670401e28caff59f330d3d2843d65b85de9.tar.gz timelinejs-d6d6b670401e28caff59f330d3d2843d65b85de9.tar.bz2 |
More changes in the timelinejs_json
Diffstat (limited to 'timelinejs_json_event.tpl.php')
-rw-r--r-- | timelinejs_json_event.tpl.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/timelinejs_json_event.tpl.php b/timelinejs_json_event.tpl.php index 2e69e8d..a76f806 100644 --- a/timelinejs_json_event.tpl.php +++ b/timelinejs_json_event.tpl.php @@ -1,10 +1,10 @@ { - "startDate":"<?php print $event['date']; ?>", - "headline":"<?php print $event['headline']; ?>", - "text":"<?php print $event['text']; ?>", + "startDate":"<?php print strftime('%Y,%m,%d,', strtotime($event->field_data['und']['0']['value'])); ?>", + "headline":"<?php print $event->title; ?>", + "text":"<?php print $event->body['und']['0']['value']; ?>", "asset": { - "media":"<?php print $event['media']; ?>", + "media":"<?php // TODO: print $event->media; ?>", "credit":"", "caption":"" } |