Not huge. I thought I’d restyle the input fields of the login form because it’s been messing with me that they aren’t aligned (yeah silly detail). I found it wasn’t so easily done because the first two input fields are within the label tag, and the “Remember me” checkbox (or dot) was outside the label tag.
I rearranged a test function to get the input fields out of the label tags and it’s now possible to achieve what I’m after. And as far as I can “see” there is no change in how it appears in the default template with it’s current styling.
Is it possible to consider changing the form to the following? If there’s a reason I’ve overlooked, please disregard my request 🙂
The only changes are within the three span tags midway down.
function sp_render_inline_login_form($a) {
global $sfglobals;
extract($a, EXTR_SKIP);
$user_login = '';
$user_pass = '';
$using_cookie = false;
$sflogin = sp_get_option('sflogin');
$redirect_to = $_SERVER['REQUEST_URI'];
do_action('login_head', 'sploginform');
$message = '';
$message = apply_filters('sf_filter_login_message', $message);
if (!empty($message)) $out.= $message."n";
$out = '';
$out.= "<fieldset class='$controlFieldset'>n";
$out.= "<form name='loginform' id='loginform' action='".site_url('wp-login.php', 'login_post')."' method='post'>n";
$sfrpx = sp_get_option('sfrpx');
if ($sfrpx['sfrpxenable']) $out.= sp_rpx_loginform('spLoginForm', '100%', true);
$out.= "<span><label for='log'>$labelUserName: </label><input type='text' class='$controlInput' tabindex='84' name='log' id='log' value='".esc_attr($user_login)."' size='11' /></span><br />n";
$out.= "<span><label for='login_password'>$labelPassword: </label><input type='password' class='$controlInput' tabindex='85' name='pwd' id='login_password' value='' size='11' /></span><br />n";
$out.= "<span><label for='rememberme'> $labelRemember</label><input type='checkbox' tabindex='86' id='rememberme' name='rememberme' value='forever' /></span>n";
$out.= sp_InsertBreak('echo=0');
$out.= do_action('login_form');
$out.= sp_InsertBreak('echo=0');
$out.= "<img class='$controlIcon' src='".SPTHEMEICONS."$iconName' alt=''/>n";
$out.= "<input type='submit' class='$controlSubmit' name='submit' id='submit' value='$labelSubmit' tabindex='87' />n";
$out.= "<input type='hidden' name='redirect_to' value='".esc_attr($redirect_to)."' /><br /><br />n";
$out.= "</form>n";
if (TRUE == get_option('users_can_register') && !$sfglobals['lockdown'] && $sflogin['sfshowreg'] && $showRegister) {
$out.= "<a class='$controlLink' href='".site_url('wp-login.php?action=register', 'login')."'>$labelRegister</a>n";
$out.= ' | ';
}
if ($showLostPass) {
$out.= "<a class='$controlLink' href='".site_url('wp-login.php?action=lostpassword', 'login')."'>$labelLostPass</a>n";
}
$out.= "</fieldset>n";
return $out;
}