Theme function for the breadcrumb.
Paramètres
Assoc $variables: arguments
Return value
string HTML for the themed breadcrumb.
1 theme call to theme_easy_breadcrumb()
- _easy_breadcrumb_block dans includes/
easy_breadcrumb.blocks.inc - Obtains the 'easy_breadcrumb' block.
Fichier
-
./
easy_breadcrumb.module, line 142
Code
function theme_easy_breadcrumb($variables) {
$breadcrumb = $variables['breadcrumb'];
$segments_quantity = $variables['segments_quantity'];
$separator = $variables['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;
}