templatesLegacy
2 years ago
custom_fields_legacy.html
4 years ago
editor.html
2 years ago
form_preview.html
4 years ago
front_end_form.html
3 years ago
iframe.html
2 years ago
index.php
3 years ago
template_selection.html
2 years ago
editor.html
213 lines
| 1 | <% extends 'layout.html' %> |
| 2 | |
| 3 | <% block container %> |
| 4 | |
| 5 | <div class="block-editor"> |
| 6 | <div id="mailpoet_form_edit" class="block-editor__container"> |
| 7 | </div> |
| 8 | </div> |
| 9 | |
| 10 | <script> |
| 11 | <% autoescape 'js' %> |
| 12 | var mailpoet_form_data = <%= json_encode(form) %>; |
| 13 | var mailpoet_form_exports = <%= json_encode(form_exports) %>; |
| 14 | var mailpoet_form_segments = <%= json_encode(segments) %>; |
| 15 | var mailpoet_custom_fields = <%= json_encode(custom_fields) %>; |
| 16 | var mailpoet_date_types = <%= json_encode(date_types) %>; |
| 17 | var mailpoet_date_formats = <%= json_encode(date_formats) %>; |
| 18 | var mailpoet_month_names = <%= json_encode(month_names) %>; |
| 19 | var mailpoet_form_preview_page = <%= json_encode(preview_page_url) %>; |
| 20 | var mailpoet_custom_fonts = <%= json_encode(custom_fonts) %>; |
| 21 | var mailpoet_translations = <%= json_encode(translations) %>; |
| 22 | var mailpoet_all_wp_posts = <%= json_encode(posts) %>; |
| 23 | var mailpoet_all_wp_pages = <%= json_encode(pages) %>; |
| 24 | var mailpoet_all_wp_categories = <%= json_encode(categories) %>; |
| 25 | var mailpoet_all_wp_tags = <%= json_encode(tags) %>; |
| 26 | var mailpoet_woocommerce_products = <%= json_encode(products) %>; |
| 27 | var mailpoet_woocommerce_categories = <%= json_encode(product_categories) %>; |
| 28 | var mailpoet_woocommerce_tags = <%= json_encode(product_tags) %>; |
| 29 | var mailpoet_close_icons_url = '<%= image_url("form_close_icon") %>'; |
| 30 | var mailpoet_tutorial_seen = '<%= editor_tutorial_seen %>'; |
| 31 | var mailpoet_tutorial_url = '<%= cdn_url('form-editor/tutorial.mp4') %>'; |
| 32 | var mailpoet_is_administrator = <%= is_administrator ? 'true' : 'false' %>; |
| 33 | var mailpoet_form_edit_url = "<%= admin_url('admin.php?page=mailpoet-form-editor&id=') %>"; |
| 34 | <% endautoescape %> |
| 35 | </script> |
| 36 | |
| 37 | <style id="mailpoet-form-editor-form-styles"></style> |
| 38 | |
| 39 | <%= localize({ |
| 40 | 'displayForm': __('Display the form'), |
| 41 | 'enable': __('Enable'), |
| 42 | 'addFormName': _x('Add form name', 'A placeholder for form name input'), |
| 43 | 'back': __('Back'), |
| 44 | 'form': __('Form'), |
| 45 | 'formSettings': _x('Settings', 'A settings section heading'), |
| 46 | 'formSettingsStyles': __('Styles'), |
| 47 | 'formSettingsColor': __('Color'), |
| 48 | 'formSettingsStylesBackground': __('Background'), |
| 49 | 'formSettingsStylesBackgroundImage': __('Background Image'), |
| 50 | 'formSettingsStylesSelectImage': __('Select Image…'), |
| 51 | 'formSettingsStylesFontSize': __('Font Size'), |
| 52 | 'formSettingsStylesFont': __('Font'), |
| 53 | 'formSettingsStylesFontColorInherit': __('Inherit from theme'), |
| 54 | 'formSettingsInheritStyleFromTheme': __('Inherit style from theme'), |
| 55 | 'formSettingsDisplayFullWidth': _x('Display Fullwidth', 'A label for checkbox in form style settings'), |
| 56 | 'formSettingsBold': _x('Bold', 'A label for checkbox in form style settings'), |
| 57 | 'formSettingsBorderSize': _x('Border Size', 'A label for checkbox in form style settings'), |
| 58 | 'formSettingsBorderRadius': _x('Border Radius', 'A label for checkbox in form style settings'), |
| 59 | 'formSettingsInputPadding': _x('Input Padding', 'A label for form style settings'), |
| 60 | 'formSettingsFormPadding': _x('Form Padding', 'A label for form style settings'), |
| 61 | 'formSettingsAlignment': _x('Alignment', 'A label for form style settings'), |
| 62 | 'formSettingsAlignmentLeft': _x('left', 'An alignment value for form editor'), |
| 63 | 'formSettingsAlignmentCenter': _x('center', 'An alignment value for form editor'), |
| 64 | 'formSettingsAlignmentRight': _x('right', 'An alignment value for form editor'), |
| 65 | 'formSettingsBorder': _x('Border', 'A label for checkbox in form style settings'), |
| 66 | 'formSettingsApplyToAll': __('Apply styles to all inputs'), |
| 67 | 'formSettingsWidth': _x('Form width', 'A label for form width settings'), |
| 68 | 'customFieldSettings': _x('Custom field settings', 'A settings section heading'), |
| 69 | 'customFieldsFormSettings': _x('Form settings', 'A settings section heading'), |
| 70 | 'formPlacement': _x('Form Placement', 'A settings section heading'), |
| 71 | 'formPlacementLabel': _x('Form placement', 'A label for a select box'), |
| 72 | 'customCss': _x('Custom CSS', 'A settings section heading'), |
| 73 | 'formSaved': __('Form saved.'), |
| 74 | 'formSavedAppendix': __('Cookies reset — you will see all your dismissed popup forms again.'), |
| 75 | 'customFieldSaved': __('Custom field saved.'), |
| 76 | 'placeFixedBarFormOnPages': _x('Fixed bar', 'This is a text on a widget that leads to settings for form placement - form type is fixed bar'), |
| 77 | 'placeFixedBarFormOnPagesDescription': __('Display your form in a fixed horizontal bar at the top or bottom of posts or pages.'), |
| 78 | 'placeSlideInFormOnPages': _x('Slide–in', 'This is a text on a widget that leads to settings for form placement - form type is slide in'), |
| 79 | 'placeSlideInFormOnPagesDescription': __('Display your form in a slide–in form on top of your page content.'), |
| 80 | 'placePopupFormOnPages': _x('Pop-up', 'This is a text on a widget that leads to settings for form placement - form type is pop-up, it will be displayed on page in a small modal window'), |
| 81 | 'placePopupFormOnPagesDescription': __('Display your form in a pop-up window.'), |
| 82 | 'exitIntentTitle': __('Display on exit-intent'), |
| 83 | 'exitIntentDescription': __('Show the form immediately if the visitor attempts to leave the site.'), |
| 84 | 'exitIntentSwitch': __('Exit-intent display'), |
| 85 | 'placeFormBellowPages': _x('Below pages', 'This is a text on a widget that leads to settings for form placement'), |
| 86 | 'placeFormBellowPagesDescription': __('This form placement allows you to add this form at the end of all the pages or posts, below the content.'), |
| 87 | 'placeFormOnAllPages': _x('Display on all pages', 'This is a text on a switch if a form should be displayed bellow all pages'), |
| 88 | 'placeFormOnAllPosts': _x('Display on all posts/products', 'This is a text on a switch if a form should be displayed bellow all posts'), |
| 89 | 'placeFormOnHomepage': __('Display on the homepage'), |
| 90 | 'placeFormOthers': _x('Others (widget)', 'Placement of the form using theme widget'), |
| 91 | 'formPlacementDelay': _x('Display with a delay of', 'Label on a selection of different times'), |
| 92 | 'formPlacementPlacementPosition': _x('Position', 'Placement of a fixed bar form, on top of the page or on the bottom'), |
| 93 | 'formPlacementPlacementPositionTop': _x('top', 'Placement of a fixed bar form, on top of the page or on the bottom'), |
| 94 | 'formPlacementPlacementPositionBottom': _x('bottom', 'Placement of a fixed bar form, on top of the page or on the bottom'), |
| 95 | 'formPlacementPlacementPositionLeft': _x('left', 'Placement of a slide in form, on the left or right side of the page'), |
| 96 | 'formPlacementPlacementPositionRight': _x('right', 'Placement of a slide in form, on the left or right side of the page'), |
| 97 | 'formPlacementDelaySeconds': _x('%1s sec', 'times selection should be in the end "30 sec"'), |
| 98 | 'formPlacementCookieExpiration': _x('Show form every', 'Label on a selection of different times'), |
| 99 | 'formPlacementCookieExpirationAlways': _x('Always', 'times selection'), |
| 100 | 'formPlacementCookieExpirationDay': _x('1 day', 'times selection should be in the end "1 day"'), |
| 101 | 'formPlacementCookieExpirationDays': _x('%1s days', 'times selection should be in the end "7 days"'), |
| 102 | 'formPlacementSave': _x('Close', 'Text on a button to save and close a form'), |
| 103 | 'formPlacementOtherLabel': _x('Shortcode & other', 'Label in the form placement section (Other form placements)'), |
| 104 | 'animationHeader': __('Show animation on display'), |
| 105 | 'animationNone': _x('No Animation', 'Value in a selectbox with a list of animations'), |
| 106 | 'addFormWidgetHint': __('You can add this form to a [link]widget area of your theme[/link] (new tab).'), |
| 107 | 'addFormShortcodeHint': __('Or in any page or post as a block, or with this shortcode if you prefer [shortcode].'), |
| 108 | 'addFormPhpIframeHint': __('Use [link]PHP[/link] or [link]iFrame[/link].'), |
| 109 | 'settingsListLabel': __('This form adds the subscribers to these lists'), |
| 110 | 'settingsAfterSubmit': __('After submit…'), |
| 111 | 'settingsShowMessage': __('Show message'), |
| 112 | 'settingsGoToPage': __('Go to Page'), |
| 113 | 'settingsPleaseSelectList': __('Please select a list'), |
| 114 | 'fieldsBlocksCategory': __('Fields'), |
| 115 | 'customFieldsBlocksCategory': __('Custom Fields'), |
| 116 | 'layoutBlocksCategory': __('Layout'), |
| 117 | 'customFieldNumberOfLines': __('Number of lines'), |
| 118 | 'customFieldSaveCTA': _x('Update custom field', 'Text on the save button'), |
| 119 | 'customFieldDeleteCTA': _x('Delete this custom field', 'Text on the delete button'), |
| 120 | 'customFieldDeleteConfirm': __('This field will be deleted for all your subscribers. Are you sure?'), |
| 121 | 'customFieldTypeText': __('Text Input'), |
| 122 | 'customFieldTypeTextarea': __('Text Area'), |
| 123 | 'customFieldTypeRadio': __('Radio buttons'), |
| 124 | 'customFieldTypeCheckbox': __('Checkbox'), |
| 125 | 'customFieldTypeSelect': _x('Select', 'Form input type'), |
| 126 | 'selectPage': _x('Select', 'It is a placeholder in the select box - verb'), |
| 127 | 'displayOnCategories': __('Display on posts with these categories'), |
| 128 | 'displayOnAllCategoryArchives': __('Display on all post/product category archives'), |
| 129 | 'displayOnTags': __('Display on posts with these tags'), |
| 130 | 'displayOnAllTagArchives': __('Display on all post/product tag archives'), |
| 131 | 'selectSpecificArchiveTags': __('Select specific tags'), |
| 132 | 'selectSpecificArchiveCategories': __('Select specific categories'), |
| 133 | 'customFieldTypeDate': __('Date'), |
| 134 | 'customFieldDateType': __('Type of date'), |
| 135 | 'customFieldDateFormat': __('Order'), |
| 136 | 'customFieldDefaultToday': __('Preselect today’s date'), |
| 137 | 'customFieldDay': __('Day'), |
| 138 | 'customFieldMonth': __('Month'), |
| 139 | 'customFieldYear': __('Year'), |
| 140 | 'customField1Line': _x('1 line', 'Number of rows in textarea'), |
| 141 | 'customField2Lines': _x('2 lines', 'Number of rows in textarea'), |
| 142 | 'customField3Lines': _x('3 lines', 'Number of rows in textarea'), |
| 143 | 'customField4Lines': _x('4 lines', 'Number of rows in textarea'), |
| 144 | 'customField5Lines': _x('5 lines', 'Number of rows in textarea'), |
| 145 | 'customFieldValidateFor': __('Validate for'), |
| 146 | 'customFieldValidateNothing': __('Nothing'), |
| 147 | 'customFieldValidateNumbersOnly': __('Numbers only'), |
| 148 | 'customFieldValidateAlphanumerical': __('Alphanumerical'), |
| 149 | 'customFieldValidatePhoneNumber': __('Phone number, (+,-,#,(,) and spaces allowed)'), |
| 150 | 'customFieldAddItem': __('Add item'), |
| 151 | 'blockMandatory': __('Mandatory field'), |
| 152 | 'blockFirstName': __('First name'), |
| 153 | 'blockFirstNameDescription': __('Input field used to catch subscribers’ first names.'), |
| 154 | 'blockLastName': __('Last name'), |
| 155 | 'blockLastNameDescription': __('Input field used to catch subscribers’ last names.'), |
| 156 | 'blockSegmentSelect': __('List selection'), |
| 157 | 'blockLastNameDescription': __('Allow your subscribers to select which list(s) they want to subscribe to.'), |
| 158 | 'blockSegmentSelectLabel': __('Select list(s):'), |
| 159 | 'blockSegmentSelectNoLists': __('Please select at least one list'), |
| 160 | 'blockSegmentSelectListLabel': __('Select the list that you want to add'), |
| 161 | 'blockEmail': __('Email'), |
| 162 | 'blockEmailDescription': __('Input field used to catch subscribers’ email addresses.'), |
| 163 | 'blockSubmit': __('Submit button'), |
| 164 | 'blockSubmitDescription': __('Button used to submit the form.'), |
| 165 | 'blockSubmitLabel': _x('Subscribe!', 'a default value for a subscription form button'), |
| 166 | 'missingObligatoryBlock': __('Email input or submit is missing. Try reloading the form editor.'), |
| 167 | 'label': _x('Label', 'settings for a label of an input'), |
| 168 | 'displayLabelWithinInput': __('Display label within input'), |
| 169 | 'displayLabel': _x('Display label', 'Settings - if label should be displayed'), |
| 170 | 'blockDivider': _x('Divider / Spacer', 'The name of the block in the editor'), |
| 171 | 'blockCustomHtml' : __('Custom HTML'), |
| 172 | 'blockCustomHtmlDescription': __('Display custom text or HTML code in your form.'), |
| 173 | 'blockCustomHtmlDefault': __('Subscribe to our newsletter and join [mailpoet_subscribers_count] other subscribers.'), |
| 174 | 'blockCustomHtmlContentLabel': _x('Custom text', 'Textarea label'), |
| 175 | 'blockCustomHtmlNl2br': __('Automatically add paragraphs'), |
| 176 | 'blockAddCustomField': __('Create Custom Field'), |
| 177 | 'blockAddCustomFieldDescription': __('Create a new custom field for your subscribers.'), |
| 178 | 'blockAddCustomFieldFormHeading': __('New Custom Field.'), |
| 179 | 'blockCreateButton': _x('Create', 'Label on form submit button.'), |
| 180 | 'customFieldName': _x('Field name', 'Label for form field for custom input name'), |
| 181 | 'selectCustomFieldType': _x('Select a field type', 'Label for form field for custom input type'), |
| 182 | 'customFieldWithNameExists': __('The custom field [name] already exists. Please choose another name.'), |
| 183 | 'successMessage': __('This is what the success message looks like.'), |
| 184 | 'errorMessage': __('This is what the error message looks like.'), |
| 185 | 'formPreview': __('Form Preview'), |
| 186 | 'formSettingsStylesFontFamily': __('Font Family'), |
| 187 | 'formFontsDefaultTheme': __('Theme’s default fonts'), |
| 188 | 'formFontsStandard': _x('Standard fonts', 'Heading in the font selection list: Arial, Times, ...'), |
| 189 | 'formFontsCustom': _x('Custom fonts', 'Heading in the font selection list for a list of custom fonts'), |
| 190 | 'blockSpacerHeight': _x('Height', 'Settings in the spacer block'), |
| 191 | 'blockSpacerEnableDivider': _x('Enable Divider', 'Settings in the spacer block'), |
| 192 | 'imagePlacementScale': _x('Scale', 'How a background image will be rendered: scale, fit or tile'), |
| 193 | 'imagePlacementFit': _x('Fit', 'How a background image will be rendered: scale, fit or tile'), |
| 194 | 'imagePlacementTile': _x('Tile', 'How a background image will be rendered: scale, fit or tile'), |
| 195 | 'blockDividerStyle': _x('Divider Style', 'Settings in the divider block (solid, dotted, …)'), |
| 196 | 'blockDividerStyleSolid': _x('Solid', 'Setting in the divider block'), |
| 197 | 'blockDividerStyleDashed': _x('Dashed', 'Setting in the divider block'), |
| 198 | 'blockDividerStyleDotted': _x('Dotted', 'Setting in the divider block'), |
| 199 | 'blockDividerDividerHeight': _x('Divider Height', 'Settings in the divider block'), |
| 200 | 'blockDividerDividerWidth': _x('Divider Width', 'Settings in the divider block'), |
| 201 | 'blockDividerBackground': _x('Background', 'Settings in the divider block'), |
| 202 | 'validationMessageColor': _x('Message Color', 'heading above the settings'), |
| 203 | 'successValidationColorTitle': _x('Success', 'A label for the success message color'), |
| 204 | 'errorValidationColorTitle': _x('Error', 'A label for the error message color'), |
| 205 | 'formPreviewOthersDisclaimer': __('Psssst. We try our best to show you what the widget might look like, but better check the final result on your website.'), |
| 206 | 'closeButtonHeading': __('Close Button Style'), |
| 207 | 'tutorialHeading': __('A video tour of the form editor'), |
| 208 | 'noName': _x('no name', 'fallback for forms without a name in a form list'), |
| 209 | 'saveFormFirst': __('Please save the form first!'), |
| 210 | 'addNewTag': __('Add New Tag'), |
| 211 | }) %> |
| 212 | <% endblock %> |
| 213 |