admin-cancelled-order.php
3 months ago
admin-failed-order.php
3 months ago
admin-new-order.php
9 months ago
customer-cancelled-order.php
3 months ago
customer-completed-order.php
3 months ago
customer-failed-order.php
3 months ago
customer-fulfillment-created.php
3 months ago
customer-fulfillment-deleted.php
3 months ago
customer-fulfillment-updated.php
3 months ago
customer-invoice.php
3 months ago
customer-new-account.php
3 months ago
customer-note.php
3 months ago
customer-on-hold-order.php
3 months ago
customer-partially-refunded-order.php
3 months ago
customer-pos-completed-order.php
9 months ago
customer-pos-refunded-order.php
4 months ago
customer-processing-order.php
3 months ago
customer-refunded-order.php
3 months ago
customer-reset-password.php
3 months ago
default-block-content.php
3 months ago
general-block-content-for-fulfillment-emails.php
4 months ago
general-block-email.php
4 months ago
default-block-content.php
46 lines
| 1 | <?php |
| 2 | /** |
| 3 | * This is the default block content for the WooCommerce email editor. |
| 4 | * |
| 5 | * We show this when the plugin/theme developer has not provided a custom template. |
| 6 | * |
| 7 | * New block initial content should be placed in yourtheme/woocommerce/emails/block/email-id.php. |
| 8 | * |
| 9 | * @see https://woocommerce.com/document/template-structure/ |
| 10 | * @package WooCommerce\Templates\Emails\Block |
| 11 | * @version 10.6.0 |
| 12 | */ |
| 13 | |
| 14 | use Automattic\WooCommerce\Internal\EmailEditor\BlockEmailRenderer; |
| 15 | |
| 16 | defined( 'ABSPATH' ) || exit; |
| 17 | |
| 18 | // phpcs:disable Squiz.PHP.EmbeddedPhp.ContentBeforeOpen -- removed to prevent empty new lines. |
| 19 | // phpcs:disable Squiz.PHP.EmbeddedPhp.ContentAfterEnd -- removed to prevent empty new lines. |
| 20 | ?> |
| 21 | |
| 22 | <!-- wp:heading --> |
| 23 | <h2 class="wp-block-heading"><?php |
| 24 | esc_html_e( 'Default block content', 'woocommerce' ); |
| 25 | ?></h2> |
| 26 | <!-- /wp:heading --> |
| 27 | |
| 28 | <!-- wp:paragraph --> |
| 29 | <p><?php |
| 30 | /* translators: %s: Customer first name */ |
| 31 | printf( esc_html__( 'Hi %s,', 'woocommerce' ), '<!--[woocommerce/customer-first-name]-->' ); |
| 32 | ?></p> |
| 33 | <!-- /wp:paragraph --> |
| 34 | |
| 35 | <!-- wp:woocommerce/email-content {"lock":{"move":false,"remove":true}} --> |
| 36 | <div class="wp-block-woocommerce-email-content"> <?php echo esc_html( BlockEmailRenderer::WOO_EMAIL_CONTENT_PLACEHOLDER ); ?> </div> |
| 37 | <!-- /wp:woocommerce/email-content --> |
| 38 | |
| 39 | <!-- wp:paragraph {"align":"center"} --> |
| 40 | <p class="has-text-align-center"><?php |
| 41 | /* translators: %s: Store admin email */ |
| 42 | printf( esc_html__( 'Thanks again! If you need any help with your order, please contact us at %s.', 'woocommerce' ), '<!--[woocommerce/store-email]-->' ); |
| 43 | ?></p> |
| 44 | <!-- /wp:paragraph --> |
| 45 | |
| 46 |