From e13ba402548a1168e555f386ef3ff65b8cbb642a Mon Sep 17 00:00:00 2001 From: refael iliaguyev Date: Mon, 20 Mar 2017 22:26:20 +0200 Subject: [PATCH] use variable for aligning --- templates/emails/email-addresses.php | 6 ++++-- templates/emails/email-order-details.php | 12 +++++++----- templates/emails/email-order-items.php | 10 ++++++---- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/templates/emails/email-addresses.php b/templates/emails/email-addresses.php index 091964c2909..01d961d2671 100644 --- a/templates/emails/email-addresses.php +++ b/templates/emails/email-addresses.php @@ -20,15 +20,17 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } +$text_align = is_rtl() ? 'right' : 'left'; + ?> - needs_shipping_address() && ( $shipping = $order->get_formatted_shipping_address() ) ) : ?> -
+

get_formatted_billing_address(); ?>

+

diff --git a/templates/emails/email-order-details.php b/templates/emails/email-order-details.php index 0b099b33fb6..b586dff9fc4 100644 --- a/templates/emails/email-order-details.php +++ b/templates/emails/email-order-details.php @@ -20,6 +20,8 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } +$text_align = is_rtl() ? 'right' : 'left'; + do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text, $email ); ?> @@ -31,9 +33,9 @@ do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plai - - - + + + @@ -52,8 +54,8 @@ do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plai foreach ( $totals as $total ) { $i++; ?> - - + + $item ) : if ( apply_filters( 'woocommerce_order_item_visible', true, $item ) ) { $product = $item->get_product(); ?> - - - + + get_purchase_note() ) ) : ?> - +
; vertical-align:middle; border: 1px solid #eee; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; word-wrap:break-word;"> $item ) : do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, $plain_text ); ?>get_quantity(), $item ); ?>get_formatted_line_subtotal( $item ); ?>get_quantity(), $item ); ?>get_formatted_line_subtotal( $item ); ?>