Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/wpforms-.../includes/emails/template...
File: header-default.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Email Header
[2] Fix | Delete
*
[3] Fix | Delete
* @since 1.1.3
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
// Exit if accessed directly.
[7] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[8] Fix | Delete
exit;
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
$header_image = wpforms_setting( 'email-header-image', false );
[12] Fix | Delete
$background_color = wpforms_setting( 'email-background-color', '#e9eaec' );
[13] Fix | Delete
$text_direction = is_rtl() ? 'rtl' : 'ltr';
[14] Fix | Delete
?>
[15] Fix | Delete
<!doctype html>
[16] Fix | Delete
<html dir="<?php echo esc_attr( $text_direction ); ?>" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
[17] Fix | Delete
<head>
[18] Fix | Delete
<!--[if gte mso 15]>
[19] Fix | Delete
<xml>
[20] Fix | Delete
<o:OfficeDocumentSettings>
[21] Fix | Delete
<o:AllowPNG/>
[22] Fix | Delete
<o:PixelsPerInch>96</o:PixelsPerInch>
[23] Fix | Delete
</o:OfficeDocumentSettings>
[24] Fix | Delete
</xml>
[25] Fix | Delete
<![endif]-->
[26] Fix | Delete
<meta charset="UTF-8">
[27] Fix | Delete
<meta http-equiv="X-UA-Compatible" content="IE=edge">
[28] Fix | Delete
<meta name="viewport" content="width=device-width, initial-scale=1">
[29] Fix | Delete
<title><?php echo esc_html( get_bloginfo( 'name' ) ); ?></title>
[30] Fix | Delete
<style type="text/css">
[31] Fix | Delete
p{
[32] Fix | Delete
margin:10px 0;
[33] Fix | Delete
padding:0;
[34] Fix | Delete
}
[35] Fix | Delete
table{
[36] Fix | Delete
border-collapse:collapse;
[37] Fix | Delete
}
[38] Fix | Delete
h1,h2,h3,h4,h5,h6{
[39] Fix | Delete
display:block;
[40] Fix | Delete
margin:0;
[41] Fix | Delete
padding:0;
[42] Fix | Delete
}
[43] Fix | Delete
img,a img{
[44] Fix | Delete
border:0;
[45] Fix | Delete
height:auto;
[46] Fix | Delete
outline:none;
[47] Fix | Delete
text-decoration:none;
[48] Fix | Delete
}
[49] Fix | Delete
body,#bodyTable,#bodyCell{
[50] Fix | Delete
height:100%;
[51] Fix | Delete
margin:0;
[52] Fix | Delete
padding:0;
[53] Fix | Delete
width:100%;
[54] Fix | Delete
}
[55] Fix | Delete
#outlook a{
[56] Fix | Delete
padding:0;
[57] Fix | Delete
}
[58] Fix | Delete
img{
[59] Fix | Delete
-ms-interpolation-mode:bicubic;
[60] Fix | Delete
}
[61] Fix | Delete
table{
[62] Fix | Delete
mso-table-lspace:0pt;
[63] Fix | Delete
mso-table-rspace:0pt;
[64] Fix | Delete
}
[65] Fix | Delete
.ReadMsgBody{
[66] Fix | Delete
width:100%;
[67] Fix | Delete
}
[68] Fix | Delete
.ExternalClass{
[69] Fix | Delete
width:100%;
[70] Fix | Delete
}
[71] Fix | Delete
p,a,li,td,blockquote{
[72] Fix | Delete
mso-line-height-rule:exactly;
[73] Fix | Delete
}
[74] Fix | Delete
a[href^=tel],a[href^=sms]{
[75] Fix | Delete
color:inherit;
[76] Fix | Delete
cursor:default;
[77] Fix | Delete
text-decoration:none;
[78] Fix | Delete
}
[79] Fix | Delete
p,a,li,td,body,table,blockquote{
[80] Fix | Delete
-ms-text-size-adjust:100%;
[81] Fix | Delete
-webkit-text-size-adjust:100%;
[82] Fix | Delete
}
[83] Fix | Delete
.ExternalClass,.ExternalClass p,.ExternalClass td,.ExternalClass div,.ExternalClass span,.ExternalClass font{
[84] Fix | Delete
line-height:100%;
[85] Fix | Delete
}
[86] Fix | Delete
a[x-apple-data-detectors]{
[87] Fix | Delete
color:inherit !important;
[88] Fix | Delete
text-decoration:none !important;
[89] Fix | Delete
font-size:inherit !important;
[90] Fix | Delete
font-family:inherit !important;
[91] Fix | Delete
font-weight:inherit !important;
[92] Fix | Delete
line-height:inherit !important;
[93] Fix | Delete
}
[94] Fix | Delete
#bodyCell{
[95] Fix | Delete
padding:50px 50px;
[96] Fix | Delete
}
[97] Fix | Delete
.templateContainer{
[98] Fix | Delete
max-width:600px !important;
[99] Fix | Delete
border:0;
[100] Fix | Delete
}
[101] Fix | Delete
a.mcnButton{
[102] Fix | Delete
display:block;
[103] Fix | Delete
}
[104] Fix | Delete
.mcnTextContent{
[105] Fix | Delete
word-break:break-word;
[106] Fix | Delete
}
[107] Fix | Delete
.mcnTextContent img{
[108] Fix | Delete
height:auto !important;
[109] Fix | Delete
}
[110] Fix | Delete
.mcnDividerBlock{
[111] Fix | Delete
table-layout:fixed !important;
[112] Fix | Delete
}
[113] Fix | Delete
/***** Make theme edits below if needed *****/
[114] Fix | Delete
/* Page - Background Style */
[115] Fix | Delete
body,#bodyTable{
[116] Fix | Delete
background-color:<?php echo esc_attr( $background_color ); ?>;
[117] Fix | Delete
}
[118] Fix | Delete
/* Page - Heading 1 */
[119] Fix | Delete
h1{
[120] Fix | Delete
color:#202020;
[121] Fix | Delete
font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
[122] Fix | Delete
font-size:26px;
[123] Fix | Delete
font-style:normal;
[124] Fix | Delete
font-weight:bold;
[125] Fix | Delete
line-height:125%;
[126] Fix | Delete
letter-spacing:normal;
[127] Fix | Delete
}
[128] Fix | Delete
/* Page - Heading 2 */
[129] Fix | Delete
h2{
[130] Fix | Delete
color:#202020;
[131] Fix | Delete
font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
[132] Fix | Delete
font-size:22px;
[133] Fix | Delete
font-style:normal;
[134] Fix | Delete
font-weight:bold;
[135] Fix | Delete
line-height:125%;
[136] Fix | Delete
letter-spacing:normal;
[137] Fix | Delete
}
[138] Fix | Delete
/* Page - Heading 3 */
[139] Fix | Delete
h3{
[140] Fix | Delete
color:#202020;
[141] Fix | Delete
font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
[142] Fix | Delete
font-size:20px;
[143] Fix | Delete
font-style:normal;
[144] Fix | Delete
font-weight:bold;
[145] Fix | Delete
line-height:125%;
[146] Fix | Delete
letter-spacing:normal;
[147] Fix | Delete
}
[148] Fix | Delete
/* Page - Heading 4 */
[149] Fix | Delete
h4{
[150] Fix | Delete
color:#202020;
[151] Fix | Delete
font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
[152] Fix | Delete
font-size:18px;
[153] Fix | Delete
font-style:normal;
[154] Fix | Delete
font-weight:bold;
[155] Fix | Delete
line-height:125%;
[156] Fix | Delete
letter-spacing:normal;
[157] Fix | Delete
}
[158] Fix | Delete
/* Header - Header Style */
[159] Fix | Delete
#templateHeader{
[160] Fix | Delete
border-top:0;
[161] Fix | Delete
border-bottom:0;
[162] Fix | Delete
padding-top:0;
[163] Fix | Delete
padding-bottom:20px;
[164] Fix | Delete
text-align: center;
[165] Fix | Delete
}
[166] Fix | Delete
/* Body - Body Style */
[167] Fix | Delete
#templateBody{
[168] Fix | Delete
background-color:#FFFFFF;
[169] Fix | Delete
border-top:0;
[170] Fix | Delete
border: 1px solid #c1c1c1;
[171] Fix | Delete
padding-top:0;
[172] Fix | Delete
padding-bottom:0px;
[173] Fix | Delete
}
[174] Fix | Delete
/* Body -Body Text */
[175] Fix | Delete
#templateBody .mcnTextContent,
[176] Fix | Delete
#templateBody .mcnTextContent p{
[177] Fix | Delete
color:#555555;
[178] Fix | Delete
font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
[179] Fix | Delete
font-size:14px;
[180] Fix | Delete
line-height:150%;
[181] Fix | Delete
}
[182] Fix | Delete
/* Body - Body Link */
[183] Fix | Delete
#templateBody .mcnTextContent a,
[184] Fix | Delete
#templateBody .mcnTextContent p a{
[185] Fix | Delete
color:#ff7f50;
[186] Fix | Delete
font-weight:normal;
[187] Fix | Delete
text-decoration:underline;
[188] Fix | Delete
}
[189] Fix | Delete
/* Footer - Footer Style */
[190] Fix | Delete
#templateFooter{
[191] Fix | Delete
background-color:<?php echo esc_attr( $background_color ); ?>;
[192] Fix | Delete
border-top:0;
[193] Fix | Delete
border-bottom:0;
[194] Fix | Delete
padding-top:12px;
[195] Fix | Delete
padding-bottom:12px;
[196] Fix | Delete
}
[197] Fix | Delete
/* Footer - Footer Text */
[198] Fix | Delete
#templateFooter .mcnTextContent,
[199] Fix | Delete
#templateFooter .mcnTextContent p{
[200] Fix | Delete
color:#cccccc;
[201] Fix | Delete
font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
[202] Fix | Delete
font-size:12px;
[203] Fix | Delete
line-height:150%;
[204] Fix | Delete
text-align:center;
[205] Fix | Delete
}
[206] Fix | Delete
/* Footer - Footer Link */
[207] Fix | Delete
#templateFooter .mcnTextContent a,
[208] Fix | Delete
#templateFooter .mcnTextContent p a{
[209] Fix | Delete
color:#cccccc;
[210] Fix | Delete
font-weight:normal;
[211] Fix | Delete
text-decoration:underline;
[212] Fix | Delete
}
[213] Fix | Delete
@media only screen and (min-width:768px){
[214] Fix | Delete
.templateContainer{
[215] Fix | Delete
width:600px !important;
[216] Fix | Delete
}
[217] Fix | Delete
}
[218] Fix | Delete
@media only screen and (max-width: 480px){
[219] Fix | Delete
body,table,td,p,a,li,blockquote{
[220] Fix | Delete
-webkit-text-size-adjust:none !important;
[221] Fix | Delete
}
[222] Fix | Delete
}
[223] Fix | Delete
@media only screen and (max-width: 480px){
[224] Fix | Delete
body{
[225] Fix | Delete
width:100% !important;
[226] Fix | Delete
min-width:100% !important;
[227] Fix | Delete
}
[228] Fix | Delete
}
[229] Fix | Delete
@media only screen and (max-width: 680px){
[230] Fix | Delete
#bodyCell{
[231] Fix | Delete
padding:20px 20px !important;
[232] Fix | Delete
}
[233] Fix | Delete
}
[234] Fix | Delete
@media only screen and (max-width: 480px){
[235] Fix | Delete
.mcnTextContentContainer{
[236] Fix | Delete
max-width:100% !important;
[237] Fix | Delete
width:100% !important;
[238] Fix | Delete
}
[239] Fix | Delete
}
[240] Fix | Delete
/* Rich Text compatibility - image alignment. */
[241] Fix | Delete
.mcnTextContentContainer p::after {
[242] Fix | Delete
content: "";
[243] Fix | Delete
clear: both;
[244] Fix | Delete
display: block;
[245] Fix | Delete
}
[246] Fix | Delete
.mcnTextContentContainer p .alignleft, .mcnTextContentContainer li .alignleft {
[247] Fix | Delete
float: left;
[248] Fix | Delete
margin-right: 16px;
[249] Fix | Delete
margin-top: 8px;
[250] Fix | Delete
margin-bottom: 8px;
[251] Fix | Delete
}
[252] Fix | Delete
.mcnTextContentContainer p .aligncenter, .mcnTextContentContainer li .aligncenter {
[253] Fix | Delete
display: block;
[254] Fix | Delete
margin-left: auto;
[255] Fix | Delete
margin-right: auto;
[256] Fix | Delete
}
[257] Fix | Delete
.mcnTextContentContainer p .alignright, .mcnTextContentContainer li .alignright {
[258] Fix | Delete
float: right;
[259] Fix | Delete
margin-left: 16px;
[260] Fix | Delete
margin-top: 8px;
[261] Fix | Delete
margin-bottom: 8px;
[262] Fix | Delete
}
[263] Fix | Delete
/* Rich text compatibility - table */
[264] Fix | Delete
.wpforms-iframe table,
[265] Fix | Delete
.wpforms-iframe table th,
[266] Fix | Delete
.wpforms-iframe table td {
[267] Fix | Delete
border: 1px solid currentColor;
[268] Fix | Delete
padding: 5px;
[269] Fix | Delete
}
[270] Fix | Delete
/* styling lists */
[271] Fix | Delete
.mcnTextContentContainer li {
[272] Fix | Delete
list-style-position: inside;
[273] Fix | Delete
mso-text-indent-alt: 0;
[274] Fix | Delete
}
[275] Fix | Delete
/* Order Summary */
[276] Fix | Delete
.wpforms-order-summary-container {
[277] Fix | Delete
display: block;
[278] Fix | Delete
border-width: 1px;
[279] Fix | Delete
border-style: solid;
[280] Fix | Delete
max-width: 100%;
[281] Fix | Delete
border-color: #e2e2e2;
[282] Fix | Delete
}
[283] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview {
[284] Fix | Delete
width: 100%;
[285] Fix | Delete
border-collapse: collapse;
[286] Fix | Delete
table-layout: fixed;
[287] Fix | Delete
box-sizing: content-box;
[288] Fix | Delete
margin: 0;
[289] Fix | Delete
}
[290] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview tbody {
[291] Fix | Delete
display: contents;
[292] Fix | Delete
}
[293] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview tr th,
[294] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview tr td {
[295] Fix | Delete
text-align: center;
[296] Fix | Delete
}
[297] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview .wpforms-order-summary-item-label {
[298] Fix | Delete
text-align: start;
[299] Fix | Delete
padding-left: 10px;
[300] Fix | Delete
}
[301] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview .wpforms-order-summary-item-quantity {
[302] Fix | Delete
width: 8ch;
[303] Fix | Delete
}
[304] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview .wpforms-order-summary-item-price {
[305] Fix | Delete
width: 6ch;
[306] Fix | Delete
text-align: end;
[307] Fix | Delete
padding-right: 10px;
[308] Fix | Delete
}
[309] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview tr.wpforms-order-summary-placeholder td {
[310] Fix | Delete
text-align: start;
[311] Fix | Delete
padding-left: 10px;
[312] Fix | Delete
}
[313] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview tr {
[314] Fix | Delete
border-bottom-width: 1px;
[315] Fix | Delete
border-bottom-style: solid;
[316] Fix | Delete
border-color: #e2e2e2;
[317] Fix | Delete
display: table-row;
[318] Fix | Delete
}
[319] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview tr th,
[320] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview tr td {
[321] Fix | Delete
padding: 9px 0;
[322] Fix | Delete
line-height: 20px;
[323] Fix | Delete
background: none;
[324] Fix | Delete
border: none;
[325] Fix | Delete
font-weight: 400;
[326] Fix | Delete
display: table-cell;
[327] Fix | Delete
}
[328] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview tr.wpforms-order-summary-preview-subtotal td,
[329] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview tr.wpforms-order-summary-preview-total td {
[330] Fix | Delete
font-weight: 700;
[331] Fix | Delete
}
[332] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview tr.wpforms-order-summary-preview-total {
[333] Fix | Delete
border-bottom: none;
[334] Fix | Delete
}
[335] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview caption,
[336] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview .wpforms-order-summary-placeholder-hidden,
[337] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview .wpforms-order-summary-item-quantity-label-short {
[338] Fix | Delete
display: none;
[339] Fix | Delete
}
[340] Fix | Delete
.wpforms-order-summary-container table.wpforms-order-summary-preview tr.wpforms-order-summary-preview-coupon-total td.wpforms-order-summary-item-price {
[341] Fix | Delete
color: #d63638;
[342] Fix | Delete
}
[343] Fix | Delete
</style>
[344] Fix | Delete
</head>
[345] Fix | Delete
<body style="height: 100%;margin: 0;padding: 0;width: 100%;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;background-color: <?php echo esc_attr( $background_color ); ?>;">
[346] Fix | Delete
<!-- Don't forget to run final template through http://templates.mailchimp.com/resources/inline-css/ -->
[347] Fix | Delete
<center>
[348] Fix | Delete
<table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" id="bodyTable" style="border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;height: 100%;margin: 0;padding: 0;width: 100%;background-color: <?php echo esc_attr( $background_color ); ?>;">
[349] Fix | Delete
<tr>
[350] Fix | Delete
<td align="center" valign="top" id="bodyCell" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;height: 100%;margin: 0;padding: 50px 50px;width: 100%;">
[351] Fix | Delete
<!-- BEGIN TEMPLATE // -->
[352] Fix | Delete
<!--[if gte mso 9]>
[353] Fix | Delete
<table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;">
[354] Fix | Delete
<tr>
[355] Fix | Delete
<td align="center" valign="top" width="600" style="width:600px;">
[356] Fix | Delete
<![endif]-->
[357] Fix | Delete
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="templateContainer" style="border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;border: 0;max-width: 600px !important;">
[358] Fix | Delete
<?php
[359] Fix | Delete
if ( ! empty( $header_image ) ) {
[360] Fix | Delete
echo '<tr><td valign="top" align="center" id="templateHeader" style="padding-bottom:20px;text-align:center;">';
[361] Fix | Delete
echo '<img src="' . esc_url( $header_image ) . '" alt="' . esc_attr( get_bloginfo( 'name' ) ) . '" />';
[362] Fix | Delete
echo '</td></tr>';
[363] Fix | Delete
}
[364] Fix | Delete
?>
[365] Fix | Delete
<tr>
[366] Fix | Delete
<td valign="top" id="templateBody" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;background-color: #FFFFFF;border-top: 0;border: 1px solid #c1c1c1;padding-top: 0;padding-bottom: 0px;">
[367] Fix | Delete
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mcnTextBlock" style="min-width: 100%;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;">
[368] Fix | Delete
<tbody class="mcnTextBlockOuter">
[369] Fix | Delete
<tr>
[370] Fix | Delete
<td valign="top" class="mcnTextBlockInner" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;">
[371] Fix | Delete
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width: 100%;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;" class="mcnTextContentContainer">
[372] Fix | Delete
<tbody>
[373] Fix | Delete
<tr>
[374] Fix | Delete
<td valign="top" style="padding-top: 30px;padding-right: 30px;padding-bottom: 30px;padding-left: 30px;" class="mcnTextContent">
[375] Fix | Delete
[376] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function