PluginProbe
YayMail – WooCommerce Email Customizer / 3.3.5
YayMail – WooCommerce Email Customizer v3.3.5
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-border.php

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

81 lines 3.2 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 $productItemCost = isset( $yaymail_settings['product_item_cost'] ) ? $yaymail_settings['product_item_cost'] : 0;
12
13 ?>
14
15 <h2 class="yaymail_builder_order" style="color: #7f54b3;">
16 <?php
17 $before = '<a style="color: ' . esc_attr( $text_link_color ) . '" class="yaymail_builder_link" href="">';
18 $after = '</a>';
19 /* translators: %s: Order ID. */
20 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() ) ) );
21 ?>
22 </h2>
23
24 <table class="yaymail_builder_table_items_content" cellspacing="0" cellpadding="6" border="1" style="width: 100% !important;color: inherit;flex-direction:column;border: 1px solid;border-color: inherit;" width="100%">
25 <thead>
26 <tr style="word-break: normal">
27 <th class="td" scope="col" style="text-align:left;">
28 <?php esc_html_e( 'Product', 'woocommerce' ); ?>
29 </th>
30 <?php if ( $productItemCost ) { ?>
31 <th class="td" scope="col" style="text-align:left;">
32 <?php esc_html_e( 'Cost', 'woocommerce' ); ?>
33 </th>
34 <?php } ?>
35 <th class="td" scope="col" style="text-align:left;">
36 <?php esc_html_e( 'Quantity', 'woocommerce' ); ?>
37 </th>
38 <th class="td" scope="col" style="text-align:left;">
39 <?php esc_html_e( 'Price', 'woocommerce' ); ?>
40 </th>
41 </tr>
42 </thead>
43 <tbody>
44 <tr>
45 <td class="td" scope="row" style="text-align:left;">
46 <?php esc_html_e( 'Happy YayCommerce2', 'yaymail' ); ?>
47 </td>
48 <td class="td" scope="row" style="text-align:left;">
49 <?php esc_html_e( 1, 'yaymail' ); ?>
50 <td class="td" scope="row" style="text-align:left;">
51 <?php esc_html_e( '£18.00', 'yaymail' ); ?>
52 </td>
53 </tr>
54
55 <tr>
56 <td class="td" scope="row" colspan="<?php echo esc_attr( $productItemCost ? 3 : 2 ); ?>" style="text-align:left;font-weight:700;border-top-width: 4px;">
57 <?php esc_html_e( 'Subtotal:', 'yaymail' ); ?>
58 </td>
59 <td class="td" scope="row" colspan="1" style="text-align:left;border-top-width: 4px;">
60 <?php esc_html_e( '£18.00', 'yaymail' ); ?>
61 </td>
62 </tr>
63 <tr>
64 <td class="td" scope="row" colspan="<?php echo esc_attr( $productItemCost ? 3 : 2 ); ?>" style="text-align:left;font-weight:700;">
65 <?php esc_html_e( 'Payment method:', 'yaymail' ); ?>
66 </td>
67 <td class="td" scope="row" colspan="1" style="text-align:left;">
68 <?php esc_html_e( 'Direct bank transfer', 'yaymail' ); ?>
69 </td>
70 </tr>
71 <tr>
72 <td class="td" scope="row" colspan="<?php echo esc_attr( $productItemCost ? 3 : 2 ); ?>" style="text-align:left;font-weight:700;">
73 <?php esc_html_e( 'Total:', 'yaymail' ); ?>
74 </td>
75 <td class="td" scope="row" colspan="1" style="text-align:left;">
76 <?php esc_html_e( '£18.00', 'yaymail' ); ?>
77 </td>
78 </tr>
79 </tbody>
80 </table>
81