PluginProbe ʕ •ᴥ•ʔ
WooCommerce Square / 5.4.3
WooCommerce Square v5.4.3
5.4.3 5.4.2 5.4.1 5.4.0 trunk 1.0.25 1.0.26 1.0.27 1.0.28 1.0.29 1.0.30 1.0.31 1.0.32 1.0.33 1.0.34 1.0.35 1.0.36 1.0.37 1.0.38 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.4.0 2.4.1 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.7.0 2.8.0 2.9.0 2.9.1 3.0.0 3.0.1 3.0.2 3.0.3 3.1.0 3.2.0 3.3.0 3.4.0 3.4.1 3.4.2 3.5.0 3.6.0 3.6.1 3.7.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.9.0 4.0.0 4.1.0 4.2.0 4.2.1 4.2.2 4.2.3 4.3.0 4.3.1 4.3.2 4.4.0 4.4.1 4.4.2 4.5.0 4.5.1 4.5.2 4.6.0 4.6.1 4.6.2 4.6.3 4.6.4 4.7.0 4.7.1 4.7.2 4.7.3 4.7.4 4.8.0 4.8.1 4.8.2 4.8.3 4.8.4 4.8.5 4.8.6 4.8.7 4.8.8 4.9.0 4.9.1 4.9.2 4.9.3 4.9.4 4.9.5 4.9.6 4.9.7 4.9.8 4.9.9 5.0.0 5.0.1 5.1.0 5.1.1 5.1.2 5.2.0 5.3.0 5.3.1 5.3.2 5.3.3
woocommerce-square / templates / emails / gift-card-sent.php
woocommerce-square / templates / emails Last commit date
plain 1 year ago gift-card-sent.php 1 year ago square-email.php 3 years ago
gift-card-sent.php
103 lines
1 <?php
2 /**
3 * Customer note email
4 *
5 * This template can be overridden by copying it to yourtheme/woocommerce/emails/customer-note.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://docs.woocommerce.com/document/template-structure/
14 * @package WooCommerce\Templates\Emails
15 * @version 3.7.0
16 */
17
18 if ( ! defined( 'ABSPATH' ) ) {
19 exit;
20 }
21
22 /**
23 * @since 4.2.0
24 * @hooked WC_Emails::email_header() Output the email header
25 */
26 do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
27
28 <style>
29 #wc-square-gift-card-email__message {
30 border-left: 1px solid;
31 padding-left: 1rem;
32 margin-bottom: 1.5rem;
33 font-style: italic;
34 }
35
36 #wc-square-gift-card-email__wrapper {
37 padding: 2rem 1rem;
38 background-color: #f5f5f5;
39 margin: 1.5rem 0;
40 text-align: center;
41 }
42
43 #wc-square-gift-card-email__card-balance {
44 font-weight: bold;
45 font-size: 2.5rem;
46 line-height: 1.5;
47 margin-bottom: 1rem;
48 color: #7f54b3;
49 }
50
51 #wc-square-gift-card-email__card-number {
52 border: 1px solid #000;
53 font-family: monospace;
54 font-size: 1.5rem;
55 padding: 1rem;
56 display: inline-block;
57 }
58 </style>
59
60 <p>
61 <?php
62 printf(
63 /* translators: %1$s Email sender name. */
64 esc_html__( 'Hey %1$s, you just received a gift card!', 'woocommerce-square' ),
65 esc_html( $gift_card_recipient_name )
66 );
67 ?>
68 </p>
69
70 <?php if ( $gift_card_sender_message ) : ?>
71 <div id="wc-square-gift-card-email__message">
72 <?php echo esc_html( $gift_card_sender_message ); ?>
73 <br>
74 <?php
75 /* translators: %1$s Sender's name. */
76 printf( esc_html__( 'From: %1$s', 'woocommerce-square' ), $gift_card_sender_name ? esc_html( $gift_card_sender_name ) : esc_html( $order->get_billing_first_name() ) );
77 ?>
78 </div>
79 <?php endif; ?>
80
81 <div id="wc-square-gift-card-email__wrapper">
82 <p><?php esc_html_e( 'Amount:', 'woocommerce-square' ); ?></p>
83 <div id="wc-square-gift-card-email__card-balance"><?php echo wc_price( $gift_card_balance ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div>
84 <p><?php printf( esc_html__( 'Your gift card number is:', 'woocommerce-square' ) ); ?></p>
85 <div id="wc-square-gift-card-email__card-number"><?php echo esc_html( $gift_card_number ); ?></div>
86 </div>
87
88 <?php
89 if ( $additional_content ) {
90 echo wp_kses_post( wpautop( wptexturize( $additional_content ) ) );
91 }
92 ?>
93
94
95
96 <?php
97
98 /**
99 * @since 4.2.0
100 * @hooked WC_Emails::email_footer() Output the email footer
101 */
102 do_action( 'woocommerce_email_footer', $email );
103