diff options
Diffstat (limited to 'views/default/input/button.php')
-rw-r--r-- | views/default/input/button.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/views/default/input/button.php b/views/default/input/button.php index 2249158e6..e646998ea 100644 --- a/views/default/input/button.php +++ b/views/default/input/button.php @@ -20,6 +20,9 @@ */ global $CONFIG; + + $class = $vars['class']; + if (!$class) $class = "submit_button"; $type = strtolower($vars['type']); switch ($type) @@ -35,4 +38,4 @@ $src = $vars['src']; if (strpos($src,$CONFIG->wwwroot)===false) $src = ""; // blank src if trying to access an offsite image. ?> -<input type="<?php echo $type; ?>" class="<?php echo $type; ?>_button" <?php echo $vars['js']; ?> value="<?php echo $value; ?>" src="<?php echo $src; ?>" />
\ No newline at end of file +<input type="<?php echo $type; ?>" class="<?php echo $type; ?>_button" <?php echo $vars['js']; ?> value="<?php echo $value; ?>" src="<?php echo $src; ?>" class="<?php echo $class; ?>" />
\ No newline at end of file |