Elgg
Version 1.11
views
default
core
friends
tablelist.php
Go to the documentation of this file.
1
<?php
12
if
(is_array(
$vars
[
'entities'
])) {
13
14
?>
15
16
<
table
cellspacing=
"0"
id
=
"friendspicker-members-table"
>
17
<
tr
>
18
<?php
19
$column
= 0;
20
foreach
(
$vars
[
'entities'
] as
$entity
) {
21
if
(!(
$entity
instanceof
ElggEntity
)) {
22
$entity
=
get_entity
(
$entity
);
23
}
24
25
if
(
$entity
instanceof
ElggEntity
) {
26
?>
27
<
td
style
=
"width:25px;"
>
28
<
div
style
=
"width: 25px;"
class
=
"mbl"
>
29
<?php echo
elgg_view_entity_icon
(
$entity
,
'tiny'
); ?>
30
</
div
>
31
</
td
>
32
<
td
style
=
"width: 200px;"
class
=
"pas"
>
33
<?php echo
$entity
->name; ?>
34
</
td
>
35
<?php
36
$column
++;
37
if
(
$column
== 3) {
38
echo
"</tr><tr>"
;
39
$column
= 0;
40
}
41
}
42
}
43
44
if
(
$column
< 3 &&
$column
!= 0) echo
"</tr>"
;
45
echo
"</table>"
;
46
}
47
48
if
(isset(
$vars
[
'content'
])) {
49
echo
$vars
[
'content'
];
50
}
$column
$column
Definition:
add.php:13
ElggEntity
Definition:
ElggEntity.php:45
$entity
$entity
Definition:
delete.php:10
get_entity
get_entity($guid)
Loads and returns an entity object from a guid.
Definition:
entities.php:382
$vars
if(file_exists($welcome)) $vars
Definition:
upgrade.php:93
tr
elgg table alt tr
Definition:
admin.php:420
div
fieldset div
Definition:
admin.php:470
td
td
Definition:
admin.php:63
table
table
Definition:
admin.php:59
style
font style
Definition:
navigation.php:456
elgg_view_entity_icon
elgg_view_entity_icon(\ElggEntity $entity, $size='medium', $vars=array())
View the icon of an entity.
Definition:
views.php:865
Generated on Fri Aug 29 2025 00:00:38 for Elgg by
1.9.1