summaryrefslogtreecommitdiff
path: root/timelinejs_json_event.tpl.php
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2012-08-03 18:57:10 -0300
committerSilvio <silvio@socioambiental.org>2012-08-03 18:57:10 -0300
commit21e6476365e83c28971e4a3a0c3e452ec32b799d (patch)
tree6296856e9c87c6ac731f89d92a47dc3986dbb18a /timelinejs_json_event.tpl.php
parent2bc1dc62f33604e7e0ffb20fbdc6198a568662a4 (diff)
downloadtimelinejs-21e6476365e83c28971e4a3a0c3e452ec32b799d.tar.gz
timelinejs-21e6476365e83c28971e4a3a0c3e452ec32b799d.tar.bz2
Converting line breaks to avoid unrendered timeline
Diffstat (limited to 'timelinejs_json_event.tpl.php')
-rw-r--r--timelinejs_json_event.tpl.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/timelinejs_json_event.tpl.php b/timelinejs_json_event.tpl.php
index 22a3b5d..7ec50dd 100644
--- a/timelinejs_json_event.tpl.php
+++ b/timelinejs_json_event.tpl.php
@@ -1,7 +1,7 @@
{
"startDate":"<?php print strftime('%Y,%m,%d', strtotime($event->field_date['und'][0]['value'])); ?>",
"headline":"<?php print $event->title; ?>",
- "text":"<?php print str_replace('"', '&quot;', $event->body['und'][0]['value']); ?>",
+ "text":"<?php print str_replace(array("\r\n", "\n", "\r"), '<br>', str_replace('"', '&quot;', $event->body['und'][0]['value'])); ?>",
"asset":
{
<?php if (!empty($event->field_embed)) { ?>