diff --git a/template.php b/template.php index d61dc35..440cf2e 100644 --- a/template.php +++ b/template.php @@ -118,9 +118,15 @@ function kalatheme_process_page(&$variables) { if ($library !== 'none' && !empty($library)) { // Add the JS drupal_add_js($base['scheme'] . ":" . KALATHEME_BOOTSTRAP_JS, 'external'); + // Add the CSS - $css = ($library === 'default') ? KALATHEME_BOOTSTRAP_CSS : kalatheme_get_bootswatch_theme($library)->cssCdn; - drupal_add_css($base['scheme'] . ":" . $css, 'external'); + if ($library == 'default') { + $css = $base['scheme'] . ':' . KALATHEME_BOOTSTRAP_CSS; + } + else { + $css = kalatheme_get_bootswatch_theme($library)->cssCdn; + } + drupal_add_css($css, 'external'); } } // Use Font Awesome