We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6664460 + 19e0897 commit 767da80Copy full SHA for 767da80
template.php
@@ -118,9 +118,15 @@ function kalatheme_process_page(&$variables) {
118
if ($library !== 'none' && !empty($library)) {
119
// Add the JS
120
drupal_add_js($base['scheme'] . ":" . KALATHEME_BOOTSTRAP_JS, 'external');
121
+
122
// Add the CSS
- $css = ($library === 'default') ? KALATHEME_BOOTSTRAP_CSS : kalatheme_get_bootswatch_theme($library)->cssCdn;
123
- drupal_add_css($base['scheme'] . ":" . $css, 'external');
+ 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');
130
}
131
132
// Use Font Awesome
0 commit comments