Skip to content

Commit

Permalink
v2.5.4: fixes styling issues (for some themes) with blockchain icons …
Browse files Browse the repository at this point in the history
…on checkout page
  • Loading branch information
10xSebastian committed Oct 24, 2023
1 parent 1a3c383 commit 32021d4
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
*** DePay Web3 Payments for WooCommerce Changelog ***

2023-10-24 - version 2.5.4
* fixes styling issues (for some themes) with blockchain icons on checkout page

2023-10-23 - version 2.5.3
* fixes wrongfully "failed" payments (rare RPC error, only UI)

Expand Down
4 changes: 2 additions & 2 deletions depay-woocommerce-payments.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* WC tested up to: 8.0.2
* Requires at least: 5.8
* Requires PHP: 7.0
* Version: 2.5.3
* Version: 2.5.4
*
* @package DePay\Payments
*/
Expand All @@ -21,7 +21,7 @@
define( 'DEPAY_WC_PLUGIN_FILE', __FILE__ );
define( 'DEPAY_WC_ABSPATH', __DIR__ . '/' );
define( 'DEPAY_MIN_WC_ADMIN_VERSION', '0.23.2' );
define( 'DEPAY_CURRENT_VERSION', '2.5.3' );
define( 'DEPAY_CURRENT_VERSION', '2.5.4' );

require_once DEPAY_WC_ABSPATH . '/vendor/autoload.php';

Expand Down
2 changes: 1 addition & 1 deletion includes/class-depay-wc-payments-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function get_title() {
}

public function get_icon() {
$icon = '<style>.wc_payment_method_depay_image { margin: 0 3px 0 0 !important; padding: 0 !important; flex: 1 1 auto !important; width: auto; max-width: 24px; } .payment_box.payment_method_depay_wc_payments { width: 100%; } .wc_payment_method.payment_method_depay_wc_payments { display: flex; flex-direction: row; flex-wrap: no-wrap; align-items: center; } .payment_method_depay_wc_payments label { display: flex !important; flex-grow: 1; align-items: center; }</style><div style="display: inline-flex; flex-direction: row; flex-grow: 1; padding-left: 12px; justify-content: end; width: 100%; overflow: hidden;">';
$icon = '<style>.wc_payment_method_depay_image { margin: 0 3px 0 0 !important; padding: 0 !important; flex: 1 1 auto !important; width: auto; max-width: 24px !important; } .payment_box.payment_method_depay_wc_payments { width: 100%; } .wc_payment_method.payment_method_depay_wc_payments { display: flex; flex-direction: row; flex-wrap: no-wrap; align-items: center; } .payment_method_depay_wc_payments label { display: flex !important; flex-grow: 1; align-items: center; white-space: nowrap; }</style><div style="display: inline-flex; flex-direction: row; flex-grow: 1; padding-left: 12px; justify-content: end; width: 100%; overflow: hidden;">';
if ( empty( get_option( 'depay_wc_blockchains' ) ) ) {
$icon = '';
} else if ( null != $this->blockchain ) {
Expand Down
2 changes: 1 addition & 1 deletion languages/depay-woocommerce-payments.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is distributed under the same license as the package.
msgid ""
msgstr ""
"Project-Id-Version: DePay WooCommerce Payments 2.5.3\n"
"Project-Id-Version: DePay WooCommerce Payments 2.5.4\n"
"Report-Msgid-Bugs-To: "
"[email protected]\n"
"MIME-Version: 1.0\n"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@depay/web3-woocommerce-depay-payments",
"moduleName": "WooCommerceDePayPayments",
"version": "2.5.3",
"version": "2.5.4",
"description": "WooCommerce DePay plugin to accept Web3 payments directly into your wallet with on-the-fly conversion.",
"main": "./dist/umd/index.js",
"module": "./dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: web3, payments, woocommerce, depay, cryptocurrency
Requires at least: 6.0
Tested up to: 6.3
Requires PHP: 7.2
Stable tag: 2.5.3
Stable tag: 2.5.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down

0 comments on commit 32021d4

Please sign in to comment.