Commit Graph

4591 Commits

Author SHA1 Message Date
Rostislav Wolny
b38bd63bc5 Add unit test for form renderer
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
2e5fd69658 Remove unused variable from form select block
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
f0c1c3e424 Move select block integration test to unit test
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
c1180cd0aa Inject dependencies into form blocks parent
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
d0acad5c3b Inject WPFunctions to FieldNameObfuscator using DI
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
7d596e3407 Extract unrelated date conversion functionality from date block
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
dc5a296133 Inject dateBlock to services which use it
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
6827eb93e6 Add block renderers to DI container
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
d9b9e13a04 Extract rendering of a single block to extra class
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
a759530b9d Refactor recatcha and honeypot rendering to extra private methods
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
73281f0851 Inject settings and style utils to renderer using constructor
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
f559d5f479 Add typehints to form renderer
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
5193d4641c Refactor getBlocks and getBlock methods from static to instance methods
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
37423908d7 Refactor getStyles method from static to instance method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
087a610be5 Refactor renderHTML method from static to instance method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
b8dd243ec1 Refactor renderStyles method from static to instance method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
8e9c41145d Mark renderer method which is not used out of renderer as private
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
2306be6b16 Register form renderer to DI container
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
e72b1ec71d Remove unused public method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Jan Jakeš
fb7e87706b Remove unnecessary usages of $subscriber for preview links
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
b22198f599 Use only one preview link in preview modal
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
369675626c Make endpoint response method private, fix naming
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
4be306230b Fix findOne() method annotation
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
e3cc5a0ec0 Fix and refactor ViewInBrowserControllerTest
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
a3b8aa78a5 Refactor ViewInBrowserController to use methods and descriptive exceptions
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
88d76d5efa Rename Newsletters\ViewInBrowser to ViewInBrowserRenderer
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
edb18399a1 Extract view-in-browser logic to a controller
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
077591ae3c Use DI for Newsletter\ViewInBrowser
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
3cd5af448e Rewrite view-in-browser to always require newsletter ID and hash, refactor
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
ddfc9647dd Use array instead of \stdClass, fix coding style
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
923dc0d1dd Simplify and unify getViewInBroserUrl calls
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
e5fcf5819d Remove 'type' parameter for view-in-browser, always include hash
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
eb1c7673e3 Make $preview = true default for view-in-broser URL
[MAILPOET-2430]
2020-02-13 18:40:37 +00:00
Jan Jakeš
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
Amine Ben hammou
22b9103460 Fix statistics
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
Amine Ben hammou
0069380da6 Add getChildrenCount()
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
Amine Ben hammou
a92af3095b Add constructor to entity
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
Amine Ben hammou
a5679a5dbf Fix code style and small bugs
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
Amine Ben hammou
4fe760f4b1 Improve NewslettersResponseBuilder
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
Amine Ben hammou
65c8ddf6c2 Add WC revenues to NewsletterStatistics
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
Amine Ben hammou
efc2342190 Create StatisticsWooCommercePurchase entity
[MAILPOET-2503]
2020-02-10 18:07:59 +00:00
Pavel Dohnal
fd33a53d50 Fix display under pages
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
Pavel Dohnal
1a1099013e Rename function
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
Pavel Dohnal
f001542b3e Use underscore to unify naming
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
Pavel Dohnal
1c1f0313f0 Add code comment
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
Pavel Dohnal
fd1e8ee915 Display forms only on default post types
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
Pavel Dohnal
c6aa1311ad Refactor
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
Pavel Dohnal
e644675046 Use cache for forms rendering to
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00