function theme_easy_breadcrumb in Easy Breadcrumb 6
Same name and namespace in other branches
- 7 easy_breadcrumb.module \theme_easy_breadcrumb()
Theme function for the breadcrumb.
Parameters
array $breadcrumb: breadcrumb segments
int $segments_quantity: segments number
string $separator: segments separator
Return value
string HTML for the themed breadcrumb.
1 theme call to theme_easy_breadcrumb()
- _easy_breadcrumb_block in includes/
easy_breadcrumb.blocks.inc - Obtains the 'easy_breadcrumb' block.
File
- ./
easy_breadcrumb.module, line 116 - The Easy Breadcrumb module provides a block to be embedded in any page, typically at some place near the page's header. Easy Breadcrumb uses the URL (path alias) and the current page's title (when available) to obtain the breadcrumb's…
Code
function theme_easy_breadcrumb($breadcrumb, $segments_quantity, $separator) {
$html = '';
if ($segments_quantity > 0) {
$html .= '<div class="easy-breadcrumb">';
for ($i = 0, $s = $segments_quantity - 1; $i < $segments_quantity; ++$i) {
$html .= '<span class="easy-breadcrumb_segment-wrapper">' . $breadcrumb[$i] . '</span>';
if ($i < $s) {
$html .= '<span class="easy-breadcrumb_segment-separator"> ' . $separator . ' </span>';
}
}
$html .= '</div>';
}
return $html;
}