This repository was archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtemplate-rcp-lostpass.php
More file actions
executable file
·56 lines (44 loc) · 1.75 KB
/
template-rcp-lostpass.php
File metadata and controls
executable file
·56 lines (44 loc) · 1.75 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
/**
* Template Name: RCP Lost Password
* The template for displaying the lost password page template.
*
* @package Forte
* @link https://themebeans.com/themes/forte
*/
get_header( 'min' ); ?>
<?php
global $user_ID, $user_identity;
get_currentuserinfo();
?>
<?php if ( ! is_user_logged_in() ) { ?>
<div class="row min-wrap rcp-form fadein">
<form method="post" action="<?php echo site_url( 'wp-login.php?action=lostpassword', 'login_post' ); ?>" class="wp-user-form" id="bean-help">
<div class="username">
<input type="text" name="user_login" value="" size="20" id="user_login" tabindex="1001" />
</div><!-- END .username -->
<div class="reset-pass-fields">
<?php do_action( 'login_form', 'resetpass' ); ?>
<input type="submit" name="user-submit" value="<?php _e( 'Reset My Password' ); ?>" class="btn user-submit" tabindex="1002" />
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>?reset=true" />
<input type="hidden" name="user-cookie" value="1" />
</div><!-- END .reset-pass-fields -->
</form>
<p class="rcp_text">
<a href="javascript:javascript:history.go(-1)"><?php _e( 'Nevermind, I remember now', 'forte' ); ?></a>
</p>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('.username input[type="text"]').attr('placeholder', '<?php _e( 'Email Address', 'forte' ); ?>');
});
</script>
</div><!-- END .row.min-wrap.rcp-form -->
<?php } else { // END !is_user_logged_in ?>
<div class="row min-wrap">
<p class="rcp_text logged-in">
<a href="javascript:javascript:history.go(-1)"><?php _e( 'You are already logged in. Go back →', 'forte' ); ?></a>
</p>
</div><!-- END .row.min-wrap -->
<?php } ?>
<?php
get_footer( 'min' );