PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.0.3
ShopBuilder – WooCommerce Builder For Elementor v2.0.3
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / app / Elementor / Widgets / Controls / CheckoutPaymentSettings.php

CheckoutPaymentSettings.php in ShopBuilder – WooCommerce Builder For Elementor 2.0.3, at app/Elementor/Widgets/Controls/CheckoutPaymentSettings.php

245 lines 9.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Main ProductDescription class.
4 *
5 * @package RadiusTheme\SB
6 */
7
8 namespace RadiusTheme\SB\Elementor\Widgets\Controls;
9
10 // Do not allow directly accessing this file.
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit( 'This script cannot be accessed directly.' );
13 }
14
15 /**
16 * Product Description class
17 */
18 class CheckoutPaymentSettings {
19
20 /**
21 * Widget Field
22 *
23 * @return array
24 */
25 public static function widget_fields( $widget ) {
26 return self::general_settings( $widget ) + ButtonSettings::style_settings( $widget );
27 }
28
29 /**
30 * Widget Field
31 *
32 * @return array
33 */
34 public static function general_settings( $widget ){
35 $selector = $widget->selectors;
36 return [
37 'payment_method_start' => [
38 'mode' => 'section_start',
39 'label' => esc_html__( 'Payment Method', 'shopbuilder' ),
40 'tab' => 'style',
41 ],
42
43 'payment_tabs_start' => [
44 'mode' => 'tabs_start',
45 ],
46 'payment_normal' => [
47 'mode' => 'tab_start',
48 'label' => esc_html__('Normal', 'shopbuilder'),
49 ],
50
51 'payment_link_color' => [
52 'label' => esc_html__( 'Link Color', 'shopbuilder' ),
53 'type' => 'color',
54 'selectors' => [
55 $selector['payment_link_color'] => 'color: {{VALUE}};',
56 ],
57 ],
58 'payment_normal_end' => [
59 'mode' => 'tab_end',
60 ],
61 'payment_hover' => [
62 'mode' => 'tab_start',
63 'label' => esc_html__('Hover', 'shopbuilder'),
64 ],
65
66 'payment_link_hover_color' => [
67 'label' => esc_html__( 'Link Color', 'shopbuilder' ),
68 'type' => 'color',
69 'selectors' => [
70 $selector['payment_link_hover_color'] => 'color: {{VALUE}};',
71 ],
72 ],
73 'payment_hover_end' => [
74 'mode' => 'tab_end',
75 ],
76 'payment_tabs_end' => [
77 'mode' => 'tabs_end',
78 ],
79
80 'payment_label_heading' => [
81 'type' => 'html',
82 'raw' => sprintf(
83 '<h3 class="rtsb-elementor-group-heading">%s</h3>',
84 esc_html__( 'Payment Label Text', 'shopbuilder' )
85 ),
86 'content_classes' => 'elementor-panel-heading-title',
87 ],
88
89 'payment_label_typography' => [
90 'mode' => 'group',
91 'type' => 'typography',
92 'label' => esc_html__( 'Label Typography', 'shopbuilder' ),
93 'selector' => $selector['payment_label_typography'],
94 ],
95 'payment_label_color' => [
96 'label' => esc_html__( 'Label Color', 'shopbuilder' ),
97 'type' => 'color',
98 'selectors' => [
99 $selector['payment_label_color'] => 'color: {{VALUE}};',
100 ],
101 ],
102 'payment_label_active_hover_color' => [
103 'label' => esc_html__( 'Label Active/Hover Color', 'shopbuilder' ),
104 'type' => 'color',
105 'selectors' => [
106 $selector['payment_label_active_hover_color'] => 'color: {{VALUE}};',
107 ],
108 ],
109 //'payment_label_bg_color' => [
110 // 'label' => esc_html__( 'Label Background Color', 'shopbuilder' ),
111 // 'type' => 'color',
112 //
113 // 'selectors' => [
114 // $selector['payment_label_bg_color'] => 'background-color: {{VALUE}};',
115 // ],
116 //],
117 'payment_method_bacs_padding' => [
118 'label' => esc_html__('Padding (px)', 'shopbuilder'),
119 'mode' => 'responsive',
120 'type' => 'dimensions',
121 'size_units' => ['px'],
122 'selectors' => [
123 $selector['payment_method_bacs_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
124 ],
125 ],
126 'payment_method_bacs_margin' => [
127 'label' => esc_html__('Margin (px)', 'shopbuilder'),
128 'mode' => 'responsive',
129 'type' => 'dimensions',
130 'size_units' => ['px'],
131 'selectors' => [
132 $selector['payment_method_bacs_margin'] => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
133 ],
134 ],
135
136 'payment_description_heading' => [
137 'type' => 'html',
138 'raw' => sprintf(
139 '<h3 class="rtsb-elementor-group-heading">%s</h3>',
140 esc_html__( 'Payment Description', 'shopbuilder' )
141 ),
142 'content_classes' => 'elementor-panel-heading-title',
143 ],
144 'payment_description_typography' => [
145 'mode' => 'group',
146 'type' => 'typography',
147 'separator' => 'before',
148 'label' => esc_html__( 'Description Typography', 'shopbuilder' ),
149 'selector' => $selector['payment_description_typography'],
150 ],
151 'payment_description_text_color' => [
152 'label' => esc_html__( 'Description Text Color', 'shopbuilder' ),
153 'type' => 'color',
154 'selectors' => [
155 $selector['payment_description_text_color'] => 'color: {{VALUE}};',
156 ],
157 ],
158 'payment_description_bg_color' => [
159 'label' => esc_html__( 'Description Background Color', 'shopbuilder' ),
160 'type' => 'color',
161
162 'selectors' => [
163 $selector['payment_description_bg_color'] => 'background-color: {{VALUE}};',
164 $selector['payment_description_bg_color'] . ':before' => 'border-bottom-color: {{VALUE}};',
165 ],
166 ],
167 'payment_method_desc_padding' => [
168 'label' => esc_html__('Padding (px)', 'shopbuilder'),
169 'mode' => 'responsive',
170 'type' => 'dimensions',
171 'size_units' => ['px'],
172 'selectors' => [
173 $selector['payment_method_desc_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
174 ],
175 ],
176 'payment_method_desc_margin' => [
177 'label' => esc_html__('Margin (px)', 'shopbuilder'),
178 'mode' => 'responsive',
179 'type' => 'dimensions',
180 'size_units' => ['px'],
181 'selectors' => [
182 $selector['payment_method_desc_margin'] => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
183 ],
184 ],
185 'payment_button_area' => [
186 'type' => 'html',
187 'raw' => sprintf(
188 '<h3 class="rtsb-elementor-group-heading">%s</h3>',
189 esc_html__( 'Payment Button Area', 'shopbuilder' )
190 ),
191 'content_classes' => 'elementor-panel-heading-title',
192 ],
193 'payment_button_description_typography' => [
194 'mode' => 'group',
195 'type' => 'typography',
196 'separator' => 'before',
197 'label' => esc_html__( 'Description Typography', 'shopbuilder' ),
198 'selector' => $selector['payment_button_description_typography'],
199 ],
200 'payment_button_description_text_color' => [
201 'label' => esc_html__( 'Description Text Color', 'shopbuilder' ),
202 'type' => 'color',
203 'selectors' => [
204 $selector['payment_button_description_text_color'] => 'color: {{VALUE}};',
205 ],
206 ],
207 'payment_button_description_bg_color' => [
208 'label' => esc_html__( 'Description Background Color', 'shopbuilder' ),
209 'type' => 'color',
210
211 'selectors' => [
212 $selector['payment_button_description_bg_color'] => 'background-color: {{VALUE}};',
213 ],
214 ],
215 'payment_button_wrapper_padding' => [
216 'label' => esc_html__('Padding (px)', 'shopbuilder'),
217 'mode' => 'responsive',
218 'type' => 'dimensions',
219 'size_units' => ['px'],
220 'selectors' => [
221 $selector['payment_button_wrapper_padding'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
222 ],
223 ],
224 'payment_button_wrapper_margin' => [
225 'label' => esc_html__('Margin (px)', 'shopbuilder'),
226 'mode' => 'responsive',
227 'type' => 'dimensions',
228 'size_units' => ['px'],
229 'selectors' => [
230 $selector['payment_button_wrapper_margin'] => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
231 ],
232 ],
233
234 'paymeny_method_end' => [
235 'mode' => 'section_end',
236 ],
237 ];
238 }
239
240
241
242 }
243
244
245