<?php

defined('ABSPATH') || exit;
do_action('woocommerce_email_header', $email_heading, $email);
?>

<?php 
if (isset($email_image)) {
    ?>
<div>
	<img src="<?php 
    echo esc_url($email_image);
    ?>" style="display: block; margin-bottom: 24px; width: 180px;"/>
</div>
<?php 
}
?>

<?php 
echo wp_kses($email_content, array('a' => array('href' => array(), 'title' => array()), 'br' => array(), 'em' => array(), 'strong' => array()));
$base_color = get_option('woocommerce_email_base_color');
$base_text = wc_light_or_dark($base_color, '#202020', '#ffffff');
$container_styles = 'margin-top: 25px;';
$buttons_styles = "\n\tfont-style: normal;\n\tfont-weight: normal;\n\tfont-size: 13px;\n\tline-height: 18px;\n\ttext-align: center;\n\tcolor: {$base_text};\n\tmargin-right: 15px;\n\ttext-decoration: none;\n\tbackground: {$base_color};\n\tborder: 1px solid {$base_color};\n\tborder-radius: 3px;\n\tpadding: 6px 15px;";
?>
<div style="<?php 
echo esc_attr($container_styles);
?>">
<?php 
foreach ($email_actions as $an_action) {
    ?>
	<a href="<?php 
    echo esc_url($trigger_note_action_url . $an_action->id);
    ?>" style="<?php 
    echo esc_attr($buttons_styles);
    ?>">
		<?php 
    echo esc_html($an_action->label);
    ?>
	</a>
<?php 
}
?>
</div>
<div style="opacity: 0;">
	<img src="<?php 
echo esc_url($opened_tracking_url);
?>" />
</div>
<?php 
do_action('woocommerce_email_footer', $email);