summaryrefslogtreecommitdiff
path: root/timelinejs_json_event.tpl.php
diff options
context:
space:
mode:
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; ?>
+ ]
+ }
+}