PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.8.9
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.8.9
4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 All 203 releases
betterdocs / includes / Admin / Customizer / Sections / FaqBuilder.php

FaqBuilder.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 3.8.9, at includes/Admin/Customizer/Sections/FaqBuilder.php

1,521 lines 42.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPDeveloper\BetterDocs\Admin\Customizer\Sections;
4
5 use WP_Customize_Control;
6 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\SelectControl;
7 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\ToggleControl;
8 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\SeparatorControl;
9 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\AlphaColorControl;
10 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\RadioImageControl;
11 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\RangeValueControl;
12 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\MultiDimensionControl;
13
14 class FaqBuilder extends Section {
15 /**
16 * Section Priority
17 * @var int
18 */
19 protected $priority = 600;
20
21 /**
22 * Get the section id.
23 * @return string
24 */
25 public function get_id() {
26 return 'betterdocs_faq_section';
27 }
28
29 /**
30 * Get the title of the section.
31 * @return string
32 */
33 public function get_title() {
34 return __( 'FAQ', 'betterdocs' );
35 }
36
37 public function section_seperator() {
38 $this->customizer->add_setting(
39 'betterdocs_faq_section_seperator',
40 [
41 'default' => $this->defaults['betterdocs_faq_section_seperator'],
42 'sanitize_callback' => 'esc_html'
43 ]
44 );
45
46 $this->customizer->add_control(
47 new SeparatorControl(
48 $this->customizer,
49 'betterdocs_faq_section_seperator',
50 [
51 'label' => __( 'Docs Page FAQ', 'betterdocs' ),
52 'settings' => 'betterdocs_faq_section_seperator',
53 'section' => 'betterdocs_faq_section',
54 'priority' => 624
55 ]
56 )
57 );
58 }
59
60 public function faq_switch() {
61 $this->customizer->add_setting(
62 'betterdocs_faq_switch',
63 [
64 'default' => $this->defaults['betterdocs_faq_switch'],
65 'capability' => 'edit_theme_options'
66 ]
67 );
68
69 $this->customizer->add_control(
70 new ToggleControl(
71 $this->customizer,
72 'betterdocs_faq_switch',
73 [
74 'label' => __( 'Enable FAQ', 'betterdocs' ),
75 'section' => 'betterdocs_faq_section',
76 'settings' => 'betterdocs_faq_switch',
77 'type' => 'light', // light, ios, flat
78 'priority' => 625
79 ]
80 )
81 );
82 }
83
84 public function select_specific_faq() {
85 $this->customizer->add_setting(
86 'betterdocs_select_specific_faq',
87 [
88 'default' => $this->defaults['betterdocs_select_specific_faq'],
89 'capability' => 'edit_theme_options'
90 ]
91 );
92
93 $this->customizer->add_control(
94 new WP_Customize_Control(
95 $this->customizer,
96 'betterdocs_select_specific_faq',
97 [
98 'label' => __( 'Select FAQ Groups', 'betterdocs' ),
99 'section' => 'betterdocs_faq_section',
100 'settings' => 'betterdocs_select_specific_faq',
101 'type' => 'select',
102 'choices' => betterdocs()->query->get_faq_terms(
103 [
104 'all' => __( 'Show All', 'betterdocs' )
105 ]
106 ),
107 'priority' => 626
108 ]
109 )
110 );
111 }
112
113 public function select_faq_template() {
114 $this->customizer->add_setting(
115 'betterdocs_select_faq_template',
116 [
117 'default' => $this->defaults['betterdocs_select_faq_template'],
118 'capability' => 'edit_theme_options',
119 'sanitize_callback' => [ $this->sanitizer, 'select' ]
120 ]
121 );
122
123 $this->customizer->add_control(
124 new RadioImageControl(
125 $this->customizer,
126 'betterdocs_select_faq_template',
127 [
128 'type' => 'betterdocs-radio-image',
129 'settings' => 'betterdocs_select_faq_template',
130 'section' => 'betterdocs_faq_section',
131 'label' => __( 'Select FAQ Layout', 'betterdocs' ),
132 'priority' => 627,
133 'choices' => [
134 'layout-3' => [
135 'label' => __( 'Abstract Layout', 'betterdocs' ),
136 'image' => $this->assets->icon( 'customizer/faq/layout-3.png', true )
137 ],
138 'layout-1' => [
139 'label' => __( 'Modern Layout', 'betterdocs' ),
140 'image' => $this->assets->icon( 'customizer/faq/layout-1.png', true )
141 ],
142 'layout-2' => [
143 'label' => __( 'Classic Layout', 'betterdocs' ),
144 'image' => $this->assets->icon( 'customizer/faq/layout-2.png', true )
145 ],
146 'layout-4' => [
147 'label' => __( 'Retro Layout', 'betterdocs' ),
148 'image' => $this->assets->icon( 'customizer/faq/layout-4.png', true )
149 ],
150 ]
151 ]
152 )
153 );
154 }
155
156 public function faq_title_text() {
157 $this->customizer->add_setting(
158 'betterdocs_faq_title_text',
159 [
160 'default' => $this->defaults['betterdocs_faq_title_text'],
161 'capability' => 'edit_theme_options',
162 'sanitize_callback' => 'esc_html'
163 ]
164 );
165
166 $this->customizer->add_control(
167 new SelectControl(
168 $this->customizer,
169 'betterdocs_faq_title_text',
170 [
171 'label' => __( 'Section Title Text', 'betterdocs' ),
172 'section' => 'betterdocs_faq_section',
173 'priority' => 628,
174 'settings' => 'betterdocs_faq_title_text',
175 'type' => 'text'
176 ]
177 )
178 );
179 }
180
181 public function faq_title_margin() {
182 $this->customizer->add_setting(
183 'betterdocs_faq_title_margin',
184 [
185 'default' => $this->defaults['betterdocs_faq_title_margin'],
186 'transport' => 'postMessage',
187 'capability' => 'edit_theme_options'
188 ]
189 );
190
191 $this->customizer->add_control(
192 new MultiDimensionControl(
193 $this->customizer,
194 'betterdocs_faq_title_margin',
195 [
196 'label' => __( 'FAQ Section Title Margin (PX)', 'betterdocs' ),
197 'section' => 'betterdocs_faq_section',
198 'settings' => 'betterdocs_faq_title_margin',
199 'priority' => 629,
200 'input_fields' => [
201 'input1' => __( 'top', 'betterdocs' ),
202 'input2' => __( 'right', 'betterdocs' ),
203 'input3' => __( 'bottom', 'betterdocs' ),
204 'input4' => __( 'left', 'betterdocs' )
205 ],
206 'defaults' => [
207 'input1' => 0,
208 'input2' => 0,
209 'input3' => 0,
210 'input4' => 0
211 ]
212 ]
213 )
214 );
215 }
216
217 public function faq_title_color() {
218 $this->customizer->add_setting(
219 'betterdocs_faq_title_color',
220 [
221 'default' => $this->defaults['betterdocs_faq_title_color'],
222 'capability' => 'edit_theme_options',
223 'transport' => 'postMessage',
224 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
225 ]
226 );
227
228 $this->customizer->add_control(
229 new AlphaColorControl(
230 $this->customizer,
231 'betterdocs_faq_title_color',
232 [
233 'label' => __( 'Section Title Color', 'betterdocs' ),
234 'section' => 'betterdocs_faq_section',
235 'settings' => 'betterdocs_faq_title_color',
236 'priority' => 630
237 ]
238 )
239 );
240 }
241
242 public function faq_title_font_size() {
243 $this->customizer->add_setting(
244 'betterdocs_faq_title_font_size',
245 [
246 'default' => $this->defaults['betterdocs_faq_title_font_size'],
247 'capability' => 'edit_theme_options',
248 'transport' => 'postMessage',
249 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
250 ]
251 );
252
253 $this->customizer->add_control(
254 new RangeValueControl(
255 $this->customizer,
256 'betterdocs_faq_title_font_size',
257 [
258 'type' => 'betterdocs-range-value',
259 'section' => 'betterdocs_faq_section',
260 'settings' => 'betterdocs_faq_title_font_size',
261 'label' => __( 'Section Title Font Size', 'betterdocs' ),
262 'priority' => 631,
263 'input_attrs' => [
264 'class' => '',
265 'min' => 0,
266 'max' => 50,
267 'step' => 1,
268 'suffix' => 'px' // optional suffix
269 ]
270 ]
271 )
272 );
273 }
274
275 public function faq_category_title_color() {
276 $this->customizer->add_setting(
277 'betterdocs_faq_category_title_color',
278 [
279 'default' => $this->defaults['betterdocs_faq_category_title_color'],
280 'capability' => 'edit_theme_options',
281 'transport' => 'postMessage',
282 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
283 ]
284 );
285
286 $this->customizer->add_control(
287 new AlphaColorControl(
288 $this->customizer,
289 'betterdocs_faq_category_title_color',
290 [
291 'label' => __( 'Group Title Color', 'betterdocs' ),
292 'section' => 'betterdocs_faq_section',
293 'priority' => 632,
294 'settings' => 'betterdocs_faq_category_title_color'
295 ]
296 )
297 );
298 }
299
300 public function faq_category_name_font_size() {
301 $this->customizer->add_setting(
302 'betterdocs_faq_category_name_font_size',
303 [
304 'default' => $this->defaults['betterdocs_faq_category_name_font_size'],
305 'capability' => 'edit_theme_options',
306 'transport' => 'postMessage',
307 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
308
309 ]
310 );
311
312 $this->customizer->add_control(
313 new RangeValueControl(
314 $this->customizer,
315 'betterdocs_faq_category_name_font_size',
316 [
317 'type' => 'betterdocs-range-value',
318 'section' => 'betterdocs_faq_section',
319 'settings' => 'betterdocs_faq_category_name_font_size',
320 'label' => __( 'Group Title Font Size', 'betterdocs' ),
321 'priority' => 633,
322 'input_attrs' => [
323 'class' => '',
324 'min' => 0,
325 'max' => 50,
326 'step' => 1,
327 'suffix' => 'px' // optional suffix
328 ]
329 ]
330 )
331 );
332 }
333
334 public function faq_category_name_padding() {
335 $this->customizer->add_setting(
336 'betterdocs_faq_category_name_padding',
337 [
338 'default' => $this->defaults['betterdocs_faq_category_name_padding'],
339 'transport' => 'postMessage',
340 'capability' => 'edit_theme_options'
341 ]
342 );
343
344 $this->customizer->add_control(
345 new MultiDimensionControl(
346 $this->customizer,
347 'betterdocs_faq_category_name_padding',
348 [
349 'label' => __( 'Group Title Padding (PX)', 'betterdocs' ),
350 'section' => 'betterdocs_faq_section',
351 'settings' => 'betterdocs_faq_category_name_padding',
352 'priority' => 634,
353 'input_fields' => [
354 'input1' => __( 'top', 'betterdocs' ),
355 'input2' => __( 'right', 'betterdocs' ),
356 'input3' => __( 'bottom', 'betterdocs' ),
357 'input4' => __( 'left', 'betterdocs' )
358 ],
359 'defaults' => [
360 'input1' => 20,
361 'input2' => 20,
362 'input3' => 20,
363 'input4' => 20
364 ]
365 ]
366 )
367 );
368 }
369
370 public function faq_list_color() {
371 $this->customizer->add_setting(
372 'betterdocs_faq_list_color',
373 [
374 'default' => $this->defaults['betterdocs_faq_list_color'],
375 'capability' => 'edit_theme_options',
376 'transport' => 'postMessage',
377 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
378 ]
379 );
380
381 $this->customizer->add_control(
382 new AlphaColorControl(
383 $this->customizer,
384 'betterdocs_faq_list_color',
385 [
386 'label' => __( 'FAQ List Color', 'betterdocs' ),
387 'section' => 'betterdocs_faq_section',
388 'settings' => 'betterdocs_faq_list_color',
389 'priority' => 635
390 ]
391 )
392 );
393 }
394
395 public function faq_list_background_color() {
396 $this->customizer->add_setting(
397 'betterdocs_faq_list_background_color',
398 [
399 'default' => $this->defaults['betterdocs_faq_list_background_color'],
400 'capability' => 'edit_theme_options',
401 'transport' => 'postMessage',
402 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
403 ]
404 );
405
406 $this->customizer->add_control(
407 new AlphaColorControl(
408 $this->customizer,
409 'betterdocs_faq_list_background_color',
410 [
411 'label' => __( 'FAQ List Background Color', 'betterdocs' ),
412 'section' => 'betterdocs_faq_section',
413 'settings' => 'betterdocs_faq_list_background_color',
414 'priority' => 636
415 ]
416 )
417 );
418 }
419
420 public function faq_list_content_background_color() {
421 $this->customizer->add_setting(
422 'betterdocs_faq_list_content_background_color',
423 [
424 'default' => $this->defaults['betterdocs_faq_list_content_background_color'],
425 'capability' => 'edit_theme_options',
426 'transport' => 'postMessage',
427 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
428 ]
429 );
430
431 $this->customizer->add_control(
432 new AlphaColorControl(
433 $this->customizer,
434 'betterdocs_faq_list_content_background_color',
435 [
436 'label' => __( 'FAQ List Content Background Color', 'betterdocs' ),
437 'section' => 'betterdocs_faq_section',
438 'settings' => 'betterdocs_faq_list_content_background_color',
439 'priority' => 637
440 ]
441 )
442 );
443 }
444
445 public function faq_list_content_color() {
446 $this->customizer->add_setting(
447 'betterdocs_faq_list_content_color',
448 [
449 'default' => $this->defaults['betterdocs_faq_list_content_color'],
450 'capability' => 'edit_theme_options',
451 'transport' => 'postMessage',
452 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
453 ]
454 );
455
456 $this->customizer->add_control(
457 new AlphaColorControl(
458 $this->customizer,
459 'betterdocs_faq_list_content_color',
460 [
461 'label' => __( 'FAQ List Content Color', 'betterdocs' ),
462 'section' => 'betterdocs_faq_section',
463 'settings' => 'betterdocs_faq_list_content_color',
464 'priority' => 638
465 ]
466 )
467 );
468 }
469
470 public function faq_list_content_font_size() {
471 $this->customizer->add_setting(
472 'betterdocs_faq_list_content_font_size',
473 [
474 'default' => $this->defaults['betterdocs_faq_list_content_font_size'],
475 'capability' => 'edit_theme_options',
476 'transport' => 'postMessage',
477 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
478
479 ]
480 );
481
482 $this->customizer->add_control(
483 new RangeValueControl(
484 $this->customizer,
485 'betterdocs_faq_list_content_font_size',
486 [
487 'type' => 'betterdocs-range-value',
488 'section' => 'betterdocs_faq_section',
489 'settings' => 'betterdocs_faq_list_content_font_size',
490 'label' => __( 'FAQ Content Font Size', 'betterdocs' ),
491 'priority' => 639,
492 'input_attrs' => [
493 'class' => '',
494 'min' => 0,
495 'max' => 50,
496 'step' => 1,
497 'suffix' => 'px' //optional suffix
498 ]
499 ]
500 )
501 );
502 }
503
504 public function faq_list_font_size() {
505 $this->customizer->add_setting(
506 'betterdocs_faq_list_font_size',
507 [
508 'default' => $this->defaults['betterdocs_faq_list_font_size'],
509 'capability' => 'edit_theme_options',
510 'transport' => 'postMessage',
511 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
512
513 ]
514 );
515
516 $this->customizer->add_control(
517 new RangeValueControl(
518 $this->customizer,
519 'betterdocs_faq_list_font_size',
520 [
521 'type' => 'betterdocs-range-value',
522 'section' => 'betterdocs_faq_section',
523 'settings' => 'betterdocs_faq_list_font_size',
524 'label' => __( 'FAQ List Font Size', 'betterdocs' ),
525 'priority' => 640,
526 'input_attrs' => [
527 'class' => '',
528 'min' => 0,
529 'max' => 50,
530 'step' => 1,
531 'suffix' => 'px' // optional suffix
532 ]
533 ]
534 )
535 );
536 }
537
538 public function faq_list_padding() {
539 $this->customizer->add_setting(
540 'betterdocs_faq_list_padding',
541 [
542 'default' => $this->defaults['betterdocs_faq_list_padding'],
543 'transport' => 'postMessage',
544 'capability' => 'edit_theme_options'
545 ]
546 );
547
548 $this->customizer->add_control(
549 new MultiDimensionControl(
550 $this->customizer,
551 'betterdocs_faq_list_padding',
552 [
553 'label' => __( 'FAQ List Padding (PX)', 'betterdocs' ),
554 'section' => 'betterdocs_faq_section',
555 'settings' => 'betterdocs_faq_list_padding',
556 'priority' => 641,
557 'input_fields' => [
558 'input1' => __( 'top', 'betterdocs' ),
559 'input2' => __( 'right', 'betterdocs' ),
560 'input3' => __( 'bottom', 'betterdocs' ),
561 'input4' => __( 'left', 'betterdocs' )
562 ],
563 'defaults' => [
564 'input1' => 20,
565 'input2' => 20,
566 'input3' => 20,
567 'input4' => 20
568 ]
569 ]
570 )
571 );
572 }
573
574 public function faq_category_title_color_layout_2() {
575 $this->customizer->add_setting(
576 'betterdocs_faq_category_title_color_layout_2',
577 [
578 'default' => $this->defaults['betterdocs_faq_category_title_color_layout_2'],
579 'capability' => 'edit_theme_options',
580 'transport' => 'postMessage',
581 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
582 ]
583 );
584
585 $this->customizer->add_control(
586 new AlphaColorControl(
587 $this->customizer,
588 'betterdocs_faq_category_title_color_layout_2',
589 [
590 'label' => __( 'Group Title Color', 'betterdocs' ),
591 'section' => 'betterdocs_faq_section',
592 'priority' => 642,
593 'settings' => 'betterdocs_faq_category_title_color_layout_2'
594 ]
595 )
596 );
597 }
598
599 public function faq_category_name_font_size_layout_2() {
600 $this->customizer->add_setting(
601 'betterdocs_faq_category_name_font_size_layout_2',
602 [
603 'default' => $this->defaults['betterdocs_faq_category_name_font_size_layout_2'],
604 'capability' => 'edit_theme_options',
605 'transport' => 'postMessage',
606 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
607
608 ]
609 );
610
611 $this->customizer->add_control(
612 new RangeValueControl(
613 $this->customizer,
614 'betterdocs_faq_category_name_font_size_layout_2',
615 [
616 'type' => 'betterdocs-range-value',
617 'section' => 'betterdocs_faq_section',
618 'settings' => 'betterdocs_faq_category_name_font_size_layout_2',
619 'label' => __( 'Group Title Font Size', 'betterdocs' ),
620 'priority' => 643,
621 'input_attrs' => [
622 'class' => '',
623 'min' => 0,
624 'max' => 50,
625 'step' => 1,
626 'suffix' => 'px' // optional suffix
627 ]
628 ]
629 )
630 );
631 }
632
633 public function faq_category_name_padding_layout_2() {
634 $this->customizer->add_setting(
635 'betterdocs_faq_category_name_padding_layout_2',
636 [
637 'default' => $this->defaults['betterdocs_faq_category_name_padding_layout_2'],
638 'transport' => 'postMessage',
639 'capability' => 'edit_theme_options'
640 ]
641 );
642
643 $this->customizer->add_control(
644 new MultiDimensionControl(
645 $this->customizer,
646 'betterdocs_faq_category_name_padding_layout_2',
647 [
648 'label' => __( 'Group Title Padding (PX)', 'betterdocs' ),
649 'section' => 'betterdocs_faq_section',
650 'settings' => 'betterdocs_faq_category_name_padding_layout_2',
651 'priority' => 644,
652 'input_fields' => [
653 'input1' => __( 'top', 'betterdocs' ),
654 'input2' => __( 'right', 'betterdocs' ),
655 'input3' => __( 'bottom', 'betterdocs' ),
656 'input4' => __( 'left', 'betterdocs' )
657 ],
658 'defaults' => [
659 'input1' => 20,
660 'input2' => 20,
661 'input3' => 20,
662 'input4' => 20
663 ]
664 ]
665 )
666 );
667 }
668
669 public function faq_list_color_layout_2() {
670 $this->customizer->add_setting(
671 'betterdocs_faq_list_color_layout_2',
672 [
673 'default' => $this->defaults['betterdocs_faq_list_color_layout_2'],
674 'capability' => 'edit_theme_options',
675 'transport' => 'postMessage',
676 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
677 ]
678 );
679
680 $this->customizer->add_control(
681 new AlphaColorControl(
682 $this->customizer,
683 'betterdocs_faq_list_color_layout_2',
684 [
685 'label' => __( 'FAQ List Color', 'betterdocs' ),
686 'section' => 'betterdocs_faq_section',
687 'settings' => 'betterdocs_faq_list_color_layout_2',
688 'priority' => 645
689 ]
690 )
691 );
692 }
693
694 public function faq_list_background_color_layout_2() {
695 $this->customizer->add_setting(
696 'betterdocs_faq_list_background_color_layout_2',
697 [
698 'default' => $this->defaults['betterdocs_faq_list_background_color_layout_2'],
699 'capability' => 'edit_theme_options',
700 'transport' => 'postMessage',
701 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
702 ]
703 );
704
705 $this->customizer->add_control(
706 new AlphaColorControl(
707 $this->customizer,
708 'betterdocs_faq_list_background_color_layout_2',
709 [
710 'label' => __( 'FAQ List Background Color', 'betterdocs' ),
711 'section' => 'betterdocs_faq_section',
712 'settings' => 'betterdocs_faq_list_background_color_layout_2',
713 'priority' => 646
714 ]
715 )
716 );
717 }
718
719 public function faq_list_content_background_color_layout_2() {
720 $this->customizer->add_setting(
721 'betterdocs_faq_list_content_background_color_layout_2',
722 [
723 'default' => $this->defaults['betterdocs_faq_list_content_background_color_layout_2'],
724 'capability' => 'edit_theme_options',
725 'transport' => 'postMessage',
726 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
727 ]
728 );
729
730 $this->customizer->add_control(
731 new AlphaColorControl(
732 $this->customizer,
733 'betterdocs_faq_list_content_background_color_layout_2',
734 [
735 'label' => __( 'FAQ List Content Background Color', 'betterdocs' ),
736 'section' => 'betterdocs_faq_section',
737 'settings' => 'betterdocs_faq_list_content_background_color_layout_2',
738 'priority' => 647
739 ]
740 )
741 );
742 }
743
744 public function faq_list_content_color_layout_2() {
745 $this->customizer->add_setting(
746 'betterdocs_faq_list_content_color_layout_2',
747 [
748 'default' => $this->defaults['betterdocs_faq_list_content_color_layout_2'],
749 'capability' => 'edit_theme_options',
750 'transport' => 'postMessage',
751 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
752 ]
753 );
754
755 $this->customizer->add_control(
756 new AlphaColorControl(
757 $this->customizer,
758 'betterdocs_faq_list_content_color_layout_2',
759 [
760 'label' => __( 'FAQ List Content Color', 'betterdocs' ),
761 'section' => 'betterdocs_faq_section',
762 'settings' => 'betterdocs_faq_list_content_color_layout_2',
763 'priority' => 648
764 ]
765 )
766 );
767 }
768
769 public function faq_list_content_font_size_layout_2() {
770 $this->customizer->add_setting(
771 'betterdocs_faq_list_content_font_size_layout_2',
772 [
773 'default' => $this->defaults['betterdocs_faq_list_content_font_size_layout_2'],
774 'capability' => 'edit_theme_options',
775 'transport' => 'postMessage',
776 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
777 ]
778 );
779
780 $this->customizer->add_control(
781 new RangeValueControl(
782 $this->customizer,
783 'betterdocs_faq_list_content_font_size_layout_2',
784 [
785 'type' => 'betterdocs-range-value',
786 'section' => 'betterdocs_faq_section',
787 'settings' => 'betterdocs_faq_list_content_font_size_layout_2',
788 'label' => __( 'FAQ Content Font Size', 'betterdocs' ),
789 'priority' => 649,
790 'input_attrs' => [
791 'class' => '',
792 'min' => 0,
793 'max' => 50,
794 'step' => 1,
795 'suffix' => 'px' //optional suffix
796 ]
797 ]
798 )
799 );
800 }
801
802 public function faq_list_font_size_layout_2() {
803 $this->customizer->add_setting(
804 'betterdocs_faq_list_font_size_layout_2',
805 [
806 'default' => $this->defaults['betterdocs_faq_list_font_size_layout_2'],
807 'capability' => 'edit_theme_options',
808 'transport' => 'postMessage',
809 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
810
811 ]
812 );
813
814 $this->customizer->add_control(
815 new RangeValueControl(
816 $this->customizer,
817 'betterdocs_faq_list_font_size_layout_2',
818 [
819 'type' => 'betterdocs-range-value',
820 'section' => 'betterdocs_faq_section',
821 'settings' => 'betterdocs_faq_list_font_size_layout_2',
822 'label' => __( 'FAQ List Font Size', 'betterdocs' ),
823 'priority' => 650,
824 'input_attrs' => [
825 'class' => '',
826 'min' => 0,
827 'max' => 50,
828 'step' => 1,
829 'suffix' => 'px'
830 // optional suffix
831 ]
832 ]
833 )
834 );
835 }
836
837 public function faq_list_padding_layout_2() {
838 $this->customizer->add_setting(
839 'betterdocs_faq_list_padding_layout_2',
840 [
841 'default' => $this->defaults['betterdocs_faq_list_padding_layout_2'],
842 'transport' => 'postMessage',
843 'capability' => 'edit_theme_options'
844 ]
845 );
846
847 $this->customizer->add_control(
848 new MultiDimensionControl(
849 $this->customizer,
850 'betterdocs_faq_list_padding_layout_2',
851 [
852 'label' => __( 'FAQ List Padding (PX)', 'betterdocs' ),
853 'section' => 'betterdocs_faq_section',
854 'settings' => 'betterdocs_faq_list_padding_layout_2',
855 'priority' => 651,
856 'input_fields' => [
857 'input1' => __( 'top', 'betterdocs' ),
858 'input2' => __( 'right', 'betterdocs' ),
859 'input3' => __( 'bottom', 'betterdocs' ),
860 'input4' => __( 'left', 'betterdocs' )
861 ],
862 'defaults' => [
863 'input1' => 20,
864 'input2' => 20,
865 'input3' => 20,
866 'input4' => 20
867 ]
868 ]
869 )
870 );
871 }
872
873 public function faq_category_title_color_layout_3() {
874 $this->customizer->add_setting(
875 'betterdocs_faq_category_title_color_layout_3',
876 [
877 'default' => $this->defaults['betterdocs_faq_category_title_color_layout_3'],
878 'capability' => 'edit_theme_options',
879 'transport' => 'postMessage',
880 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
881 ]
882 );
883
884 $this->customizer->add_control(
885 new AlphaColorControl(
886 $this->customizer,
887 'betterdocs_faq_category_title_color_layout_3',
888 [
889 'label' => __( 'Group Title Color', 'betterdocs' ),
890 'section' => 'betterdocs_faq_section',
891 'priority' => 652,
892 'settings' => 'betterdocs_faq_category_title_color_layout_3'
893 ]
894 )
895 );
896 }
897
898 public function faq_category_name_font_size_layout_3() {
899 $this->customizer->add_setting(
900 'betterdocs_faq_category_name_font_size_layout_3',
901 [
902 'default' => $this->defaults['betterdocs_faq_category_name_font_size_layout_3'],
903 'capability' => 'edit_theme_options',
904 'transport' => 'postMessage',
905 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
906
907 ]
908 );
909
910 $this->customizer->add_control(
911 new RangeValueControl(
912 $this->customizer,
913 'betterdocs_faq_category_name_font_size_layout_3',
914 [
915 'type' => 'betterdocs-range-value',
916 'section' => 'betterdocs_faq_section',
917 'settings' => 'betterdocs_faq_category_name_font_size_layout_3',
918 'label' => __( 'Group Title Font Size', 'betterdocs' ),
919 'priority' => 653,
920 'input_attrs' => [
921 'class' => '',
922 'min' => 0,
923 'max' => 50,
924 'step' => 1,
925 'suffix' => 'px' // optional suffix
926 ]
927 ]
928 )
929 );
930 }
931
932 public function faq_category_name_padding_layout_3() {
933 $this->customizer->add_setting(
934 'betterdocs_faq_category_name_padding_layout_3',
935 [
936 'default' => $this->defaults['betterdocs_faq_category_name_padding_layout_3'],
937 'transport' => 'postMessage',
938 'capability' => 'edit_theme_options'
939 ]
940 );
941
942 $this->customizer->add_control(
943 new MultiDimensionControl(
944 $this->customizer,
945 'betterdocs_faq_category_name_padding_layout_3',
946 [
947 'label' => __( 'Group Title Padding (PX)', 'betterdocs' ),
948 'section' => 'betterdocs_faq_section',
949 'settings' => 'betterdocs_faq_category_name_padding_layout_3',
950 'priority' => 654,
951 'input_fields' => [
952 'input1' => __( 'top', 'betterdocs' ),
953 'input2' => __( 'right', 'betterdocs' ),
954 'input3' => __( 'bottom', 'betterdocs' ),
955 'input4' => __( 'left', 'betterdocs' )
956 ],
957 'defaults' => [
958 'input1' => 20,
959 'input2' => 20,
960 'input3' => 20,
961 'input4' => 20
962 ]
963 ]
964 )
965 );
966 }
967
968 public function faq_list_color_layout_3() {
969 $this->customizer->add_setting(
970 'betterdocs_faq_list_color_layout_3',
971 [
972 'default' => $this->defaults['betterdocs_faq_list_color_layout_3'],
973 'capability' => 'edit_theme_options',
974 'transport' => 'postMessage',
975 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
976 ]
977 );
978
979 $this->customizer->add_control(
980 new AlphaColorControl(
981 $this->customizer,
982 'betterdocs_faq_list_color_layout_3',
983 [
984 'label' => __( 'FAQ List Color', 'betterdocs' ),
985 'section' => 'betterdocs_faq_section',
986 'settings' => 'betterdocs_faq_list_color_layout_3',
987 'priority' => 655
988 ]
989 )
990 );
991 }
992
993 public function faq_list_background_color_layout_3() {
994 $this->customizer->add_setting(
995 'betterdocs_faq_list_background_color_layout_3',
996 [
997 'default' => $this->defaults['betterdocs_faq_list_background_color_layout_3'],
998 'capability' => 'edit_theme_options',
999 'transport' => 'postMessage',
1000 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1001 ]
1002 );
1003
1004 $this->customizer->add_control(
1005 new AlphaColorControl(
1006 $this->customizer,
1007 'betterdocs_faq_list_background_color_layout_3',
1008 [
1009 'label' => __( 'FAQ List Background Color', 'betterdocs' ),
1010 'section' => 'betterdocs_faq_section',
1011 'settings' => 'betterdocs_faq_list_background_color_layout_3',
1012 'priority' => 656
1013 ]
1014 )
1015 );
1016 }
1017
1018 public function faq_list_content_background_color_layout_3() {
1019 $this->customizer->add_setting(
1020 'betterdocs_faq_list_content_background_color_layout_3',
1021 [
1022 'default' => $this->defaults['betterdocs_faq_list_content_background_color_layout_3'],
1023 'capability' => 'edit_theme_options',
1024 'transport' => 'postMessage',
1025 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1026 ]
1027 );
1028
1029 $this->customizer->add_control(
1030 new AlphaColorControl(
1031 $this->customizer,
1032 'betterdocs_faq_list_content_background_color_layout_3',
1033 [
1034 'label' => __( 'FAQ List Content Background Color', 'betterdocs' ),
1035 'section' => 'betterdocs_faq_section',
1036 'settings' => 'betterdocs_faq_list_content_background_color_layout_3',
1037 'priority' => 657
1038 ]
1039 )
1040 );
1041 }
1042
1043 public function faq_list_content_color_layout_3() {
1044 $this->customizer->add_setting(
1045 'betterdocs_faq_list_content_color_layout_3',
1046 [
1047 'default' => $this->defaults['betterdocs_faq_list_content_color_layout_3'],
1048 'capability' => 'edit_theme_options',
1049 'transport' => 'postMessage',
1050 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1051 ]
1052 );
1053
1054 $this->customizer->add_control(
1055 new AlphaColorControl(
1056 $this->customizer,
1057 'betterdocs_faq_list_content_color_layout_3',
1058 [
1059 'label' => __( 'FAQ List Content Color', 'betterdocs' ),
1060 'section' => 'betterdocs_faq_section',
1061 'settings' => 'betterdocs_faq_list_content_color_layout_3',
1062 'priority' => 658
1063 ]
1064 )
1065 );
1066 }
1067
1068 public function faq_list_content_font_size_layout_3() {
1069 $this->customizer->add_setting(
1070 'betterdocs_faq_list_content_font_size_layout_3',
1071 [
1072 'default' => $this->defaults['betterdocs_faq_list_content_font_size_layout_3'],
1073 'capability' => 'edit_theme_options',
1074 'transport' => 'postMessage',
1075 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1076
1077 ]
1078 );
1079
1080 $this->customizer->add_control(
1081 new RangeValueControl(
1082 $this->customizer,
1083 'betterdocs_faq_list_content_font_size_layout_3',
1084 [
1085 'type' => 'betterdocs-range-value',
1086 'section' => 'betterdocs_faq_section',
1087 'settings' => 'betterdocs_faq_list_content_font_size_layout_3',
1088 'label' => __( 'FAQ Content Font Size', 'betterdocs' ),
1089 'priority' => 659,
1090 'input_attrs' => [
1091 'class' => '',
1092 'min' => 0,
1093 'max' => 50,
1094 'step' => 1,
1095 'suffix' => 'px' //optional suffix
1096 ]
1097 ]
1098 )
1099 );
1100 }
1101
1102 public function faq_list_font_size_layout_3() {
1103 $this->customizer->add_setting(
1104 'betterdocs_faq_list_font_size_layout_3',
1105 [
1106 'default' => $this->defaults['betterdocs_faq_list_font_size_layout_3'],
1107 'capability' => 'edit_theme_options',
1108 'transport' => 'postMessage',
1109 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1110
1111 ]
1112 );
1113
1114 $this->customizer->add_control(
1115 new RangeValueControl(
1116 $this->customizer,
1117 'betterdocs_faq_list_font_size_layout_3',
1118 [
1119 'type' => 'betterdocs-range-value',
1120 'section' => 'betterdocs_faq_section',
1121 'settings' => 'betterdocs_faq_list_font_size_layout_3',
1122 'label' => __( 'FAQ List Font Size', 'betterdocs' ),
1123 'priority' => 660,
1124 'input_attrs' => [
1125 'class' => '',
1126 'min' => 0,
1127 'max' => 50,
1128 'step' => 1,
1129 'suffix' => 'px' // optional suffix
1130 ]
1131 ]
1132 )
1133 );
1134 }
1135
1136 public function faq_list_padding_layout_3() {
1137 $this->customizer->add_setting(
1138 'betterdocs_faq_list_padding_layout_3',
1139 [
1140 'default' => $this->defaults['betterdocs_faq_list_padding_layout_3'],
1141 'transport' => 'postMessage',
1142 'capability' => 'edit_theme_options'
1143 ]
1144 );
1145
1146 $this->customizer->add_control(
1147 new MultiDimensionControl(
1148 $this->customizer,
1149 'betterdocs_faq_list_padding_layout_3',
1150 [
1151 'label' => __( 'FAQ List Padding (PX)', 'betterdocs' ),
1152 'section' => 'betterdocs_faq_section',
1153 'settings' => 'betterdocs_faq_list_padding_layout_3',
1154 'priority' => 661,
1155 'input_fields' => [
1156 'input1' => __( 'top', 'betterdocs' ),
1157 'input2' => __( 'right', 'betterdocs' ),
1158 'input3' => __( 'bottom', 'betterdocs' ),
1159 'input4' => __( 'left', 'betterdocs' )
1160 ],
1161 'defaults' => [
1162 'input1' => 24,
1163 'input2' => 14,
1164 'input3' => 24,
1165 'input4' => 14
1166 ]
1167 ]
1168 )
1169 );
1170 }
1171
1172 public function faq_category_title_color_layout_4() {
1173 $this->customizer->add_setting(
1174 'betterdocs_faq_category_title_color_layout_4',
1175 [
1176 'default' => $this->defaults['betterdocs_faq_category_title_color_layout_4'],
1177 'capability' => 'edit_theme_options',
1178 'transport' => 'postMessage',
1179 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1180 ]
1181 );
1182
1183 $this->customizer->add_control(
1184 new AlphaColorControl(
1185 $this->customizer,
1186 'betterdocs_faq_category_title_color_layout_4',
1187 [
1188 'label' => __( 'Group Title Color', 'betterdocs' ),
1189 'section' => 'betterdocs_faq_section',
1190 'priority' => 662,
1191 'settings' => 'betterdocs_faq_category_title_color_layout_4'
1192 ]
1193 )
1194 );
1195 }
1196
1197 public function faq_category_title_background_color_layout_4() {
1198 $this->customizer->add_setting(
1199 'betterdocs_faq_category_active_title_background_color_layout_4',
1200 [
1201 'default' => $this->defaults['betterdocs_faq_category_active_title_background_color_layout_4'],
1202 'capability' => 'edit_theme_options',
1203 'transport' => 'postMessage',
1204 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1205 ]
1206 );
1207
1208 $this->customizer->add_control(
1209 new AlphaColorControl(
1210 $this->customizer,
1211 'betterdocs_faq_category_active_title_background_color_layout_4',
1212 [
1213 'label' => __( 'Group Title Active Background Color', 'betterdocs' ),
1214 'section' => 'betterdocs_faq_section',
1215 'priority' => 662,
1216 'settings' => 'betterdocs_faq_category_active_title_background_color_layout_4'
1217 ]
1218 )
1219 );
1220 }
1221
1222 public function faq_category_title_active_color_layout_4() {
1223 $this->customizer->add_setting(
1224 'betterdocs_faq_category_title_active_color_layout_4',
1225 [
1226 'default' => $this->defaults['betterdocs_faq_category_title_active_color_layout_4'],
1227 'capability' => 'edit_theme_options',
1228 'transport' => 'postMessage',
1229 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1230 ]
1231 );
1232
1233 $this->customizer->add_control(
1234 new AlphaColorControl(
1235 $this->customizer,
1236 'betterdocs_faq_category_title_active_color_layout_4',
1237 [
1238 'label' => __( 'Group Active Title Color', 'betterdocs' ),
1239 'section' => 'betterdocs_faq_section',
1240 'priority' => 662,
1241 'settings' => 'betterdocs_faq_category_title_active_color_layout_4'
1242 ]
1243 )
1244 );
1245 }
1246
1247 public function faq_category_name_font_size_layout_4() {
1248 $this->customizer->add_setting(
1249 'betterdocs_faq_category_name_font_size_layout_4',
1250 [
1251 'default' => $this->defaults['betterdocs_faq_category_name_font_size_layout_4'],
1252 'capability' => 'edit_theme_options',
1253 'transport' => 'postMessage',
1254 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1255
1256 ]
1257 );
1258
1259 $this->customizer->add_control(
1260 new RangeValueControl(
1261 $this->customizer,
1262 'betterdocs_faq_category_name_font_size_layout_4',
1263 [
1264 'type' => 'betterdocs-range-value',
1265 'section' => 'betterdocs_faq_section',
1266 'settings' => 'betterdocs_faq_category_name_font_size_layout_4',
1267 'label' => __( 'Group Title Font Size', 'betterdocs' ),
1268 'priority' => 663,
1269 'input_attrs' => [
1270 'class' => '',
1271 'min' => 0,
1272 'max' => 50,
1273 'step' => 1,
1274 'suffix' => 'px' // optional suffix
1275 ]
1276 ]
1277 )
1278 );
1279 }
1280
1281 public function faq_category_name_padding_layout_4() {
1282 $this->customizer->add_setting(
1283 'betterdocs_faq_category_name_padding_layout_4',
1284 [
1285 'default' => $this->defaults['betterdocs_faq_category_name_padding_layout_4'],
1286 'transport' => 'postMessage',
1287 'capability' => 'edit_theme_options'
1288 ]
1289 );
1290
1291 $this->customizer->add_control(
1292 new MultiDimensionControl(
1293 $this->customizer,
1294 'betterdocs_faq_category_name_padding_layout_4',
1295 [
1296 'label' => __( 'Group Title Padding (PX)', 'betterdocs' ),
1297 'section' => 'betterdocs_faq_section',
1298 'settings' => 'betterdocs_faq_category_name_padding_layout_3',
1299 'priority' => 664,
1300 'input_fields' => [
1301 'input1' => __( 'top', 'betterdocs' ),
1302 'input2' => __( 'right', 'betterdocs' ),
1303 'input3' => __( 'bottom', 'betterdocs' ),
1304 'input4' => __( 'left', 'betterdocs' )
1305 ],
1306 'defaults' => [
1307 'input1' => 20,
1308 'input2' => 20,
1309 'input3' => 20,
1310 'input4' => 20
1311 ]
1312 ]
1313 )
1314 );
1315 }
1316
1317 public function faq_list_color_layout_4() {
1318 $this->customizer->add_setting(
1319 'betterdocs_faq_list_color_layout_4',
1320 [
1321 'default' => $this->defaults['betterdocs_faq_list_color_layout_4'],
1322 'capability' => 'edit_theme_options',
1323 'transport' => 'postMessage',
1324 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1325 ]
1326 );
1327
1328 $this->customizer->add_control(
1329 new AlphaColorControl(
1330 $this->customizer,
1331 'betterdocs_faq_list_color_layout_4',
1332 [
1333 'label' => __( 'FAQ List Color', 'betterdocs' ),
1334 'section' => 'betterdocs_faq_section',
1335 'settings' => 'betterdocs_faq_list_color_layout_4',
1336 'priority' => 665
1337 ]
1338 )
1339 );
1340 }
1341
1342 public function faq_list_background_color_layout_4() {
1343 $this->customizer->add_setting(
1344 'betterdocs_faq_list_background_color_layout_4',
1345 [
1346 'default' => $this->defaults['betterdocs_faq_list_background_color_layout_4'],
1347 'capability' => 'edit_theme_options',
1348 'transport' => 'postMessage',
1349 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1350 ]
1351 );
1352
1353 $this->customizer->add_control(
1354 new AlphaColorControl(
1355 $this->customizer,
1356 'betterdocs_faq_list_background_color_layout_4',
1357 [
1358 'label' => __( 'FAQ List Background Color', 'betterdocs' ),
1359 'section' => 'betterdocs_faq_section',
1360 'settings' => 'betterdocs_faq_list_background_color_layout_4',
1361 'priority' => 666
1362 ]
1363 )
1364 );
1365 }
1366
1367 public function faq_list_content_background_color_layout_4() {
1368 $this->customizer->add_setting(
1369 'betterdocs_faq_list_content_background_color_layout_4',
1370 [
1371 'default' => $this->defaults['betterdocs_faq_list_content_background_color_layout_4'],
1372 'capability' => 'edit_theme_options',
1373 'transport' => 'postMessage',
1374 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1375 ]
1376 );
1377
1378 $this->customizer->add_control(
1379 new AlphaColorControl(
1380 $this->customizer,
1381 'betterdocs_faq_list_content_background_color_layout_4',
1382 [
1383 'label' => __( 'FAQ List Content Background Color', 'betterdocs' ),
1384 'section' => 'betterdocs_faq_section',
1385 'settings' => 'betterdocs_faq_list_content_background_color_layout_4',
1386 'priority' => 667
1387 ]
1388 )
1389 );
1390 }
1391
1392 public function faq_list_content_color_layout_4() {
1393 $this->customizer->add_setting(
1394 'betterdocs_faq_list_content_color_layout_4',
1395 [
1396 'default' => $this->defaults['betterdocs_faq_list_content_color_layout_4'],
1397 'capability' => 'edit_theme_options',
1398 'transport' => 'postMessage',
1399 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1400 ]
1401 );
1402
1403 $this->customizer->add_control(
1404 new AlphaColorControl(
1405 $this->customizer,
1406 'betterdocs_faq_list_content_color_layout_4',
1407 [
1408 'label' => __( 'FAQ List Content Color', 'betterdocs' ),
1409 'section' => 'betterdocs_faq_section',
1410 'settings' => 'betterdocs_faq_list_content_color_layout_4',
1411 'priority' => 668
1412 ]
1413 )
1414 );
1415 }
1416
1417 public function faq_list_content_font_size_layout_4() {
1418 $this->customizer->add_setting(
1419 'betterdocs_faq_list_content_font_size_layout_4',
1420 [
1421 'default' => $this->defaults['betterdocs_faq_list_content_font_size_layout_4'],
1422 'capability' => 'edit_theme_options',
1423 'transport' => 'postMessage',
1424 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1425
1426 ]
1427 );
1428
1429 $this->customizer->add_control(
1430 new RangeValueControl(
1431 $this->customizer,
1432 'betterdocs_faq_list_content_font_size_layout_4',
1433 [
1434 'type' => 'betterdocs-range-value',
1435 'section' => 'betterdocs_faq_section',
1436 'settings' => 'betterdocs_faq_list_content_font_size_layout_4',
1437 'label' => __( 'FAQ Content Font Size', 'betterdocs' ),
1438 'priority' => 669,
1439 'input_attrs' => [
1440 'class' => '',
1441 'min' => 0,
1442 'max' => 50,
1443 'step' => 1,
1444 'suffix' => 'px' //optional suffix
1445 ]
1446 ]
1447 )
1448 );
1449 }
1450
1451 public function faq_list_font_size_layout_4() {
1452 $this->customizer->add_setting(
1453 'betterdocs_faq_list_font_size_layout_4',
1454 [
1455 'default' => $this->defaults['betterdocs_faq_list_font_size_layout_4'],
1456 'capability' => 'edit_theme_options',
1457 'transport' => 'postMessage',
1458 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1459
1460 ]
1461 );
1462
1463 $this->customizer->add_control(
1464 new RangeValueControl(
1465 $this->customizer,
1466 'betterdocs_faq_list_font_size_layout_4',
1467 [
1468 'type' => 'betterdocs-range-value',
1469 'section' => 'betterdocs_faq_section',
1470 'settings' => 'betterdocs_faq_list_font_size_layout_4',
1471 'label' => __( 'FAQ List Font Size', 'betterdocs' ),
1472 'priority' => 670,
1473 'input_attrs' => [
1474 'class' => '',
1475 'min' => 0,
1476 'max' => 50,
1477 'step' => 1,
1478 'suffix' => 'px' // optional suffix
1479 ]
1480 ]
1481 )
1482 );
1483 }
1484
1485 public function faq_list_padding_layout_4() {
1486 $this->customizer->add_setting(
1487 'betterdocs_faq_list_padding_layout_4',
1488 [
1489 'default' => $this->defaults['betterdocs_faq_list_padding_layout_4'],
1490 'transport' => 'postMessage',
1491 'capability' => 'edit_theme_options'
1492 ]
1493 );
1494
1495 $this->customizer->add_control(
1496 new MultiDimensionControl(
1497 $this->customizer,
1498 'betterdocs_faq_list_padding_layout_4',
1499 [
1500 'label' => __( 'FAQ List Padding (PX)', 'betterdocs' ),
1501 'section' => 'betterdocs_faq_section',
1502 'settings' => 'betterdocs_faq_list_padding_layout_3',
1503 'priority' => 671,
1504 'input_fields' => [
1505 'input1' => __( 'top', 'betterdocs' ),
1506 'input2' => __( 'right', 'betterdocs' ),
1507 'input3' => __( 'bottom', 'betterdocs' ),
1508 'input4' => __( 'left', 'betterdocs' )
1509 ],
1510 'defaults' => [
1511 'input1' => 24,
1512 'input2' => 14,
1513 'input3' => 24,
1514 'input4' => 14
1515 ]
1516 ]
1517 )
1518 );
1519 }
1520 }
1521