Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
10xSebastian committed Oct 16, 2023
1 parent c10896a commit 1b90d52
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions includes/class-depay-wc-payments-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ public function get_icon() {
} else {
$blockchains = json_decode( get_option( 'depay_wc_blockchains' ) );
$index = 0;
$more = "";
$more = '';
foreach ( $blockchains as $blockchain ) {
if($index < 5) {
if ($index < 5) {
$url = esc_url( plugin_dir_url( __FILE__ ) . 'images/blockchains/' . $blockchain . '.svg' );
$icon = $icon . "<img title='Payments on " . ucfirst($blockchain) . "' class='wc_payment_method_depay_image' src='" . $url . "'/>";
} else {
$more = $more . ", " . ucfirst($blockchain);
$more = $more . ', ' . ucfirst($blockchain);
}
$index += 1;
++$index;
}
if($index > 5) {
if ($index > 5) {
$more = substr($more, 2);
$icon = $icon . "<span title='".$more."' style='width: 18px; padding-left: 6px;'><img style='position: relative; top: 6px; width: 100%; opacity: 0.5;' class='wc_payment_method_depay_image' src='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBVcGxvYWRlZCB0bzogU1ZHIFJlcG8sIHd3dy5zdmdyZXBvLmNvbSwgR2VuZXJhdG9yOiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIGZpbGw9IiMwMDAwMDAiIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgDQoJIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDQxLjkxNSA0MS45MTYiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPGc+DQoJCTxwYXRoIGQ9Ik0xMS4yMTQsMjAuOTU2YzAsMy4wOTEtMi41MDksNS41ODktNS42MDcsNS41ODlDMi41MSwyNi41NDQsMCwyNC4wNDYsMCwyMC45NTZjMC0zLjA4MiwyLjUxMS01LjU4NSw1LjYwNy01LjU4NQ0KCQkJQzguNzA1LDE1LjM3MSwxMS4yMTQsMTcuODc0LDExLjIxNCwyMC45NTZ6Ii8+DQoJCTxwYXRoIGQ9Ik0yNi41NjQsMjAuOTU2YzAsMy4wOTEtMi41MDksNS41ODktNS42MDYsNS41ODljLTMuMDk3LDAtNS42MDctMi40OTgtNS42MDctNS41ODljMC0zLjA4MiwyLjUxMS01LjU4NSw1LjYwNy01LjU4NQ0KCQkJQzI0LjA1NiwxNS4zNzEsMjYuNTY0LDE3Ljg3NCwyNi41NjQsMjAuOTU2eiIvPg0KCQk8cGF0aCBkPSJNNDEuOTE1LDIwLjk1NmMwLDMuMDkxLTIuNTA5LDUuNTg5LTUuNjA3LDUuNTg5Yy0zLjA5NywwLTUuNjA2LTIuNDk4LTUuNjA2LTUuNTg5YzAtMy4wODIsMi41MTEtNS41ODUsNS42MDYtNS41ODUNCgkJCUMzOS40MDYsMTUuMzcxLDQxLjkxNSwxNy44NzQsNDEuOTE1LDIwLjk1NnoiLz4NCgk8L2c+DQo8L2c+DQo8L3N2Zz4='/></span>";
$icon = $icon . "<span title='" . $more . "' style='width: 18px; padding-left: 6px;'><img style='position: relative; top: 6px; width: 100%; opacity: 0.5;' class='wc_payment_method_depay_image' src='data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBVcGxvYWRlZCB0bzogU1ZHIFJlcG8s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jA2LTUuNTg5YzAtMy4wODIsMi41MTEtNS41ODUsNS42MDYtNS41ODUNCgkJCUMzOS40MDYsMTUuMzcxLDQxLjkxNSwxNy44NzQsNDEuOTE1LDIwLjk1NnoiLz4NCgk8L2c+DQo8L2c+DQo8L3N2Zz4='/></span>";
}
}
return $icon . '</div>';
Expand Down

0 comments on commit 1b90d52

Please sign in to comment.