PluginProbe
WooCommerce / 11.1.0-beta.2
WooCommerce v11.1.0-beta.2
11.1.0 11.1.0-rc.2 11.1.0-rc.1 11.1.0-beta.2 11.1.0-beta.1 11.0.1 11.0.0 11.0.0-rc.3 11.0.0-rc.2 11.0.0-rc.1 11.0.0-beta.2 11.0.0-beta.1 10.9.4 10.9.3 10.9.2 10.9.1 10.9.0 10.9.0-rc.1 10.9.0-beta.2 10.9.0-beta.1 10.8.1 10.8.0 10.8.0-rc.1 10.8.0-beta.2 10.8.0-beta.1 All 648 releases
woocommerce / templates / emails / block / admin-new-order.php
admin-new-order.php
47 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Admin new order 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.7.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: order number */
29 printf( esc_html__( 'New order: #%s', 'woocommerce' ), '<!--[woocommerce/order-number]-->' );
30 ?></h2>
31 <!-- /wp:heading -->
32
33 <!-- wp:paragraph -->
34 <p><?php
35 /* translators: %s: Customer full name */
36 printf( esc_html__( 'You’ve received a new order from %s:', 'woocommerce' ), '<!--[woocommerce/customer-full-name]-->' );
37 ?></p>
38 <!-- /wp:paragraph -->
39
40 <!-- wp:woocommerce/email-content {"lock":{"move":false,"remove":true}} -->
41 <div class="wp-block-woocommerce-email-content"> <?php echo esc_html( BlockEmailRenderer::WOO_EMAIL_CONTENT_PLACEHOLDER ); ?> </div>
42 <!-- /wp:woocommerce/email-content -->
43
44 <!-- wp:paragraph {"align":"center"} -->
45 <p class="has-text-align-center"> <?php echo esc_html__( 'Congratulations on the sale!', 'woocommerce' ); ?> </p>
46 <!-- /wp:paragraph -->
47