Commit Graph

474 Commits

Author SHA1 Message Date
Rostislav Wolny
abc965e143 Add support for colors in column block in form editor
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
8d0d2e168b Add support for custom padding in form column
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
3700003e15 Don't render form column width style if only unit is saved
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
e5c90821be Add support for isStackedOnMobile for columns
[MAILPOET-3564]
2021-08-30 12:10:55 +02:00
Rostislav Wolny
bd41098e5e Fix saving and rendering form columns widths
[MAILPOET-3654]
2021-08-30 12:10:55 +02:00
Jan Lysý
a9621875bd Fix phpstan errors from new version
[MAILPOET-3725]
2021-08-16 15:56:39 +02:00
Brezo Cordero
4120839102 Remove unnecessary casting to string on getNamesOfFormsForSegments
[MAILPOET-3661]
2021-08-16 09:42:08 +02:00
Brezo Cordero
d9186e4230 Prevent deleting a list if attached to a form
[MAILPOET-3661]
2021-08-16 09:42:08 +02:00
Jan Lysý
d9f4a3f1d4 Add filter for displaying form on supported post types
[MAILPOET-3639]
2021-08-11 14:26:06 +02:00
Jan Lysý
e468663d15 Add job_listing into supported post types for forms
[MAILPOET-3639]
2021-08-11 14:26:06 +02:00
Rostislav Wolny
65b834a9ff Update renamed NotCamelCaps rule
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
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