templates
7 years ago
custom_fields.html
9 years ago
editor.html
7 years ago
iframe.html
8 years ago
index.php
9 years ago
widget.html
7 years ago
widget.html
44 lines
| 1 | <% block content %> |
| 2 | <%= before_widget | raw %> |
| 3 | |
| 4 | <% if(title) %> |
| 5 | <%= before_title | raw %><%= title | raw %><%= after_title | raw %> |
| 6 | <% endif %> |
| 7 | |
| 8 | <div id="<%= form_id %>" class="mailpoet_form mailpoet_form_<%= form_type %>"> |
| 9 | <%= styles | raw %> |
| 10 | <form |
| 11 | target="_self" |
| 12 | method="post" |
| 13 | action="<%= admin_url('admin-post.php?action=mailpoet_subscription_form') | raw %>" |
| 14 | class="mailpoet_form mailpoet_form_<%= form_type %>" |
| 15 | novalidate |
| 16 | > |
| 17 | <input type="hidden" name="data[form_id]" value="<%= form.id %>" /> |
| 18 | <input type="hidden" name="token" value="<%= token %>" /> |
| 19 | <input type="hidden" name="api_version" value="<%= api_version %>" /> |
| 20 | <input type="hidden" name="endpoint" value="subscribers" /> |
| 21 | <input type="hidden" name="mailpoet_method" value="subscribe" /> |
| 22 | |
| 23 | <%= html | raw %> |
| 24 | <div class="mailpoet_message"> |
| 25 | <p class="mailpoet_validate_success" |
| 26 | <% if not(success) %> |
| 27 | style="display:none;" |
| 28 | <% endif %> |
| 29 | ><%= form.settings.success_message %> |
| 30 | </p> |
| 31 | <p class="mailpoet_validate_error" |
| 32 | <% if not(error) %> |
| 33 | style="display:none;" |
| 34 | <% endif %> |
| 35 | ><% if (error) %> |
| 36 | <%= __("An error occurred, make sure you have filled all the required fields.") %> |
| 37 | <% endif %> |
| 38 | </p> |
| 39 | </div> |
| 40 | </form> |
| 41 | </div> |
| 42 | <%= after_widget | raw %> |
| 43 | <% endblock %> |
| 44 |