Example #1
0
$body = '#fdfdfd';
if (isset($woothemes_sensei->settings->settings['email_body_background_color']) && '' != $woothemes_sensei->settings->settings['email_body_background_color']) {
    $body = $woothemes_sensei->settings->settings['email_body_background_color'];
}
$base = '#557da1';
if (isset($woothemes_sensei->settings->settings['email_base_color']) && '' != $woothemes_sensei->settings->settings['email_base_color']) {
    $base = $woothemes_sensei->settings->settings['email_base_color'];
}
$base_text = sensei_light_or_dark($base, '#202020', '#ffffff');
$text = '#505050';
if (isset($woothemes_sensei->settings->settings['email_text_color']) && '' != $woothemes_sensei->settings->settings['email_text_color']) {
    $text = $woothemes_sensei->settings->settings['email_text_color'];
}
$bg_darker_10 = sensei_hex_darker($bg, 10);
$base_lighter_20 = sensei_hex_lighter($base, 20);
$text_lighter_20 = sensei_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";
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title><?php 
echo get_bloginfo('name');
?>
Example #2
0
 * @author 		WooThemes
 * @package 	Sensei/Templates/Emails
 * @version     1.6.0
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
global $woothemes_sensei, $sensei_email_data;
extract($sensei_email_data);
// Load colours
$base = '#557da1';
if (isset($woothemes_sensei->settings->settings['email_base_color']) && '' != $woothemes_sensei->settings->settings['email_base_color']) {
    $base = $woothemes_sensei->settings->settings['email_base_color'];
}
$base_lighter_40 = sensei_hex_lighter($base, 40);
$footer_text = sprintf(__('%1$s - Powered by Sensei', 'woothemes-sensei'), get_bloginfo('name'));
if (isset($woothemes_sensei->settings->settings['email_footer_text'])) {
    $footer_text = $woothemes_sensei->settings->settings['email_footer_text'];
}
// 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>