From 792e32056c60636d65279942cd6e4e183d341bac Mon Sep 17 00:00:00 2001 From: haszari Date: Tue, 12 Feb 2019 16:10:21 +1300 Subject: [PATCH] in-product discovery - render container for product-list suggestions --- .../class-wc-admin-list-table-products.php | 21 +++++++++++++++++++ .../marketplace-suggestions/container.php | 18 ++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 templates/marketplace-suggestions/container.php diff --git a/includes/admin/list-tables/class-wc-admin-list-table-products.php b/includes/admin/list-tables/class-wc-admin-list-table-products.php index b87f8277a93..187c69a52e2 100644 --- a/includes/admin/list-tables/class-wc-admin-list-table-products.php +++ b/includes/admin/list-tables/class-wc-admin-list-table-products.php @@ -51,6 +51,27 @@ class WC_Admin_List_Table_Products extends WC_Admin_List_Table { echo '' . esc_html__( 'Create your first product!', 'woocommerce' ) . ''; echo '' . esc_html__( 'Import products from a CSV file', 'woocommerce' ) . ''; echo ''; + + $this->render_marketplace_suggestion_empty_state(); + } + + + /** + * Render container for marketplace suggestions. + */ + protected function render_marketplace_suggestion_empty_state() { + wc_get_template( + 'marketplace-suggestions/container.php', + array( + 'context' => 'products-list-empty-header', + ) + ); + wc_get_template( + 'marketplace-suggestions/container.php', + array( + 'context' => 'products-list-empty-body', + ) + ); } /** diff --git a/templates/marketplace-suggestions/container.php b/templates/marketplace-suggestions/container.php new file mode 100644 index 00000000000..4ac0390cf57 --- /dev/null +++ b/templates/marketplace-suggestions/container.php @@ -0,0 +1,18 @@ + +
+