Elgg  Version master
list.php
Go to the documentation of this file.
1 <?php
8 $items = elgg_extract('items', $vars);
9 
10 if (is_array($items) && count($items) > 0) {
11  foreach ($items as $item) {
12  echo elgg_view_list_item($item, $vars);
13  }
14 }
if(!$items) $item
Definition: delete.php:13
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
$items
View a list of items.
Definition: list.php:19
$vars
Definition: theme.php:5