PluginProbe
YayMail – WooCommerce Email Customizer / 3.2.9
YayMail – WooCommerce Email Customizer v3.2.9
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 / email-order-payment-gateways.php

email-order-payment-gateways.php in YayMail – WooCommerce Email Customizer 3.2.9, at views/templates/emails/email-order-payment-gateways.php

82 lines 2.6 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 use YayMail\Helper\Helper;
5
6 $text_align = is_rtl() ? 'right' : 'left';
7 // instructions payment
8 $paymentGateways = wc_get_payment_gateway_by_order( $order );
9 $yaymail_settings = get_option( 'yaymail_settings' );
10 $colorContentTableItems = isset( $yaymail_settings['content_items_color'] ) && ! empty( $yaymail_settings['content_items_color'] ) ? $yaymail_settings['content_items_color'] : '#636363';
11 $colorTitleTableItems = isset( $yaymail_settings['title_items_color'] ) && ! empty( $yaymail_settings['title_items_color'] ) ? $yaymail_settings['title_items_color'] : '#7f54b3';
12 $cash_on_delivery = esc_html__( 'Cash on delivery', 'woocommerce' );
13 ?>
14
15 <p style="color: <?php echo esc_attr( $colorContentTableItems ); ?>;text-align: <?php echo esc_attr( $text_align ); ?>" class="yaymail_builder_instructions">
16 <?php echo wp_kses_post( isset( $paymentGateways->instructions ) ? $paymentGateways->instructions : '', 'woocommerce' ); ?>
17 </p>
18
19 <?php
20
21
22 /*
23 Our bank details
24 payment: Direct bank transfer
25 */
26 if ( false != $paymentGateways && isset( $paymentGateways->account_details ) ) {
27 $account_details = $paymentGateways->account_details;
28 $texts = array(
29 'bank_name' => 'Bank',
30 'account_number' => 'Account number',
31 'sort_code' => 'Sort code',
32 'iban' => 'IBAN',
33 'bic' => 'BIC',
34 );
35 $direct_bank_transfer = esc_html__( 'Direct bank transfer', 'woocommerce' );
36 if ( $direct_bank_transfer == $paymentGateways->method_title ) {
37 ?>
38
39 <section style="text-align: ' . $text_align . '" class="yaymail_builder_wrap_account">
40 <h2 style="color: inherit;" class="yaymail_builder_bank_details">
41 <?php esc_html_e( 'Our bank details', 'woocommerce' ); ?>
42 </h2>
43
44 <?php
45 foreach ( $account_details as $accounts ) {
46 foreach ( $accounts as $label_name => $infor_account ) {
47 if ( 'account_name' === $label_name && ! empty( $infor_account ) ) {
48 ?>
49 <h3 style="color: color: inherit;" class="yaymail_builder_account_name">
50 <?php
51 esc_html_e( $infor_account, 'woocommerce' );
52 ?>
53 </h3>
54 <?php
55 }
56 }
57 ?>
58
59 <ul style="color: <?php echo esc_attr( $colorContentTableItems ); ?>">
60 <?php
61 foreach ( $accounts as $label_name => $infor_account ) {
62 if ( 'account_name' !== $label_name && ! empty( $infor_account ) ) {
63 ?>
64
65 <li><?php esc_html_e( $texts[ $label_name ], 'woocommerce' ); ?>:
66 <strong><?php esc_html_e( $infor_account, 'woocommerce' ); ?></strong>
67 </li>
68
69 <?php
70 }
71 }
72 ?>
73 </ul>
74
75 <?php } ?>
76
77 </section>
78 <?php
79 }
80 }
81 ?>
82