PluginProbe ʕ •ᴥ•ʔ
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI / 3.6.0
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI v3.6.0
3.6.0 3.5.3 3.5.2 3.5.1 3.5.0 3.4.8 3.4.7 3.4.6 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5.1 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.6.1 1.6.7 1.7.0 1.7.0.1 1.7.0.2 1.7.0.3 1.7.1 1.7.2 1.7.2.1 1.7.2.2 1.7.3 1.7.4 1.7.5 1.7.5.1 1.7.5.2 1.7.6 1.7.7 1.7.7.1 1.7.7.2 1.7.8 1.7.9 1.8.0 1.8.0.1 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.0.1 1.9.1 1.9.2 1.9.3 1.9.4 1.9.4.1 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.0.1 2.0.1 2.0.2 2.0.3 2.0.3.1 2.0.4 2.0.4.1 2.0.5 2.0.6 2.0.7 2.0.8 2.0.8.1 2.0.9 3.0.0 3.0.0.1 3.0.1 3.0.2 3.0.3 3.0.3.1 3.0.4 3.0.4.1 3.0.4.2 3.0.5 3.0.5.1 3.0.5.2 3.0.6 3.0.6.1 3.0.7.1 3.0.8 3.0.8.1 3.0.9 3.0.9.1 3.0.9.2 3.0.9.3 3.0.9.4 3.0.9.5 3.1.0 3.1.1 3.1.2 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.3.0 3.4.0 3.4.1 3.4.2 3.4.2.1 3.4.3 3.4.4 3.4.5 trunk 1.0 1.0.1 1.0.2 1.0.3
everest-forms / addons / StyleCustomizer / includes / configs / evf-style-customizer-form-wrapper-configs.php
everest-forms / addons / StyleCustomizer / includes / configs Last commit date
evf-style-customizer-color-palette.php 1 year ago evf-style-customizer-form-wrapper-configs.php 1 year ago evf-style-customizer-submission-message-configs.php 1 year ago
evf-style-customizer-form-wrapper-configs.php
2009 lines
1 <?php
2 /**
3 * EverestForms Button Config Functions
4 *
5 * @package EverestForms_Style_Customizer/Functions
6 * @version 1.0.0
7 */
8
9 defined( 'ABSPATH' ) || exit;
10
11 /**
12 * Add everest forms button customizer sections
13 *
14 * @param array $sections Array of sections.
15 */
16
17 if ( defined( 'EFP_PLUGIN_FILE' ) ) {
18 function evf_style_customizer_general_panels( $panels ) {
19 return array_merge(
20 $panels,
21 array(
22 'everest_forms_general_section' => array(
23 'title' => esc_html__( 'General', 'everest-forms' ),
24 'description' => esc_html__( 'This is field Submission message description.', 'everest-forms' ),
25 ),
26 )
27 );
28 }
29
30 add_filter( 'everest_forms_style_customizer_panels', 'evf_style_customizer_general_panels' );
31 }
32
33 function evf_style_customizer_general_sections( $sections ) {
34 return array_merge(
35 $sections,
36 array(
37 'everest_forms_general_font' => array(
38 'title' => esc_html__( 'Font', 'everest-forms' ),
39 'description' => esc_html__( 'This is font description.', 'everest-forms' ),
40 'priority' => 10,
41 'panel' => 'everest_forms_general_section',
42 'description_hidden' => true,
43 ),
44 'everest_forms_general_form_container' => array(
45 'title' => esc_html__( 'Form Container', 'everest-forms' ),
46 'description' => esc_html__( 'This is font description.', 'everest-forms' ),
47 'priority' => 10,
48 'panel' => 'everest_forms_general_section',
49 'description_hidden' => true,
50 ),
51 'everest_forms_general_field_styles' => array(
52 'title' => esc_html__( 'Field Styles', 'everest-forms' ),
53 'description' => esc_html__( 'This is font description.', 'everest-forms' ),
54 'priority' => 10,
55 'panel' => 'everest_forms_general_section',
56 'description_hidden' => true,
57 ),
58 'everest_forms_file_upload_styles' => array(
59 'title' => esc_html__( 'File Upload Styles', 'everest-forms' ),
60 'description' => esc_html__( 'This is font description.', 'everest-forms' ),
61 'priority' => 10,
62 'panel' => 'everest_forms_general_section',
63 'description_hidden' => true,
64 ),
65 'everest_forms_general_buttons' => array(
66 'title' => esc_html__( 'Button', 'everest-forms' ),
67 'description' => esc_html__( 'This is font description.', 'everest-forms' ),
68 'priority' => 10,
69 'panel' => 'everest_forms_general_section',
70 'description_hidden' => true,
71 ),
72 'everest_forms_general_radio_checkbox' => array(
73 'title' => esc_html__( 'Radio Checkbox', 'everest-forms' ),
74 'description' => esc_html__( 'This is font description.', 'everest-forms' ),
75 'priority' => 10,
76 'panel' => 'everest_forms_general_section',
77 'description_hidden' => true,
78 ),
79 'everest_forms_general_typography' => array(
80 'title' => esc_html__( 'Typography', 'everest-forms' ),
81 'description' => esc_html__( 'This is font description.', 'everest-forms' ),
82 'priority' => 10,
83 'panel' => 'everest_forms_general_section',
84 'description_hidden' => true,
85 ),
86 )
87 );
88 }
89 add_filter( 'everest_forms_style_customizer_sections', 'evf_style_customizer_general_sections' );
90
91 /**
92 * Add everest forms style customizer controls.
93 *
94 * @param array $controls Array of controls.
95 * @param EVF_Style_Customizer_API $customize EVF_Style_Customizer_API instance.
96 */
97 function evf_style_customizer_wrapper_controls( $controls, $customize ) {
98
99 $controls['font'] = array(
100 'show_theme_font' => array(
101 'setting' => array(
102 'default' => true,
103 ),
104 'control' => array(
105 'label' => esc_html__( 'Use Theme Font', 'everest-forms' ),
106 'section' => 'everest_forms_general_font',
107 'type' => 'EVF_Customize_Toggle_Control',
108 ),
109 ),
110 'font_family' => array(
111 'setting' => array(
112 'default' => '',
113 'sanitize_callback' => 'sanitize_text_field',
114 ),
115 'control' => array(
116 'label' => esc_html__( 'Font Family', 'everest-forms' ),
117 'description' => esc_html__( 'Select a desire Google font.', 'everest-forms' ),
118 'section' => 'everest_forms_general_font',
119 'type' => 'EVF_Customize_Select2_Control',
120 'input_attrs' => array(
121 'data-allow_clear' => true,
122 'data-placeholder' => _x( 'Select Font Family&hellip;', 'enhanced select', 'everest-forms' ),
123 ),
124 'custom_args' => array(
125 'google_font' => true,
126 ),
127 ),
128 ),
129 );
130
131 $controls['form_container'] = array(
132 'width' => array(
133 'setting' => array(
134 'default' => '100',
135 'sanitize_callback' => 'sanitize_text_field',
136 ),
137 'control' => array(
138 'label' => esc_html__( 'Width', 'everest-forms' ),
139 'description' => esc_html__( 'Choose a form width (in %).', 'everest-forms' ),
140 'section' => 'everest_forms_general_form_container',
141 'type' => 'EVF_Customize_Slider_Control',
142 'input_attrs' => array(
143 'min' => 50,
144 'max' => 100,
145 'step' => 1,
146 ),
147 ),
148 ),
149 'border_type' => array(
150 'setting' => array(
151 'default' => 'none',
152 'sanitize_callback' => 'sanitize_text_field',
153 ),
154 'control' => array(
155 'type' => 'select',
156 'label' => esc_html__( 'Border Type', 'everest-forms' ),
157 'description' => esc_html__( 'This is form wrapper border type', 'everest-forms' ),
158 'section' => 'everest_forms_general_form_container',
159 'choices' => array(
160 'none' => esc_html__( 'None', 'everest-forms' ),
161 'hidden' => esc_html__( 'Hidden', 'everest-forms' ),
162 'dotted' => esc_html__( 'Dotted', 'everest-forms' ),
163 'dashed' => esc_html__( 'Dashed', 'everest-forms' ),
164 'solid' => esc_html__( 'Solid', 'everest-forms' ),
165 'double' => esc_html__( 'Double', 'everest-forms' ),
166 'groove' => esc_html__( 'Groove', 'everest-forms' ),
167 'ridge' => esc_html__( 'Ridge', 'everest-forms' ),
168 'inset' => esc_html__( 'Inset', 'everest-forms' ),
169 'outset' => esc_html__( 'Outset', 'everest-forms' ),
170 'initial' => esc_html__( 'Initial', 'everest-forms' ),
171 'inherit' => esc_html__( 'Inherit', 'everest-forms' ),
172 ),
173 ),
174 ),
175 'border_width' => array(
176 'setting' => array(
177 'default' => array(
178 'top' => 1,
179 'right' => 1,
180 'bottom' => 1,
181 'left' => 1,
182 ),
183 ),
184 'control' => array(
185 'label' => esc_html__( 'Border Width', 'everest-forms' ),
186 'description' => esc_html__( 'This is a form button border width.', 'everest-forms' ),
187 'section' => 'everest_forms_general_form_container',
188 'type' => 'EVF_Customize_Dimension_Control',
189 'input_attrs' => array(
190 'min' => 0,
191 ),
192 'custom_args' => array(
193 'anchor' => true,
194 'input_type' => 'number',
195 ),
196 ),
197 ),
198 'border_color' => array(
199 'setting' => array(
200 'default' => '#969696',
201 ),
202 'control' => array(
203 'label' => esc_html__( 'Border Color', 'everest-forms' ),
204 'description' => esc_html__( 'This is a form border color.', 'everest-forms' ),
205 'section' => 'everest_forms_general_form_container',
206 'type' => 'EVF_Customize_Color_Control',
207 'custom_args' => array(
208 'alpha' => true,
209 ),
210 ),
211 ),
212 'border_radius' => array(
213 'setting' => array(
214 'default' => array(
215 'top' => 0,
216 'right' => 0,
217 'bottom' => 0,
218 'left' => 0,
219 'unit' => 'px',
220 ),
221 ),
222 'control' => array(
223 'label' => esc_html__( 'Border Radius', 'everest-forms' ),
224 'description' => esc_html__( 'This is a form border radius.', 'everest-forms' ),
225 'section' => 'everest_forms_general_form_container',
226 'type' => 'EVF_Customize_Dimension_Control',
227 'input_attrs' => array(
228 'min' => 0,
229 ),
230 'custom_args' => array(
231 'anchor' => true,
232 'input_type' => 'number',
233 'unit_choices' => array(
234 'px' => esc_attr__( 'PX', 'everest-forms' ),
235 '%' => esc_attr__( '%', 'everest-forms' ),
236 ),
237 ),
238 ),
239 ),
240 'background_image' => array(
241 'setting' => array(
242 'default' => get_theme_support( 'custom-background', 'default-image' ),
243 'sanitize_callback' => array( $customize, '_sanitize_background_setting' ),
244 ),
245 'control' => array(
246 'label' => esc_html__( 'Background Image', 'everest-forms' ),
247 'section' => 'everest_forms_general_form_container',
248 'type' => 'EVF_Customize_Background_Image_Control',
249 ),
250 ),
251 'background_preset' => array(
252 'setting' => array(
253 'default' => get_theme_support( 'custom-background', 'default-preset' ),
254 'sanitize_callback' => array( $customize, '_sanitize_background_setting' ),
255 ),
256 'control' => array(
257 'label' => esc_html__( 'Background Preset', 'everest-forms' ),
258 'section' => 'everest_forms_general_form_container',
259 'type' => 'select',
260 'choices' => array(
261 'default' => _x( 'Default', 'Default Preset', 'everest-forms' ),
262 'fill' => esc_html__( 'Fill Screen', 'everest-forms' ),
263 'fit' => esc_html__( 'Fit to Screen', 'everest-forms' ),
264 'repeat' => _x( 'Repeat', 'Repeat Image', 'everest-forms' ),
265 'custom' => _x( 'Custom', 'Custom Preset', 'everest-forms' ),
266 ),
267 ),
268 ),
269 'background_position' => array(
270 'settings' => array(
271 'background_position_x' => array(
272 'default' => get_theme_support( 'custom-background', 'default-position-x' ),
273 'sanitize_callback' => array( $customize, '_sanitize_background_setting' ),
274 ),
275 'background_position_y' => array(
276 'default' => get_theme_support( 'custom-background', 'default-position-y' ),
277 'theme_supports' => 'custom-background',
278 'sanitize_callback' => array( $customize, '_sanitize_background_setting' ),
279 ),
280 ),
281 'control' => array(
282 'label' => esc_html__( 'Image Position', 'everest-forms' ),
283 'section' => 'everest_forms_general_form_container',
284 'type' => 'WP_Customize_Background_Position_Control',
285 'settings' => array(
286 'x' => 'background_position_x',
287 'y' => 'background_position_y',
288 ),
289 ),
290 ),
291 'background_size' => array(
292 'setting' => array(
293 'default' => get_theme_support( 'custom-background', 'default-size' ),
294 'sanitize_callback' => array( $customize, '_sanitize_background_setting' ),
295 ),
296 'control' => array(
297 'label' => esc_html__( 'Image Size', 'everest-forms' ),
298 'section' => 'everest_forms_general_form_container',
299 'type' => 'select',
300 'choices' => array(
301 'auto' => esc_html__( 'Original', 'everest-forms' ),
302 'contain' => esc_html__( 'Fit to Screen', 'everest-forms' ),
303 'cover' => esc_html__( 'Fill Screen', 'everest-forms' ),
304 ),
305 ),
306 ),
307 'background_repeat' => array(
308 'setting' => array(
309 'default' => get_theme_support( 'custom-background', 'default-repeat' ),
310 'sanitize_callback' => array( $customize, '_sanitize_background_setting' ),
311 ),
312 'control' => array(
313 'label' => esc_html__( 'Repeat Background Image', 'everest-forms' ),
314 'section' => 'everest_forms_general_form_container',
315 'type' => 'checkbox',
316 ),
317 ),
318 'background_attachment' => array(
319 'setting' => array(
320 'default' => get_theme_support( 'custom-background', 'default-attachment' ),
321 'sanitize_callback' => array( $customize, '_sanitize_background_setting' ),
322 ),
323 'control' => array(
324 'label' => esc_html__( 'Scroll with Page', 'everest-forms' ),
325 'section' => 'everest_forms_general_form_container',
326 'type' => 'checkbox',
327 ),
328 ),
329 'opacity' => array(
330 'setting' => array(
331 'default' => '1',
332 'sanitize_callback' => 'sanitize_text_field',
333 ),
334 'control' => array(
335 'label' => esc_html__( 'Image Opacity', 'everest-forms' ),
336 'description' => esc_html__( 'Choose a Image opacity (in %).', 'everest-forms' ),
337 'section' => 'everest_forms_general_form_container',
338 'type' => 'EVF_Customize_Slider_Control',
339 'input_attrs' => array(
340 'min' => 0.0,
341 'max' => 1.0,
342 'step' => 0.1,
343 ),
344 ),
345 ),
346 'margin' => array(
347 'setting' => array(
348 'default' => array(
349 'desktop' => array(
350 'top' => 0,
351 'right' => 0,
352 'bottom' => 30,
353 'left' => 0,
354 ),
355 ),
356 ),
357 'control' => array(
358 'label' => esc_html__( 'Form Margin', 'everest-forms' ),
359 'description' => esc_html__( 'This is a form margin.', 'everest-forms' ),
360 'section' => 'everest_forms_general_form_container',
361 'type' => 'EVF_Customize_Dimension_Control',
362 'custom_args' => array(
363 'anchor' => true,
364 'responsive' => true,
365 'input_type' => 'number',
366 ),
367 ),
368 ),
369 'padding' => array(
370 'setting' => array(
371 'default' => array(
372 'desktop' => array(
373 'top' => 0,
374 'right' => 0,
375 'bottom' => 0,
376 'left' => 0,
377 ),
378 ),
379 ),
380 'control' => array(
381 'label' => esc_html__( 'Form Padding', 'everest-forms' ),
382 'description' => esc_html__( 'This is a form padding.', 'everest-forms' ),
383 'section' => 'everest_forms_general_form_container',
384 'type' => 'EVF_Customize_Dimension_Control',
385 'input_attrs' => array(
386 'min' => 0,
387 ),
388 'custom_args' => array(
389 'anchor' => true,
390 'responsive' => true,
391 'input_type' => 'number',
392 ),
393 ),
394 ),
395 );
396
397 $controls['field_styles'] = array(
398 'border_type' => array(
399 'setting' => array(
400 'default' => 'solid',
401 'sanitize_callback' => 'sanitize_text_field',
402 ),
403 'control' => array(
404 'type' => 'select',
405 'label' => esc_html__( 'Border Type', 'everest-forms' ),
406 'description' => esc_html__( 'This is form field border type', 'everest-forms' ),
407 'section' => 'everest_forms_general_field_styles',
408 'choices' => array(
409 'none' => esc_html__( 'None', 'everest-forms' ),
410 'hidden' => esc_html__( 'Hidden', 'everest-forms' ),
411 'dotted' => esc_html__( 'Dotted', 'everest-forms' ),
412 'dashed' => esc_html__( 'Dashed', 'everest-forms' ),
413 'solid' => esc_html__( 'Solid', 'everest-forms' ),
414 'double' => esc_html__( 'Double', 'everest-forms' ),
415 'groove' => esc_html__( 'Groove', 'everest-forms' ),
416 'ridge' => esc_html__( 'Ridge', 'everest-forms' ),
417 'inset' => esc_html__( 'Inset', 'everest-forms' ),
418 'outset' => esc_html__( 'Outset', 'everest-forms' ),
419 'initial' => esc_html__( 'Initial', 'everest-forms' ),
420 'inherit' => esc_html__( 'Inherit', 'everest-forms' ),
421 ),
422 ),
423 ),
424 'border_width' => array(
425 'setting' => array(
426 'default' => array(
427 'top' => 1,
428 'right' => 1,
429 'bottom' => 1,
430 'left' => 1,
431 ),
432 ),
433 'control' => array(
434 'label' => esc_html__( 'Border Width', 'everest-forms' ),
435 'description' => esc_html__( 'This is a form field border width.', 'everest-forms' ),
436 'section' => 'everest_forms_general_field_styles',
437 'type' => 'EVF_Customize_Dimension_Control',
438 'input_attrs' => array(
439 'min' => 0,
440 ),
441 'custom_args' => array(
442 'anchor' => true,
443 'input_type' => 'number',
444 ),
445 ),
446 ),
447 'border_radius' => array(
448 'setting' => array(
449 'default' => array(
450 'top' => 3,
451 'right' => 3,
452 'bottom' => 3,
453 'left' => 3,
454 'unit' => 'px',
455 ),
456 ),
457 'control' => array(
458 'label' => esc_html__( 'Border Radius', 'everest-forms' ),
459 'description' => esc_html__( 'This is a form field border radius.', 'everest-forms' ),
460 'section' => 'everest_forms_general_field_styles',
461 'type' => 'EVF_Customize_Dimension_Control',
462 'input_attrs' => array(
463 'min' => 0,
464 ),
465 'custom_args' => array(
466 'anchor' => true,
467 'input_type' => 'number',
468 'unit_choices' => array(
469 'px' => esc_attr__( 'PX', 'everest-forms' ),
470 '%' => esc_attr__( '%', 'everest-forms' ),
471 ),
472 ),
473 ),
474 ),
475 );
476
477 $controls['file_upload_styles'] = array(
478 'border_type' => array(
479 'setting' => array(
480 'default' => 'dashed',
481 'sanitize_callback' => 'sanitize_text_field',
482 ),
483 'control' => array(
484 'type' => 'select',
485 'label' => esc_html__( 'Border Type', 'everest-forms' ),
486 'description' => esc_html__( 'Set the border type for file upload fields.', 'everest-forms' ),
487 'section' => 'everest_forms_file_upload_styles',
488 'choices' => array(
489 'dashed' => esc_html__( 'Dashed', 'everest-forms' ),
490 'dotted' => esc_html__( 'Dotted', 'everest-forms' ),
491 ),
492 ),
493 ),
494 'border_width' => array(
495 'setting' => array(
496 'default' => array(
497 'top' => 1,
498 'right' => 1,
499 'bottom' => 1,
500 'left' => 1,
501 ),
502 ),
503 'control' => array(
504 'label' => esc_html__( 'Border Width', 'everest-forms' ),
505 'description' => esc_html__( 'Set the border width for file upload fields.', 'everest-forms' ),
506 'section' => 'everest_forms_file_upload_styles',
507 'type' => 'EVF_Customize_Dimension_Control',
508 'input_attrs' => array(
509 'min' => 0,
510 ),
511 'custom_args' => array(
512 'anchor' => true,
513 'input_type' => 'number',
514 ),
515 ),
516 ),
517 'border_radius' => array(
518 'setting' => array(
519 'default' => array(
520 'top' => 0,
521 'right' => 0,
522 'bottom' => 0,
523 'left' => 0,
524 'unit' => 'px',
525 ),
526 ),
527 'control' => array(
528 'label' => esc_html__( 'Border Radius', 'everest-forms' ),
529 'description' => esc_html__( 'Set the border radius for file upload fields.', 'everest-forms' ),
530 'section' => 'everest_forms_file_upload_styles',
531 'type' => 'EVF_Customize_Dimension_Control',
532 'input_attrs' => array(
533 'min' => 0,
534 ),
535 'custom_args' => array(
536 'anchor' => true,
537 'input_type' => 'number',
538 'unit_choices' => array(
539 'px' => esc_attr__( 'PX', 'everest-forms' ),
540 '%' => esc_attr__( '%', 'everest-forms' ),
541 ),
542 ),
543 ),
544 ),
545 );
546 $controls['button'] = array(
547 'border_type' => array(
548 'setting' => array(
549 'default' => 'solid',
550 'sanitize_callback' => 'sanitize_text_field',
551 ),
552 'control' => array(
553 'type' => 'select',
554 'label' => esc_html__( 'Border Type', 'everest-forms' ),
555 'description' => esc_html__( 'This is form field border type', 'everest-forms' ),
556 'section' => 'everest_forms_general_buttons',
557 'choices' => array(
558 'none' => esc_html__( 'None', 'everest-forms' ),
559 'hidden' => esc_html__( 'Hidden', 'everest-forms' ),
560 'dotted' => esc_html__( 'Dotted', 'everest-forms' ),
561 'dashed' => esc_html__( 'Dashed', 'everest-forms' ),
562 'solid' => esc_html__( 'Solid', 'everest-forms' ),
563 'double' => esc_html__( 'Double', 'everest-forms' ),
564 'groove' => esc_html__( 'Groove', 'everest-forms' ),
565 'ridge' => esc_html__( 'Ridge', 'everest-forms' ),
566 'inset' => esc_html__( 'Inset', 'everest-forms' ),
567 'outset' => esc_html__( 'Outset', 'everest-forms' ),
568 'initial' => esc_html__( 'Initial', 'everest-forms' ),
569 'inherit' => esc_html__( 'Inherit', 'everest-forms' ),
570 ),
571 ),
572 ),
573 'border_width' => array(
574 'setting' => array(
575 'default' => array(
576 'top' => 1,
577 'right' => 1,
578 'bottom' => 1,
579 'left' => 1,
580 ),
581 ),
582 'control' => array(
583 'label' => esc_html__( 'Border Width', 'everest-forms' ),
584 'description' => esc_html__( 'This is a form button border width.', 'everest-forms' ),
585 'section' => 'everest_forms_general_buttons',
586 'type' => 'EVF_Customize_Dimension_Control',
587 'input_attrs' => array(
588 'min' => 0,
589 ),
590 'custom_args' => array(
591 'anchor' => true,
592 'input_type' => 'number',
593 ),
594 ),
595 ),
596 'border_radius' => array(
597 'setting' => array(
598 'default' => array(
599 'top' => 3,
600 'right' => 3,
601 'bottom' => 3,
602 'left' => 3,
603 'unit' => 'px',
604 ),
605 ),
606 'control' => array(
607 'label' => esc_html__( 'Border Radius', 'everest-forms' ),
608 'description' => esc_html__( 'This is a button border radius.', 'everest-forms' ),
609 'section' => 'everest_forms_general_buttons',
610 'type' => 'EVF_Customize_Dimension_Control',
611 'input_attrs' => array(
612 'min' => 0,
613 ),
614 'custom_args' => array(
615 'anchor' => true,
616 'input_type' => 'number',
617 'unit_choices' => array(
618 'px' => esc_attr__( 'PX', 'everest-forms' ),
619 '%' => esc_attr__( '%', 'everest-forms' ),
620 ),
621 ),
622 ),
623 ),
624 );
625
626 $controls['typography'] = array(
627 'field_labels' => array(
628 'setting' => array(
629 'default' => '',
630 'sanitize_callback' => 'sanitize_text_field',
631 ),
632 'control' => array(
633 'label' => esc_html__( 'Field Labels', 'everest-forms' ),
634 'section' => 'everest_forms_general_typography',
635 'type' => 'EVF_Customize_Toggle_Control',
636 'custom_args' => array(
637 'class' => 'accordion-toggle',
638 ),
639 ),
640 ),
641 'field_labels_font_size' => array(
642 'setting' => array(
643 'default' => '14',
644 'sanitize_callback' => 'sanitize_text_field',
645 ),
646 'control' => array(
647 'label' => esc_html__( 'Font Size', 'everest-forms' ),
648 'description' => esc_html__( 'This is a form field label font size (px).', 'everest-forms' ),
649 'section' => 'everest_forms_general_typography',
650 'type' => 'EVF_Customize_Slider_Control',
651 'input_attrs' => array(
652 'min' => 1,
653 'max' => 100,
654 'step' => 1,
655 ),
656 ),
657 ),
658 'field_labels_font_style' => array(
659 'setting' => array(
660 'default' => array(
661 'bold' => true,
662 'italic' => false,
663 'underline' => false,
664 'uppercase' => false,
665 ),
666 ),
667 'control' => array(
668 'label' => esc_html__( 'Font Style', 'everest-forms' ),
669 'description' => esc_html__( 'This is a form field label font style.', 'everest-forms' ),
670 'section' => 'everest_forms_general_typography',
671 'type' => 'EVF_Customize_Image_Checkbox_Control',
672 'choices' => array(
673 'bold' => array(
674 'name' => esc_html__( 'Bold', 'everest-forms' ),
675 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/bold.svg', EVF_PLUGIN_FILE ),
676 ),
677 'italic' => array(
678 'name' => esc_html__( 'Italic', 'everest-forms' ),
679 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/italic.svg', EVF_PLUGIN_FILE ),
680 ),
681 'underline' => array(
682 'name' => esc_html__( 'Underline', 'everest-forms' ),
683 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/underline.svg', EVF_PLUGIN_FILE ),
684 ),
685 'uppercase' => array(
686 'name' => esc_html__( 'Uppercase', 'everest-forms' ),
687 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/uppercase.svg', EVF_PLUGIN_FILE ),
688 ),
689 ),
690 ),
691 ),
692 'field_labels_text_alignment' => array(
693 'setting' => array(
694 'default' => 'left',
695 'sanitize_callback' => 'sanitize_text_field',
696 ),
697 'control' => array(
698 'label' => esc_html__( 'Text Alignment', 'everest-forms' ),
699 'description' => esc_html__( 'This is a form field label text alignment.', 'everest-forms' ),
700 'section' => 'everest_forms_general_typography',
701 'type' => 'EVF_Customize_Image_Radio_Control',
702 'choices' => array(
703 'left' => array(
704 'name' => esc_html__( 'Left', 'everest-forms' ),
705 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-left.svg', EVF_PLUGIN_FILE ),
706 ),
707 'center' => array(
708 'name' => esc_html__( 'Center', 'everest-forms' ),
709 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-center.svg', EVF_PLUGIN_FILE ),
710 ),
711 'right' => array(
712 'name' => esc_html__( 'Right', 'everest-forms' ),
713 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-right.svg', EVF_PLUGIN_FILE ),
714 ),
715 ),
716 ),
717 ),
718 'field_labels_line_height' => array(
719 'setting' => array(
720 'default' => '1.7',
721 'sanitize_callback' => 'sanitize_text_field',
722 ),
723 'control' => array(
724 'label' => esc_html__( 'Line Height', 'everest-forms' ),
725 'description' => esc_html__( 'This is a form field label line height.', 'everest-forms' ),
726 'section' => 'everest_forms_general_typography',
727 'type' => 'EVF_Customize_Slider_Control',
728 'input_attrs' => array(
729 'min' => 1,
730 'max' => 3,
731 'step' => .01,
732 ),
733 ),
734 ),
735 'field_labels_margin' => array(
736 'setting' => array(
737 'default' => array(
738 'desktop' => array(
739 'top' => 0,
740 'right' => 0,
741 'bottom' => 10,
742 'left' => 0,
743 ),
744 ),
745 ),
746 'control' => array(
747 'label' => esc_html__( 'Margin', 'everest-forms' ),
748 'description' => esc_html__( 'This is a form field label margin.', 'everest-forms' ),
749 'section' => 'everest_forms_general_typography',
750 'type' => 'EVF_Customize_Dimension_Control',
751 'custom_args' => array(
752 'anchor' => true,
753 'responsive' => true,
754 'input_type' => 'number',
755 ),
756 ),
757 ),
758 'field_labels_padding' => array(
759 'setting' => array(
760 'default' => array(
761 'desktop' => array(
762 'top' => 0,
763 'right' => 0,
764 'bottom' => 0,
765 'left' => 0,
766 ),
767 ),
768 ),
769 'control' => array(
770 'label' => esc_html__( 'Padding', 'everest-forms' ),
771 'description' => esc_html__( 'This is a form field label padding.', 'everest-forms' ),
772 'section' => 'everest_forms_general_typography',
773 'type' => 'EVF_Customize_Dimension_Control',
774 'input_attrs' => array(
775 'min' => 0,
776 ),
777 'custom_args' => array(
778 'anchor' => true,
779 'responsive' => true,
780 'input_type' => 'number',
781 ),
782 ),
783 ),
784 'field_sublabels' => array(
785 'setting' => array(
786 'default' => '',
787 'sanitize_callback' => 'sanitize_text_field',
788 ),
789 'control' => array(
790 'label' => esc_html__( 'Field sublabels', 'everest-forms' ),
791 'section' => 'everest_forms_general_typography',
792 'type' => 'EVF_Customize_Toggle_Control',
793 'custom_args' => array(
794 'class' => 'accordion-toggle',
795 ),
796 ),
797 ),
798 'field_sublabels_font_size' => array(
799 'setting' => array(
800 'default' => '12',
801 'sanitize_callback' => 'sanitize_text_field',
802 ),
803 'control' => array(
804 'label' => esc_html__( 'Font Size', 'everest-forms' ),
805 'description' => esc_html__( 'This is a form field sublabel font size (px).', 'everest-forms' ),
806 'section' => 'everest_forms_general_typography',
807 'type' => 'EVF_Customize_Slider_Control',
808 'input_attrs' => array(
809 'min' => 1,
810 'max' => 100,
811 'step' => 1,
812 ),
813 ),
814 ),
815 'field_sublabels_font_style' => array(
816 'setting' => array(
817 'default' => array(
818 'bold' => false,
819 'italic' => false,
820 'underline' => false,
821 'uppercase' => false,
822 ),
823 ),
824 'control' => array(
825 'label' => esc_html__( 'Font Style', 'everest-forms' ),
826 'description' => esc_html__( 'This is a form field sublabel font style.', 'everest-forms' ),
827 'section' => 'everest_forms_general_typography',
828 'type' => 'EVF_Customize_Image_Checkbox_Control',
829 'choices' => array(
830 'bold' => array(
831 'name' => esc_html__( 'Bold', 'everest-forms' ),
832 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/bold.svg', EVF_PLUGIN_FILE ),
833 ),
834 'italic' => array(
835 'name' => esc_html__( 'Italic', 'everest-forms' ),
836 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/italic.svg', EVF_PLUGIN_FILE ),
837 ),
838 'underline' => array(
839 'name' => esc_html__( 'Underline', 'everest-forms' ),
840 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/underline.svg', EVF_PLUGIN_FILE ),
841 ),
842 'uppercase' => array(
843 'name' => esc_html__( 'Uppercase', 'everest-forms' ),
844 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/uppercase.svg', EVF_PLUGIN_FILE ),
845 ),
846 ),
847 ),
848 ),
849 'field_sublabels_text_alignment' => array(
850 'setting' => array(
851 'default' => 'left',
852 'sanitize_callback' => 'sanitize_text_field',
853 ),
854 'control' => array(
855 'label' => esc_html__( 'Text Alignment', 'everest-forms' ),
856 'description' => esc_html__( 'This is a form field sublabel text alignment.', 'everest-forms' ),
857 'section' => 'everest_forms_general_typography',
858 'type' => 'EVF_Customize_Image_Radio_Control',
859 'choices' => array(
860 'left' => array(
861 'name' => esc_html__( 'Left', 'everest-forms' ),
862 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-left.svg', EVF_PLUGIN_FILE ),
863 ),
864 'center' => array(
865 'name' => esc_html__( 'Center', 'everest-forms' ),
866 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-center.svg', EVF_PLUGIN_FILE ),
867 ),
868 'right' => array(
869 'name' => esc_html__( 'Right', 'everest-forms' ),
870 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-right.svg', EVF_PLUGIN_FILE ),
871 ),
872 ),
873 ),
874 ),
875 'field_sublabels_line_height' => array(
876 'setting' => array(
877 'default' => '1.5',
878 'sanitize_callback' => 'sanitize_text_field',
879 ),
880 'control' => array(
881 'label' => esc_html__( 'Line Height', 'everest-forms' ),
882 'description' => esc_html__( 'This is a form field sublabel line height.', 'everest-forms' ),
883 'section' => 'everest_forms_general_typography',
884 'type' => 'EVF_Customize_Slider_Control',
885 'input_attrs' => array(
886 'min' => 1,
887 'max' => 3,
888 'step' => .01,
889 ),
890 ),
891 ),
892 'field_sublabels_margin' => array(
893 'setting' => array(
894 'default' => array(
895 'desktop' => array(
896 'top' => 0,
897 'right' => 0,
898 'bottom' => 10,
899 'left' => 0,
900 ),
901 ),
902 ),
903 'control' => array(
904 'label' => esc_html__( 'Margin', 'everest-forms' ),
905 'description' => esc_html__( 'This is a form field sublabel margin.', 'everest-forms' ),
906 'section' => 'everest_forms_general_typography',
907 'type' => 'EVF_Customize_Dimension_Control',
908 'custom_args' => array(
909 'anchor' => true,
910 'responsive' => true,
911 'input_type' => 'number',
912 ),
913 ),
914 ),
915 'field_sublabels_padding' => array(
916 'setting' => array(
917 'default' => array(
918 'desktop' => array(
919 'top' => 0,
920 'right' => 0,
921 'bottom' => 0,
922 'left' => 0,
923 ),
924 ),
925 ),
926 'control' => array(
927 'label' => esc_html__( 'Padding', 'everest-forms' ),
928 'description' => esc_html__( 'This is a form field sublabel padding.', 'everest-forms' ),
929 'section' => 'everest_forms_general_typography',
930 'type' => 'EVF_Customize_Dimension_Control',
931 'input_attrs' => array(
932 'min' => 0,
933 ),
934 'custom_args' => array(
935 'anchor' => true,
936 'responsive' => true,
937 'input_type' => 'number',
938 ),
939 ),
940 ),
941 'field_styles' => array(
942 'setting' => array(
943 'default' => '',
944 'sanitize_callback' => 'sanitize_text_field',
945 ),
946 'control' => array(
947 'label' => esc_html__( 'Field Styles', 'everest-forms' ),
948 'section' => 'everest_forms_general_typography',
949 'type' => 'EVF_Customize_Toggle_Control',
950 'custom_args' => array(
951 'class' => 'accordion-toggle',
952 ),
953 ),
954 ),
955 'field_styles_font_size' => array(
956 'setting' => array(
957 'default' => '14',
958 'sanitize_callback' => 'sanitize_text_field',
959 ),
960 'control' => array(
961 'label' => esc_html__( 'Font Size', 'everest-forms' ),
962 'description' => esc_html__( 'This is a form field style font size in px.', 'everest-forms' ),
963 'section' => 'everest_forms_general_typography',
964 'type' => 'EVF_Customize_Slider_Control',
965 'input_attrs' => array(
966 'min' => 1,
967 'max' => 100,
968 'step' => 1,
969 ),
970 ),
971 ),
972 'field_styles_font_color' => array(
973 'setting' => array(
974 'default' => '#575757',
975 ),
976 'control' => array(
977 'label' => esc_html__( 'Font Color', 'everest-forms' ),
978 'description' => esc_html__( 'This is a form field style font color.', 'everest-forms' ),
979 'section' => 'everest_forms_general_typography',
980 'type' => 'EVF_Customize_Color_Control',
981 ),
982 ),
983 'field_styles_placeholder_font_color' => array(
984 'setting' => array(
985 'default' => '#c6ccd7',
986 ),
987 'control' => array(
988 'label' => esc_html__( 'Placeholder Font Color', 'everest-forms' ),
989 'description' => esc_html__( 'This is a form field style placeholder font color.', 'everest-forms' ),
990 'section' => 'everest_forms_general_typography',
991 'type' => 'EVF_Customize_Color_Control',
992 ),
993 ),
994 'field_styles_font_style' => array(
995 'setting' => array(
996 'default' => array(
997 'bold' => false,
998 'italic' => false,
999 'underline' => false,
1000 'uppercase' => false,
1001 ),
1002 ),
1003 'control' => array(
1004 'label' => esc_html__( 'Font Style', 'everest-forms' ),
1005 'description' => esc_html__( 'This is a form field style font style.', 'everest-forms' ),
1006 'section' => 'everest_forms_general_typography',
1007 'type' => 'EVF_Customize_Image_Checkbox_Control',
1008 'choices' => array(
1009 'bold' => array(
1010 'name' => esc_html__( 'Bold', 'everest-forms' ),
1011 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/bold.svg', EVF_PLUGIN_FILE ),
1012 ),
1013 'italic' => array(
1014 'name' => esc_html__( 'Italic', 'everest-forms' ),
1015 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/italic.svg', EVF_PLUGIN_FILE ),
1016 ),
1017 'underline' => array(
1018 'name' => esc_html__( 'Underline', 'everest-forms' ),
1019 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/underline.svg', EVF_PLUGIN_FILE ),
1020 ),
1021 'uppercase' => array(
1022 'name' => esc_html__( 'Uppercase', 'everest-forms' ),
1023 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/uppercase.svg', EVF_PLUGIN_FILE ),
1024 ),
1025 ),
1026 ),
1027 ),
1028 'field_styles_alignment' => array(
1029 'setting' => array(
1030 'default' => 'left',
1031 'sanitize_callback' => 'sanitize_text_field',
1032 ),
1033 'control' => array(
1034 'label' => esc_html__( 'Alignment', 'everest-forms' ),
1035 'description' => esc_html__( 'This is a form field alignment.', 'everest-forms' ),
1036 'section' => 'everest_forms_general_typography',
1037 'type' => 'EVF_Customize_Image_Radio_Control',
1038 'choices' => array(
1039 'left' => array(
1040 'name' => esc_html__( 'Left', 'everest-forms' ),
1041 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-left.svg', EVF_PLUGIN_FILE ),
1042 ),
1043 'center' => array(
1044 'name' => esc_html__( 'Center', 'everest-forms' ),
1045 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-center.svg', EVF_PLUGIN_FILE ),
1046 ),
1047 'right' => array(
1048 'name' => esc_html__( 'Right', 'everest-forms' ),
1049 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-right.svg', EVF_PLUGIN_FILE ),
1050 ),
1051 ),
1052 ),
1053 ),
1054
1055 'field_styles_border_color' => array(
1056 'setting' => array(
1057 'default' => '#969696',
1058 ),
1059 'control' => array(
1060 'label' => esc_html__( 'Border Color', 'everest-forms' ),
1061 'description' => esc_html__( 'This is a form field style border color.', 'everest-forms' ),
1062 'section' => 'everest_forms_general_typography',
1063 'type' => 'EVF_Customize_Color_Control',
1064 'custom_args' => array(
1065 'alpha' => true,
1066 ),
1067 ),
1068 ),
1069 'field_styles_border_focus_color' => array(
1070 'setting' => array(
1071 'default' => '#7ca8eb',
1072 ),
1073 'control' => array(
1074 'label' => esc_html__( 'Border Focus Color', 'everest-forms' ),
1075 'description' => esc_html__( 'This is a form field style border color on focus.', 'everest-forms' ),
1076 'section' => 'everest_forms_general_typography',
1077 'type' => 'EVF_Customize_Color_Control',
1078 'custom_args' => array(
1079 'alpha' => true,
1080 ),
1081 ),
1082 ),
1083
1084 'field_styles_margin' => array(
1085 'setting' => array(
1086 'default' => array(
1087 'desktop' => array(
1088 'top' => 0,
1089 'right' => 0,
1090 'bottom' => 10,
1091 'left' => 0,
1092 ),
1093 ),
1094 ),
1095 'control' => array(
1096 'label' => esc_html__( 'Field Margin', 'everest-forms' ),
1097 'description' => esc_html__( 'This is a form field margin.', 'everest-forms' ),
1098 'section' => 'everest_forms_general_typography',
1099 'type' => 'EVF_Customize_Dimension_Control',
1100 'custom_args' => array(
1101 'anchor' => true,
1102 'responsive' => true,
1103 'input_type' => 'number',
1104 ),
1105 ),
1106 ),
1107 'field_styles_padding' => array(
1108 'setting' => array(
1109 'default' => array(
1110 'desktop' => array(
1111 'top' => 6,
1112 'right' => 12,
1113 'bottom' => 6,
1114 'left' => 12,
1115 ),
1116 ),
1117 ),
1118 'control' => array(
1119 'label' => esc_html__( 'Field Padding', 'everest-forms' ),
1120 'description' => esc_html__( 'This is a form field padding.', 'everest-forms' ),
1121 'section' => 'everest_forms_general_typography',
1122 'type' => 'EVF_Customize_Dimension_Control',
1123 'input_attrs' => array(
1124 'min' => 0,
1125 ),
1126 'custom_args' => array(
1127 'anchor' => true,
1128 'responsive' => true,
1129 'input_type' => 'number',
1130 ),
1131 ),
1132 ),
1133 'field_description' => array(
1134 'setting' => array(
1135 'default' => '',
1136 'sanitize_callback' => 'sanitize_text_field',
1137 ),
1138 'control' => array(
1139 'label' => esc_html__( 'Field Description', 'everest-forms' ),
1140 'section' => 'everest_forms_general_typography',
1141 'type' => 'EVF_Customize_Toggle_Control',
1142 'custom_args' => array(
1143 'class' => 'accordion-toggle',
1144 ),
1145 ),
1146 ),
1147 'field_description_font_size' => array(
1148 'setting' => array(
1149 'default' => '14',
1150 'sanitize_callback' => 'sanitize_text_field',
1151 ),
1152 'control' => array(
1153 'label' => esc_html__( 'Font Size', 'everest-forms' ),
1154 'description' => esc_html__( 'This is a form field description font size (px).', 'everest-forms' ),
1155 'section' => 'everest_forms_general_typography',
1156 'type' => 'EVF_Customize_Slider_Control',
1157 'input_attrs' => array(
1158 'min' => 10,
1159 'max' => 50,
1160 'step' => 1,
1161 ),
1162 ),
1163 ),
1164 'field_description_font_color' => array(
1165 'setting' => array(
1166 'default' => '#575757',
1167 ),
1168 'control' => array(
1169 'label' => esc_html__( 'Font Color', 'everest-forms' ),
1170 'description' => esc_html__( 'This is a form field description font color.', 'everest-forms' ),
1171 'section' => 'everest_forms_general_typography',
1172 'type' => 'EVF_Customize_Color_Control',
1173 ),
1174 ),
1175 'field_description_font_style' => array(
1176 'setting' => array(
1177 'default' => array(
1178 'bold' => false,
1179 'italic' => false,
1180 'underline' => false,
1181 'uppercase' => false,
1182 ),
1183 ),
1184 'control' => array(
1185 'label' => esc_html__( 'Font Style', 'everest-forms' ),
1186 'description' => esc_html__( 'This is a form field description font style.', 'everest-forms' ),
1187 'section' => 'everest_forms_general_typography',
1188 'type' => 'EVF_Customize_Image_Checkbox_Control',
1189 'choices' => array(
1190 'bold' => array(
1191 'name' => esc_html__( 'Bold', 'everest-forms' ),
1192 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/bold.svg', EVF_PLUGIN_FILE ),
1193 ),
1194 'italic' => array(
1195 'name' => esc_html__( 'Italic', 'everest-forms' ),
1196 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/italic.svg', EVF_PLUGIN_FILE ),
1197 ),
1198 'underline' => array(
1199 'name' => esc_html__( 'Underline', 'everest-forms' ),
1200 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/underline.svg', EVF_PLUGIN_FILE ),
1201 ),
1202 'uppercase' => array(
1203 'name' => esc_html__( 'Uppercase', 'everest-forms' ),
1204 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/uppercase.svg', EVF_PLUGIN_FILE ),
1205 ),
1206 ),
1207 ),
1208 ),
1209 'field_description_text_alignment' => array(
1210 'setting' => array(
1211 'default' => 'left',
1212 'sanitize_callback' => 'sanitize_text_field',
1213 ),
1214 'control' => array(
1215 'label' => esc_html__( 'Text Alignment', 'everest-forms' ),
1216 'description' => esc_html__( 'This is a form field description text alignment.', 'everest-forms' ),
1217 'section' => 'everest_forms_general_typography',
1218 'type' => 'EVF_Customize_Image_Radio_Control',
1219 'choices' => array(
1220 'left' => array(
1221 'name' => esc_html__( 'Left', 'everest-forms' ),
1222 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-left.svg', EVF_PLUGIN_FILE ),
1223 ),
1224 'center' => array(
1225 'name' => esc_html__( 'Center', 'everest-forms' ),
1226 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-center.svg', EVF_PLUGIN_FILE ),
1227 ),
1228 'right' => array(
1229 'name' => esc_html__( 'Right', 'everest-forms' ),
1230 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-right.svg', EVF_PLUGIN_FILE ),
1231 ),
1232 ),
1233 ),
1234 ),
1235 'field_description_line_height' => array(
1236 'setting' => array(
1237 'default' => '1.7',
1238 'sanitize_callback' => 'sanitize_text_field',
1239 ),
1240 'control' => array(
1241 'label' => esc_html__( 'Line Height', 'everest-forms' ),
1242 'description' => esc_html__( 'This is a form field description line height.', 'everest-forms' ),
1243 'section' => 'everest_forms_general_typography',
1244 'type' => 'EVF_Customize_Slider_Control',
1245 'input_attrs' => array(
1246 'min' => 1,
1247 'max' => 3,
1248 'step' => .01,
1249 ),
1250 ),
1251 ),
1252 'field_description_margin' => array(
1253 'setting' => array(
1254 'default' => array(
1255 'desktop' => array(
1256 'top' => 0,
1257 'right' => 0,
1258 'bottom' => 10,
1259 'left' => 0,
1260 ),
1261 ),
1262 ),
1263 'control' => array(
1264 'label' => esc_html__( 'Margin', 'everest-forms' ),
1265 'description' => esc_html__( 'This is a form field description margin.', 'everest-forms' ),
1266 'section' => 'everest_forms_general_typography',
1267 'type' => 'EVF_Customize_Dimension_Control',
1268 'custom_args' => array(
1269 'anchor' => true,
1270 'responsive' => true,
1271 'input_type' => 'number',
1272 ),
1273 ),
1274 ),
1275 'field_description_padding' => array(
1276 'setting' => array(
1277 'default' => array(
1278 'desktop' => array(
1279 'top' => 0,
1280 'right' => 0,
1281 'bottom' => 0,
1282 'left' => 0,
1283 ),
1284 ),
1285 ),
1286 'control' => array(
1287 'label' => esc_html__( 'Padding', 'everest-forms' ),
1288 'description' => esc_html__( 'This is a form field description padding.', 'everest-forms' ),
1289 'section' => 'everest_forms_general_typography',
1290 'type' => 'EVF_Customize_Dimension_Control',
1291 'input_attrs' => array(
1292 'min' => 0,
1293 ),
1294 'custom_args' => array(
1295 'anchor' => true,
1296 'responsive' => true,
1297 'input_type' => 'number',
1298 ),
1299 ),
1300 ),
1301 'section_title' => array(
1302 'setting' => array(
1303 'default' => '',
1304 'sanitize_callback' => 'sanitize_text_field',
1305 ),
1306 'control' => array(
1307 'label' => esc_html__( 'Section Title', 'everest-forms' ),
1308 'section' => 'everest_forms_general_typography',
1309 'type' => 'EVF_Customize_Toggle_Control',
1310 'custom_args' => array(
1311 'class' => 'accordion-toggle',
1312 ),
1313 ),
1314 ),
1315 'section_title_font_size' => array(
1316 'setting' => array(
1317 'default' => '16',
1318 'sanitize_callback' => 'sanitize_text_field',
1319 ),
1320 'control' => array(
1321 'label' => esc_html__( 'Font Size', 'everest-forms' ),
1322 'description' => esc_html__( 'This is a section title font size.', 'everest-forms' ),
1323 'section' => 'everest_forms_general_typography',
1324 'type' => 'EVF_Customize_Slider_Control',
1325 'input_attrs' => array(
1326 'min' => 1,
1327 'max' => 100,
1328 'step' => 1,
1329 ),
1330 ),
1331 ),
1332 'section_title_font_color' => array(
1333 'setting' => array(
1334 'default' => '#575757',
1335 ),
1336 'control' => array(
1337 'label' => esc_html__( 'Font Color', 'everest-forms' ),
1338 'description' => esc_html__( 'This is a section title font color.', 'everest-forms' ),
1339 'section' => 'everest_forms_general_typography',
1340 'type' => 'EVF_Customize_Color_Control',
1341 'custom_args' => array(
1342 'alpha' => true,
1343 ),
1344 ),
1345 ),
1346 'section_title_font_style' => array(
1347 'setting' => array(
1348 'default' => array(
1349 'bold' => true,
1350 'italic' => false,
1351 'underline' => false,
1352 'uppercase' => false,
1353 ),
1354 ),
1355 'control' => array(
1356 'label' => esc_html__( 'Font Style', 'everest-forms' ),
1357 'description' => esc_html__( 'This is a form section title font style.', 'everest-forms' ),
1358 'section' => 'everest_forms_general_typography',
1359 'type' => 'EVF_Customize_Image_Checkbox_Control',
1360 'choices' => array(
1361 'bold' => array(
1362 'name' => esc_html__( 'Bold', 'everest-forms' ),
1363 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/bold.svg', EVF_PLUGIN_FILE ),
1364 ),
1365 'italic' => array(
1366 'name' => esc_html__( 'Italic', 'everest-forms' ),
1367 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/italic.svg', EVF_PLUGIN_FILE ),
1368 ),
1369 'underline' => array(
1370 'name' => esc_html__( 'Underline', 'everest-forms' ),
1371 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/underline.svg', EVF_PLUGIN_FILE ),
1372 ),
1373 'uppercase' => array(
1374 'name' => esc_html__( 'Uppercase', 'everest-forms' ),
1375 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/uppercase.svg', EVF_PLUGIN_FILE ),
1376 ),
1377 ),
1378 ),
1379 ),
1380 'section_title_text_alignment' => array(
1381 'setting' => array(
1382 'default' => 'left',
1383 'sanitize_callback' => 'sanitize_text_field',
1384 ),
1385 'control' => array(
1386 'label' => esc_html__( 'Text Alignment', 'everest-forms' ),
1387 'description' => esc_html__( 'This is a section title text alignment.', 'everest-forms' ),
1388 'section' => 'everest_forms_general_typography',
1389 'type' => 'EVF_Customize_Image_Radio_Control',
1390 'choices' => array(
1391 'left' => array(
1392 'name' => esc_html__( 'Left', 'everest-forms' ),
1393 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-left.svg', EVF_PLUGIN_FILE ),
1394 ),
1395 'center' => array(
1396 'name' => esc_html__( 'Center', 'everest-forms' ),
1397 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-center.svg', EVF_PLUGIN_FILE ),
1398 ),
1399 'right' => array(
1400 'name' => esc_html__( 'Right', 'everest-forms' ),
1401 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-right.svg', EVF_PLUGIN_FILE ),
1402 ),
1403 ),
1404 ),
1405 ),
1406 'section_title_line_height' => array(
1407 'setting' => array(
1408 'default' => '1.5',
1409 'sanitize_callback' => 'sanitize_text_field',
1410 ),
1411 'control' => array(
1412 'label' => esc_html__( 'Line Height', 'everest-forms' ),
1413 'description' => esc_html__( 'This is a section title line height.', 'everest-forms' ),
1414 'section' => 'everest_forms_general_typography',
1415 'type' => 'EVF_Customize_Slider_Control',
1416 'input_attrs' => array(
1417 'min' => 1,
1418 'max' => 3,
1419 'step' => .01,
1420 ),
1421 ),
1422 ),
1423 'section_title_margin' => array(
1424 'setting' => array(
1425 'default' => array(
1426 'desktop' => array(
1427 'top' => 25,
1428 'right' => 0,
1429 'bottom' => 25,
1430 'left' => 0,
1431 ),
1432 ),
1433 ),
1434 'control' => array(
1435 'label' => esc_html__( 'Form Margin', 'everest-forms' ),
1436 'description' => esc_html__( 'This is a section title margin.', 'everest-forms' ),
1437 'section' => 'everest_forms_general_typography',
1438 'type' => 'EVF_Customize_Dimension_Control',
1439 'custom_args' => array(
1440 'anchor' => true,
1441 'responsive' => true,
1442 'input_type' => 'number',
1443 ),
1444 ),
1445 ),
1446 'section_title_padding' => array(
1447 'setting' => array(
1448 'default' => array(
1449 'desktop' => array(
1450 'top' => 0,
1451 'right' => 0,
1452 'bottom' => 0,
1453 'left' => 0,
1454 ),
1455 ),
1456 ),
1457 'control' => array(
1458 'label' => esc_html__( 'Form Padding', 'everest-forms' ),
1459 'description' => esc_html__( 'This is a section title padding.', 'everest-forms' ),
1460 'section' => 'everest_forms_general_typography',
1461 'type' => 'EVF_Customize_Dimension_Control',
1462 'input_attrs' => array(
1463 'min' => 0,
1464 ),
1465 'custom_args' => array(
1466 'anchor' => true,
1467 'responsive' => true,
1468 'input_type' => 'number',
1469 ),
1470 ),
1471 ),
1472 'file_upload' => array(
1473 'setting' => array(
1474 'default' => '',
1475 'sanitize_callback' => 'sanitize_text_field',
1476 ),
1477 'control' => array(
1478 'label' => esc_html__( 'File Upload', 'everest-forms' ),
1479 'section' => 'everest_forms_general_typography',
1480 'type' => 'EVF_Customize_Toggle_Control',
1481 'custom_args' => array(
1482 'class' => 'accordion-toggle',
1483 ),
1484 ),
1485 ),
1486 'file_upload_font_size' => array(
1487 'setting' => array(
1488 'default' => '14',
1489 'sanitize_callback' => 'sanitize_text_field',
1490 ),
1491 'control' => array(
1492 'label' => esc_html__( 'Font Size', 'everest-forms' ),
1493 'description' => esc_html__( 'Set the font-size(px) for file upload fields.', 'everest-forms' ),
1494 'section' => 'everest_forms_general_typography',
1495 'type' => 'EVF_Customize_Slider_Control',
1496 'input_attrs' => array(
1497 'min' => 1,
1498 'max' => 100,
1499 'step' => 1,
1500 ),
1501 ),
1502 ),
1503 'file_upload_font_color' => array(
1504 'setting' => array(
1505 'default' => '#494d50',
1506 ),
1507 'control' => array(
1508 'label' => esc_html__( 'Font Color', 'everest-forms' ),
1509 'description' => esc_html__( 'Select the font color for file upload fields.', 'everest-forms' ),
1510 'section' => 'everest_forms_general_typography',
1511 'type' => 'EVF_Customize_Color_Control',
1512 ),
1513 ),
1514 'file_upload_background_color' => array(
1515 'setting' => array(
1516 'default' => 'rgba(255,255,255,0.99)',
1517 ),
1518 'control' => array(
1519 'label' => esc_html__( 'File Upload Background', 'everest-forms' ),
1520 'description' => esc_html__( 'Choose background color for file upload fields.', 'everest-forms' ),
1521 'section' => 'everest_forms_general_typography',
1522 'type' => 'EVF_Customize_Color_Control',
1523 'custom_args' => array(
1524 'alpha' => true,
1525 ),
1526 ),
1527 ),
1528 'file_upload_icon_background_color' => array(
1529 'setting' => array(
1530 'default' => 'rgba(255,255,255,0.99)',
1531 ),
1532 'control' => array(
1533 'label' => esc_html__( 'Icon Background', 'everest-forms' ),
1534 'description' => esc_html__( 'Choose background color for icon inside the file upload fields.', 'everest-forms' ),
1535 'section' => 'everest_forms_general_typography',
1536 'type' => 'EVF_Customize_Color_Control',
1537 'custom_args' => array(
1538 'alpha' => true,
1539 ),
1540 ),
1541 ),
1542 'file_upload_icon_color' => array(
1543 'setting' => array(
1544 'default' => '#494d50',
1545 ),
1546 'control' => array(
1547 'label' => esc_html__( 'Icon Color', 'everest-forms' ),
1548 'description' => esc_html__( 'Fill color for icon inside file upload fields.', 'everest-forms' ),
1549 'section' => 'everest_forms_general_typography',
1550 'type' => 'EVF_Customize_Color_Control',
1551 ),
1552 ),
1553 'file_upload_border_color' => array(
1554 'setting' => array(
1555 'default' => '#8e98a2',
1556 ),
1557 'control' => array(
1558 'label' => esc_html__( 'Border Color', 'everest-forms' ),
1559 'description' => esc_html__( 'Choose the border color for file upload fields.', 'everest-forms' ),
1560 'section' => 'everest_forms_general_typography',
1561 'type' => 'EVF_Customize_Color_Control',
1562 'custom_args' => array(
1563 'alpha' => true,
1564 ),
1565 ),
1566 ),
1567 'file_upload_margin' => array(
1568 'setting' => array(
1569 'default' => array(
1570 'desktop' => array(
1571 'top' => 0,
1572 'right' => 0,
1573 'bottom' => 10,
1574 'left' => 0,
1575 ),
1576 ),
1577 ),
1578 'control' => array(
1579 'label' => esc_html__( 'File Upload Margin', 'everest-forms' ),
1580 'description' => esc_html__( 'Set the margins for file upload fields.', 'everest-forms' ),
1581 'section' => 'everest_forms_general_typography',
1582 'type' => 'EVF_Customize_Dimension_Control',
1583 'custom_args' => array(
1584 'anchor' => true,
1585 'responsive' => true,
1586 'input_type' => 'number',
1587 ),
1588 ),
1589 ),
1590 'file_upload_padding' => array(
1591 'setting' => array(
1592 'default' => array(
1593 'desktop' => array(
1594 'top' => 6,
1595 'right' => 12,
1596 'bottom' => 6,
1597 'left' => 12,
1598 ),
1599 ),
1600 ),
1601 'control' => array(
1602 'label' => esc_html__( 'File Uploads Padding', 'everest-forms' ),
1603 'description' => esc_html__( 'Set the paddings for file upload fields.', 'everest-forms' ),
1604 'section' => 'everest_forms_general_typography',
1605 'type' => 'EVF_Customize_Dimension_Control',
1606 'input_attrs' => array(
1607 'min' => 0,
1608 ),
1609 'custom_args' => array(
1610 'anchor' => true,
1611 'responsive' => true,
1612 'input_type' => 'number',
1613 ),
1614 ),
1615 ),
1616 'checkbox_radio' => array(
1617 'setting' => array(
1618 'default' => '',
1619 'sanitize_callback' => 'sanitize_text_field',
1620 ),
1621 'control' => array(
1622 'label' => esc_html__( 'Radio/Checkbox Styles', 'everest-forms' ),
1623 'section' => 'everest_forms_general_typography',
1624 'type' => 'EVF_Customize_Toggle_Control',
1625 'custom_args' => array(
1626 'class' => 'accordion-toggle',
1627 ),
1628 ),
1629 ),
1630 'checkbox_radio_font_size' => array(
1631 'setting' => array(
1632 'default' => '14',
1633 'sanitize_callback' => 'sanitize_text_field',
1634 ),
1635 'control' => array(
1636 'label' => esc_html__( 'Font Size', 'everest-forms' ),
1637 'description' => esc_html__( 'This is a form checkbox/radio font size (px).', 'everest-forms' ),
1638 'section' => 'everest_forms_general_typography',
1639 'type' => 'EVF_Customize_Slider_Control',
1640 'input_attrs' => array(
1641 'min' => 12,
1642 'max' => 50,
1643 'step' => 1,
1644 ),
1645 ),
1646 ),
1647 'checkbox_radio_font_color' => array(
1648 'setting' => array(
1649 'default' => '#575757',
1650 ),
1651 'control' => array(
1652 'label' => esc_html__( 'Font Color', 'everest-forms' ),
1653 'description' => esc_html__( 'This is a form checkbox/radio font color.', 'everest-forms' ),
1654 'section' => 'everest_forms_general_typography',
1655 'type' => 'EVF_Customize_Color_Control',
1656 ),
1657 ),
1658 'checkbox_radio_font_style' => array(
1659 'setting' => array(
1660 'default' => array(
1661 'bold' => false,
1662 'italic' => false,
1663 'underline' => false,
1664 'uppercase' => false,
1665 ),
1666 ),
1667 'control' => array(
1668 'label' => esc_html__( 'Font Style', 'everest-forms' ),
1669 'description' => esc_html__( 'This is a form checkbox/radio font style.', 'everest-forms' ),
1670 'section' => 'everest_forms_general_typography',
1671 'type' => 'EVF_Customize_Image_Checkbox_Control',
1672 'choices' => array(
1673 'bold' => array(
1674 'name' => esc_html__( 'Bold', 'everest-forms' ),
1675 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/bold.svg', EVF_PLUGIN_FILE ),
1676 ),
1677 'italic' => array(
1678 'name' => esc_html__( 'Italic', 'everest-forms' ),
1679 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/italic.svg', EVF_PLUGIN_FILE ),
1680 ),
1681 'underline' => array(
1682 'name' => esc_html__( 'Underline', 'everest-forms' ),
1683 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/underline.svg', EVF_PLUGIN_FILE ),
1684 ),
1685 'uppercase' => array(
1686 'name' => esc_html__( 'Uppercase', 'everest-forms' ),
1687 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/uppercase.svg', EVF_PLUGIN_FILE ),
1688 ),
1689 ),
1690 ),
1691 ),
1692 'checkbox_radio_alignment' => array(
1693 'setting' => array(
1694 'default' => 'left',
1695 'sanitize_callback' => 'sanitize_text_field',
1696 ),
1697 'control' => array(
1698 'label' => esc_html__( 'Alignment', 'everest-forms' ),
1699 'description' => esc_html__( 'This is a form field alignment only for default style.', 'everest-forms' ),
1700 'section' => 'everest_forms_general_typography',
1701 'type' => 'EVF_Customize_Image_Radio_Control',
1702 'choices' => array(
1703 'left' => array(
1704 'name' => esc_html__( 'Left', 'everest-forms' ),
1705 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-left.svg', EVF_PLUGIN_FILE ),
1706 ),
1707 'center' => array(
1708 'name' => esc_html__( 'Center', 'everest-forms' ),
1709 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-center.svg', EVF_PLUGIN_FILE ),
1710 ),
1711 'right' => array(
1712 'name' => esc_html__( 'Right', 'everest-forms' ),
1713 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-right.svg', EVF_PLUGIN_FILE ),
1714 ),
1715 ),
1716 ),
1717 ),
1718 'checkbox_radio_style_variation' => array(
1719 'setting' => array(
1720 'default' => 'default',
1721 ),
1722 'control' => array(
1723 'label' => esc_html__( 'Style Variation', 'everest-forms' ),
1724 'description' => esc_html__( 'This is a form radio/checkbox style variation.', 'everest-forms' ),
1725 'section' => 'everest_forms_general_typography',
1726 'type' => 'radio',
1727 'choices' => array(
1728 'default' => esc_html__( 'Default', 'everest-forms' ),
1729 'outline' => esc_html__( 'Outline', 'everest-forms' ),
1730 'filled' => esc_html__( 'Filled', 'everest-forms' ),
1731 ),
1732 ),
1733 ),
1734 'checkbox_radio_size' => array(
1735 'setting' => array(
1736 'default' => '16',
1737 'sanitize_callback' => 'sanitize_text_field',
1738 ),
1739 'control' => array(
1740 'label' => esc_html__( 'Radio/Checkbox Size', 'everest-forms' ),
1741 'description' => esc_html__( 'This is a form checkbox/radio size (px).', 'everest-forms' ),
1742 'section' => 'everest_forms_general_typography',
1743 'type' => 'EVF_Customize_Slider_Control',
1744 'input_attrs' => array(
1745 'min' => 16,
1746 'max' => 50,
1747 'step' => 1,
1748 ),
1749 ),
1750 ),
1751 'checkbox_radio_color' => array(
1752 'setting' => array(
1753 'default' => '#575757',
1754 ),
1755 'control' => array(
1756 'label' => esc_html__( 'Radio/Checkbox Color', 'everest-forms' ),
1757 'description' => esc_html__( 'This is a form checkbox/radio color.', 'everest-forms' ),
1758 'section' => 'everest_forms_general_typography',
1759 'type' => 'EVF_Customize_Color_Control',
1760 ),
1761 ),
1762 'checkbox_radio_checked_color' => array(
1763 'setting' => array(
1764 'default' => '#575757',
1765 ),
1766 'control' => array(
1767 'label' => esc_html__( 'Radio/Checkbox Checked Color', 'everest-forms' ),
1768 'description' => esc_html__( 'This is a form checkbox/radio checked color.', 'everest-forms' ),
1769 'section' => 'everest_forms_general_typography',
1770 'type' => 'EVF_Customize_Color_Control',
1771 ),
1772 ),
1773 'checkbox_radio_margin' => array(
1774 'setting' => array(
1775 'default' => array(
1776 'desktop' => array(
1777 'top' => 0,
1778 'right' => 20,
1779 'bottom' => 5,
1780 'left' => 0,
1781 ),
1782 ),
1783 ),
1784 'control' => array(
1785 'label' => esc_html__( 'Form Margin', 'everest-forms' ),
1786 'description' => esc_html__( 'This is a form radio/checkbox margin.', 'everest-forms' ),
1787 'section' => 'everest_forms_general_typography',
1788 'type' => 'EVF_Customize_Dimension_Control',
1789 'custom_args' => array(
1790 'anchor' => true,
1791 'responsive' => true,
1792 'input_type' => 'number',
1793 ),
1794 ),
1795 ),
1796 'button' => array(
1797 'setting' => array(
1798 'default' => '',
1799 'sanitize_callback' => 'sanitize_text_field',
1800 ),
1801 'control' => array(
1802 'label' => esc_html__( 'Button', 'everest-forms' ),
1803 'section' => 'everest_forms_general_typography',
1804 'type' => 'EVF_Customize_Toggle_Control',
1805 'custom_args' => array(
1806 'class' => 'accordion-toggle',
1807 ),
1808 ),
1809 ),
1810 'button_font_size' => array(
1811 'setting' => array(
1812 'default' => '14',
1813 'sanitize_callback' => 'sanitize_text_field',
1814 ),
1815 'control' => array(
1816 'label' => esc_html__( 'Font Size', 'everest-forms' ),
1817 'description' => esc_html__( 'This is a form button font size (px).', 'everest-forms' ),
1818 'section' => 'everest_forms_general_typography',
1819 'type' => 'EVF_Customize_Slider_Control',
1820 'input_attrs' => array(
1821 'min' => 1,
1822 'max' => 100,
1823 'step' => 1,
1824 ),
1825 ),
1826 ),
1827 'button_font_style' => array(
1828 'setting' => array(
1829 'default' => array(
1830 'bold' => false,
1831 'italic' => false,
1832 'underline' => false,
1833 'uppercase' => false,
1834 ),
1835 ),
1836 'control' => array(
1837 'label' => esc_html__( 'Font Style', 'everest-forms' ),
1838 'description' => esc_html__( 'This is a form button font style.', 'everest-forms' ),
1839 'section' => 'everest_forms_general_typography',
1840 'type' => 'EVF_Customize_Image_Checkbox_Control',
1841 'choices' => array(
1842 'bold' => array(
1843 'name' => esc_html__( 'Bold', 'everest-forms' ),
1844 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/bold.svg', EVF_PLUGIN_FILE ),
1845 ),
1846 'italic' => array(
1847 'name' => esc_html__( 'Italic', 'everest-forms' ),
1848 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/italic.svg', EVF_PLUGIN_FILE ),
1849 ),
1850 'underline' => array(
1851 'name' => esc_html__( 'Underline', 'everest-forms' ),
1852 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/underline.svg', EVF_PLUGIN_FILE ),
1853 ),
1854 'uppercase' => array(
1855 'name' => esc_html__( 'Uppercase', 'everest-forms' ),
1856 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/uppercase.svg', EVF_PLUGIN_FILE ),
1857 ),
1858 ),
1859 ),
1860 ),
1861
1862 'button_hover_font_color' => array(
1863 'setting' => array(
1864 'default' => '#23282d',
1865 'sanitize_callback' => 'sanitize_text_field',
1866 ),
1867 'control' => array(
1868 'label' => esc_html__( 'Hover Font Color', 'everest-forms' ),
1869 'description' => esc_html__( 'This is a form button hover font color.', 'everest-forms' ),
1870 'section' => 'everest_forms_general_typography',
1871 'type' => 'EVF_Customize_Color_Control',
1872 ),
1873 ),
1874 'button_hover_background_color' => array(
1875 'setting' => array(
1876 'default' => '#eeeeee',
1877 'sanitize_callback' => 'sanitize_text_field',
1878 ),
1879 'control' => array(
1880 'label' => esc_html__( 'Button Hover Color', 'everest-forms' ),
1881 'description' => esc_html__( 'This is a form button hover color.', 'everest-forms' ),
1882 'section' => 'everest_forms_general_typography',
1883 'type' => 'EVF_Customize_Color_Control',
1884 ),
1885 ),
1886 'button_alignment' => array(
1887 'setting' => array(
1888 'default' => 'left',
1889 'sanitize_callback' => 'sanitize_text_field',
1890 ),
1891 'control' => array(
1892 'label' => __( 'Button Alignment', 'everest-forms' ),
1893 'description' => __( 'This is a form button alignment.', 'everest-forms' ),
1894 'section' => 'everest_forms_general_typography',
1895 'type' => 'EVF_Customize_Image_Radio_Control',
1896 'choices' => array(
1897 'left' => array(
1898 'name' => __( 'Left', 'everest-forms' ),
1899 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-left.svg', EVF_PLUGIN_FILE ),
1900 ),
1901 'center' => array(
1902 'name' => __( 'Center', 'everest-forms' ),
1903 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-center.svg', EVF_PLUGIN_FILE ),
1904 ),
1905 'right' => array(
1906 'name' => __( 'Right', 'everest-forms' ),
1907 'image' => plugins_url( 'addons/StyleCustomizer/assets/images/align-right.svg', EVF_PLUGIN_FILE ),
1908 ),
1909 ),
1910 ),
1911 ),
1912
1913 'button_border_color' => array(
1914 'setting' => array(
1915 'default' => '#cccccc',
1916 'sanitize_callback' => 'sanitize_text_field',
1917 ),
1918 'control' => array(
1919 'label' => esc_html__( 'Border Color', 'everest-forms' ),
1920 'description' => esc_html__( 'This is a form button style border color.', 'everest-forms' ),
1921 'section' => 'everest_forms_general_typography',
1922 'type' => 'EVF_Customize_Color_Control',
1923 ),
1924 ),
1925 'button_border_hover_color' => array(
1926 'setting' => array(
1927 'default' => '#cccccc',
1928 'sanitize_callback' => 'sanitize_text_field',
1929 ),
1930 'control' => array(
1931 'label' => esc_html__( 'Border Hover Color', 'everest-forms' ),
1932 'description' => esc_html__( 'This is a form button style border color in hover.', 'everest-forms' ),
1933 'section' => 'everest_forms_general_typography',
1934 'type' => 'EVF_Customize_Color_Control',
1935 ),
1936 ),
1937 'button_line_height' => array(
1938 'setting' => array(
1939 'default' => '1.5',
1940 'sanitize_callback' => 'sanitize_text_field',
1941 ),
1942 'control' => array(
1943 'label' => esc_html__( 'Line Height', 'everest-forms' ),
1944 'description' => esc_html__( 'This is a form button line height.', 'everest-forms' ),
1945 'section' => 'everest_forms_general_typography',
1946 'type' => 'EVF_Customize_Slider_Control',
1947 'input_attrs' => array(
1948 'min' => 1,
1949 'max' => 3,
1950 'step' => .01,
1951 ),
1952 ),
1953 ),
1954 'button_margin' => array(
1955 'setting' => array(
1956 'default' => array(
1957 'desktop' => array(
1958 'top' => 0,
1959 'right' => 0,
1960 'bottom' => 0,
1961 'left' => 0,
1962 ),
1963 ),
1964 ),
1965 'control' => array(
1966 'label' => esc_html__( 'Button Margin', 'everest-forms' ),
1967 'description' => esc_html__( 'This is a form button margin.', 'everest-forms' ),
1968 'section' => 'everest_forms_general_typography',
1969 'type' => 'EVF_Customize_Dimension_Control',
1970 'custom_args' => array(
1971 'anchor' => true,
1972 'responsive' => true,
1973 'input_type' => 'number',
1974 ),
1975 ),
1976 ),
1977 'button_padding' => array(
1978 'setting' => array(
1979 'default' => array(
1980 'desktop' => array(
1981 'top' => 10,
1982 'right' => 15,
1983 'bottom' => 10,
1984 'left' => 15,
1985 ),
1986 ),
1987 ),
1988 'control' => array(
1989 'label' => esc_html__( 'Button Padding', 'everest-forms' ),
1990 'description' => esc_html__( 'This is a form button padding.', 'everest-forms' ),
1991 'section' => 'everest_forms_general_typography',
1992 'type' => 'EVF_Customize_Dimension_Control',
1993 'input_attrs' => array(
1994 'min' => 0,
1995 ),
1996 'custom_args' => array(
1997 'anchor' => true,
1998 'responsive' => true,
1999 'input_type' => 'number',
2000 ),
2001 ),
2002 ),
2003
2004 );
2005
2006 return $controls;
2007 }
2008 add_filter( 'everest_forms_style_customizer_controls', 'evf_style_customizer_wrapper_controls', 10, 2 );
2009