Elgg  Version master
upload.php
Go to the documentation of this file.
1 <?php
8 $entity = elgg_extract('entity', $vars);
9 if (!$entity instanceof ElggUser) {
10  return;
11 }
12 
13 echo elgg_view('output/longtext', [
14  'value' => elgg_echo('avatar:upload:instructions'),
15 ]);
16 
17 echo elgg_view_form('avatar/upload', [], $vars);
elgg_view_form(string $action, array $form_vars=[], array $body_vars=[])
Definition: views.php:1033
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$entity
Avatar upload view.
Definition: upload.php:8
$vars
Definition: theme.php:5