Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [PHP]Breadcrumb modyfikacja
Forum PHP.pl > Forum > Przedszkole
Sebastian003
Witam, mam taki breadcrumb wyswietla mi sie tak... chciałbym aby ciekawe rozwiazania mialy w sobie klase jak zmodyfikować ten template.php

  1. <div class="breadcrumb">
  2. <a href="/">Strona główna</a>
  3. »
  4. <a href="/oferta">Oferta</a>
  5. »Ciekawe rozwiazania
  6. </div>


  1. function basic_breadcrumb($variables) {
  2. $breadcrumb = $variables['breadcrumb'];
  3. // Determine if we are to display the breadcrumb.
  4. $show_breadcrumb = theme_get_setting('basic_breadcrumb');
  5. if ($show_breadcrumb == 'yes' || $show_breadcrumb == 'admin' && arg(0) == 'admin') {
  6.  
  7. // Optionally get rid of the homepage link.
  8. $show_breadcrumb_home = theme_get_setting('basic_breadcrumb_home');
  9. if (!$show_breadcrumb_home) {
  10. array_shift($breadcrumb);
  11. }
  12.  
  13. // Return the breadcrumb with separators.
  14. if (!empty($breadcrumb)) {
  15. $breadcrumb_separator = theme_get_setting('basic_breadcrumb_separator');
  16. $trailing_separator = $title = '';
  17. if (theme_get_setting('basic_breadcrumb_title')) {
  18. $item = menu_get_item();
  19. if (!empty($item['tab_parent'])) {
  20. // If we are on a non-default tab, use the tab's title.
  21. $title = check_plain($item['title']);
  22. }
  23. else {
  24. $title = drupal_get_title();
  25. }
  26. if ($title) {
  27. $trailing_separator = $breadcrumb_separator;
  28. }
  29. }
  30. elseif (theme_get_setting('basic_breadcrumb_trailing')) {
  31. $trailing_separator = $breadcrumb_separator;
  32. }
  33.  
  34. // Provide a navigational heading to give context for breadcrumb links to
  35. // screen-reader users. Make the heading invisible with .element-invisible.
  36. $heading = '<h2 class="element-invisible">' . t('You are here') . '</h2>';
  37.  
  38. return $heading . '<div class="breadcrumb">' . implode($breadcrumb_separator, $breadcrumb) . $trailing_separator . $title . '</div>';
  39. }
  40. }
  41. // Otherwise, return an empty string.
  42. return '';
  43. }
CuteOne
  1. $title = '<div class="moja-klasa">'.$title.'</div>';
  2. return $heading . '<div class="breadcrumb">' . implode($breadcrumb_separator, $breadcrumb) . $trailing_separator . $title . '</div>';
To jest wersja lo-fi głównej zawarto¶ci. Aby zobaczyć pełn± wersję z większ± zawarto¶ci±, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.