summaryrefslogtreecommitdiff
path: root/timelinejs.tpl.php
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2012-08-01 16:08:59 -0300
committerSilvio <silvio@socioambiental.org>2012-08-01 16:08:59 -0300
commita820ecec5069f6670fc3ea45c29657390668e1f5 (patch)
tree7c3902f1af90a91078da5d57a67359d394d0706f /timelinejs.tpl.php
parent149097510754e175ab93fc9fa8844999713269fb (diff)
downloadtimelinejs-a820ecec5069f6670fc3ea45c29657390668e1f5.tar.gz
timelinejs-a820ecec5069f6670fc3ea45c29657390668e1f5.tar.bz2
Adding timeline output to full node view
Diffstat (limited to 'timelinejs.tpl.php')
-rw-r--r--timelinejs.tpl.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/timelinejs.tpl.php b/timelinejs.tpl.php
index 0c1004a..1dc3aed 100644
--- a/timelinejs.tpl.php
+++ b/timelinejs.tpl.php
@@ -2,14 +2,14 @@
<div id="timeline-embed" style="width:960px; height: 500px;"></div>
<script type="text/javascript">
var timeline_config = {
- width: "960px",
- height: "500px",
- source: '/sites/boletim/files/timeline-saude-indigena_2.json',
- start_at_end: false,
- hash_bookmark: true,
- css: '/sites/boletim/themes/boletimclean/timeline.css',
- js: '/sites/all/libraries/timelinejs/compiled/js/timeline.js',
- lang: '/sites/all/libraries/timelinejs/compiled/js/locale/pt-br.js'
+ width: "<?php print $width; ?>",
+ height: "<?php print $height; ?>",
+ source: '<?php print $source; ?>',
+ start_at_end: <?php print $start_at_end; ?>,
+ hash_bookmark: <?php print $hash_bookmark; ?>,
+ css: '<?php print $css; ?>',
+ js: '<?php print $js; ?>',
+ lang: '<?php print $lang; ?>'
}
</script>
<script type="text/javascript" src="/sites/all/libraries/timelinejs/compiled/js/timeline-embed.js"></script>