mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Closes #4320 - Use radio_switch() for radio buttons in COPPA form
This commit is contained in:
@@ -6,14 +6,8 @@
|
|||||||
* Released under the terms and conditions of the
|
* Released under the terms and conditions of the
|
||||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||||
*
|
*
|
||||||
*
|
|
||||||
*
|
|
||||||
* $URL$
|
|
||||||
* $Id$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Mods to show extended field categories
|
|
||||||
|
|
||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
|
|
||||||
e107::coreLan('signup');
|
e107::coreLan('signup');
|
||||||
@@ -47,18 +41,22 @@ class signup_shortcodes extends e_shortcode
|
|||||||
{
|
{
|
||||||
$class = (!empty($parm['class'])) ? $parm['class'] : 'btn btn-primary button';
|
$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'>
|
||||||
<div><br />
|
<div>
|
||||||
<input type='radio' name='coppa' value='0' id='coppa_no' checked='checked' /> <label class='control-label' for='coppa_no'>".LAN_NO."</label>
|
<br />
|
||||||
<input type='radio' name='coppa' value='1' id='coppa_yes' /> <label class='control-label' for='coppa_yes'>".LAN_YES."</label>
|
".e107::getForm()->radio_switch("coppa", false, LAN_YES, LAN_NO, array('reverse' => 1))."
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<input class='".$class."' type='submit' name='newver' value=\"".LAN_CONTINUE."\" />
|
<input class='".$class."' type='submit' name='newver' value=\"".LAN_CONTINUE."\" />
|
||||||
</div></form>
|
</div></form>
|
||||||
";
|
";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
<input type='radio' name='coppa' value='0' id='coppa_no' checked='checked' /> <label class='control-label' for='coppa_no'>".LAN_NO."</label>
|
||||||
|
<input type='radio' name='coppa' value='1' id='coppa_yes' /> <label class='control-label' for='coppa_yes'>".LAN_YES."</label>
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function sc_signup_xup($param=null) // show it to those who were using xup
|
function sc_signup_xup($param=null) // show it to those who were using xup
|
||||||
|
Reference in New Issue
Block a user