PluginProbe
YayMail – WooCommerce Email Customizer / 1.9.6
YayMail – WooCommerce Email Customizer v1.9.6
4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 All 57 releases
yaymail / views / templates / emails / sampleOrder / email-subscription-header.php

email-subscription-header.php in YayMail – WooCommerce Email Customizer 1.9.6, at views/templates/emails/sampleOrder/email-subscription-header.php

45 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined( 'ABSPATH' ) || exit;
4 $sent_to_admin = ( isset( $sent_to_admin ) ? true : false );
5 $beforeText = esc_html__( 'Hi John', 'woocommerce' ) . wp_kses_post( ',<br><br>' );
6 $headerContent = '';
7 $headerContent = '<span style="color: inherit;font-size: 14px;" class="yaymail_subscription_header">';
8 $headerContent .= $beforeText;
9 if ( 'ywsbs_customer_subscription_expired' == $this->template ) {
10 $headerContent .= esc_html__( 'Subscription #1 has expired.', 'woocommerce' );
11 }
12 if ( 'ywsbs_customer_subscription_before_expired' == $this->template ) {
13 $headerContent .= esc_html__( 'Subscription #1 is going to expire.', 'woocommerce' );
14 }
15 if ( 'ywsbs_customer_subscription_suspended' == $this->template ) {
16 $headerContent .= esc_html__( 'Subscription #1 has been suspended.', 'woocommerce' );
17 }
18 if ( 'ywsbs_customer_subscription_cancelled' == $this->template ) {
19 $headerContent .= esc_html__( 'Subscription #1 has been cancelled.', 'woocommerce' );
20 }
21 if ( 'ywsbs_customer_subscription_paused' == $this->template ) {
22 $headerContent .= esc_html__( 'Subscription #1 has been paused.', 'woocommerce' );
23 }
24 if ( 'ywsbs_customer_subscription_resumed' == $this->template ) {
25 $headerContent .= esc_html__( 'Subscription #1 has been resumed.', 'woocommerce' );
26 }
27 if ( 'ywsbs_customer_subscription_renew_reminder' == $this->template ) {
28 $headerContent .= esc_html__( 'Subscription #1 is going to renew.', 'woocommerce' );
29 }
30 if ( 'ywsbs_customer_subscription_request_payment' == $this->template ) {
31 $headerContent .= esc_html__( 'Your recent subscription renewal order on ', 'woocommerce' ) . wp_kses_post( get_option( 'blogname' ) ) . esc_html__( ' is late for payment.', 'woocommerce' );
32 }
33 if ( 'ywsbs_customer_subscription_payment_failed' == $this->template ) {
34 $headerContent .= esc_html__( 'The payment to renew your subscription failed. Please, verify your available funds for the card specified during subscription and/or verify that your card is not expired.', 'woocommerce' );
35 }
36 if ( 'ywsbs_customer_subscription_payment_done' == $this->template ) {
37 $headerContent .= esc_html__( 'Your subscription order is now being processed. Your order details are shown below for your reference: ', 'woocommerce' ) . wp_kses_post( get_option( 'blogname' ) );
38 }
39 if ( 'ywsbs_subscription_admin_mail' == $this->template ) {
40 $headerContent .= esc_html__( 'The status of subscription #1 has changed.', 'woocommerce' );
41 }
42 $headerContent .= '</span>';
43 echo wp_kses_post( $headerContent );
44
45