Witam korzystam z skórki basic w drupalu i potrzebuje aby breadcrumbs czyli ostan tekst był linkiem.
Tak to wygląda.
<div class="breadcrumb"><a href="/">Strona główna
</a>ťO firmie
</div>
A kod z template.php
/**
* Return a themed breadcrumb trail.
*
* @param $breadcrumb
* An array containing the breadcrumb links.
* @return
* A string containing the breadcrumb output.
*/
function basic_breadcrumb($variables) {
$breadcrumb = $variables['breadcrumb'];
// Determine if we are to display the breadcrumb.
$show_breadcrumb = theme_get_setting('basic_breadcrumb');
if ($show_breadcrumb == 'yes' || $show_breadcrumb == 'admin' && arg(0) == 'admin') {
// Optionally get rid of the homepage link.
$show_breadcrumb_home = theme_get_setting('basic_breadcrumb_home');
if (!$show_breadcrumb_home) {
}
// Return the breadcrumb with separators.
if (!empty($breadcrumb)) { $breadcrumb_separator = theme_get_setting('basic_breadcrumb_separator');
$trailing_separator = $title = '';
if (theme_get_setting('basic_breadcrumb_title')) {
$item = menu_get_item();
if (!empty($item['tab_parent'])) { // If we are on a non-default tab, use the tab's title.
$title = check_plain($item['title']);
}
else {
$title = drupal_get_title();
}
if ($title) {
$trailing_separator = $breadcrumb_separator;
}
}
elseif (theme_get_setting('basic_breadcrumb_trailing')) {
$trailing_separator = $breadcrumb_separator;
}
// Provide a navigational heading to give context for breadcrumb links to
// screen-reader users. Make the heading invisible with .element-invisible.
$heading = '<h2 class="element-invisible">' . t('You are here') . '</h2>';
return $heading . '<div class="breadcrumb">' . implode($breadcrumb_separator, $breadcrumb) . $trailing_separator . $title . '</div>'; }
}
// Otherwise, return an empty string.
return '';
}