14 if (isset(
$vars[
'breadcrumbs'])) {
15 $breadcrumbs =
$vars[
'breadcrumbs'];
20 $class =
'elgg-menu elgg-breadcrumbs';
23 $class =
"$class $additional_class";
26 if (is_array($breadcrumbs) && count($breadcrumbs) > 0) {
27 echo "<ul class=\"$class\">";
28 foreach ($breadcrumbs as $breadcrumb) {
29 if (!empty($breadcrumb[
'link'])) {
31 'href' => $breadcrumb[
'link'],
32 'text' => $breadcrumb[
'title'],
36 $crumb = $breadcrumb[
'title'];
38 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' => 'Readable Title', 'link' => 'URL') ...
elgg_view($view, $vars=array(), $bypass=false, $ignored=false, $viewtype= '')
Return a parsed view.
if(file_exists($welcome)) $vars