Commit Graph

217 Commits

Author SHA1 Message Date
Mike Jolley
c3d0f23a3f Fix text decoration 2024-05-22 11:36:09 +02:00
Rostislav Wolny
1fab8a31f3 Ensure the template theme is always an object.
Sending it as an empty array was causing that deepmerge in emailCss hook was returning null.
It was happening for the general-email template which has no theme file
[MAILPOET-5641]
2024-05-22 11:36:09 +02:00
Mike Jolley
c3dcc13f2c Fix renderer styles 2024-05-22 11:36:09 +02:00
Mike Jolley
4100991354 Add link styles 2024-05-22 11:36:09 +02:00
Mike Jolley
3a8813cba7 Move maybeConvertPreset functionality to theme controller 2024-05-22 11:36:09 +02:00
Mike Jolley
dca470f216 strstr 2024-05-22 11:36:09 +02:00
Mike Jolley
18710cd259 Add color panel and handle rendering 2024-05-22 11:36:09 +02:00
Mike Jolley
e6f9564ef0 Fix compatibility with gutenberg plugin 2024-05-17 11:26:44 +02:00
Mike Jolley
48cc71f98f Attempt to fix mock 2024-05-17 11:26:44 +02:00
Mike Jolley
5fac09e343 Remove default content size from template 2024-05-17 11:26:44 +02:00
Mike Jolley
d20b4bb6c9 Add group support w/ support for contentSize 2024-05-17 11:26:44 +02:00
Mike Jolley
4ee81fdd35 Apply border style when border color is defined 2024-05-17 11:26:44 +02:00
Mike Jolley
736068cf57 Audit missing escaping during block rendering 2024-05-15 13:27:52 +02:00
Mike Jolley
af1faea7ce Add Powered By MailPoet Block 2024-05-07 12:08:48 +01:00
Mike Jolley
abea414930 Remove footer logo from renderer 2024-05-07 12:08:48 +01:00
Mike Jolley
21441ecc4a Update tests to match new template markup 2024-05-01 11:15:27 +01:00
Mike Jolley
655302006e Fix union type for php7 2024-05-01 11:15:27 +01:00
Rostislav Wolny
d0f75213fe Slightly polished templates for the demo
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Rostislav Wolny
ac78e63db6 Fix alignment is not applied in the template preview
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Rostislav Wolny
a3575638b1 Make email-general template blank
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Rostislav Wolny
769cf307d2 Save email styles to template theme to template's post meta
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Mike Jolley
d39e946e82 Consistent gaps for header/content 2024-05-01 11:15:27 +01:00
Rostislav Wolny
275ad1cb7a Add support for color.text in styles
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Mike Jolley
c321eb282e Refactor renderers to use template JSON 2024-05-01 11:15:27 +01:00
Rostislav Wolny
73ba5923ef Allow saving background.coloro to mailpoet_email_theme
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Rostislav Wolny
e8352d3dc8 Save template styles to mailpoet_email_theme
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Rostislav Wolny
f2333cddf5 Fix fetching styles for template previews
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Rostislav Wolny
abc9e58c68 Pass template style settings to the client in the template response
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Mike Jolley
118c0edb72 Create pattern for default content 2024-05-01 11:15:27 +01:00
Rostislav Wolny
efafa95ef7 Set the selected template to the post
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Rostislav Wolny
3a3ee4504a Fetch templates data for select template modal via API
[MAILPOET-6014]
2024-05-01 11:15:27 +01:00
Mike Jolley
8bc52a29b9 Inline styles using emogrifier 2024-05-01 11:15:27 +01:00
Mike Jolley
4b411af1ca Update general template to enforce content width 2024-05-01 11:15:27 +01:00
Mike Jolley
21ae45acb6 Enqueue special block styles and inject using emogrifier 2024-05-01 11:15:27 +01:00
Mike Jolley
7874b12bf6 Remove invalid bg property from json 2024-05-01 11:15:27 +01:00
Mike Jolley
4a0f46e3d4 Hide templates from site editor 2024-05-01 11:15:27 +01:00
Mike Jolley
76f6e7cdbd Render using custom template on preview 2024-05-01 11:15:27 +01:00
Mike Jolley
07c974e7c7 Added the ability to edit the general-email template in site editor 2024-05-01 11:15:27 +01:00
Mike Jolley
00e158108f Assign email-general template in editor 2024-05-01 11:15:27 +01:00
Mike Jolley
d90e4dc962 Fix element styles and scrollbars 2024-04-22 12:43:17 +01:00
Mike Jolley
1220641417 Adjust font size tests 2024-04-22 12:43:17 +01:00
Mike Jolley
af92fd9af3 Fix styles in preview 2024-04-22 12:43:17 +01:00
Mike Jolley
67cbfe9656 Type panels fully functional, with previews 2024-04-22 12:43:17 +01:00
Mike Jolley
a8e9b167cb Work on tool panels 2024-04-22 12:43:17 +01:00
Mike Jolley
35b3cd4737 Panel Navigation 2024-04-22 12:43:17 +01:00
Rostislav Wolny
47a4871600 Remove unused SettingsController::convertStylesToString method
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Rostislav Wolny
15e0c3fa4d Use WP's style engine for formatting style arrays to string
[MAILPOET-5798]
2024-04-18 12:45:15 +02:00
Mike Jolley
3f2b96f3a6 Introduce block to handle email content 2024-04-10 11:42:50 +02:00
Mike Jolley
37e901c809 Restore content renderer styles to fix remaining tests 2024-04-10 11:42:50 +02:00
Mike Jolley
fa73d97ae9 Mock getEmailStyles 2024-04-10 11:42:50 +02:00