includes/theme.inc, строка 631
- 5 – 6
theme_breadcrumb($breadcrumb)
Возвращает темизированные хлебные крошки.
Параметры
$breadcrumb
Массив, содержащий ссылки хлебных крошек.
Возвращаемое значение
Строка с HTML кодом, содержащим вывод хлебных крошек.
Return a themed breadcrumb trail.
Parameters
$breadcrumb
An array containing the breadcrumb links.
Return value
a string containing the breadcrumb output.
Связанные темы
- Система темизации
- Функции, которые выводят код HTML, и которые могут быть переопределены в темах пользователя.
- phptemplate_page in themes/engines/phptemplate/phptemplate.engine
- Prepare the values passed to the theme_page function to be passed
into a pluggable template engine. Uses the arg() function to
generate a series of page template files suggestions based on the
current path. If none are found, the default page.tpl.php...
- theme_page in includes/theme.inc
- Return an entire Drupal page displaying the supplied content.
Код
<?php
function theme_breadcrumb($breadcrumb) {
if (!empty($breadcrumb)) {
return '<div class="breadcrumb">'. implode(' » ', $breadcrumb) .'</div>';
}
}
?>
Войдите или
зарегистрируйтесь, чтобы получить возможность отправлять комментарии