/var/www/html/wp-content/plugins/yaymail/views/templates/emails/sampleOrder/email-order-details.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php

defined
'ABSPATH' ) || exit;

use 
YayMail\Page\Source\CustomPostType;
$postID          CustomPostType::postIDByTemplate$this->template );
$text_link_color get_post_meta$postID'_yaymail_email_textLinkColor_settings'true ) ? get_post_meta$postID'_yaymail_email_textLinkColor_settings'true ) : '#7f54b3';

$sent_to_admin = ( isset( $sent_to_admin ) ? $sent_to_admin false );
$text_align    is_rtl() ? 'right' 'left';

?>
<?php 
if ( $is_display ) { ?>
<h2 class="yaymail_builder_order" style="color: #7f54b3;">
    <?php
    $before 
'<a style="color: ' esc_attr$text_link_color ) . '"  class="yaymail_builder_link" href="">';
    
$after  '</a>';
    
/* translators: %s: Order ID. */
    
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() ) ) );
    
?>
</h2>
<?php ?>
<table class="yaymail_builder_table_items_border" cellspacing="0" cellpadding="6" border="1" style="width: 100% !important;color: inherit" width="100%">
    <thead>
        <tr style="word-break: normal">
            <th class="td" scope="col" style="text-align:left;">
                <?php esc_html_e'Product''woocommerce' ); ?>
            </th>
            <th class="td" scope="col" style="text-align:left;">
                <?php esc_html_e'Quantity''woocommerce' ); ?>
            </th>
            <th class="td" scope="col" style="text-align:left;">
                <?php esc_html_e'Price''woocommerce' ); ?>
            </th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td class="td" scope="row" style="text-align:left;">
                <?php esc_html_e'Happy YayCommerce2''yaymail' ); ?>
            </td>
            <td class="td" scope="row" style="text-align:left;">
                <?php esc_html_e1'yaymail' ); ?>
            <td class="td" scope="row" style="text-align:left;">
                <?php esc_html_e'£18.00''yaymail' ); ?>
            </td>
        </tr>
        <?php if ( $is_display ) { ?>
        <tr>
            <td class="td" scope="row" colspan="2" style="text-align:left;font-weight:700;border-top-width: 4px;">
                <?php esc_html_e'Subtotal:''yaymail' ); ?>
            </td>
            <td class="td" scope="row" colspan="1" style="text-align:left;border-top-width: 4px;">
                <?php esc_html_e'£18.00''yaymail' ); ?>
            </td>
        </tr>
        <tr>
            <td class="td" scope="row" colspan="2" style="text-align:left;font-weight:700;">
                <?php esc_html_e'Payment method:''yaymail' ); ?>
            </td>
            <td class="td" scope="row" colspan="1" style="text-align:left;">
                <?php esc_html_e'Direct bank transfer''yaymail' ); ?>
            </td>
        </tr>
        <tr>
            <td class="td" scope="row" colspan="2" style="text-align:left;font-weight:700;">
                <?php esc_html_e'Total:''yaymail' ); ?>
            </td>
            <td class="td" scope="row" colspan="1" style="text-align:left;">
                <?php esc_html_e'£18.00''yaymail' ); ?>
            </td>
        </tr>
        <?php ?>
    </tbody>
</table>