| 1 |
<?php |
| 2 |
/** |
| 3 |
* Admin notice: a subscription was cancelled (free). |
| 4 |
* |
| 5 |
* Reports the reason and nothing identifying - no customer, no subscription |
| 6 |
* link. Those live in Pro, which the closing block points at. |
| 7 |
* |
| 8 |
* This template can be overridden by copying it to: |
| 9 |
* <your_theme>/subscription/emails/cancellation-admin-html.php |
| 10 |
* |
| 11 |
* @var string $email_heading Email heading. |
| 12 |
* @var string $intro Opening sentence. |
| 13 |
* @var string $reason Reason the customer gave, may be empty. |
| 14 |
* @var string $reported_at When this was reported, site-formatted. |
| 15 |
* @var string $reports_url Admin Reports page. |
| 16 |
* @var string $upgrade_url Pro product page. |
| 17 |
* @var object $email The WC_Email instance. |
| 18 |
* |
| 19 |
* @package SpringDevs\Subscription |
| 20 |
*/ |
| 21 |
|
| 22 |
defined( 'ABSPATH' ) || exit; |
| 23 |
|
| 24 |
do_action( 'woocommerce_email_header', $email_heading, $email ); |
| 25 |
?> |
| 26 |
|
| 27 |
<p style="margin:0 0 16px;"><?php echo esc_html( $intro ); ?></p> |
| 28 |
|
| 29 |
<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;"> |
| 30 |
<tbody> |
| 31 |
<tr> |
| 32 |
<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( 'Reason given', 'subscription' ); ?></th> |
| 33 |
<td style="padding:10px 14px;text-align:left;vertical-align:top;color:#1d2327;"> |
| 34 |
<?php echo esc_html( '' !== $reason ? $reason : __( 'No reason given', 'subscription' ) ); ?> |
| 35 |
</td> |
| 36 |
</tr> |
| 37 |
<tr> |
| 38 |
<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( 'Reported', 'subscription' ); ?></th> |
| 39 |
<td style="padding:10px 14px;text-align:left;vertical-align:top;color:#1d2327;border-top:1px solid #e3e3e8;"><?php echo esc_html( $reported_at ); ?></td> |
| 40 |
</tr> |
| 41 |
</tbody> |
| 42 |
</table> |
| 43 |
|
| 44 |
<p style="margin:20px 0 0;font-size:13px;color:#50575e;"> |
| 45 |
<?php esc_html_e( 'Which customer cancelled, what they wrote, and your full churn history are shown in WPSubscription Pro.', 'subscription' ); ?> |
| 46 |
</p> |
| 47 |
|
| 48 |
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin:16px 0;"> |
| 49 |
<tr> |
| 50 |
<td align="center"> |
| 51 |
<a href="<?php echo esc_url( $upgrade_url ); ?>" |
| 52 |
style="display:inline-block;padding:12px 24px;background-color:#7f54b3;color:#ffffff;text-decoration:none;font-size:14px;font-weight:600;border-radius:4px;"> |
| 53 |
<?php esc_html_e( 'See it in Pro', 'subscription' ); ?> |
| 54 |
</a> |
| 55 |
</td> |
| 56 |
</tr> |
| 57 |
</table> |
| 58 |
|
| 59 |
<p style="margin:0;font-size:13px;color:#787c82;"> |
| 60 |
<a href="<?php echo esc_url( $reports_url ); ?>" style="color:#2271b1;"><?php esc_html_e( 'Open the Reports page', 'subscription' ); ?></a> |
| 61 |
</p> |
| 62 |
|
| 63 |
<?php |
| 64 |
do_action( 'woocommerce_email_footer', $email ); |
| 65 |
|