Elgg  Version master
Go to the documentation of this file.
1 <?php
11 if (!$item instanceof \ElggEntity) {
12  return;
13 }
15 if (elgg_extract('type', $vars)) {
16  // recognized type
17  echo elgg_view_list_item($item, (array) elgg_extract('item_vars', $vars));
18 }
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
elgg_view_list_item($item, array $vars=[])
View an item in a list.
Definition: views.php:1232
A single element of a menu.
Definition: item.php:9
Definition: theme.php:5