From b3b4e92fe1728381e927674ff6c2f10a8c95a469 Mon Sep 17 00:00:00 2001 From: Claudio Sanches Date: Tue, 14 Jan 2020 12:20:46 -0300 Subject: [PATCH] Moved HTML to a single file --- ...ass-wc-integration-maxmind-geolocation.php | 22 +--------------- .../views/html-admin-options.php | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 21 deletions(-) create mode 100644 includes/integrations/maxmind-geolocation/views/html-admin-options.php diff --git a/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-geolocation.php b/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-geolocation.php index fc33f0ed222..fb2181bc89a 100644 --- a/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-geolocation.php +++ b/includes/integrations/maxmind-geolocation/class-wc-integration-maxmind-geolocation.php @@ -81,27 +81,7 @@ class WC_Integration_MaxMind_Geolocation extends WC_Integration { public function admin_options() { parent::admin_options(); - $database_path = esc_attr( $this->database_service->get_database_path() ); - $label = esc_html__( 'Database File Path', 'woocommerce' ); - $description = esc_html__( 'The path to the MaxMind database file that was downloaded by the integration.', 'woocommerce' ); - - // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped - echo << - - - - - -
- {$label} - -

{$description}

-
- - - -INPUT; + include dirname( __FILE__ ) . '/views/html-admin-options.php'; } /** diff --git a/includes/integrations/maxmind-geolocation/views/html-admin-options.php b/includes/integrations/maxmind-geolocation/views/html-admin-options.php new file mode 100644 index 00000000000..2ca14f399dd --- /dev/null +++ b/includes/integrations/maxmind-geolocation/views/html-admin-options.php @@ -0,0 +1,25 @@ + + + + + + + +
+ + +
+ + +

+
+