Elgg  Version master
Variables
crop_messages.php File Reference

Go to the source code of this file.

Variables

 $icon_type = elgg_extract('icon_type', $vars, 'icon')
 Show warning about size constraints when uploading/cropping an icon. More...
 
 $show_icon_cropper_messages = (bool) elgg_extract('cropper_show_messages', $vars, $icon_type === 'icon')
 
if(! $show_icon_cropper_messages) $errors = []
 
 $min_width = (int) elgg_extract('cropper_min_width', $vars)
 
if($min_width > 0) $min_height = (int) elgg_extract('cropper_min_height', $vars)
 
 $message
 
 $message_vars
 

Variable Documentation

◆ $errors

if (! $show_icon_cropper_messages) $errors = []

Definition at line 17 of file crop_messages.php.

◆ $icon_type

$icon_type = elgg_extract('icon_type', $vars, 'icon')

Show warning about size constraints when uploading/cropping an icon.

@uses $vars['cropper_show_messages'] Show messages (default: true for icon_type = 'icon', false otherwise) @uses $vars['cropper_min_width'] The minimal width of the cropped image @uses $vars['cropper_min_height'] The minimal height of the cropped image

Definition at line 10 of file crop_messages.php.

◆ $message

Initial value:
= elgg_view('output/longtext', [
'value' => implode('', $errors),
'sanitize' => false,
])
if(! $show_icon_cropper_messages) $errors
elgg_view(string $view, array $vars=[], string $viewtype='')
Return a parsed view.
Definition: views.php:156

Definition at line 54 of file crop_messages.php.

◆ $message_vars

$message_vars
Initial value:
= [
'class' => [
'elgg-entity-edit-icon-crop-messages',
'hidden',
],
]

Definition at line 58 of file crop_messages.php.

◆ $min_height

if ( $min_width > 0) $min_height = (int) elgg_extract('cropper_min_height', $vars)

Definition at line 30 of file crop_messages.php.

◆ $min_width

$min_width = (int) elgg_extract('cropper_min_width', $vars)

Definition at line 19 of file crop_messages.php.

◆ $show_icon_cropper_messages

$show_icon_cropper_messages = (bool) elgg_extract('cropper_show_messages', $vars, $icon_type === 'icon')

Definition at line 11 of file crop_messages.php.