mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Added class="radio" to the hardcoded radio button input strings to prevent <input /> styling problems
git-svn-id: file:///svn/phpbb/trunk@5419 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
413d4f9277
commit
3c7837801e
1 changed files with 3 additions and 3 deletions
|
@ -221,7 +221,7 @@ function h_radio($name, &$input_ary, $input_default = false, $id = false, $key =
|
||||||
{
|
{
|
||||||
$selected = ($input_default !== false && $value == $input_default) ? ' checked="checked"' : '';
|
$selected = ($input_default !== false && $value == $input_default) ? ' checked="checked"' : '';
|
||||||
$html .= ($html) ? ' ' : '';
|
$html .= ($html) ? ' ' : '';
|
||||||
$html .= '<input type="radio" name="' . $name . '"' . (($id && !$id_assigned) ? ' id="' . $id . '"' : '') . ' value="' . $value . '"' . $selected . (($key) ? ' accesskey="' . $key . '"' : '') . ' /> ' . $user->lang[$title];
|
$html .= '<input type="radio" name="' . $name . '"' . (($id && !$id_assigned) ? ' id="' . $id . '"' : '') . ' value="' . $value . '"' . $selected . (($key) ? ' accesskey="' . $key . '"' : '') . ' class="radio" /> ' . $user->lang[$title];
|
||||||
$id_assigned = true;
|
$id_assigned = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,8 +266,8 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars)
|
||||||
$tpl_type_cond = explode('_', $tpl_type[1]);
|
$tpl_type_cond = explode('_', $tpl_type[1]);
|
||||||
$type_no = ($tpl_type_cond[0] == 'disabled' || $tpl_type_cond[0] == 'enabled') ? false : true;
|
$type_no = ($tpl_type_cond[0] == 'disabled' || $tpl_type_cond[0] == 'enabled') ? false : true;
|
||||||
|
|
||||||
$tpl_no = '<input type="radio" name="' . $name . '" value="0"' . $key_no . ' /> ' . (($type_no) ? $user->lang['NO'] : $user->lang['DISABLED']);
|
$tpl_no = '<input type="radio" name="' . $name . '" value="0"' . $key_no . ' class="radio" /> ' . (($type_no) ? $user->lang['NO'] : $user->lang['DISABLED']);
|
||||||
$tpl_yes = '<input type="radio" id="' . $key . '" name="' . $name . '" value="1"' . $key_yes . ' /> ' . (($type_no) ? $user->lang['YES'] : $user->lang['ENABLED']);
|
$tpl_yes = '<input type="radio" id="' . $key . '" name="' . $name . '" value="1"' . $key_yes . ' class="radio" /> ' . (($type_no) ? $user->lang['YES'] : $user->lang['ENABLED']);
|
||||||
|
|
||||||
$tpl = ($tpl_type_cond[0] == 'yes' || $tpl_type_cond[0] == 'enabled') ? $tpl_yes . ' ' . $tpl_no : $tpl_no . ' ' . $tpl_yes;
|
$tpl = ($tpl_type_cond[0] == 'yes' || $tpl_type_cond[0] == 'enabled') ? $tpl_yes . ' ' . $tpl_no : $tpl_no . ' ' . $tpl_yes;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue