| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Mail template for Subscription status changed (Admin). | |
| 3 | + * Mail template for Subscription renewal reminder (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. |
| @@ -8,8 +8,10 @@ | ||
| 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 | 11 | * @var int $num_of_days_before Number of days before. |
| 12 | + * | |
| 13 | + * @package SpringDevs\Subscription | |
| 12 | 14 | */ |
| 13 | 15 | |
| 14 | 16 | // Exit if accessed directly. |
| 15 | 17 | if ( ! defined( 'ABSPATH' ) ) { |
| @@ -31,40 +33,37 @@ | ||
| 31 | 33 | ); |
| 32 | 34 | ?> |
| 33 | 35 | </p> |
| 34 | 36 | |
| 35 | -<table class="td" cellspacing="0" cellpadding="6" style="width: 100%; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1"> | |
| 37 | +<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;"> | |
| 36 | 38 | <tbody> |
| 39 | + <tr> | |
| 40 | + <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> | |
| 41 | + <td style="padding:10px 14px;text-align:left;vertical-align:top;color:#1d2327;"><?php echo esc_html( $id ); ?></td> | |
| 42 | + </tr> | |
| 43 | + <tr> | |
| 44 | + <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> | |
| 45 | + <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> | |
| 46 | + </tr> | |
| 47 | + <tr> | |
| 48 | + <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> | |
| 49 | + <td style="padding:10px 14px;text-align:left;vertical-align:top;color:#1d2327;border-top:1px solid #e3e3e8;"><?php echo esc_html( $qty ); ?></td> | |
| 50 | + </tr> | |
| 51 | + <tr> | |
| 52 | + <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> | |
| 53 | + <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> | |
| 54 | + </tr> | |
| 55 | + </tbody> | |
| 56 | +</table> | |
| 57 | + | |
| 58 | +<table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin:24px 0;"> | |
| 37 | 59 | <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> | |
| 60 | + <td align="center"> | |
| 61 | + <a href="<?php echo esc_url( $view_subscription_url ); ?>" | |
| 62 | + style="display:inline-block;padding:12px 24px;background-color:#7f54b3;color:#ffffff;text-decoration:none;font-size:14px;font-weight:600;border-radius:4px;"> | |
| 63 | + <?php esc_html_e( 'View subscription', 'subscription' ); ?> | |
| 64 | + </a> | |
| 65 | + </td> | |
| 40 | 66 | </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 | 67 | </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 | 68 | |
| 70 | 69 | <?php do_action( 'woocommerce_email_footer' ); ?> |