/
login-form.php
35 lines (35 loc) · 2.13 KB
/
login-form.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/*
If you would like to edit this file, copy it to your current theme's directory and edit it there.
Theme My Login will always look in your theme's directory first, before using this default template.
*/
?>
<div class="login" id="theme-my-login<?php $template->the_instance(); ?>">
<?php $template->the_action_template_message( 'login' ); ?>
<?php $template->the_errors(); ?>
<form name="loginform" id="tmloginform<?php $template->the_instance(); ?>" action="<?php $template->the_action_url( 'login' ); ?>" method="post">
<div class="tm-login-form-user set">
<label for="user_login<?php $template->the_instance(); ?>"><?php _e( 'Username', 'theme-my-login' ) ?></label>
<input type="text" name="log" id="user_login<?php $template->the_instance(); ?>" required="required" class="text required" value="<?php $template->the_posted_value( 'log' ); ?>" size="20" />
</div>
<div class="tm-login-form-pass set">
<label for="user_pass<?php $template->the_instance(); ?>"><?php _e( 'Password', 'theme-my-login' ) ?></label>
<input type="password" name="pwd" id="user_pass<?php $template->the_instance(); ?>" required="required" class="password required" value="" size="20" />
</div>
<?php
do_action( 'login_form' ); // Wordpress hook
do_action_ref_array( 'tml_login_form', array( &$template ) ); // TML hook
?>
<div class="forgetmenot set">
<input class="checkbox" name="rememberme" type="checkbox" id="rememberme<?php $template->the_instance(); ?>" value="forever" />
<label for="rememberme<?php $template->the_instance(); ?>"><?php _e( 'Remember Me', 'theme-my-login' ); ?></label>
</div>
<div class="submit">
<input type="submit" class="submit" name="wp-submit" id="tm-wp-submit<?php $template->the_instance(); ?>" value="<?php _e( 'Log In', 'theme-my-login' ); ?>" />
<input type="hidden" name="redirect_to" value="<?php $template->the_redirect_url( 'login' ); ?>" />
<input type="hidden" name="testcookie" value="1" />
<input type="hidden" name="instance" value="<?php $template->the_instance(); ?>" />
</div>
</form>
<?php $template->the_action_links( array( 'login' => false ) ); ?>
</div>