Skip to content

Commit

Permalink
fixed the logos
Browse files Browse the repository at this point in the history
  • Loading branch information
muggledev committed Jun 20, 2024
1 parent 0d7cd2c commit 43df55e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
Binary file modified assets/images/mugglepay-logo-c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions class/class-mpwp-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ public function get_icon()
}

foreach ($icon as $i) {
$icon_html .= '<img src="' . esc_attr($i) . '" alt="' . esc_attr__('MugglePay acceptance mark', 'muggle-pay') . '" />';
$icon_html .= '<img src="' . esc_attr($i) . '" alt="' . esc_attr__('MugglePay acceptance mark', 'muggle-pay') . '" / width="64px" height="64px">';
}

// Insert Styles
Expand All @@ -641,7 +641,7 @@ public function get_icon()
*/
protected function get_icon_image($method, $country)
{
$uri = get_stylesheet_directory_uri();

switch ($method) {
case '':
$icon = '/mugglepay-logo-c.png';
Expand All @@ -661,7 +661,7 @@ protected function get_icon_image($method, $country)
default:
return '';
}
return apply_filters('woocommerce_mpwp_icon', $uri . '/assets/images/' .$icon);
return apply_filters('woocommerce_mpwp_icon', MPWP_PLUGIN_URL . '/assets/images/' .$icon);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion muggle-pay.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Plugin Name: MugglePay
Plugin URI: https://mugglepay.com/
Description: MugglePay is a one-stop payment solution for merchants with an online payment need.
Version: 1.0.1
Version: 1.0.2
Author: MugglePay
Author URI: https://mugglepay.com/
Text Domain: muggle-pay
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: mugglepay woocommerce alipay wechat btc digital payment
Requires at least: 5.3
Tested up to: 6.4.2
Requires PHP: 7.0
Stable tag: 1.0.1
Stable tag: 1.0.2
License: GPLv3+
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -76,6 +76,9 @@ Clicking the Manage button on the right hand side will take you into the setting

== Changelog ==

=== 1.0.2 ===
* Code Improvements

=== 👉 1.0.1 ===

* MugglePay First Version
Expand Down

0 comments on commit 43df55e

Please sign in to comment.