PluginProbe
YayMail – WooCommerce Email Customizer / 3.3.1
YayMail – WooCommerce Email Customizer v3.3.1
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 / sampleOrder / email-order-details.php

email-order-details.php in YayMail – WooCommerce Email Customizer 3.3.1, at views/templates/emails/sampleOrder/email-order-details.php

76 lines 2.8 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
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