' . $output . $sub_menu . "\n";
}
/*
* Customize the PRIMARY and SECONDARY LINKS, to allow the admin tabs to work on all browsers
*/
function basic_menu_local_task($variables) {
$link = $variables['element']['#link'];
$link['localized_options']['html'] = TRUE;
return '
' . l('' . $link['title'] . '', $link['href'], $link['localized_options']) . "\n";
}
/*
* Duplicate of theme_menu_local_tasks() but adds clearfix to tabs.
*/
function basic_menu_local_tasks() {
$output = array();
if ($primary = menu_primary_local_tasks()) {
if(menu_secondary_local_tasks()) {
$primary['#prefix'] = '';
}
else {
$primary['#prefix'] = '';
}
$primary['#suffix'] = '
';
$output[] = $primary;
}
if ($secondary = menu_secondary_local_tasks()) {
$secondary['#prefix'] = '';
$secondary['#suffix'] = '
';
$output[] = $secondary;
}
return $output;
}
/*
* Return a themed breadcrumb trail.
* Alow you to customize the breadcrumb markup
*/
function basic_breadcrumb($variables) {
$breadcrumb = $variables['breadcrumb'];
if (!empty($breadcrumb)) {
// Provide a navigational heading to give context for breadcrumb links to
// screen-reader users. Make the heading invisible with .element-invisible.
$output = '' . t('You are here') . ':';
$output .= '' . implode(' ยป ', $breadcrumb) . '
';
return $output;
}
}