mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
Allow general/default styling for smart buttons
This commit is contained in:
parent
2205b1bc1e
commit
3398e46329
1 changed files with 5 additions and 0 deletions
|
@ -1149,6 +1149,11 @@ class SmartButton implements SmartButtonInterface {
|
||||||
'tagline' => true,
|
'tagline' => true,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$enable_styling_per_location = $this->settings->has( 'smart_button_enable_styling_per_location' ) && $this->settings->get( 'smart_button_enable_styling_per_location' );
|
||||||
|
if ( ! $enable_styling_per_location ) {
|
||||||
|
$context = 'general';
|
||||||
|
}
|
||||||
|
|
||||||
$value = isset( $defaults[ $style ] ) ?
|
$value = isset( $defaults[ $style ] ) ?
|
||||||
$defaults[ $style ] : '';
|
$defaults[ $style ] : '';
|
||||||
$value = $this->settings->has( 'button_' . $style ) ?
|
$value = $this->settings->has( 'button_' . $style ) ?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue