*/ 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 = wc_light_or_dark($base, '#202020', '#ffffff'); $text = get_option('woocommerce_email_text_color'); $bg_darker_10 = wc_hex_darker($bg, 10); $body_darker_10 = wc_hex_darker($body, 10); $base_lighter_20 = wc_hex_lighter($base, 20); $base_lighter_40 = wc_hex_lighter($base, 40); $text_lighter_20 = wc_hex_lighter($text, 20); // !important; is a gmail hack to prevent styles being stripped if it doesn't like something. ?> #wrapper { background-color: <?php echo esc_attr($bg); ?> ; margin: 0; padding: 70px 0 70px 0; -webkit-text-size-adjust: none !important; width: 100%; } #template_container { box-shadow: 0 1px 4px rgba(0,0,0,0.1) !important;
<?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 = wc_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>
/** * Test wc_hex_lighter(). * * @since 2.2 */ public function test_wc_hex_lighter() { $this->assertEquals('#4d8ec4', wc_hex_lighter('005dab')); $this->assertEquals('#4d8ec4', wc_hex_lighter('#005dab')); $this->assertEquals('#0c3a3b', wc_hex_lighter('0a3839', 1)); }
/** * @deprecated */ function woocommerce_hex_lighter($color, $factor = 30) { return wc_hex_lighter($color, $factor); }
//red"; $order_items_table_outer_border_radius = $order_items_table_outer_border_style != 'none' ? get_option("ec_deluxe_all_order_item_table_radius") : '0'; //3px $order_items_table_inner_border_width = 1; //px $order_items_table_inner_border_style = get_option("ec_deluxe_all_border_style"); //"dotted"; $order_items_table_inner_border_color = get_option("ec_deluxe_all_border_color"); //"#d4d4d4"; $order_items_table_header_bg_color = "none"; $order_items_table_td_padding = 9; //px //Footer Styling $footer_bg_color = $top_nav_bg_color; // get_option( "ec_deluxe_all_footer_color" ); // "#F9F9F5"; $footer_text_color = wc_light_or_dark($footer_bg_color, wc_hex_darker($footer_bg_color, 60), wc_hex_lighter($footer_bg_color, 60)); $footer_border_bottom_color = wc_hex_darker($footer_bg_color, 5); $footer_a_color = "#3C3C3C"; $footer_a_decoration = "none"; $footer_a_style = "none"; /* Style ---------------------------------------- */ ob_start(); ?> <style> /* Main Styles ---------------------------------------- */ body { margin: 0; padding: 0; font-family: Arial, sans-serif; line-height: <?php echo $body_line_height; ?>