Jan Lysý
88c53a727e
Iterate through nested block in rendering Preprocessor
...
[MAILPOET-6212]
2024-09-09 15:31:24 +02:00
Rostislav Wolny
437a4c414e
Make sure the pQuery does not break html comments
...
We had the fix in the renderer, but we do use pQuery also in further processing of the rendered email
e.g. in code where we add GA tracking params to links.
In this commit, I moved the fix directly to the pQuery library so that it is safe to use
later in email code processing.
[MAILPOET-6190]
2024-08-19 13:14:12 +02:00
Jan Lysý
1a80227b03
Fix button width when parent column is smaller
...
[MAILPOET-5732]
2024-08-05 14:09:31 +02:00
Jan Lysý
61e596e9d2
Fix width of button wrapping table
...
[MAILPOET-5732]
2024-08-05 14:09:31 +02:00
Jan Lysý
557e73e4cc
Wrap email button to table for compatibility with Outlook 2023
...
[MAILPOET-5732]
2024-08-05 14:09:31 +02:00
Ján Mikláš
3e6aeb7362
Hide screen reader text in emails, while still accessible by screen readers
...
[MAILPOET-6098]
2024-06-12 11:59:12 +02:00
Jan Jakes
4c44403f6c
Fix checking whether an email should contain an abandoned cart block
...
The problem with the current conditions is that when any of these options doesn't
exist at all, the condition will not pass (= it will render the block, but it shouldn't).
[MAILPOET-5999]
2024-04-08 12:27:53 +02:00
Brezo Cordero
48465a7152
Refactor CapabilitiesManager
...
capabilities is an associate array of new class Capability to make it more generic
[MAILPOET-5938]
2024-03-22 11:01:01 +01:00
Mike Jolley
435f638011
Apply rules on lib dir
2024-03-21 16:57:59 +01:00
Brezo Cordero
e185df3765
Add capability check on logo display
...
Moves existing check to the capability manager and implements backward compatibility for products without capabilities.
[MAILPOET-5898]
2024-03-13 11:54:37 +01:00
Mike Jolley
b124210844
Preserve single quotes
2024-03-13 10:02:00 +01:00
Mike Jolley
7b4b7c362d
Update escape helper to handle and consume esc_attr
2024-03-13 10:02:00 +01: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ý
525c80bac4
Fix PHPStan warnings in lib
...
[MAILPOET-5751]
2023-12-13 11:48:14 +01:00
Jan Jakes
b05bc86223
Remove usages of MailPoet\Tasks\Sending from renderer
...
[MAILPOET-4375]
2023-11-02 12:53:36 +01:00
John Oleksowicz
dae1cb19a8
Use toString
instead of html
...
The content saved to the database already encodes content that needs
encoding, e.g. <script> tags. The problem with pQuery's `html` method is
it decodes everything. By using toString instead, we should be getting
the same contents that were saved to the database.
MAILPOET-5632
2023-10-18 14:40:32 +02:00
Rostislav Wolny
69a87e8146
Apply editor content styles in the email renderer
...
Add proof of concept for applying additional CSS in renderer
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
46a481ec24
Add email renderer and template to the renderer engine
...
In this commit, I copied the code for processing the rendering of emails
from the current renderer.
This will allow us to use different base templates and styles.
Ideally, we should be able to add hooks and reuse the renderer from the engine namespace in
the current renderer.
[MAILPOET-5540]
2023-09-21 14:20:35 +02:00
Rostislav Wolny
68e833f80c
Refactor email editor PHP and JS code to follow automations namespacing
...
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
fc2bbda9a2
Add dummy email body renderer for new editor
...
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
Rostislav Wolny
ba23b5f224
Refactor email body rendering into a separate class
...
[MAILPOET-5365]
2023-08-24 15:44:34 +02:00
David Remer
6d8095d8b5
Render AbandonedCart in transactional and automation emails
...
[MAILPOET-4934]
2023-05-15 08:19:19 +02:00
Rodrigo Primo
5a85390655
Replace remaining calls to utf8_encode() with mb_convert_encoding()
...
In the previous commit, I removed all calls to the deprecated
utf8_encode() that seemed safe to remove. In this commit, I'm replacing
the calls to this function that I'm not sure if are same to remove or
not with mb_convert_encoding().
mb_convert_encoding() requires the extension mbstring to be enabled. It
should be enabled on most PHP install but not all. We are already using
mbstring functions in our code base and we provide a polyfill for PHP
installs where the extension is not enabled
(62bb75ed91/mailpoet/prefixer/composer.json (L25)
).
So it should be safe to use it.
[MAILPOET-4865]
2023-04-28 10:26:03 +02:00
Ján Mikláš
63be8969f3
Improve strings based on translators' feedback
...
[MAILPOET-5201]
2023-04-10 13:03:18 +02:00
Sam Najian
ef3c64b85d
Adjust use Html2Text from MailPoetVendor namespace
...
[MAILPOET-5128]
2023-03-15 15:02:32 -03:00
Sam Najian
6a1e734633
Fix WooCommerce wording
...
[MAILPOET-5098]
2023-03-02 11:30:38 +01:00
Sam Najian
b91f2cde2b
Fix another merge conflict issue preventing correct resuming
...
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
f1a2954dca
Remove duplicate line
...
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
9b87698819
Immediately pause sendingQueue when a newsletter is corrupted
...
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
f92f045142
Fix issue caused by rebasing trunk
...
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
c84a6894ba
Throw and log the issue if coupon was not found when rendering
...
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
93110826e7
Log when processing the queue for corrupt newsletter
...
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Sam Najian
976c374cb7
Catch exception when processing coupon block throws
...
When processing coupon block throws, the exception is
caught, custom exception is thrown and the newsletter status
is updated
[MAILPOET-4983]
2023-03-01 17:46:22 +01:00
Oluwaseun Olorunsola
3b9cbbfc61
Remove Coupon block feature flag
...
MAILPOET-4978
2023-02-23 16:59:15 +01:00
Jan Lysý
83b14013ec
Add coupon block unit test
...
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00
Jan Lysý
cd9904de7d
Fix using code instead of couponCode read by id
...
[MAILPOET-4984]
2023-02-01 11:21:49 +01:00
Jan Lysý
1730578a23
Use coupon id instead of text
...
[MAILPOET-4761]
2023-01-30 09:36:21 +01:00
Sam Najian
41b23b24b9
Add Coupon block feature flag
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
e4c9d037b1
Add missing strict_types to Coupon.php
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
31201eb3cc
Generate coupon code for each coupon block missing the code
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
f551d4388c
Add CouponPreprocessor to create coupons before rendering
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
Sam Najian
bb7775f87b
Render Coupon block in email body
...
[MAILPOET-4678]
2023-01-23 13:31:34 +01:00
David Remer
5e71d94b62
Use website language for newsletters
...
[MAILPOET-3487]
2022-12-07 11:53:48 +01:00
David Remer
8bb4338627
Inject WPFunctions
...
[MAILPOET-3487]
2022-12-07 11:53:48 +01:00
Jan Jakes
926620e8f8
Ignore strict types rule in all existing files that don't have it
...
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Oluwaseun Olorunsola
e3f13dd986
Add tracking for MailPoet logo in free plan emails
...
MAILPOET-4543
2022-08-18 12:29:29 +02:00
Sam Najian
35d0d03069
Make Renderer/Renderer.php method expect NewsletterEntity
...
[MAILPOET-4360]
2022-07-14 13:13:47 +02:00
Rodrigo Primo
378156ac69
Fix nofollow tag in the preview newsletter page
...
Commit 1a9b2ed798
added a `follow` tag to
the preview newsletter page by mistake. The intention was to add a
`nofollow` tag. This commit fixes it.
[MAILPOET-4263]
2022-07-11 14:38:41 +02:00
Rodrigo Primo
2721c7919e
Add robots meta tag with noindex/nofollow to preview newsletter page
...
[MAILPOET-4263]
2022-07-11 12:31:54 +02:00
Jan Lysý
8d095886d4
Remove old model constant
...
[MAILPOET-4141]
2022-06-20 12:00:47 +02:00