Elgg  Version 2.3
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 icons.
Definition: views.php:1582
$icon
Definition: item.php:17
$input_name
Definition: item.php:14
$vars['entity']
$entity
Definition: item.php:13
list style type
Definition: admin.css.php:808
elgg menu user li
Definition: admin.css.php:211
fieldset div
Definition: admin.css.php:485
$name
Definition: item.php:19
elgg echo
Translates a string.
Definition: languages.js:48
$site name
elgg_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=array())
View the icon of an entity.
Definition: views.php:936
elgg table input[type=checkbox]
Definition: admin.css.php:404