Commit Graph

4663 Commits

Author SHA1 Message Date
Pavel Dohnal
62c5a8cc84 Rename block attribute
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
Pavel Dohnal
831a865c9e Use explicit code instead of PHP magic
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
Pavel Dohnal
8da7330a8d Use wp class intead of calling functions directly
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
Pavel Dohnal
43f628e580 Add translations
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
Pavel Dohnal
7f2f4e0296 Render form on frontend
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
Pavel Dohnal
9877fed216 Add icon
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
Pavel Dohnal
6befd09423 Render form after it is added to the page
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
Pavel Dohnal
eb4ea14744 Add forms select
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
Pavel Dohnal
261624c2bb Create basic block
[MAILPOET-1798]
2020-02-17 19:20:36 +00:00
Rostislav Wolny
7f631a1166 Fix rendering and assets loading for forms below page/post
[MAILPOET-2706]
2020-02-17 17:49:16 +00:00
Pavel Dohnal
4c86b5468a Reduce beamer frequency
[MAILPOET-2704]
2020-02-13 19:01:46 +00:00
Pavel Dohnal
c7d7d88028 Remove freemail override on MSS activation
[MAILPOET-2594]
2020-02-13 18:57:44 +00:00
Rostislav Wolny
490a72aed3 Allow but ignore not string content in MailPoet\Form\DisplayFormInWPContent
[MAILPOET-2699]
2020-02-13 18:51:24 +00:00
Rostislav Wolny
866167b597 Rename Base to BlockRendererHelper
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
314ce6ed8a Remove renderer render method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
d5bf33c49a Move dateConverter to common utils namespace
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
f8a86bc877 Set FromRenderer service as public
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
f959be13dd Add typehints to form block renderers
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
204af78a56 Add radio buttons input renderer test
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
9238f3fd68 Add test for segments renderer
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
c6ca749cdc Refactor form blocks to use composition instead of inheritance
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
Rostislav Wolny
20926d56b7 Inject form renderer into DisplayFormInWPContent
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
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