Skip to content

Commit

Permalink
Fix Bootswatch API messing w/CSS
Browse files Browse the repository at this point in the history
The site CSS became subtly messed up (header disjointed, missing
padding, etc.) at some point over last weekend. The culprit turned out
to be a change in the Bootswatch API (see Kalatheme GitHub repo issue:
drupalprojects/kalatheme#176).
  • Loading branch information
avisconti committed May 27, 2015
1 parent 8f72fc3 commit 7a4ff14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions The Code/themes/kalatheme/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,13 @@ function kalatheme_process_page(&$variables) {
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'); // Fixed re: https://github.com/drupalprojects/kalatheme/issues/176
if (strpos($css, 'http') <> 0) {
drupal_add_css($base['scheme'] . ":" . $css, 'external');
}
else {
drupal_add_css($css, 'external');
}
}
}
$font_awesome_active = FALSE;
Expand Down

0 comments on commit 7a4ff14

Please sign in to comment.