Witam korzystam z skórki basic w drupalu i potrzebuje aby breadcrumbs czyli ostan tekst był linkiem.
Tak to wygląda.

  1. <div class="breadcrumb"><a href="/">Strona główna</a>ťO firmie</div>


A kod z template.php


  1. /**
  2.  * Return a themed breadcrumb trail.
  3.  *
  4.  * @param $breadcrumb
  5.  * An array containing the breadcrumb links.
  6.  * @return
  7.  * A string containing the breadcrumb output.
  8.  */
  9. function basic_breadcrumb($variables) {
  10. $breadcrumb = $variables['breadcrumb'];
  11. // Determine if we are to display the breadcrumb.
  12. $show_breadcrumb = theme_get_setting('basic_breadcrumb');
  13. if ($show_breadcrumb == 'yes' || $show_breadcrumb == 'admin' && arg(0) == 'admin') {
  14.  
  15. // Optionally get rid of the homepage link.
  16. $show_breadcrumb_home = theme_get_setting('basic_breadcrumb_home');
  17. if (!$show_breadcrumb_home) {
  18. array_shift($breadcrumb);
  19. }
  20.  
  21. // Return the breadcrumb with separators.
  22. if (!empty($breadcrumb)) {
  23. $breadcrumb_separator = theme_get_setting('basic_breadcrumb_separator');
  24. $trailing_separator = $title = '';
  25. if (theme_get_setting('basic_breadcrumb_title')) {
  26. $item = menu_get_item();
  27. if (!empty($item['tab_parent'])) {
  28. // If we are on a non-default tab, use the tab's title.
  29. $title = check_plain($item['title']);
  30. }
  31. else {
  32. $title = drupal_get_title();
  33. }
  34. if ($title) {
  35. $trailing_separator = $breadcrumb_separator;
  36. }
  37. }
  38. elseif (theme_get_setting('basic_breadcrumb_trailing')) {
  39. $trailing_separator = $breadcrumb_separator;
  40. }
  41.  
  42. // Provide a navigational heading to give context for breadcrumb links to
  43. // screen-reader users. Make the heading invisible with .element-invisible.
  44. $heading = '<h2 class="element-invisible">' . t('You are here') . '</h2>';
  45.  
  46. return $heading . '<div class="breadcrumb">' . implode($breadcrumb_separator, $breadcrumb) . $trailing_separator . $title . '</div>';
  47. }
  48. }
  49. // Otherwise, return an empty string.
  50. return '';
  51. }