Elgg  Version 4.3
breadcrumbs.php
Go to the documentation of this file.
1 <?php
22 $breadcrumbs = elgg_extract('breadcrumbs', $vars);
24 
25 echo elgg_view_menu('breadcrumbs', [
26  'items' => $breadcrumbs,
27  'sort_by' => 'register',
28  'class' => elgg_extract_class($vars, ['elgg-breadcrumbs', 'elgg-menu-hz']),
29 ]);
elgg_get_breadcrumbs(array $breadcrumbs=null)
Returns all breadcrumbs as an array [ [ &#39;text&#39; => &#39;Breadcrumb title&#39;, &#39;href&#39; => &#39;/path/to/page&#39;, ] ]
Definition: breadcrumbs.php:71
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:569
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:468
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:547
$breadcrumbs
Displays breadcrumbs.
Definition: breadcrumbs.php:22
elgg echo
Translates a string.
Definition: deprecated.js:530
$vars['head']
Definition: html.php:24