body-default.php
2 years ago
default.php
2 years ago
field-default.php
2 years ago
footer-default.php
2 years ago
header-default.php
2 years ago
header-default.php
279 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Email Header |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/everest-forms/emails/header-default.php. |
| 6 | * |
| 7 | * HOWEVER, on occasion Everest Forms will need to update template files and you |
| 8 | * and you (the theme developer) will need to copy the new files to your theme to |
| 9 | * maintain compatibility. We try to do this as little as possible, but it does |
| 10 | * happen. When this occurs the version of the template file will be bumped and |
| 11 | * the readme will list any important changes. |
| 12 | * |
| 13 | * @see https://docs.everestforms.net/ |
| 14 | * @package EverestForms/Templates |
| 15 | * @version 1.2.0 |
| 16 | */ |
| 17 | |
| 18 | defined( 'ABSPATH' ) || exit; |
| 19 | |
| 20 | $background_color = '#e9eaec'; |
| 21 | ?> |
| 22 | <!DOCTYPE html> |
| 23 | <html <?php language_attributes(); ?> xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> |
| 24 | <head> |
| 25 | <!--[if gte mso 15]> |
| 26 | <xml> |
| 27 | <o:OfficeDocumentSettings> |
| 28 | <o:AllowPNG/> |
| 29 | <o:PixelsPerInch>96</o:PixelsPerInch> |
| 30 | </o:OfficeDocumentSettings> |
| 31 | </xml> |
| 32 | <![endif]--> |
| 33 | <meta charset="UTF-8"> |
| 34 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 35 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 36 | <title><?php echo esc_html( get_bloginfo( 'name' ) ); ?></title> |
| 37 | <style type="text/css"> |
| 38 | p{ |
| 39 | margin:10px 0; |
| 40 | padding:0; |
| 41 | } |
| 42 | table{ |
| 43 | border-collapse:collapse; |
| 44 | } |
| 45 | h1,h2,h3,h4,h5,h6{ |
| 46 | display:block; |
| 47 | margin:0; |
| 48 | padding:0; |
| 49 | } |
| 50 | img,a img{ |
| 51 | border:0; |
| 52 | height:auto; |
| 53 | outline:none; |
| 54 | text-decoration:none; |
| 55 | } |
| 56 | body,#bodyTable,#bodyCell{ |
| 57 | height:100%; |
| 58 | margin:0; |
| 59 | padding:0; |
| 60 | width:100%; |
| 61 | } |
| 62 | #outlook a{ |
| 63 | padding:0; |
| 64 | } |
| 65 | img{ |
| 66 | -ms-interpolation-mode:bicubic; |
| 67 | } |
| 68 | table{ |
| 69 | mso-table-lspace:0pt; |
| 70 | mso-table-rspace:0pt; |
| 71 | } |
| 72 | .ReadMsgBody{ |
| 73 | width:100%; |
| 74 | } |
| 75 | .ExternalClass{ |
| 76 | width:100%; |
| 77 | } |
| 78 | p,a,li,td,blockquote{ |
| 79 | mso-line-height-rule:exactly; |
| 80 | } |
| 81 | a[href^=tel],a[href^=sms]{ |
| 82 | color:inherit; |
| 83 | cursor:default; |
| 84 | text-decoration:none; |
| 85 | } |
| 86 | p,a,li,td,body,table,blockquote{ |
| 87 | -ms-text-size-adjust:100%; |
| 88 | -webkit-text-size-adjust:100%; |
| 89 | } |
| 90 | .ExternalClass,.ExternalClass p,.ExternalClass td,.ExternalClass div,.ExternalClass span,.ExternalClass font{ |
| 91 | line-height:100%; |
| 92 | } |
| 93 | a[x-apple-data-detectors]{ |
| 94 | color:inherit !important; |
| 95 | text-decoration:none !important; |
| 96 | font-size:inherit !important; |
| 97 | font-family:inherit !important; |
| 98 | font-weight:inherit !important; |
| 99 | line-height:inherit !important; |
| 100 | } |
| 101 | #bodyCell{ |
| 102 | padding:50px 50px; |
| 103 | } |
| 104 | .templateContainer{ |
| 105 | max-width:600px !important; |
| 106 | border:0; |
| 107 | } |
| 108 | a.mcnButton{ |
| 109 | display:block; |
| 110 | } |
| 111 | .mcnTextContent{ |
| 112 | word-break:break-word; |
| 113 | } |
| 114 | .mcnTextContent img{ |
| 115 | height:auto !important; |
| 116 | } |
| 117 | .mcnDividerBlock{ |
| 118 | table-layout:fixed !important; |
| 119 | } |
| 120 | /***** Make theme edits below if needed *****/ |
| 121 | /* Page - Background Style */ |
| 122 | body,#bodyTable{ |
| 123 | background-color:<?php echo esc_attr( $background_color ); ?>; |
| 124 | } |
| 125 | /* Page - Heading 1 */ |
| 126 | h1{ |
| 127 | color:#202020; |
| 128 | font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; |
| 129 | font-size:26px; |
| 130 | font-style:normal; |
| 131 | font-weight:bold; |
| 132 | line-height:125%; |
| 133 | letter-spacing:normal; |
| 134 | } |
| 135 | /* Page - Heading 2 */ |
| 136 | h2{ |
| 137 | color:#202020; |
| 138 | font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; |
| 139 | font-size:22px; |
| 140 | font-style:normal; |
| 141 | font-weight:bold; |
| 142 | line-height:125%; |
| 143 | letter-spacing:normal; |
| 144 | } |
| 145 | /* Page - Heading 3 */ |
| 146 | h3{ |
| 147 | color:#202020; |
| 148 | font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; |
| 149 | font-size:20px; |
| 150 | font-style:normal; |
| 151 | font-weight:bold; |
| 152 | line-height:125%; |
| 153 | letter-spacing:normal; |
| 154 | } |
| 155 | /* Page - Heading 4 */ |
| 156 | h4{ |
| 157 | color:#202020; |
| 158 | font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; |
| 159 | font-size:18px; |
| 160 | font-style:normal; |
| 161 | font-weight:bold; |
| 162 | line-height:125%; |
| 163 | letter-spacing:normal; |
| 164 | } |
| 165 | /* Header - Header Style */ |
| 166 | #templateHeader{ |
| 167 | border-top:0; |
| 168 | border-bottom:0; |
| 169 | padding-top:0; |
| 170 | padding-bottom:20px; |
| 171 | text-align: center; |
| 172 | } |
| 173 | /* Body - Body Style */ |
| 174 | #templateBody{ |
| 175 | background-color:#FFFFFF; |
| 176 | border-top:0; |
| 177 | border: 1px solid #c1c1c1; |
| 178 | padding-top:0; |
| 179 | padding-bottom:0px; |
| 180 | } |
| 181 | /* Body -Body Text */ |
| 182 | #templateBody .mcnTextContent, |
| 183 | #templateBody .mcnTextContent p{ |
| 184 | color:#555555; |
| 185 | font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; |
| 186 | font-size:14px; |
| 187 | line-height:150%; |
| 188 | } |
| 189 | /* Body - Body Link */ |
| 190 | #templateBody .mcnTextContent a, |
| 191 | #templateBody .mcnTextContent p a{ |
| 192 | color: #7e3bd0; |
| 193 | font-weight:normal; |
| 194 | text-decoration:underline; |
| 195 | } |
| 196 | /* Footer - Footer Style */ |
| 197 | #templateFooter{ |
| 198 | background-color:<?php echo esc_attr( $background_color ); ?>; |
| 199 | border-top:0; |
| 200 | border-bottom:0; |
| 201 | padding-top:12px; |
| 202 | padding-bottom:12px; |
| 203 | } |
| 204 | /* Footer - Footer Text */ |
| 205 | #templateFooter .mcnTextContent, |
| 206 | #templateFooter .mcnTextContent p{ |
| 207 | color:#cccccc; |
| 208 | font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; |
| 209 | font-size:12px; |
| 210 | line-height:150%; |
| 211 | text-align:center; |
| 212 | } |
| 213 | /* Footer - Footer Link */ |
| 214 | #templateFooter .mcnTextContent a, |
| 215 | #templateFooter .mcnTextContent p a{ |
| 216 | color:#cccccc; |
| 217 | font-weight:normal; |
| 218 | text-decoration:underline; |
| 219 | } |
| 220 | @media only screen and (min-width:768px){ |
| 221 | .templateContainer{ |
| 222 | width:600px !important; |
| 223 | } |
| 224 | } |
| 225 | @media only screen and (max-width: 480px){ |
| 226 | body,table,td,p,a,li,blockquote{ |
| 227 | -webkit-text-size-adjust:none !important; |
| 228 | } |
| 229 | } |
| 230 | @media only screen and (max-width: 480px){ |
| 231 | body{ |
| 232 | width:100% !important; |
| 233 | min-width:100% !important; |
| 234 | } |
| 235 | } |
| 236 | @media only screen and (max-width: 680px){ |
| 237 | #bodyCell{ |
| 238 | padding:20px 20px !important; |
| 239 | } |
| 240 | } |
| 241 | @media only screen and (max-width: 480px){ |
| 242 | .mcnTextContentContainer{ |
| 243 | max-width:100% !important; |
| 244 | width:100% !important; |
| 245 | } |
| 246 | } |
| 247 | </style> |
| 248 | </head> |
| 249 | <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 ); ?>;"> |
| 250 | <!-- Don't forget to run final template through http://templates.mailchimp.com/resources/inline-css/ --> |
| 251 | <center> |
| 252 | <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 ); ?>;"> |
| 253 | <tr> |
| 254 | <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%;"> |
| 255 | <!-- BEGIN TEMPLATE // --> |
| 256 | <!--[if gte mso 9]> |
| 257 | <table align="center" border="0" cellspacing="0" cellpadding="0" width="600" style="width:600px;"> |
| 258 | <tr> |
| 259 | <td align="center" valign="top" width="600" style="width:600px;"> |
| 260 | <![endif]--> |
| 261 | <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;"> |
| 262 | <?php |
| 263 | if ( ! empty( $header_image ) ) { |
| 264 | echo '<tr><td valign="top" align="center" id="templateHeader" style="padding-bottom:20px;text-align:center;">'; |
| 265 | echo '<img src="' . esc_url( $header_image ) . '" alt="' . esc_attr( get_bloginfo( 'name' ) ) . '" />'; |
| 266 | echo '</td></tr>'; |
| 267 | } |
| 268 | ?> |
| 269 | <tr> |
| 270 | <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;"> |
| 271 | <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%;"> |
| 272 | <tbody class="mcnTextBlockOuter"> |
| 273 | <tr> |
| 274 | <td valign="top" class="mcnTextBlockInner" style="mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;"> |
| 275 | <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"> |
| 276 | <tbody> |
| 277 | <tr> |
| 278 | <td valign="top" style="padding-top: 30px;padding-right: 30px;padding-bottom: 30px;padding-left: 30px;" class="mcnTextContent"> |
| 279 |