| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Mail template for Subscription status changed (Admin). | |
| 3 | + * Mail template for Subscription cancelled (Customer). | |
| 4 | 4 | * |
| 5 | 5 | * @var string $email_heading Email Heading. |
| 6 | 6 | * @var int $id Subscription id. |
| 7 | 7 | * @var string $product_name Product name. |
| @@ -7,8 +7,10 @@ | ||
| 7 | 7 | * @var string $product_name Product name. |
| 8 | 8 | * @var int $qty Subscription Quantity. |
| 9 | 9 | * @var string $amount Subscription Amount with price format. |
| 10 | 10 | * @var string $view_subscription_url Subscription view URL. |
| 11 | + * | |
| 12 | + * @package SpringDevs\Subscription | |
| 11 | 13 | */ |
| 12 | 14 | |
| 13 | 15 | // Exit if accessed directly. |
| 14 | 16 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -24,40 +26,37 @@ | ||
| 24 | 26 | echo wp_kses_post( sprintf( __( 'Your subscription is %1$s Cancelled! %2$s', 'subscription' ), '<b>', '</b>' ) ); |
| 25 | 27 | ?> |
| 26 | 28 | </p> |
| 27 | 29 | |
| 28 | -<table class="td" cellspacing="0" cellpadding="6" style="width: 100%; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1"> | |
| 30 | +<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;"> | |
| 29 | 31 | <tbody> |
| 32 | + <tr> | |
| 33 | + <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> | |
| 34 | + <td style="padding:10px 14px;text-align:left;vertical-align:top;color:#1d2327;"><?php echo esc_html( $id ); ?></td> | |
| 35 | + </tr> | |
| 36 | + <tr> | |
| 37 | + <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> | |
| 38 | + <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> | |
| 39 | + </tr> | |
| 40 | + <tr> | |
| 41 | + <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> | |
| 42 | + <td style="padding:10px 14px;text-align:left;vertical-align:top;color:#1d2327;border-top:1px solid #e3e3e8;"><?php echo esc_html( $qty ); ?></td> | |
| 43 | + </tr> | |
| 44 | + <tr> | |
| 45 | + <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> | |
| 46 | + <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> | |
| 47 | + </tr> | |
| 48 | + </tbody> | |
| 49 | +</table> | |
| 50 | + | |
| 51 | +<table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin:24px 0;"> | |
| 30 | 52 | <tr> |
| 31 | - <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Subscription Id', 'subscription' ); ?></th> | |
| 32 | - <td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $id ); ?></td> | |
| 53 | + <td align="center"> | |
| 54 | + <a href="<?php echo esc_url( $view_subscription_url ); ?>" | |
| 55 | + style="display:inline-block;padding:12px 24px;background-color:#7f54b3;color:#ffffff;text-decoration:none;font-size:14px;font-weight:600;border-radius:4px;"> | |
| 56 | + <?php esc_html_e( 'View subscription', 'subscription' ); ?> | |
| 57 | + </a> | |
| 58 | + </td> | |
| 33 | 59 | </tr> |
| 34 | - <tr> | |
| 35 | - <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Product', 'subscription' ); ?></th> | |
| 36 | - <td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $product_name ); ?></td> | |
| 37 | - </tr> | |
| 38 | - <tr> | |
| 39 | - <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Qty', 'subscription' ); ?></th> | |
| 40 | - <td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $qty ); ?></td> | |
| 41 | - </tr> | |
| 42 | - <tr> | |
| 43 | - <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Amount', 'subscription' ); ?></th> | |
| 44 | - <td style="text-align:left; border: 1px solid #eee;"><?php echo wp_kses_post( $amount ); ?></td> | |
| 45 | - </tr> | |
| 46 | - </tbody> | |
| 47 | 60 | </table> |
| 48 | -<br> | |
| 49 | -<p> | |
| 50 | - <?php | |
| 51 | - echo wp_kses_post( | |
| 52 | - make_clickable( | |
| 53 | - sprintf( | |
| 54 | - // translators: subscription url. | |
| 55 | - __( 'You can view the subscription here: %s', 'subscription' ), | |
| 56 | - $view_subscription_url | |
| 57 | - ) | |
| 58 | - ) | |
| 59 | - ); | |
| 60 | - ?> | |
| 61 | -</p> | |
| 62 | 61 | |
| 63 | 62 | <?php do_action( 'woocommerce_email_footer' ); ?> |