Last change
on this file since 5241 was
5241,
checked in by netweb, 8 years ago
|
Relocate login_form action hook outside bbp-submit-wrapper form submit wrapper in form-user-login.php and form-user-lost-pass.php templates. Props icu0755. Fixes #2500 (trunk)
|
-
Property svn:eol-style set to
native
|
File size:
1.4 KB
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * User Login Form |
---|
5 | * |
---|
6 | * @package bbPress |
---|
7 | * @subpackage Theme |
---|
8 | */ |
---|
9 | |
---|
10 | ?> |
---|
11 | |
---|
12 | <form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form"> |
---|
13 | <fieldset class="bbp-form"> |
---|
14 | <legend><?php _e( 'Log In', 'bbpress' ); ?></legend> |
---|
15 | |
---|
16 | <div class="bbp-username"> |
---|
17 | <label for="user_login"><?php _e( 'Username', 'bbpress' ); ?>: </label> |
---|
18 | <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" id="user_login" tabindex="<?php bbp_tab_index(); ?>" /> |
---|
19 | </div> |
---|
20 | |
---|
21 | <div class="bbp-password"> |
---|
22 | <label for="user_pass"><?php _e( 'Password', 'bbpress' ); ?>: </label> |
---|
23 | <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" tabindex="<?php bbp_tab_index(); ?>" /> |
---|
24 | </div> |
---|
25 | |
---|
26 | <div class="bbp-remember-me"> |
---|
27 | <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ) ); ?> id="rememberme" tabindex="<?php bbp_tab_index(); ?>" /> |
---|
28 | <label for="rememberme"><?php _e( 'Keep me signed in', 'bbpress' ); ?></label> |
---|
29 | </div> |
---|
30 | |
---|
31 | <?php do_action( 'login_form' ); ?> |
---|
32 | |
---|
33 | <div class="bbp-submit-wrapper"> |
---|
34 | |
---|
35 | <button type="submit" tabindex="<?php bbp_tab_index(); ?>" name="user-submit" class="button submit user-submit"><?php _e( 'Log In', 'bbpress' ); ?></button> |
---|
36 | |
---|
37 | <?php bbp_user_login_fields(); ?> |
---|
38 | |
---|
39 | </div> |
---|
40 | </fieldset> |
---|
41 | </form> |
---|
Note: See
TracBrowser
for help on using the repository browser.