/**
* Make breadcrumbs include the current page as an inactive crumb
* Also, remove the top level for image_galleries.
*/
function phptemplate_breadcrumb($breadcrumb) {
if (!empty($breadcrumb)) {
$breadcrumb_new = array();
// Create new breadcrumb array without the top level image gallery link
foreach ($breadcrumb as $crumb) {
if (strstr($crumb, '<a href="/image">') != TRUE) {
$breadcrumb_new[] = $crumb;
}
}
$breadcrumb_new[] = '<span class="active">'. drupal_get_title() .'</span>';
return '<div class="breadcrumb">'. implode(' » ', $breadcrumb_new) .'</div>';
}
}