Commit Graph

303 Commits

Author SHA1 Message Date
Rostislav Wolny
2c3932bdd3 Move simple-light template from the engine/package to the free plugin
The additional templates are registered by integrators.
This way, we will be able to use assets like images from MailPoet's CDN
and also various services from the plugins (e.g. CdnAssetsController)
[MAILPOET-6356]
2024-12-20 15:14:30 +01:00
Rostislav Wolny
2e661f8b8e Remove code that is no longer necessary for the templates to work
[MAILPOET-6356]
2024-12-20 15:14:30 +01:00
Jan Lysý
2c7c815e0a Add Site Personalization Tags
A new category of personalization tags can help me with design implementation.
[MAILPOET-6354]
2024-12-18 14:15:05 +01:00
Mustapha Hadid
9c38938a72 Render built-in CAPTCHA in WP register form
[MAILPOET-6325]
2024-12-17 13:56:00 +02:00
Mustapha Hadid
df171fdcc7 Add JSON endpoint for CAPTCHA rendering
To be used inside WP/WC registration form to construct URL for CAPTCHA page.

[MAILPOET-6325]
2024-12-17 13:56:00 +02:00
Mustapha Hadid
720ec613df Use newly created CAPTCHA router for rendering 2024-12-17 13:56:00 +02:00
Mustapha Hadid
3bda992f13 Move CAPTCHA classes under MailPoet\Captcha dir
CAPTCHA usage is no longer tied to MP's subscription form.
2024-12-17 13:56:00 +02:00
Mustapha Hadid
8e608816a9 Rename a class for consistency
Aligns the name with other builtin CAPTCHA classes, which all starts with 'Captcha.'
2024-12-17 13:56:00 +02:00
Mustapha Hadid
57b1635c24 Render built-in CAPTCHA form in dedicated page
Adds a new router for MP's pages:

/?mailpoet_page=subscriptions&mailpoet_router&endpoint=captcha&action=render

A preliminary step to provide builtin CAPTCHA for WP/WC registration form. Currently, builtin CAPTCHA is rendered under subscription-specific params:

/?mailpoet_page=subscriptions&mailpoet_router&endpoint=subscription&action=captcha
2024-12-17 13:56:00 +02:00
Rostislav Wolny
c64e4caf27 Remove styles data added to templates REST API response
We no longer need to send CSS for every template because we use global styles
live from the editor.
[MAILPOET-6335]
2024-12-17 10:36:39 +01:00
Rostislav Wolny
fdc0d15b63 Load user styles in the email editor properly
[MAILPOET-6335]
2024-12-17 10:36:39 +01:00
 Ján Mikláš
2d4d29196f Remove Beamer cron worker
[MAILPOET-6375]
2024-12-13 09:11:12 +01:00
Jan Lysý
829905a0f5 Move Personalizer to a different namespace
[MAILPOET-6328]
2024-11-28 15:01:04 +01:00
Jan Lysý
7d3ba0ae20 Register subscriber Personalization Tags in gutenberg editor
This commit adds a new class which register MailPoet subscribers tags for the new email editor.
[MAILPOET-6328]
2024-11-28 15:01:04 +01:00
Rostislav Wolny
b52304179e Remove Cdn_Asset_Url class
[MAILPOET-6243]
2024-11-22 08:45:46 +01:00
Rostislav Wolny
a3f292f74e Register default patterns to the email editor via hooks
[MAILPOET-6243]
2024-11-22 08:45:46 +01:00
Oluwaseun Olorunsola
58f1af7920 Move Send_Preview_Email class to Engine folder and update tests
MAILPOET-6092
2024-11-18 15:28:31 +01:00
Oluwaseun Olorunsola
6fb8b6df2d Fix phpstan lint errors
MAILPOET-6092
2024-11-18 15:28:31 +01:00
Oluwaseun Olorunsola
2216c065b2 Extend core email editor preview email functionality
With this commit, we override the core email editor send preview mail functionality with MailPoet version of the feature.

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
Mustapha Hadid
5bf95b364b Add ReCaptcha on WordPress registration form
[MAILPOET-6282]
2024-11-18 15:06:03 +01:00
Rostislav Wolny
33e828f2ed Remove the custom editor page
[MAILPOET-6090]
2024-11-15 17:16:21 +02:00
Rostislav Wolny
c71949e326 Render custom editor for mailpoet_email post types
[MAILPOET-6090]
2024-11-15 17:16:21 +02:00
Jan Lysý
b6103b4581 Rename files in email editor package by WP Coding Standard
[MAILPOET-6240]
2024-11-08 14:06:45 +01:00
Jan Lysý
45a8233a1e Copy CdnAssetUrl to email-editor package
For independence of the email-editor package, I copied the class to the package.
[MAILPOET-6216]
2024-09-23 15:16:59 +02:00
Jan Jakes
805c752843 Remove all old models and their setup
[MAILPOET-6142]
2024-08-19 15:29:42 +02:00
Rostislav Wolny
54c21df3a6 Add backend classes for fetching inconsistent data
[MAILPOET-1587]
2024-08-08 15:37:32 +02:00
alex-mpoet
106c7d48f3 Add proxy to load external images for template thumbnails
[MAILPOET-3923]
2024-07-17 16:03:19 +02:00
 Ján Mikláš
