summaryrefslogtreecommitdiff
path: root/timelinejs_json_event.tpl.php
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2012-08-01 16:26:32 -0300
committerSilvio <silvio@socioambiental.org>2012-08-01 16:26:32 -0300
commitb0fe5cb2bec5ce8c983530dceb1ec77f5720d656 (patch)
treefab773e1a028e5e51d380691623dd5ca4b03cf37 /timelinejs_json_event.tpl.php
parenta820ecec5069f6670fc3ea45c29657390668e1f5 (diff)
downloadtimelinejs-b0fe5cb2bec5ce8c983530dceb1ec77f5720d656.tar.gz
timelinejs-b0fe5cb2bec5ce8c983530dceb1ec77f5720d656.tar.bz2
Spliting json template
Diffstat (limited to 'timelinejs_json_event.tpl.php')
-rw-r--r--timelinejs_json_event.tpl.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/timelinejs_json_event.tpl.php b/timelinejs_json_event.tpl.php
new file mode 100644
index 0000000..92ac391
--- /dev/null
+++ b/timelinejs_json_event.tpl.php
@@ -0,0 +1,18 @@
+{
+ "timeline":
+ {
+ "headline":"<?php print $headline; ?>",
+ "type":"default",
+ "startDate":"<?php print $date; ?>",
+ "text":"<?php print $text; ?>",
+ "asset":
+ {
+ "media":"<?php print $media; ?>",
+ "credit":"",
+ "caption":""
+ },
+ "date": [
+<?php print $events; ?>
+ ]
+ }
+}