8c3e9b00 |
1 | <?php |
244ec72c |
2 | defined( 'ABSPATH' ) || die( 'No script kiddies please!' ); |
b96bc758 |
3 | /** |
4 | * danixland-contact-form standard Template |
5 | * Template Name = danixland |
6 | * Template Author = danilo 'danix' macri |
7 | * Template URI = http://danixland.net |
8 | */ |
9 | |
10 | /* |
11 | This templating system is really simple, it makes use of a filter inside the |
12 | main file that allows template developers to create and use different templates |
13 | for their emails simply by hooking to the filter without the need to modify the |
14 | original files. It's perfect for customers who want a consistent look between |
15 | the website and the emails. |
16 | |
17 | The template file itself consist of a function that receives arrays as |
18 | arguments and returns some formatted html as output. |
19 | |
20 | The data received by the template consists of 2 different arrays containing the |
21 | info that will be reported inside the email sent by the contact form. |
22 | the 2 arrays example structure is the following: |
23 | |
24 | // this is data gathered via various php variables and WordPress functions |
25 | $data = array( |
8c3e9b00 |
26 | 'ownname' = '', // name of the person receiving the message aka US! |
27 | 'site' = get_bloginfo('name'), // the site name |
28 | 'time' = '', // string generated by current_time() |
29 | 'host' = '', // string generated by getenv("REMOTE_ADDR") |
30 | 'ua' = '' // string corresponding to $_SERVER['HTTP_USER_AGENT'] |
b96bc758 |
31 | ); |
32 | |
33 | // this is data sent via $_POST by the form itself |
34 | $posted = array( |
8c3e9b00 |
35 | 'dnxcf_name' = '', // the name of the user sending the message |
36 | 'dnxcf_email' = '', // the user's email |
37 | 'dnxcf_website' = '', // the user's website |
38 | 'dnxcf_subject' = '', // the subject of the message |
39 | 'dnxcf_message' = '' // the message body |
b96bc758 |
40 | ); |
41 | |
42 | */ |
43 | |
44 | // this is the main function, it returns the email content and needs to have |
45 | // always the same name or the main plugin won't be able to send emails |
46 | // NOTE TO SELF: "I need to fix this ASAP" |
47 | function dnxcf_email_content( $data = array(), $posted = array() ) { |
8c3e9b00 |
48 | extract( $data ); |
49 | extract( $posted ); |
b96bc758 |
50 | |
8c3e9b00 |
51 | $ownurl = get_bloginfo( 'url' ); |
52 | // heredoc to return the email content |
53 | $output = <<<DNX44665312EOT |
b96bc758 |
54 | |
55 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
56 | <html xmlns="http://www.w3.org/1999/xhtml"> |
57 | <head> |
58 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
59 | <meta name="viewport" content="width=device-width"/> |
60 | <style> |
61 | #outlook a { |
62 | padding: 0; |
63 | } |
64 | body { |
65 | background-color: #f5f5f5; |
66 | width: 100%!important; |
67 | min-width: 100%; |
68 | -webkit-text-size-adjust: 100%; |
69 | -ms-text-size-adjust: 100%; |
70 | margin: 0; |
71 | padding: 0; |
72 | } |
73 | .ExternalClass { |
74 | width: 100%; |
75 | } |
76 | .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div { |
77 | line-height: 100%; |
78 | } |
79 | #backgroundTable { |
80 | margin: 0; |
81 | padding: 0; |
82 | width: 100%!important; |
83 | line-height: 100%!important; |
84 | } |
85 | img { |
86 | outline: none; |
87 | text-decoration: none; |
88 | -ms-interpolation-mode: bicubic; |
89 | width: auto; |
90 | max-width: 100%; |
91 | float: left; |
92 | clear: both; |
93 | display: block; |
94 | } |
95 | center { |
96 | width: 100%; |
97 | min-width: 580px; |
98 | } |
99 | a img { |
100 | border: none; |
101 | } |
102 | p { |
103 | margin: 0 0 0 10px; |
104 | } |
105 | table { |
106 | border-spacing: 0; |
107 | border-collapse: collapse; |
108 | } |
109 | td { |
110 | word-break: break-word; |
111 | -webkit-hyphens: auto; |
112 | -moz-hyphens: auto; |
113 | hyphens: auto; |
114 | border-collapse: collapse!important; |
115 | } |
116 | table, tr, td { |
117 | padding: 0; |
118 | vertical-align: top; |
119 | text-align: left; |
120 | } |
121 | hr { |
122 | color: #d9d9d9; |
123 | background-color: #d9d9d9; |
124 | height: 1px; |
125 | border: none; |
126 | } |
127 | table.body { |
128 | height: 100%; |
129 | width: 100%; |
130 | } |
131 | table.container { |
132 | width: 580px; |
133 | margin: 0 auto; |
134 | text-align: inherit; |
135 | } |
136 | table.row { |
137 | padding: 0px; |
138 | width: 100%; |
139 | position: relative; |
140 | } |
141 | table.container table.row { |
142 | display: block; |
143 | } |
144 | td.wrapper { |
145 | padding: 10px 20px 0px 0px; |
146 | position: relative; |
147 | } |
148 | table.columns, table.column { |
149 | margin: 0 auto; |
150 | } |
151 | table.columns td, table.column td { |
152 | padding: 0px 0px 10px; |
153 | } |
154 | table.columns td.sub-columns, table.column td.sub-columns, table.columns td.sub-column, table.column td.sub-column { |
155 | padding-right: 10px; |
156 | } |
157 | td.sub-column, td.sub-columns { |
158 | min-width: 0px; |
159 | } |
160 | table.row td.last, table.container td.last { |
161 | padding-right: 0px; |
162 | } |
163 | table.one { |
164 | width: 30px; |
165 | } |
166 | table.two { |
167 | width: 80px; |
168 | } |
169 | table.three { |
170 | width: 130px; |
171 | } |
172 | table.four { |
173 | width: 180px; |
174 | } |
175 | table.five { |
176 | width: 230px; |
177 | } |
178 | table.six { |
179 | width: 280px; |
180 | } |
181 | table.seven { |
182 | width: 330px; |
183 | } |
184 | table.eight { |
185 | width: 380px; |
186 | } |
187 | table.nine { |
188 | width: 430px; |
189 | } |
190 | table.ten { |
191 | width: 480px; |
192 | } |
193 | table.eleven { |
194 | width: 530px; |
195 | } |
196 | table.twelve { |
197 | width: 580px; |
198 | } |
199 | table.one center { |
200 | min-width: 30px; |
201 | } |
202 | table.two center { |
203 | min-width: 80px; |
204 | } |
205 | table.three center { |
206 | min-width: 130px; |
207 | } |
208 | table.four center { |
209 | min-width: 180px; |
210 | } |
211 | table.five center { |
212 | min-width: 230px; |
213 | } |
214 | table.six center { |
215 | min-width: 280px; |
216 | } |
217 | table.seven center { |
218 | min-width: 330px; |
219 | } |
220 | table.eight center { |
221 | min-width: 380px; |
222 | } |
223 | table.nine center { |
224 | min-width: 430px; |
225 | } |
226 | table.ten center { |
227 | min-width: 480px; |
228 | } |
229 | table.eleven center { |
230 | min-width: 530px; |
231 | } |
232 | table.twelve center { |
233 | min-width: 580px; |
234 | } |
235 | table.one .panel center { |
236 | min-width: 10px; |
237 | } |
238 | table.two .panel center { |
239 | min-width: 60px; |
240 | } |
241 | table.three .panel center { |
242 | min-width: 110px; |
243 | } |
244 | table.four .panel center { |
245 | min-width: 160px; |
246 | } |
247 | table.five .panel center { |
248 | min-width: 210px; |
249 | } |
250 | table.six .panel center { |
251 | min-width: 260px; |
252 | } |
253 | table.seven .panel center { |
254 | min-width: 310px; |
255 | } |
256 | table.eight .panel center { |
257 | min-width: 360px; |
258 | } |
259 | table.nine .panel center { |
260 | min-width: 410px; |
261 | } |
262 | table.ten .panel center { |
263 | min-width: 460px; |
264 | } |
265 | table.eleven .panel center { |
266 | min-width: 510px; |
267 | } |
268 | table.twelve .panel center { |
269 | min-width: 560px; |
270 | } |
271 | .body .columns td.one, .body .column td.one { |
272 | width: 8.333333%; |
273 | } |
274 | .body .columns td.two, .body .column td.two { |
275 | width: 16.666666%; |
276 | } |
277 | .body .columns td.three, .body .column td.three { |
278 | width: 25%; |
279 | } |
280 | .body .columns td.four, .body .column td.four { |
281 | width: 33.333333%; |
282 | } |
283 | .body .columns td.five, .body .column td.five { |
284 | width: 41.666666%; |
285 | } |
286 | .body .columns td.six, .body .column td.six { |
287 | width: 50%; |
288 | } |
289 | .body .columns td.seven, .body .column td.seven { |
290 | width: 58.333333%; |
291 | } |
292 | .body .columns td.eight, .body .column td.eight { |
293 | width: 66.666666%; |
294 | } |
295 | .body .columns td.nine, .body .column td.nine { |
296 | width: 75%; |
297 | } |
298 | .body .columns td.ten, .body .column td.ten { |
299 | width: 83.333333%; |
300 | } |
301 | .body .columns td.eleven, .body .column td.eleven { |
302 | width: 91.666666%; |
303 | } |
304 | .body .columns td.twelve, .body .column td.twelve { |
305 | width: 100%; |
306 | } |
307 | td.offset-by-one { |
308 | padding-left: 50px; |
309 | } |
310 | td.offset-by-two { |
311 | padding-left: 100px; |
312 | } |
313 | td.offset-by-three { |
314 | padding-left: 150px; |
315 | } |
316 | td.offset-by-four { |
317 | padding-left: 200px; |
318 | } |
319 | td.offset-by-five { |
320 | padding-left: 250px; |
321 | } |
322 | td.offset-by-six { |
323 | padding-left: 300px; |
324 | } |
325 | td.offset-by-seven { |
326 | padding-left: 350px; |
327 | } |
328 | td.offset-by-eight { |
329 | padding-left: 400px; |
330 | } |
331 | td.offset-by-nine { |
332 | padding-left: 450px; |
333 | } |
334 | td.offset-by-ten { |
335 | padding-left: 500px; |
336 | } |
337 | td.offset-by-eleven { |
338 | padding-left: 550px; |
339 | } |
340 | td.expander { |
341 | visibility: hidden; |
342 | width: 0px; |
343 | padding: 0!important; |
344 | } |
345 | table.columns .text-pad, table.column .text-pad { |
346 | padding-left: 10px; |
347 | padding-right: 10px; |
348 | } |
349 | table.columns .left-text-pad, table.columns .text-pad-left, table.column .left-text-pad, table.column .text-pad-left { |
350 | padding-left: 10px; |
351 | } |
352 | table.columns .right-text-pad, table.columns .text-pad-right, table.column .right-text-pad, table.column .text-pad-right { |
353 | padding-right: 10px; |
354 | } |
355 | .block-grid { |
356 | width: 100%; |
357 | max-width: 580px; |
358 | } |
359 | .block-grid td { |
360 | display: inline-block; |
361 | padding: 10px; |
362 | } |
363 | .two-up td { |
364 | width: 270px; |
365 | } |
366 | .three-up td { |
367 | width: 173px; |
368 | } |
369 | .four-up td { |
370 | width: 125px; |
371 | } |
372 | .five-up td { |
373 | width: 96px; |
374 | } |
375 | .six-up td { |
376 | width: 76px; |
377 | } |
378 | .seven-up td { |
379 | width: 62px; |
380 | } |
381 | .eight-up td { |
382 | width: 52px; |
383 | } |
384 | table.center, td.center { |
385 | text-align: center; |
386 | } |
387 | h1.center, h2.center, h3.center, h4.center, h5.center, h6.center { |
388 | text-align: center; |
389 | } |
390 | span.center { |
391 | display: block; |
392 | width: 100%; |
393 | text-align: center; |
394 | } |
395 | img.center { |
396 | margin: 0 auto; |
397 | float: none; |
398 | } |
399 | .show-for-small, .hide-for-desktop { |
400 | display: none; |
401 | } |
402 | body, table.body, h1, h2, h3, h4, h5, h6, p, td { |
403 | color: #616161; |
404 | font-family: "Helvetica", "Arial", sans-serif; |
405 | font-weight: normal; |
406 | padding: 0; |
407 | margin: 0 0 8px; |
408 | text-align: left; |
409 | line-height: 1.5; |
410 | } |
411 | h1, h2, h3, h4, h5, h6 { |
412 | word-break: normal; |
413 | } |
414 | h1 { |
415 | font-size: 40px; |
416 | } |
417 | h2 { |
418 | font-size: 36px; |
419 | } |
420 | h3 { |
421 | font-size: 32px; |
422 | } |
423 | h4 { |
424 | font-size: 28px; |
425 | } |
426 | h5 { |
427 | font-size: 24px; |
428 | } |
429 | h6 { |
430 | font-size: 20px; |
431 | } |
432 | body, table.body, p, td { |
433 | font-size: 14px; |
434 | line-height: 19px; |
435 | } |
436 | p.lead, p.lede, p.leed { |
437 | font-size: 18px; |
438 | line-height: 21px; |
439 | } |
440 | p { |
441 | margin-bottom: 10px; |
442 | text-align: justify; |
443 | } |
444 | small { |
445 | font-size: 10px; |
446 | } |
447 | a { |
448 | color: #387c2b; |
449 | text-decoration: none; |
450 | } |
451 | a:hover { |
452 | color: #faa634!important; |
453 | } |
454 | a:active { |
455 | color: #faa634!important; |
456 | } |
457 | a:visited { |
458 | color: #387c2b!important; |
459 | } |
460 | h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { |
461 | color: #387c2b; |
462 | } |
463 | h1 a:active, h2 a:active, h3 a:active, h4 a:active, h5 a:active, h6 a:active { |
464 | color: #387c2b!important; |
465 | } |
466 | h1 a:visited, h2 a:visited, h3 a:visited, h4 a:visited, h5 a:visited, h6 a:visited { |
467 | color: #387c2b!important; |
468 | } |
469 | .panel { /* PANNELLO AZZURRINO */ |
470 | background: #616161; |
471 | color: #f5f5f5 |
472 | border: 1px solid #ffeb3b; |
473 | padding: 15px!important; |
474 | box-shadow: 1px 3px 12px rgba(120,120,120,0.6); |
475 | } |
476 | .sub-grid table { |
477 | width: 100%; |
478 | } |
479 | .sub-grid td.sub-columns { |
480 | padding-bottom: 0; |
481 | } |
482 | table.button, table.tiny-button, table.small-button, table.medium-button, table.large-button { |
483 | width: 100%; |
484 | overflow: hidden; |
485 | } |
486 | table.button td, table.tiny-button td, table.small-button td, table.medium-button td, table.large-button td { |
487 | display: block; |
488 | width: auto!important; |
489 | text-align: center; |
490 | background: #387c2b; |
491 | border: 1px solid #2284a1; |
492 | color: #ffffff; |
493 | padding: 8px 0; |
494 | } |
495 | table.tiny-button td { |
496 | padding: 5px 0 4px; |
497 | } |
498 | table.small-button td { |
499 | padding: 8px 0 7px; |
500 | } |
501 | table.medium-button td { |
502 | padding: 12px 0 10px; |
503 | } |
504 | table.large-button td { |
505 | padding: 21px 0 18px; |
506 | } |
507 | table.button td a, table.tiny-button td a, table.small-button td a, table.medium-button td a, table.large-button td a { |
508 | font-weight: bold; |
509 | text-decoration: none; |
510 | font-family: Helvetica, Arial, sans-serif; |
511 | color: #ffffff; |
512 | font-size: 16px; |
513 | } |
514 | table.tiny-button td a { |
515 | font-size: 12px; |
516 | font-weight: normal; |
517 | } |
518 | table.small-button td a { |
519 | font-size: 16px; |
520 | } |
521 | table.medium-button td a { |
522 | font-size: 20px; |
523 | } |
524 | table.large-button td a { |
525 | font-size: 24px; |
526 | } |
527 | table.button:hover td, table.button:visited td, table.button:active td { |
528 | background: #faa634!important; |
529 | } |
530 | table.button:hover td a, table.button:visited td a, table.button:active td a { |
531 | color: #fff!important; |
532 | } |
533 | table.button:hover td, table.tiny-button:hover td, table.small-button:hover td, table.medium-button:hover td, table.large-button:hover td { |
534 | background: #faa634!important; |
535 | } |
536 | table.button:hover td a, table.button:active td a, table.button td a:visited, table.tiny-button:hover td a, table.tiny-button:active td a, table.tiny-button td a:visited, table.small-button:hover td a, table.small-button:active td a, table.small-button td a:visited, table.medium-button:hover td a, table.medium-button:active td a, table.medium-button td a:visited, table.large-button:hover td a, table.large-button:active td a, table.large-button td a:visited { |
537 | color: #ffffff!important; |
538 | } |
539 | table.secondary td { |
540 | background: #e9e9e9; |
541 | border-color: #d0d0d0; |
542 | color: #555; |
543 | } |
544 | table.secondary td a { |
545 | color: #555; |
546 | } |
547 | table.secondary:hover td { |
548 | background: #d0d0d0!important; |
549 | color: #555; |
550 | } |
551 | table.secondary:hover td a, table.secondary td a:visited, table.secondary:active td a { |
552 | color: #555!important; |
553 | } |
554 | table.success td { |
555 | background: #5da423; |
556 | border-color: #457a1a; |
557 | } |
558 | table.success:hover td { |
559 | background: #457a1a!important; |
560 | } |
561 | table.alert td { |
562 | background: #c60f13; |
563 | border-color: #970b0e; |
564 | } |
565 | table.alert:hover td { |
566 | background: #970b0e!important; |
567 | } |
568 | table.radius td { |
569 | -webkit-border-radius: 3px; |
570 | -moz-border-radius: 3px; |
571 | border-radius: 3px; |
572 | } |
573 | table.round td { |
574 | -webkit-border-radius: 500px; |
575 | -moz-border-radius: 500px; |
576 | border-radius: 500px; |
577 | } |
578 | body.outlook p { |
579 | display: inline!important; |
580 | } |
581 | @media only screen and (max-width: 600px) { |
582 | table[class="body"] img { |
583 | width: auto!important; |
584 | height: auto!important; |
585 | } |
586 | table[class="body"] center { |
587 | min-width: 0!important; |
588 | } |
589 | table[class="body"] .container { |
590 | width: 95%!important; |
591 | } |
592 | table[class="body"] .row { |
593 | width: 100%!important; |
594 | display: block!important; |
595 | } |
596 | table[class="body"] .wrapper { |
597 | display: block!important; |
598 | padding-right: 0!important; |
599 | } |
600 | table[class="body"] .columns, table[class="body"] .column { |
601 | table-layout: fixed!important; |
602 | float: none!important; |
603 | width: 100%!important; |
604 | padding-right: 0px!important; |
605 | padding-left: 0px!important; |
606 | display: block!important; |
607 | } |
608 | table[class="body"] .wrapper.first .columns, table[class="body"] .wrapper.first .column { |
609 | display: table!important; |
610 | } |
611 | table[class="body"] table.columns td, table[class="body"] table.column td { |
612 | width: 100%!important; |
613 | } |
614 | table[class="body"] .columns td.one, table[class="body"] .column td.one { |
615 | width: 8.333333%!important; |
616 | } |
617 | table[class="body"] .columns td.two, table[class="body"] .column td.two { |
618 | width: 16.666666%!important; |
619 | } |
620 | table[class="body"] .columns td.three, table[class="body"] .column td.three { |
621 | width: 25%!important; |
622 | } |
623 | table[class="body"] .columns td.four, table[class="body"] .column td.four { |
624 | width: 33.333333%!important; |
625 | } |
626 | table[class="body"] .columns td.five, table[class="body"] .column td.five { |
627 | width: 41.666666%!important; |
628 | } |
629 | table[class="body"] .columns td.six, table[class="body"] .column td.six { |
630 | width: 50%!important; |
631 | } |
632 | table[class="body"] .columns td.seven, table[class="body"] .column td.seven { |
633 | width: 58.333333%!important; |
634 | } |
635 | table[class="body"] .columns td.eight, table[class="body"] .column td.eight { |
636 | width: 66.666666%!important; |
637 | } |
638 | table[class="body"] .columns td.nine, table[class="body"] .column td.nine { |
639 | width: 75%!important; |
640 | } |
641 | table[class="body"] .columns td.ten, table[class="body"] .column td.ten { |
642 | width: 83.333333%!important; |
643 | } |
644 | table[class="body"] .columns td.eleven, table[class="body"] .column td.eleven { |
645 | width: 91.666666%!important; |
646 | } |
647 | table[class="body"] .columns td.twelve, table[class="body"] .column td.twelve { |
648 | width: 100%!important; |
649 | } |
650 | table[class="body"] td.offset-by-one, table[class="body"] td.offset-by-two, table[class="body"] td.offset-by-three, table[class="body"] td.offset-by-four, table[class="body"] td.offset-by-five, table[class="body"] td.offset-by-six, table[class="body"] td.offset-by-seven, table[class="body"] td.offset-by-eight, table[class="body"] td.offset-by-nine, table[class="body"] td.offset-by-ten, table[class="body"] td.offset-by-eleven { |
651 | padding-left: 0!important; |
652 | } |
653 | table[class="body"] table.columns td.expander { |
654 | width: 1px!important; |
655 | } |
656 | table[class="body"] .right-text-pad, table[class="body"] .text-pad-right { |
657 | padding-left: 10px!important; |
658 | } |
659 | table[class="body"] .left-text-pad, table[class="body"] .text-pad-left { |
660 | padding-right: 10px!important; |
661 | } |
662 | table[class="body"] .hide-for-small, table[class="body"] .show-for-desktop { |
663 | display: none!important; |
664 | } |
665 | table[class="body"] .show-for-small, table[class="body"] .hide-for-desktop { |
666 | display: inherit!important; |
667 | } |
668 | } |
669 | </style> |
670 | <style> |
671 | .template-label { |
672 | color: #ffffff; |
673 | font-weight: bold; |
674 | font-size: 11px; |
675 | } |
676 | .callout .panel { |
677 | background: #ECF8FF; |
678 | border-color: #b9e5ff; |
679 | } |
680 | .header { |
681 | background: #8a8a8a; |
682 | box-shadow: 0 2px 12px rgba(120,120,120,0.6) |
683 | } |
684 | .footer .wrapper { |
685 | background: #ebebeb; |
686 | } |
687 | .footer h5 { |
688 | padding-bottom: 10px; |
689 | } |
690 | table.columns .text-pad { |
691 | padding-left: 10px; |
692 | padding-right: 10px; |
693 | } |
694 | table.columns .left-text-pad { |
695 | padding-left: 10px; |
696 | } |
697 | table.columns .right-text-pad { |
698 | padding-right: 10px; |
699 | } |
700 | @media only screen and (max-width: 600px) { |
701 | table[class="body"] .right-text-pad { |
702 | padding-left: 10px!important; |
703 | } |
704 | table[class="body"] .left-text-pad { |
705 | padding-right: 10px!important; |
706 | } |
707 | } |
708 | </style> |
709 | <style> |
710 | .template-label { |
711 | color: #ffffff; |
712 | font-weight: bold; |
713 | font-size: 11px; |
714 | } |
715 | .callout .panel { |
716 | background: #cbcbcb; |
717 | border-color: #b9e5ff; |
718 | } |
719 | .header { |
720 | background: #8a8a8a; |
721 | box-shadow: 0 2px 5px rgba(120,120,120,0.6) |
722 | } |
723 | .footer .wrapper { |
724 | background: #ebebeb; |
725 | } |
726 | .footer h5 { |
727 | padding-bottom: 10px; |
728 | } |
729 | .reply-notice { |
730 | background-color: #ffeb3b; |
731 | font-weight: 900; |
732 | } |
733 | .plugin-support a { |
734 | color: #ffeb3b; |
735 | font-weight: bold; |
736 | } |
737 | table.columns .text-pad { |
738 | padding-left: 10px; |
739 | padding-right: 10px; |
740 | } |
741 | table.columns .left-text-pad { |
742 | padding-left: 10px; |
743 | } |
744 | table.columns .right-text-pad { |
745 | padding-right: 10px; |
746 | } |
747 | @media only screen and (max-width: 600px) { |
748 | table[class="body"] .right-text-pad { |
749 | padding-left: 10px!important; |
750 | } |
751 | table[class="body"] .left-text-pad { |
752 | padding-right: 10px!important; |
753 | } |
754 | } |
755 | </style> |
756 | </head> |
757 | <body> |
758 | <table class="body"> |
759 | <tr> |
760 | <td class="center" align="center" valign="top"> |
761 | <center> |
762 | <table class="row header"> |
763 | <tr> |
764 | <td class="center" align="center"> |
765 | <center> |
766 | <table class="container"> |
767 | <tr> |
768 | <td class="wrapper last"> |
769 | <table class="twelve columns"> |
770 | <tr> |
771 | <td class="six sub-columns"> |
772 | <a href="$ownurl"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAAAyCAYAAADcD8w1AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAIpElEQVR42u2bf3AUZxnHP7t7ubtcfickGyAS2kBIKxakQC0/rGKZsUhBsVg7bZVS2lpRiw461lpnHIf+VajFsWNlqFP5gwIpVK1gqYWCU5yxLZEabNICQoBAAoQQLiF3t7uvfzzvwc1J0isGDi73nXln97K3b/b97rPPfp/v+x5kcUVgDUAfpcBCwACOASrdg8pUzAbOAfVAbrov5mqFOQB9DAOCwGkgku4BXa0YCKLj6ScCeOke0NWKgSDa0Ntsbu4HyUTfACwBxnyMPgr0tjvdg7mWMB/oBPYA01I85/PARmBWui/+WkIu8DXgENAA3JTieUE+XhrKAaqAGcBi4LvAqHQP/nLC6OPv84HnEbK/ARxNOBYEhgPXAyXIC/AMcAJRHp1AGHCT+vQBnwEm6e14hOwAEAPWAN8DetNNyuWAr4+/vwIUAnOBcoToscAcYKret/X5HhBFtPRZhPC9wF+AbcBJ3Wc+8H3gTiSf7wN+D7yj+z9ABstDo59jJpCHkDcT+BXykgxrUhqA94HwnDsDn62oMKe9/XbsSPMHbqS3V9nIDWoCVgF/BE4B1wE3A0cQojvISsLzCADrEfn2KpJX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dfrzOGAX8iPWw/qc+NrvOkQib073IK5lWIhYaEAW5yfDAH6BGHGB5BOzSB0KyeEm8BVkacSphOPjkFn+auQpKERs5GiW6EvDe4hK+zaS508h6XUZ8n57ArEsxiC/5+nKmkOXDhO4FViATOflID7R3xGf/ikuLNzPunADgCAytzoaiezdiGJpYxAs/Lnq8F+q799xspLOEgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxNi0wMS0zMVQyMjowODoyMiswMTowMN17DyEAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTQtMTEtMTJUMjI6MzY6MzkrMDE6MDBTY2O4AAAAAElFTkSuQmCC"></a> |
773 | </td> |
774 | <td class="six sub-columns last" align="right" style="text-align:right; vertical-align:middle;"> |
775 | <a href="$ownurl"><span class="template-label">$site</span></a> |
776 | </td> |
777 | <td class="expander"></td> |
778 | </tr> |
779 | </table> |
780 | </td> |
781 | </tr> |
782 | </table> |
783 | </center> |
784 | </td> |
785 | </tr> |
786 | </table> |
787 | <br> |
788 | <table class="container"> |
789 | <tr> |
790 | <td> |
791 | <table class="row"> |
792 | <tr> |
793 | <td class="wrapper last"> |
794 | <table class="twelve columns"> |
795 | <tr> |
796 | <td> |
797 | <h1>Hello, $ownname</h1> |
798 | <p class="lead">you have been contacted by <strong>$dnxcf_name</strong> on <strong>$site</strong></p> |
799 | </td> |
800 | <td class="expander"></td> |
801 | </tr> |
802 | </table> |
803 | </td> |
804 | </tr> |
805 | </table> |
806 | <table class="row"> |
807 | <tr> |
808 | <td class="wrapper last"> |
809 | <table class="twelve columns"> |
810 | <tr> |
811 | <td> |
812 | <h3>message about <strong>"$dnxcf_subject"</strong></h3> |
813 | <div><p>$dnxcf_message</p></div> |
814 | </td> |
815 | <td class="expander"></td> |
816 | </tr> |
817 | </table> |
818 | </td> |
819 | </tr> |
820 | </table> |
821 | <table class="row callout"> |
822 | <tr> |
823 | <td class="wrapper last"> |
824 | <table class="twelve columns"> |
825 | <tr> |
826 | <td class="panel"> |
827 | <p>Some details about $dnxcf_name: |
828 | <ul> |
829 | <li>Browser: $ua</li> |
830 | <li>Time: $time</li> |
831 | <li>IP Address: $host</li> |
832 | </ul> |
833 | </p> |
834 | </td> |
835 | <td class="expander"></td> |
836 | </tr> |
837 | </table> |
838 | </td> |
839 | </tr> |
840 | </table> |
841 | <table class="row"> |
842 | <tr> |
843 | <td class="wrapper last"> |
844 | <table class="twelve columns"> |
845 | <tr> |
846 | <td align="center"> |
847 | <center> |
848 | <p class="reply-notice" style="text-align:center;"><small>you can reply directly to this email</small></p> |
849 | </center> |
850 | </td> |
851 | <td class="expander"></td> |
852 | </tr> |
853 | </table> |
854 | </td> |
855 | </tr> |
856 | </table> |
857 | <table class="row"> |
858 | <tr> |
859 | <td class="wrapper last"> |
860 | <table class="twelve columns"> |
861 | <tr> |
862 | <td align="center"> |
863 | <center> |
864 | <p class="plugin-support"><a href="https://danix.xyz/?p=3577">plugin author support</a> | <a href="https://wordpress.org/support/">WordPress Support Forum</a></p> |
865 | </center> |
866 | </td> |
867 | <td class="expander"></td> |
868 | </tr> |
869 | </table> |
870 | </td> |
871 | </tr> |
872 | </table> |
873 | </td> |
874 | </tr> |
875 | </table> |
876 | </center> |
877 | </td> |
878 | </tr> |
879 | </table> |
880 | </body> |
881 | </html> |
882 | |
883 | DNX44665312EOT; |
884 | |
8c3e9b00 |
885 | return $output; |
b96bc758 |
886 | |
887 | } |
888 | |
b96bc758 |
889 | |