summaryrefslogtreecommitdiff
path: root/timelinejs_json_event.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'timelinejs_json_event.tpl.php')
-rw-r--r--timelinejs_json_event.tpl.php8
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":""
}