Skip to content

Commit

Permalink
Update submit button FPW - parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimmi08 authored Sep 1, 2024
1 parent 347246d commit 5d49413
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions e107_core/shortcodes/batch/fpw_shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<button type="submit" name="pwsubmit" class="button btn btn-primary btn-block reset">'.$label.'</button>';
// return "<input class='button btn btn-primary btn-block' type='submit' name='pwsubmit' value='".$label."' />";
$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)
Expand Down Expand Up @@ -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.");
}
}
}

0 comments on commit 5d49413

Please sign in to comment.