I'm trying to move the breadcrumb from one part of my theme to another, and they have different template files (using an Omega subtheme). $breadcrumb seems to be an array. I've tried l($breadcrumb) and theme($breadcrumb) to no avail. How do you print out a properly themed and string-ified breadcrumb in a template?
Here's my code btw.
<?php
function rescue_breadcrumb($variables) {
$breadcrumb = $variables['breadcrumb'];
if (!empty($breadcrumb)) {
$crumbs = '<ul class="breadcrumbs">';
foreach($breadcrumb as $value) {
$crumbs .= '<li>'.$value.'</li>';
}
$crumbs .= '</ul>';
}
return $crumbs;
}
$breadcrumb = drupal_get_breadcrumb();
if ($breadcrumb): ?>
<div id="breadcrumb" class="grid-<?php print $columns; ?>"><?php print $breadcrumb; ?></div>
<?php endif; ?>