Elgg  Version master
url.php
Go to the documentation of this file.
1 <?php
9 elgg_import_esm('input/url');
10 
11 $vars['class'] = elgg_extract_class($vars, 'elgg-input-url');
12 
14  'autocapitalize' => 'off',
15  'type' => 'url',
16 ];
17 
18 $vars = array_merge($defaults, $vars);
19 
20 echo elgg_format_element('input', $vars);
$defaults
Definition: url.php:13
elgg_import_esm(string $name)
Helper functions for external files like css/js.
$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_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:277