blob: 375b91c44ff0ea721ced67b27bf21529f723a9e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
/**
* Elgg text input
* Displays a text input field
*
* @uses $vars['value'] The current value, if any
* @uses $vars['name'] The name of the input field
* @uses $vars['class'] CSS class
*/
if (isset($vars['class'])) {
$class = "class=\"{$vars['class']}\"";
} else {
$class = "elgg-input-text";
}
$value = htmlentities($vars['value'], ENT_QUOTES, 'UTF-8');
?>
<input type="text" name="<?php echo $vars['name']; ?>" value="<?php echo $value; ?>" <?php echo $class; ?> />
|