Elgg
Version 1.11
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
views
default
input
url.php
Go to the documentation of this file.
1
<?php
12
$vars
[
'class'
] = (array)
elgg_extract
(
'class'
,
$vars
, []);
13
$vars
[
'class'
][] =
'elgg-input-url'
;
14
15
$defaults
= array(
16
'value'
=>
''
,
17
'disabled'
=>
false
,
18
'autocapitalize'
=>
'off'
,
19
'autocorrect'
=>
'off'
,
20
'type'
=>
'url'
21
);
22
23
$vars
= array_merge(
$defaults
,
$vars
);
24
25
echo
elgg_format_element
(
'input'
,
$vars
);
$defaults
$defaults
Definition:
url.php:15
elgg_extract
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition:
elgglib.php:1246
elgg_format_element
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
Definition:
output.php:215
echo
elgg echo
Translates a string.
Definition:
languages.js:43
$vars
$vars['class']
Definition:
url.php:12
Generated on Sat Dec 21 2024 00:00:50 for Elgg by
1.8.11