admin-cancelled-order.php
4 months ago
admin-failed-order.php
4 months ago
admin-new-order.php
2 months ago
admin-payment-gateway-enabled.php
2 months ago
customer-cancelled-order.php
2 months ago
customer-completed-order.php
4 months ago
customer-failed-order.php
2 months ago
customer-fulfillment-created.php
2 months ago
customer-fulfillment-deleted.php
2 months ago
customer-fulfillment-updated.php
2 months ago
customer-invoice.php
4 months ago
customer-new-account.php
4 months ago
customer-note.php
2 months ago
customer-on-hold-order.php
2 months ago
customer-partially-refunded-order.php
2 months ago
customer-pos-completed-order.php
9 months ago
customer-pos-refunded-order.php
5 months ago
customer-processing-order.php
2 months ago
customer-refunded-order.php
2 months ago
customer-reset-password.php
4 months ago
default-block-content.php
4 months ago
general-block-content-for-fulfillment-emails.php
1 month ago
general-block-email.php
5 months ago
customer-new-account.php
82 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Customer new account email (initial block content). |
| 4 | * |
| 5 | * This template can be overridden by editing it in the WooCommerce email editor. |
| 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\Block |
| 15 | * @version 10.6.0 |
| 16 | */ |
| 17 | |
| 18 | use Automattic\WooCommerce\Internal\EmailEditor\BlockEmailRenderer; |
| 19 | |
| 20 | defined( 'ABSPATH' ) || exit; |
| 21 | |
| 22 | // phpcs:disable Squiz.PHP.EmbeddedPhp.ContentBeforeOpen -- removed to prevent empty new lines. |
| 23 | // phpcs:disable Squiz.PHP.EmbeddedPhp.ContentAfterEnd -- removed to prevent empty new lines. |
| 24 | ?> |
| 25 | |
| 26 | <!-- wp:heading --> |
| 27 | <h2 class="wp-block-heading"><?php |
| 28 | /* translators: %s: Site title*/ |
| 29 | printf( esc_html__( 'Welcome to %s', 'woocommerce' ), '<!--[woocommerce/site-title]-->' ); |
| 30 | ?></h2> |
| 31 | <!-- /wp:heading --> |
| 32 | |
| 33 | <!-- wp:paragraph --> |
| 34 | <p><?php |
| 35 | /* translators: %s: Customer first name */ |
| 36 | printf( esc_html__( 'Hi %s,', 'woocommerce' ), '<!--[woocommerce/customer-first-name]-->' ); |
| 37 | ?></p> |
| 38 | <!-- /wp:paragraph --> |
| 39 | |
| 40 | <!-- wp:paragraph --> |
| 41 | <p><?php |
| 42 | /* translators: %s: Site title */ |
| 43 | printf( esc_html__( 'Thanks for creating an account on %s. Here’s a copy of your user details.', 'woocommerce' ), '<!--[woocommerce/site-title]-->' ); |
| 44 | ?></p> |
| 45 | <!-- /wp:paragraph --> |
| 46 | |
| 47 | <!-- wp:paragraph --> |
| 48 | <p><?php |
| 49 | /* translators: %s: Username */ |
| 50 | echo wp_kses( sprintf( __( 'Username: <b>%s</b>', 'woocommerce' ), '<!--[woocommerce/customer-username]-->' ), array( 'b' => array() ) ); |
| 51 | ?></p> |
| 52 | <!-- /wp:paragraph --> |
| 53 | |
| 54 | <!-- wp:woocommerce/email-content {"lock":{"move":false,"remove":true}} --> |
| 55 | <div class="wp-block-woocommerce-email-content"> <?php echo esc_html( BlockEmailRenderer::WOO_EMAIL_CONTENT_PLACEHOLDER ); ?> </div> |
| 56 | <!-- /wp:woocommerce/email-content --> |
| 57 | |
| 58 | <!-- wp:paragraph --> |
| 59 | <p><?php echo esc_html__( 'You can access your account area to view orders, change your password, and more via the link below:', 'woocommerce' ); ?></p> |
| 60 | <!-- /wp:paragraph --> |
| 61 | |
| 62 | <!-- wp:paragraph --> |
| 63 | <p><?php |
| 64 | $link_template = '<a data-link-href="%1$s" contenteditable="false" style="text-decoration: underline;">%2$s</a>'; |
| 65 | printf( |
| 66 | '%s', |
| 67 | wp_kses_post( |
| 68 | sprintf( |
| 69 | $link_template, |
| 70 | esc_attr( '[woocommerce/my-account-url]' ), |
| 71 | esc_html__( 'My account', 'woocommerce' ) |
| 72 | ) |
| 73 | ) |
| 74 | ); |
| 75 | ?></p> |
| 76 | <!-- /wp:paragraph --> |
| 77 | |
| 78 | <!-- wp:paragraph {"align":"center"} --> |
| 79 | <p class="has-text-align-center"> <?php echo esc_html__( 'We look forward to seeing you soon.', 'woocommerce' ); ?> </p> |
| 80 | <!-- /wp:paragraph --> |
| 81 | |
| 82 |