PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 1.10.0
Subscriptions for WooCommerce with Stripe Recurring Payments v1.10.0
2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 All 61 releases
subscription / templates / emails / status-changed-admin-html.php

status-changed-admin-html.php in Subscriptions for WooCommerce with Stripe Recurring Payments 1.10.0, at templates/emails/status-changed-admin-html.php

66 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Mail template for Subscription status changed (Admin).
4 *
5 * @var string $email_heading Email Heading.
6 * @var string $old_status Readable Old Status of Subscription.
7 * @var string $new_status Readable New Status of Subscription.
8 * @var int $id Subscription id.
9 * @var string $product_name Product name.
10 * @var int $qty Subscription Quantity.
11 * @var string $amount Subscription Amount with price format.
12 * @var string $view_subscription_url Subscription view URL.
13 * @var string $next_date Next payment date.
14 */
15
16 // Exit if accessed directly.
17 if ( ! defined( 'ABSPATH' ) ) {
18 exit;
19 }
20
21 // translators: first is older status and last is newly updated status.
22 $opening_paragraph = __( 'Subscription status changed from %1$s to %2$s', 'subscription' );
23 ?>
24
25 <?php do_action( 'woocommerce_email_header', $email_heading ); ?>
26
27
28 <p><?php printf( esc_html( $opening_paragraph ), wp_kses_post( '<b>' . $old_status . '</b>' ), wp_kses_post( '<b>' . $new_status . '</b>' ) ); ?></p>
29
30 <table class="td" cellspacing="0" cellpadding="6" style="width: 100%; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1">
31 <tbody>
32 <tr>
33 <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Subscription Id', 'subscription' ); ?></th>
34 <td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $id ); ?></td>
35 </tr>
36 <tr>
37 <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Product', 'subscription' ); ?></th>
38 <td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $product_name ); ?></td>
39 </tr>
40 <tr>
41 <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Qty', 'subscription' ); ?></th>
42 <td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $qty ); ?></td>
43 </tr>
44 <tr>
45 <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Amount', 'subscription' ); ?></th>
46 <td style="text-align:left; border: 1px solid #eee;"><?php echo wp_kses_post( $amount ); ?></td>
47 </tr>
48 </tbody>
49 </table>
50 <br>
51 <p>
52 <?php
53 echo wp_kses_post(
54 make_clickable(
55 sprintf(
56 // translators: subscription url.
57 __( 'You can view the subscription here: %s', 'subscription' ),
58 $view_subscription_url
59 )
60 )
61 );
62 ?>
63 </p>
64
65 <?php do_action( 'woocommerce_email_footer' ); ?>
66