|
1 | | -<?php |
2 | | - |
3 | | -$pluginName = 'mollie-payments-for-woocommerce'; |
4 | | -$title = 'Apple Pay'; |
5 | | -$description = 'Apple description'; |
6 | | -$pluginId = 'mollie-payments-for-woocommerce'; |
7 | | -$applePayOption = get_option('mollie_wc_gateway_applepay_settings'); |
8 | | - |
9 | | -return [ |
10 | | - [ |
11 | | - 'id' => $title . '_' . 'title', |
12 | | - 'title' => __('Apple Pay', 'mollie-payments-for-woocommerce'), |
13 | | - 'type' => 'title', |
14 | | - 'desc' => '<p>' . __('The following options are required to use the Apple Pay gateway', 'mollie-payments-for-woocommerce') . '</p>', |
15 | | - ], |
16 | | - |
17 | | - [ |
18 | | - 'id' => 'enabled', |
19 | | - 'title' => __('Enable/Disable', 'mollie-payments-for-woocommerce'), |
20 | | - /* translators: Placeholder 1: Gateway title */ |
21 | | - 'desc' => sprintf(__('Enable %s', 'mollie-payments-for-woocommerce'), $title), |
22 | | - 'type' => 'checkbox', |
23 | | - 'default' => 'yes', |
24 | | - 'value' => isset($applePayOption['enabled']) ? $applePayOption['enabled'] : 'yes', |
25 | | - |
26 | | - ], |
27 | | - [ |
28 | | - 'id' => 'title', |
29 | | - 'title' => __('Title', 'mollie-payments-for-woocommerce'), |
30 | | - 'desc' => sprintf( |
31 | | - /* translators: Placeholder 1: Gateway title */ |
32 | | - __( |
33 | | - 'This controls the title which the user sees during checkout. Default <code>%s</code>', |
34 | | - 'mollie-payments-for-woocommerce' |
35 | | - ), |
36 | | - $title |
37 | | - ), |
38 | | - 'desc_tip' => true, |
39 | | - 'type' => 'text', |
40 | | - 'default' => $title, |
41 | | - 'value' => isset($applePayOption['title']) ? $applePayOption['title'] : $title, |
42 | | - |
43 | | - ], |
44 | | - [ |
45 | | - 'id' => 'display_logo', |
46 | | - 'title' => __('Display logo', 'mollie-payments-for-woocommerce'), |
47 | | - 'desc' => __( |
48 | | - 'Display logo', |
49 | | - 'mollie-payments-for-woocommerce' |
50 | | - ), |
51 | | - 'desc_tip' => true, |
52 | | - 'type' => 'checkbox', |
53 | | - 'default' => 'yes', |
54 | | - 'value' => isset($applePayOption['display_logo']) ? $applePayOption['display_logo'] : 'yes', |
55 | | - |
56 | | - ], |
57 | | - [ |
58 | | - 'id' => 'description', |
59 | | - 'title' => __('Description', 'mollie-payments-for-woocommerce'), |
60 | | - 'desc' => sprintf( |
61 | | - /* translators: Placeholder 1: Gateway description */ |
62 | | - __( |
63 | | - 'Payment method description that the customer will see on your checkout. Default <code>%s</code>', |
64 | | - 'mollie-payments-for-woocommerce' |
65 | | - ), |
66 | | - $description |
67 | | - ), |
68 | | - 'desc_tip' => true, |
69 | | - 'type' => 'text', |
70 | | - 'default' => $description, |
71 | | - 'value' => isset($applePayOption['description']) ? $applePayOption['description'] : $description, |
72 | | - ], |
73 | | - [ |
74 | | - 'id' => $pluginId . '_' . 'sectionend', |
75 | | - 'type' => 'sectionend', |
76 | | - ], |
77 | | - [ |
78 | | - 'id' => $title . '_' . 'title_button', |
79 | | - 'title' => __( |
80 | | - 'Apple Pay button settings', |
81 | | - 'mollie-payments-for-woocommerce' |
82 | | - ), |
83 | | - 'type' => 'title', |
84 | | - 'desc' => '<p>' . __('The following options are required to use the Apple Pay Direct Button', 'mollie-payments-for-woocommerce') . '</p>', |
85 | | - ], |
86 | | - [ |
87 | | - 'id' => 'mollie_apple_pay_button_enabled_cart', |
88 | | - 'title' => __('Enable Apple Pay Button on Cart page', 'mollie-payments-for-woocommerce'), |
89 | | - 'desc' => sprintf( |
90 | | - /* translators: Placeholder 1: enabled or disabled */ |
91 | | - __( |
92 | | - 'Enable the Apple Pay direct buy button on the Cart page', |
93 | | - 'mollie-payments-for-woocommerce' |
94 | | - ), |
95 | | - $description |
96 | | - ), |
97 | | - 'type' => 'checkbox', |
98 | | - 'default' => 'no', |
99 | | - 'value' => isset($applePayOption['mollie_apple_pay_button_enabled_cart']) ? $applePayOption['mollie_apple_pay_button_enabled_cart'] : 'no', |
100 | | - |
101 | | - ], |
102 | | - [ |
103 | | - 'id' => 'mollie_apple_pay_button_enabled_product', |
104 | | - 'title' => __('Enable Apple Pay Button on Product page', 'mollie-payments-for-woocommerce'), |
105 | | - 'desc' => sprintf( |
106 | | - /* translators: Placeholder 1: enabled or disabled */ |
107 | | - __( |
108 | | - 'Enable the Apple Pay direct buy button on the Product page', |
109 | | - 'mollie-payments-for-woocommerce' |
110 | | - ), |
111 | | - $description |
112 | | - ), |
113 | | - 'type' => 'checkbox', |
114 | | - 'default' => 'no', |
115 | | - 'value' => isset($applePayOption['mollie_apple_pay_button_enabled_product']) ? $applePayOption['mollie_apple_pay_button_enabled_product'] : 'no', |
116 | | - |
117 | | - ], |
118 | | - [ |
119 | | - 'id' => $pluginName . '_' . 'sectionend', |
120 | | - 'type' => 'sectionend', |
121 | | - ], |
122 | | -]; |
0 commit comments