Commit Graph

21 Commits

Author SHA1 Message Date
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
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
Rostislav Wolny
8be034822e Add minimalistic WpPostEntity for fetching basic post data for listing
[MAILPOET-5646]
2024-01-08 12:04:06 +05:00
Jan Jakes
b05bc86223 Remove usages of MailPoet\Tasks\Sending from renderer
[MAILPOET-4375]
2023-11-02 12:53:36 +01: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
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
Sam Najian
ef3c64b85d Adjust use Html2Text from MailPoetVendor namespace
[MAILPOET-5128]
2023-03-15 15:02:32 -03:00
Sam Najian
9b87698819 Immediately pause sendingQueue when a newsletter is corrupted
[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
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 Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00