templatesLegacy
2 years ago
custom_fields_legacy.html
4 years ago
editor.html
1 week ago
form_preview.html
4 years ago
front_end_form.html
2 months ago
iframe.html
2 years ago
index.php
3 years ago
template_selection.html
2 years ago
iframe.html
76 lines
| 1 | <!DOCTYPE html> |
| 2 | <!--[if IE 7]> |
| 3 | <html class="ie ie7" <%= language_attributes | raw %>> |
| 4 | <![endif]--> |
| 5 | <!--[if IE 8]> |
| 6 | <html class="ie ie8" <%= language_attributes | raw %>> |
| 7 | <![endif]--> |
| 8 | <!--[if !(IE 7) & !(IE 8)]><!--> |
| 9 | <html <%= language_attributes | raw %>> |
| 10 | <script> |
| 11 | var additionalHeight = 10, |
| 12 | attemptsToAdjust = 3, |
| 13 | delayToAdjust = 400, |
| 14 | intervalHandle; |
| 15 | |
| 16 | var sendSize = function() { |
| 17 | if(!attemptsToAdjust && intervalHandle !== undefined) { |
| 18 | window.clearInterval(intervalHandle) |
| 19 | return; |
| 20 | } |
| 21 | window.top.postMessage({MailPoetIframeHeight: document.body.scrollHeight + additionalHeight + 'px'}, '*'); |
| 22 | attemptsToAdjust--; |
| 23 | }; |
| 24 | |
| 25 | window.addEventListener('load', function () { |
| 26 | sendSize(); |
| 27 | if(!window.MutationObserver) { |
| 28 | intervalHandle = setInterval(sendSize, delayToAdjust); |
| 29 | return; |
| 30 | } |
| 31 | |
| 32 | var observer = new MutationObserver(sendSize); |
| 33 | |
| 34 | observer.observe(document.body, { |
| 35 | childList: true, |
| 36 | subtree: true |
| 37 | }); |
| 38 | }); |
| 39 | </script> |
| 40 | |
| 41 | <!--<![endif]--> |
| 42 | <head> |
| 43 | <meta charset="UTF-8"> |
| 44 | <meta name="viewport" content="width=device-width"> |
| 45 | <meta name="robots" content="noindex, nofollow"> |
| 46 | <title><%= __('MailPoet Subscription Form') %></title> |
| 47 | <style> |
| 48 | html { |
| 49 | box-sizing: border-box; |
| 50 | } |
| 51 | *, |
| 52 | *:before, |
| 53 | *:after { |
| 54 | box-sizing: inherit; |
| 55 | } |
| 56 | body { |
| 57 | color: rgb(40, 48, 61); |
| 58 | font-family: Arial, Helvetica, sans-serif; |
| 59 | font-size: 16px; |
| 60 | font-weight: normal; |
| 61 | text-align: left; |
| 62 | } |
| 63 | </style> |
| 64 | <% set allowedHtml = {'link': {'href': [], 'rel': []}} %> |
| 65 | <%= fonts_link | wpKses(allowedHtml) %> |
| 66 | <link rel="stylesheet" type="text/css" href="<%= mailpoet_public_css_url %>" /> |
| 67 | <%= scripts | raw %> |
| 68 | </head> |
| 69 | <body> |
| 70 | <%= form | raw %> |
| 71 | <script type="text/javascript"> |
| 72 | var MailPoetForm = <%= json_encode(mailpoet_form) %>; |
| 73 | </script> |
| 74 | </body> |
| 75 | </html> |
| 76 |