breadcrumb.php
9 years ago
form-login.php
9 years ago
quantity-input.php
9 years ago
sidebar.php
9 years ago
wrapper-end.php
9 years ago
wrapper-start.php
9 years ago
form-login.php
63 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Login form |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/global/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 | * @author WooThemes |
| 15 | * @package WooCommerce/Templates |
| 16 | * @version 2.1.0 |
| 17 | */ |
| 18 | |
| 19 | if ( ! defined( 'ABSPATH' ) ) { |
| 20 | exit; // Exit if accessed directly |
| 21 | } |
| 22 | |
| 23 | if ( is_user_logged_in() ) { |
| 24 | return; |
| 25 | } |
| 26 | |
| 27 | ?> |
| 28 | <form class="woocomerce-form woocommerce-form-login login" method="post" <?php if ( $hidden ) echo 'style="display:none;"'; ?>> |
| 29 | |
| 30 | <?php do_action( 'woocommerce_login_form_start' ); ?> |
| 31 | |
| 32 | <?php if ( $message ) echo wpautop( wptexturize( $message ) ); ?> |
| 33 | |
| 34 | <p class="form-row form-row-first"> |
| 35 | <label for="username"><?php _e( 'Username or email', 'woocommerce' ); ?> <span class="required">*</span></label> |
| 36 | <input type="text" class="input-text" name="username" id="username" /> |
| 37 | </p> |
| 38 | <p class="form-row form-row-last"> |
| 39 | <label for="password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label> |
| 40 | <input class="input-text" type="password" name="password" id="password" /> |
| 41 | </p> |
| 42 | <div class="clear"></div> |
| 43 | |
| 44 | <?php do_action( 'woocommerce_login_form' ); ?> |
| 45 | |
| 46 | <p class="form-row"> |
| 47 | <?php wp_nonce_field( 'woocommerce-login' ); ?> |
| 48 | <input type="submit" class="button" name="login" value="<?php esc_attr_e( 'Login', 'woocommerce' ); ?>" /> |
| 49 | <input type="hidden" name="redirect" value="<?php echo esc_url( $redirect ) ?>" /> |
| 50 | <label class="woocommerce-form__label woocommerce-form__label-for-checkbox inline"> |
| 51 | <input class="woocommerce-form__input woocommerce-form__input-checkbox" name="rememberme" type="checkbox" id="rememberme" value="forever" /> <span><?php _e( 'Remember me', 'woocommerce' ); ?></span> |
| 52 | </label> |
| 53 | </p> |
| 54 | <p class="lost_password"> |
| 55 | <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?', 'woocommerce' ); ?></a> |
| 56 | </p> |
| 57 | |
| 58 | <div class="clear"></div> |
| 59 | |
| 60 | <?php do_action( 'woocommerce_login_form_end' ); ?> |
| 61 | |
| 62 | </form> |
| 63 |