| 1 |
<?php |
| 2 |
|
| 3 |
defined( 'ABSPATH' ) || exit; |
| 4 |
$sent_to_admin = ( isset( $sent_to_admin ) ? true : false ); |
| 5 |
$plain_text = ( isset( $plain_text ) ? $plain_text : '' ); |
| 6 |
$email = ( isset( $email ) ? $email : '' ); |
| 7 |
$subscriptionType = ( isset( $subscriptionType ) ? $subscriptionType : '' ); |
| 8 |
$dateCurrent = gmdate( 'F j Y' ); |
| 9 |
?> |
| 10 |
|
| 11 |
|
| 12 |
<!-- Table Items has Border --> |
| 13 |
<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%"> |
| 14 |
<thead> |
| 15 |
<tr style="word-break: normal"> |
| 16 |
<?php if ( 'info' == $subscriptionType ) { ?> |
| 17 |
<th class="td" scope="col" style="text-align:left;"><?php esc_html_e( 'ID', 'woocommerce-subscriptions' ); ?></th> |
| 18 |
<th class="td" scope="col" style="text-align:left;"><?php echo esc_html_x( 'Start date', 'table headings in notification email', 'woocommerce-subscriptions' ); ?></th> |
| 19 |
<th class="td" scope="col" style="text-align:left;"><?php echo esc_html_x( 'End date', 'table heading', 'woocommerce-subscriptions' ); ?></th> |
| 20 |
<th class="td" scope="col" style="text-align:left;"><?php echo esc_html_x( 'Recurring total', 'table headings in notification email', 'woocommerce-subscriptions' ); ?></th> |
| 21 |
<?php } else { ?> |
| 22 |
<th class="td" scope="col" style="text-align:left;"><?php esc_html_e( 'Subscription', 'woocommerce-subscriptions' ); ?></th> |
| 23 |
<th class="td" scope="col" style="text-align:left;"><?php echo esc_html_x( 'Price', 'table headings in notification email', 'woocommerce-subscriptions' ); ?></th> |
| 24 |
<th class="td" scope="col" style="text-align:left;"><?php echo esc_html_x( 'Last Order Date', 'table heading', 'woocommerce-subscriptions' ); ?></th> |
| 25 |
<?php if ( 'cancelled' == $subscriptionType ) { ?> |
| 26 |
<th class="td" scope="col" style="text-align:left;"><?php echo esc_html_x( 'End of Prepaid Term', 'table headings in notification email', 'woocommerce-subscriptions' ); ?></th> |
| 27 |
<?php } ?> |
| 28 |
<?php if ( 'expired' == $subscriptionType ) { ?> |
| 29 |
<th class="td" scope="col" style="text-align:left;"><?php echo esc_html_x( 'End Date', 'table headings in notification email', 'woocommerce-subscriptions' ); ?></th> |
| 30 |
<?php } ?> |
| 31 |
<?php if ( 'suspended' == $subscriptionType ) { ?> |
| 32 |
<th class="td" scope="col" style="text-align:left;"><?php echo esc_html_x( 'Date Suspended', 'table headings in notification email', 'woocommerce-subscriptions' ); ?></th> |
| 33 |
<?php } ?> |
| 34 |
<?php } ?> |
| 35 |
</tr> |
| 36 |
</thead> |
| 37 |
|
| 38 |
<tbody style="flex-direction:inherit;"> |
| 39 |
<tr class="order_item" style="flex-direction:inherit;"> |
| 40 |
<?php if ( 'info' == $subscriptionType ) { ?> |
| 41 |
<td class="td" width="1%" style="text-align:left; vertical-align:middle;"> |
| 42 |
<a style="color:#96588a;" href="#"><?php echo esc_html( '#1' ); ?></a> |
| 43 |
</td> |
| 44 |
<td class="td" style="text-align:left; vertical-align:middle;"> |
| 45 |
<?php echo esc_html( $dateCurrent ); ?> |
| 46 |
</td> |
| 47 |
<td class="td" style="text-align:left; vertical-align:middle;"> |
| 48 |
<?php echo esc_html( $dateCurrent ); ?> |
| 49 |
</td> |
| 50 |
<td class="td" style="text-align:left; vertical-align:middle;"> |
| 51 |
<span class="woocommerce-Price-amount amount"> <?php echo esc_html( '£18.00' ); ?></span><?php echo esc_html( '/month' ); ?></td> |
| 52 |
</td> |
| 53 |
<?php } else { ?> |
| 54 |
<td class="td" width="1%" style="text-align:left; vertical-align:middle;"> |
| 55 |
<a style="color:#96588a;" href="#"><?php echo esc_html( '#1' ); ?></a> |
| 56 |
</td> |
| 57 |
<td class="td" style="text-align:left; vertical-align:middle;"> |
| 58 |
<span class="woocommerce-Price-amount amount"> <?php echo esc_html( '£18.00' ); ?></span><?php echo esc_html( '/month' ); ?></td> |
| 59 |
</td> |
| 60 |
<td class="td" style="text-align:left; vertical-align:middle;"> |
| 61 |
<?php echo esc_html( $dateCurrent ); ?> |
| 62 |
</td> |
| 63 |
<td class="td" style="text-align:left; vertical-align:middle;"> |
| 64 |
<?php echo esc_html( $dateCurrent ); ?> |
| 65 |
</td> |
| 66 |
<?php } ?> |
| 67 |
</tr> |
| 68 |
</tbody> |
| 69 |
</table> |
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|