Elgg
Version 2.3
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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
>
elgg_view_icon
elgg_view_icon($name, $vars=array())
View one of the icons.
Definition:
views.php:1582
$icon
$icon
Definition:
item.php:17
$input_name
$input_name
Definition:
item.php:14
$vars
$vars['entity']
Definition:
plugin_settings.php:15
$entity
$entity
Definition:
item.php:13
type
list style type
Definition:
admin.css.php:808
li
elgg menu user li
Definition:
admin.css.php:211
div
fieldset div
Definition:
admin.css.php:485
$name
$name
Definition:
item.php:19
echo
elgg echo
Translates a string.
Definition:
languages.js:48
name
$site name
Definition:
update_basic.php:22
elgg_view_entity_icon
elgg_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=array())
View the icon of an entity.
Definition:
views.php:936
input
elgg table input[type=checkbox]
Definition:
admin.css.php:404
Generated on Sat Dec 21 2024 00:01:05 for Elgg by
1.8.11