Commit Graph

460 Commits

Author SHA1 Message Date
e8c7b7e6b8 Fix form custom CSS rendering
[MAILPOET-3596]
2021-05-05 09:43:35 +02:00
65c9bad64c Fix pre-selecting date value
[MAILPOET-3470]
2021-04-15 15:47:57 +02:00
5ceb084c64 Refactor Forms::delete() to use Doctrine
[MAILPOET-3039]
2021-04-12 13:35:14 +02:00
49f0c054fd Refactor Forms::restore() to use Doctrine
[MAILPOET-3039]
2021-04-12 13:35:14 +02:00
e054f05222 Refactor Forms::trash() to use Doctrine
[MAILPOET-3039]
2021-04-12 13:35:14 +02:00
b3f82cccc5 Refactor Forms::duplicate() to use Doctrine instead of Paris
[MAILPOET-3038]
2021-04-07 09:48:53 +02:00
4b5f044f6b Use __() instead of \MailPoet\WP\Functions::__()
[MAILPOET-3036]
2021-03-31 11:37:07 +02:00
5f262e6b04 Update comment to explain empty methods
[MAILPOET-3036]
2021-03-31 11:37:07 +02:00
a18ae06f8a Rewrite Forms::listing() API to use Doctrine
This commit replaces the usage of Paris with Doctrine inside
MailPoet\API\JSON\v1\Forms::listing(). It also introduces a new class
MailPoet\Form\Listing\FormListingRepository that is used by listing() to
prepare the query that is executed by Doctrine and a new
MailPoet\API\JSON\ResponseBuilders\FormsResponseBuilder::buildForListing()
method to prepare the response that is returned by listing(). A few tests were
adjusted and new tests were added for the new class.

[MAILPOET-3036]
2021-03-31 11:37:07 +02:00
wxa
3fd379a72d Hide recaptcha in manage subscription form
[MAILPOET-3459]
2021-03-11 09:03:02 +01:00
cfbe662e19 Update CustomFonts.php
WordPress automatically appends -css to the handle, so at the moment it's being output like this: 

`<link rel='stylesheet' id='mailpoet_custom_fonts_css-css'`
2021-03-03 15:29:56 +01:00
438c9a7469 Alter data validation regexp so that is not malformed by wptexturize
[MAILPOET-3440]
2021-03-01 10:08:08 +01:00
6bf62ee90a Fix links in form checkbox label
[MAILPOET-3433]
2021-02-17 11:00:15 +01:00
76279d3148 Fix form input validations
[MAILPOET-3415]
2021-02-15 19:05:14 +01:00
6a63ac26c7 Fix naming sanitiser > sanitizer
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
6d074e37e9 Fix image caption rendering in for editor
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
c1aef842d2 Fix rendering issues in form blocks
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
6e911ffd1d Render form styles in twig template correctly
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
1fbed46411 Add service for fixing form API data
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
e13b2c62a9 Add servise for fixing html in form blocks
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
5b5e01465c [MAILPOET-3408] 2021-02-10 14:52:20 +01:00
a88e525e6a Remove the parameter onload from reCaptcha script URL
When is reCaptcha rendered with onload callback,
sometimes the callback isn't defined yet due to race condition

[MAILPOET-3390]
2021-02-04 12:29:57 +01:00
aa450a2ebe Source reCAPTCHA API only when needed
When using a subscription form as an iframe, our CSP catched up that the reCAPTCHA API was included despite MailPoet being configured to use its internal CAPTCHA. The following change will only output the relevant <script> tag when MailPoet uses reCAPTCHA.
2021-01-13 12:08:41 +01:00
b3db3dbcb3 Add PHP constants for form block types
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00
05812de89c Remove image block ids and links in form templates
[MAILPOET-3308]
2021-01-04 10:10:21 +01:00
0362c97067 Fix required after optional warning in form blocks renderer
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
ec26ae15a7 Fix problem of conflicts with other tests [MAILPOET-3334]
[MAILPOET-3334]
2020-12-03 09:33:05 +01:00
8cf27241fc Fix problem of other test executions [MAILPOET-3334]
[MAILPOET-3334]
2020-12-03 09:33:05 +01:00
7d88f3eaea Update form tests to have front end checks [MAILPOET-3334]
[MAILPOET-3334](https://mailpoet.atlassian.net/browse/MAILPOET-3334)
2020-12-03 09:33:05 +01:00
7da2304c4d Prevent form rendering when form settings data are corrupted
[MAILPOET-3294]
2020-11-19 09:55:28 +01:00
79fb1122ec Fix displaying of forms with detailed placement configuration
[MAILPOET-3300]
2020-11-17 13:42:27 +01:00
203c6c43ea Remove bottom padding from class .mailpoet_message
[MAILPOET-3306]
2020-11-17 12:20:53 +01:00
efee40b788 Add padding for messages in form
[MAILPOET-3195]
2020-11-12 09:24:58 +01:00
6ce62c8fe5 Rename Email Address labels across all form templates
[MAILPOET-3210]
2020-10-28 09:18:08 +01:00
0bbe65fab7 Remove default form
[MAILPOET-3238]
2020-10-27 17:34:43 +01:00
9bf4eaa20b Fix widget background images URLs
[MAILPOET-3208]
2020-10-26 12:31:50 +01:00
4cab41ecb2 Fix form template 13 & 14 contents
[MAILPOET-3208]
2020-10-26 12:31:50 +01:00
df1f00f4df Add Test 14 form based templates
[MAILPOET-3208]
2020-10-26 12:31:50 +01:00
b9e5c12697 Add Test 13 form based templates
[MAILPOET-3208]
2020-10-26 12:31:50 +01:00
9ac27e6abb Fix background image for Form Template 17
[MAILPOET-3209]
2020-10-22 16:15:56 +02:00
3c5dc77889 Add Test 18 form based templates
[MAILPOET-3209]
2020-10-22 16:15:56 +02:00
150743a533 Add Test 17 form based templates
[MAILPOET-3209]
2020-10-22 16:15:56 +02:00
9e8ccd2c17 Use native array_column
[MAILPOET-3173]
2020-10-12 10:10:03 +02:00
bf7bd6d2d9 Fix other phpstan errors in lib
[MAILPOET-3146]
2020-10-08 15:59:05 +02:00
055f54ca25 Add color messages to Template 7 family
[MAILPOET-3196]
2020-10-06 17:36:44 +02:00
1fe6216bac Fix styles in Template 1 fixed bar
[MAILPOET-3196]
2020-10-06 17:36:44 +02:00
d874ff0c71 Reset placement settings for Template 11 below pages
[MAILPOET-3190]
2020-10-05 17:24:33 +02:00
f35c8eb72b Add margins reset for form messages wrapper.
[MAILPOET-3190]
2020-10-05 17:24:33 +02:00
6c5a3f32cf Automatically apply line-height when font-size is set in form editor
[MAILPOET-3190]
2020-10-05 17:24:33 +02:00
fe1ca6e946 Cleanup placement settings for a Template 11 Popup
[MAILPOET-3190]
2020-10-05 17:24:33 +02:00