15 if (isset(
$vars[
'breadcrumbs'])) {
16 $breadcrumbs =
$vars[
'breadcrumbs'];
21 if (!is_array($breadcrumbs) || !$breadcrumbs) {
28 foreach ($breadcrumbs as $breadcrumb) {
32 if (!empty($breadcrumb[
'link'])) {
34 'href' => $breadcrumb[
'link'],
35 'text' => $breadcrumb[
'title'],
36 'encode_text' =>
true,
40 $crumb = htmlspecialchars($breadcrumb[
'title'], ENT_QUOTES,
'UTF-8',
false);
43 $lis .=
"<li>$crumb</li>";
elgg_extract_class(array $array, $existing=[])
Extract class names from an array with key "class", optionally merging into a preexisting set...
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
if(!is_array($breadcrumbs)||!$breadcrumbs) $attrs['class']
elgg echo
Translates a string.
elgg_get_breadcrumbs()
Returns all breadcrumbs as an array of array('title' => 'Title', 'link' => 'URL') ...
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.