Commit Graph

463 Commits

Author SHA1 Message Date
Jan Lysý
e7a0355ba1 Create FormMessageController
[MAILPOET-3643]
2021-06-07 14:14:50 +02:00
Pavel Dohnal
9174bbb6fd Refactor form bulk action to docrine
[MAILPOET-3630]
2021-06-02 14:09:12 +02:00
Pavel Dohnal
13734f3e4e Use a filter for form display
[MAILPOET-3385]
2021-05-24 12:44:12 +02:00
Rostislav Wolny
e8c7b7e6b8 Fix form custom CSS rendering
[MAILPOET-3596]
2021-05-05 09:43:35 +02:00
Pavel Dohnal
65c9bad64c Fix pre-selecting date value
[MAILPOET-3470]
2021-04-15 15:47:57 +02:00
Rodrigo Primo
5ceb084c64 Refactor Forms::delete() to use Doctrine
[MAILPOET-3039]
2021-04-12 13:35:14 +02:00
Rodrigo Primo
49f0c054fd Refactor Forms::restore() to use Doctrine
[MAILPOET-3039]
2021-04-12 13:35:14 +02:00
Rodrigo Primo
e054f05222 Refactor Forms::trash() to use Doctrine
[MAILPOET-3039]
2021-04-12 13:35:14 +02:00
Rodrigo Primo
b3f82cccc5 Refactor Forms::duplicate() to use Doctrine instead of Paris
[MAILPOET-3038]
2021-04-07 09:48:53 +02:00
Rodrigo Primo
4b5f044f6b Use __() instead of \MailPoet\WP\Functions::__()
[MAILPOET-3036]
2021-03-31 11:37:07 +02:00
Rodrigo Primo
5f262e6b04 Update comment to explain empty methods
[MAILPOET-3036]
2021-03-31 11:37:07 +02:00
Rodrigo Primo
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
Danny Cooper
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
Rostislav Wolny
438c9a7469 Alter data validation regexp so that is not malformed by wptexturize
[MAILPOET-3440]
2021-03-01 10:08:08 +01:00
Rostislav Wolny
6bf62ee90a Fix links in form checkbox label
[MAILPOET-3433]
2021-02-17 11:00:15 +01:00
Rostislav Wolny
76279d3148 Fix form input validations
[MAILPOET-3415]
2021-02-15 19:05:14 +01:00
Rostislav Wolny
6a63ac26c7 Fix naming sanitiser > sanitizer
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
Rostislav Wolny
6d074e37e9 Fix image caption rendering in for editor
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
Rostislav Wolny
c1aef842d2 Fix rendering issues in form blocks
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
Rostislav Wolny
6e911ffd1d Render form styles in twig template correctly
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
Rostislav Wolny
1fbed46411 Add service for fixing form API data
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
Rostislav Wolny
e13b2c62a9 Add servise for fixing html in form blocks
[MAILPOET-3415]
2021-02-15 13:30:08 +01:00
Pavel Dohnal
5b5e01465c [MAILPOET-3408] 2021-02-10 14:52:20 +01:00
Jan Lysý
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
Lunar
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
Rostislav Wolny
b3db3dbcb3 Add PHP constants for form block types
[MAILPOET-3297]
2021-01-04 11:32:28 +01:00
Rostislav Wolny
05812de89c Remove image block ids and links in form templates
[MAILPOET-3308]
2021-01-04 10:10:21 +01:00
Rostislav Wolny
0362c97067 Fix required after optional warning in form blocks renderer
[MAILPOET-3296]
2020-12-07 11:36:01 +01:00
Veljko V
ec26ae15a7 Fix problem of conflicts with other tests [MAILPOET-3334]
[MAILPOET-3334]
2020-12-03 09:33:05 +01:00
Veljko V
8cf27241fc Fix problem of other test executions [MAILPOET-3334]
[MAILPOET-3334]
2020-12-03 09:33:05 +01:00
Veljko V
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
Rostislav Wolny
7da2304c4d Prevent form rendering when form settings data are corrupted
[MAILPOET-3294]
2020-11-19 09:55:28 +01:00
Rostislav Wolny
79fb1122ec Fix displaying of forms with detailed placement configuration
[MAILPOET-3300]
2020-11-17 13:42:27 +01:00
Jan Lysý
203c6c43ea Remove bottom padding from class .mailpoet_message
[MAILPOET-3306]
2020-11-17 12:20:53 +01:00
Jan Lysý
efee40b788 Add padding for messages in form
[MAILPOET-3195]
2020-11-12 09:24:58 +01:00
Jan Lysý
6ce62c8fe5 Rename Email Address labels across all form templates
[MAILPOET-3210]
2020-10-28 09:18:08 +01:00
Rostislav Wolny
0bbe65fab7 Remove default form
[MAILPOET-3238]
2020-10-27 17:34:43 +01:00
Rostislav Wolny
9bf4eaa20b Fix widget background images URLs
[MAILPOET-3208]
2020-10-26 12:31:50 +01:00
Rostislav Wolny
4cab41ecb2 Fix form template 13 & 14 contents
[MAILPOET-3208]
2020-10-26 12:31:50 +01:00
Rostislav Wolny
df1f00f4df Add Test 14 form based templates
[MAILPOET-3208]
2020-10-26 12:31:50 +01:00
Rostislav Wolny
b9e5c12697 Add Test 13 form based templates
[MAILPOET-3208]
2020-10-26 12:31:50 +01:00
Rostislav Wolny
9ac27e6abb Fix background image for Form Template 17
[MAILPOET-3209]
2020-10-22 16:15:56 +02:00
Rostislav Wolny
3c5dc77889 Add Test 18 form based templates
[MAILPOET-3209]
2020-10-22 16:15:56 +02:00
Rostislav Wolny
150743a533 Add Test 17 form based templates
[MAILPOET-3209]
2020-10-22 16:15:56 +02:00
Pavel Dohnal
9e8ccd2c17 Use native array_column
[MAILPOET-3173]
2020-10-12 10:10:03 +02:00
Rostislav Wolny
bf7bd6d2d9 Fix other phpstan errors in lib
[MAILPOET-3146]
2020-10-08 15:59:05 +02:00
Rostislav Wolny
055f54ca25 Add color messages to Template 7 family
[MAILPOET-3196]
2020-10-06 17:36:44 +02:00
Rostislav Wolny
1fe6216bac Fix styles in Template 1 fixed bar
[MAILPOET-3196]
2020-10-06 17:36:44 +02:00
Rostislav Wolny
d874ff0c71 Reset placement settings for Template 11 below pages
[MAILPOET-3190]
2020-10-05 17:24:33 +02:00