From 5d49413221e003dfbaae54b37f60b7d4051ecc9f Mon Sep 17 00:00:00 2001 From: Jimako Date: Sun, 1 Sep 2024 13:55:47 +0200 Subject: [PATCH] Update submit button FPW - parameters https://github.com/e107inc/e107/issues/3837 --- e107_core/shortcodes/batch/fpw_shortcodes.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/e107_core/shortcodes/batch/fpw_shortcodes.php b/e107_core/shortcodes/batch/fpw_shortcodes.php index 17b644551b..40795cfc8e 100644 --- a/e107_core/shortcodes/batch/fpw_shortcodes.php +++ b/e107_core/shortcodes/batch/fpw_shortcodes.php @@ -43,12 +43,15 @@ function sc_fpw_useremail($parm = null) function sc_fpw_submit($parm = null) { - + $options = array(); + $options['class'] = (!empty($parm['class'])) ? $parm['class'] : "btn submit btn-success"; + // return ''; // return ""; $label = deftrue('LAN_FPW_102', LAN_SUBMIT); - return e107::getForm()->button('pwsubmit', $label); + //return e107::getForm()->button('pwsubmit', $label); + return e107::getForm()->button('pwsubmit', $label, 'submit', $label, $options); } function sc_fpw_captcha_lan($parm = null) @@ -102,4 +105,4 @@ function sc_fpw_text($parm = null) { return deftrue('LAN_FPW_101', "Not to worry. Just enter your email address below and we'll send you an instruction email for recovery."); } -} \ No newline at end of file +}