diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-06-19 08:24:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-06-19 08:24:14 +0000 |
commit | a42b84e5d690a82c897edf90b37045f0e3aa68a2 (patch) | |
tree | e0d622b76b9be7c136e15c844659583cd780dd9d /includes | |
parent | a9c560282b4f7b8b21695b304c8cc89402a8efd1 (diff) | |
download | brdo-a42b84e5d690a82c897edf90b37045f0e3aa68a2.tar.gz brdo-a42b84e5d690a82c897edf90b37045f0e3aa68a2.tar.bz2 |
First tab improvements by Adrian:
+ Changed menu.inc to generate two separate lists instead of nested lists:
that seems to be the only alternative to get rid of absolute positioning.
+ Changed the tabs code to be more sexy and put the code in misc/drupal.css
so all themes are automagically updated.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/menu.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index ac035dc0d..59ccdcde8 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -445,10 +445,10 @@ function theme_menu_local_tasks() { $output .= theme('menu_local_task', $mid, $active); $output .= implode($tabs); $output .= "</ul>\n"; + $output .= theme('menu_local_subtasks', $mid); } } } - return $output; } @@ -462,7 +462,7 @@ function theme_menu_local_tasks() { */ function theme_menu_local_task($mid, $active) { if ($active) { - return '<li class="active">'. theme('menu_item', $mid) . theme('menu_local_subtasks', $mid) ."</li>\n"; + return '<li class="active">'. theme('menu_item', $mid) ."</li>\n"; } else { return '<li>'. theme('menu_item', $mid) ."</li>\n"; |