diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-08-09 16:54:50 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-08-09 16:54:50 +0000 |
commit | a4df7936bb2a681b1278a70384da1e739abc423e (patch) | |
tree | db9d9b04400bb59a8ebba37dd2e661f0f675ec00 /themes/bartik/template.php | |
parent | 8db34bb2712da77adf9efaee62e3095319c52dfa (diff) | |
download | brdo-a4df7936bb2a681b1278a70384da1e739abc423e.tar.gz brdo-a4df7936bb2a681b1278a70384da1e739abc423e.tar.bz2 |
#845928 by JohnAlbin: Fixed System menu blocks don't get the same styling as menu module blocks.
Diffstat (limited to 'themes/bartik/template.php')
-rw-r--r-- | themes/bartik/template.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/themes/bartik/template.php b/themes/bartik/template.php index 128c6458d..f57f9fa75 100644 --- a/themes/bartik/template.php +++ b/themes/bartik/template.php @@ -105,17 +105,9 @@ function bartik_process_maintenance_page(&$variables) { function bartik_preprocess_block(&$variables) { // In the header region, visually hide the title of any menu block or of the // user login block, but leave it accessible. - if ($variables['block']->region == 'header' && ($variables['block']->module == 'menu' || $variables['block']->module == 'user' && $variables['block']->delta == 'login')) { + if ($variables['block']->region == 'header' && ($variables['block']->module == 'user' && $variables['block']->delta == 'login' || in_array('block-menu', $variables['classes_array']))) { $variables['title_attributes_array']['class'][] = 'element-invisible'; } - // System menu blocks should get the same class as menu module blocks. - if (in_array($variables['block']->delta, array_keys(menu_list_system_menus()))) { - $variables['classes_array'][] = 'block-menu'; - // Also, hide the title if its in the header region. - if ($variables['block']->region == 'header') { - $variables['title_attributes_array']['class'][] = 'element-invisible'; - } - } // Set "first" and "last" classes. if ($variables['block']->position_first){ $variables['classes_array'][] = 'first'; |