diff --git a/assets/images/icons/bch.svg b/assets/images/icons/bch.svg deleted file mode 100644 index 687723d..0000000 --- a/assets/images/icons/bch.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - bch - Created with Sketch. - - - - - - - \ No newline at end of file diff --git a/assets/images/icons/btc.svg b/assets/images/icons/btc.svg deleted file mode 100644 index c26e12b..0000000 --- a/assets/images/icons/btc.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - btc - Created with Sketch. - - - - - - - \ No newline at end of file diff --git a/assets/images/icons/crypto.png b/assets/images/icons/crypto.png deleted file mode 100644 index 9895c1a..0000000 Binary files a/assets/images/icons/crypto.png and /dev/null differ diff --git a/assets/images/icons/dash.svg b/assets/images/icons/dash.svg deleted file mode 100644 index ffb370b..0000000 --- a/assets/images/icons/dash.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - dash - Created with Sketch. - - - - - - - \ No newline at end of file diff --git a/assets/images/icons/eth.svg b/assets/images/icons/eth.svg deleted file mode 100644 index a10740f..0000000 --- a/assets/images/icons/eth.svg +++ /dev/null @@ -1,56 +0,0 @@ - - - - eth - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/assets/images/icons/ltc.svg b/assets/images/icons/ltc.svg deleted file mode 100644 index fda6317..0000000 --- a/assets/images/icons/ltc.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - ltc - Created with Sketch. - - - - - - - - - \ No newline at end of file diff --git a/class-wc-gateway-paybear.php b/class-wc-gateway-paybear.php index 17ea8dc..7283e82 100644 --- a/class-wc-gateway-paybear.php +++ b/class-wc-gateway-paybear.php @@ -331,15 +331,13 @@ protected function __construct() { public function get_icon() { - $plugin_url = plugin_dir_url( __FILE__ ); - $style = version_compare( WC()->version, '2.6', '>=' ) ? 'style="margin-left: 0.2em; max-height: 24px; max-width: 24px; float: left"' : ''; + $style = version_compare( WC()->version, '2.6', '>=' ) ? 'style="margin-left: 0.5em; max-height: 24px; max-width: 24px; float: left"' : ''; - $icons = ['btc', 'eth', 'bch', 'ltc', 'dash']; - $currencies = array_keys($this->get_currencies()); + $currencies = $this->get_currencies(); $icon = ''; - foreach (array_intersect($icons, $currencies) as $token) { - $icon .= ''; + foreach (array_slice($currencies, 0, 5) as $currency) { + $icon .= ''; } $icon .= '';