/var/www/html/wp-content/plugins/yaymail/views/templates/emails/email-order-payment-gateways.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
76
77
78
79
80
81
82
<?php

defined
'ABSPATH' ) || exit;
use 
YayMail\Helper\Helper;

$text_align is_rtl() ? 'right' 'left';
// instructions payment
$paymentGateways        wc_get_payment_gateway_by_order$order );
$yaymail_settings       get_option'yaymail_settings' );
$colorContentTableItems = isset( $yaymail_settings['content_items_color'] ) && ! empty( $yaymail_settings['content_items_color'] ) ? $yaymail_settings['content_items_color'] : '#636363';
$colorTitleTableItems   = isset( $yaymail_settings['title_items_color'] ) && ! empty( $yaymail_settings['title_items_color'] ) ? $yaymail_settings['title_items_color'] : '#7f54b3';
$cash_on_delivery       esc_html__'Cash on delivery''woocommerce' );
?>

    <div style="color: <?php echo esc_attr$colorContentTableItems ); ?>;text-align:  <?php echo esc_attr$text_align ); ?>" class="yaymail_builder_instructions">
    <?php echo wp_kses_postwpautopwptexturizemake_clickable( isset( $paymentGateways->instructions ) ? $paymentGateways->instructions '''woocommerce' ) ) ) ); ?>
    </div>

<?php


/*
Our bank details
payment: Direct bank transfer
 */
if ( false != $paymentGateways && isset( $paymentGateways->account_details ) ) {
    
$account_details      $paymentGateways->account_details;
    
$texts                = array(
        
'bank_name'      => 'Bank',
        
'account_number' => 'Account number',
        
'sort_code'      => 'Sort code',
        
'iban'           => 'IBAN',
        
'bic'            => 'BIC',
    );
    
$direct_bank_transfer esc_html__'Direct bank transfer''woocommerce' );
    if ( 
$direct_bank_transfer == $paymentGateways->method_title ) {
        
?>

        <section style="text-align: ' . $text_align . '" class="yaymail_builder_wrap_account">
        <?php if ( $account_details ) : ?>
        <h2 style="color: inherit;" class="yaymail_builder_bank_details">
            <?php esc_html_e'Our bank details''woocommerce' ); ?>
            </h2>
        <?php endif; ?>
        <?php
        
foreach ( $account_details as $accounts ) {
            foreach ( 
$accounts as $label_name => $infor_account ) {
                if ( 
'account_name' === $label_name && ! empty( $infor_account ) ) {
                    
?>
                        <h3 style="color: color: inherit;" class="yaymail_builder_account_name">
                       <?php
                        esc_html_e
$infor_account'woocommerce' );
                        
?>
                        </h3>
                    <?php
                
}
            }
            
?>

            <ul style="color: <?php echo esc_attr$colorContentTableItems ); ?>">
            <?php
            
foreach ( $accounts as $label_name => $infor_account ) {
                if ( 
'account_name' !== $label_name && ! empty( $infor_account ) ) {
                    
?>

                            <li><?php esc_html_e$texts$label_name ], 'woocommerce' ); ?>:
                                <strong><?php esc_html_e$infor_account'woocommerce' ); ?></strong>
                            </li>

                    <?php
                
}
            }
            
?>
                </ul>

        <?php ?>

        </section>
        <?php
    
}
}
?>