add tagline option

This commit is contained in:
David Remer 2020-08-18 14:32:19 +03:00
parent 73ec9b5d0f
commit 757705ec7d
2 changed files with 85 additions and 7 deletions

View file

@ -363,7 +363,7 @@ return [
'default' => 'vertical',
'desc_tip' => true,
'description' => __(
'If additional funding sources are available to the buyer through PayPal, such as Venmo, then multiple buttons are displayed in the space provided. Choose "vertical" for a dynamic list of alternative and local payment options, or "horizontal" when space is limited.',
'If additional funding sources are available to the buyer through PayPal, then multiple buttons are displayed in the space provided. Choose "vertical" for a dynamic list of alternative and local payment options, or "horizontal" when space is limited.',
'woocommerce-paypal-commerce-gateway'
),
'options' => [
@ -376,6 +376,22 @@ return [
],
'requirements' => [],
],
'button_tagline' => [
'title' => __('Tagline', 'woocommerce-paypal-commerce-gateway'),
'type' => 'checkbox',
'default' => true,
'label' => __('Enable tagline', 'woocommerce-paypal-commerce-gateway'),
'desc_tip' => true,
'description' => __(
'Add the tagline. This line will only show up, if you select a horizontal layout.',
'woocommerce-paypal-commerce-gateway'
),
'screens' => [
State::STATE_PROGRESSIVE,
State::STATE_ONBOARDED,
],
'requirements' => [],
],
'button_label' => [
'title' => __('Button Label', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
@ -442,7 +458,7 @@ return [
],
//Single product page
'button_single_product_heading' => [
'button_product_heading' => [
'heading' => __('Single Product page', 'woocommerce-paypal-commerce-gateway'),
'type' => 'ppcp-heading',
'screens' => [
@ -451,7 +467,7 @@ return [
],
'requirements' => [],
],
'button_single_product_enabled' => [
'button_product_enabled' => [
'title' => __('Enable buttons on Single Product', 'woocommerce-paypal-commerce-gateway'),
'type' => 'checkbox',
'label' => __('Enable on Single Product', 'woocommerce-paypal-commerce-gateway'),
@ -462,7 +478,7 @@ return [
],
'requirements' => [],
],
'button_single_product_layout' => [
'button_product_layout' => [
'title' => __('Button Layout', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
@ -482,7 +498,23 @@ return [
],
'requirements' => [],
],
'button_single_product_label' => [
'button_product_tagline' => [
'title' => __('Tagline', 'woocommerce-paypal-commerce-gateway'),
'type' => 'checkbox',
'label' => __('Enable tagline', 'woocommerce-paypal-commerce-gateway'),
'default' => true,
'desc_tip' => true,
'description' => __(
'Add the tagline. This line will only show up, if you select a horizontal layout.',
'woocommerce-paypal-commerce-gateway'
),
'screens' => [
State::STATE_PROGRESSIVE,
State::STATE_ONBOARDED,
],
'requirements' => [],
],
'button_product_label' => [
'title' => __('Button Label', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
@ -504,7 +536,7 @@ return [
],
'requirements' => [],
],
'button_single_product_color' => [
'button_product_color' => [
'title' => __('Color', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
@ -526,7 +558,7 @@ return [
],
'requirements' => [],
],
'button_single_product_shape' => [
'button_product_shape' => [
'title' => __('Shape', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',
'class' => ['wc-enhanced-select'],
@ -588,6 +620,22 @@ return [
],
'requirements' => [],
],
'button_mini-cart_tagline' => [
'title' => __('Tagline', 'woocommerce-paypal-commerce-gateway'),
'type' => 'checkbox',
'label' => __('Enable tagline', 'woocommerce-paypal-commerce-gateway'),
'default' => false,
'desc_tip' => true,
'description' => __(
'Add the tagline. This line will only show up, if you select a horizontal layout.',
'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',
@ -694,6 +742,22 @@ return [
],
'requirements' => [],
],
'button_cart_tagline' => [
'title' => __('Tagline', 'woocommerce-paypal-commerce-gateway'),
'type' => 'checkbox',
'label' => __('Enable tagline', 'woocommerce-paypal-commerce-gateway'),
'default' => true,
'desc_tip' => true,
'description' => __(
'Add the tagline. This line will only show up, if you select a horizontal layout.',
'woocommerce-paypal-commerce-gateway'
),
'screens' => [
State::STATE_PROGRESSIVE,
State::STATE_ONBOARDED,
],
'requirements' => [],
],
'button_cart_label' => [
'title' => __('Button Label', 'woocommerce-paypal-commerce-gateway'),
'type' => 'select',