diff options
-rw-r--r-- | timelinejs.module | 2 | ||||
-rw-r--r-- | timelinejs.tpl.php | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/timelinejs.module b/timelinejs.module index 30c6e92..0fef214 100644 --- a/timelinejs.module +++ b/timelinejs.module @@ -55,6 +55,7 @@ function timelinejs_theme($existing, $type, $theme, $path) { 'hash_bookmark' => 'true', 'css' => NULL, 'js' => '/'. timelinejs_library_path() .'/compiled/js/timeline.js', + 'font' => NULL, 'lang' => NULL, ), ), @@ -240,6 +241,7 @@ function timelinejs($nid = NULL, $width = '960px', $height = '500px') { 'css' => $css, 'js' => '/'. $library_path .'/compiled/js/timeline-min.js', 'lang' => '/'. $library_path .'/compiled/js/locale/'. $language->language .'.js', + 'font' => variable_get('timelinejs_font', 'Bevan-PotanoSans'), 'library_path' => $library_path, )); } diff --git a/timelinejs.tpl.php b/timelinejs.tpl.php index f5219d8..eeb2f97 100644 --- a/timelinejs.tpl.php +++ b/timelinejs.tpl.php @@ -9,8 +9,9 @@ hash_bookmark: <?php print $hash_bookmark; ?>, css: "<?php print $css; ?>", js: "<?php print $js; ?>", + font: "<?php print $font; ?>", lang: "<?php print $lang; ?>" } </script> - <script type="text/javascript" src="/<?php print $library_path; ?>/compiled/js/storyjs-embed.js"></script> +<script type="text/javascript" src="/<?php print $library_path; ?>/compiled/js/storyjs-embed.js"></script> <!-- END Timeline Embed --> |