woocommerce/templates/emails/email-header.php

198 lines
8.0 KiB
PHP
Raw Normal View History

2012-08-14 18:05:45 +00:00
<?php
/**
* Email Header
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 1.6.4
*/
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
2012-08-14 18:05:45 +00:00
<title><?php echo get_bloginfo('name'); ?></title>
<style type="text/css">
2011-10-25 12:54:16 +00:00
/* Client-specific/Reset Styles */
#outlook a{padding:0;} /* Force Outlook to provide a "view in browser" button. */
2011-10-25 12:54:16 +00:00
body{
width:100% !important; /* Force Hotmail to display emails at full width */
-webkit-text-size-adjust:none; /* Prevent Webkit platforms from changing default text sizes. */
2012-08-14 18:05:45 +00:00
margin:0;
2011-10-25 12:54:16 +00:00
padding:0;
}
img{border:none; font-size:14px; font-weight:bold; height:auto; line-height:100%; outline:none; text-decoration:none; text-transform:capitalize;}
#backgroundTable{height:100% !important; margin:0; padding:0; width:100% !important;}
2012-01-10 16:43:06 +00:00
mark { background: transparent none; color: inherit; }
/* Template Styles */
body {
2011-10-25 12:54:16 +00:00
background: <?php echo get_option('woocommerce_email_background_color'); ?> url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAOklEQVQYGWP8//8/AyHAREgBIyOjMQPIJFwYaIAxSI6RbOvAViC7A90qmBXI4qRZh2EFunXYrEC2DgDc+VH0jS2AGAAAAABJRU5ErkJggg==);
}
2012-08-14 18:05:45 +00:00
#templateContainer{
2011-10-25 12:54:16 +00:00
border: 1px solid <?php echo woocommerce_hex_darker(get_option('woocommerce_email_background_color'), 20); ?>;
-webkit-box-shadow:0 0 0 3px rgba(0,0,0,0.1);
-webkit-border-radius:6px;
}
2011-10-25 12:54:16 +00:00
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4 {
color:<?php echo woocommerce_hex_darker(get_option('woocommerce_email_text_color'), 50); ?>;
display:block;
font-family:Arial;
font-size:34px;
font-weight:bold;
line-height:150%;
margin-top:0;
margin-right:0;
margin-bottom:10px;
margin-left:0;
text-align:left;
line-height: 1.5;
}
h2, .h2{
font-size:30px;
}
h3, .h3{
font-size:26px;
}
h4, .h4{
font-size:22px;
}
/* /\/\/\/\/\/\/\/\/\/\ STANDARD STYLING: HEADER /\/\/\/\/\/\/\/\/\/\ */
#templateHeader{
2011-10-25 12:54:16 +00:00
background-color: <?php echo get_option('woocommerce_email_base_color'); ?>;
background: -webkit-linear-gradient(<?php echo woocommerce_hex_lighter(get_option('woocommerce_email_base_color'), 20); ?>, <?php echo get_option('woocommerce_email_base_color'); ?>);
border-bottom:0;
-webkit-border-top-left-radius:6px;
-webkit-border-top-right-radius:6px;
}
.headerContent{
padding:24px;
vertical-align:middle;
}
.headerContent a:link, .headerContent a:visited{
2011-10-25 12:54:16 +00:00
color:<?php echo woocommerce_light_or_dark(get_option('woocommerce_email_base_color'), '#202020', '#ffffff'); ?>;
font-weight:normal;
text-decoration:underline;
}
/* /\/\/\/\/\/\/\/\/\/\ STANDARD STYLING: MAIN BODY /\/\/\/\/\/\/\/\/\/\ */
#templateContainer, .bodyContent{
2011-10-25 12:54:16 +00:00
background-color:<?php echo get_option('woocommerce_email_body_background_color'); ?>;
-webkit-border-radius:6px;
}
.bodyContent div{
2011-10-25 12:54:16 +00:00
color: <?php echo woocommerce_hex_lighter(get_option('woocommerce_email_text_color'), 20); ?>;
font-family:Arial;
font-size:14px;
line-height:150%;
text-align:left;
}
.bodyContent div a:link, .bodyContent div a:visited{
2011-10-25 12:54:16 +00:00
color: <?php echo get_option('woocommerce_email_text_color'); ?>;
font-weight:normal;
text-decoration:underline;
}
.bodyContent img{
display:inline;
height:auto;
}
/* /\/\/\/\/\/\/\/\/\/\ STANDARD STYLING: FOOTER /\/\/\/\/\/\/\/\/\/\ */
#templateFooter{
border-top:0;
-webkit-border-radius:6px;
}
.footerContent div{
2011-10-25 12:54:16 +00:00
color:<?php echo woocommerce_hex_lighter(get_option('woocommerce_email_text_color'), 40); ?>;
font-family:Arial;
font-size:12px;
line-height:125%;
text-align:left;
}
.footerContent div a:link, .footerContent div a:visited{
2011-10-25 12:54:16 +00:00
color:<?php echo woocommerce_hex_lighter(get_option('woocommerce_email_text_color'), 40); ?>;
font-weight:normal;
text-decoration:underline;
}
.footerContent img{
display:inline;
}
#credit {
border:0;
2011-10-25 12:54:16 +00:00
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;
}
</style>
</head>
2011-10-25 12:54:16 +00:00
<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="background: <?php echo get_option('woocommerce_email_background_color'); ?> url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAOklEQVQYGWP8//8/AyHAREgBIyOjMQPIJFwYaIAxSI6RbOvAViC7A90qmBXI4qRZh2EFunXYrEC2DgDc+VH0jS2AGAAAAABJRU5ErkJggg==);">
<center style="padding: 70px 0 0 0;">
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="backgroundTable">
<tr>
<td align="center" valign="top">
2012-08-14 18:05:45 +00:00
2011-10-26 17:13:29 +00:00
<?php
if ($img = get_option('woocommerce_email_header_image')) :
echo '<p style="margin-top:0;"><img src="'.$img.'" alt="'.get_bloginfo('name').'" /></p>';
endif;
?>
2012-08-14 18:05:45 +00:00
<!-- // End Template Preheader \\ -->
2011-10-25 12:54:16 +00:00
<table border="0" cellpadding="0" cellspacing="0" width="600" id="templateContainer" style="-webkit-box-shadow:0 0 0 3px rgba(0,0,0,0.025); -webkit-border-radius:6px;background-color:<?php echo get_option('woocommerce_email_body_background_color'); ?>;">
<tr>
<td align="center" valign="top">
<!-- // Begin Template Header \\ -->
2011-10-25 12:54:16 +00:00
<table border="0" cellpadding="0" cellspacing="0" width="600" id="templateHeader" style="background-color:<?php 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;">
2012-08-14 18:05:45 +00:00
<tr>
<td class="headerContent" style="padding:24px; ">
<!-- // Begin Module: Standard Header Image \\ -->
2011-10-25 12:54:16 +00:00
<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 \\ -->
2012-08-14 18:05:45 +00:00
</td>
</tr>
</table>
<!-- // End Template Header \\ -->
</td>
</tr>
<tr>
<td align="center" valign="top">
<!-- // Begin Template Body \\ -->
<table border="0" cellpadding="0" cellspacing="0" width="600" id="templateBody">
<tr>
2011-12-02 14:04:26 +00:00
<td valign="top" class="bodyContent" style="background-color:<?php echo get_option('woocommerce_email_body_background_color'); ?>;">
2012-08-14 18:05:45 +00:00
<!-- // Begin Module: Standard Content \\ -->
<table border="0" cellpadding="20" cellspacing="0" width="100%">
<tr>
<td valign="top">
<div>