| 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 $admin_subscription_url Admin subscription details URL. |
| 13 |
* @var string $next_date Next payment date. |
| 14 |
* |
| 15 |
* @package SpringDevs\Subscription |
| 16 |
*/ |
| 17 |
|
| 18 |
// Exit if accessed directly. |
| 19 |
if ( ! defined( 'ABSPATH' ) ) { |
| 20 |
exit; |
| 21 |
} |
| 22 |
|
| 23 |
// translators: first is older status and last is newly updated status. |
| 24 |
$opening_paragraph = __( 'Subscription status changed from %1$s to %2$s', 'subscription' ); |
| 25 |
?> |
| 26 |
|
| 27 |
<?php do_action( 'woocommerce_email_header', $email_heading ); ?> |
| 28 |
|
| 29 |
|
| 30 |
<p><?php printf( esc_html( $opening_paragraph ), wp_kses_post( '<b>' . $old_status . '</b>' ), wp_kses_post( '<b>' . $new_status . '</b>' ) ); ?></p> |
| 31 |
|
| 32 |
<table cellspacing="0" cellpadding="0" border="0" style="width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e3e3e8;border-radius:6px;overflow:hidden;font-family:'Helvetica Neue',Helvetica,Roboto,Arial,sans-serif;font-size:14px;"> |
| 33 |
<tbody> |
| 34 |
<tr> |
| 35 |
<th scope="row" style="width:40%;padding:10px 14px;text-align:left;vertical-align:top;font-weight:600;color:#50575e;background-color:#f6f7f7;"><?php esc_html_e( 'Subscription Id', 'subscription' ); ?></th> |
| 36 |
<td style="padding:10px 14px;text-align:left;vertical-align:top;color:#1d2327;"><?php echo esc_html( $id ); ?></td> |
| 37 |
</tr> |
| 38 |
<tr> |
| 39 |
<th scope="row" style="width:40%;padding:10px 14px;text-align:left;vertical-align:top;font-weight:600;color:#50575e;background-color:#f6f7f7;border-top:1px solid #e3e3e8;"><?php esc_html_e( 'Product', 'subscription' ); ?></th> |
| 40 |
<td style="padding:10px 14px;text-align:left;vertical-align:top;color:#1d2327;border-top:1px solid #e3e3e8;"><?php echo esc_html( $product_name ); ?></td> |
| 41 |
</tr> |
| 42 |
<tr> |
| 43 |
<th scope="row" style="width:40%;padding:10px 14px;text-align:left;vertical-align:top;font-weight:600;color:#50575e;background-color:#f6f7f7;border-top:1px solid #e3e3e8;"><?php esc_html_e( 'Qty', 'subscription' ); ?></th> |
| 44 |
<td style="padding:10px 14px;text-align:left;vertical-align:top;color:#1d2327;border-top:1px solid #e3e3e8;"><?php echo esc_html( $qty ); ?></td> |
| 45 |
</tr> |
| 46 |
<tr> |
| 47 |
<th scope="row" style="width:40%;padding:10px 14px;text-align:left;vertical-align:top;font-weight:600;color:#50575e;background-color:#f6f7f7;border-top:1px solid #e3e3e8;"><?php esc_html_e( 'Amount', 'subscription' ); ?></th> |
| 48 |
<td style="padding:10px 14px;text-align:left;vertical-align:top;color:#1d2327;border-top:1px solid #e3e3e8;"><?php echo wp_kses_post( $amount ); ?></td> |
| 49 |
</tr> |
| 50 |
</tbody> |
| 51 |
</table> |
| 52 |
|
| 53 |
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin:24px 0;"> |
| 54 |
<tr> |
| 55 |
<td align="center"> |
| 56 |
<a href="<?php echo esc_url( $admin_subscription_url ); ?>" |
| 57 |
style="display:inline-block;padding:12px 24px;background-color:#7f54b3;color:#ffffff;text-decoration:none;font-size:14px;font-weight:600;border-radius:4px;"> |
| 58 |
<?php esc_html_e( 'Open subscription', 'subscription' ); ?> |
| 59 |
</a> |
| 60 |
</td> |
| 61 |
</tr> |
| 62 |
</table> |
| 63 |
|
| 64 |
<?php do_action( 'woocommerce_email_footer' ); ?> |
| 65 |
|