Elgg  Version master
Variables
thumb.php File Reference

Go to the source code of this file.

Variables

if(elgg_extract('show_thumb', $vars,!elgg_extract('cropper_enabled', $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,!elgg_extract('cropper_enabled', $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: !cropper_enabled) $vars['thumb_size'] the icon size to use as the thumb (default: medium) $vars['cropper_enabled'] enable cropper features (default: false), when cropper is enabled thumbnail is disabled by default

Definition at line 16 of file thumb.php.

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

Definition at line 22 of file thumb.php.

$size = elgg_extract('thumb_size', $vars, 'medium')
if(!$entity->hasIcon($size, $icon_type))

Definition at line 25 of file thumb.php.