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.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/timelinejs_json_event.tpl.php b/timelinejs_json_event.tpl.php
index 9fd35d9..75ab055 100644
--- a/timelinejs_json_event.tpl.php
+++ b/timelinejs_json_event.tpl.php
@@ -2,6 +2,9 @@
"startDate":"<?php print strftime('%Y,%m,%d', strtotime($event->field_date['und'][0]['value'])); ?>",
"headline":"<?php print $event->title; ?>",
"text":"<?php print timelinejs_strip($event->body['und'][0]['value']); ?>",
+<?php if (isset($event->field_tag) && isset($event->field_tag['und'][0]['value'])) { ?>
+ "tag":"<?php print $event->field_tag['und'][0]['value']; ?>",
+<?php } ?>
"asset":
{
<?php if (!empty($event->field_embed)) { ?>