PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.1.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.1.0
2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 All 65 releases
← All changes | templates/emails/status-changed-admin-html.php +24 -25 1.10.9 → 2.1.0 View file →
@@ -8,10 +8,12 @@
8 8 * @var int $id Subscription id.
9 9 * @var string $product_name Product name.
10 10 * @var int $qty Subscription Quantity.
11 11 * @var string $amount Subscription Amount with price format.
12 - * @var string $view_subscription_url Subscription view URL.
12 + * @var string $admin_subscription_url Admin subscription details URL.
13 13 * @var string $next_date Next payment date.
14 + *
15 + * @package SpringDevs\Subscription
14 16 */
15 17
16 18 // Exit if accessed directly.
17 19 if ( ! defined( 'ABSPATH' ) ) {
@@ -26,40 +28,37 @@
26 28
27 29
28 30 <p><?php printf( esc_html( $opening_paragraph ), wp_kses_post( '<b>' . $old_status . '</b>' ), wp_kses_post( '<b>' . $new_status . '</b>' ) ); ?></p>
29 31
30 -<table class="td" cellspacing="0" cellpadding="6" style="width: 100%; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;" border="1">
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;">
31 33 <tbody>
32 34 <tr>
33 - <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Subscription Id', 'subscription' ); ?></th>
34 - <td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $id ); ?></td>
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>
35 37 </tr>
36 38 <tr>
37 - <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Product', 'subscription' ); ?></th>
38 - <td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $product_name ); ?></td>
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>
39 41 </tr>
40 42 <tr>
41 - <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Qty', 'subscription' ); ?></th>
42 - <td style="text-align:left; border: 1px solid #eee;"><?php echo esc_html( $qty ); ?></td>
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>
43 45 </tr>
44 46 <tr>
45 - <th scope="row" style="text-align:left; border: 1px solid #eee;"><?php esc_html_e( 'Amount', 'subscription' ); ?></th>
46 - <td style="text-align:left; border: 1px solid #eee;"><?php echo wp_kses_post( $amount ); ?></td>
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>
47 49 </tr>
48 -</tbody>
50 + </tbody>
49 51 </table>
50 -<br>
51 -<p>
52 -<?php
53 -echo wp_kses_post(
54 - make_clickable(
55 - sprintf(
56 - // translators: subscription url.
57 - __( 'You can view the subscription here: %s', 'subscription' ),
58 - $view_subscription_url
59 - )
60 - )
61 -);
62 -?>
63 - </p>
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>
64 63
65 64 <?php do_action( 'woocommerce_email_footer' ); ?>