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

◆ $entity

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.

@uses $vars['entity'] entity to edit @uses $vars['icon_type'] the type of the icon (default: icon) @uses $vars['show_thumb'] show the thumb of the entity if available (default: !cropper_enabled) @uses $vars['thumb_size'] the icon size to use as the thumb (default: medium) @uses $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.

◆ $icon_type

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

Definition at line 22 of file thumb.php.

◆ $size

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

◆ if

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

Definition at line 25 of file thumb.php.