footer.php
8 years ago
form-grant-access.php
8 years ago
form-login.php
8 years ago
header.php
8 years ago
form-login.php
55 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Auth form login |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/auth/form-login.php. |
| 6 | * |
| 7 | * HOWEVER, on occasion WooCommerce will need to update template files and you |
| 8 | * (the theme developer) will need to copy the new files to your theme to |
| 9 | * maintain compatibility. We try to do this as little as possible, but it does |
| 10 | * happen. When this occurs the version of the template file will be bumped and |
| 11 | * the readme will list any important changes. |
| 12 | * |
| 13 | * @see https://docs.woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce/Templates/Auth |
| 15 | * @version 3.4.0 |
| 16 | */ |
| 17 | |
| 18 | defined( 'ABSPATH' ) || exit; |
| 19 | |
| 20 | do_action( 'woocommerce_auth_page_header' ); ?> |
| 21 | |
| 22 | <h1> |
| 23 | <?php |
| 24 | /* translators: %s: app name */ |
| 25 | printf( esc_html__( '%s would like to connect to your store', 'woocommerce' ), esc_html( $app_name ) ); |
| 26 | ?> |
| 27 | </h1> |
| 28 | |
| 29 | <?php wc_print_notices(); ?> |
| 30 | |
| 31 | <p> |
| 32 | <?php |
| 33 | /* translators: %1$s: app name, %2$s: URL */ |
| 34 | echo wp_kses_post( sprintf( __( 'To connect to %1$s you need to be logged in. Log in to your store below, or <a href="%2$s">cancel and return to %1$s</a>', 'woocommerce' ), esc_html( wc_clean( $app_name ) ), esc_url( $return_url ) ) ); |
| 35 | ?> |
| 36 | </p> |
| 37 | |
| 38 | <form method="post" class="wc-auth-login"> |
| 39 | <p class="form-row form-row-wide"> |
| 40 | <label for="username"><?php esc_html_e( 'Username or email address', 'woocommerce' ); ?> <span class="required">*</span></label> |
| 41 | <input type="text" class="input-text" name="username" id="username" value="<?php echo ( ! empty( $_POST['username'] ) ) ? esc_attr( $_POST['username'] ) : ''; ?>" /><?php //@codingStandardsIgnoreLine ?> |
| 42 | </p> |
| 43 | <p class="form-row form-row-wide"> |
| 44 | <label for="password"><?php esc_html_e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label> |
| 45 | <input class="input-text" type="password" name="password" id="password" /> |
| 46 | </p> |
| 47 | <p class="wc-auth-actions"> |
| 48 | <?php wp_nonce_field( 'woocommerce-login', 'woocommerce-login-nonce' ); ?> |
| 49 | <button type="submit" class="button button-large button-primary wc-auth-login-button" name="login" value="<?php esc_attr_e( 'Login', 'woocommerce' ); ?>"><?php esc_html_e( 'Login', 'woocommerce' ); ?></button> |
| 50 | <input type="hidden" name="redirect" value="<?php echo esc_url( $redirect_url ); ?>" /> |
| 51 | </p> |
| 52 | </form> |
| 53 | |
| 54 | <?php do_action( 'woocommerce_auth_page_footer' ); ?> |
| 55 |