From 8ea5c71c9aa386d858b602fd20717d1b15e8dc59 Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 26 Jun 2013 17:55:23 -0300 Subject: Adding font parameter --- timelinejs.module | 2 ++ timelinejs.tpl.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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: , css: "", js: "", + font: "", lang: "" } - + -- cgit v1.2.3