Elgg  Version 6.0
input.php
Go to the documentation of this file.
1 <?php
6 $input_type = elgg_extract('input_type', $vars);
7 unset($vars['input_type']);
8 
9 $input = elgg_view("input/$input_type", $vars);
10 
11 echo elgg_format_element('div', [
12  'class' => 'elgg-field-input',
13 ], $input);
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
$input_type
Helper view that can be used to filter vars for all input views.
Definition: input.php:6
$input
Definition: input.php:9
$vars
Definition: theme.php:5
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145