Skip to content

Commit

Permalink
Merge pull request #289 from scottrigby/7.x-3.x
Browse files Browse the repository at this point in the history
Fixes #288
  • Loading branch information
RobLoach authored Jul 30, 2016
2 parents 0e78f70 + 6a2b5c8 commit 1eaf867
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions template.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,17 @@ function kalatheme_theme($existing, $type, $theme, $path) {
*/
function kalatheme_css_alter(&$css) {
// Unset some panopoly css.
$panopoly_admin_path = drupal_get_path('module', 'panopoly_admin');
if (isset($css[$panopoly_admin_path . '/panopoly-admin.css'])) {
unset($css[$panopoly_admin_path . '/panopoly-admin.css']);
if (module_exists('panopoly_admin')) {
$panopoly_admin_path = drupal_get_path('module', 'panopoly_admin');
if (isset($css[$panopoly_admin_path . '/panopoly-admin.css'])) {
unset($css[$panopoly_admin_path . '/panopoly-admin.css']);
}
}
$panopoly_magic_path = drupal_get_path('module', 'panopoly_magic');
if (isset($css[$panopoly_magic_path . '/css/panopoly-modal.css'])) {
unset($css[$panopoly_magic_path . '/css/panopoly-modal.css']);
if (module_exists('panopoly_magic')) {
$panopoly_magic_path = drupal_get_path('module', 'panopoly_magic');
if (isset($css[$panopoly_magic_path . '/css/panopoly-modal.css'])) {
unset($css[$panopoly_magic_path . '/css/panopoly-modal.css']);
}
}
// Unset some core css.
unset($css['modules/system/system.menus.css']);
Expand Down

0 comments on commit 1eaf867

Please sign in to comment.