Elgg
Version 2.3
views
default
input
userpicker
item.php
Go to the documentation of this file.
1
<?php
12
/* @var ElggEntity $entity */
13
$entity
=
$vars
[
'entity'
];
14
$input_name
=
$vars
[
'input_name'
];
15
16
17
$icon
=
elgg_view_entity_icon
(
$entity
,
'tiny'
, array(
'use_hover'
=>
false
));
18
19
$name
=
$entity
->name;
20
if
(
$name
==
''
) {
21
$name
=
$entity
->title;
22
}
23
24
?>
25
<
li
data-guid=
'<?php echo $entity->guid ?>'
>
26
<
div
class
=
'elgg-image-block'
>
27
<
div
class
=
'elgg-image'
><?php echo
$icon
?></
div
>
28
<
div
class
=
'elgg-image-alt'
><?php echo
elgg_view_icon
(
'delete-alt'
,
'elgg-user-picker-remove'
); ?></
div
>
29
<
div
class
=
'elgg-body'
><?php echo htmlspecialchars(
$name
, ENT_QUOTES,
'UTF-8'
); ?></
div
>
30
</
div
>
31
<
input
type
=
"hidden"
32
name
=
"<?php echo htmlspecialchars($input_name, ENT_QUOTES, 'UTF-8'); ?>[]"
33
value=
"<?php echo $entity->guid ?>"
>
34
</
li
>
name
$site name
Definition:
update_basic.php:22
div
fieldset div
Definition:
admin.css.php:485
type
list style type
Definition:
admin.css.php:808
input
elgg table input[type=checkbox]
Definition:
admin.css.php:404
li
elgg menu user li
Definition:
admin.css.php:211
$entity
$entity
Definition:
item.php:13
$input_name
$input_name
Definition:
item.php:14
$name
$name
Definition:
item.php:19
$icon
$icon
Definition:
item.php:17
elgg_view_entity_icon
elgg_view_entity_icon(\ElggEntity $entity, $size='medium', $vars=array())
View the icon of an entity.
Definition:
views.php:936
elgg_view_icon
elgg_view_icon($name, $vars=array())
View one of the icons.
Definition:
views.php:1582
$vars
$vars['entity']
Definition:
plugin_settings.php:15
Generated on Fri Aug 29 2025 00:00:47 for Elgg by
1.9.1