Elgg  Version 1.11
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($name, $vars=array())
View one of the elgg sprite icons.
Definition: views.php:1403
$icon
Definition: item.php:17
$input_name
Definition: item.php:14
fieldset div
Definition: admin.php:470
$entity
Definition: item.php:13
$name
Definition: item.php:19
elgg echo
Translates a string.
Definition: languages.js:43
elgg menu user li
Definition: admin.php:211
$site name
list style type
Definition: admin.php:748
elgg_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=array())
View the icon of an entity.
Definition: views.php:865
elgg table input[type=checkbox]
Definition: admin.php:400
if(file_exists($welcome)) $vars
Definition: upgrade.php:93