aboutsummaryrefslogtreecommitdiff
path: root/views/default/input
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input')
-rw-r--r--views/default/input/button.php9
-rw-r--r--views/default/input/submit.php2
2 files changed, 7 insertions, 4 deletions
diff --git a/views/default/input/button.php b/views/default/input/button.php
index b1a884c77..3122068ca 100644
--- a/views/default/input/button.php
+++ b/views/default/input/button.php
@@ -5,18 +5,21 @@
* @package Elgg
* @subpackage Core
*
- * @uses $vars['src'] Src of an image
- *
+ * @uses $vars['src'] Src of an image
+ * @uses $vars['class'] Class to add to elgg-button
+ *
* @todo Handle classes better
*/
$defaults = array(
'type' => 'button',
- 'class' => 'elgg-button elgg-button-action',
+ 'class' => '',
);
$vars = array_merge($defaults, $vars);
+$vars['class'] = trim("elgg-button {$vars['class']}");
+
switch ($vars['type']) {
case 'button':
case 'reset':
diff --git a/views/default/input/submit.php b/views/default/input/submit.php
index d0c0c6355..31efa5cbf 100644
--- a/views/default/input/submit.php
+++ b/views/default/input/submit.php
@@ -7,6 +7,6 @@
*/
$vars['type'] = 'submit';
-$vars['class'] = 'elgg-button elgg-button-submit';
+$vars['class'] = 'elgg-button-submit';
echo elgg_view('input/button', $vars); \ No newline at end of file