item.php 874 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Group view in Group Picker
  4. *
  5. * @package Elgg
  6. * @subpackage Core
  7. *
  8. * @uses $vars['entity'] Group entity
  9. * @uses $vars['input_name'] Name of the returned data array
  10. */
  11. /* @var ElggEntity $entity */
  12. $entity = $vars['entity'];
  13. $input_name = $vars['input_name'];
  14. $icon = elgg_view_entity_icon($entity, 'tiny', array('use_hover' => false));
  15. $name = $entity->name;
  16. ?>
  17. <li data-guid='<?php echo $entity->getGUID() ?>'>
  18. <div class='elgg-image-block'>
  19. <div class='elgg-image'><?php echo $icon ?></div>
  20. <div class='elgg-image-alt'><?php echo elgg_view_icon("delete-alt", "elgg-group-picker-remove"); ?></div>
  21. <div class='elgg-body'><?php echo htmlspecialchars($name, ENT_QUOTES, 'UTF-8'); ?></div>
  22. </div>
  23. <input type="hidden" name="<?php echo htmlspecialchars($input_name, ENT_QUOTES, 'UTF-8'); ?>[]" value="<?php echo $entity->getGUID() ?>" />
  24. </li>