From 0e592e3349d398caef29fa8835d73753283a9ce6 Mon Sep 17 00:00:00 2001 From: Gerhard Date: Tue, 12 Oct 2021 16:23:28 +0200 Subject: [PATCH] Add output methods for search promotion banners --- includes/admin/class-wc-admin-addons.php | 55 ++++++++++++++++++- .../admin/views/html-admin-page-addons.php | 5 +- 2 files changed, 55 insertions(+), 5 deletions(-) diff --git a/includes/admin/class-wc-admin-addons.php b/includes/admin/class-wc-admin-addons.php index dce49c40270..64637af135d 100644 --- a/includes/admin/class-wc-admin-addons.php +++ b/includes/admin/class-wc-admin-addons.php @@ -523,6 +523,37 @@ class WC_Admin_Addons { +
+
+ <?php echo esc_attr( $promotion['image_alt'] ); ?> +
+
+

+

+ +
+
+
@@ -681,6 +710,26 @@ class WC_Admin_Addons { + + + + url ), + admin_url( $action->url ), $action->nonce ); } diff --git a/includes/admin/views/html-admin-page-addons.php b/includes/admin/views/html-admin-page-addons.php index e37f40cbf30..55be5dd4dda 100644 --- a/includes/admin/views/html-admin-page-addons.php +++ b/includes/admin/views/html-admin-page-addons.php @@ -81,9 +81,10 @@ $current_section_name = __( 'Browse Categories', 'woocommerce' ); is_wc_admin_active() ) { - + foreach ( $promotions as $promotion ) { + WC_Admin_Addons::output_search_promotion_block( $promotion ); + } } ?>