Commit Graph

145 Commits

Author SHA1 Message Date
Oluwaseun Olorunsola
d83c179f5c Fix code lint style errors
MAILPOET-6092
2024-11-18 15:28:31 +01:00
Oluwaseun Olorunsola
a9c2c3ca1d Add basic email sending support with wp_mail
MAILPOET-6092
2024-11-18 15:28:31 +01:00
Oluwaseun Olorunsola
ee967015dc Add Send_Preview_Email class for MailPoet email editor
MAILPOET-6092
2024-11-18 15:28:31 +01:00
Oluwaseun Olorunsola
87676ccdb6 Add base route for sending preview email
MAILPOET-6092
2024-11-18 15:28:31 +01:00
Jan Lysý
0d94f42452 Fix typo in CodeSniffer config
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
9d65e2dbe8 Deactivate the rule about file_get_contents
I temporarily deactivated the rule because the change can be more complex.
WP_Filesystem cannot be used because we load files in constructors.
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
65948c8033 Add mock esc_html into unit test bootstrap
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
853bf6fcfe Migrate integration tests in Integrations directory to WordPress Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
e69666776d Migrate integration tests in Engine directory to WordPress Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
0c781be938 Migrate integration tests bootstrap file to WordPress Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
c6f6eeef53 Add excluded rule for tests to avoid repetition
Our tests use method _after and _before, so we would need to add ignore to each usage.
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
d0c8cde59c Migrate tests/unit folder to WordPress Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
d0f8d6f83e Migrate tests/unit/Integrations folder to WordPress Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
906e80a6d7 Migrate tests/unit/Engine folder to WordPress Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
be63af8102 Migrate tests/_support folder to WordPress Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
113dbaae2d Change coding style in email editor tests to WordPress
This commit contains automated changes made with phpcbf command from CodeSniffer package.

[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
8d7f26c42d Add CodeSniffer config file based on WordPress standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
ef8f122bb7 Migrate email editor Validator to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
fc7e06730b Migrate email editor dom document helper class to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
eccf8ce0a2 Migrate email editor core initializer class to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
d82f8ea9fa Migrate email editor Core block render classes to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
e850028a1c Migrate email editor cdn-asset-url class to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
5ad66a7db6 Migrate last email editor files from engine to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
9653fc756b Migrate email editor contentRenderer classes from to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
6e2a2d4b7e Migrate email editor preprocess files to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
ef6ecb8159 Migrate email editor postprocessor files to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
df6f7198a6 Migrate email editor flex-layout-renderer class to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
f5e54abecf Migrate email editor templates class to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
a31857ffee Migrate email editor template-preview class to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
0a105dbe81 Migrate email editor utils class to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
f050020d67 Migrate email editor classes Engine\Patterns directory to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
062f504e14 Migrate email editor email-editor to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
37b3cfbbc2 Migrate email editor email-api-controller to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
734b70489d Migrate email editor email-styles-schema to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
c83ec3c8d7 Migrate email editor settings-controller to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
fba5482cd2 Migrate email editor theme-controller to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
ecbd2f150d Migrate email editor Contaienr to WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
554adccce3 Change coding style in email editor package to WordPress
This commit contains automated changes made with phpcbf command from CodeSniffer package.
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
b6103b4581 Rename files in email editor package by WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Oluwaseun Olorunsola
4f3209b670 Remove unnecessary renderer block
We don't need a special renderer for the spacer block as the fallback renderer can handle its functionality

MAILPOET-6237
2024-11-05 19:35:34 +01:00
Oluwaseun Olorunsola
ad58f6213e Add Spacer block support
MAILPOET-6237
2024-11-05 19:35:34 +01:00
Oluwaseun Olorunsola
7b750ece51 Update readme documentations
MAILPOET-6255
2024-11-05 09:09:44 +01:00
Rostislav Wolny
e77f075d75 Fix border-radius support in the group block.
[MAILPOET-6280]
2024-11-04 11:30:35 +01:00
Rostislav Wolny
2d0621d386 Render caption html conditionally
In case the image has no caption we don't need to render the markup wrapping the caption.
[MAILPOET-6280]
2024-11-04 11:30:35 +01:00
Rostislav Wolny
9829c96caa Add border support to the image renderer
This commit fixes how the border is applied in an image block.
- the border is applied to the wrapping table cell instead of the image
- we need to move classes related to border styles to the cell so that related styles are inlined in the proper place
- the caption is put in an additional table so that it doesn't extend the border when it is longer than the image
- rounded image styles are now applied to the wrapper and the image
[MAILPOET-6280]
2024-11-04 11:30:35 +01:00
Rostislav Wolny
10ad46239d Fix border rendering on mobiles for columns
[MAILPOET-6280]
2024-11-04 11:30:35 +01:00
Rostislav Wolny
5044f8f276 Add border support for paragraph and heading blocks
[MAILPOET-6280]
2024-11-04 11:30:35 +01:00
Rostislav Wolny
b83ecbbe70 Disable margin globally
We don't support margin in the renderer.
[MAILPOET-6280]
2024-11-04 11:30:35 +01:00
Rostislav Wolny
3f6ca7517a Fix unit tests and potential ensure email_attrs being set
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00
Rostislav Wolny
c2ef0ac2ea Remove EMAIL_WIDTH constant from SettingsController
Email width is set in theme JSON so this was a duplicity.
[MAILPOET-6249]
2024-10-25 17:47:58 +02:00