You are here

function theme_crumbs_breadcrumb_current_page in Crumbs, the Breadcrumbs suite 7.2

Same name and namespace in other branches
  1. 7 crumbs.module \theme_crumbs_breadcrumb_current_page()

Default theme implementation for theme('crumbs_breadcrumb_current_page').

Parameters

array $variables:

Return value

string

1 theme call to theme_crumbs_breadcrumb_current_page()
crumbs_CurrentPageInfo::breadcrumbHtml in lib/CurrentPageInfo.php
Build the breadcrumb HTML.

File

./crumbs.theme.inc, line 67

Code

function theme_crumbs_breadcrumb_current_page(array $variables) {
  $item = $variables['item'];
  switch ($variables['show_current_page']) {
    case CRUMBS_SHOW_CURRENT_PAGE_SPAN:
      return '<span class="crumbs-current-page">' . check_plain($item['title']) . '</span>';
    case CRUMBS_SHOW_CURRENT_PAGE_LINK:
      $options = isset($item['localized_options']) ? $item['localized_options'] : array();
      return l($item['title'], $item['link_path'], $options);
    default:
      return check_plain($item['title']);
  }
}