Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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
$vars
$vars['entity']
Definition:
plugin_settings.php:15
div
fieldset div
Definition:
admin.css.php:485
table
table
Definition:
admin.css.php:59
echo
elgg echo
Translates a string.
Definition:
languages.js:48
tr
elgg table alt tr
Definition:
admin.css.php:424
td
td
Definition:
admin.css.php:63
style
list style
Definition:
admin.css.php:1234
$entity
$entity
Definition:
delete.php:7
elgg_view_entity_icon
elgg_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=array())
View the icon of an entity.
Definition:
views.php:936
get_entity
get_entity($guid)
Loads and returns an entity object from a guid.
Definition:
entities.php:204
Generated on Sat Dec 21 2024 00:01:05 for Elgg by
1.8.11