Bez popisu

customer-new-account-blocks.php 1.4KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Customer new account email - html.
  4. *
  5. * This is intended as a replacement to WC_Email_Customer_New_Account(),
  6. * with a set password link instead of including the new password in email
  7. * content.
  8. *
  9. * @package WooCommerce/Blocks
  10. */
  11. defined( 'ABSPATH' ) || exit;
  12. do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
  13. <?php /* translators: %s: Customer username */ ?>
  14. <p><?php printf( esc_html__( 'Hello %s,', 'woocommerce' ), esc_html( $user_login ) ); ?></p>
  15. <?php /* translators: %1$s: Site title, %2$s: Username, %3$s: My account link */ ?>
  16. <p><?php printf( esc_html__( 'Thanks for creating an account on %1$s. Your username is %2$s. You can access your account area to view orders, change your password, and more at: %3$s', 'woocommerce' ), esc_html( $blogname ), '<strong>' . esc_html( $user_login ) . '</strong>', make_clickable( esc_url( wc_get_page_permalink( 'myaccount' ) ) ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
  17. <?php if ( $set_password_url ) : ?>
  18. <p><a href="<?php echo esc_attr( $set_password_url ); ?>"><?php printf( esc_html__( 'Click here to set your new password.', 'woocommerce' ) ); ?></a></p>
  19. <?php endif; ?>
  20. <?php
  21. /**
  22. * Show user-defined additional content - this is set in each email's settings.
  23. */
  24. if ( $additional_content ) {
  25. echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
  26. }
  27. do_action( 'woocommerce_email_footer', $email );