Elgg  Version 2.3
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;
if(!$items) $item
Definition: delete.php:17
$vars['entity']
$list
Definition: list.php:10
elgg_view_list_item($item, array $vars=array())
View an item in a list.
Definition: views.php:1557
elgg echo
Translates a string.
Definition: languages.js:48
$items
Definition: list.php:11