| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* User Login Form |
| 5 |
* |
| 6 |
* @package bbPress |
| 7 |
* @subpackage Theme |
| 8 |
*/ |
| 9 |
|
| 10 |
// Exit if accessed directly |
| 11 |
defined( 'ABSPATH' ) || exit; |
| 12 |
?> |
| 13 |
|
| 14 |
<form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form"> |
| 15 |
<fieldset class="bbp-form"> |
| 16 |
<legend><?php esc_html_e( 'Log In', 'forumax' ); ?></legend> |
| 17 |
|
| 18 |
<div class="bbp-username"> |
| 19 |
<label for="user_login"><?php esc_html_e( 'Username', 'forumax' ); ?>: </label> |
| 20 |
<input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" maxlength="100" id="user_login" placeholder="<?php esc_attr_e( 'Username or Email', 'forumax' ); ?>" autocomplete="off" /> |
| 21 |
</div> |
| 22 |
|
| 23 |
<div class="bbp-password"> |
| 24 |
<label for="user_pass"><?php esc_html_e( 'Password', 'forumax' ); ?>: </label> |
| 25 |
<input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" placeholder="<?php esc_attr_e( 'Password', 'forumax' ); ?>" autocomplete="off" /> |
| 26 |
</div> |
| 27 |
|
| 28 |
<div class="bbp-remember-me"> |
| 29 |
<input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ) ); ?> id="rememberme" /> |
| 30 |
<label for="rememberme"><?php esc_html_e( 'Keep me signed in', 'forumax' ); ?></label> |
| 31 |
</div> |
| 32 |
|
| 33 |
<?php do_action( 'login_form' ); ?> |
| 34 |
|
| 35 |
<div class="bbp-submit-wrapper"> |
| 36 |
|
| 37 |
<button type="submit" name="user-submit" id="user-submit" class="button submit user-submit fill-brand"><?php esc_html_e( 'Log In', 'forumax' ); ?></button> |
| 38 |
|
| 39 |
<?php bbp_user_login_fields(); ?> |
| 40 |
|
| 41 |
</div> |
| 42 |
</fieldset> |
| 43 |
</form> |
| 44 |
|