Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
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:1447
$icon
Definition: item.php:17
$input_name
Definition: item.php:14
$site name
$vars['entity']
$entity
Definition: item.php:13
elgg river comments li
$name
Definition: item.php:19
elgg_view_entity_icon(\ElggEntity $entity, $size= 'medium', $vars=array())
View the icon of an entity.
Definition: views.php:895
elgg river item input[type=text]