* @package WooCommerce/Templates/Emails * @version 2.0.0 */ if (!defined('ABSPATH')) { exit; } // Exit if accessed directly // Load colours $bg = get_option('woocommerce_email_background_color'); $body = get_option('woocommerce_email_body_background_color'); $base = get_option('woocommerce_email_base_color'); $base_text = woocommerce_light_or_dark($base, '#202020', '#ffffff'); $text = get_option('woocommerce_email_text_color'); $bg_darker_10 = woocommerce_hex_darker($bg, 10); $base_lighter_20 = woocommerce_hex_lighter($base, 20); $text_lighter_20 = woocommerce_hex_lighter($text, 20); // For gmail compatibility, including CSS styles in head/body are stripped out therefore styles need to be inline. These variables contain rules which are added to the template inline. !important; is a gmail hack to prevent styles being stripped if it doesn't like something. $wrapper = "\n\tbackground-color: " . esc_attr($bg) . ";\n\twidth:100%;\n\t-webkit-text-size-adjust:none !important;\n\tmargin:0;\n\tpadding: 70px 0 70px 0;\n"; $template_container = "\n\t-webkit-box-shadow:0 0 0 3px rgba(0,0,0,0.025) !important;\n\tbox-shadow:0 0 0 3px rgba(0,0,0,0.025) !important;\n\t-webkit-border-radius:6px !important;\n\tborder-radius:6px !important;\n\tbackground-color: " . esc_attr($body) . ";\n\tborder: 1px solid {$bg_darker_10};\n\t-webkit-border-radius:6px !important;\n\tborder-radius:6px !important;\n"; $template_header = "\n\tbackground-color: " . esc_attr($base) . ";\n\tcolor: {$base_text};\n\t-webkit-border-top-left-radius:6px !important;\n\t-webkit-border-top-right-radius:6px !important;\n\tborder-top-left-radius:6px !important;\n\tborder-top-right-radius:6px !important;\n\tborder-bottom: 0;\n\tfont-family:Arial;\n\tfont-weight:bold;\n\tline-height:100%;\n\tvertical-align:middle;\n"; $body_content = "\n\tbackground-color: " . esc_attr($body) . ";\n\t-webkit-border-radius:6px !important;\n\tborder-radius:6px !important;\n"; $body_content_inner = "\n\tcolor: {$text_lighter_20};\n\tfont-family:Arial;\n\tfont-size:14px;\n\tline-height:150%;\n\ttext-align:left;\n"; $header_content_h1 = "\n\tcolor: " . esc_attr($base_text) . ";\n\tmargin:0;\n\tpadding: 28px 24px;\n\ttext-shadow: 0 1px 0 {$base_lighter_20};\n\tdisplay:block;\n\tfont-family:Arial;\n\tfont-size:30px;\n\tfont-weight:bold;\n\ttext-align:left;\n\tline-height: 150%;\n"; ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><?php echo get_bloginfo('name'); ?> </title>
echo get_option('woocommerce_email_base_color'); ?> ; -webkit-border-top-left-radius:6px; -webkit-border-top-right-radius:6px; color:<?php echo woocommerce_light_or_dark(get_option('woocommerce_email_base_color'), '#202020', '#ffffff'); ?> ; font-family:Arial; font-weight:bold; line-height:100%; vertical-align:middle;"> <tr> <td class="headerContent" style="padding:24px; "> <!-- // Begin Module: Standard Header Image \\ --> <h1 class="h1" style="color:<?php echo woocommerce_light_or_dark(get_option('woocommerce_email_base_color'), '#202020', '#ffffff'); ?> !important; margin:0; text-shadow:0 1px 0 <?php echo woocommerce_hex_lighter(get_option('woocommerce_email_base_color'), 20); ?> ;"><?php echo $email_heading; ?> </h1> <!-- // End Module: Standard Header Image \\ --> </td> </tr> </table> <!-- // End Template Header \\ --> </td> </tr> <tr> <td align="center" valign="top">
<?php /** * Email Footer * * @author WooThemes * @package WooCommerce/Templates/Emails * @version 2.3.0 */ if (!defined('ABSPATH')) { exit; // Exit if accessed directly } // Load colours $base = get_option('woocommerce_email_base_color'); $base_lighter_40 = woocommerce_hex_lighter($base, 40); // For gmail compatibility, including CSS styles in head/body are stripped out therefore styles need to be inline. These variables contain rules which are added to the template inline. $template_footer = "\n\tborder-top:0;\n\t-webkit-border-radius:6px;\n"; $credit = "\n\tborder:0;\n\tcolor: {$base_lighter_40};\n\tfont-family: Arial;\n\tfont-size:12px;\n\tline-height:125%;\n\ttext-align:center;\n"; ?> </div> </td> </tr> </table> <!-- End Content --> </td> </tr> </table> <!-- End Body --> </td> </tr>
</td> </tr> </table> <!-- // End Template Body \\ --> </td> </tr> <tr> <td align="center" valign="top"> <!-- // Begin Template Footer \\ --> <table border="0" cellpadding="10" cellspacing="0" width="600" id="templateFooter"> <tr> <td valign="top" class="footerContent"> <table border="0" cellpadding="10" cellspacing="0" width="100%"> <tr> <td colspan="2" valign="middle" id="credit" style="border:0; color:<?php echo woocommerce_hex_lighter(get_option('woocommerce_email_text_color'), 40); ?> ; font-family:Arial; font-size:12px; line-height:125%; text-align:center;"> <?php echo wpautop(wptexturize(apply_filters('woocommerce_email_footer_text', get_option('woocommerce_email_footer_text')))); ?> </td> </tr> </table> </td> </tr> </table> <!-- // End Template Footer \\ --> </td> </tr>