summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--images/isa-icon.pngbin0 -> 1855 bytes
-rw-r--r--timelinejs.module1
-rw-r--r--timelinejs.tpl.php4
3 files changed, 3 insertions, 2 deletions
diff --git a/images/isa-icon.png b/images/isa-icon.png
new file mode 100644
index 0000000..2bea636
--- /dev/null
+++ b/images/isa-icon.png
Binary files differ
diff --git a/timelinejs.module b/timelinejs.module
index 0391a7a..5f15a4a 100644
--- a/timelinejs.module
+++ b/timelinejs.module
@@ -54,6 +54,7 @@ function timelinejs_theme($existing, $type, $theme, $path) {
'timelinejs' => array(
'template' => 'timelinejs',
'variables' => array(
+ 'module_path' => drupal_get_path('module', 'timelinejs'),
'width' => NULL,
'height' => NULL,
'source' => NULL,
diff --git a/timelinejs.tpl.php b/timelinejs.tpl.php
index edf0ec5..4393264 100644
--- a/timelinejs.tpl.php
+++ b/timelinejs.tpl.php
@@ -1,5 +1,5 @@
<!-- BEGIN Timeline Embed -->
-<img style="z-index: 99999999; position: fixed; margin-top: 10px; margin-left: 10px;" src="/sites/default/modules/isa_widgets/images/isa-icon.png" alt="Instituto Socioambiental">
+<img style="z-index: 99999999; position: fixed; margin-top: 10px; margin-left: 10px;" src="/<?php print $module_path; ?>/images/isa-icon.png" alt="Instituto Socioambiental">
<div id="timeline-embed" style="width:<?print $width; ?>; height: <?php print $height; ?>;"></div>
<script type="text/javascript">
var timeline_config = {
@@ -27,7 +27,7 @@
}
</script>
-<!--<img style="z-index: 99999999; position: relative; top: -50px; left: 10px;" src="/sites/default/modules/isa_widgets/images/isa-icon.png" alt="Instituto Socioambiental">-->
+<!--<img style="z-index: 99999999; position: relative; top: -50px; left: 10px;" src="/<?php print $module_path; ?>/images/isa-icon.png" alt="Instituto Socioambiental">-->
<script type="text/javascript" src="https://cdn.knightlab.com/libs/timeline/latest/js/storyjs-embed.js"></script>
<!-- Use timelinejs from CDN until we fix it's direct inclusion -->