PluginProbe
YayMail – WooCommerce Email Customizer / 1.9.6
YayMail – WooCommerce Email Customizer v1.9.6
4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 All 57 releases
yaymail / views / templates / emails / email-order-cancelled-subscription.php

email-order-cancelled-subscription.php in YayMail – WooCommerce Email Customizer 1.9.6, at views/templates/emails/email-order-cancelled-subscription.php

49 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined( 'ABSPATH' ) || exit;
4 use YayMail\Page\Source\CustomPostType;
5
6 $sent_to_admin = ( isset( $sent_to_admin ) ? true : false );
7 $plain_text = ( isset( $plain_text ) ? $plain_text : '' );
8 $email = ( isset( $email ) ? $email : '' );
9 $postID = CustomPostType::postIDByTemplate( $this->template );
10 $text_link_color = get_post_meta( $postID, '_yaymail_email_textLinkColor_settings', true ) ? get_post_meta( $postID, '_yaymail_email_textLinkColor_settings', true ) : '#96588a';
11 ?>
12
13
14 <!-- Table Items has Border -->
15 <table class="yaymail_builder_table_items_border yaymail_builder_table_subcription" cellspacing="0" cellpadding="6" border="1" style="width: 100% !important;border-color: inherit;color: inherit;flex-direction:inherit;" width="100%">
16 <thead>
17 <tr style="word-break: normal">
18 <th class="td" scope="col" style="text-align:left;"><?php esc_html_e( 'Subscription', 'yaymail' ); ?></th>
19 <th class="td" scope="col" style="text-align:left;"><?php echo esc_html_x( 'Price', 'table headings in notification email', 'yaymail' ); ?></th>
20 <th class="td" scope="col" style="text-align:left;"><?php echo esc_html_x( 'Last Order Date', 'table heading', 'yaymail' ); ?></th>
21 <th class="td" scope="col" style="text-align:left;"><?php echo esc_html_x( 'End of Prepaid Term', 'table headings in notification email', 'yaymail' ); ?></th>
22 </tr>
23 </thead>
24
25 <tbody style="flex-direction:inherit;">
26 <tr class="order_item" style="flex-direction:inherit;">
27 <td class="td" width="1%" style="text-align:left; vertical-align:middle;">
28 <a style="color:<?php echo esc_attr( $text_link_color ); ?>" href="<?php echo esc_url( wcs_get_edit_post_link( $subscription->get_id() ) ); ?>">#<?php echo esc_html( $subscription->get_order_number() ); ?></a>
29 </td>
30 <td class="td" style="text-align:left; vertical-align:middle;">
31 <?php echo wp_kses_post( $subscription->get_formatted_order_total() ); ?>
32 </td>
33 <td class="td" style="text-align:left; vertical-align:middle;">
34 <?php
35 $last_order_time_created = $subscription->get_time( 'last_order_date_created', 'site' );
36 if ( ! empty( $last_order_time_created ) ) {
37 echo esc_html( date_i18n( wc_date_format(), $last_order_time_created ) );
38 } else {
39 esc_html_e( '-', 'yaymail' );
40 }
41 ?>
42 </td>
43 <td class="td" style="text-align:left; vertical-align:middle;">
44 <?php echo esc_html( date_i18n( wc_date_format(), $subscription->get_time( 'end', 'site' ) ) ); ?>
45 </td>
46 </tr>
47 </tbody>
48 </table>
49