88c0836443 Create endpoints to cancel and reschedule tasks
[MAILPOET-5755]
2024-07-04 08:04:34 +02:00
Jan Lysý
635e382cea Update composer packages symfony/validator and symfony/dependency-injection
Integration tests were failing because services were not public, and DI Container was getting them in tests.
[MAILPOET-6101]
2024-06-17 12:38:08 +02:00
Mike Jolley
61f7a9ab68 Force post content to prevent conflicts with woo 2024-05-22 11:36:09 +02:00
Mike Jolley
af1faea7ce Add Powered By MailPoet Block 2024-05-07 12:08:48 +01:00
Jan Jakes
fa6b380266 Add controller with ability to execute automation step progress manually
[MAILPOET-4977]
2024-05-06 12:39:00 +02:00
Mike Jolley
118c0edb72 Create pattern for default content 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
Jan Lysý
52c6f698c9 Add WP CLI command for creating testing email template
[MAILPOET-5971]
2024-04-22 10:32:47 +02:00
David Remer
630b633eed Move campaign data in own class 2024-04-22 10:06:12 +02:00
Mike Jolley
3f2b96f3a6 Introduce block to handle email content 2024-04-10 11:42:50 +02:00
Mike Jolley
0cd85dc1b3 Utility class to get template from file system 2024-04-10 11:42:50 +02:00
Rostislav Wolny
4071175178 Move ContentRenderer to the Renderer/ContentRenderer namespace
[MAILPOET-5798]
2024-03-15 10:28:48 +01:00
Rostislav Wolny
2c5857e89b Split renderer into content renderer and renderer
Content renderer - renders the content of the email post
Renderer - places the content into the email HTML template and generates text version
[MAILPOET-5798]
2024-03-15 10:28:48 +01:00
Brezo Cordero
931fae7691 Add basic capabilities manager class
Backwards compatibility will be handled later

[MAILPOET-5898]
2024-03-13 11:54:37 +01:00
John Oleksowicz
a9140a702e Add backend logic for purchase with tag filter
MAILPOET-4985
2024-03-13 10:24:42 +01:00
John Oleksowicz
bfa3770d99 Add backend logic for purchase by attribute filter
MAILPOET-5467
2024-03-11 10:52:30 +01:00
Rostislav Wolny
8faaa174bc Add post processor for replacing CSS variables with values
[MAILPOET-5918]
2024-03-05 16:03:49 +01:00
Rostislav Wolny
b724ef4ac2 Extract Theme related methods from SettingsController as ThemeController
I want to avoid the SettingsController becoming some kind of a god class
so in this step, I extracted themejson-related stuff to an extra class.

In the future, we should also move methods for manipulating CSS to a helper.
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Jan Lysý
dc96fa2b1c Add postprocessor for replacing mark tag to span
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
Jan Lysý
9b54217049 Rename PreprocessManager class to ProcessManager
As we want to add rendering postprocessing, it's better to use a different name for this class.
[MAILPOET-5809]
2024-02-19 11:18:58 +01:00
Pavel Dohnal
7a0cad8abf Update post status when email is sent
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
Jan Jakes
d6da2af55b Extract newsletter bulk delete logic to a controller
Repositories shouldn't inject other repositories. Also, this solves circular DI dependency.

[MAILPOET-5845]
2024-02-02 12:48:40 +01:00