summaryrefslogtreecommitdiff
path: root/timelinejs_json_event.tpl.php
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-06-25 15:44:26 -0300
committerSilvio <silvio@socioambiental.org>2013-06-25 15:44:26 -0300
commit4076881c589a77002133e59777e97d7a62d8f7af (patch)
treedad881a67716f773bcc18ab1fe4a40fa73a7bdc8 /timelinejs_json_event.tpl.php
parentee4874a1847e98590d24ce01b43f6ae518864986 (diff)
downloadtimelinejs-4076881c589a77002133e59777e97d7a62d8f7af.tar.gz
timelinejs-4076881c589a77002133e59777e97d7a62d8f7af.tar.bz2
Tag with a text field
Diffstat (limited to 'timelinejs_json_event.tpl.php')
-rw-r--r--timelinejs_json_event.tpl.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/timelinejs_json_event.tpl.php b/timelinejs_json_event.tpl.php
index 60b88c2..75ab055 100644
--- a/timelinejs_json_event.tpl.php
+++ b/timelinejs_json_event.tpl.php
@@ -2,8 +2,8 @@
"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->tag) && $event->tag != FALSE) { ?>
- "tag":"<?php print $event->tag->name; ?>",
+<?php if (isset($event->field_tag) && isset($event->field_tag['und'][0]['value'])) { ?>
+ "tag":"<?php print $event->field_tag['und'][0]['value']; ?>",
<?php } ?>
"asset":
{