diff options
Diffstat (limited to 'views/installation/input/text.php')
-rw-r--r-- | views/installation/input/text.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/views/installation/input/text.php b/views/installation/input/text.php new file mode 100644 index 000000000..375b91c44 --- /dev/null +++ b/views/installation/input/text.php @@ -0,0 +1,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; ?> />
\ No newline at end of file |