aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/image.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/image.php')
-rw-r--r--views/default/input/image.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/views/default/input/image.php b/views/default/input/image.php
index bb6a44045..cf740f782 100644
--- a/views/default/input/image.php
+++ b/views/default/input/image.php
@@ -1 +1,11 @@
-<input type="image" <?php echo elgg_format_attributes($vars); ?> /> \ No newline at end of file
+<?php
+$defaults = array(
+ 'class' => 'elgg-input-image',
+);
+
+$vars = array_merge($defaults, $vars);
+
+$vars['type'] = 'image';
+
+?>
+<input <?php echo elgg_format_attributes($vars); ?> /> \ No newline at end of file