Commit Graph

4334 Commits

Author SHA1 Message Date
6827eb93e6 Add block renderers to DI container
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
d9b9e13a04 Extract rendering of a single block to extra class
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
a759530b9d Refactor recatcha and honeypot rendering to extra private methods
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
73281f0851 Inject settings and style utils to renderer using constructor
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
f559d5f479 Add typehints to form renderer
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
5193d4641c Refactor getBlocks and getBlock methods from static to instance methods
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
37423908d7 Refactor getStyles method from static to instance method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
087a610be5 Refactor renderHTML method from static to instance method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
b8dd243ec1 Refactor renderStyles method from static to instance method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
8e9c41145d Mark renderer method which is not used out of renderer as private
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
2306be6b16 Register form renderer to DI container
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
e72b1ec71d Remove unused public method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
fb7e87706b Remove unnecessary usages of $subscriber for preview links
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
b22198f599 Use only one preview link in preview modal
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
369675626c Make endpoint response method private, fix naming
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
4be306230b Fix findOne() method annotation
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
e3cc5a0ec0 Fix and refactor ViewInBrowserControllerTest
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
a3b8aa78a5 Refactor ViewInBrowserController to use methods and descriptive exceptions
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
88d76d5efa Rename Newsletters\ViewInBrowser to ViewInBrowserRenderer
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
edb18399a1 Extract view-in-browser logic to a controller
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
077591ae3c Use DI for Newsletter\ViewInBrowser
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
3cd5af448e Rewrite view-in-browser to always require newsletter ID and hash, refactor
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
ddfc9647dd Use array instead of \stdClass, fix coding style
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
923dc0d1dd Simplify and unify getViewInBroserUrl calls
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
e5fcf5819d Remove 'type' parameter for view-in-browser, always include hash
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
eb1c7673e3 Make $preview = true default for view-in-broser URL
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
2f59ab4c50 Add new tab link to newsletter preview
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
wxa
d41eca48b2 Fix captcha case in comparison [MAILPOET-2698] 2020-02-12 18:11:06 +00:00
wxa
42278347cc Import missing functions from polyfill-mbstring [MAILPOET-2695] 2020-02-11 18:21:48 +00:00
22b9103460 Fix statistics
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
0069380da6 Add getChildrenCount()
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
a92af3095b Add constructor to entity
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
a5679a5dbf Fix code style and small bugs
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
4fe760f4b1 Improve NewslettersResponseBuilder
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
65c8ddf6c2 Add WC revenues to NewsletterStatistics
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
efc2342190 Create StatisticsWooCommercePurchase entity
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
fd33a53d50 Fix display under pages
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
1a1099013e Rename function
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
f001542b3e Use underscore to unify naming
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
1c1f0313f0 Add code comment
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
fd1e8ee915 Display forms only on default post types
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
c6aa1311ad Refactor
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
e644675046 Use cache for forms rendering to
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
d06fc2d00d Append form bellow content
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
d667ad916e Add wp functions
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
492f30c073 Add ability to mock settings in unit tests
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
5917582f46 Create form entity and repository
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
eba441f4c1 Add SubscribersLimitNotice to mailpoet-segments page
[MAILPOET-2626]
2020-01-30 18:43:09 +00:00
f7a1f63a28 Add SubscribersLimitNotice to mailpoet-subscribers page
[MAILPOET-2626]
2020-01-30 18:43:09 +00:00
43873306cd Fix incompatibilities with new version of Swiftmailer
[MAILPOET-2589]
2020-01-30 18:33:48 +00:00