summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2018-07-03 15:21:22 -0300
committerSilvio <silvio@socioambiental.org>2018-07-03 15:21:22 -0300
commit1126dad8254623dee4063b7a7d739900ef96ceac (patch)
tree4befedb7f9cf545de641ff60b25f3fe616192d7a
parent3e7ee721b2ace2a3f7b5f256449e17e4bb4102cd (diff)
downloadtimelinejs-1126dad8254623dee4063b7a7d739900ef96ceac.tar.gz
timelinejs-1126dad8254623dee4063b7a7d739900ef96ceac.tar.bz2
Adds ISA logo
-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 -->