diff options
Diffstat (limited to 'views/default/input/text.php')
-rw-r--r-- | views/default/input/text.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/views/default/input/text.php b/views/default/input/text.php new file mode 100644 index 000000000..707a50179 --- /dev/null +++ b/views/default/input/text.php @@ -0,0 +1,27 @@ +<?php +/** + * Elgg text input + * Displays a text input field + * + * @package Elgg + * @subpackage Core + * + * @uses $vars['class'] Additional CSS class + */ + +if (isset($vars['class'])) { + $vars['class'] = "elgg-input-text {$vars['class']}"; +} else { + $vars['class'] = "elgg-input-text"; +} + +$defaults = array( + 'value' => '', + 'disabled' => false, +); + +$vars = array_merge($defaults, $vars); + +?> + +<input type="text" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file |