Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
list.php
Go to the documentation of this file.
1 <?php
8 $items = $vars['items'];
9 
10 $list = '[';
11 if (is_array($items) && sizeof($items) > 0) {
12  foreach ($items as $item) {
13  $list .= elgg_view_list_item($item, $vars);
14  $list .= ',';
15  }
16  $list = rtrim($list, ',');
17 }
18 
19 $list .= ']';
20 
21 echo $list;
$vars['entity']
$list
Definition: list.php:10
elgg_view_list_item($item, array $vars=array())
View an item in a list.
Definition: views.php:1422
$item
Definition: item.php:12
$items
Definition: list.php:11