From 59841e21e4a6ec85d208b66d55e2c1a50d0e60ee Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Mon, 13 Nov 2017 11:19:24 +0300 Subject: [PATCH] Fix customization (#24) * Fix custom directory * Rename plugin directory --- retailcrm/include-custom/.gitkeep | 0 retailcrm/index.php | 1 - .../api/class-wc-retailcrm-client-v3.php | 0 .../api/class-wc-retailcrm-client-v4.php | 0 .../api/class-wc-retailcrm-client-v5.php | 0 .../api/class-wc-retailcrm-exception-curl.php | 0 .../api/class-wc-retailcrm-exception-json.php | 0 .../include/api/class-wc-retailcrm-proxy.php | 5 +- .../api/class-wc-retailcrm-request.php | 0 .../api/class-wc-retailcrm-response.php | 0 .../include/api}/index.php | 0 .../include/class-wc-retailcrm-base.php | 0 .../include/class-wc-retailcrm-customers.php | 0 .../include/class-wc-retailcrm-history.php | 0 .../include/class-wc-retailcrm-icml.php | 0 .../class-wc-retailcrm-inventories.php | 0 .../include/class-wc-retailcrm-orders.php | 0 .../api => woo-retailcrm/include}/index.php | 0 .../include => woo-retailcrm}/index.php | 0 {retailcrm => woo-retailcrm}/retailcrm.php | 89 ++++++++++++++----- {retailcrm => woo-retailcrm}/uninstall.php | 0 21 files changed, 71 insertions(+), 24 deletions(-) delete mode 100644 retailcrm/include-custom/.gitkeep delete mode 100644 retailcrm/index.php rename {retailcrm => woo-retailcrm}/include/api/class-wc-retailcrm-client-v3.php (100%) rename {retailcrm => woo-retailcrm}/include/api/class-wc-retailcrm-client-v4.php (100%) rename {retailcrm => woo-retailcrm}/include/api/class-wc-retailcrm-client-v5.php (100%) rename {retailcrm => woo-retailcrm}/include/api/class-wc-retailcrm-exception-curl.php (100%) rename {retailcrm => woo-retailcrm}/include/api/class-wc-retailcrm-exception-json.php (100%) rename {retailcrm => woo-retailcrm}/include/api/class-wc-retailcrm-proxy.php (97%) rename {retailcrm => woo-retailcrm}/include/api/class-wc-retailcrm-request.php (100%) rename {retailcrm => woo-retailcrm}/include/api/class-wc-retailcrm-response.php (100%) rename {retailcrm/include-custom => woo-retailcrm/include/api}/index.php (100%) rename {retailcrm => woo-retailcrm}/include/class-wc-retailcrm-base.php (100%) rename {retailcrm => woo-retailcrm}/include/class-wc-retailcrm-customers.php (100%) rename {retailcrm => woo-retailcrm}/include/class-wc-retailcrm-history.php (100%) rename {retailcrm => woo-retailcrm}/include/class-wc-retailcrm-icml.php (100%) rename {retailcrm => woo-retailcrm}/include/class-wc-retailcrm-inventories.php (100%) rename {retailcrm => woo-retailcrm}/include/class-wc-retailcrm-orders.php (100%) rename {retailcrm/include/api => woo-retailcrm/include}/index.php (100%) rename {retailcrm/include => woo-retailcrm}/index.php (100%) rename {retailcrm => woo-retailcrm}/retailcrm.php (79%) rename {retailcrm => woo-retailcrm}/uninstall.php (100%) diff --git a/retailcrm/include-custom/.gitkeep b/retailcrm/include-custom/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/retailcrm/index.php b/retailcrm/index.php deleted file mode 100644 index e71af0e..0000000 --- a/retailcrm/index.php +++ /dev/null @@ -1 +0,0 @@ -logger = new WC_Logger(); @@ -50,7 +53,7 @@ if ( ! class_exists( 'WC_Retailcrm_Proxy' ) ) : public function __call($method, $arguments) { - if (!isset($this->retailcrm)) { + if (!$this->retailcrm) { return; } diff --git a/retailcrm/include/api/class-wc-retailcrm-request.php b/woo-retailcrm/include/api/class-wc-retailcrm-request.php similarity index 100% rename from retailcrm/include/api/class-wc-retailcrm-request.php rename to woo-retailcrm/include/api/class-wc-retailcrm-request.php diff --git a/retailcrm/include/api/class-wc-retailcrm-response.php b/woo-retailcrm/include/api/class-wc-retailcrm-response.php similarity index 100% rename from retailcrm/include/api/class-wc-retailcrm-response.php rename to woo-retailcrm/include/api/class-wc-retailcrm-response.php diff --git a/retailcrm/include-custom/index.php b/woo-retailcrm/include/api/index.php similarity index 100% rename from retailcrm/include-custom/index.php rename to woo-retailcrm/include/api/index.php diff --git a/retailcrm/include/class-wc-retailcrm-base.php b/woo-retailcrm/include/class-wc-retailcrm-base.php similarity index 100% rename from retailcrm/include/class-wc-retailcrm-base.php rename to woo-retailcrm/include/class-wc-retailcrm-base.php diff --git a/retailcrm/include/class-wc-retailcrm-customers.php b/woo-retailcrm/include/class-wc-retailcrm-customers.php similarity index 100% rename from retailcrm/include/class-wc-retailcrm-customers.php rename to woo-retailcrm/include/class-wc-retailcrm-customers.php diff --git a/retailcrm/include/class-wc-retailcrm-history.php b/woo-retailcrm/include/class-wc-retailcrm-history.php similarity index 100% rename from retailcrm/include/class-wc-retailcrm-history.php rename to woo-retailcrm/include/class-wc-retailcrm-history.php diff --git a/retailcrm/include/class-wc-retailcrm-icml.php b/woo-retailcrm/include/class-wc-retailcrm-icml.php similarity index 100% rename from retailcrm/include/class-wc-retailcrm-icml.php rename to woo-retailcrm/include/class-wc-retailcrm-icml.php diff --git a/retailcrm/include/class-wc-retailcrm-inventories.php b/woo-retailcrm/include/class-wc-retailcrm-inventories.php similarity index 100% rename from retailcrm/include/class-wc-retailcrm-inventories.php rename to woo-retailcrm/include/class-wc-retailcrm-inventories.php diff --git a/retailcrm/include/class-wc-retailcrm-orders.php b/woo-retailcrm/include/class-wc-retailcrm-orders.php similarity index 100% rename from retailcrm/include/class-wc-retailcrm-orders.php rename to woo-retailcrm/include/class-wc-retailcrm-orders.php diff --git a/retailcrm/include/api/index.php b/woo-retailcrm/include/index.php similarity index 100% rename from retailcrm/include/api/index.php rename to woo-retailcrm/include/index.php diff --git a/retailcrm/include/index.php b/woo-retailcrm/index.php similarity index 100% rename from retailcrm/include/index.php rename to woo-retailcrm/index.php diff --git a/retailcrm/retailcrm.php b/woo-retailcrm/retailcrm.php similarity index 79% rename from retailcrm/retailcrm.php rename to woo-retailcrm/retailcrm.php index 2d17995..ae5a491 100644 --- a/retailcrm/retailcrm.php +++ b/woo-retailcrm/retailcrm.php @@ -1,8 +1,8 @@