' . "\n" . '
' . "\n \n" ;
}
else{
return ' ' . "\n" . $tree . "\n" . "
\n";
}
}
function mothership_menu_item($link, $has_children, $menu = '', $in_active_trail = FALSE, $extra_class = NULL) {
if (theme_get_setting('mothership_cleanup_menu_leafs')) {
$class = ($menu ? 'expanded' : ($has_children ? 'collapsed' : 'leaf'));
}
if (!empty($extra_class) AND theme_get_setting('mothership_cleanup_menu_classes_first_last')) {
if ($class) {
$class .= ' '. $extra_class;
}
else{
$class .= $extra_class;
}
}
if ($in_active_trail AND theme_get_setting('mothership_cleanup_menu_classes_active')) {
$class .= ' active-trail';
}
if ($class) {
return ' '. $link . $menu ."\n";
}
else{
return ' '. $link . $menu ."\n";
}
}
function mothership_menu_local_task($link, $active = FALSE) {
if (theme_get_setting('mothership_cleanup_menu_classes_active')) {
return ' '. $link ."\n";
}
else{
return ' '. $link ."\n";
}
}
/* TODO remove the menu-xxx classes from primary /secundary */
function mothership_links($links, $attributes = array('class' => 'links')) {
// dsm($links);
$output = '';
if (count($links) > 0) {
if (theme_get_setting('mothership_cleanup_links_baseclass')) {
$output = ' ';
}
else{
$output = ' ' . "\n";
}
return $output;
}