| 1 |
<?php |
| 2 |
|
| 3 |
defined( 'ABSPATH' ) || exit; |
| 4 |
|
| 5 |
use YayMail\Page\Source\CustomPostType; |
| 6 |
$postID = CustomPostType::postIDByTemplate( $this->template ); |
| 7 |
$text_link_color = get_post_meta( $postID, '_yaymail_email_textLinkColor_settings', true ) ? get_post_meta( $postID, '_yaymail_email_textLinkColor_settings', true ) : '#7f54b3'; |
| 8 |
|
| 9 |
$sent_to_admin = ( isset( $sent_to_admin ) ? $sent_to_admin : false ); |
| 10 |
$text_align = is_rtl() ? 'right' : 'left'; |
| 11 |
|
| 12 |
?> |
| 13 |
<?php if ( $is_display ) { ?> |
| 14 |
<h2 class="yaymail_builder_order" style="color: #7f54b3;"> |
| 15 |
<?php |
| 16 |
$before = '<a style="color: ' . esc_attr( $text_link_color ) . '" class="yaymail_builder_link" href="">'; |
| 17 |
$after = '</a>'; |
| 18 |
/* translators: %s: Order ID. */ |
| 19 |
echo wp_kses_post( $before . sprintf( __( '[Order #%s]', 'woocommerce' ) . $after . ' (<time datetime="%s">%s</time>)', 1, new WC_DateTime(), wc_format_datetime( new WC_DateTime() ) ) ); |
| 20 |
?> |
| 21 |
</h2> |
| 22 |
<?php } ?> |
| 23 |
<table class="yaymail_builder_table_items_border" cellspacing="0" cellpadding="6" border="1" style="width: 100% !important;color: inherit" width="100%"> |
| 24 |
<thead> |
| 25 |
<tr style="word-break: normal"> |
| 26 |
<th class="td" scope="col" style="text-align:left;"> |
| 27 |
<?php esc_html_e( 'Product', 'woocommerce' ); ?> |
| 28 |
</th> |
| 29 |
<th class="td" scope="col" style="text-align:left;"> |
| 30 |
<?php esc_html_e( 'Quantity', 'woocommerce' ); ?> |
| 31 |
</th> |
| 32 |
<th class="td" scope="col" style="text-align:left;"> |
| 33 |
<?php esc_html_e( 'Price', 'woocommerce' ); ?> |
| 34 |
</th> |
| 35 |
</tr> |
| 36 |
</thead> |
| 37 |
<tbody> |
| 38 |
<tr> |
| 39 |
<td class="td" scope="row" style="text-align:left;"> |
| 40 |
<?php esc_html_e( 'Happy YayCommerce2', 'yaymail' ); ?> |
| 41 |
</td> |
| 42 |
<td class="td" scope="row" style="text-align:left;"> |
| 43 |
<?php esc_html_e( 1, 'yaymail' ); ?> |
| 44 |
<td class="td" scope="row" style="text-align:left;"> |
| 45 |
<?php esc_html_e( '£18.00', 'yaymail' ); ?> |
| 46 |
</td> |
| 47 |
</tr> |
| 48 |
<?php if ( $is_display ) { ?> |
| 49 |
<tr> |
| 50 |
<td class="td" scope="row" colspan="2" style="text-align:left;font-weight:700;border-top-width: 4px;"> |
| 51 |
<?php esc_html_e( 'Subtotal:', 'yaymail' ); ?> |
| 52 |
</td> |
| 53 |
<td class="td" scope="row" colspan="1" style="text-align:left;border-top-width: 4px;"> |
| 54 |
<?php esc_html_e( '£18.00', 'yaymail' ); ?> |
| 55 |
</td> |
| 56 |
</tr> |
| 57 |
<tr> |
| 58 |
<td class="td" scope="row" colspan="2" style="text-align:left;font-weight:700;"> |
| 59 |
<?php esc_html_e( 'Payment method:', 'yaymail' ); ?> |
| 60 |
</td> |
| 61 |
<td class="td" scope="row" colspan="1" style="text-align:left;"> |
| 62 |
<?php esc_html_e( 'Direct bank transfer', 'yaymail' ); ?> |
| 63 |
</td> |
| 64 |
</tr> |
| 65 |
<tr> |
| 66 |
<td class="td" scope="row" colspan="2" style="text-align:left;font-weight:700;"> |
| 67 |
<?php esc_html_e( 'Total:', 'yaymail' ); ?> |
| 68 |
</td> |
| 69 |
<td class="td" scope="row" colspan="1" style="text-align:left;"> |
| 70 |
<?php esc_html_e( '£18.00', 'yaymail' ); ?> |
| 71 |
</td> |
| 72 |
</tr> |
| 73 |
<?php } ?> |
| 74 |
</tbody> |
| 75 |
</table> |
| 76 |
|