From 9998443810c61514741865bf2066bc1caab4708a Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 30 Oct 2012 14:58:33 -0200 Subject: Adding credit and caption for image fields --- timelinejs_json_event.tpl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'timelinejs_json_event.tpl.php') diff --git a/timelinejs_json_event.tpl.php b/timelinejs_json_event.tpl.php index 1cd0e85..9fd35d9 100644 --- a/timelinejs_json_event.tpl.php +++ b/timelinejs_json_event.tpl.php @@ -1,7 +1,7 @@ { "startDate":"field_date['und'][0]['value'])); ?>", "headline":"title; ?>", - "text":"', str_replace('"', "'", $event->body['und'][0]['value'])); ?>", + "text":"body['und'][0]['value']); ?>", "asset": { field_embed)) { ?> @@ -10,8 +10,8 @@ "caption":"" field_image)) { ?> "media":"field_image['und'][0]['uri']); ?>", - "credit":"", - "caption":"" + "credit":"field_image['und'][0]['alt'])) { print timelinejs_strip($event->field_image['und'][0]['alt']); } ?>", + "caption":"field_image['und'][0]['title'])) { print timelinejs_strip($event->field_image['und'][0]['title']); } ?>" "media":"", "credit":"", -- cgit v1.2.3