diff options
author | Silvio <silvio@socioambiental.org> | 2013-06-25 13:56:50 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2013-06-25 13:56:50 -0300 |
commit | ee4874a1847e98590d24ce01b43f6ae518864986 (patch) | |
tree | 3b129c5b3052c5c3039ecda0fbdd00be55e2d4d3 /timelinejs_json_event.tpl.php | |
parent | 92fdd4b5361b1d25be91994afa499fbdc5d10110 (diff) | |
download | timelinejs-ee4874a1847e98590d24ce01b43f6ae518864986.tar.gz timelinejs-ee4874a1847e98590d24ce01b43f6ae518864986.tar.bz2 |
Initial tag support
Diffstat (limited to 'timelinejs_json_event.tpl.php')
-rw-r--r-- | timelinejs_json_event.tpl.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/timelinejs_json_event.tpl.php b/timelinejs_json_event.tpl.php index 9fd35d9..60b88c2 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->tag) && $event->tag != FALSE) { ?> + "tag":"<?php print $event->tag->name; ?>", +<?php } ?> "asset": { <?php if (!empty($event->field_embed)) { ?> |