Elgg  Version master
url.php
Go to the documentation of this file.
1 <?php
9 elgg_require_js('input/url');
10 
11 $vars['class'] = elgg_extract_class($vars, 'elgg-input-url');
12 
14  'value' => '',
15  'disabled' => false,
16  'autocapitalize' => 'off',
17  'type' => 'url'
18 ];
19 
20 $vars = array_merge($defaults, $vars);
21 
22 echo elgg_format_element('input', $vars);
$defaults
Definition: url.php:13
elgg_extract_class(array $array, $existing=[], $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:276
$vars['class']
Definition: url.php:11
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145
elgg_require_js(string $name)
Request that Elgg load an AMD module onto the page.