Commit Graph

21402 Commits

Author SHA1 Message Date
Rostislav Wolny
ea22c8b2e9 Install the desired theme in the test environment also for multisite.
There is an integration test that is intentionally failing in case
we changed the theme we used for the test.
This commit ensures we activate correct theme also for multisite.
[MAILPOET-5741]
2024-02-28 10:38:10 -06:00
Rostislav Wolny
85e4bb2ce8 Remove an unnecessary class from a column wrapper
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
f2dd786d19 Remove unused method from SettingsController
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
6e887287e5 Remove unused variable from columns block renderer
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
5f2b5e4bd4 Add support for the site theme's color palette
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
e5d11f99d4 Cache WP_Theme_JSON instance
This is a slight improvement to avoid building WP_Theme_JSON instance repeatedly.
[MAILPOET-5741]
2024-02-28 09:01:20 +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
Rostislav Wolny
aa658782fb Move getElementInnerHTML from button to DomDocumentHelper
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
febc070c0f Use dom helper for extracting classes from block HTML
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
d35e498f36 Add getAttributeValueByTagName to dom helper
I'm adding this method to cover use-cases where we need to extract classes
from a block's HTML.
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
875fde56e9 Add colors from palette support to the button
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
299d51effa Add support for palette colors for column and columns
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
5ad27b6038 Adjust the list block renderer to support inlined colors
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
330b4c5a6c Adjust Paragraph block to work with inlined color palette CSS
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
2645d57dcb Adjust Paragraph block to work with inlined color palette CSS
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
Rostislav Wolny
f3392168ca Add color palette classes to CSS for renderer
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
alex-mpoet
6ea4847def Release 4.44.1 2024-02-27 16:43:24 +03:00
Rostislav Wolny
a2a960bf63 Update xdebug to 3.3.1 for PHP 8.x docker images
The older versions fail to compile during the build.
Updating to newest xdebug release fixed the issue.
[MAILPOET-5924]
2024-02-27 12:54:47 +01:00
David Remer
ec35084afd Update templates to be more generic
[MAILPOET-5797]
2024-02-26 15:16:52 +01:00
John Oleksowicz
f8834df510 Add recent clickers prebuilt segment
MAILPOET-5685
2024-02-26 14:27:28 +01:00
John Oleksowicz
703367abe8 Add non-openers prebuilt segment
MAILPOET-5685
2024-02-26 14:27:28 +01:00
John Oleksowicz
b5f51482a4 Add clickers prebuilt segment
MAILPOET-5685
2024-02-26 14:27:28 +01:00
John Oleksowicz
cf6bd853e4 Add first time buyer prebuilt segment
MAILPOET-5685
2024-02-26 14:27:28 +01:00
John Oleksowicz
94512ff543 Add unengaged subscribers prebuilt segment
MAILPOET-5685
2024-02-26 14:27:28 +01:00
John Oleksowicz
78dcd0fa3d Add prebuilt segment for frequently uses coupons
MAILPOET-5685
2024-02-26 14:27:28 +01:00
John Oleksowicz
f3ccb8e39f Add prebuilt segment for used a coupon code
MAILPOET-5685
2024-02-26 14:27:28 +01:00
John Oleksowicz
2401da2883 Update 6 month last engagement date segment
MAILPOET-5760
2024-02-26 12:34:59 +01:00
John Oleksowicz
8572fe619e Simplify and fix Engaged Subscribers segments
It was never correct to include last sending date as engagement.
`lastEngagementDate` automatically includes all the conditions that we
care about.

MAILPOET-5760
2024-02-26 12:34:59 +01:00
David Remer
7dc202561d Prevent false positives in parameter detection
[MAILPOET-5882]
2024-02-26 11:37:31 +01:00
David Remer
81582b80bc Add utm_source_platform parameter
[MAILPOET-5882]
2024-02-26 11:37:31 +01:00
David Remer
0ea6d8d7f4 Test that existing utm_parameters do not get overwritten
[MAILPOET-5882]
2024-02-26 11:37:31 +01:00
David Remer
5759bace76 Fix test
We use now add_query_arg to add the parameter. That means it gets properly sanitized and spaces are replaced by +

[MAILPOET-5882]
2024-02-26 11:37:31 +01:00
David Remer
08ed35f3ea Do not overwrite existing parameters
[MAILPOET-5882]
2024-02-26 11:37:31 +01:00
David Remer
98a62e8bdc Filter the processed link
[MAILPOET-5882]
2024-02-26 11:37:31 +01:00
David Remer
6085ec954f Always add utm_source and utm_medium parameters to links
[MAILPOET-5882]
2024-02-26 11:37:31 +01:00
Jan Jakes
9355587c10 Replace ORM::raw_execute usages with Doctrine connection
[MAILPOET-5761]
2024-02-26 09:22:18 +01:00
Rodrigo Primo
405366160f Deprecate ModelValidator as don't use Paris models anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
27cbe00bd9 Deprecate SubscriberSegment model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
51cf8e0bd2 Deprecate SubscriberCustomField model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
d824fe23e7 Deprecate Subscriber model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
c6524edf25 Deprecate SendingQueue model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
1a0a64cb4e Deprecate Segment model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
9c3b191a57 Deprecate ScheduledTaskSubscriber model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
c5d1715f39 Deprecate ScheduledTask model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
1d69fcb49f Deprecate NewsletterSegment model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
3312d033ef Deprecate Newsletter model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
cb0b4acd33 Deprecate CustomField model as it is not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
1d6a6a7894 Deprecate main Model class as models are not used anymore
[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Rodrigo Primo
4febc024ef Remove integration tests for all the remaining models
The Paris models are not used anymore and will be deprecated in
subsequent commits. Removing the tests for those models.

[MAILPOET-5763]
2024-02-23 17:07:34 +01:00
Jan Lysý
aba54c5116 Fix ampersand character rendered by newsletter:post_title shortcode
[MAILPOET-5724]
2024-02-22 10:00:38 +01:00