aboutsummaryrefslogtreecommitdiff
path: root/mod/cool_theme/views/default/input/text.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/cool_theme/views/default/input/text.php')
-rw-r--r--mod/cool_theme/views/default/input/text.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/mod/cool_theme/views/default/input/text.php b/mod/cool_theme/views/default/input/text.php
new file mode 100644
index 000000000..707a50179
--- /dev/null
+++ b/mod/cool_theme/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