mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Update Google Pay icon with SVG
This commit is contained in:
parent
0b7a91fa35
commit
9fbc28506f
3 changed files with 9 additions and 3 deletions
|
@ -72,7 +72,7 @@ return array(
|
||||||
'googlepay_button_enabled' => array(
|
'googlepay_button_enabled' => array(
|
||||||
'title' => __( 'Google Pay Button', 'woocommerce-paypal-payments' ),
|
'title' => __( 'Google Pay Button', 'woocommerce-paypal-payments' ),
|
||||||
'title_html' => sprintf(
|
'title_html' => sprintf(
|
||||||
'<img src="%sassets/images/googlepay.png" alt="%s" style="max-width: 150px; max-height: 45px;" />',
|
'<img src="%sassets/images/googlepay.svg" alt="%s" style="max-width: 150px; max-height: 45px;" />',
|
||||||
$module_url,
|
$module_url,
|
||||||
__( 'Google Pay', 'woocommerce-paypal-payments' )
|
__( 'Google Pay', 'woocommerce-paypal-payments' )
|
||||||
),
|
),
|
||||||
|
@ -117,7 +117,7 @@ return array(
|
||||||
'googlepay_button_enabled' => array(
|
'googlepay_button_enabled' => array(
|
||||||
'title' => __( 'Google Pay Button', 'woocommerce-paypal-payments' ),
|
'title' => __( 'Google Pay Button', 'woocommerce-paypal-payments' ),
|
||||||
'title_html' => sprintf(
|
'title_html' => sprintf(
|
||||||
'<img src="%sassets/images/googlepay.png" alt="%s" style="max-width: 150px; max-height: 45px;" />',
|
'<img src="%sassets/images/googlepay.svg" alt="%s" style="max-width: 150px; max-height: 45px;" />',
|
||||||
$module_url,
|
$module_url,
|
||||||
__( 'Google Pay', 'woocommerce-paypal-payments' )
|
__( 'Google Pay', 'woocommerce-paypal-payments' )
|
||||||
),
|
),
|
||||||
|
|
|
@ -17,3 +17,9 @@
|
||||||
#ppc-button-ppcp-googlepay {
|
#ppc-button-ppcp-googlepay {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
label[for='payment_method_ppcp-googlepay'] {
|
||||||
|
img {
|
||||||
|
max-height: 25px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -99,7 +99,7 @@ class GooglePayGateway extends WC_Payment_Gateway {
|
||||||
$this->description = $this->get_option( 'description', '' );
|
$this->description = $this->get_option( 'description', '' );
|
||||||
|
|
||||||
$this->module_url = $module_url;
|
$this->module_url = $module_url;
|
||||||
$this->icon = esc_url( $this->module_url ) . 'assets/images/googlepay.png';
|
$this->icon = esc_url( $this->module_url ) . 'assets/images/googlepay.svg';
|
||||||
|
|
||||||
$this->init_form_fields();
|
$this->init_form_fields();
|
||||||
$this->init_settings();
|
$this->init_settings();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue