15 if (isset(
$vars[
'breadcrumbs'])) {
16 $breadcrumbs =
$vars[
'breadcrumbs'];
21 $class =
'elgg-menu elgg-breadcrumbs';
24 $class =
"$class $additional_class";
27 if (is_array($breadcrumbs) && count($breadcrumbs) > 0) {
28 echo "<ul class=\"$class\">";
29 foreach ($breadcrumbs as $breadcrumb) {
33 if (!empty($breadcrumb[
'link'])) {
35 'href' => $breadcrumb[
'link'],
36 'text' => $breadcrumb[
'title'],
37 'encode_text' =>
true,
41 $crumb = htmlspecialchars($breadcrumb[
'title'], ENT_QUOTES,
'UTF-8',
false);
43 echo "<li>$crumb</li>";
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
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(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
if(file_exists($welcome)) $vars