Elgg  Version 3.0
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_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:1153
elgg_view_menu($menu, array $vars=[])
Render a menu.
Definition: views.php:755
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: navigation.php:348
elgg echo
Translates a string.
Definition: languages.js:43
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:1131
$vars['type']
Definition: save.php:11