Elgg  Version 1.9
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;
elgg_view_list_item($item, array $vars=array())
View an item in a list.
Definition: views.php:1345
$list
Definition: list.php:10
$item
Definition: item.php:12
elgg echo
Translates a string.
Definition: languages.js:43
$items
Definition: list.php:11
if(file_exists($welcome)) $vars
Definition: upgrade.php:93