PluginProbe ʕ •ᴥ•ʔ
Download Manager / trunk
Download Manager vtrunk
3.3.62 3.3.61 3.3.60 3.3.59 3.3.58 3.3.57 3.3.56 trunk 2.1.3 2.3.0 2.5.96 2.5.97 2.6.2 2.6.96 2.8.3 2.9.99 3.0.4 3.1.05 3.1.07 3.1.08 3.1.11 3.1.12 3.1.14 3.1.17 3.1.18 3.1.22 3.1.23 3.1.24 3.1.25 3.1.26 3.1.27 3.1.28 3.2.04 3.2.13 3.2.14 3.2.16 3.2.18 3.2.19 3.2.21 3.2.22 3.2.23 3.2.24 3.2.25 3.2.27 3.2.28 3.2.29 3.2.30 3.2.31 3.2.32 3.2.33 3.2.34 3.2.35 3.2.37 3.2.38 3.2.39 3.2.40 3.2.41 3.2.42 3.2.43 3.2.44 3.2.45 3.2.46 3.2.47 3.2.48 3.2.49 3.2.50 3.2.51 3.2.52 3.2.53 3.2.54 3.2.55 3.2.56 3.2.57 3.2.58 3.2.59 3.2.60 3.2.61 3.2.63 3.2.64 3.2.65 3.2.66 3.2.67 3.2.68 3.2.69 3.2.70 3.2.71 3.2.72 3.2.73 3.2.74 3.2.75 3.2.76 3.2.77 3.2.78 3.2.79 3.2.80 3.2.81 3.2.82 3.2.83 3.2.84 3.2.85 3.2.86 3.2.87 3.2.88 3.2.89 3.2.90 3.2.91 3.2.92 3.2.93 3.2.94 3.2.95 3.2.96 3.2.97 3.2.98 3.2.99 3.3.00 3.3.01 3.3.02 3.3.03 3.3.04 3.3.05 3.3.06 3.3.07 3.3.08 3.3.09 3.3.10 3.3.11 3.3.12 3.3.13 3.3.14 3.3.15 3.3.16 3.3.17 3.3.18 3.3.19 3.3.20 3.3.21 3.3.22 3.3.23 3.3.24 3.3.25 3.3.26 3.3.27 3.3.28 3.3.29 3.3.30 3.3.31 3.3.32 3.3.33 3.3.34 3.3.35 3.3.36 3.3.37 3.3.38 3.3.39 3.3.40 3.3.41 3.3.42 3.3.43 3.3.44 3.3.45 3.3.46 3.3.47 3.3.48 3.3.49 3.3.50 3.3.51 3.3.52 3.3.53 3.3.54 3.3.55
download-manager / src / User / views / lost-password-form.php
download-manager / src / User / views Last commit date
dashboard 5 months ago profile-cards 5 years ago profile-header 6 months ago already-logged-in.php 5 months ago auth-forms.css 5 months ago auth-forms.min.css 5 months ago clean.php 5 years ago login-form.php 5 months ago lost-password-form.php 5 months ago members.php 6 months ago modal-login-form.php 4 days ago public-profile.php 6 months ago reg-form.php 4 days ago reset-password-form.php 5 months ago review-user-status.php 1 week ago user-favourites.php 5 years ago
lost-password-form.php
126 lines
1 <?php
2 /**
3 * Lost Password Form Template - Split Panel Design
4 * Modern two-column layout with decorative left panel
5 */
6
7 if(!defined("ABSPATH")) die();
8 $logo = get_site_icon_url();
9 $site_name = get_bloginfo('name');
10
11 // Enqueue unified auth styles
12 wp_enqueue_style('wpdm-auth-forms', \WPDM\__\Template::locate_url('auth-forms.css', __DIR__), [], WPDM_VERSION);
13 ?>
14
15 <div class="w3eden wpdm-auth-page" id="wpdmlostpasspage">
16 <div class="wpdm-auth-split">
17 <div class="wpdm-auth-panel wpdm-auth-panel--short">
18 <!-- Left Panel - Decorative -->
19 <div class="wpdm-auth-left">
20 <div class="wpdm-auth-grid"></div>
21 <div class="wpdm-auth-circles">
22 <div class="wpdm-auth-circle"></div>
23 <div class="wpdm-auth-circle"></div>
24 <div class="wpdm-auth-circle"></div>
25 <div class="wpdm-auth-circle"></div>
26 </div>
27
28 <div class="wpdm-auth-brand">
29 <?php if($logo){ ?>
30 <img src="<?php echo esc_attr($logo); ?>" alt="<?php echo esc_attr($site_name); ?>" />
31 <?php } else { ?>
32 <div class="wpdm-auth-brand-icon">
33 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>
34 </div>
35 <?php } ?>
36 <span><?php echo esc_html($site_name); ?></span>
37 </div>
38
39 <div class="wpdm-auth-welcome">
40 <div class="wpdm-auth-welcome-sub"><?php _e("Forgot your password?", "download-manager"); ?></div>
41 <div class="wpdm-auth-welcome-title"><?php _e("RESET PASSWORD", "download-manager"); ?></div>
42 <div class="wpdm-auth-welcome-line"></div>
43 <div class="wpdm-auth-welcome-text">
44 <?php _e("No worries! Enter your email address and we'll send you a link to reset your password.", "download-manager"); ?>
45 </div>
46 </div>
47 </div>
48
49 <!-- Right Panel - Form -->
50 <div class="wpdm-auth-right">
51 <div class="wpdm-auth-form-header">
52 <h1 class="wpdm-auth-form-title"><?php _e("Reset Password", "download-manager"); ?></h1>
53 <p class="wpdm-auth-form-desc"><?php _e("Enter your email address below and we'll send you instructions to reset your password.", "download-manager"); ?></p>
54 </div>
55
56 <form name="resetPassword" id="resetPassword" action="<?php echo admin_url('/admin-ajax.php?action=resetPassword'); ?>" method="post">
57 <?php wp_nonce_field(NONCE_KEY, '__wpdm_reset_pass'); ?>
58
59 <div id="__reset_msg"></div>
60
61 <div class="wpdm-auth-field">
62 <div class="wpdm-auth-input-wrap">
63 <input type="text" name="user_login" id="user_login" class="wpdm-auth-input" required placeholder="<?php _e('Enter your email address', "download-manager"); ?>" autocomplete="username" />
64 </div>
65 </div>
66
67 <button type="submit" name="wp-submit" id="resetPassword-submit" class="wpdm-auth-btn">
68 <span><?php _e("Send Reset Link", "download-manager"); ?></span>
69 </button>
70
71 <div class="wpdm-auth-back">
72 <a href="<?php the_permalink(); ?>">
73 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="m15 18-6-6 6-6"/></svg>
74 <span><?php _e("Back to sign in", "download-manager"); ?></span>
75 </a>
76 </div>
77 </form>
78 </div>
79 </div>
80 </div>
81 </div>
82
83 <script>
84 jQuery(function ($) {
85 var $btn = $('#resetPassword-submit');
86 var btnHtml = $btn.html();
87 var sent = 0;
88
89 $('#resetPassword').submit(function (e) {
90 e.preventDefault();
91 if (sent === 1) return false;
92
93 $btn.html('<span class="wpdm-auth-spinner"></span><span><?php _e("Sending...", "download-manager"); ?></span>').attr('disabled', 'disabled');
94
95 $(this).ajaxSubmit({
96 success: function (res) {
97 if (res.match(/error/)) {
98 showMsg('error', '<?php _e("Account not found. Please check your email address.", "download-manager"); ?>');
99 $btn.html(btnHtml).removeAttr('disabled');
100 } else {
101 sent = 1;
102 showMsg('success', '<?php _e("Reset link sent! Check your inbox.", "download-manager"); ?>');
103 $btn.html('<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg><span><?php _e("Link Sent!", "download-manager"); ?></span>');
104 }
105 },
106 error: function() {
107 showMsg('error', '<?php _e("Something went wrong. Please try again.", "download-manager"); ?>');
108 $btn.html(btnHtml).removeAttr('disabled');
109 }
110 });
111 return false;
112 });
113
114 function showMsg(type, msg) {
115 var icon = type === 'success'
116 ? '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>'
117 : '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/></svg>';
118 $('#__reset_msg').html('<div class="wpdm-auth-alert ' + type + '">' + icon + '<span>' + msg + '</span></div>');
119 }
120
121 $('body').on('click', '.wpdm-auth-alert.error', function() {
122 $(this).slideUp(150, function() { $(this).remove(); });
123 });
124 });
125 </script>
126