| 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 |
|