123456789101112131415161718192021222324252627282930 |
- <?php
- /**
- * Group view in Group Picker
- *
- * @package Elgg
- * @subpackage Core
- *
- * @uses $vars['entity'] Group entity
- * @uses $vars['input_name'] Name of the returned data array
- */
- /* @var ElggEntity $entity */
- $entity = $vars['entity'];
- $input_name = $vars['input_name'];
- $icon = elgg_view_entity_icon($entity, 'tiny', array('use_hover' => false));
- $name = $entity->name;
- ?>
- <li data-guid='<?php echo $entity->getGUID() ?>'>
- <div class='elgg-image-block'>
- <div class='elgg-image'><?php echo $icon ?></div>
- <div class='elgg-image-alt'><?php echo elgg_view_icon("delete-alt", "elgg-group-picker-remove"); ?></div>
- <div class='elgg-body'><?php echo htmlspecialchars($name, ENT_QUOTES, 'UTF-8'); ?></div>
- </div>
- <input type="hidden" name="<?php echo htmlspecialchars($input_name, ENT_QUOTES, 'UTF-8'); ?>[]" value="<?php echo $entity->getGUID() ?>" />
- </li>
|