Skip to content

Commit 767da80

Browse files
committed
Merge pull request #178 from drupalprojects/7.x-3.x1-fix-bootswatch-scheme
Fix bootswatch scheme issue
2 parents 6664460 + 19e0897 commit 767da80

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

template.php

+8-2
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,15 @@ function kalatheme_process_page(&$variables) {
118118
if ($library !== 'none' && !empty($library)) {
119119
// Add the JS
120120
drupal_add_js($base['scheme'] . ":" . KALATHEME_BOOTSTRAP_JS, 'external');
121+
121122
// Add the CSS
122-
$css = ($library === 'default') ? KALATHEME_BOOTSTRAP_CSS : kalatheme_get_bootswatch_theme($library)->cssCdn;
123-
drupal_add_css($base['scheme'] . ":" . $css, 'external');
123+
if ($library == 'default') {
124+
$css = $base['scheme'] . ':' . KALATHEME_BOOTSTRAP_CSS;
125+
}
126+
else {
127+
$css = kalatheme_get_bootswatch_theme($library)->cssCdn;
128+
}
129+
drupal_add_css($css, 'external');
124130
}
125131
}
126132
// Use Font Awesome

0 commit comments

Comments
 (0)