mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
add possibility to set class for coppa button
This commit is contained in:
@@ -21,7 +21,7 @@ e107::coreLan('signup');
|
|||||||
class signup_shortcodes extends e_shortcode
|
class signup_shortcodes extends e_shortcode
|
||||||
{
|
{
|
||||||
|
|
||||||
function sc_signup_coppa_form()
|
function sc_signup_coppa_form($parm)
|
||||||
{
|
{
|
||||||
if (strpos(LAN_SIGNUP_77, "stage") !== FALSE)
|
if (strpos(LAN_SIGNUP_77, "stage") !== FALSE)
|
||||||
{
|
{
|
||||||
@@ -29,6 +29,7 @@ class signup_shortcodes extends e_shortcode
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$class = (!empty($parm['class'])) ? $parm['class'] : 'btn btn-primary button';
|
||||||
return "
|
return "
|
||||||
<form method='post' action='".e_SELF."?stage1' autocomplete='off'>\n
|
<form method='post' action='".e_SELF."?stage1' autocomplete='off'>\n
|
||||||
<div><br />
|
<div><br />
|
||||||
@@ -36,7 +37,7 @@ class signup_shortcodes extends e_shortcode
|
|||||||
<input type='radio' name='coppa' value='1' id='coppa_yes' /> <label class='control-label' for='coppa_yes'>".LAN_YES."</label>
|
<input type='radio' name='coppa' value='1' id='coppa_yes' /> <label class='control-label' for='coppa_yes'>".LAN_YES."</label>
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<input class='btn btn-primary button' type='submit' name='newver' value=\"".LAN_CONTINUE."\" />
|
<input class='".$class."' type='submit' name='newver' value=\"".LAN_CONTINUE."\" />
|
||||||
</div></form>
|
</div></form>
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
@@ -590,4 +591,4 @@ class signup_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user