Skip to content

Instantly share code, notes, and snippets.

@robdecker
Last active November 2, 2019 02:15
Show Gist options
  • Save robdecker/5832840 to your computer and use it in GitHub Desktop.
Save robdecker/5832840 to your computer and use it in GitHub Desktop.
[Snippet for theme_breadcrumb] #d7
/**
* Implements theme_breadcrumb().
*/
function THEME_breadcrumb(&$vars) {
$breadcrumb = $vars['breadcrumb'];
if (!empty($breadcrumb)) {
$output = '<h2 class="element-invisible">' . t('You are here') . '</h2>';
$breadcrumb_separator = '<span class="separator"> &raquo; </span>';
$output .= '<div class="breadcrumb">' . implode($breadcrumb_separator, $breadcrumb) . '</div>';
return $output;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment