Commit Graph

243 Commits

Author SHA1 Message Date
314ce6ed8a Remove renderer render method
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
d5bf33c49a Move dateConverter to common utils namespace
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
f959be13dd Add typehints to form block renderers
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
204af78a56 Add radio buttons input renderer test
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
9238f3fd68 Add test for segments renderer
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
c6ca749cdc Refactor form blocks to use composition instead of inheritance
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
20926d56b7 Inject form renderer into DisplayFormInWPContent
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
b38bd63bc5 Add unit test for form renderer
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
2e5fd69658 Remove unused variable from form select block
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
f0c1c3e424 Move select block integration test to unit test
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
c1180cd0aa Inject dependencies into form blocks parent
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
d0acad5c3b Inject WPFunctions to FieldNameObfuscator using DI
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
7d596e3407 Extract unrelated date conversion functionality from date block
[MAILPOET-2665]
2020-02-13 18:42:55 +00:00
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
e72b1ec71d Remove unused public method
[MAILPOET-2665]
2020-02-13 18:42:55 +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
5917582f46 Create form entity and repository
[MAILPOET-2639]
2020-02-05 18:36:39 +00:00
b77447103c Fix today preselect in date field
[MAILPOET-2652]
2020-01-27 10:34:15 +00:00
ffc82eff69 Fix custom select rendering
[MAILPOET-2652]
2020-01-27 10:34:15 +00:00
447e01b0aa Remove new form editor feature flag
[MAILPOET-2549]
2020-01-27 10:08:31 +00:00
6d683a41b0 Fix form widget rendering
Originally the extract produced snake cased variables.
[MAILPOET-2654]
2020-01-22 12:35:47 +00:00
2d957c3836 Remove redundant keyword
[MAILPOET-2632]
2020-01-14 18:47:39 +00:00
685b4885c0 Exclude WordPress and WooCommerce variables from camel case conversion
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
d0292f8624 Convert variable names to camel case in PHPDoc
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
8c848cfa28 Convert property names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
03e8dd860c Fix font-weight css property value
[MAILPOET-2592]
2020-01-09 09:20:33 +01:00
58a48ea36a Change default labels style in form custom CSS
[MAILPOET-2592]
2020-01-09 09:20:33 +01:00
9e5b7b0320 Rename public.css to mailpoet-public.css
[MAILPOET-2482]
2020-01-08 15:36:25 +00:00
43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
a9fb644d44 Render label only if not hidden
[MAILPOET-2453]
2019-12-19 10:24:41 +01:00
0e964de6d4 Move nesbot/carbon to vendor-prefixed
[MAILPOET-2560]
2019-12-15 21:55:48 +00:00
fa4ecaa445 Set full width text inputs as a default for newly created forms
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
effd37a0ad Refactor Form\Utils\Styles to injectable service
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00