aboutsummaryrefslogtreecommitdiff
path: root/views/installation/input/text.php
blob: ec8233461fe99e8a40074f1661038a9a491f42b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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
 * @uses $vars['id']    CSS id
 */

if (isset($vars['class'])) {
	$class = "class=\"{$vars['class']}\"";
} else {
	$class = "";
}

if (isset($vars['id'])) {
	$id = "id=\"{$vars['id']}\"";
} else {
	$id = '';
}

?>
<input type="text" name="<?php echo $vars['name']; ?>" value="<?php echo htmlentities($vars['value'], ENT_QUOTES, 'UTF-8'); ?>" <?php echo $class; ?> <?php echo $id; ?>/>