File: /home/salamatk/www/wp-content/plugins/woodmart-plus/template/myaccount/form-lost-password.php
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php esc_html_e('فراموشی رمزعبور', 'woodmartplus'); ?></title>
<link rel="icon" href="<?php echo get_site_icon_url() ? get_site_icon_url() : '' ?>" />
<link rel="stylesheet" href="<?php echo WOODPLUS_ASSET ?>css/all.css">
<link rel="stylesheet" href="<?php echo WOODPLUS_ASSET ?>css/fontawesome.css">
<link rel="stylesheet" href="<?php echo WOODPLUS_ASSET ?>css/global-fonts.css">
<link rel="stylesheet" href="<?php echo WOODPLUS_ASSET ?>css/hint.min.css">
<link rel="stylesheet" href="<?php echo WOODPLUS_ASSET ?>css/global.css">
<style>
:root {
--width-width3: <?php echo wplus_helper::get_setting('width_dashboard', 1200) . 'px'; ?>;
--main-color: <?php echo wplus_helper::get_setting('color_dashboard'); ?>;
--link-color: <?php echo wplus_helper::get_setting('color_link_dashboard'); ?>;
--red-1: <?php echo wplus_helper::get_setting('color_dashboard'); ?>;
--red-5: <?php echo wplus_helper::get_setting('color_dashboard_hover'); ?>;
--blue-3: <?php echo wplus_helper::get_setting('color_dashboard'); ?>;
--wplus_dashboard_font : <?php echo wplus_helper::get_setting('font_dashboard', 'IRANSansX'); ?>;
}
body {
font-family: var(--wplus_dashboard_font) !important;
}
</style>
<script>
<?php
$pages = [
'cart' => wc_get_page_permalink('cart'),
'myacc' => wplus_helper::get_setting('redirect_after_login', wc_get_page_permalink('myaccount')),
'cart_hash_key' => WC()->ajax_url() . '-wc_cart_hash',
];
?>
var optionarray = <?php
echo json_encode([
'woodplus_url' => admin_url('admin-ajax.php'),
'nonce' => wp_create_nonce('woodplus_script_nonce'),
'WcPage' => $pages,
'wating_time_resend_otp' => wplus_helper::get_setting('wating_resend', 30),
'add_tocart' => __('محصول به سبد خرید اضافه شد', 'woodmartplus'),
'resend_text' => __('ارسال مجدد کد تا', 'woodmartplus'),
'errors' => [
'latinUsername' => __('نام کاربری را به لاتین وارد کنید','woodmartplus'),
'passwordNotSame' => __('رمزعبور یکسان نیست','woodmartplus'),
'passwordLessThan' => __('رمزعبور نمیتواند کمتر 6 حرف باشد','woodmartplus')
],
'change_email' => __('تغییر ایمیل','woodmartplus'),
'login_whit_password' => __('ورود با رمزعبور','woodmartplus'),
]); ?>
</script>
</head>
<?php do_action('woodplus_dashboard_head'); ?>
<body <?php body_class(); ?>>
<?php
/**
* Lost password form
*
* This template can be overridden by copying it to yourtheme/woocommerce/myaccount/form-lost-password.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce\Templates
* @version 7.0.1
*/
defined('ABSPATH') || exit;
$notice = wc_print_notices(true);
// var_dump($notice);
do_action('woocommerce_before_lost_password_form');
?>
<main class="all_center">
<div class="login_container">
<div class="space_between">
<button class="text_white">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
<path d="M5.94 13.78L10.2867 9.4333C10.8 8.91997 10.8 8.07997 10.2867 7.56664L5.94 3.21997" stroke="white" stroke-width="1.5" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
<p><a href="<?php echo esc_url(wc_get_endpoint_url('my-account')); ?>"><?php esc_html_e('باز گشت', 'woodmartplus'); ?></a></p>
</button>
<a class="btn_close__circle--white" href="<?php echo esc_url(home_url()); ?>">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12"></path>
</svg>
</a>
</div>
<div class="white_card">
<div class="text_center">
<img src="<?php echo wplus_helper::get_logo_login_register(); ?>" alt="logo" />
</div>
<h2 class="text_center"> <?php esc_html_e('بازیابی رمزعبور', 'woodmartplus'); ?> </h2>
<?php echo $notice; ?>
<form method="post" class="gap-y-2 woocommerce-ResetPassword lost_reset_password">
<p><?php echo apply_filters('woocommerce_lost_password_message', esc_html__('Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.', 'woocommerce')); ?></p><?php // @codingStandardsIgnoreLine
?>
<div class="solid_input">
<label for="txtPassword" class="gap-x">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18" fill="none">
<path d="M4.5 7.5V6C4.5 3.5175 5.25 1.5 9 1.5C12.75 1.5 13.5 3.5175 13.5 6V7.5" stroke="#292D32" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M12.75 16.5H5.25C2.25 16.5 1.5 15.75 1.5 12.75V11.25C1.5 8.25 2.25 7.5 5.25 7.5H12.75C15.75 7.5 16.5 8.25 16.5 11.25V12.75C16.5 15.75 15.75 16.5 12.75 16.5Z" stroke="#292D32" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M11.9973 12H12.0041" stroke="#292D32" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M8.99661 12H9.00335" stroke="#292D32" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M5.99588 12H6.00262" stroke="#292D32" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
<p><?php esc_html_e('Username or email', 'woocommerce'); ?></p>
</label>
<!-- <label for="user_login"></label> -->
<div class="input_container">
<input class="woocommerce-Input woocommerce-Input--text input-text" type="text" name="user_login" id="user_login" autocomplete="username" />
<span class="btn_clear">
<i class="fa-light fa-square-xmark"></i>
</span>
</div>
</div>
<div class="clear"></div>
<?php do_action('woocommerce_lostpassword_form'); ?>
<input type="hidden" name="wc_reset_password" value="true" />
<button type="submit" class="btn solid medium font_semibold <?php echo esc_attr(wc_wp_theme_get_element_class_name('button') ? ' ' . wc_wp_theme_get_element_class_name('button') : ''); ?>" value="<?php esc_attr_e('Reset password', 'woocommerce'); ?>"><?php esc_html_e('Reset password', 'woocommerce'); ?></button>
<?php wp_nonce_field('lost_password', 'woocommerce-lost-password-nonce'); ?>
</form>
</div>
</div>
</main>
<?php
do_action('woocommerce_after_lost_password_form');
?>
</body>
</html>