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.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 3.4.2 3.5.0 3.5.1 All 200 releases
betterdocs / includes / Admin / Customizer / Sections / ArchivePage.php

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

4,480 lines 132.6 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_Media_Control;
6 use WP_Customize_Control;
7 use WP_Customize_Image_Control;
8 use WPDeveloper\BetterDocs\Admin\Customizer\Customizer;
9 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\TitleControl;
10 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\SelectControl;
11 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\ToggleControl;
12 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\DimensionControl;
13 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\SeparatorControl;
14 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\AlphaColorControl;
15 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\RadioImageControl;
16 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\RangeValueControl;
17
18 class ArchivePage extends Section {
19 /**
20 * Section Priority
21 * @var int
22 */
23 protected $priority = 400;
24
25 /**
26 * Get the section id.
27 * @return string
28 */
29 public function get_id() {
30 return 'betterdocs_archive_page_settings';
31 }
32
33 /**
34 * Get the title of the section.
35 * @return string
36 */
37 public function get_title() {
38 return __( 'Category Archive', 'betterdocs' );
39 }
40
41 public function layout_select() {
42 $this->customizer->add_setting(
43 'betterdocs_archive_layout_select',
44 [
45 'default' => $this->defaults['betterdocs_archive_layout_select'],
46 'capability' => 'edit_theme_options',
47 'sanitize_callback' => [ $this->sanitizer, 'select' ]
48 ]
49 );
50
51 $this->customizer->add_control(
52 new RadioImageControl(
53 $this->customizer,
54 'betterdocs_archive_layout_select',
55 [
56 'type' => 'betterdocs-radio-image',
57 'settings' => 'betterdocs_archive_layout_select',
58 'section' => 'betterdocs_archive_page_settings',
59 'label' => __( 'Select Category Archive Layout', 'betterdocs' ),
60 'choices' => apply_filters(
61 'betterdocs_archive_layout_choices',
62 [
63 'layout-7' => [
64 'label' => __( 'Sleek Layout', 'betterdocs' ),
65 'image' => $this->assets->icon( 'customizer/archive/layout-7.png', true )
66 ],
67 'layout-1' => [
68 'label' => __( 'Classic Layout', 'betterdocs' ),
69 'image' => $this->assets->icon( 'customizer/archive/layout-1.png', true )
70 ],
71 'layout-4' => [
72 'label' => __( 'Abstract Layout', 'betterdocs' ),
73 'image' => $this->assets->icon( 'customizer/archive/layout-4.png', true )
74 ],
75 'layout-5' => [
76 'label' => __( 'Modern Layout', 'betterdocs' ),
77 'image' => $this->assets->icon( 'customizer/archive/layout-5.png', true )
78 ],
79 'layout-2' => [
80 'label' => __( 'Memphis Layout', 'betterdocs' ),
81 'image' => $this->assets->icon( 'customizer/archive/layout-2.png', true ),
82 'pro' => true,
83 'url' => 'https://betterdocs.co/upgrade'
84 ],
85 'layout-3' => [
86 'label' => __( 'Neoclassic Layout', 'betterdocs' ),
87 'image' => $this->assets->icon( 'customizer/archive/layout-3.png', true ),
88 'pro' => true,
89 'url' => 'https://betterdocs.co/upgrade'
90 ],
91 'layout-6' => [
92 'label' => __( 'Handbook Layout', 'betterdocs' ),
93 'image' => $this->assets->icon( 'customizer/archive/layout-6.png', true ),
94 'pro' => true,
95 'url' => 'https://betterdocs.co/upgrade'
96 ],
97 ]
98 )
99 ]
100 )
101 );
102 }
103
104 public function background_color() {
105 $this->customizer->add_setting(
106 'betterdocs_archive_page_background_color',
107 [
108 'default' => $this->defaults['betterdocs_archive_page_background_color'],
109 'capability' => 'edit_theme_options',
110 'transport' => 'postMessage',
111 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
112 ]
113 );
114
115 $this->customizer->add_control(
116 new AlphaColorControl(
117 $this->customizer,
118 'betterdocs_archive_page_background_color',
119 [
120 'label' => __( 'Page Background Color', 'betterdocs' ),
121 'section' => 'betterdocs_archive_page_settings',
122 'settings' => 'betterdocs_archive_page_background_color'
123 ]
124 )
125 );
126 }
127
128 public function background_image() {
129 $this->customizer->add_setting(
130 'betterdocs_archive_page_background_image',
131 [
132 'default' => $this->defaults['betterdocs_archive_page_background_image'],
133 'capability' => 'edit_theme_options',
134 'transport' => 'postMessage'
135
136 ]
137 );
138
139 $this->customizer->add_control(
140 new WP_Customize_Image_Control(
141 $this->customizer,
142 'betterdocs_archive_page_background_image',
143 [
144 'section' => 'betterdocs_archive_page_settings',
145 'settings' => 'betterdocs_archive_page_background_image',
146 'label' => __( 'Background Image', 'betterdocs' )
147 ]
148 )
149 );
150 }
151
152 public function background_properties() {
153 $this->customizer->add_setting(
154 'betterdocs_archive_page_background_property',
155 [
156 'default' => $this->defaults['betterdocs_archive_page_background_property'],
157 'capability' => 'edit_theme_options',
158 'transport' => 'postMessage',
159 'sanitize_callback' => [ $this->sanitizer, 'select' ]
160 ]
161 );
162
163 $this->customizer->add_control(
164 new TitleControl(
165 $this->customizer,
166 'betterdocs_archive_page_background_property',
167 [
168 'type' => 'betterdocs-title',
169 'section' => 'betterdocs_archive_page_settings',
170 'settings' => 'betterdocs_archive_page_background_property',
171 'label' => __( 'Background Property', 'betterdocs' ),
172 'input_attrs' => [
173 'id' => 'betterdocs_archive_page_background_property',
174 'class' => 'betterdocs-select'
175 ]
176 ]
177 )
178 );
179
180 $this->customizer->add_setting(
181 'betterdocs_archive_page_background_size',
182 [
183 'default' => $this->defaults['betterdocs_archive_page_background_size'],
184 'capability' => 'edit_theme_options',
185 'transport' => 'postMessage',
186 'sanitize_callback' => [ $this->sanitizer, 'select' ]
187
188 ]
189 );
190
191 $this->customizer->add_control(
192 new SelectControl(
193 $this->customizer,
194 'betterdocs_archive_page_background_size',
195 [
196 'type' => 'betterdocs-select',
197 'section' => 'betterdocs_archive_page_settings',
198 'settings' => 'betterdocs_archive_page_background_size',
199 'label' => __( 'Size', 'betterdocs' ),
200 'input_attrs' => [
201 'class' => 'betterdocs_archive_page_background_property betterdocs-select'
202 ],
203 'choices' => [
204 'auto' => __( 'auto', 'betterdocs' ),
205 'length' => __( 'length', 'betterdocs' ),
206 'cover' => __( 'cover', 'betterdocs' ),
207 'contain' => __( 'contain', 'betterdocs' ),
208 'initial' => __( 'initial', 'betterdocs' ),
209 'inherit' => __( 'inherit', 'betterdocs' )
210 ]
211 ]
212 )
213 );
214
215 $this->customizer->add_setting(
216 'betterdocs_archive_page_background_repeat',
217 [
218 'default' => $this->defaults['betterdocs_archive_page_background_repeat'],
219 'capability' => 'edit_theme_options',
220 'transport' => 'postMessage',
221 'sanitize_callback' => [ $this->sanitizer, 'select' ]
222
223 ]
224 );
225
226 $this->customizer->add_control(
227 new SelectControl(
228 $this->customizer,
229 'betterdocs_archive_page_background_repeat',
230 [
231 'type' => 'betterdocs-select',
232 'section' => 'betterdocs_archive_page_settings',
233 'settings' => 'betterdocs_archive_page_background_repeat',
234 'label' => __( 'Repeat', 'betterdocs' ),
235 'input_attrs' => [
236 'class' => 'betterdocs_archive_page_background_property betterdocs-select'
237 ],
238 'choices' => [
239 'no-repeat' => __( 'no-repeat', 'betterdocs' ),
240 'initial' => __( 'initial', 'betterdocs' ),
241 'inherit' => __( 'inherit', 'betterdocs' ),
242 'repeat' => __( 'repeat', 'betterdocs' ),
243 'repeat-x' => __( 'repeat-x', 'betterdocs' ),
244 'repeat-y' => __( 'repeat-y', 'betterdocs' )
245 ]
246 ]
247 )
248 );
249
250 $this->customizer->add_setting(
251 'betterdocs_archive_page_background_attachment',
252 [
253 'default' => $this->defaults['betterdocs_archive_page_background_attachment'],
254 'capability' => 'edit_theme_options',
255 'transport' => 'postMessage',
256 'sanitize_callback' => [ $this->sanitizer, 'select' ]
257
258 ]
259 );
260
261 $this->customizer->add_control(
262 new SelectControl(
263 $this->customizer,
264 'betterdocs_archive_page_background_attachment',
265 [
266 'type' => 'betterdocs-select',
267 'section' => 'betterdocs_archive_page_settings',
268 'settings' => 'betterdocs_archive_page_background_attachment',
269 'label' => __( 'Attachment', 'betterdocs' ),
270 'input_attrs' => [
271 'class' => 'betterdocs_archive_page_background_property betterdocs-select'
272 ],
273 'choices' => [
274 'initial' => __( 'initial', 'betterdocs' ),
275 'inherit' => __( 'inherit', 'betterdocs' ),
276 'scroll' => __( 'scroll', 'betterdocs' ),
277 'fixed' => __( 'fixed', 'betterdocs' ),
278 'local' => __( 'local', 'betterdocs' )
279 ]
280 ]
281 )
282 );
283
284 $this->customizer->add_setting(
285 'betterdocs_archive_page_background_position',
286 [
287 'default' => $this->defaults['betterdocs_archive_page_background_position'],
288 'capability' => 'edit_theme_options',
289 'transport' => 'postMessage',
290 'sanitize_callback' => 'esc_html'
291
292 ]
293 );
294
295 $this->customizer->add_control(
296 new SelectControl(
297 $this->customizer,
298 'betterdocs_archive_page_background_position',
299 [
300 'type' => 'betterdocs-select',
301 'section' => 'betterdocs_archive_page_settings',
302 'settings' => 'betterdocs_archive_page_background_position',
303 'label' => __( 'Position', 'betterdocs' ),
304 'input_attrs' => [
305 'class' => 'betterdocs_archive_page_background_property betterdocs-select'
306 ],
307 'choices' => [
308 'left top' => __( 'left top', 'betterdocs' ),
309 'left center' => __( 'left center', 'betterdocs' ),
310 'left bottom' => __( 'left bottom', 'betterdocs' ),
311 'right top' => __( 'right top', 'betterdocs' ),
312 'right center' => __( 'right center', 'betterdocs' ),
313 'right bottom' => __( 'right bottom', 'betterdocs' ),
314 'center top' => __( 'center top', 'betterdocs' ),
315 'center center' => __( 'center center', 'betterdocs' ),
316 'center bottom' => __( 'center bottom', 'betterdocs' )
317 ]
318 ]
319 )
320 );
321 }
322
323 public function content_area_width() {
324 $this->customizer->add_setting(
325 'betterdocs_archive_content_area_width',
326 [
327 'default' => $this->defaults['betterdocs_archive_content_area_width'],
328 'capability' => 'edit_theme_options',
329 'transport' => 'postMessage',
330 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
331 ]
332 );
333
334 $this->customizer->add_control(
335 new RangeValueControl(
336 $this->customizer,
337 'betterdocs_archive_content_area_width',
338 [
339 'type' => 'betterdocs-range-value',
340 'section' => 'betterdocs_archive_page_settings',
341 'settings' => 'betterdocs_archive_content_area_width',
342 'label' => __( 'Category Archive Width', 'betterdocs' ), //Renamed From 'Content Area Width' to 'Category Archive Width' @since betterdocs revamp version
343 'input_attrs' => [
344 'min' => 0,
345 'max' => 100,
346 'step' => 1,
347 'suffix' => '%' //optional suffix
348 ]
349 ]
350 )
351 );
352 }
353
354 public function content_area_max_width() {
355 $this->customizer->add_setting(
356 'betterdocs_archive_content_area_max_width',
357 [
358 'default' => $this->defaults['betterdocs_archive_content_area_max_width'],
359 'capability' => 'edit_theme_options',
360 'transport' => 'postMessage',
361 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
362 ]
363 );
364
365 $this->customizer->add_control(
366 new RangeValueControl(
367 $this->customizer,
368 'betterdocs_archive_content_area_max_width',
369 [
370 'type' => 'betterdocs-range-value',
371 'section' => 'betterdocs_archive_page_settings',
372 'settings' => 'betterdocs_archive_content_area_max_width',
373 'label' => __( 'Category Archive Maximum Width', 'betterdocs' ), //Renamed From 'Content Area Maximum Width' to 'Category Archive Maximum Width' @since betterdocs revamp version
374 'input_attrs' => [
375 'min' => 0,
376 'max' => 3000,
377 'step' => 1,
378 'suffix' => 'px' //optional suffix
379 ]
380 ]
381 )
382 );
383 }
384
385 /**
386 * Since Betterdocs Revamped Version
387 */
388 public function category_archive_padding() {
389 $this->customizer->add_setting(
390 'category_archive_padding',
391 [
392 'default' => $this->defaults['category_archive_padding'],
393 'capability' => 'edit_theme_options',
394 'transport' => 'postMessage',
395 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
396
397 ]
398 );
399
400 $this->customizer->add_control(
401 new TitleControl(
402 $this->customizer,
403 'category_archive_padding',
404 [
405 'type' => 'betterdocs-title',
406 'section' => 'betterdocs_archive_page_settings',
407 'settings' => 'category_archive_padding',
408 'label' => __( 'Category Archive Padding', 'betterdocs' ),
409 'input_attrs' => [
410 'id' => 'category_archive_padding',
411 'class' => 'betterdocs-dimension'
412 ]
413 ]
414 )
415 );
416
417 $this->customizer->add_setting(
418 'category_archive_padding_top',
419 [
420 'default' => $this->defaults['category_archive_padding_top'],
421 'capability' => 'edit_theme_options',
422 'transport' => 'postMessage',
423 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
424 ]
425 );
426
427 $this->customizer->add_control(
428 new DimensionControl(
429 $this->customizer,
430 'category_archive_padding_top',
431 [
432 'type' => 'betterdocs-dimension',
433 'section' => 'betterdocs_archive_page_settings',
434 'settings' => 'category_archive_padding_top',
435 'label' => __( 'Top', 'betterdocs' ),
436 'input_attrs' => [
437 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
438 ]
439 ]
440 )
441 );
442
443 $this->customizer->add_setting(
444 'category_archive_padding_right',
445 [
446 'default' => $this->defaults['category_archive_padding_right'],
447 'capability' => 'edit_theme_options',
448 'transport' => 'postMessage',
449 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
450
451 ]
452 );
453
454 $this->customizer->add_control(
455 new DimensionControl(
456 $this->customizer,
457 'category_archive_padding_right',
458 [
459 'type' => 'betterdocs-dimension',
460 'section' => 'betterdocs_archive_page_settings',
461 'settings' => 'category_archive_padding_right',
462 'label' => __( 'Right', 'betterdocs' ),
463 'input_attrs' => [
464 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
465 ]
466 ]
467 )
468 );
469
470 $this->customizer->add_setting(
471 'category_archive_padding_bottom',
472 [
473 'default' => $this->defaults['category_archive_padding_bottom'],
474 'capability' => 'edit_theme_options',
475 'transport' => 'postMessage',
476 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
477
478 ]
479 );
480
481 $this->customizer->add_control(
482 new DimensionControl(
483 $this->customizer,
484 'category_archive_padding_bottom',
485 [
486 'type' => 'betterdocs-dimension',
487 'section' => 'betterdocs_archive_page_settings',
488 'settings' => 'category_archive_padding_bottom',
489 'label' => __( 'Bottom', 'betterdocs' ),
490 'input_attrs' => [
491 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
492 ]
493 ]
494 )
495 );
496
497 $this->customizer->add_setting(
498 'category_archive_padding_left',
499 [
500 'default' => $this->defaults['category_archive_padding_left'],
501 'capability' => 'edit_theme_options',
502 'transport' => 'postMessage',
503 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
504
505 ]
506 );
507
508 $this->customizer->add_control(
509 new DimensionControl(
510 $this->customizer,
511 'category_archive_padding_left',
512 [
513 'type' => 'betterdocs-dimension',
514 'section' => 'betterdocs_archive_page_settings',
515 'settings' => 'category_archive_padding_left',
516 'label' => __( 'Left', 'betterdocs' ),
517 'input_attrs' => [
518 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
519 ]
520 ]
521 )
522 );
523 }
524
525 public function archive_search_wrapper() {
526 $this->customizer->add_setting(
527 'archive_search_wrapper',
528 [
529 'default' => $this->defaults['archive_search_wrapper'],
530 'sanitize_callback' => 'esc_html'
531 ]
532 );
533
534 $this->customizer->add_control(
535 new SeparatorControl(
536 $this->customizer,
537 'archive_search_wrapper',
538 [
539 'label' => __( 'Search', 'betterdocs' ),
540 'settings' => 'archive_search_wrapper',
541 'section' => 'betterdocs_archive_page_settings'
542 ]
543 )
544 );
545 }
546
547 public function archive_search_toogle() {
548 $this->customizer->add_setting(
549 'archive_search_toogle',
550 [
551 'default' => $this->defaults['archive_search_toogle'],
552 'capability' => 'edit_theme_options',
553 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
554 ]
555 );
556
557 $this->customizer->add_control(
558 new ToggleControl(
559 $this->customizer,
560 'archive_search_toogle',
561 [
562 'label' => __( 'Enable', 'betterdocs' ),
563 'section' => 'betterdocs_archive_page_settings',
564 'settings' => 'archive_search_toogle',
565 'type' => 'light', // light, ios, flat
566 ]
567 )
568 );
569 }
570
571 public function archive_search_width() {
572 $this->customizer->add_setting(
573 'archive_search_width',
574 [
575 'default' => $this->defaults['archive_search_width'],
576 'capability' => 'edit_theme_options',
577 'transport' => 'postMessage',
578 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
579 ]
580 );
581
582 $this->customizer->add_control(
583 new RangeValueControl(
584 $this->customizer,
585 'archive_search_width',
586 [
587 'type' => 'betterdocs-range-value',
588 'section' => 'betterdocs_archive_page_settings',
589 'settings' => 'archive_search_width',
590 'label' => __( 'Archive Search Width', 'betterdocs' ), //Renamed From 'Content Area Width' to 'Category Archive Width' @since betterdocs revamp version
591 'input_attrs' => [
592 'min' => 0,
593 'max' => 100,
594 'step' => 1,
595 'suffix' => '%' //optional suffix
596 ]
597 ]
598 )
599 );
600 }
601
602 public function archive_search_max_width() {
603 $this->customizer->add_setting(
604 'archive_search_max_width',
605 [
606 'default' => $this->defaults['archive_search_max_width'],
607 'capability' => 'edit_theme_options',
608 'transport' => 'postMessage',
609 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
610 ]
611 );
612
613 $this->customizer->add_control(
614 new RangeValueControl(
615 $this->customizer,
616 'archive_search_max_width',
617 [
618 'type' => 'betterdocs-range-value',
619 'section' => 'betterdocs_archive_page_settings',
620 'settings' => 'archive_search_max_width',
621 'label' => __( 'Category Search Max Width', 'betterdocs' ), //Renamed From 'Content Area Width' to 'Category Archive Width' @since betterdocs revamp version
622 'input_attrs' => [
623 'min' => 0,
624 'max' => 3000,
625 'step' => 1,
626 'suffix' => 'px' //optional suffix
627 ]
628 ]
629 )
630 );
631 }
632
633
634 public function archive_search_margin() {
635 $this->customizer->add_setting(
636 'archive_search_margin',
637 [
638 'default' => $this->defaults['archive_search_margin'],
639 'capability' => 'edit_theme_options',
640 'transport' => 'postMessage',
641 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
642
643 ]
644 );
645
646 $this->customizer->add_control(
647 new TitleControl(
648 $this->customizer,
649 'archive_search_margin',
650 [
651 'type' => 'betterdocs-title',
652 'section' => 'betterdocs_archive_page_settings',
653 'settings' => 'archive_search_margin',
654 'label' => __( 'Margin', 'betterdocs' ),
655 'input_attrs' => [
656 'id' => 'archive_search_margin',
657 'class' => 'betterdocs-dimension'
658 ]
659 ]
660 )
661 );
662
663 $this->customizer->add_setting(
664 'archive_search_margin_top',
665 [
666 'default' => $this->defaults['archive_search_margin_top'],
667 'capability' => 'edit_theme_options',
668 'transport' => 'postMessage',
669 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
670 ]
671 );
672
673 $this->customizer->add_control(
674 new DimensionControl(
675 $this->customizer,
676 'archive_search_margin_top',
677 [
678 'type' => 'betterdocs-dimension',
679 'section' => 'betterdocs_archive_page_settings',
680 'settings' => 'archive_search_margin_top',
681 'label' => __( 'Top', 'betterdocs' ),
682 'input_attrs' => [
683 'class' => 'archive_search_margin betterdocs-dimension'
684 ]
685 ]
686 )
687 );
688
689 // $this->customizer->add_setting( 'archive_search_margin_right', [
690 // 'default' => $this->defaults['archive_search_margin_right'],
691 // 'capability' => 'edit_theme_options',
692 // 'transport' => 'postMessage',
693 // 'sanitize_callback' => [$this->sanitizer, 'integer']
694
695 // ] );
696
697 // $this->customizer->add_control( new DimensionControl(
698 // $this->customizer, 'archive_search_margin_right', [
699 // 'type' => 'betterdocs-dimension',
700 // 'section' => 'betterdocs_archive_page_settings',
701 // 'settings' => 'archive_search_margin_right',
702 // 'label' => __( 'Right', 'betterdocs' ),
703 // 'input_attrs' => [
704 // 'class' => 'archive_search_margin betterdocs-dimension'
705 // ]
706 // ] )
707 // );
708
709 $this->customizer->add_setting(
710 'archive_search_margin_bottom',
711 [
712 'default' => $this->defaults['archive_search_margin_bottom'],
713 'capability' => 'edit_theme_options',
714 'transport' => 'postMessage',
715 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
716
717 ]
718 );
719
720 $this->customizer->add_control(
721 new DimensionControl(
722 $this->customizer,
723 'archive_search_margin_bottom',
724 [
725 'type' => 'betterdocs-dimension',
726 'section' => 'betterdocs_archive_page_settings',
727 'settings' => 'archive_search_margin_bottom',
728 'label' => __( 'Bottom', 'betterdocs' ),
729 'input_attrs' => [
730 'class' => 'archive_search_margin betterdocs-dimension'
731 ]
732 ]
733 )
734 );
735
736 // $this->customizer->add_setting( 'archive_search_margin_left', [
737 // 'default' => $this->defaults['archive_search_margin_left'],
738 // 'capability' => 'edit_theme_options',
739 // 'transport' => 'postMessage',
740 // 'sanitize_callback' => [$this->sanitizer, 'integer']
741
742 // ] );
743
744 // $this->customizer->add_control( new DimensionControl(
745 // $this->customizer, 'archive_search_margin_left', [
746 // 'type' => 'betterdocs-dimension',
747 // 'section' => 'betterdocs_archive_page_settings',
748 // 'settings' => 'archive_search_margin_left',
749 // 'label' => __( 'Left', 'betterdocs' ),
750 // 'input_attrs' => [
751 // 'class' => 'archive_search_margin_left betterdocs-dimension'
752 // ]
753 // ] )
754 // );
755 }
756
757 public function archive_search_padding() {
758 $this->customizer->add_setting(
759 'archive_search_padding',
760 [
761 'default' => $this->defaults['archive_search_padding'],
762 'capability' => 'edit_theme_options',
763 'transport' => 'postMessage',
764 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
765
766 ]
767 );
768
769 $this->customizer->add_control(
770 new TitleControl(
771 $this->customizer,
772 'archive_search_padding',
773 [
774 'type' => 'betterdocs-title',
775 'section' => 'betterdocs_archive_page_settings',
776 'settings' => 'archive_search_padding',
777 'label' => __( 'Padding', 'betterdocs' ),
778 'input_attrs' => [
779 'id' => 'archive_search_padding',
780 'class' => 'betterdocs-dimension'
781 ]
782 ]
783 )
784 );
785
786 $this->customizer->add_setting(
787 'archive_search_padding_top',
788 [
789 'default' => $this->defaults['archive_search_padding_top'],
790 'capability' => 'edit_theme_options',
791 'transport' => 'postMessage',
792 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
793 ]
794 );
795
796 $this->customizer->add_control(
797 new DimensionControl(
798 $this->customizer,
799 'archive_search_padding_top',
800 [
801 'type' => 'betterdocs-dimension',
802 'section' => 'betterdocs_archive_page_settings',
803 'settings' => 'archive_search_padding_top',
804 'label' => __( 'Top', 'betterdocs' ),
805 'input_attrs' => [
806 'class' => 'archive_search_padding betterdocs-dimension'
807 ]
808 ]
809 )
810 );
811
812 $this->customizer->add_setting(
813 'archive_search_padding_right',
814 [
815 'default' => $this->defaults['archive_search_padding_right'],
816 'capability' => 'edit_theme_options',
817 'transport' => 'postMessage',
818 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
819
820 ]
821 );
822
823 $this->customizer->add_control(
824 new DimensionControl(
825 $this->customizer,
826 'archive_search_padding_right',
827 [
828 'type' => 'betterdocs-dimension',
829 'section' => 'betterdocs_archive_page_settings',
830 'settings' => 'archive_search_padding_right',
831 'label' => __( 'Right', 'betterdocs' ),
832 'input_attrs' => [
833 'class' => 'archive_search_padding betterdocs-dimension'
834 ]
835 ]
836 )
837 );
838
839 $this->customizer->add_setting(
840 'archive_search_padding_bottom',
841 [
842 'default' => $this->defaults['archive_search_padding_bottom'],
843 'capability' => 'edit_theme_options',
844 'transport' => 'postMessage',
845 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
846
847 ]
848 );
849
850 $this->customizer->add_control(
851 new DimensionControl(
852 $this->customizer,
853 'archive_search_padding_bottom',
854 [
855 'type' => 'betterdocs-dimension',
856 'section' => 'betterdocs_archive_page_settings',
857 'settings' => 'archive_search_padding_bottom',
858 'label' => __( 'Bottom', 'betterdocs' ),
859 'input_attrs' => [
860 'class' => 'archive_search_padding betterdocs-dimension'
861 ]
862 ]
863 )
864 );
865
866 $this->customizer->add_setting(
867 'archive_search_padding_left',
868 [
869 'default' => $this->defaults['archive_search_padding_left'],
870 'capability' => 'edit_theme_options',
871 'transport' => 'postMessage',
872 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
873
874 ]
875 );
876
877 $this->customizer->add_control(
878 new DimensionControl(
879 $this->customizer,
880 'archive_search_padding_left',
881 [
882 'type' => 'betterdocs-dimension',
883 'section' => 'betterdocs_archive_page_settings',
884 'settings' => 'archive_search_padding_left',
885 'label' => __( 'Left', 'betterdocs' ),
886 'input_attrs' => [
887 'class' => 'archive_search_padding_left betterdocs-dimension'
888 ]
889 ]
890 )
891 );
892 }
893
894 public function content_area_settings() {
895 $this->customizer->add_setting(
896 'betterdocs_archive_content_area_settings',
897 [
898 'default' => $this->defaults['betterdocs_archive_content_area_settings'],
899 'sanitize_callback' => 'esc_html'
900 ]
901 );
902
903 $this->customizer->add_control(
904 new SeparatorControl(
905 $this->customizer,
906 'betterdocs_archive_content_area_settings',
907 [
908 'label' => __( 'Content Area', 'betterdocs' ),
909 'settings' => 'betterdocs_archive_content_area_settings',
910 'section' => 'betterdocs_archive_page_settings'
911 ]
912 )
913 );
914 }
915
916 public function content_background_color() {
917 $this->customizer->add_setting(
918 'betterdocs_archive_content_background_color',
919 [
920 'default' => $this->defaults['betterdocs_archive_content_background_color'],
921 'capability' => 'edit_theme_options',
922 'transport' => 'postMessage',
923 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
924 ]
925 );
926
927 $this->customizer->add_control(
928 new AlphaColorControl(
929 $this->customizer,
930 'betterdocs_archive_content_background_color',
931 [
932 'label' => __( 'Content Area Background Color', 'betterdocs' ),
933 'section' => 'betterdocs_archive_page_settings',
934 'settings' => 'betterdocs_archive_content_background_color'
935 ]
936 )
937 );
938 }
939
940 public function content_margin() {
941 $this->customizer->add_setting(
942 'betterdocs_archive_content_margin',
943 [
944 'default' => $this->defaults['betterdocs_archive_content_margin'],
945 'capability' => 'edit_theme_options',
946 'transport' => 'postMessage',
947 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
948
949 ]
950 );
951
952 $this->customizer->add_control(
953 new TitleControl(
954 $this->customizer,
955 'betterdocs_archive_content_margin',
956 [
957 'type' => 'betterdocs-title',
958 'section' => 'betterdocs_archive_page_settings',
959 'settings' => 'betterdocs_archive_content_margin',
960 'label' => __( 'Content Area Margin', 'betterdocs' ),
961 'input_attrs' => [
962 'id' => 'betterdocs_archive_content_margin',
963 'class' => 'betterdocs-dimension'
964 ]
965 ]
966 )
967 );
968
969 $this->customizer->add_setting(
970 'betterdocs_archive_content_margin_top',
971 [
972 'default' => $this->defaults['betterdocs_archive_content_margin_top'],
973 'capability' => 'edit_theme_options',
974 'transport' => 'postMessage',
975 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
976 ]
977 );
978
979 $this->customizer->add_control(
980 new DimensionControl(
981 $this->customizer,
982 'betterdocs_archive_content_margin_top',
983 [
984 'type' => 'betterdocs-dimension',
985 'section' => 'betterdocs_archive_page_settings',
986 'settings' => 'betterdocs_archive_content_margin_top',
987 'label' => __( 'Top', 'betterdocs' ),
988 'input_attrs' => [
989 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
990 ]
991 ]
992 )
993 );
994
995 $this->customizer->add_setting(
996 'betterdocs_archive_content_margin_right',
997 [
998 'default' => $this->defaults['betterdocs_archive_content_margin_right'],
999 'capability' => 'edit_theme_options',
1000 'transport' => 'postMessage',
1001 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1002
1003 ]
1004 );
1005
1006 $this->customizer->add_control(
1007 new DimensionControl(
1008 $this->customizer,
1009 'betterdocs_archive_content_margin_right',
1010 [
1011 'type' => 'betterdocs-dimension',
1012 'section' => 'betterdocs_archive_page_settings',
1013 'settings' => 'betterdocs_archive_content_margin_right',
1014 'label' => __( 'Right', 'betterdocs' ),
1015 'input_attrs' => [
1016 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
1017 ]
1018 ]
1019 )
1020 );
1021
1022 $this->customizer->add_setting(
1023 'betterdocs_archive_content_margin_bottom',
1024 [
1025 'default' => $this->defaults['betterdocs_archive_content_margin_bottom'],
1026 'capability' => 'edit_theme_options',
1027 'transport' => 'postMessage',
1028 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1029
1030 ]
1031 );
1032
1033 $this->customizer->add_control(
1034 new DimensionControl(
1035 $this->customizer,
1036 'betterdocs_archive_content_margin_bottom',
1037 [
1038 'type' => 'betterdocs-dimension',
1039 'section' => 'betterdocs_archive_page_settings',
1040 'settings' => 'betterdocs_archive_content_margin_bottom',
1041 'label' => __( 'Bottom', 'betterdocs' ),
1042 'input_attrs' => [
1043 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
1044 ]
1045 ]
1046 )
1047 );
1048
1049 $this->customizer->add_setting(
1050 'betterdocs_archive_content_margin_left',
1051 [
1052 'default' => $this->defaults['betterdocs_archive_content_margin_left'],
1053 'capability' => 'edit_theme_options',
1054 'transport' => 'postMessage',
1055 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1056
1057 ]
1058 );
1059
1060 $this->customizer->add_control(
1061 new DimensionControl(
1062 $this->customizer,
1063 'betterdocs_archive_content_margin_left',
1064 [
1065 'type' => 'betterdocs-dimension',
1066 'section' => 'betterdocs_archive_page_settings',
1067 'settings' => 'betterdocs_archive_content_margin_left',
1068 'label' => __( 'Left', 'betterdocs' ),
1069 'input_attrs' => [
1070 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
1071 ]
1072 ]
1073 )
1074 );
1075 }
1076
1077 public function content_padding() {
1078 $this->customizer->add_setting(
1079 'betterdocs_archive_content_padding',
1080 [
1081 'default' => $this->defaults['betterdocs_archive_content_padding'],
1082 'capability' => 'edit_theme_options',
1083 'transport' => 'postMessage',
1084 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1085
1086 ]
1087 );
1088
1089 $this->customizer->add_control(
1090 new TitleControl(
1091 $this->customizer,
1092 'betterdocs_archive_content_padding',
1093 [
1094 'type' => 'betterdocs-title',
1095 'section' => 'betterdocs_archive_page_settings',
1096 'settings' => 'betterdocs_archive_content_padding',
1097 'label' => __( 'Content Area Padding', 'betterdocs' ),
1098 'input_attrs' => [
1099 'id' => 'betterdocs_archive_content_padding',
1100 'class' => 'betterdocs-dimension'
1101 ]
1102 ]
1103 )
1104 );
1105
1106 $this->customizer->add_setting(
1107 'betterdocs_archive_content_padding_top',
1108 [
1109 'default' => $this->defaults['betterdocs_archive_content_padding_top'],
1110 'capability' => 'edit_theme_options',
1111 'transport' => 'postMessage',
1112 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1113 ]
1114 );
1115
1116 $this->customizer->add_control(
1117 new DimensionControl(
1118 $this->customizer,
1119 'betterdocs_archive_content_padding_top',
1120 [
1121 'type' => 'betterdocs-dimension',
1122 'section' => 'betterdocs_archive_page_settings',
1123 'settings' => 'betterdocs_archive_content_padding_top',
1124 'label' => __( 'Top', 'betterdocs' ),
1125 'input_attrs' => [
1126 'class' => 'betterdocs_archive_content_padding betterdocs-dimension'
1127 ]
1128 ]
1129 )
1130 );
1131
1132 $this->customizer->add_setting(
1133 'betterdocs_archive_content_padding_right',
1134 [
1135 'default' => $this->defaults['betterdocs_archive_content_padding_right'],
1136 'capability' => 'edit_theme_options',
1137 'transport' => 'postMessage',
1138 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1139 ]
1140 );
1141
1142 $this->customizer->add_control(
1143 new DimensionControl(
1144 $this->customizer,
1145 'betterdocs_archive_content_padding_right',
1146 [
1147 'type' => 'betterdocs-dimension',
1148 'section' => 'betterdocs_archive_page_settings',
1149 'settings' => 'betterdocs_archive_content_padding_right',
1150 'label' => __( 'Right', 'betterdocs' ),
1151 'input_attrs' => [
1152 'class' => 'betterdocs_archive_content_padding betterdocs-dimension'
1153 ]
1154 ]
1155 )
1156 );
1157
1158 $this->customizer->add_setting(
1159 'betterdocs_archive_content_padding_bottom',
1160 [
1161 'default' => $this->defaults['betterdocs_archive_content_padding_bottom'],
1162 'capability' => 'edit_theme_options',
1163 'transport' => 'postMessage',
1164 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1165
1166 ]
1167 );
1168
1169 $this->customizer->add_control(
1170 new DimensionControl(
1171 $this->customizer,
1172 'betterdocs_archive_content_padding_bottom',
1173 [
1174 'type' => 'betterdocs-dimension',
1175 'section' => 'betterdocs_archive_page_settings',
1176 'settings' => 'betterdocs_archive_content_padding_bottom',
1177 'label' => __( 'Bottom', 'betterdocs' ),
1178 'input_attrs' => [
1179 'class' => 'betterdocs_archive_content_padding betterdocs-dimension'
1180 ]
1181 ]
1182 )
1183 );
1184
1185 $this->customizer->add_setting(
1186 'betterdocs_archive_content_padding_left',
1187 [
1188 'default' => $this->defaults['betterdocs_archive_content_padding_left'],
1189 'capability' => 'edit_theme_options',
1190 'transport' => 'postMessage',
1191 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1192
1193 ]
1194 );
1195
1196 $this->customizer->add_control(
1197 new DimensionControl(
1198 $this->customizer,
1199 'betterdocs_archive_content_padding_left',
1200 [
1201 'type' => 'betterdocs-dimension',
1202 'section' => 'betterdocs_archive_page_settings',
1203 'settings' => 'betterdocs_archive_content_padding_left',
1204 'label' => __( 'Left', 'betterdocs' ),
1205 'input_attrs' => [
1206 'class' => 'betterdocs_archive_content_padding betterdocs-dimension'
1207 ]
1208 ]
1209 )
1210 );
1211 }
1212
1213
1214 public function content_area_padding_layout_7() {
1215 $this->customizer->add_setting(
1216 'content_area_padding_layout_7',
1217 [
1218 'default' => $this->defaults['content_area_padding_layout_7'],
1219 'capability' => 'edit_theme_options',
1220 'transport' => 'postMessage',
1221 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1222
1223 ]
1224 );
1225
1226 $this->customizer->add_control(
1227 new TitleControl(
1228 $this->customizer,
1229 'content_area_padding_layout_7',
1230 [
1231 'type' => 'betterdocs-title',
1232 'section' => 'betterdocs_archive_page_settings',
1233 'settings' => 'content_area_padding_layout_7',
1234 'label' => __( 'Content Area Padding', 'betterdocs' ),
1235 'input_attrs' => [
1236 'id' => 'content_area_padding_layout_7',
1237 'class' => 'betterdocs-dimension'
1238 ]
1239 ]
1240 )
1241 );
1242
1243 $this->customizer->add_setting(
1244 'content_area_padding_top_layout_7',
1245 [
1246 'default' => $this->defaults['content_area_padding_top_layout_7'],
1247 'capability' => 'edit_theme_options',
1248 'transport' => 'postMessage',
1249 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1250 ]
1251 );
1252
1253 $this->customizer->add_control(
1254 new DimensionControl(
1255 $this->customizer,
1256 'content_area_padding_top_layout_7',
1257 [
1258 'type' => 'betterdocs-dimension',
1259 'section' => 'betterdocs_archive_page_settings',
1260 'settings' => 'content_area_padding_top_layout_7',
1261 'label' => __( 'Top', 'betterdocs' ),
1262 'input_attrs' => [
1263 'class' => 'content_area_padding_layout_7 betterdocs-dimension'
1264 ]
1265 ]
1266 )
1267 );
1268
1269 $this->customizer->add_setting(
1270 'content_area_padding_right_layout_7',
1271 [
1272 'default' => $this->defaults['content_area_padding_right_layout_7'],
1273 'capability' => 'edit_theme_options',
1274 'transport' => 'postMessage',
1275 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1276 ]
1277 );
1278
1279 $this->customizer->add_control(
1280 new DimensionControl(
1281 $this->customizer,
1282 'content_area_padding_right_layout_7',
1283 [
1284 'type' => 'betterdocs-dimension',
1285 'section' => 'betterdocs_archive_page_settings',
1286 'settings' => 'content_area_padding_right_layout_7',
1287 'label' => __( 'Right', 'betterdocs' ),
1288 'input_attrs' => [
1289 'class' => 'content_area_padding_layout_7 betterdocs-dimension'
1290 ]
1291 ]
1292 )
1293 );
1294
1295 $this->customizer->add_setting(
1296 'content_area_padding_bottom_layout_7',
1297 [
1298 'default' => $this->defaults['content_area_padding_bottom_layout_7'],
1299 'capability' => 'edit_theme_options',
1300 'transport' => 'postMessage',
1301 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1302
1303 ]
1304 );
1305
1306 $this->customizer->add_control(
1307 new DimensionControl(
1308 $this->customizer,
1309 'content_area_padding_bottom_layout_7',
1310 [
1311 'type' => 'betterdocs-dimension',
1312 'section' => 'betterdocs_archive_page_settings',
1313 'settings' => 'content_area_padding_bottom_layout_7',
1314 'label' => __( 'Bottom', 'betterdocs' ),
1315 'input_attrs' => [
1316 'class' => 'content_area_padding_layout_7 betterdocs-dimension'
1317 ]
1318 ]
1319 )
1320 );
1321
1322 $this->customizer->add_setting(
1323 'content_area_padding_left_layout_7',
1324 [
1325 'default' => $this->defaults['content_area_padding_left_layout_7'],
1326 'capability' => 'edit_theme_options',
1327 'transport' => 'postMessage',
1328 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1329
1330 ]
1331 );
1332
1333 $this->customizer->add_control(
1334 new DimensionControl(
1335 $this->customizer,
1336 'content_area_padding_left_layout_7',
1337 [
1338 'type' => 'betterdocs-dimension',
1339 'section' => 'betterdocs_archive_page_settings',
1340 'settings' => 'content_area_padding_left_layout_7',
1341 'label' => __( 'Left', 'betterdocs' ),
1342 'input_attrs' => [
1343 'class' => 'content_area_padding_layout_7 betterdocs-dimension'
1344 ]
1345 ]
1346 )
1347 );
1348 }
1349
1350 public function content_border_radius() {
1351 $this->customizer->add_setting(
1352 'betterdocs_archive_content_border_radius',
1353 [
1354 'default' => $this->defaults['betterdocs_archive_content_border_radius'],
1355 'capability' => 'edit_theme_options',
1356 'transport' => 'postMessage',
1357 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1358
1359 ]
1360 );
1361
1362 $this->customizer->add_control(
1363 new RangeValueControl(
1364 $this->customizer,
1365 'betterdocs_archive_content_border_radius',
1366 [
1367 'type' => 'betterdocs-range-value',
1368 'section' => 'betterdocs_archive_page_settings',
1369 'settings' => 'betterdocs_archive_content_border_radius',
1370 'label' => __( 'Archive Content Border Radius', 'betterdocs' ),
1371 'input_attrs' => [
1372 'min' => 0,
1373 'max' => 100,
1374 'step' => 1,
1375 'suffix' => 'px' //optional suffix
1376 ]
1377 ]
1378 )
1379 );
1380 }
1381
1382 public function content_header_layout_7() {
1383 $this->customizer->add_setting(
1384 'content_header_layout_7',
1385 [
1386 'default' => $this->defaults['content_header_layout_7'],
1387 'sanitize_callback' => 'esc_html'
1388 ]
1389 );
1390
1391 $this->customizer->add_control(
1392 new SeparatorControl(
1393 $this->customizer,
1394 'content_header_layout_7',
1395 [
1396 'label' => __( 'Content Header', 'betterdocs' ),
1397 'settings' => 'content_header_layout_7',
1398 'section' => 'betterdocs_archive_page_settings'
1399 ]
1400 )
1401 );
1402 }
1403
1404 public function content_header_background_layout_7() {
1405 $this->customizer->add_setting(
1406 'content_header_background_layout_7',
1407 [
1408 'default' => $this->defaults['content_header_background_layout_7'],
1409 'capability' => 'edit_theme_options',
1410 'transport' => 'postMessage',
1411 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1412 ]
1413 );
1414
1415 $this->customizer->add_control(
1416 new AlphaColorControl(
1417 $this->customizer,
1418 'content_header_background_layout_7',
1419 [
1420 'label' => __( 'Background Color', 'betterdocs' ),
1421 'section' => 'betterdocs_archive_page_settings',
1422 'settings' => 'content_header_background_layout_7'
1423 ]
1424 )
1425 );
1426 }
1427
1428 public function content_header_background_hover_layout_7() {
1429 $this->customizer->add_setting(
1430 'content_header_background_hover_layout_7',
1431 [
1432 'default' => $this->defaults['content_header_background_hover_layout_7'],
1433 'capability' => 'edit_theme_options',
1434 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1435 ]
1436 );
1437
1438 $this->customizer->add_control(
1439 new AlphaColorControl(
1440 $this->customizer,
1441 'content_header_background_hover_layout_7',
1442 [
1443 'label' => __( 'Background Hover Color', 'betterdocs' ),
1444 'section' => 'betterdocs_archive_page_settings',
1445 'settings' => 'content_header_background_hover_layout_7'
1446 ]
1447 )
1448 );
1449 }
1450
1451 public function content_header_background_image_size() {
1452 $this->customizer->add_setting(
1453 'content_header_background_image_size_layout_7',
1454 [
1455 'default' => $this->defaults['content_header_background_image_size_layout_7'],
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 'content_header_background_image_size_layout_7',
1467 [
1468 'type' => 'betterdocs-range-value',
1469 'section' => 'betterdocs_archive_page_settings',
1470 'settings' => 'content_header_background_image_size_layout_7',
1471 'label' => __( 'Image Size', 'betterdocs' ),
1472 'input_attrs' => [
1473 'min' => 0,
1474 'max' => 50,
1475 'step' => 1,
1476 'suffix' => 'px'
1477 ]
1478 ]
1479 )
1480 );
1481 }
1482
1483 public function content_header_background_title_font_size() {
1484 $this->customizer->add_setting(
1485 'content_header_background_title_font_size_layout_7',
1486 [
1487 'default' => $this->defaults['content_header_background_title_font_size_layout_7'],
1488 'capability' => 'edit_theme_options',
1489 'transport' => 'postMessage',
1490 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1491
1492 ]
1493 );
1494
1495 $this->customizer->add_control(
1496 new RangeValueControl(
1497 $this->customizer,
1498 'content_header_background_title_font_size_layout_7',
1499 [
1500 'type' => 'betterdocs-range-value',
1501 'section' => 'betterdocs_archive_page_settings',
1502 'settings' => 'content_header_background_title_font_size_layout_7',
1503 'label' => __( 'Title Font Size', 'betterdocs' ),
1504 'input_attrs' => [
1505 'min' => 0,
1506 'max' => 50,
1507 'step' => 1,
1508 'suffix' => 'px'
1509 ]
1510 ]
1511 )
1512 );
1513 }
1514
1515 public function content_header_background_title_color() {
1516 $this->customizer->add_setting(
1517 'content_header_background_title_color_layout_7',
1518 [
1519 'default' => $this->defaults['content_header_background_title_color_layout_7'],
1520 'capability' => 'edit_theme_options',
1521 'transport' => 'postMessage',
1522 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1523 ]
1524 );
1525
1526 $this->customizer->add_control(
1527 new AlphaColorControl(
1528 $this->customizer,
1529 'content_header_background_title_color_layout_7',
1530 [
1531 'label' => __( 'Title Color', 'betterdocs' ),
1532 'section' => 'betterdocs_archive_page_settings',
1533 'settings' => 'content_header_background_title_color_layout_7',
1534 ]
1535 )
1536 );
1537 }
1538
1539 public function content_header_background_count_font_size() {
1540 $this->customizer->add_setting(
1541 'content_header_background_count_font_size_layout_7',
1542 [
1543 'default' => $this->defaults['content_header_background_count_font_size_layout_7'],
1544 'capability' => 'edit_theme_options',
1545 'transport' => 'postMessage',
1546 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1547
1548 ]
1549 );
1550
1551 $this->customizer->add_control(
1552 new RangeValueControl(
1553 $this->customizer,
1554 'content_header_background_count_font_size_layout_7',
1555 [
1556 'type' => 'betterdocs-range-value',
1557 'section' => 'betterdocs_archive_page_settings',
1558 'settings' => 'content_header_background_count_font_size_layout_7',
1559 'label' => __( 'Count Font Size', 'betterdocs' ),
1560 'input_attrs' => [
1561 'min' => 0,
1562 'max' => 50,
1563 'step' => 1,
1564 'suffix' => 'px'
1565 ]
1566 ]
1567 )
1568 );
1569 }
1570
1571 public function content_header_background_count_color() {
1572 $this->customizer->add_setting(
1573 'content_header_background_count_color_layout_7',
1574 [
1575 'default' => $this->defaults['content_header_background_count_color_layout_7'],
1576 'capability' => 'edit_theme_options',
1577 'transport' => 'postMessage',
1578 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1579 ]
1580 );
1581
1582 $this->customizer->add_control(
1583 new AlphaColorControl(
1584 $this->customizer,
1585 'content_header_background_count_color_layout_7',
1586 [
1587 'label' => __( 'Count Color', 'betterdocs' ),
1588 'section' => 'betterdocs_archive_page_settings',
1589 'settings' => 'content_header_background_count_color_layout_7',
1590 ]
1591 )
1592 );
1593 }
1594
1595 public function archive_category_column_settings() {
1596 $this->customizer->add_setting(
1597 'archive_category_column_settings_layout_7',
1598 [
1599 'default' => $this->defaults['archive_category_column_settings_layout_7'],
1600 'sanitize_callback' => 'esc_html'
1601 ]
1602 );
1603
1604 $this->customizer->add_control(
1605 new SeparatorControl(
1606 $this->customizer,
1607 'archive_category_column_settings_layout_7',
1608 [
1609 'label' => __( 'Category Column Settings', 'betterdocs' ),
1610 'settings' => 'archive_category_column_settings_layout_7',
1611 'section' => 'betterdocs_archive_page_settings'
1612 ]
1613 )
1614 );
1615 }
1616
1617 public function archive_column_background_color_layout_7() {
1618 $this->customizer->add_setting(
1619 'archive_column_background_color_layout_7',
1620 [
1621 'default' => $this->defaults['archive_column_background_color_layout_7'],
1622 'capability' => 'edit_theme_options',
1623 'transport' => 'postMessage',
1624 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1625 ]
1626 );
1627
1628 $this->customizer->add_control(
1629 new AlphaColorControl(
1630 $this->customizer,
1631 'archive_column_background_color_layout_7',
1632 [
1633 'label' => __( 'Column Background Color', 'betterdocs' ),
1634 'section' => 'betterdocs_archive_page_settings',
1635 'settings' => 'archive_column_background_color_layout_7',
1636 ]
1637 )
1638 );
1639 }
1640
1641
1642 public function archive_column_background_color_hover_layout_7() {
1643 $this->customizer->add_setting(
1644 'betterdocs_archive_column_hover_bg_color_layout_7',
1645 [
1646 'default' => $this->defaults['betterdocs_archive_column_hover_bg_color_layout_7'],
1647 'capability' => 'edit_theme_options',
1648 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1649 ]
1650 );
1651
1652 $this->customizer->add_control(
1653 new AlphaColorControl(
1654 $this->customizer,
1655 'betterdocs_archive_column_hover_bg_color_layout_7',
1656 [
1657 'label' => __( 'Column Hover Background Color', 'betterdocs' ),
1658 'section' => 'betterdocs_archive_page_settings',
1659 'settings' => 'betterdocs_archive_column_hover_bg_color_layout_7',
1660 ]
1661 )
1662 );
1663 }
1664
1665 public function archive_column_padding_layout_7() {
1666 $this->customizer->add_setting(
1667 'betterdocs_archive_page_column_padding_layout_7',
1668 [
1669 'default' => $this->defaults['betterdocs_archive_page_column_padding_layout_7'],
1670 'capability' => 'edit_theme_options',
1671 'transport' => 'postMessage',
1672 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1673
1674 ]
1675 );
1676
1677 $this->customizer->add_control(
1678 new TitleControl(
1679 $this->customizer,
1680 'betterdocs_archive_page_column_padding_layout_7',
1681 [
1682 'type' => 'betterdocs-title',
1683 'section' => 'betterdocs_archive_page_settings',
1684 'settings' => 'betterdocs_archive_page_column_padding_layout_7',
1685 'label' => __( 'Column Padding', 'betterdocs' ),
1686 'input_attrs' => [
1687 'id' => 'betterdocs_archive_page_column_padding_layout_7',
1688 'class' => 'betterdocs-dimension'
1689 ]
1690 ]
1691 )
1692 );
1693
1694 $this->customizer->add_setting(
1695 'betterdocs_archive_page_column_padding_top_layout_7',
1696 [
1697 'default' => $this->defaults['betterdocs_archive_page_column_padding_top_layout_7'],
1698 'capability' => 'edit_theme_options',
1699 'transport' => 'postMessage',
1700 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1701 ]
1702 );
1703
1704 $this->customizer->add_control(
1705 new DimensionControl(
1706 $this->customizer,
1707 'betterdocs_archive_page_column_padding_top_layout_7',
1708 [
1709 'type' => 'betterdocs-dimension',
1710 'section' => 'betterdocs_archive_page_settings',
1711 'settings' => 'betterdocs_archive_page_column_padding_top_layout_7',
1712 'label' => __( 'Top', 'betterdocs' ),
1713 'input_attrs' => [
1714 'class' => 'betterdocs_archive_page_column_padding_layout_7 betterdocs-dimension'
1715 ]
1716 ]
1717 )
1718 );
1719
1720 $this->customizer->add_setting(
1721 'betterdocs_archive_page_column_padding_right_layout_7',
1722 [
1723 'default' => $this->defaults['betterdocs_archive_page_column_padding_right_layout_7'],
1724 'capability' => 'edit_theme_options',
1725 'transport' => 'postMessage',
1726 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1727
1728 ]
1729 );
1730
1731 $this->customizer->add_control(
1732 new DimensionControl(
1733 $this->customizer,
1734 'betterdocs_archive_page_column_padding_right_layout_7',
1735 [
1736 'type' => 'betterdocs-dimension',
1737 'section' => 'betterdocs_archive_page_settings',
1738 'settings' => 'betterdocs_archive_page_column_padding_right_layout_7',
1739 'label' => __( 'Right', 'betterdocs' ),
1740 'input_attrs' => [
1741 'class' => 'betterdocs_archive_page_column_padding_layout_7 betterdocs-dimension'
1742 ]
1743 ]
1744 )
1745 );
1746
1747 $this->customizer->add_setting(
1748 'betterdocs_archive_page_column_padding_bottom_layout_7',
1749 [
1750 'default' => $this->defaults['betterdocs_archive_page_column_padding_bottom_layout_7'],
1751 'capability' => 'edit_theme_options',
1752 'transport' => 'postMessage',
1753 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1754
1755 ]
1756 );
1757
1758 $this->customizer->add_control(
1759 new DimensionControl(
1760 $this->customizer,
1761 'betterdocs_archive_page_column_padding_bottom_layout_7',
1762 [
1763 'type' => 'betterdocs-dimension',
1764 'section' => 'betterdocs_archive_page_settings',
1765 'settings' => 'betterdocs_archive_page_column_padding_bottom_layout_7',
1766 'label' => __( 'Bottom', 'betterdocs' ),
1767 'input_attrs' => [
1768 'class' => 'betterdocs_archive_page_column_padding_layout_7 betterdocs-dimension'
1769 ]
1770 ]
1771 )
1772 );
1773
1774 $this->customizer->add_setting(
1775 'betterdocs_archive_page_column_padding_left_layout_7',
1776 [
1777 'default' => $this->defaults['betterdocs_archive_page_column_padding_left_layout_7'],
1778 'capability' => 'edit_theme_options',
1779 'transport' => 'postMessage',
1780 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1781 ]
1782 );
1783
1784 $this->customizer->add_control(
1785 new DimensionControl(
1786 $this->customizer,
1787 'betterdocs_archive_page_column_padding_left_layout_7',
1788 [
1789 'type' => 'betterdocs-dimension',
1790 'section' => 'betterdocs_archive_page_settings',
1791 'settings' => 'betterdocs_archive_page_column_padding_left_layout_7',
1792 'label' => __( 'Left', 'betterdocs' ),
1793 'input_attrs' => [
1794 'class' => 'betterdocs_archive_page_column_padding_layout_7 betterdocs-dimension'
1795 ]
1796 ]
1797 )
1798 );
1799 }
1800
1801 public function archive_column_border_color_layout_7() {
1802 $this->customizer->add_setting(
1803 'archive_column_border_color_layout_7',
1804 [
1805 'default' => $this->defaults['archive_column_border_color_layout_7'],
1806 'capability' => 'edit_theme_options',
1807 'transport' => 'postMessage',
1808 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1809 ]
1810 );
1811
1812 $this->customizer->add_control(
1813 new AlphaColorControl(
1814 $this->customizer,
1815 'archive_column_border_color_layout_7',
1816 [
1817 'label' => __( 'Column Border Color', 'betterdocs' ),
1818 'section' => 'betterdocs_archive_page_settings',
1819 'settings' => 'archive_column_border_color_layout_7',
1820 ]
1821 )
1822 );
1823 }
1824
1825
1826 public function archive_category_icon_size_layout_7() {
1827 $this->customizer->add_setting(
1828 'betterdocs_archive_page_cat_icon_size_layout_7',
1829 [
1830 'default' => $this->defaults['betterdocs_archive_page_cat_icon_size_layout_7'],
1831 'capability' => 'edit_theme_options',
1832 'transport' => 'postMessage',
1833 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1834 ]
1835 );
1836
1837 $this->customizer->add_control(
1838 new RangeValueControl(
1839 $this->customizer,
1840 'betterdocs_archive_page_cat_icon_size_layout_7',
1841 [
1842 'type' => 'betterdocs-range-value',
1843 'section' => 'betterdocs_archive_page_settings',
1844 'settings' => 'betterdocs_archive_page_cat_icon_size_layout_7',
1845 'label' => __( 'Icon Size', 'betterdocs' ),
1846 'input_attrs' => [
1847 'class' => '',
1848 'min' => 0,
1849 'max' => 200,
1850 'step' => 1,
1851 'suffix' => 'px' //optional suffix
1852 ]
1853 ]
1854 )
1855 );
1856 }
1857
1858
1859 public function archive_category_title_font_size_layout_7() {
1860
1861 $this->customizer->add_setting(
1862 'betterdocs_archive_page_cat_title_font_size_layout_7',
1863 [
1864 'default' => $this->defaults['betterdocs_archive_page_cat_title_font_size_layout_7'],
1865 'capability' => 'edit_theme_options',
1866 'transport' => 'postMessage',
1867 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1868
1869 ]
1870 );
1871
1872 $this->customizer->add_control(
1873 new RangeValueControl(
1874 $this->customizer,
1875 'betterdocs_archive_page_cat_title_font_size_layout_7',
1876 [
1877 'type' => 'betterdocs-range-value',
1878 'section' => 'betterdocs_archive_page_settings',
1879 'settings' => 'betterdocs_archive_page_cat_title_font_size_layout_7',
1880 'label' => __( 'Category Title Font Size', 'betterdocs' ),
1881 'input_attrs' => [
1882 'class' => '',
1883 'min' => 0,
1884 'max' => 100,
1885 'step' => 1,
1886 'suffix' => 'px' //optional suffix
1887 ]
1888 ]
1889 )
1890 );
1891 }
1892
1893 public function archive_category_title_color() {
1894 $this->customizer->add_setting(
1895 'betterdocs_archive_page_cat_title_color_layout_7',
1896 [
1897 'default' => $this->defaults['betterdocs_archive_page_cat_title_color_layout_7'],
1898 'capability' => 'edit_theme_options',
1899 'transport' => 'postMessage',
1900 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1901 ]
1902 );
1903
1904 $this->customizer->add_control(
1905 new AlphaColorControl(
1906 $this->customizer,
1907 'betterdocs_archive_page_cat_title_color_layout_7',
1908 [
1909 'label' => __( 'Category Title Color', 'betterdocs' ),
1910 'section' => 'betterdocs_archive_page_settings',
1911 'settings' => 'betterdocs_archive_page_cat_title_color_layout_7',
1912 ]
1913 )
1914 );
1915 }
1916
1917 public function archive_category_title_color_hover_layout_7() {
1918 $this->customizer->add_setting(
1919 'archive_category_title_color_hover_layout_7',
1920 [
1921 'default' => $this->defaults['archive_category_title_color_hover_layout_7'],
1922 'capability' => 'edit_theme_options',
1923 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1924 ]
1925 );
1926
1927 $this->customizer->add_control(
1928 new AlphaColorControl(
1929 $this->customizer,
1930 'archive_category_title_color_hover_layout_7',
1931 [
1932 'label' => __( 'Category Title Hover Color', 'betterdocs' ),
1933 'section' => 'betterdocs_archive_page_settings',
1934 'settings' => 'archive_category_title_color_hover_layout_7',
1935 ]
1936 )
1937 );
1938 }
1939
1940 public function archive_category_margin_layout_7() {
1941 $this->customizer->add_setting(
1942 'archive_category_margin_layout_7',
1943 [
1944 'default' => $this->defaults['archive_category_margin_layout_7'],
1945 'capability' => 'edit_theme_options',
1946 'transport' => 'postMessage',
1947 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1948 ]
1949 );
1950
1951 $this->customizer->add_control(
1952 new TitleControl(
1953 $this->customizer,
1954 'archive_category_margin_layout_7',
1955 [
1956 'type' => 'betterdocs-title',
1957 'section' => 'betterdocs_archive_page_settings',
1958 'settings' => 'archive_category_margin_layout_7',
1959 'label' => __( 'Archive Title Margin', 'betterdocs' ),
1960 'input_attrs' => [
1961 'id' => 'archive_category_margin_layout_7',
1962 'class' => 'betterdocs-dimension'
1963 ]
1964 ]
1965 )
1966 );
1967
1968 $this->customizer->add_setting(
1969 'archive_category_margin_top_layout_7',
1970 [
1971 'default' => $this->defaults['archive_category_margin_top_layout_7'],
1972 'capability' => 'edit_theme_options',
1973 'transport' => 'postMessage',
1974 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1975 ]
1976 );
1977
1978 $this->customizer->add_control(
1979 new DimensionControl(
1980 $this->customizer,
1981 'archive_category_margin_top_layout_7',
1982 [
1983 'type' => 'betterdocs-dimension',
1984 'section' => 'betterdocs_archive_page_settings',
1985 'settings' => 'archive_category_margin_top_layout_7',
1986 'label' => __( 'Top', 'betterdocs' ),
1987 'input_attrs' => [
1988 'class' => 'archive_category_margin_layout_7 betterdocs-dimension'
1989 ]
1990 ]
1991 )
1992 );
1993
1994 $this->customizer->add_setting(
1995 'archive_category_margin_right_layout_7',
1996 [
1997 'default' => $this->defaults['archive_category_margin_right_layout_7'],
1998 'capability' => 'edit_theme_options',
1999 'transport' => 'postMessage',
2000 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2001
2002 ]
2003 );
2004
2005 $this->customizer->add_control(
2006 new DimensionControl(
2007 $this->customizer,
2008 'archive_category_margin_right_layout_7',
2009 [
2010 'type' => 'betterdocs-dimension',
2011 'section' => 'betterdocs_archive_page_settings',
2012 'settings' => 'archive_category_margin_right_layout_7',
2013 'label' => __( 'Right', 'betterdocs' ),
2014 'input_attrs' => [
2015 'class' => 'archive_category_margin_layout_7 betterdocs-dimension'
2016 ]
2017 ]
2018 )
2019 );
2020
2021 $this->customizer->add_setting(
2022 'archive_category_margin_bottom_layout_7',
2023 [
2024 'default' => $this->defaults['archive_category_margin_bottom_layout_7'],
2025 'capability' => 'edit_theme_options',
2026 'transport' => 'postMessage',
2027 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2028
2029 ]
2030 );
2031
2032 $this->customizer->add_control(
2033 new DimensionControl(
2034 $this->customizer,
2035 'archive_category_margin_bottom_layout_7',
2036 [
2037 'type' => 'betterdocs-dimension',
2038 'section' => 'betterdocs_archive_page_settings',
2039 'settings' => 'archive_category_margin_bottom_layout_7',
2040 'label' => __( 'Bottom', 'betterdocs' ),
2041 'input_attrs' => [
2042 'class' => 'archive_category_margin_layout_7 betterdocs-dimension'
2043 ]
2044 ]
2045 )
2046 );
2047
2048 $this->customizer->add_setting(
2049 'archive_category_margin_left_layout_7',
2050 [
2051 'default' => $this->defaults['archive_category_margin_left_layout_7'],
2052 'capability' => 'edit_theme_options',
2053 'transport' => 'postMessage',
2054 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2055 ]
2056 );
2057
2058 $this->customizer->add_control(
2059 new DimensionControl(
2060 $this->customizer,
2061 'archive_category_margin_left_layout_7',
2062 [
2063 'type' => 'betterdocs-dimension',
2064 'section' => 'betterdocs_archive_page_settings',
2065 'settings' => 'archive_category_margin_left_layout_7',
2066 'label' => __( 'Left', 'betterdocs' ),
2067 'input_attrs' => [
2068 'class' => 'archive_category_margin_layout_7 betterdocs-dimension'
2069 ]
2070 ]
2071 )
2072 );
2073 }
2074
2075 public function archive_page_item_count_font_size_layout_7() {
2076 $this->customizer->add_setting(
2077 'betterdocs_archive_page_item_count_font_size_layout_7',
2078 [
2079 'default' => $this->defaults['betterdocs_archive_page_item_count_font_size_layout_7'],
2080 'capability' => 'edit_theme_options',
2081 'transport' => 'postMessage',
2082 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2083 ]
2084 );
2085
2086 $this->customizer->add_control(
2087 new RangeValueControl(
2088 $this->customizer,
2089 'betterdocs_archive_page_item_count_font_size_layout_7',
2090 [
2091 'type' => 'betterdocs-range-value',
2092 'section' => 'betterdocs_archive_page_settings',
2093 'settings' => 'betterdocs_archive_page_item_count_font_size_layout_7',
2094 'label' => __( 'Column Count Font Size', 'betterdocs' ),
2095 'input_attrs' => [
2096 'class' => '',
2097 'min' => 0,
2098 'max' => 50,
2099 'step' => 1,
2100 'suffix' => 'px' //optional suffix
2101 ]
2102 ]
2103 )
2104 );
2105 }
2106
2107
2108 public function archive_doc_page_item_count_color_layout_7() {
2109 $this->customizer->add_setting(
2110 'archive_betterdocs_doc_page_item_count_color_layout_7',
2111 [
2112 'default' => $this->defaults['archive_betterdocs_doc_page_item_count_color_layout_7'],
2113 'capability' => 'edit_theme_options',
2114 'transport' => 'postMessage',
2115 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2116 ]
2117 );
2118
2119 $this->customizer->add_control(
2120 new AlphaColorControl(
2121 $this->customizer,
2122 'archive_betterdocs_doc_page_item_count_color_layout_7',
2123 [
2124 'label' => __( 'Column Count Color', 'betterdocs' ),
2125 'section' => 'betterdocs_archive_page_settings',
2126 'settings' => 'archive_betterdocs_doc_page_item_count_color_layout_7',
2127 ]
2128 )
2129 );
2130 }
2131
2132 public function archive_page_item_count_hover_color_layout_7() {
2133 $this->customizer->add_setting(
2134 'betterdocs_archive_page_item_count_hover_color_layout_7',
2135 [
2136 'default' => $this->defaults['betterdocs_archive_page_item_count_hover_color_layout_7'],
2137 'capability' => 'edit_theme_options',
2138 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2139 ]
2140 );
2141
2142 $this->customizer->add_control(
2143 new AlphaColorControl(
2144 $this->customizer,
2145 'betterdocs_archive_page_item_count_hover_color_layout_7',
2146 [
2147 'label' => __( 'Column Count Hover Color', 'betterdocs' ),
2148 'section' => 'betterdocs_archive_page_settings',
2149 'settings' => 'betterdocs_archive_page_item_count_hover_color_layout_7',
2150 ]
2151 )
2152 );
2153 }
2154
2155 public function archive_page_item_count_margin_layout_7() {
2156 $this->customizer->add_setting(
2157 'archive_page_item_count_margin_layout_7',
2158 [
2159 'default' => $this->defaults['archive_page_item_count_margin_layout_7'],
2160 'capability' => 'edit_theme_options',
2161 'transport' => 'postMessage',
2162 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2163 ]
2164 );
2165
2166 $this->customizer->add_control(
2167 new TitleControl(
2168 $this->customizer,
2169 'archive_page_item_count_margin_layout_7',
2170 [
2171 'type' => 'betterdocs-title',
2172 'section' => 'betterdocs_archive_page_settings',
2173 'settings' => 'archive_page_item_count_margin_layout_7',
2174 'label' => __( 'Column Count Margin', 'betterdocs' ),
2175 'input_attrs' => [
2176 'id' => 'archive_page_item_count_margin_layout_7',
2177 'class' => 'betterdocs-dimension'
2178 ]
2179 ]
2180 )
2181 );
2182
2183 $this->customizer->add_setting(
2184 'archive_page_item_count_margin_top_layout_7',
2185 [
2186 'default' => $this->defaults['archive_page_item_count_margin_top_layout_7'],
2187 'capability' => 'edit_theme_options',
2188 'transport' => 'postMessage',
2189 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2190 ]
2191 );
2192
2193 $this->customizer->add_control(
2194 new DimensionControl(
2195 $this->customizer,
2196 'archive_page_item_count_margin_top_layout_7',
2197 [
2198 'type' => 'betterdocs-dimension',
2199 'section' => 'betterdocs_archive_page_settings',
2200 'settings' => 'archive_page_item_count_margin_top_layout_7',
2201 'label' => __( 'Top', 'betterdocs' ),
2202 'input_attrs' => [
2203 'class' => 'archive_page_item_count_margin_layout_7 betterdocs-dimension'
2204 ]
2205 ]
2206 )
2207 );
2208
2209 $this->customizer->add_setting(
2210 'archive_page_item_count_margin_right_layout_7',
2211 [
2212 'default' => $this->defaults['archive_page_item_count_margin_right_layout_7'],
2213 'capability' => 'edit_theme_options',
2214 'transport' => 'postMessage',
2215 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2216
2217 ]
2218 );
2219
2220 $this->customizer->add_control(
2221 new DimensionControl(
2222 $this->customizer,
2223 'archive_page_item_count_margin_right_layout_7',
2224 [
2225 'type' => 'betterdocs-dimension',
2226 'section' => 'betterdocs_archive_page_settings',
2227 'settings' => 'archive_page_item_count_margin_right_layout_7',
2228 'label' => __( 'Right', 'betterdocs' ),
2229 'input_attrs' => [
2230 'class' => 'archive_page_item_count_margin_layout_7 betterdocs-dimension'
2231 ]
2232 ]
2233 )
2234 );
2235
2236 $this->customizer->add_setting(
2237 'archive_page_item_count_margin_bottom_layout_7',
2238 [
2239 'default' => $this->defaults['archive_page_item_count_margin_bottom_layout_7'],
2240 'capability' => 'edit_theme_options',
2241 'transport' => 'postMessage',
2242 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2243
2244 ]
2245 );
2246
2247 $this->customizer->add_control(
2248 new DimensionControl(
2249 $this->customizer,
2250 'archive_page_item_count_margin_bottom_layout_7',
2251 [
2252 'type' => 'betterdocs-dimension',
2253 'section' => 'betterdocs_archive_page_settings',
2254 'settings' => 'archive_page_item_count_margin_bottom_layout_7',
2255 'label' => __( 'Bottom', 'betterdocs' ),
2256 'input_attrs' => [
2257 'class' => 'archive_page_item_count_margin_layout_7 betterdocs-dimension'
2258 ]
2259 ]
2260 )
2261 );
2262
2263 $this->customizer->add_setting(
2264 'archive_page_item_count_margin_left_layout_7',
2265 [
2266 'default' => $this->defaults['archive_page_item_count_margin_left_layout_7'],
2267 'capability' => 'edit_theme_options',
2268 'transport' => 'postMessage',
2269 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2270 ]
2271 );
2272
2273 $this->customizer->add_control(
2274 new DimensionControl(
2275 $this->customizer,
2276 'archive_page_item_count_margin_left_layout_7',
2277 [
2278 'type' => 'betterdocs-dimension',
2279 'section' => 'betterdocs_archive_page_settings',
2280 'settings' => 'archive_page_item_count_margin_left_layout_7',
2281 'label' => __( 'Left', 'betterdocs' ),
2282 'input_attrs' => [
2283 'class' => 'archive_page_item_count_margin_layout_7 betterdocs-dimension'
2284 ]
2285 ]
2286 )
2287 );
2288 }
2289
2290 public function archive_last_updated_time_layout_7() {
2291 $this->customizer->add_setting(
2292 'archive_last_updated_time_layout_7',
2293 [
2294 'default' => $this->defaults['archive_last_updated_time_layout_7'],
2295 'sanitize_callback' => 'esc_html'
2296 ]
2297 );
2298
2299 $this->customizer->add_control(
2300 new SeparatorControl(
2301 $this->customizer,
2302 'archive_last_updated_time_layout_7',
2303 [
2304 'label' => __( 'Last Updated Time', 'betterdocs' ),
2305 'settings' => 'archive_last_updated_time_layout_7',
2306 'section' => 'betterdocs_archive_page_settings',
2307 ]
2308 )
2309 );
2310 }
2311
2312 public function archive_last_updated_time_layout_7_font_size() {
2313 $this->customizer->add_setting(
2314 'archive_last_updated_time_layout_7_font_size',
2315 [
2316 'default' => $this->defaults['archive_last_updated_time_layout_7_font_size'],
2317 'capability' => 'edit_theme_options',
2318 'transport' => 'postMessage',
2319 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2320
2321 ]
2322 );
2323
2324 $this->customizer->add_control(
2325 new RangeValueControl(
2326 $this->customizer,
2327 'archive_last_updated_time_layout_7_font_size',
2328 [
2329 'type' => 'betterdocs-range-value',
2330 'section' => 'betterdocs_archive_page_settings',
2331 'settings' => 'archive_last_updated_time_layout_7_font_size',
2332 'label' => __( 'Font Size', 'betterdocs' ),
2333 'input_attrs' => [
2334 'class' => '',
2335 'min' => 0,
2336 'max' => 50,
2337 'step' => 1,
2338 'suffix' => 'px' //optional suffix
2339 ]
2340 ]
2341 )
2342 );
2343 }
2344
2345 public function archive_last_updated_time_layout_7_color() {
2346 $this->customizer->add_setting(
2347 'archive_last_updated_time_layout_7_color',
2348 [
2349 'default' => $this->defaults['archive_last_updated_time_layout_7_color'],
2350 'capability' => 'edit_theme_options',
2351 'transport' => 'postMessage',
2352 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2353 ]
2354 );
2355
2356 $this->customizer->add_control(
2357 new AlphaColorControl(
2358 $this->customizer,
2359 'archive_last_updated_time_layout_7_color',
2360 [
2361 'label' => __( 'Color', 'betterdocs' ),
2362 'section' => 'betterdocs_archive_page_settings',
2363 'settings' => 'archive_last_updated_time_layout_7_color',
2364 ]
2365 )
2366 );
2367 }
2368
2369 public function archive_last_updated_time_layout_7_hover_color() {
2370 $this->customizer->add_setting(
2371 'archive_last_updated_time_layout_7_hover_color',
2372 [
2373 'default' => $this->defaults['archive_last_updated_time_layout_7_hover_color'],
2374 'capability' => 'edit_theme_options',
2375 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2376 ]
2377 );
2378
2379 $this->customizer->add_control(
2380 new AlphaColorControl(
2381 $this->customizer,
2382 'archive_last_updated_time_layout_7_hover_color',
2383 [
2384 'label' => __( 'Hover Color', 'betterdocs' ),
2385 'section' => 'betterdocs_archive_page_settings',
2386 'settings' => 'archive_last_updated_time_layout_7_hover_color',
2387 ]
2388 )
2389 );
2390 }
2391
2392 public function archive_last_updated_time_layout_7_background_color() {
2393 $this->customizer->add_setting(
2394 'archive_last_updated_time_layout_7_background_color',
2395 [
2396 'default' => $this->defaults['archive_last_updated_time_layout_7_background_color'],
2397 'capability' => 'edit_theme_options',
2398 'transport' => 'postMessage',
2399 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2400 ]
2401 );
2402
2403 $this->customizer->add_control(
2404 new AlphaColorControl(
2405 $this->customizer,
2406 'archive_last_updated_time_layout_7_background_color',
2407 [
2408 'label' => __( 'Background Color', 'betterdocs' ),
2409 'section' => 'betterdocs_archive_page_settings',
2410 'settings' => 'archive_last_updated_time_layout_7_background_color',
2411 ]
2412 )
2413 );
2414 }
2415
2416 public function archive_last_updated_time_layout_7_background_hover_color() {
2417 $this->customizer->add_setting(
2418 'archive_last_updated_time_layout_7_background_hover_color',
2419 [
2420 'default' => $this->defaults['archive_last_updated_time_layout_7_background_hover_color'],
2421 'capability' => 'edit_theme_options',
2422 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2423 ]
2424 );
2425
2426 $this->customizer->add_control(
2427 new AlphaColorControl(
2428 $this->customizer,
2429 'archive_last_updated_time_layout_7_background_hover_color',
2430 [
2431 'label' => __( 'Background Hover Color', 'betterdocs' ),
2432 'section' => 'betterdocs_archive_page_settings',
2433 'settings' => 'archive_last_updated_time_layout_7_background_hover_color',
2434 ]
2435 )
2436 );
2437 }
2438
2439 public function archive_last_updated_time_layout_7_margin() {
2440 $this->customizer->add_setting(
2441 'archive_last_updated_time_layout_7_margin',
2442 [
2443 'default' => $this->defaults['archive_last_updated_time_layout_7_margin'],
2444 'capability' => 'edit_theme_options',
2445 'transport' => 'postMessage',
2446 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2447 ]
2448 );
2449
2450 $this->customizer->add_control(
2451 new TitleControl(
2452 $this->customizer,
2453 'archive_last_updated_time_layout_7_margin',
2454 [
2455 'type' => 'betterdocs-title',
2456 'section' => 'betterdocs_archive_page_settings',
2457 'settings' => 'archive_last_updated_time_layout_7_margin',
2458 'label' => __( 'Margin', 'betterdocs' ),
2459 'input_attrs' => [
2460 'id' => 'archive_last_updated_time_layout_7_margin',
2461 'class' => 'betterdocs-dimension'
2462 ]
2463 ]
2464 )
2465 );
2466
2467 $this->customizer->add_setting(
2468 'archive_last_updated_time_layout_7_margin_top',
2469 [
2470 'default' => $this->defaults['archive_last_updated_time_layout_7_margin_top'],
2471 'capability' => 'edit_theme_options',
2472 'transport' => 'postMessage',
2473 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2474 ]
2475 );
2476
2477 $this->customizer->add_control(
2478 new DimensionControl(
2479 $this->customizer,
2480 'archive_last_updated_time_layout_7_margin_top',
2481 [
2482 'type' => 'betterdocs-dimension',
2483 'section' => 'betterdocs_archive_page_settings',
2484 'settings' => 'archive_last_updated_time_layout_7_margin_top',
2485 'label' => __( 'Top', 'betterdocs' ),
2486 'input_attrs' => [
2487 'class' => 'archive_last_updated_time_layout_7_margin betterdocs-dimension'
2488 ]
2489 ]
2490 )
2491 );
2492
2493 $this->customizer->add_setting(
2494 'archive_last_updated_time_layout_7_margin_right',
2495 [
2496 'default' => $this->defaults['archive_last_updated_time_layout_7_margin_right'],
2497 'capability' => 'edit_theme_options',
2498 'transport' => 'postMessage',
2499 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2500
2501 ]
2502 );
2503
2504 $this->customizer->add_control(
2505 new DimensionControl(
2506 $this->customizer,
2507 'archive_last_updated_time_layout_7_margin_right',
2508 [
2509 'type' => 'betterdocs-dimension',
2510 'section' => 'betterdocs_archive_page_settings',
2511 'settings' => 'archive_last_updated_time_layout_7_margin_right',
2512 'label' => __( 'Right', 'betterdocs' ),
2513 'input_attrs' => [
2514 'class' => 'archive_last_updated_time_layout_7_margin betterdocs-dimension'
2515 ]
2516 ]
2517 )
2518 );
2519
2520 $this->customizer->add_setting(
2521 'archive_last_updated_time_layout_7_margin_bottom',
2522 [
2523 'default' => $this->defaults['archive_last_updated_time_layout_7_margin_bottom'],
2524 'capability' => 'edit_theme_options',
2525 'transport' => 'postMessage',
2526 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2527
2528 ]
2529 );
2530
2531 $this->customizer->add_control(
2532 new DimensionControl(
2533 $this->customizer,
2534 'archive_last_updated_time_layout_7_margin_bottom',
2535 [
2536 'type' => 'betterdocs-dimension',
2537 'section' => 'betterdocs_archive_page_settings',
2538 'settings' => 'archive_last_updated_time_layout_7_margin_bottom',
2539 'label' => __( 'Bottom', 'betterdocs' ),
2540 'input_attrs' => [
2541 'class' => 'archive_last_updated_time_layout_7_margin betterdocs-dimension'
2542 ]
2543 ]
2544 )
2545 );
2546
2547 $this->customizer->add_setting(
2548 'archive_last_updated_time_layout_7_margin_left',
2549 [
2550 'default' => $this->defaults['archive_last_updated_time_layout_7_margin_left'],
2551 'capability' => 'edit_theme_options',
2552 'transport' => 'postMessage',
2553 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2554 ]
2555 );
2556
2557 $this->customizer->add_control(
2558 new DimensionControl(
2559 $this->customizer,
2560 'archive_last_updated_time_layout_7_margin_left',
2561 [
2562 'type' => 'betterdocs-dimension',
2563 'section' => 'betterdocs_archive_page_settings',
2564 'settings' => 'archive_last_updated_time_layout_7_margin_left',
2565 'label' => __( 'Left', 'betterdocs' ),
2566 'input_attrs' => [
2567 'class' => 'archive_last_updated_time_layout_7_margin betterdocs-dimension'
2568 ]
2569 ]
2570 )
2571 );
2572 }
2573
2574 public function archive_last_updated_time_layout_7_padding() {
2575 $this->customizer->add_setting(
2576 'archive_last_updated_time_layout_7_padding',
2577 [
2578 'default' => $this->defaults['archive_last_updated_time_layout_7_padding'],
2579 'capability' => 'edit_theme_options',
2580 'transport' => 'postMessage',
2581 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2582 ]
2583 );
2584
2585 $this->customizer->add_control(
2586 new TitleControl(
2587 $this->customizer,
2588 'archive_last_updated_time_layout_7_padding',
2589 [
2590 'type' => 'betterdocs-title',
2591 'section' => 'betterdocs_archive_page_settings',
2592 'settings' => 'archive_last_updated_time_layout_7_padding',
2593 'label' => __( 'Count padding', 'betterdocs' ),
2594 'input_attrs' => [
2595 'id' => 'archive_last_updated_time_layout_7_padding',
2596 'class' => 'betterdocs-dimension'
2597 ]
2598 ]
2599 )
2600 );
2601
2602 $this->customizer->add_setting(
2603 'archive_last_updated_time_layout_7_padding_top',
2604 [
2605 'default' => $this->defaults['archive_last_updated_time_layout_7_padding_top'],
2606 'capability' => 'edit_theme_options',
2607 'transport' => 'postMessage',
2608 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2609 ]
2610 );
2611
2612 $this->customizer->add_control(
2613 new DimensionControl(
2614 $this->customizer,
2615 'archive_last_updated_time_layout_7_padding_top',
2616 [
2617 'type' => 'betterdocs-dimension',
2618 'section' => 'betterdocs_archive_page_settings',
2619 'settings' => 'archive_last_updated_time_layout_7_padding_top',
2620 'label' => __( 'Top', 'betterdocs' ),
2621 'input_attrs' => [
2622 'class' => 'archive_last_updated_time_layout_7_padding betterdocs-dimension'
2623 ]
2624 ]
2625 )
2626 );
2627
2628 $this->customizer->add_setting(
2629 'archive_last_updated_time_layout_7_padding_right',
2630 [
2631 'default' => $this->defaults['archive_last_updated_time_layout_7_padding_right'],
2632 'capability' => 'edit_theme_options',
2633 'transport' => 'postMessage',
2634 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2635
2636 ]
2637 );
2638
2639 $this->customizer->add_control(
2640 new DimensionControl(
2641 $this->customizer,
2642 'archive_last_updated_time_layout_7_padding_right',
2643 [
2644 'type' => 'betterdocs-dimension',
2645 'section' => 'betterdocs_archive_page_settings',
2646 'settings' => 'archive_last_updated_time_layout_7_padding_right',
2647 'label' => __( 'Right', 'betterdocs' ),
2648 'input_attrs' => [
2649 'class' => 'archive_last_updated_time_layout_7_padding betterdocs-dimension'
2650 ]
2651 ]
2652 )
2653 );
2654
2655 $this->customizer->add_setting(
2656 'archive_last_updated_time_layout_7_padding_bottom',
2657 [
2658 'default' => $this->defaults['archive_last_updated_time_layout_7_padding_bottom'],
2659 'capability' => 'edit_theme_options',
2660 'transport' => 'postMessage',
2661 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2662
2663 ]
2664 );
2665
2666 $this->customizer->add_control(
2667 new DimensionControl(
2668 $this->customizer,
2669 'archive_last_updated_time_layout_7_padding_bottom',
2670 [
2671 'type' => 'betterdocs-dimension',
2672 'section' => 'betterdocs_archive_page_settings',
2673 'settings' => 'archive_last_updated_time_layout_7_padding_bottom',
2674 'label' => __( 'Bottom', 'betterdocs' ),
2675 'input_attrs' => [
2676 'class' => 'archive_last_updated_time_layout_7_padding betterdocs-dimension'
2677 ]
2678 ]
2679 )
2680 );
2681
2682 $this->customizer->add_setting(
2683 'archive_last_updated_time_layout_7_padding_left',
2684 [
2685 'default' => $this->defaults['archive_last_updated_time_layout_7_padding_left'],
2686 'capability' => 'edit_theme_options',
2687 'transport' => 'postMessage',
2688 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2689 ]
2690 );
2691
2692 $this->customizer->add_control(
2693 new DimensionControl(
2694 $this->customizer,
2695 'archive_last_updated_time_layout_7_padding_left',
2696 [
2697 'type' => 'betterdocs-dimension',
2698 'section' => 'betterdocs_archive_page_settings',
2699 'settings' => 'archive_last_updated_time_layout_7_padding_left',
2700 'label' => __( 'Left', 'betterdocs' ),
2701 'input_attrs' => [
2702 'class' => 'archive_last_updated_time_layout_7_padding betterdocs-dimension'
2703 ]
2704 ]
2705 )
2706 );
2707 }
2708
2709
2710 public function archive_docs_list_layout_7() {
2711 $this->customizer->add_setting(
2712 'archive_docs_list_layout_7',
2713 [
2714 'default' => $this->defaults['archive_docs_list_layout_7'],
2715 'sanitize_callback' => 'esc_html'
2716 ]
2717 );
2718
2719 $this->customizer->add_control(
2720 new SeparatorControl(
2721 $this->customizer,
2722 'archive_docs_list_layout_7',
2723 [
2724 'label' => __( 'Archive Docs List', 'betterdocs' ),
2725 'settings' => 'archive_docs_list_layout_7',
2726 'section' => 'betterdocs_archive_page_settings',
2727 ]
2728 )
2729 );
2730 }
2731
2732 public function archive_docs_list_title_color_layout_7() {
2733 $this->customizer->add_setting(
2734 'archive_docs_list_title_color_layout_7',
2735 [
2736 'default' => $this->defaults['archive_docs_list_title_color_layout_7'],
2737 'capability' => 'edit_theme_options',
2738 'transport' => 'postMessage',
2739 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2740 ]
2741 );
2742
2743 $this->customizer->add_control(
2744 new AlphaColorControl(
2745 $this->customizer,
2746 'archive_docs_list_title_color_layout_7',
2747 [
2748 'label' => __( 'Title Color', 'betterdocs' ),
2749 'section' => 'betterdocs_archive_page_settings',
2750 'settings' => 'archive_docs_list_title_color_layout_7',
2751 ]
2752 )
2753 );
2754 }
2755
2756 public function archive_docs_list_title_hover_color_layout_7() {
2757 $this->customizer->add_setting(
2758 'archive_docs_list_title_hover_color_layout_7',
2759 [
2760 'default' => $this->defaults['archive_docs_list_title_hover_color_layout_7'],
2761 'capability' => 'edit_theme_options',
2762 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2763 ]
2764 );
2765
2766 $this->customizer->add_control(
2767 new AlphaColorControl(
2768 $this->customizer,
2769 'archive_docs_list_title_hover_color_layout_7',
2770 [
2771 'label' => __( 'Title Hover Color', 'betterdocs' ),
2772 'section' => 'betterdocs_archive_page_settings',
2773 'settings' => 'archive_docs_list_title_hover_color_layout_7',
2774 ]
2775 )
2776 );
2777 }
2778
2779 public function archive_docs_list_title_font_size_layout_7() {
2780 $this->customizer->add_setting(
2781 'archive_docs_list_title_font_size_layout_7',
2782 [
2783 'default' => $this->defaults['archive_docs_list_title_font_size_layout_7'],
2784 'capability' => 'edit_theme_options',
2785 'transport' => 'postMessage',
2786 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2787
2788 ]
2789 );
2790
2791 $this->customizer->add_control(
2792 new RangeValueControl(
2793 $this->customizer,
2794 'archive_docs_list_title_font_size_layout_7',
2795 [
2796 'type' => 'betterdocs-range-value',
2797 'section' => 'betterdocs_archive_page_settings',
2798 'settings' => 'archive_docs_list_title_font_size_layout_7',
2799 'label' => __( 'Title Font Size', 'betterdocs' ),
2800 'input_attrs' => [
2801 'class' => '',
2802 'min' => 0,
2803 'max' => 50,
2804 'step' => 1,
2805 'suffix' => 'px' //optional suffix
2806 ]
2807 ]
2808 )
2809 );
2810 }
2811
2812 public function archive_docs_list_title_margin_layout_7() {
2813 $this->customizer->add_setting(
2814 'archive_docs_list_title_margin_layout_7',
2815 [
2816 'default' => $this->defaults['archive_docs_list_title_margin_layout_7'],
2817 'capability' => 'edit_theme_options',
2818 'transport' => 'postMessage',
2819 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2820 ]
2821 );
2822
2823 $this->customizer->add_control(
2824 new TitleControl(
2825 $this->customizer,
2826 'archive_docs_list_title_margin_layout_7',
2827 [
2828 'type' => 'betterdocs-title',
2829 'section' => 'betterdocs_archive_page_settings',
2830 'settings' => 'archive_docs_list_title_margin_layout_7',
2831 'label' => __( 'Title Margin', 'betterdocs' ),
2832 'input_attrs' => [
2833 'id' => 'archive_docs_list_title_margin_layout_7',
2834 'class' => 'betterdocs-dimension'
2835 ]
2836 ]
2837 )
2838 );
2839
2840 $this->customizer->add_setting(
2841 'archive_docs_list_title_margin_top_layout_7',
2842 [
2843 'default' => $this->defaults['archive_docs_list_title_margin_top_layout_7'],
2844 'capability' => 'edit_theme_options',
2845 'transport' => 'postMessage',
2846 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2847 ]
2848 );
2849
2850 $this->customizer->add_control(
2851 new DimensionControl(
2852 $this->customizer,
2853 'archive_docs_list_title_margin_top_layout_7',
2854 [
2855 'type' => 'betterdocs-dimension',
2856 'section' => 'betterdocs_archive_page_settings',
2857 'settings' => 'archive_docs_list_title_margin_top_layout_7',
2858 'label' => __( 'Top', 'betterdocs' ),
2859 'input_attrs' => [
2860 'class' => 'archive_docs_list_title_margin_layout_7 betterdocs-dimension'
2861 ]
2862 ]
2863 )
2864 );
2865
2866 $this->customizer->add_setting(
2867 'archive_docs_list_title_margin_right_layout_7',
2868 [
2869 'default' => $this->defaults['archive_docs_list_title_margin_right_layout_7'],
2870 'capability' => 'edit_theme_options',
2871 'transport' => 'postMessage',
2872 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2873
2874 ]
2875 );
2876
2877 $this->customizer->add_control(
2878 new DimensionControl(
2879 $this->customizer,
2880 'archive_docs_list_title_margin_right_layout_7',
2881 [
2882 'type' => 'betterdocs-dimension',
2883 'section' => 'betterdocs_archive_page_settings',
2884 'settings' => 'archive_docs_list_title_margin_right_layout_7',
2885 'label' => __( 'Right', 'betterdocs' ),
2886 'input_attrs' => [
2887 'class' => 'archive_docs_list_title_margin_layout_7 betterdocs-dimension'
2888 ]
2889 ]
2890 )
2891 );
2892
2893 $this->customizer->add_setting(
2894 'archive_docs_list_title_margin_bottom_layout_7',
2895 [
2896 'default' => $this->defaults['archive_docs_list_title_margin_bottom_layout_7'],
2897 'capability' => 'edit_theme_options',
2898 'transport' => 'postMessage',
2899 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2900
2901 ]
2902 );
2903
2904 $this->customizer->add_control(
2905 new DimensionControl(
2906 $this->customizer,
2907 'archive_docs_list_title_margin_bottom_layout_7',
2908 [
2909 'type' => 'betterdocs-dimension',
2910 'section' => 'betterdocs_archive_page_settings',
2911 'settings' => 'archive_docs_list_title_margin_bottom_layout_7',
2912 'label' => __( 'Bottom', 'betterdocs' ),
2913 'input_attrs' => [
2914 'class' => 'archive_docs_list_title_margin_layout_7 betterdocs-dimension'
2915 ]
2916 ]
2917 )
2918 );
2919
2920 $this->customizer->add_setting(
2921 'archive_docs_list_title_margin_left_layout_7',
2922 [
2923 'default' => $this->defaults['archive_docs_list_title_margin_left_layout_7'],
2924 'capability' => 'edit_theme_options',
2925 'transport' => 'postMessage',
2926 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2927 ]
2928 );
2929
2930 $this->customizer->add_control(
2931 new DimensionControl(
2932 $this->customizer,
2933 'archive_docs_list_title_margin_left_layout_7',
2934 [
2935 'type' => 'betterdocs-dimension',
2936 'section' => 'betterdocs_archive_page_settings',
2937 'settings' => 'archive_docs_list_title_margin_left_layout_7',
2938 'label' => __( 'Left', 'betterdocs' ),
2939 'input_attrs' => [
2940 'class' => 'archive_docs_list_title_margin_layout_7 betterdocs-dimension'
2941 ]
2942 ]
2943 )
2944 );
2945 }
2946
2947
2948 public function archive_docs_list_icon_size_layout_7() {
2949 $this->customizer->add_setting(
2950 'archive_docs_list_icon_size_layout_7',
2951 [
2952 'default' => $this->defaults['archive_docs_list_icon_size_layout_7'],
2953 'capability' => 'edit_theme_options',
2954 'transport' => 'postMessage',
2955 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2956
2957 ]
2958 );
2959
2960 $this->customizer->add_control(
2961 new RangeValueControl(
2962 $this->customizer,
2963 'archive_docs_list_icon_size_layout_7',
2964 [
2965 'type' => 'betterdocs-range-value',
2966 'section' => 'betterdocs_archive_page_settings',
2967 'settings' => 'archive_docs_list_icon_size_layout_7',
2968 'label' => __( 'List Icon Size', 'betterdocs' ),
2969 'input_attrs' => [
2970 'class' => '',
2971 'min' => 0,
2972 'max' => 50,
2973 'step' => 1,
2974 'suffix' => 'px' //optional suffix
2975 ]
2976 ]
2977 )
2978 );
2979 }
2980
2981 public function archive_docs_list_last_updated_time_font_size_layout_7() {
2982 $this->customizer->add_setting(
2983 'archive_docs_list_last_updated_time_font_size_layout_7',
2984 [
2985 'default' => $this->defaults['archive_docs_list_last_updated_time_font_size_layout_7'],
2986 'capability' => 'edit_theme_options',
2987 'transport' => 'postMessage',
2988 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2989
2990 ]
2991 );
2992
2993 $this->customizer->add_control(
2994 new RangeValueControl(
2995 $this->customizer,
2996 'archive_docs_list_last_updated_time_font_size_layout_7',
2997 [
2998 'type' => 'betterdocs-range-value',
2999 'section' => 'betterdocs_archive_page_settings',
3000 'settings' => 'archive_docs_list_last_updated_time_font_size_layout_7',
3001 'label' => __( 'List Updated Time Font Size', 'betterdocs' ),
3002 'input_attrs' => [
3003 'class' => '',
3004 'min' => 0,
3005 'max' => 50,
3006 'step' => 1,
3007 'suffix' => 'px' //optional suffix
3008 ]
3009 ]
3010 )
3011 );
3012 }
3013
3014 public function archive_docs_list_last_updated_time_font_color_layout_7() {
3015 $this->customizer->add_setting(
3016 'archive_docs_list_last_updated_time_font_color_layout_7',
3017 [
3018 'default' => $this->defaults['archive_docs_list_last_updated_time_font_color_layout_7'],
3019 'capability' => 'edit_theme_options',
3020 'transport' => 'postMessage',
3021 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3022 ]
3023 );
3024
3025 $this->customizer->add_control(
3026 new AlphaColorControl(
3027 $this->customizer,
3028 'archive_docs_list_last_updated_time_font_color_layout_7',
3029 [
3030 'label' => __( 'List Updated Time Color', 'betterdocs' ),
3031 'section' => 'betterdocs_archive_page_settings',
3032 'settings' => 'archive_docs_list_last_updated_time_font_color_layout_7',
3033 ]
3034 )
3035 );
3036 }
3037
3038 public function archive_docs_list_last_updated_time_font_hover_color_layout_7() {
3039 $this->customizer->add_setting(
3040 'archive_docs_list_last_updated_time_font_hover_color_layout_7',
3041 [
3042 'default' => $this->defaults['archive_docs_list_last_updated_time_font_hover_color_layout_7'],
3043 'capability' => 'edit_theme_options',
3044 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3045 ]
3046 );
3047
3048 $this->customizer->add_control(
3049 new AlphaColorControl(
3050 $this->customizer,
3051 'archive_docs_list_last_updated_time_font_hover_color_layout_7',
3052 [
3053 'label' => __( 'List Updated Time Hover Color', 'betterdocs' ),
3054 'section' => 'betterdocs_archive_page_settings',
3055 'settings' => 'archive_docs_list_last_updated_time_font_hover_color_layout_7',
3056 ]
3057 )
3058 );
3059 }
3060
3061 public function archive_docs_list_last_updated_time_background_color_layout_7() {
3062 $this->customizer->add_setting(
3063 'archive_docs_list_last_updated_time_background_color_layout_7',
3064 [
3065 'default' => $this->defaults['archive_docs_list_last_updated_time_background_color_layout_7'],
3066 'capability' => 'edit_theme_options',
3067 'transport' => 'postMessage',
3068 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3069 ]
3070 );
3071
3072 $this->customizer->add_control(
3073 new AlphaColorControl(
3074 $this->customizer,
3075 'archive_docs_list_last_updated_time_background_color_layout_7',
3076 [
3077 'label' => __( 'List Updated Time Background Color', 'betterdocs' ),
3078 'section' => 'betterdocs_archive_page_settings',
3079 'settings' => 'archive_docs_list_last_updated_time_background_color_layout_7',
3080 ]
3081 )
3082 );
3083 }
3084
3085
3086 public function archive_docs_list_last_updated_time_background_hover_color_layout_7() {
3087 $this->customizer->add_setting(
3088 'archive_docs_list_last_updated_time_background_hover_color_layout_7',
3089 [
3090 'default' => $this->defaults['archive_docs_list_last_updated_time_background_hover_color_layout_7'],
3091 'capability' => 'edit_theme_options',
3092 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3093 ]
3094 );
3095
3096 $this->customizer->add_control(
3097 new AlphaColorControl(
3098 $this->customizer,
3099 'archive_docs_list_last_updated_time_background_hover_color_layout_7',
3100 [
3101 'label' => __( 'List Updated Time Background Hover Color', 'betterdocs' ),
3102 'section' => 'betterdocs_archive_page_settings',
3103 'settings' => 'archive_docs_list_last_updated_time_background_hover_color_layout_7',
3104 ]
3105 )
3106 );
3107 }
3108
3109 public function archive_docs_list_excerpt_font_size_layout_7() {
3110 $this->customizer->add_setting(
3111 'archive_docs_list_excerpt_font_size_layout_7',
3112 [
3113 'default' => $this->defaults['archive_docs_list_excerpt_font_size_layout_7'],
3114 'capability' => 'edit_theme_options',
3115 'transport' => 'postMessage',
3116 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3117
3118 ]
3119 );
3120
3121 $this->customizer->add_control(
3122 new RangeValueControl(
3123 $this->customizer,
3124 'archive_docs_list_excerpt_font_size_layout_7',
3125 [
3126 'type' => 'betterdocs-range-value',
3127 'section' => 'betterdocs_archive_page_settings',
3128 'settings' => 'archive_docs_list_excerpt_font_size_layout_7',
3129 'label' => __( 'List Excerpt Font Size', 'betterdocs' ),
3130 'input_attrs' => [
3131 'class' => '',
3132 'min' => 0,
3133 'max' => 50,
3134 'step' => 1,
3135 'suffix' => 'px' //optional suffix
3136 ]
3137 ]
3138 )
3139 );
3140 }
3141
3142 public function archive_docs_list_excerpt_font_color_layout_7() {
3143 $this->customizer->add_setting(
3144 'archive_docs_list_excerpt_font_color_layout_7',
3145 [
3146 'default' => $this->defaults['archive_docs_list_excerpt_font_color_layout_7'],
3147 'capability' => 'edit_theme_options',
3148 'transport' => 'postMessage',
3149 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3150 ]
3151 );
3152
3153 $this->customizer->add_control(
3154 new AlphaColorControl(
3155 $this->customizer,
3156 'archive_docs_list_excerpt_font_color_layout_7',
3157 [
3158 'label' => __( 'List Excerpt Font Color', 'betterdocs' ),
3159 'section' => 'betterdocs_archive_page_settings',
3160 'settings' => 'archive_docs_list_excerpt_font_color_layout_7',
3161 ]
3162 )
3163 );
3164 }
3165
3166 public function archive_docs_list_excerpt_margin_layout_7() {
3167 $this->customizer->add_setting(
3168 'archive_docs_list_excerpt_margin_layout_7',
3169 [
3170 'default' => $this->defaults['archive_docs_list_excerpt_margin_layout_7'],
3171 'capability' => 'edit_theme_options',
3172 'transport' => 'postMessage',
3173 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3174 ]
3175 );
3176
3177 $this->customizer->add_control(
3178 new TitleControl(
3179 $this->customizer,
3180 'archive_docs_list_excerpt_margin_layout_7',
3181 [
3182 'type' => 'betterdocs-title',
3183 'section' => 'betterdocs_archive_page_settings',
3184 'settings' => 'archive_docs_list_excerpt_margin_layout_7',
3185 'label' => __( 'List Excerpt Margin', 'betterdocs' ),
3186 'input_attrs' => [
3187 'id' => 'archive_docs_list_excerpt_margin_layout_7',
3188 'class' => 'betterdocs-dimension'
3189 ]
3190 ]
3191 )
3192 );
3193
3194 $this->customizer->add_setting(
3195 'archive_docs_list_excerpt_margin_top_layout_7',
3196 [
3197 'default' => $this->defaults['archive_docs_list_excerpt_margin_top_layout_7'],
3198 'capability' => 'edit_theme_options',
3199 'transport' => 'postMessage',
3200 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3201 ]
3202 );
3203
3204 $this->customizer->add_control(
3205 new DimensionControl(
3206 $this->customizer,
3207 'archive_docs_list_excerpt_margin_top_layout_7',
3208 [
3209 'type' => 'betterdocs-dimension',
3210 'section' => 'betterdocs_archive_page_settings',
3211 'settings' => 'archive_docs_list_excerpt_margin_top_layout_7',
3212 'label' => __( 'Top', 'betterdocs' ),
3213 'input_attrs' => [
3214 'class' => 'archive_docs_list_excerpt_margin_layout_7 betterdocs-dimension'
3215 ]
3216 ]
3217 )
3218 );
3219
3220 $this->customizer->add_setting(
3221 'archive_docs_list_excerpt_margin_right_layout_7',
3222 [
3223 'default' => $this->defaults['archive_docs_list_excerpt_margin_right_layout_7'],
3224 'capability' => 'edit_theme_options',
3225 'transport' => 'postMessage',
3226 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3227
3228 ]
3229 );
3230
3231 $this->customizer->add_control(
3232 new DimensionControl(
3233 $this->customizer,
3234 'archive_docs_list_excerpt_margin_right_layout_7',
3235 [
3236 'type' => 'betterdocs-dimension',
3237 'section' => 'betterdocs_archive_page_settings',
3238 'settings' => 'archive_docs_list_excerpt_margin_right_layout_7',
3239 'label' => __( 'Right', 'betterdocs' ),
3240 'input_attrs' => [
3241 'class' => 'archive_docs_list_excerpt_margin_layout_7 betterdocs-dimension'
3242 ]
3243 ]
3244 )
3245 );
3246
3247 $this->customizer->add_setting(
3248 'archive_docs_list_excerpt_margin_bottom_layout_7',
3249 [
3250 'default' => $this->defaults['archive_docs_list_excerpt_margin_bottom_layout_7'],
3251 'capability' => 'edit_theme_options',
3252 'transport' => 'postMessage',
3253 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3254
3255 ]
3256 );
3257
3258 $this->customizer->add_control(
3259 new DimensionControl(
3260 $this->customizer,
3261 'archive_docs_list_excerpt_margin_bottom_layout_7',
3262 [
3263 'type' => 'betterdocs-dimension',
3264 'section' => 'betterdocs_archive_page_settings',
3265 'settings' => 'archive_docs_list_excerpt_margin_bottom_layout_7',
3266 'label' => __( 'Bottom', 'betterdocs' ),
3267 'input_attrs' => [
3268 'class' => 'archive_docs_list_excerpt_margin_layout_7 betterdocs-dimension'
3269 ]
3270 ]
3271 )
3272 );
3273
3274 $this->customizer->add_setting(
3275 'archive_docs_list_excerpt_margin_left_layout_7',
3276 [
3277 'default' => $this->defaults['archive_docs_list_excerpt_margin_left_layout_7'],
3278 'capability' => 'edit_theme_options',
3279 'transport' => 'postMessage',
3280 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3281 ]
3282 );
3283
3284 $this->customizer->add_control(
3285 new DimensionControl(
3286 $this->customizer,
3287 'archive_docs_list_excerpt_margin_left_layout_7',
3288 [
3289 'type' => 'betterdocs-dimension',
3290 'section' => 'betterdocs_archive_page_settings',
3291 'settings' => 'archive_docs_list_excerpt_margin_left_layout_7',
3292 'label' => __( 'Left', 'betterdocs' ),
3293 'input_attrs' => [
3294 'class' => 'archive_docs_list_excerpt_margin_layout_7 betterdocs-dimension'
3295 ]
3296 ]
3297 )
3298 );
3299 }
3300
3301
3302
3303 public function title_tag() {
3304 $this->customizer->add_setting(
3305 'betterdocs_archive_title_tag',
3306 [
3307 'default' => $this->defaults['betterdocs_archive_title_tag'],
3308 'capability' => 'edit_theme_options',
3309 'sanitize_callback' => [ $this->sanitizer, 'select' ]
3310 ]
3311 );
3312
3313 $this->customizer->add_control(
3314 new WP_Customize_Control(
3315 $this->customizer,
3316 'betterdocs_archive_title_tag',
3317 [
3318 'label' => __( 'Category Title Tag', 'betterdocs' ),
3319 'section' => 'betterdocs_archive_page_settings',
3320 'settings' => 'betterdocs_archive_title_tag',
3321 'type' => 'select',
3322 'choices' => [
3323 'h1' => 'h1',
3324 'h2' => 'h2',
3325 'h3' => 'h3',
3326 'h4' => 'h4',
3327 'h5' => 'h5',
3328 'h6' => 'h6',
3329 'p' => 'p'
3330 ]
3331 ]
3332 )
3333 );
3334 }
3335
3336 public function title_color() {
3337 $this->customizer->add_setting(
3338 'betterdocs_archive_title_color',
3339 [
3340 'default' => $this->defaults['betterdocs_archive_title_color'],
3341 'capability' => 'edit_theme_options',
3342 'transport' => 'postMessage',
3343 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3344 ]
3345 );
3346
3347 $this->customizer->add_control(
3348 new AlphaColorControl(
3349 $this->customizer,
3350 'betterdocs_archive_title_color',
3351 [
3352 'label' => __( 'Title Color', 'betterdocs' ),
3353 'section' => 'betterdocs_archive_page_settings',
3354 'settings' => 'betterdocs_archive_title_color'
3355 ]
3356 )
3357 );
3358 }
3359
3360 public function title_font_size() {
3361 $this->customizer->add_setting(
3362 'betterdocs_archive_title_font_size',
3363 [
3364 'default' => $this->defaults['betterdocs_archive_title_font_size'],
3365 'capability' => 'edit_theme_options',
3366 'transport' => 'postMessage',
3367 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3368
3369 ]
3370 );
3371
3372 $this->customizer->add_control(
3373 new RangeValueControl(
3374 $this->customizer,
3375 'betterdocs_archive_title_font_size',
3376 [
3377 'type' => 'betterdocs-range-value',
3378 'section' => 'betterdocs_archive_page_settings',
3379 'settings' => 'betterdocs_archive_title_font_size',
3380 'label' => __( 'Title Font Size', 'betterdocs' ),
3381 'input_attrs' => [
3382 'min' => 0,
3383 'max' => 50,
3384 'step' => 1,
3385 'suffix' => 'px' //optional suffix
3386 ]
3387 ]
3388 )
3389 );
3390 }
3391
3392 public function title_margin() {
3393 $this->customizer->add_setting(
3394 'betterdocs_archive_title_margin',
3395 [
3396 'default' => $this->defaults['betterdocs_archive_title_margin'],
3397 'capability' => 'edit_theme_options',
3398 'transport' => 'postMessage',
3399 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3400 ]
3401 );
3402
3403 $this->customizer->add_control(
3404 new TitleControl(
3405 $this->customizer,
3406 'betterdocs_archive_title_margin',
3407 [
3408 'type' => 'betterdocs-title',
3409 'section' => 'betterdocs_archive_page_settings',
3410 'settings' => 'betterdocs_archive_title_margin',
3411 'label' => __( 'Archive Title Margin', 'betterdocs' ),
3412 'input_attrs' => [
3413 'id' => 'betterdocs_archive_title_margin',
3414 'class' => 'betterdocs-dimension'
3415 ]
3416 ]
3417 )
3418 );
3419
3420 $this->customizer->add_setting(
3421 'betterdocs_archive_title_margin_top',
3422 [
3423 'default' => $this->defaults['betterdocs_archive_title_margin_top'],
3424 'capability' => 'edit_theme_options',
3425 'transport' => 'postMessage',
3426 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3427 ]
3428 );
3429
3430 $this->customizer->add_control(
3431 new DimensionControl(
3432 $this->customizer,
3433 'betterdocs_archive_title_margin_top',
3434 [
3435 'type' => 'betterdocs-dimension',
3436 'section' => 'betterdocs_archive_page_settings',
3437 'settings' => 'betterdocs_archive_title_margin_top',
3438 'label' => __( 'Top', 'betterdocs' ),
3439 'input_attrs' => [
3440 'class' => 'betterdocs_archive_title_margin betterdocs-dimension'
3441 ]
3442 ]
3443 )
3444 );
3445
3446 $this->customizer->add_setting(
3447 'betterdocs_archive_title_margin_right',
3448 [
3449 'default' => $this->defaults['betterdocs_archive_title_margin_right'],
3450 'capability' => 'edit_theme_options',
3451 'transport' => 'postMessage',
3452 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3453
3454 ]
3455 );
3456
3457 $this->customizer->add_control(
3458 new DimensionControl(
3459 $this->customizer,
3460 'betterdocs_archive_title_margin_right',
3461 [
3462 'type' => 'betterdocs-dimension',
3463 'section' => 'betterdocs_archive_page_settings',
3464 'settings' => 'betterdocs_archive_title_margin_right',
3465 'label' => __( 'Right', 'betterdocs' ),
3466 'input_attrs' => [
3467 'class' => 'betterdocs_archive_title_margin betterdocs-dimension'
3468 ]
3469 ]
3470 )
3471 );
3472
3473 $this->customizer->add_setting(
3474 'betterdocs_archive_title_margin_bottom',
3475 [
3476 'default' => $this->defaults['betterdocs_archive_title_margin_bottom'],
3477 'capability' => 'edit_theme_options',
3478 'transport' => 'postMessage',
3479 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3480
3481 ]
3482 );
3483
3484 $this->customizer->add_control(
3485 new DimensionControl(
3486 $this->customizer,
3487 'betterdocs_archive_title_margin_bottom',
3488 [
3489 'type' => 'betterdocs-dimension',
3490 'section' => 'betterdocs_archive_page_settings',
3491 'settings' => 'betterdocs_archive_title_margin_bottom',
3492 'label' => __( 'Bottom', 'betterdocs' ),
3493 'input_attrs' => [
3494 'class' => 'betterdocs_archive_title_margin betterdocs-dimension'
3495 ]
3496 ]
3497 )
3498 );
3499
3500 $this->customizer->add_setting(
3501 'betterdocs_archive_title_margin_left',
3502 [
3503 'default' => $this->defaults['betterdocs_archive_title_margin_left'],
3504 'capability' => 'edit_theme_options',
3505 'transport' => 'postMessage',
3506 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3507 ]
3508 );
3509
3510 $this->customizer->add_control(
3511 new DimensionControl(
3512 $this->customizer,
3513 'betterdocs_archive_title_margin_left',
3514 [
3515 'type' => 'betterdocs-dimension',
3516 'section' => 'betterdocs_archive_page_settings',
3517 'settings' => 'betterdocs_archive_title_margin_left',
3518 'label' => __( 'Left', 'betterdocs' ),
3519 'input_attrs' => [
3520 'class' => 'betterdocs_archive_title_margin betterdocs-dimension'
3521 ]
3522 ]
3523 )
3524 );
3525 }
3526
3527 public function description_color() {
3528 $this->customizer->add_setting(
3529 'betterdocs_archive_description_color',
3530 [
3531 'default' => $this->defaults['betterdocs_archive_description_color'],
3532 'capability' => 'edit_theme_options',
3533 'transport' => 'postMessage',
3534 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3535 ]
3536 );
3537
3538 $this->customizer->add_control(
3539 new AlphaColorControl(
3540 $this->customizer,
3541 'betterdocs_archive_description_color',
3542 [
3543 'label' => __( 'Description Color', 'betterdocs' ),
3544 'section' => 'betterdocs_archive_page_settings',
3545 'settings' => 'betterdocs_archive_description_color'
3546 ]
3547 )
3548 );
3549 }
3550
3551 public function description_font_size() {
3552 $this->customizer->add_setting(
3553 'betterdocs_archive_description_font_size',
3554 [
3555 'default' => $this->defaults['betterdocs_archive_description_font_size'],
3556 'capability' => 'edit_theme_options',
3557 'transport' => 'postMessage',
3558 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3559
3560 ]
3561 );
3562
3563 $this->customizer->add_control(
3564 new RangeValueControl(
3565 $this->customizer,
3566 'betterdocs_archive_description_font_size',
3567 [
3568 'type' => 'betterdocs-range-value',
3569 'section' => 'betterdocs_archive_page_settings',
3570 'settings' => 'betterdocs_archive_description_font_size',
3571 'label' => __( 'Description Font Size', 'betterdocs' ),
3572 'input_attrs' => [
3573 'min' => 0,
3574 'max' => 50,
3575 'step' => 1,
3576 'suffix' => 'px' //optional suffix
3577 ]
3578 ]
3579 )
3580 );
3581 }
3582
3583 public function description_margin() {
3584 $this->customizer->add_setting(
3585 'betterdocs_archive_description_margin',
3586 [
3587 'default' => $this->defaults['betterdocs_archive_description_margin'],
3588 'capability' => 'edit_theme_options',
3589 'transport' => 'postMessage',
3590 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3591
3592 ]
3593 );
3594
3595 $this->customizer->add_control(
3596 new TitleControl(
3597 $this->customizer,
3598 'betterdocs_archive_description_margin',
3599 [
3600 'type' => 'betterdocs-title',
3601 'section' => 'betterdocs_archive_page_settings',
3602 'settings' => 'betterdocs_archive_description_margin',
3603 'label' => __( 'Archive Description Margin', 'betterdocs' ),
3604 'input_attrs' => [
3605 'id' => 'betterdocs_archive_description_margin',
3606 'class' => 'betterdocs-dimension'
3607 ]
3608 ]
3609 )
3610 );
3611
3612 $this->customizer->add_setting(
3613 'betterdocs_archive_description_margin_top',
3614 [
3615 'default' => $this->defaults['betterdocs_archive_description_margin_top'],
3616 'capability' => 'edit_theme_options',
3617 'transport' => 'postMessage',
3618 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3619 ]
3620 );
3621
3622 $this->customizer->add_control(
3623 new DimensionControl(
3624 $this->customizer,
3625 'betterdocs_archive_description_margin_top',
3626 [
3627 'type' => 'betterdocs-dimension',
3628 'section' => 'betterdocs_archive_page_settings',
3629 'settings' => 'betterdocs_archive_description_margin_top',
3630 'label' => __( 'Top', 'betterdocs' ),
3631 'input_attrs' => [
3632 'class' => 'betterdocs_archive_description_margin betterdocs-dimension'
3633 ]
3634 ]
3635 )
3636 );
3637
3638 $this->customizer->add_setting(
3639 'betterdocs_archive_description_margin_right',
3640 [
3641 'default' => $this->defaults['betterdocs_archive_description_margin_right'],
3642 'capability' => 'edit_theme_options',
3643 'transport' => 'postMessage',
3644 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3645
3646 ]
3647 );
3648
3649 $this->customizer->add_control(
3650 new DimensionControl(
3651 $this->customizer,
3652 'betterdocs_archive_description_margin_right',
3653 [
3654 'type' => 'betterdocs-dimension',
3655 'section' => 'betterdocs_archive_page_settings',
3656 'settings' => 'betterdocs_archive_description_margin_right',
3657 'label' => __( 'Right', 'betterdocs' ),
3658 'input_attrs' => [
3659 'class' => 'betterdocs_archive_description_margin betterdocs-dimension'
3660 ]
3661 ]
3662 )
3663 );
3664
3665 $this->customizer->add_setting(
3666 'betterdocs_archive_description_margin_bottom',
3667 [
3668 'default' => $this->defaults['betterdocs_archive_description_margin_bottom'],
3669 'capability' => 'edit_theme_options',
3670 'transport' => 'postMessage',
3671 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3672
3673 ]
3674 );
3675
3676 $this->customizer->add_control(
3677 new DimensionControl(
3678 $this->customizer,
3679 'betterdocs_archive_description_margin_bottom',
3680 [
3681 'type' => 'betterdocs-dimension',
3682 'section' => 'betterdocs_archive_page_settings',
3683 'settings' => 'betterdocs_archive_description_margin_bottom',
3684 'label' => __( 'Bottom', 'betterdocs' ),
3685 'input_attrs' => [
3686 'class' => 'betterdocs_archive_description_margin betterdocs-dimension'
3687 ]
3688 ]
3689 )
3690 );
3691
3692 $this->customizer->add_setting(
3693 'betterdocs_archive_description_margin_left',
3694 [
3695 'default' => $this->defaults['betterdocs_archive_description_margin_left'],
3696 'capability' => 'edit_theme_options',
3697 'transport' => 'postMessage',
3698 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3699
3700 ]
3701 );
3702
3703 $this->customizer->add_control(
3704 new DimensionControl(
3705 $this->customizer,
3706 'betterdocs_archive_description_margin_left',
3707 [
3708 'type' => 'betterdocs-dimension',
3709 'section' => 'betterdocs_archive_page_settings',
3710 'settings' => 'betterdocs_archive_description_margin_left',
3711 'label' => __( 'Left', 'betterdocs' ),
3712 'input_attrs' => [
3713 'class' => 'betterdocs_archive_description_margin betterdocs-dimension'
3714 ]
3715 ]
3716 )
3717 );
3718 }
3719
3720 public function list_icon() {
3721 $this->customizer->add_setting(
3722 'betterdocs_archive_list_icon',
3723 [
3724 'default' => $this->defaults['betterdocs_archive_list_icon'],
3725 'capability' => 'edit_theme_options',
3726
3727 ]
3728 );
3729
3730 $this->customizer->add_control(
3731 new WP_Customize_Image_Control(
3732 $this->customizer,
3733 'betterdocs_archive_list_icon',
3734 [
3735 'section' => 'betterdocs_archive_page_settings',
3736 'settings' => 'betterdocs_archive_list_icon',
3737 'label' => __( 'List Icon', 'betterdocs' )
3738 ]
3739 )
3740 );
3741 }
3742
3743 public function list_icon_color() {
3744 $this->customizer->add_setting(
3745 'betterdocs_archive_list_icon_color',
3746 [
3747 'default' => $this->defaults['betterdocs_archive_list_icon_color'],
3748 'capability' => 'edit_theme_options',
3749 'transport' => 'postMessage',
3750 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3751 ]
3752 );
3753
3754 $this->customizer->add_control(
3755 new AlphaColorControl(
3756 $this->customizer,
3757 'betterdocs_archive_list_icon_color',
3758 [
3759 'label' => __( 'List Icon Color', 'betterdocs' ),
3760 'section' => 'betterdocs_archive_page_settings',
3761 'settings' => 'betterdocs_archive_list_icon_color'
3762 ]
3763 )
3764 );
3765 }
3766
3767 public function list_icon_font_size() {
3768 $this->customizer->add_setting(
3769 'betterdocs_archive_list_icon_font_size',
3770 [
3771 'default' => $this->defaults['betterdocs_archive_list_icon_font_size'],
3772 'capability' => 'edit_theme_options',
3773 'transport' => 'postMessage',
3774 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3775
3776 ]
3777 );
3778
3779 $this->customizer->add_control(
3780 new RangeValueControl(
3781 $this->customizer,
3782 'betterdocs_archive_list_icon_font_size',
3783 [
3784 'type' => 'betterdocs-range-value',
3785 'section' => 'betterdocs_archive_page_settings',
3786 'settings' => 'betterdocs_archive_list_icon_font_size',
3787 'label' => __( 'List Icon Font Size', 'betterdocs' ),
3788 'input_attrs' => [
3789 'class' => '',
3790 'min' => 0,
3791 'max' => 50,
3792 'step' => 1,
3793 'suffix' => 'px' //optional suffix
3794 ]
3795 ]
3796 )
3797 );
3798 }
3799
3800 public function list_item_color() {
3801 $this->customizer->add_setting(
3802 'betterdocs_archive_list_item_color',
3803 [
3804 'default' => $this->defaults['betterdocs_archive_list_item_color'],
3805 'capability' => 'edit_theme_options',
3806 'transport' => 'postMessage',
3807 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3808 ]
3809 );
3810
3811 $this->customizer->add_control(
3812 new AlphaColorControl(
3813 $this->customizer,
3814 'betterdocs_archive_list_item_color',
3815 [
3816 'label' => __( 'List Item Color', 'betterdocs' ),
3817 'section' => 'betterdocs_archive_page_settings',
3818 'settings' => 'betterdocs_archive_list_item_color'
3819 ]
3820 )
3821 );
3822 }
3823
3824 public function list_item_hover_color() {
3825 $this->customizer->add_setting(
3826 'betterdocs_archive_list_item_hover_color',
3827 [
3828 'default' => $this->defaults['betterdocs_archive_list_item_hover_color'],
3829 'capability' => 'edit_theme_options',
3830 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3831 ]
3832 );
3833
3834 $this->customizer->add_control(
3835 new AlphaColorControl(
3836 $this->customizer,
3837 'betterdocs_archive_list_item_hover_color',
3838 [
3839 'label' => __( 'List Item Hover Color', 'betterdocs' ),
3840 'section' => 'betterdocs_archive_page_settings',
3841 'settings' => 'betterdocs_archive_list_item_hover_color'
3842 ]
3843 )
3844 );
3845 }
3846
3847 public function list_item_font_size() {
3848 $this->customizer->add_setting(
3849 'betterdocs_archive_list_item_font_size',
3850 [
3851 'default' => $this->defaults['betterdocs_archive_list_item_font_size'],
3852 'capability' => 'edit_theme_options',
3853 'transport' => 'postMessage',
3854 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3855
3856 ]
3857 );
3858
3859 $this->customizer->add_control(
3860 new RangeValueControl(
3861 $this->customizer,
3862 'betterdocs_archive_list_item_font_size',
3863 [
3864 'type' => 'betterdocs-range-value',
3865 'section' => 'betterdocs_archive_page_settings',
3866 'settings' => 'betterdocs_archive_list_item_font_size',
3867 'label' => __( 'List Item Font Size', 'betterdocs' ),
3868 'input_attrs' => [
3869 'class' => '',
3870 'min' => 0,
3871 'max' => 50,
3872 'step' => 1,
3873 'suffix' => 'px' //optional suffix
3874 ]
3875 ]
3876 )
3877 );
3878 }
3879
3880 public function list_margin() {
3881 $this->customizer->add_setting(
3882 'betterdocs_archive_article_list_margin',
3883 [
3884 'default' => $this->defaults['betterdocs_archive_article_list_margin'],
3885 'capability' => 'edit_theme_options',
3886 'transport' => 'postMessage',
3887 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3888
3889 ]
3890 );
3891
3892 $this->customizer->add_control(
3893 new TitleControl(
3894 $this->customizer,
3895 'betterdocs_archive_article_list_margin',
3896 [
3897 'type' => 'betterdocs-title',
3898 'section' => 'betterdocs_archive_page_settings',
3899 'settings' => 'betterdocs_archive_article_list_margin',
3900 'label' => __( 'Docs List Margin', 'betterdocs' ),
3901 'input_attrs' => [
3902 'id' => 'betterdocs_archive_article_list_margin',
3903 'class' => 'betterdocs-dimension'
3904 ]
3905 ]
3906 )
3907 );
3908
3909 $this->customizer->add_setting(
3910 'betterdocs_archive_article_list_margin_top',
3911 [
3912 'default' => $this->defaults['betterdocs_archive_article_list_margin_top'],
3913 'capability' => 'edit_theme_options',
3914 'transport' => 'postMessage',
3915 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3916 ]
3917 );
3918
3919 $this->customizer->add_control(
3920 new DimensionControl(
3921 $this->customizer,
3922 'betterdocs_archive_article_list_margin_top',
3923 [
3924 'type' => 'betterdocs-dimension',
3925 'section' => 'betterdocs_archive_page_settings',
3926 'settings' => 'betterdocs_archive_article_list_margin_top',
3927 'label' => __( 'Top', 'betterdocs' ),
3928 'input_attrs' => [
3929 'class' => 'betterdocs_archive_article_list_margin betterdocs-dimension'
3930 ]
3931 ]
3932 )
3933 );
3934
3935 $this->customizer->add_setting(
3936 'betterdocs_archive_article_list_margin_right',
3937 [
3938 'default' => $this->defaults['betterdocs_archive_article_list_margin_right'],
3939 'capability' => 'edit_theme_options',
3940 'transport' => 'postMessage',
3941 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3942
3943 ]
3944 );
3945
3946 $this->customizer->add_control(
3947 new DimensionControl(
3948 $this->customizer,
3949 'betterdocs_archive_article_list_margin_right',
3950 [
3951 'type' => 'betterdocs-dimension',
3952 'section' => 'betterdocs_archive_page_settings',
3953 'settings' => 'betterdocs_archive_article_list_margin_right',
3954 'label' => __( 'Right', 'betterdocs' ),
3955 'input_attrs' => [
3956 'class' => 'betterdocs_archive_article_list_margin betterdocs-dimension'
3957 ]
3958 ]
3959 )
3960 );
3961
3962 $this->customizer->add_setting(
3963 'betterdocs_archive_article_list_margin_bottom',
3964 [
3965 'default' => $this->defaults['betterdocs_archive_article_list_margin_bottom'],
3966 'capability' => 'edit_theme_options',
3967 'transport' => 'postMessage',
3968 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3969
3970 ]
3971 );
3972
3973 $this->customizer->add_control(
3974 new DimensionControl(
3975 $this->customizer,
3976 'betterdocs_archive_article_list_margin_bottom',
3977 [
3978 'type' => 'betterdocs-dimension',
3979 'section' => 'betterdocs_archive_page_settings',
3980 'settings' => 'betterdocs_archive_article_list_margin_bottom',
3981 'label' => __( 'Bottom', 'betterdocs' ),
3982 'input_attrs' => [
3983 'class' => 'betterdocs_archive_article_list_margin betterdocs-dimension'
3984 ]
3985 ]
3986 )
3987 );
3988
3989 $this->customizer->add_setting(
3990 'betterdocs_archive_article_list_margin_left',
3991 [
3992 'default' => $this->defaults['betterdocs_archive_article_list_margin_left'],
3993 'capability' => 'edit_theme_options',
3994 'transport' => 'postMessage',
3995 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3996
3997 ]
3998 );
3999
4000 $this->customizer->add_control(
4001 new DimensionControl(
4002 $this->customizer,
4003 'betterdocs_archive_article_list_margin_left',
4004 [
4005 'type' => 'betterdocs-dimension',
4006 'section' => 'betterdocs_archive_page_settings',
4007 'settings' => 'betterdocs_archive_article_list_margin_left',
4008 'label' => __( 'Left', 'betterdocs' ),
4009 'input_attrs' => [
4010 'class' => 'betterdocs_archive_article_list_margin betterdocs-dimension'
4011 ]
4012 ]
4013 )
4014 );
4015 }
4016
4017 public function article_subcategory_color() {
4018 $this->customizer->add_setting(
4019 'betterdocs_archive_article_subcategory_color',
4020 [
4021 'default' => $this->defaults['betterdocs_archive_article_subcategory_color'],
4022 'capability' => 'edit_theme_options',
4023 'transport' => 'postMessage',
4024 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4025 ]
4026 );
4027
4028 $this->customizer->add_control(
4029 new AlphaColorControl(
4030 $this->customizer,
4031 'betterdocs_archive_article_subcategory_color',
4032 [
4033 'label' => __( 'Docs Subcategory Color', 'betterdocs' ),
4034 'section' => 'betterdocs_archive_page_settings',
4035 'settings' => 'betterdocs_archive_article_subcategory_color',
4036 'priority' => 44
4037 ]
4038 )
4039 );
4040 }
4041
4042 public function article_subcategory_hover_color() {
4043 $this->customizer->add_setting(
4044 'betterdocs_archive_article_subcategory_hover_color',
4045 [
4046 'default' => $this->defaults['betterdocs_archive_article_subcategory_hover_color'],
4047 'capability' => 'edit_theme_options',
4048 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4049 ]
4050 );
4051
4052 $this->customizer->add_control(
4053 new AlphaColorControl(
4054 $this->customizer,
4055 'betterdocs_archive_article_subcategory_hover_color',
4056 [
4057 'label' => __( 'Docs Subcategory Hover Color', 'betterdocs' ),
4058 'section' => 'betterdocs_archive_page_settings',
4059 'settings' => 'betterdocs_archive_article_subcategory_hover_color',
4060 'priority' => 44
4061 ]
4062 )
4063 );
4064 }
4065
4066 public function article_subcategory_font_size() {
4067 $this->customizer->add_setting(
4068 'betterdocs_archive_article_subcategory_font_size',
4069 [
4070 'default' => $this->defaults['betterdocs_archive_article_subcategory_font_size'],
4071 'capability' => 'edit_theme_options',
4072 'transport' => 'postMessage',
4073 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4074
4075 ]
4076 );
4077
4078 $this->customizer->add_control(
4079 new RangeValueControl(
4080 $this->customizer,
4081 'betterdocs_archive_article_subcategory_font_size',
4082 [
4083 'type' => 'betterdocs-range-value',
4084 'section' => 'betterdocs_archive_page_settings',
4085 'settings' => 'betterdocs_archive_article_subcategory_font_size',
4086 'label' => __( 'Docs Subcategory Font Size', 'betterdocs' ),
4087 'priority' => 44,
4088 'input_attrs' => [
4089 'class' => '',
4090 'min' => 0,
4091 'max' => 50,
4092 'step' => 1,
4093 'suffix' => 'px' //optional suffix
4094 ]
4095 ]
4096 )
4097 );
4098 }
4099
4100 public function subcategory_icon_color() {
4101 $this->customizer->add_setting(
4102 'betterdocs_archive_subcategory_icon_color',
4103 [
4104 'default' => $this->defaults['betterdocs_archive_subcategory_icon_color'],
4105 'capability' => 'edit_theme_options',
4106 'transport' => 'postMessage',
4107 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4108 ]
4109 );
4110
4111 $this->customizer->add_control(
4112 new AlphaColorControl(
4113 $this->customizer,
4114 'betterdocs_archive_subcategory_icon_color',
4115 [
4116 'label' => __( 'Subcategory Icon Color', 'betterdocs' ),
4117 'section' => 'betterdocs_archive_page_settings',
4118 'settings' => 'betterdocs_archive_subcategory_icon_color',
4119 'priority' => 44
4120 ]
4121 )
4122 );
4123 }
4124
4125 public function subcategory_icon_font_size() {
4126 $this->customizer->add_setting(
4127 'betterdocs_archive_subcategory_icon_font_size',
4128 [
4129 'default' => $this->defaults['betterdocs_archive_subcategory_icon_font_size'],
4130 'capability' => 'edit_theme_options',
4131 'transport' => 'postMessage',
4132 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4133
4134 ]
4135 );
4136
4137 $this->customizer->add_control(
4138 new RangeValueControl(
4139 $this->customizer,
4140 'betterdocs_archive_subcategory_icon_font_size',
4141 [
4142 'type' => 'betterdocs-range-value',
4143 'section' => 'betterdocs_archive_page_settings',
4144 'settings' => 'betterdocs_archive_subcategory_icon_font_size',
4145 'label' => __( 'Subcategory Icon Font Size', 'betterdocs' ),
4146 'priority' => 44,
4147 'input_attrs' => [
4148 'class' => '',
4149 'min' => 0,
4150 'max' => 50,
4151 'step' => 1,
4152 'suffix' => 'px' //optional suffix
4153 ]
4154 ]
4155 )
4156 );
4157 }
4158
4159 public function subcategory_article_list_color() {
4160 $this->customizer->add_setting(
4161 'betterdocs_archive_subcategory_article_list_color',
4162 [
4163 'default' => $this->defaults['betterdocs_archive_subcategory_article_list_color'],
4164 'capability' => 'edit_theme_options',
4165 'transport' => 'postMessage',
4166 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4167 ]
4168 );
4169
4170 $this->customizer->add_control(
4171 new AlphaColorControl(
4172 $this->customizer,
4173 'betterdocs_archive_subcategory_article_list_color',
4174 [
4175 'label' => __( 'Subcategory Docs List Color', 'betterdocs' ),
4176 'section' => 'betterdocs_archive_page_settings',
4177 'settings' => 'betterdocs_archive_subcategory_article_list_color',
4178 'priority' => 44
4179 ]
4180 )
4181 );
4182 }
4183
4184 public function article_list_hover_color() {
4185 $this->customizer->add_setting(
4186 'betterdocs_archive_subcategory_article_list_hover_color',
4187 [
4188 'default' => $this->defaults['betterdocs_archive_subcategory_article_list_hover_color'],
4189 'capability' => 'edit_theme_options',
4190 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4191 ]
4192 );
4193
4194 $this->customizer->add_control(
4195 new AlphaColorControl(
4196 $this->customizer,
4197 'betterdocs_archive_subcategory_article_list_hover_color',
4198 [
4199 'label' => __( 'Subcategory List Hover Color', 'betterdocs' ),
4200 'section' => 'betterdocs_archive_page_settings',
4201 'settings' => 'betterdocs_archive_subcategory_article_list_hover_color',
4202 'priority' => 44
4203 ]
4204 )
4205 );
4206 }
4207
4208 public function subcategory_article_list_icon_color() {
4209 $this->customizer->add_setting(
4210 'betterdocs_archive_subcategory_article_list_icon_color',
4211 [
4212 'default' => $this->defaults['betterdocs_archive_subcategory_article_list_icon_color'],
4213 'capability' => 'edit_theme_options',
4214 'transport' => 'postMessage',
4215 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4216 ]
4217 );
4218
4219 $this->customizer->add_control(
4220 new AlphaColorControl(
4221 $this->customizer,
4222 'betterdocs_archive_subcategory_article_list_icon_color',
4223 [
4224 'label' => __( 'Subcategory List Icon Color', 'betterdocs' ),
4225 'section' => 'betterdocs_archive_page_settings',
4226 'settings' => 'betterdocs_archive_subcategory_article_list_icon_color',
4227 'priority' => 44
4228 ]
4229 )
4230 );
4231 }
4232
4233 public function archive_docs_pagination() {
4234 $this->customizer->add_setting(
4235 'archive_docs_pagination',
4236 [
4237 'default' => $this->defaults['archive_docs_pagination'],
4238 'sanitize_callback' => 'esc_html'
4239 ]
4240 );
4241
4242 $this->customizer->add_control(
4243 new SeparatorControl(
4244 $this->customizer,
4245 'archive_docs_pagination',
4246 [
4247 'label' => __( 'Archive Docs Pagination', 'betterdocs' ),
4248 'settings' => 'archive_docs_pagination',
4249 'section' => 'betterdocs_archive_page_settings',
4250 'priority' => 45
4251 ]
4252 )
4253 );
4254 }
4255
4256 public function archive_docs_pagination_wrapper_height() {
4257 $this->customizer->add_setting(
4258 'archive_docs_pagination_wrapper_height',
4259 [
4260 'default' => $this->defaults['archive_docs_pagination_wrapper_height'],
4261 'capability' => 'edit_theme_options',
4262 'transport' => 'postMessage',
4263 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4264 ]
4265 );
4266
4267 $this->customizer->add_control(
4268 new RangeValueControl(
4269 $this->customizer,
4270 'archive_docs_pagination_wrapper_height',
4271 [
4272 'type' => 'betterdocs-range-value',
4273 'section' => 'betterdocs_archive_page_settings',
4274 'settings' => 'archive_docs_pagination_wrapper_height',
4275 'label' => __( 'Height', 'betterdocs' ),
4276 'priority' => 45,
4277 'input_attrs' => [
4278 'min' => 0,
4279 'max' => 100,
4280 'step' => 1,
4281 'suffix' => 'px' //optional suffix
4282 ]
4283 ]
4284 )
4285 );
4286 }
4287
4288 public function archive_docs_pagination_wrapper_width() {
4289 $this->customizer->add_setting(
4290 'archive_docs_pagination_wrapper_width',
4291 [
4292 'default' => $this->defaults['archive_docs_pagination_wrapper_width'],
4293 'capability' => 'edit_theme_options',
4294 'transport' => 'postMessage',
4295 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4296
4297 ]
4298 );
4299
4300 $this->customizer->add_control(
4301 new RangeValueControl(
4302 $this->customizer,
4303 'archive_docs_pagination_wrapper_width',
4304 [
4305 'type' => 'betterdocs-range-value',
4306 'section' => 'betterdocs_archive_page_settings',
4307 'settings' => 'archive_docs_pagination_wrapper_width',
4308 'label' => __( 'Width', 'betterdocs' ),
4309 'priority' => 45,
4310 'input_attrs' => [
4311 'min' => 0,
4312 'max' => 100,
4313 'step' => 1,
4314 'suffix' => 'px' //optional suffix
4315 ]
4316 ]
4317 )
4318 );
4319 }
4320
4321 public function archive_docs_pagination_wrapper_font_size() {
4322 $this->customizer->add_setting(
4323 'archive_docs_pagination_wrapper_font_size',
4324 [
4325 'default' => $this->defaults['archive_docs_pagination_wrapper_font_size'],
4326 'capability' => 'edit_theme_options',
4327 'transport' => 'postMessage',
4328 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4329
4330 ]
4331 );
4332
4333 $this->customizer->add_control(
4334 new RangeValueControl(
4335 $this->customizer,
4336 'archive_docs_pagination_wrapper_font_size',
4337 [
4338 'type' => 'betterdocs-range-value',
4339 'section' => 'betterdocs_archive_page_settings',
4340 'settings' => 'archive_docs_pagination_wrapper_font_size',
4341 'label' => __( 'Font Size', 'betterdocs' ),
4342 'priority' => 45,
4343 'input_attrs' => [
4344 'min' => 0,
4345 'max' => 100,
4346 'step' => 1,
4347 'suffix' => 'px' //optional suffix
4348 ]
4349 ]
4350 )
4351 );
4352 }
4353
4354 public function archive_docs_pagination_wrapper_color() {
4355 $this->customizer->add_setting(
4356 'archive_docs_pagination_wrapper_color',
4357 [
4358 'default' => $this->defaults['archive_docs_pagination_wrapper_color'],
4359 'capability' => 'edit_theme_options',
4360 'transport' => 'postMessage',
4361 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4362 ]
4363 );
4364
4365 $this->customizer->add_control(
4366 new AlphaColorControl(
4367 $this->customizer,
4368 'archive_docs_pagination_wrapper_color',
4369 [
4370 'label' => __( 'Color', 'betterdocs' ),
4371 'section' => 'betterdocs_archive_page_settings',
4372 'settings' => 'archive_docs_pagination_wrapper_color',
4373 'priority' => 45
4374 ]
4375 )
4376 );
4377 }
4378
4379
4380 public function archive_docs_pagination_wrapper_active_color() {
4381 $this->customizer->add_setting(
4382 'archive_docs_pagination_wrapper_active_color',
4383 [
4384 'default' => $this->defaults['archive_docs_pagination_wrapper_active_color'],
4385 'capability' => 'edit_theme_options',
4386 'transport' => 'postMessage',
4387 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4388 ]
4389 );
4390
4391 $this->customizer->add_control(
4392 new AlphaColorControl(
4393 $this->customizer,
4394 'archive_docs_pagination_wrapper_active_color',
4395 [
4396 'label' => __( 'Active Color', 'betterdocs' ),
4397 'section' => 'betterdocs_archive_page_settings',
4398 'settings' => 'archive_docs_pagination_wrapper_active_color',
4399 'priority' => 45,
4400 ]
4401 )
4402 );
4403 }
4404
4405 public function archive_docs_pagination_wrapper_active_border_color() {
4406 $this->customizer->add_setting(
4407 'archive_docs_pagination_wrapper_active_border_color',
4408 [
4409 'default' => $this->defaults['archive_docs_pagination_wrapper_active_border_color'],
4410 'capability' => 'edit_theme_options',
4411 'transport' => 'postMessage',
4412 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4413 ]
4414 );
4415
4416 $this->customizer->add_control(
4417 new AlphaColorControl(
4418 $this->customizer,
4419 'archive_docs_pagination_wrapper_active_border_color',
4420 [
4421 'label' => __( 'Active Border Color', 'betterdocs' ),
4422 'section' => 'betterdocs_archive_page_settings',
4423 'settings' => 'archive_docs_pagination_wrapper_active_border_color',
4424 'priority' => 45
4425 ]
4426 )
4427 );
4428 }
4429
4430 public function archive_docs_pagination_wrapper_background_color_sleek() {
4431 $this->customizer->add_setting(
4432 'archive_docs_pagination_wrapper_background_color_sleek',
4433 [
4434 'default' => $this->defaults['archive_docs_pagination_wrapper_background_color_sleek'],
4435 'capability' => 'edit_theme_options',
4436 'transport' => 'postMessage',
4437 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4438 ]
4439 );
4440
4441 $this->customizer->add_control(
4442 new AlphaColorControl(
4443 $this->customizer,
4444 'archive_docs_pagination_wrapper_background_color_sleek',
4445 [
4446 'label' => __( 'Background Color', 'betterdocs' ),
4447 'section' => 'betterdocs_archive_page_settings',
4448 'settings' => 'archive_docs_pagination_wrapper_background_color_sleek',
4449 'priority' => 45
4450 ]
4451 )
4452 );
4453 }
4454
4455 public function archive_docs_pagination_wrapper_background_color() {
4456 $this->customizer->add_setting(
4457 'archive_docs_pagination_wrapper_background_color',
4458 [
4459 'default' => $this->defaults['archive_docs_pagination_wrapper_background_color'],
4460 'capability' => 'edit_theme_options',
4461 'transport' => 'postMessage',
4462 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4463 ]
4464 );
4465
4466 $this->customizer->add_control(
4467 new AlphaColorControl(
4468 $this->customizer,
4469 'archive_docs_pagination_wrapper_background_color',
4470 [
4471 'label' => __( 'Background Color', 'betterdocs' ),
4472 'section' => 'betterdocs_archive_page_settings',
4473 'settings' => 'archive_docs_pagination_wrapper_background_color',
4474 'priority' => 45
4475 ]
4476 )
4477 );
4478 }
4479 }
4480