diff options
author | Silvio <silvio@socioambiental.org> | 2012-08-01 16:26:32 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2012-08-01 16:26:32 -0300 |
commit | b0fe5cb2bec5ce8c983530dceb1ec77f5720d656 (patch) | |
tree | fab773e1a028e5e51d380691623dd5ca4b03cf37 /timelinejs_json.tpl.php | |
parent | a820ecec5069f6670fc3ea45c29657390668e1f5 (diff) | |
download | timelinejs-b0fe5cb2bec5ce8c983530dceb1ec77f5720d656.tar.gz timelinejs-b0fe5cb2bec5ce8c983530dceb1ec77f5720d656.tar.bz2 |
Spliting json template
Diffstat (limited to 'timelinejs_json.tpl.php')
-rw-r--r-- | timelinejs_json.tpl.php | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/timelinejs_json.tpl.php b/timelinejs_json.tpl.php index 68cfcbb..2e69e8d 100644 --- a/timelinejs_json.tpl.php +++ b/timelinejs_json.tpl.php @@ -1,23 +1,3 @@ -<?php - - global $base_url; - -?> -{ - "timeline": - { - "headline":"<?php print $headline; ?>", - "type":"default", - "startDate":"<?php print $date; ?>", - "text":"<?php print $text; ?>", - "asset": - { - "media":"<?php print $media; ?>", - "credit":"", - "caption":"" - }, -<?php foreach ($events as $event) { ?> - "date": [ { "startDate":"<?php print $event['date']; ?>", "headline":"<?php print $event['headline']; ?>", @@ -28,8 +8,4 @@ "credit":"", "caption":"" } - }, - ] -<?php } ?> - } -} + } |