woocommerce/plugins
Albert Juhé Lluveras b95c15fc2f
Refactor BlockTemplatesController (#44537)
* Cleanup BlockTemplatesController constructor

* Remove unnecessary elseif

* Remove unnecessary param comment

* Move Single Product Template responsibilities to the SingleProductTemplate.php file

* Move Mini-Cart Template reposnibility to the MiniCartTemplate.php file

* Create the other template files

* Code cleanup

* Move template redirect into template files

* PHP cleanup

* Add changelog entry

* Fix PHP tests

* Replace hardcoded 'archive-product' slug with ProductCatalogTemplate::SLUG

* Make it so AbstractTemplatePart extends AbstractTemplate

* Register templates in BlockTemplatesRegistry

* Fix slug usage in AbstractPageTemplate.php

* Add get_template_title and get_template_description methods to AbstractTemplate

* Cleanup

* Make init functions protected in template classes

* Avoid using static constants and methods in BlockTemplatesRegistry

* Avoid using static constants and methods in block template classes

* Fix lint errors

* Fix Single Product classes not being applied

* Fix tests

* Get BlockTemplatesRegistry directly from BlockTemplateUtils to simplify code

* Init BlockTemplatesRegistry and BlockTemplatesController from Bootstrap.php

* Fix wrong static::SLUG call

* Init template classes from BlockTemplatesRegistry

* Revert "Fix wrong static::SLUG call"

This reverts commit 866c9b913a.
2024-02-27 19:05:25 +01:00
..
woo-ai [DOC] Resolve incorrect branch references in Gutenberg links (#44566) 2024-02-15 14:13:28 -03:00
woocommerce Refactor BlockTemplatesController (#44537) 2024-02-27 19:05:25 +01:00
woocommerce-admin [CYS] Update path to intro when exiting the assembler (#44771) 2024-02-27 09:28:24 +01:00
woocommerce-beta-tester [DOC] Resolve incorrect branch references in Gutenberg links (#44566) 2024-02-15 14:13:28 -03:00
woocommerce-blocks Add e2e tests for notice templates (#44612) 2024-02-27 13:46:31 +01:00