Skip to content

Commit

Permalink
Merge pull request #178 from drupalprojects/7.x-3.x1-fix-bootswatch-s…
Browse files Browse the repository at this point in the history
…cheme

Fix bootswatch scheme issue
  • Loading branch information
pirog committed May 27, 2015
2 parents 6664460 + 19e0897 commit 767da80
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 767da80

Please sign in to comment.