Rostislav Wolny
0e10e6ed24
Use isset instead ?? operator in button renderer
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
9522a55460
Apply font color from the preprocessor in the button block
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
70273c626d
Add Button renderer test
...
This commit adds a button renderer test and fixes a couple of issues
found when working on the test
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
8054088852
Unify styles processing in button renderer with other blocks
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
7329826d39
Skip rendering of empty buttons
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
becb5243d5
Remove witdh:100% from columns wrapper
...
This was causing incorrect width in cases when $layoutPaddingLeft
and $layoutPaddingRight were set. Box-sizing doesn't have proper
support in clients, so I tried to fix it by removing 100% of the width.
According to tests in AcidEmail, this shouldn't break anything.
This was introduced when we added full-width alignment.
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
820af6454b
Extract flex layout rendering functionality to an extra class
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
486f497290
Apply text-decoration in the button renderer from preprocessor
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
9d35863fd0
Render buttons with borders with the correct width
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
499db0034c
Remove forgotten bdumps from image block
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
a359c1e392
Improve font styles rendering in button
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
bfa7b509cc
Add buttons block rendering
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
195756c0c7
Add renderer for core/button block
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
3a74c1c4a0
Enable blocks and register dummy button/buttons renderers
...
[MAILPOET-5644]
2024-01-08 09:21:16 +01:00
Rostislav Wolny
d54847ce83
Refactor construction of NewsletterEntity when creating an email in the new editor
...
When we create a new email in the new editor we ensure there is
also an associated NewsletterEntity.
This commit improves this functionality by replacing custom code with
NewsletterSaveController, which ensures that the sender name and address are set.
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Rostislav Wolny
8be034822e
Add minimalistic WpPostEntity for fetching basic post data for listing
...
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Jan Lysý
df9c3f5890
Add comments about color variables conversion
...
[MAILPOET-5642]
2024-01-05 10:17:23 +01:00
Jan Lysý
d4e2836a9d
Unify typehint by BlockRenderer interface
...
[MAILPOET-5642]
2024-01-05 10:17:23 +01:00
Jan Lysý
61892595ee
Fix blocks width across email clients
...
[MAILPOET-5642]
2024-01-05 10:17:23 +01:00
Jan Lysý
efd9abcf76
Skip width style setting in blocks paragraph and heading
...
[MAILPOET-5642]
2024-01-05 10:17:23 +01:00
Jan Lysý
61e8d2d200
Implement rendering block core/paragraph
...
[MAILPOET-5642]
2024-01-05 10:17:23 +01:00
Jan Lysý
3228ae5794
Fix stretch alignment for the column/core block
...
[MAILPOET-5642]
2024-01-05 10:17:23 +01:00
Jan Lysý
445f7545a1
Reuse function from SettingsController in Heading renderer
...
[MAILPOET-5642]
2024-01-05 10:17:23 +01:00
Jan Lysý
832ffc1568
Add layout left and right padding to columns block
...
Because side paddings were removed from template.html it was necessary add them to the columns block to correct compatibility across different email client.
[MAILPOET-5688]
2023-12-21 13:04:10 +01:00
Jan Lysý
2ce746a156
Fix getting style attribute in the image block
...
In some cases wasn't the style attribute set and it caused type error in calling method for parsing styles.
[MAILPOET-5688]
2023-12-21 13:04:10 +01:00
Jan Lysý
7792331999
Add rendering improvements for Outlook
...
[MAILPOET-5705]
2023-11-27 12:54:30 +01:00
Jan Lysý
abf1ef9d7f
Implements image block renderer
...
[MAILPOET-5705]
2023-11-27 12:54:30 +01:00
Jan Lysý
328fcfa260
Move method for composing styles to SettingsController
...
To avoid repetition I decided to move this method to better place.
[MAILPOET-5705]
2023-11-27 12:54:30 +01:00
Jan Lysý
8bab89b4e8
Add default image block renderer
...
[MAILPOET-5705]
2023-11-27 12:54:30 +01:00
Oluwaseun Olorunsola
0d771a7fc5
Add support for creating styles from block attributes e.g., text alignment styles
...
MAILPOET-5643
2023-11-17 09:49:06 +01:00
Oluwaseun Olorunsola
667da710b1
Merge updates in trunk
...
MAILPOET-5643
2023-11-17 09:49:06 +01:00
Oluwaseun Olorunsola
1a6caac290
Add heading block support to email editor
...
MAILPOET-5643
2023-11-17 09:49:06 +01:00
Jan Lysý
5ed3656032
Add vertical-alignment style to core/column renderer
...
[MAILPOET-5690]
2023-11-13 06:58:52 +01:00
Jan Lysý
db13c4ba25
Unify wrapping method name
...
[MAILPOET-5645]
2023-11-11 09:38:35 +04:00
Jan Lysý
f96b02146c
Refactor paragraph renderer to table
...
Because we are facing issues with Outlook, we decided to use table design when it's possible
[MAILPOET-5645]
2023-11-11 09:38:35 +04:00
Jan Lysý
60fd4b6c8a
Add List block renderer
...
[MAILPOET-5645]
2023-11-11 09:38:35 +04:00
Rostislav Wolny
219a12578a
Simplify API for registering email block renderers
...
This commit makes the cleanup of filters for block rendering in emails automatic.
[MAILPOET-5645]
2023-11-10 08:44:08 +01:00
Jan Lysý
5644cab9e3
Refactor BlocksRegistry to pass dependencies as an argument
...
For better extensibility of 3rd party developers, I refactored to pass Settings Controller as an argument.
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
a0b57b3f3f
Unify columns height
...
Because we prefer the identical height of core/column with different content lengths,
I used a wrapper layer that helps to solve it.
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
c2cb18ef37
Use render_block_* hooks for rendering changed blocks
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
4f9e3723c9
Implement rendering column, columns and paragraph
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Jan Lysý
0ac72d43e6
Merge StylesController to SettingsController
...
[MAILPOET-5591]
2023-11-09 09:06:33 +01:00
Rostislav Wolny
e9a5658be5
Cleanup post editor approach code
...
[MAILPOET-5637]
2023-10-17 16:06:06 +02:00
Jan Lysý
eace314009
Use wpLocalizeScript instead of wpAddInlineScript in Email editor
...
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
Jan Lysý
5fce014a60
Fix email dataSchema in EmailApiController
...
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
Jan Lysý
e5e04e63e2
Add sending email after click on button
...
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
Jan Lysý
de66b3fea1
Add JS variables for email editor
...
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
Jan Lysý
226317f55c
Fix creating newsletter in EmailEditor
...
After removing temporary fix a hash was missing for newsletter created via EmailEditor.php
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
Jan Lysý
65b6a129ae
Add email preview URL to EmailApiController response
...
[MAILPOET-5563]
2023-10-11 11:26:22 +02:00
Jan Jakes
49dd627a76
Update references to renamed files
...
[MAILPOET-4938]
2023-10-02 13:05:20 +02:00