From a42b84e5d690a82c897edf90b37045f0e3aa68a2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 19 Jun 2004 08:24:14 +0000 Subject: 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. --- includes/menu.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes') 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 .= "\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 '
  • '. theme('menu_item', $mid) . theme('menu_local_subtasks', $mid) ."
  • \n"; + return '
  • '. theme('menu_item', $mid) ."
  • \n"; } else { return '
  • '. theme('menu_item', $mid) ."
  • \n"; -- cgit v1.2.3