5 * Generate the HTML representing a given menu item ID.
7 * An implementation of theme_menu_item_link()
10 * array The menu item to render.
12 * array The menu item which should be used to find the correct path.
14 * string The rendered menu item.
16 function phptemplate_menu_item_link($item, $link_item) {
17 // If an item is a LOCAL TASK, render it as a tab
18 $tab = ($item['type'] & MENU_IS_LOCAL_TASK
) ? TRUE
: FALSE
;
20 $tab ?
'<span class="tab">'.
check_plain($item['title']) .
'</span>' : $item['title'],
22 !empty($item['description']) ?
array('title' => $item['description']) : array(),
23 !empty($item['query']) ?
$item['query'] : NULL
,
24 !empty($link_item['fragment']) ?
$link_item['fragment'] : NULL
,
31 * Duplicate of theme_menu_local_tasks() but adds clear-block to tabs.
33 function phptemplate_menu_local_tasks() {
36 if ($primary = menu_primary_local_tasks()) {
37 $output .
= '<ul class="tabs primary clear-block">'.
$primary .
'</ul>';
39 if ($secondary = menu_secondary_local_tasks()) {
40 $output .
= '<ul class="tabs secondary clear-block">'.
$secondary .
'</ul>';