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
front_end_form.html
86 lines
| 1 | <% block content %> |
| 2 | <% if(before_widget) %> |
| 3 | <%= before_widget | raw %> |
| 4 | <% endif %> |
| 5 | |
| 6 | <% if(title) %> |
| 7 | <%= before_title | raw %><%= title | raw %><%= after_title | raw %> |
| 8 | <% endif %> |
| 9 | |
| 10 | <div class=" |
| 11 | mailpoet_form_popup_overlay |
| 12 | <% if(animation != '') %> |
| 13 | mailpoet_form_overlay_animation_<%= animation %> |
| 14 | mailpoet_form_overlay_animation |
| 15 | <% endif %> |
| 16 | "></div> |
| 17 | <div |
| 18 | id="<%= form_html_id %>" |
| 19 | class=" |
| 20 | mailpoet_form |
| 21 | mailpoet_form_<%= form_type %> |
| 22 | mailpoet_form_position_<%= position %> |
| 23 | mailpoet_form_animation_<%= animation %> |
| 24 | " |
| 25 | <% if(is_preview) %> |
| 26 | data-is-preview="1" |
| 27 | data-editor-url="<%= editor_url %>" |
| 28 | <% endif %> |
| 29 | > |
| 30 | |
| 31 | <style type="text/css"> |
| 32 | <%= styles|raw %> |
| 33 | </style> |
| 34 | |
| 35 | <form |
| 36 | target="_self" |
| 37 | method="post" |
| 38 | action="<%= admin_url('admin-post.php?action=mailpoet_subscription_form') %>" |
| 39 | class="mailpoet_form mailpoet_form_form mailpoet_form_<%= form_type %>" |
| 40 | novalidate |
| 41 | data-delay="<%= delay %>" |
| 42 | data-exit-intent-enabled="<%= enableExitIntent %>" |
| 43 | data-trigger-mode="<%= triggerMode %>" |
| 44 | data-click-trigger-selector="<%= clickTriggerSelector %>" |
| 45 | data-font-family="<%= fontFamily %>" |
| 46 | data-cookie-expiration-time="<%= cookieFormExpirationTime %>" |
| 47 | > |
| 48 | <input type="hidden" name="data[form_id]" value="<%= form_id %>" /> |
| 49 | <input type="hidden" name="token" value="<%= token %>" /> |
| 50 | <input type="hidden" name="api_version" value="<%= api_version %>" /> |
| 51 | <input type="hidden" name="endpoint" value="subscribers" /> |
| 52 | <input type="hidden" name="mailpoet_method" value="subscribe" /> |
| 53 | |
| 54 | <%= html | raw %> |
| 55 | <div class="mailpoet_message"> |
| 56 | <p class="mailpoet_validate_success" |
| 57 | <% if not(success) %> |
| 58 | style="display:none;" |
| 59 | <% endif %> |
| 60 | ><%= form_success_message %> |
| 61 | </p> |
| 62 | <p class="mailpoet_validate_error" |
| 63 | <% if not(error) %> |
| 64 | style="display:none;" |
| 65 | <% endif %> |
| 66 | ><% if (error) %> |
| 67 | <%= __("An error occurred, make sure you have filled all the required fields.") %> |
| 68 | <% endif %> |
| 69 | </p> |
| 70 | </div> |
| 71 | </form> |
| 72 | |
| 73 | <% if form_type == 'popup' or form_type == 'fixed_bar' or form_type == 'slide_in' %> |
| 74 | <input type="image" |
| 75 | class="mailpoet_form_close_icon" |
| 76 | alt="<%= __('Close') %>" |
| 77 | src='<%= image_url("form_close_icon/" ~ close_button_icon ~ ".svg") %>' |
| 78 | /> |
| 79 | <% endif %> |
| 80 | </div> |
| 81 | |
| 82 | <% if(after_widget) %> |
| 83 | <%= after_widget | raw %> |
| 84 | <% endif %> |
| 85 | <% endblock %> |
| 86 |