<?php
function MYTHEME_breadcrumb($variables) {
$breadcrumb = $variables['breadcrumb'];
if (!empty($breadcrumb)) {
// Adding the title of the current page to the breadcrumb.
$breadcrumb[] = drupal_get_title();
// 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;
}
}
?>
vs tema orange
/**
* Return a themed breadcrumb trail.
*
* @param $breadcrumb
* An array containing the breadcrumb links.
* @return a string containing the breadcrumb output.
*/
function orange_breadcrumb($vars) {
$breadcrumb = $vars['breadcrumb'];
$output = '';
if (!empty($breadcrumb)) {
// Provide a navigational heading to give context for breadcrumb links to
// screen-reader users. Make the heading invisible with .element-invisible.
$breadcrumb[] = drupal_get_title();
$separator = theme('image', array('path' => path_to_theme() . '/images/black-bullet.gif'));
$output .= '' . implode(' '. $separator .' ', $breadcrumb) . '';
return $output;
}
}