Elgg  Version 3.0
Variables
thumb.php File Reference

Go to the source code of this file.

Variables

if(elgg_extract('show_thumb', $vars, true)===false) $entity = elgg_extract('entity', $vars)
 Show an example of the current icon. More...
 
if(!$entity instanceof ElggEntity$icon_type = elgg_extract('icon_type', $vars, 'icon')
 
 $size = elgg_extract('thumb_size', $vars, 'medium')
 
 if (!$entity->hasIcon($size, $icon_type))
 

Variable Documentation

if (elgg_extract('show_thumb', $vars, true)===false) $entity = elgg_extract('entity', $vars)

Show an example of the current icon.

$vars['entity'] entity to edit $vars['icon_type'] the type of the icon (default: icon) $vars['show_thumb'] show the thumb of the entity if available (default: true) $vars['thumb_size'] the icon size to use as the thumb (default: medium)

Definition at line 15 of file thumb.php.

if (!$entity instanceof ElggEntity) $icon_type = elgg_extract('icon_type', $vars, 'icon')

Definition at line 21 of file thumb.php.

$size = elgg_extract('thumb_size', $vars, 'medium')

Definition at line 22 of file thumb.php.

if(!$entity->hasIcon($size, $icon_type))

Definition at line 24 of file thumb.php.