block
3 months ago
plain
9 months ago
admin-cancelled-order.php
1 year ago
admin-failed-order.php
6 months ago
admin-new-order.php
6 months ago
customer-cancelled-order.php
6 months ago
customer-completed-order.php
6 months ago
customer-failed-order.php
6 months ago
customer-fulfillment-created.php
6 months ago
customer-fulfillment-deleted.php
6 months ago
customer-fulfillment-updated.php
6 months ago
customer-invoice.php
6 months ago
customer-new-account.php
6 months ago
customer-note.php
6 months ago
customer-on-hold-order.php
6 months ago
customer-pos-completed-order.php
6 months ago
customer-pos-refunded-order.php
6 months ago
customer-processing-order.php
6 months ago
customer-refunded-order.php
6 months ago
customer-reset-password.php
6 months ago
customer-stock-notification-verified.php
9 months ago
customer-stock-notification-verify.php
9 months ago
customer-stock-notification.php
9 months ago
email-addresses.php
3 months ago
email-customer-details.php
1 year ago
email-downloads.php
6 months ago
email-footer.php
6 months ago
email-fulfillment-details.php
10 months ago
email-fulfillment-items.php
10 months ago
email-header.php
6 months ago
email-mobile-messaging.php
2 years ago
email-order-details.php
3 months ago
email-order-items.php
6 months ago
email-styles.php
4 months ago
customer-reset-password.php
70 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Customer Reset Password email |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-reset-password.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://woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce\Templates\Emails |
| 15 | * @version 10.4.0 |
| 16 | */ |
| 17 | |
| 18 | use Automattic\WooCommerce\Utilities\FeaturesUtil; |
| 19 | |
| 20 | if ( ! defined( 'ABSPATH' ) ) { |
| 21 | exit; // Exit if accessed directly. |
| 22 | } |
| 23 | |
| 24 | $email_improvements_enabled = FeaturesUtil::feature_is_enabled( 'email_improvements' ); |
| 25 | |
| 26 | ?> |
| 27 | |
| 28 | <?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?> |
| 29 | |
| 30 | <?php echo $email_improvements_enabled ? '<div class="email-introduction">' : ''; ?> |
| 31 | <?php /* translators: %s: Customer username */ ?> |
| 32 | <p><?php printf( esc_html__( 'Hi %s,', 'woocommerce' ), esc_html( $user_login ) ); ?></p> |
| 33 | <?php /* translators: %s: Store name */ ?> |
| 34 | <p><?php printf( esc_html__( 'Someone has requested a new password for the following account on %s:', 'woocommerce' ), esc_html( $blogname ) ); ?></p> |
| 35 | <?php if ( $email_improvements_enabled ) : ?> |
| 36 | <div class="hr hr-top"></div> |
| 37 | <?php /* translators: %s: Username */ ?> |
| 38 | <p><?php echo wp_kses( sprintf( __( 'Username: <b>%s</b>', 'woocommerce' ), esc_html( $user_login ) ), array( 'b' => array() ) ); ?></p> |
| 39 | <div class="hr hr-bottom"></div> |
| 40 | <p><?php esc_html_e( 'If you didn’t make this request, just ignore this email. If you’d like to proceed, reset your password via the link below:', 'woocommerce' ); ?></p> |
| 41 | <?php else : ?> |
| 42 | <?php /* translators: %s: Customer username */ ?> |
| 43 | <p><?php printf( esc_html__( 'Username: %s', 'woocommerce' ), esc_html( $user_login ) ); ?></p> |
| 44 | <p><?php esc_html_e( 'If you didn\'t make this request, just ignore this email. If you\'d like to proceed:', 'woocommerce' ); ?></p> |
| 45 | <?php endif; ?> |
| 46 | <p> |
| 47 | <a class="link" href="<?php echo esc_url( add_query_arg( array( 'key' => $reset_key, 'id' => $user_id, 'login' => rawurlencode( $user_login ) ), wc_get_endpoint_url( 'lost-password', '', wc_get_page_permalink( 'myaccount' ) ) ) ); ?>"><?php // phpcs:ignore WordPress.Arrays.ArrayDeclarationSpacing.AssociativeArrayFound ?> |
| 48 | <?php |
| 49 | if ( $email_improvements_enabled ) { |
| 50 | esc_html_e( 'Reset your password', 'woocommerce' ); |
| 51 | } else { |
| 52 | esc_html_e( 'Click here to reset your password', 'woocommerce' ); |
| 53 | } |
| 54 | ?> |
| 55 | </a> |
| 56 | </p> |
| 57 | <?php echo $email_improvements_enabled ? '</div>' : ''; ?> |
| 58 | |
| 59 | <?php |
| 60 | /** |
| 61 | * Show user-defined additional content - this is set in each email's settings. |
| 62 | */ |
| 63 | if ( $additional_content ) { |
| 64 | echo $email_improvements_enabled ? '<table border="0" cellpadding="0" cellspacing="0" width="100%" role="presentation"><tr><td class="email-additional-content email-additional-content-aligned">' : ''; |
| 65 | echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) ); |
| 66 | echo $email_improvements_enabled ? '</td></tr></table>' : ''; |
| 67 | } |
| 68 | |
| 69 | do_action( 'woocommerce_email_footer', $email ); |
| 70 |