Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
json
page
components
list.php
Go to the documentation of this file.
1
<?php
8
$items
=
elgg_extract
(
'items'
,
$vars
);
9
10
$list
=
'['
;
11
if
(is_array(
$items
) &&
count
(
$items
) > 0) {
12
foreach
(
$items
as
$item
) {
13
$list
.=
elgg_view_list_item
($item,
$vars
);
14
$list
.=
','
;
15
}
16
17
$list
=
rtrim
(
$list
,
','
);
18
}
19
20
$list
.=
']'
;
21
22
echo
$list
;
$item
if(!$items) $item
Definition:
delete.php:13
rtrim
count
elgg_extract
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
elgg_view_list_item($item, array $vars=[])
View an item in a list.
Definition:
views.php:1232
$items
$items
View a list of items.
Definition:
list.php:19
$list
$list
Definition:
list.php:10
$vars
$vars
Definition:
theme.php:5
Generated on Sat Dec 21 2024 00:02:54 for Elgg by
1.8.11