Elgg  Version 6.1
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

if (!$show_icon_cropper_messages) $errors = []

Definition at line 17 of file crop_messages.php.

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

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

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

Definition at line 10 of file crop_messages.php.

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

Definition at line 54 of file crop_messages.php.

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

Definition at line 58 of file crop_messages.php.

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

Definition at line 30 of file crop_messages.php.

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

Definition at line 19 of file crop_messages.php.

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

Definition at line 11 of file crop_messages.php.