| 1 |
<?php |
| 2 |
/** |
| 3 |
* Mail template for Subscription status changed (Admin). |
| 4 |
* |
| 5 |
* @var string $email_heading Email Heading. |
| 6 |
* @var int $id Subscription id. |
| 7 |
* @var string $product_name Product name. |
| 8 |
* @var int $qty Subscription Quantity. |
| 9 |
* @var string $amount Subscription Amount with price format. |
| 10 |
* @var string $view_subscription_url Subscription view URL. |
| 11 |
* @var int $num_of_days_before Number of days before. |
| 12 |
*/ |
| 13 |
|
| 14 |
// Exit if accessed directly. |
| 15 |
if ( ! defined( 'ABSPATH' ) ) { |
| 16 |
exit; |
| 17 |
} |
| 18 |
?> |
| 19 |
|
| 20 |
<?php do_action( 'woocommerce_email_header', $email_heading ); ?> |
| 21 |
|
| 22 |
<p> |
| 23 |
<?php |
| 24 |
echo esc_html( |
| 25 |
sprintf( |
| 26 |
// translators: Number of days before & day|days. |
| 27 |
__( 'You have only %1$s %2$s left! Please renew the subscription before expired', 'subscription' ), |
| 28 |
$num_of_days_before, |
| 29 |
$num_of_days_before > 1 ? 'days' : 'day' |
| 30 |
) |
| 31 |
); |
| 32 |
?> |
| 33 |
</p> |
| 34 |
|
| 35 |
<table class="td" cellspacing="0" cellpadding="6" style="width: 100%; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1"> |
| 36 |
<tbody> |
| 37 |
<tr> |
| 38 |
<th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Subscription Id', 'subscription' ); ?></th> |
| 39 |
<td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $id ); ?></td> |
| 40 |
</tr> |
| 41 |
<tr> |
| 42 |
<th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Product', 'subscription' ); ?></th> |
| 43 |
<td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $product_name ); ?></td> |
| 44 |
</tr> |
| 45 |
<tr> |
| 46 |
<th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Qty', 'subscription' ); ?></th> |
| 47 |
<td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $qty ); ?></td> |
| 48 |
</tr> |
| 49 |
<tr> |
| 50 |
<th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Amount', 'subscription' ); ?></th> |
| 51 |
<td style="text-align:left; border: 1px solid #eee;"><?php echo wp_kses_post( $amount ); ?></td> |
| 52 |
</tr> |
| 53 |
</tbody> |
| 54 |
</table> |
| 55 |
<br> |
| 56 |
<p> |
| 57 |
<?php |
| 58 |
echo wp_kses_post( |
| 59 |
make_clickable( |
| 60 |
sprintf( |
| 61 |
// translators: subscription url. |
| 62 |
__( 'You can view the subscription here: %s', 'subscription' ), |
| 63 |
$view_subscription_url |
| 64 |
) |
| 65 |
) |
| 66 |
); |
| 67 |
?> |
| 68 |
</p> |
| 69 |
|
| 70 |
<?php do_action( 'woocommerce_email_footer' ); ?> |
| 71 |
|