Elgg  Version master
Variables
default.php File Reference

Go to the source code of this file.

Variables

 $entity = elgg_extract('entity', $vars)
 Default user HTML view for autocomplete items. More...
 
if(!$entity instanceof ElggUser$input_name = elgg_extract('input_name', $vars)
 
if(empty($input_name)) $icon = elgg_view_entity_icon($entity, 'tiny', ['use_hover' => false])
 
 $delete_icon = elgg_view_icon('delete', ['class' => 'elgg-autocomplete-item-remove'])
 
 $body = elgg_view_image_block($icon, $entity->getDisplayName(), ['image_alt' => $delete_icon])
 

Variable Documentation

$body = elgg_view_image_block($icon, $entity->getDisplayName(), ['image_alt' => $delete_icon])

Definition at line 22 of file default.php.

$delete_icon = elgg_view_icon('delete', ['class' => 'elgg-autocomplete-item-remove'])

Definition at line 20 of file default.php.

$entity = elgg_extract('entity', $vars)

Default user HTML view for autocomplete items.

$vars['entity'] the selected entity $vars['input_name'] name of the returned data array

Definition at line 9 of file default.php.

if (empty($input_name)) $icon = elgg_view_entity_icon($entity, 'tiny', ['use_hover' => false])

Definition at line 19 of file default.php.

if (!$entity instanceof ElggUser) $input_name = elgg_extract('input_name', $vars)

Definition at line 14 of file default.php.