summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2012-10-24 14:55:48 -0200
committerSilvio <silvio@socioambiental.org>2012-10-24 14:55:48 -0200
commit943aa94c965dcfa160c7216cb66bf6f11de38e38 (patch)
tree5337b5d4d64f6511bc9c950a7770dd74e89967ac
parentcfb20b47f93b94515cf9d02b1e887a8bbb7d8f15 (diff)
downloadtimelinejs-943aa94c965dcfa160c7216cb66bf6f11de38e38.tar.gz
timelinejs-943aa94c965dcfa160c7216cb66bf6f11de38e38.tar.bz2
CSS fallback to the default stylesheet
-rw-r--r--timelinejs.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/timelinejs.module b/timelinejs.module
index 3c3f6a1..bdbfa8d 100644
--- a/timelinejs.module
+++ b/timelinejs.module
@@ -152,8 +152,10 @@ function timelinejs($nid, $width = '960px', $height = '500px') {
global $language;
global $theme;
- $path = drupal_get_path('theme', $theme);
- $css = (file_exists($path .'/timeline.css')) ? '/'. $path .'/timeline.css' : NULL;
+ $theme_path = drupal_get_path('theme', $theme);
+ $library_path = drupal_get_path('libraries', 'timelinejs');
+
+ $css = (file_exists($theme_path .'/timeline.css')) ? '/'. $theme_path .'/timeline.css' : '/'. $library_path .'/compiled/css/timeline.css';
return theme('timelinejs', array(
'width' => $width,