mirror of
https://github.com/10h30/woo-viet.git
synced 2026-06-05 15:09:49 +09:00
Handle different logo images
This commit is contained in:
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
@@ -51,7 +51,10 @@ abstract class WooViet_OnePay_Abstract extends WC_Payment_Gateway {
|
||||
|
||||
// Define user set variables.
|
||||
$this->title = $this->get_option( 'title' );
|
||||
$this->description = $this->get_option( 'description' ) . sprintf( '<br/><div align="center"><img src="%s"></div>', WOO_VIET_URL . 'assets/onepay_domestic.png' );
|
||||
$this->description = $this->get_option( 'description' )
|
||||
. sprintf( '<br/><div align="center" class="onepay-logo" id="%1$s"><img src="%2$s"></div>',
|
||||
$this->id . '_logo',
|
||||
apply_filters( $this->id . '_logo', WOO_VIET_URL . "assets/$this->id.png" ) );
|
||||
|
||||
$this->testmode = 'yes' === $this->get_option( 'testmode', 'no' );
|
||||
$this->merchant_id = $this->get_option( 'merchant_id' );
|
||||
|
||||
Reference in New Issue
Block a user