File "email-addresses.php"

Full path: /home/kosmetik/public_html/wp-content/plugins/woocommerce/templates/emails/email-addresses.php
File size: 1.68 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php

if (!defined('ABSPATH')) {
    exit;
}
$text_align = is_rtl() ? 'right' : 'left';
$address = $order->get_formatted_billing_address();
$shipping = $order->get_formatted_shipping_address();
?><table id="addresses" cellspacing="0" cellpadding="0" style="width: 100%; vertical-align: top; margin-bottom: 40px; padding:0;" border="0">
	<tr>
		<td style="text-align:<?php 
echo esc_attr($text_align);
?>; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; border:0; padding:0;" valign="top" width="50%">
			<h2><?php 
esc_html_e('Billing address', 'woocommerce');
?></h2>

			<address class="address">
				<?php 
echo wp_kses_post($address ? $address : esc_html__('N/A', 'woocommerce'));
?>
				<?php 
if ($order->get_billing_phone()) {
    ?>
					<br/><?php 
    echo wc_make_phone_clickable($order->get_billing_phone());
    ?>
				<?php 
}
?>
				<?php 
if ($order->get_billing_email()) {
    ?>
					<br/><?php 
    echo esc_html($order->get_billing_email());
    ?>
				<?php 
}
?>
			</address>
		</td>
		<?php 
if (!wc_ship_to_billing_address_only() && $order->needs_shipping_address() && $shipping) {
    ?>
			<td style="text-align:<?php 
    echo esc_attr($text_align);
    ?>; font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif; padding:0;" valign="top" width="50%">
				<h2><?php 
    esc_html_e('Shipping address', 'woocommerce');
    ?></h2>

				<address class="address">
					<?php 
    echo wp_kses_post($shipping);
    ?>
					<?php 
    if ($order->get_shipping_phone()) {
        ?>
						<br /><?php 
        echo wc_make_phone_clickable($order->get_shipping_phone());
        ?>
					<?php 
    }
    ?>
				</address>
			</td>
		<?php 
}
?>
	</tr>
</table>