Skip to content

Commit

Permalink
#176 Catering for new bootswatch urls
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Walker committed May 27, 2015
1 parent ca9ab61 commit b368a6d
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 b368a6d

Please sign in to comment.