remove size parameter from button config

This commit is contained in:
David Remer 2020-08-18 12:39:07 +03:00
parent a72922c2a8
commit 4844ec4706
2 changed files with 0 additions and 90 deletions

View file

@ -338,14 +338,12 @@ class SmartButton implements SmartButtonInterface
'url' => $this->url(),
'mini_cart_style' => [
'layout' => $this->styleForContext('layout', 'mini-cart'),
'size' => $this->styleForContext('size', 'mini-cart'),
'color' => $this->styleForContext('color', 'mini-cart'),
'shape' => $this->styleForContext('shape', 'mini-cart'),
'label' => $this->styleForContext('label', 'mini-cart'),
],
'style' => [
'layout' => $this->styleForContext('layout', $this->context()),
'size' => $this->styleForContext('size', $this->context()),
'color' => $this->styleForContext('color', $this->context()),
'shape' => $this->styleForContext('shape', $this->context()),
'label' => $this->styleForContext('label', $this->context()),

View file

@ -376,28 +376,6 @@ return [
],
'requirements' => [],
],
'button_size' => [
'title' => __('Button Size', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'responsive',
'desc_tip' => true,
'description' => __(
'PayPal offers different sizes of the "PayPal Checkout" buttons, allowing you to select a size that best fits your site\'s theme. This setting will allow you to choose which size button(s) appear on your page. (The "Responsive" option adjusts to container size, and is available and recommended for Smart Payment Buttons.)',
'woocommerce-paypal-commerce-gateway'
),
'options' => [
'small' => __('Small', 'woocommerce-paypal-commerce-gateway'),
'medium' => __('Medium', 'woocommerce-paypal-commerce-gateway'),
'large' => __('Large', 'woocommerce-paypal-commerce-gateway'),
'responsive' => __('Responsive', 'woocommerce-paypal-commerce-gateway'),
],
'screens' => [
State::STATE_PROGRESSIVE,
State::STATE_ONBOARDED,
],
'requirements' => [],
],
'button_label' => [
'title' => __('Button Label', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
@ -504,28 +482,6 @@ return [
],
'requirements' => [],
],
'button_single_product_size' => [
'title' => __('Button Size', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'responsive',
'desc_tip' => true,
'description' => __(
'PayPal offers different sizes of the "PayPal Checkout" buttons, allowing you to select a size that best fits your site\'s theme. This setting will allow you to choose which size button(s) appear on your page. (The "Responsive" option adjusts to container size, and is available and recommended for Smart Payment Buttons.)',
'woocommerce-paypal-commerce-gateway'
),
'options' => [
'small' => __('Small', 'woocommerce-paypal-commerce-gateway'),
'medium' => __('Medium', 'woocommerce-paypal-commerce-gateway'),
'large' => __('Large', 'woocommerce-paypal-commerce-gateway'),
'responsive' => __('Responsive', 'woocommerce-paypal-commerce-gateway'),
],
'screens' => [
State::STATE_PROGRESSIVE,
State::STATE_ONBOARDED,
],
'requirements' => [],
],
'button_single_product_label' => [
'title' => __('Button Label', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
@ -632,28 +588,6 @@ return [
],
'requirements' => [],
],
'button_mini-cart_size' => [
'title' => __('Button Size', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'responsive',
'desc_tip' => true,
'description' => __(
'PayPal offers different sizes of the "PayPal Checkout" buttons, allowing you to select a size that best fits your site\'s theme. This setting will allow you to choose which size button(s) appear on your page. (The "Responsive" option adjusts to container size, and is available and recommended for Smart Payment Buttons.)',
'woocommerce-paypal-commerce-gateway'
),
'options' => [
'small' => __('Small', 'woocommerce-paypal-commerce-gateway'),
'medium' => __('Medium', 'woocommerce-paypal-commerce-gateway'),
'large' => __('Large', 'woocommerce-paypal-commerce-gateway'),
'responsive' => __('Responsive', 'woocommerce-paypal-commerce-gateway'),
],
'screens' => [
State::STATE_PROGRESSIVE,
State::STATE_ONBOARDED,
],
'requirements' => [],
],
'button_mini-cart_label' => [
'title' => __('Button Label', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
@ -760,28 +694,6 @@ return [
],
'requirements' => [],
],
'button_cart_size' => [
'title' => __('Button Size', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
'default' => 'responsive',
'desc_tip' => true,
'description' => __(
'PayPal offers different sizes of the "PayPal Checkout" buttons, allowing you to select a size that best fits your site\'s theme. This setting will allow you to choose which size button(s) appear on your page. (The "Responsive" option adjusts to container size, and is available and recommended for Smart Payment Buttons.)',
'woocommerce-paypal-commerce-gateway'
),
'options' => [
'small' => __('Small', 'woocommerce-paypal-commerce-gateway'),
'medium' => __('Medium', 'woocommerce-paypal-commerce-gateway'),
'large' => __('Large', 'woocommerce-paypal-commerce-gateway'),
'responsive' => __('Responsive', 'woocommerce-paypal-commerce-gateway'),
],
'screens' => [
State::STATE_PROGRESSIVE,
State::STATE_ONBOARDED,
],
'requirements' => [],
],
'button_cart_label' => [
'title' => __('Button Label', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',