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

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

12,938 lines 396.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPDeveloper\BetterDocs\Admin\Customizer\Sections;
4
5 use WP_Customize_Control;
6 use WP_Customize_Image_Control;
7 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\TitleControl;
8 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\NumberControl;
9 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\SelectControl;
10 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\ToggleControl;
11 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\DimensionControl;
12 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\SeparatorControl;
13 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\AlphaColorControl;
14 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\RadioImageControl;
15 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\RangeValueControl;
16
17 class SingleDoc extends Section {
18 /**
19 * Section Priority
20 * @var int
21 */
22 protected $priority = 101;
23
24 /**
25 * Get the section id.
26 * @return string
27 */
28 public function get_id() {
29 return 'betterdocs_single_docs_settings';
30 }
31
32 /**
33 * Get the title of the section.
34 * @return string
35 */
36 public function get_title() {
37 return __( 'Single Doc', 'betterdocs' );
38 }
39
40 public function single_layout_select() {
41
42 $encyclopeia_suorce = betterdocs()->settings->get( 'encyclopedia_source', 'docs' );
43
44 $this->customizer->add_setting(
45 'betterdocs_single_layout_select',
46 [
47 'default' => $this->defaults['betterdocs_single_layout_select'],
48 'capability' => 'edit_theme_options',
49 'sanitize_callback' => [ $this->sanitizer, 'select' ]
50 ]
51 );
52
53 $choices = [
54 'layout-8' => [
55 'label' => __( 'Essence Layout', 'betterdocs' ),
56 'image' => $this->assets->icon( 'customizer/single/layout-8.png', true ),
57 ],
58 'layout-9' => [
59 'label' => __( 'Rustic Layout', 'betterdocs' ),
60 'image' => $this->assets->icon( 'customizer/single/layout-9.png', true ),
61 ],
62 'layout-10' => [
63 'label' => __( 'Slate Layout', 'betterdocs' ),
64 'image' => $this->assets->icon( 'customizer/single/layout-10.png', true ),
65 ],
66 'layout-1' => [
67 'label' => __( 'Classic Layout', 'betterdocs' ),
68 'image' => $this->assets->icon( 'customizer/single/layout-1.png', true )
69 ],
70 'layout-4' => [
71 'label' => __( 'Abstract Layout', 'betterdocs' ),
72 'image' => $this->assets->icon( 'customizer/single/layout-4.png', true ),
73 'pro' => false
74 ],
75 'layout-5' => [
76 'label' => __( 'Modern Layout', 'betterdocs' ),
77 'image' => $this->assets->icon( 'customizer/single/layout-5.png', true ),
78 'pro' => false
79 ],
80 'layout-2' => [
81 'label' => __( 'Minimalist Layout', 'betterdocs' ),
82 'image' => $this->assets->icon( 'customizer/single/layout-2.png', true ),
83 'pro' => true,
84 'url' => 'https://betterdocs.co/upgrade'
85 ],
86 'layout-3' => [
87 'label' => __( 'Artisan Layout', 'betterdocs' ),
88 'image' => $this->assets->icon( 'customizer/single/layout-3.png', true ),
89 'pro' => true,
90 'url' => 'https://betterdocs.co/upgrade'
91 ],
92 'layout-6' => [
93 'label' => __( 'Bohemian Layout', 'betterdocs' ),
94 'image' => $this->assets->icon( 'customizer/single/layout-6.png', true ),
95 'pro' => true,
96 'url' => 'https://betterdocs.co/upgrade'
97 ],
98 ];
99
100 if ( $encyclopeia_suorce == 'docs' ) {
101 $choices['layout-7'] = [
102 'label' => __( 'Encyclopedia Layout', 'betterdocs' ),
103 'image' => $this->assets->icon( 'customizer/encyclopedia/layout-7.png', true ),
104 'pro' => true,
105 'url' => 'https://betterdocs.co/upgrade'
106 ];
107 }
108
109 $this->customizer->add_control(
110 new RadioImageControl(
111 $this->customizer,
112 'betterdocs_single_layout_select',
113 [
114 'type' => 'betterdocs-radio-image',
115 'settings' => 'betterdocs_single_layout_select',
116 'section' => 'betterdocs_single_docs_settings',
117 'label' => __( 'Select Layout', 'betterdocs' ),
118 'priority' => 102,
119 'choices' => apply_filters( 'betterdocs_single_layout_select_choices', $choices )
120 ]
121 )
122 );
123 }
124
125 /**
126 * Content area width for the single doc, mirroring the Docs Page pair.
127 *
128 * Only meaningful on the layouts whose content wrapper is actually capped
129 * by the stylesheet — 1, 5, 6, 8, 9 and 10. Layouts 2, 3 and 4 are
130 * full-bleed by design and have no width to constrain, so both controls are
131 * hidden for them in customizer-condition.js (the codebase drives control
132 * visibility from JS bound to the layout setting, not active_callback).
133 */
134 public function single_doc_content_area_width() {
135 $this->customizer->add_setting(
136 'betterdocs_single_doc_content_width',
137 apply_filters(
138 'betterdocs_single_doc_content_width',
139 [
140 'default' => $this->defaults['betterdocs_single_doc_content_width'],
141 'capability' => 'edit_theme_options',
142 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
143 ]
144 )
145 );
146
147 $this->customizer->add_control(
148 new RangeValueControl(
149 $this->customizer,
150 'betterdocs_single_doc_content_width',
151 [
152 'type' => 'betterdocs-range-value',
153 'section' => 'betterdocs_single_docs_settings',
154 'settings' => 'betterdocs_single_doc_content_width',
155 'label' => __( 'Content Area Width', 'betterdocs' ),
156 'priority' => 103,
157 'input_attrs' => [
158 'class' => 'betterdocs-range-value',
159 'min' => 0,
160 'max' => 100,
161 'step' => 1,
162 'suffix' => '%' //optional suffix
163 ]
164 ]
165 )
166 );
167 }
168
169 public function single_doc_content_area_max_width() {
170 $this->customizer->add_setting(
171 'betterdocs_single_doc_content_max_width',
172 apply_filters(
173 'betterdocs_single_doc_content_max_width',
174 [
175 'default' => $this->defaults['betterdocs_single_doc_content_max_width'],
176 'capability' => 'edit_theme_options',
177 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
178 ]
179 )
180 );
181
182 $this->customizer->add_control(
183 new RangeValueControl(
184 $this->customizer,
185 'betterdocs_single_doc_content_max_width',
186 [
187 'type' => 'betterdocs-range-value',
188 'section' => 'betterdocs_single_docs_settings',
189 'settings' => 'betterdocs_single_doc_content_max_width',
190 'label' => __( 'Content Area Maximum Width', 'betterdocs' ),
191 'priority' => 103,
192 'input_attrs' => [
193 'class' => 'betterdocs-range-value',
194 'min' => 100,
195 'max' => 1600,
196 'step' => 1,
197 'suffix' => 'px' //optional suffix
198 ]
199 ]
200 )
201 );
202 }
203
204 public function doc_single_content_area_bg_color() {
205 $this->customizer->add_setting(
206 'betterdocs_doc_single_content_area_bg_color',
207 [
208 'default' => $this->defaults['betterdocs_doc_single_content_area_bg_color'],
209 'capability' => 'edit_theme_options',
210 'transport' => 'postMessage',
211 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
212 ]
213 );
214
215 $this->customizer->add_control(
216 new AlphaColorControl(
217 $this->customizer,
218 'betterdocs_doc_single_content_area_bg_color',
219 [
220 'label' => __( 'Content Area Background Color', 'betterdocs' ),
221 'section' => 'betterdocs_single_docs_settings',
222 'settings' => 'betterdocs_doc_single_content_area_bg_color',
223 'priority' => 103
224 ]
225 )
226 );
227 }
228
229 public function doc_single_content_area_bg_image() {
230 $this->customizer->add_setting(
231 'betterdocs_doc_single_content_area_bg_image',
232 [
233 'default' => $this->defaults['betterdocs_doc_single_content_area_bg_image'],
234 'capability' => 'edit_theme_options',
235 'transport' => 'postMessage'
236 ]
237 );
238
239 $this->customizer->add_control(
240 new WP_Customize_Image_Control(
241 $this->customizer,
242 'betterdocs_doc_single_content_area_bg_image',
243 [
244 'label' => __( 'Background Image', 'betterdocs' ),
245 'section' => 'betterdocs_single_docs_settings',
246 'settings' => 'betterdocs_doc_single_content_area_bg_image',
247 'priority' => 103
248 ]
249 )
250 );
251 }
252
253 public function doc_single_content_bg_property() {
254 $this->customizer->add_setting(
255 'betterdocs_doc_single_content_bg_property',
256 [
257 'default' => $this->defaults['betterdocs_doc_single_content_bg_property'],
258 'capability' => 'edit_theme_options',
259 'transport' => 'postMessage',
260 'sanitize_callback' => [ $this->sanitizer, 'select' ]
261
262 ]
263 );
264
265 $this->customizer->add_control(
266 new TitleControl(
267 $this->customizer,
268 'betterdocs_doc_single_content_bg_property',
269 [
270 'type' => 'betterdocs-title',
271 'section' => 'betterdocs_single_docs_settings',
272 'settings' => 'betterdocs_doc_single_content_bg_property',
273 'priority' => 103,
274 'label' => __( 'Background Property', 'betterdocs' ),
275 'input_attrs' => [
276 'id' => 'betterdocs_doc_single_content_bg_property',
277 'class' => 'betterdocs-select'
278 ]
279 ]
280 )
281 );
282 }
283
284 public function doc_single_content_bg_property_size() {
285 $this->customizer->add_setting(
286 'betterdocs_doc_single_content_bg_property_size',
287 [
288 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_size'],
289 'capability' => 'edit_theme_options',
290 'transport' => 'postMessage',
291 'sanitize_callback' => [ $this->sanitizer, 'select' ]
292
293 ]
294 );
295
296 $this->customizer->add_control(
297 new SelectControl(
298 $this->customizer,
299 'betterdocs_doc_single_content_bg_property_size',
300 [
301 'type' => 'betterdocs-select',
302 'section' => 'betterdocs_single_docs_settings',
303 'settings' => 'betterdocs_doc_single_content_bg_property_size',
304 'priority' => 103,
305 'label' => __( 'Size', 'betterdocs' ),
306 'input_attrs' => [
307 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
308 ],
309 'choices' => [
310 'auto' => __( 'auto', 'betterdocs' ),
311 'length' => __( 'length', 'betterdocs' ),
312 'cover' => __( 'cover', 'betterdocs' ),
313 'contain' => __( 'contain', 'betterdocs' ),
314 'initial' => __( 'initial', 'betterdocs' ),
315 'inherit' => __( 'inherit', 'betterdocs' )
316 ]
317 ]
318 )
319 );
320 }
321
322 public function doc_single_content_bg_property_repeat() {
323 $this->customizer->add_setting(
324 'betterdocs_doc_single_content_bg_property_repeat',
325 [
326 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_repeat'],
327 'capability' => 'edit_theme_options',
328 'transport' => 'postMessage',
329 'sanitize_callback' => [ $this->sanitizer, 'select' ]
330 ]
331 );
332
333 $this->customizer->add_control(
334 new SelectControl(
335 $this->customizer,
336 'betterdocs_doc_single_content_bg_property_repeat',
337 [
338 'type' => 'betterdocs-select',
339 'section' => 'betterdocs_single_docs_settings',
340 'settings' => 'betterdocs_doc_single_content_bg_property_repeat',
341 'priority' => 103,
342 'label' => __( 'Repeat', 'betterdocs' ),
343 'input_attrs' => [
344 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
345 ],
346 'choices' => [
347 'no-repeat' => __( 'no-repeat', 'betterdocs' ),
348 'initial' => __( 'initial', 'betterdocs' ),
349 'inherit' => __( 'inherit', 'betterdocs' ),
350 'repeat' => __( 'repeat', 'betterdocs' ),
351 'repeat-x' => __( 'repeat-x', 'betterdocs' ),
352 'repeat-y' => __( 'repeat-y', 'betterdocs' )
353 ]
354 ]
355 )
356 );
357 }
358
359 public function doc_single_content_bg_property_attachment() {
360 $this->customizer->add_setting(
361 'betterdocs_doc_single_content_bg_property_attachment',
362 [
363 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_attachment'],
364 'capability' => 'edit_theme_options',
365 'transport' => 'postMessage',
366 'sanitize_callback' => [ $this->sanitizer, 'select' ]
367
368 ]
369 );
370
371 $this->customizer->add_control(
372 new SelectControl(
373 $this->customizer,
374 'betterdocs_doc_single_content_bg_property_attachment',
375 [
376 'type' => 'betterdocs-select',
377 'section' => 'betterdocs_single_docs_settings',
378 'settings' => 'betterdocs_doc_single_content_bg_property_attachment',
379 'priority' => 103,
380 'label' => __( 'Attachment', 'betterdocs' ),
381 'input_attrs' => [
382 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
383 ],
384 'choices' => [
385 'initial' => __( 'initial', 'betterdocs' ),
386 'inherit' => __( 'inherit', 'betterdocs' ),
387 'scroll' => __( 'scroll', 'betterdocs' ),
388 'fixed' => __( 'fixed', 'betterdocs' ),
389 'local' => __( 'local', 'betterdocs' )
390 ]
391 ]
392 )
393 );
394 }
395
396 public function doc_single_content_bg_property_position() {
397 $this->customizer->add_setting(
398 'betterdocs_doc_single_content_bg_property_position',
399 [
400 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_position'],
401 'capability' => 'edit_theme_options',
402 'transport' => 'postMessage',
403 'sanitize_callback' => 'esc_html'
404
405 ]
406 );
407
408 $this->customizer->add_control(
409 new SelectControl(
410 $this->customizer,
411 'betterdocs_doc_single_content_bg_property_position',
412 [
413 'type' => 'betterdocs-select',
414 'section' => 'betterdocs_single_docs_settings',
415 'settings' => 'betterdocs_doc_single_content_bg_property_position',
416 'priority' => 103,
417 'label' => __( 'Position', 'betterdocs' ),
418 'input_attrs' => [
419 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
420 ],
421 'choices' => [
422 'left top' => __( 'left top', 'betterdocs' ),
423 'left center' => __( 'left center', 'betterdocs' ),
424 'left bottom' => __( 'left bottom', 'betterdocs' ),
425 'right top' => __( 'right top', 'betterdocs' ),
426 'right center' => __( 'right center', 'betterdocs' ),
427 'right bottom' => __( 'right bottom', 'betterdocs' ),
428 'center top' => __( 'center top', 'betterdocs' ),
429 'center center' => __( 'center center', 'betterdocs' ),
430 'center bottom' => __( 'center bottom', 'betterdocs' )
431 ]
432 ]
433 )
434 );
435 }
436
437 public function doc_single_content_area_padding() {
438 $this->customizer->add_setting(
439 'betterdocs_doc_single_content_area_padding',
440 [
441 'default' => $this->defaults['betterdocs_doc_single_content_area_padding'],
442 'capability' => 'edit_theme_options',
443 'transport' => 'postMessage',
444 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
445
446 ]
447 );
448
449 $this->customizer->add_control(
450 new TitleControl(
451 $this->customizer,
452 'betterdocs_doc_single_content_area_padding',
453 [
454 'type' => 'betterdocs-title',
455 'section' => 'betterdocs_single_docs_settings',
456 'settings' => 'betterdocs_doc_single_content_area_padding',
457 'label' => __( 'Content Area Padding', 'betterdocs' ),
458 'priority' => 104,
459 'input_attrs' => [
460 'id' => 'betterdocs_doc_single_content_area_padding',
461 'class' => 'betterdocs-dimension'
462 ]
463 ]
464 )
465 );
466
467 $this->customizer->add_setting(
468 'betterdocs_doc_single_content_area_padding_top',
469 [
470 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_top'],
471 'capability' => 'edit_theme_options',
472 'transport' => 'postMessage',
473 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
474 ]
475 );
476
477 $this->customizer->add_control(
478 new DimensionControl(
479 $this->customizer,
480 'betterdocs_doc_single_content_area_padding_top',
481 [
482 'type' => 'betterdocs-dimension',
483 'section' => 'betterdocs_single_docs_settings',
484 'settings' => 'betterdocs_doc_single_content_area_padding_top',
485 'label' => __( 'Top', 'betterdocs' ),
486 'priority' => 104,
487 'input_attrs' => [
488 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
489 ]
490 ]
491 )
492 );
493
494 $this->customizer->add_setting(
495 'betterdocs_doc_single_content_area_padding_right',
496 [
497 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_right'],
498 'capability' => 'edit_theme_options',
499 'transport' => 'postMessage',
500 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
501
502 ]
503 );
504
505 $this->customizer->add_control(
506 new DimensionControl(
507 $this->customizer,
508 'betterdocs_doc_single_content_area_padding_right',
509 [
510 'type' => 'betterdocs-dimension',
511 'section' => 'betterdocs_single_docs_settings',
512 'settings' => 'betterdocs_doc_single_content_area_padding_right',
513 'label' => __( 'Right', 'betterdocs' ),
514 'priority' => 104,
515 'input_attrs' => [
516 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
517 ]
518 ]
519 )
520 );
521
522 $this->customizer->add_setting(
523 'betterdocs_doc_single_content_area_padding_bottom',
524 [
525 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_bottom'],
526 'capability' => 'edit_theme_options',
527 'transport' => 'postMessage',
528 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
529
530 ]
531 );
532
533 $this->customizer->add_control(
534 new DimensionControl(
535 $this->customizer,
536 'betterdocs_doc_single_content_area_padding_bottom',
537 [
538 'type' => 'betterdocs-dimension',
539 'section' => 'betterdocs_single_docs_settings',
540 'settings' => 'betterdocs_doc_single_content_area_padding_bottom',
541 'label' => __( 'Bottom', 'betterdocs' ),
542 'priority' => 104,
543 'input_attrs' => [
544 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
545 ]
546 ]
547 )
548 );
549
550 $this->customizer->add_setting(
551 'betterdocs_doc_single_content_area_padding_left',
552 [
553 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_left'],
554 'capability' => 'edit_theme_options',
555 'transport' => 'postMessage',
556 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
557
558 ]
559 );
560
561 $this->customizer->add_control(
562 new DimensionControl(
563 $this->customizer,
564 'betterdocs_doc_single_content_area_padding_left',
565 [
566 'type' => 'betterdocs-dimension',
567 'section' => 'betterdocs_single_docs_settings',
568 'settings' => 'betterdocs_doc_single_content_area_padding_left',
569 'label' => __( 'Left', 'betterdocs' ),
570 'priority' => 104,
571 'input_attrs' => [
572 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
573 ]
574 ]
575 )
576 );
577 }
578
579 public function doc_single_post_content_padding() {
580 $this->customizer->add_setting(
581 'betterdocs_doc_single_post_content_padding',
582 [
583 'default' => $this->defaults['betterdocs_doc_single_post_content_padding'],
584 'capability' => 'edit_theme_options',
585 'transport' => 'postMessage',
586 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
587
588 ]
589 );
590
591 $this->customizer->add_control(
592 new TitleControl(
593 $this->customizer,
594 'betterdocs_doc_single_post_content_padding',
595 [
596 'type' => 'betterdocs-title',
597 'section' => 'betterdocs_single_docs_settings',
598 'settings' => 'betterdocs_doc_single_post_content_padding',
599 'label' => __( 'Doc Content Padding', 'betterdocs' ),
600 'priority' => 109,
601 'input_attrs' => [
602 'id' => 'betterdocs_doc_single_post_content_padding',
603 'class' => 'betterdocs-dimension'
604 ]
605 ]
606 )
607 );
608
609 $this->customizer->add_setting(
610 'betterdocs_doc_single_post_content_padding_top',
611 [
612 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_top'],
613 'capability' => 'edit_theme_options',
614 'transport' => 'postMessage',
615 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
616 ]
617 );
618
619 $this->customizer->add_control(
620 new DimensionControl(
621 $this->customizer,
622 'betterdocs_doc_single_post_content_padding_top',
623 [
624 'type' => 'betterdocs-dimension',
625 'section' => 'betterdocs_single_docs_settings',
626 'settings' => 'betterdocs_doc_single_post_content_padding_top',
627 'label' => __( 'Top', 'betterdocs' ),
628 'priority' => 109,
629 'input_attrs' => [
630 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
631 ]
632 ]
633 )
634 );
635
636 $this->customizer->add_setting(
637 'betterdocs_doc_single_post_content_padding_right',
638 [
639 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_right'],
640 'capability' => 'edit_theme_options',
641 'transport' => 'postMessage',
642 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
643
644 ]
645 );
646
647 $this->customizer->add_control(
648 new DimensionControl(
649 $this->customizer,
650 'betterdocs_doc_single_post_content_padding_right',
651 [
652 'type' => 'betterdocs-dimension',
653 'section' => 'betterdocs_single_docs_settings',
654 'settings' => 'betterdocs_doc_single_post_content_padding_right',
655 'label' => __( 'Right', 'betterdocs' ),
656 'priority' => 109,
657 'input_attrs' => [
658 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
659 ]
660 ]
661 )
662 );
663
664 $this->customizer->add_setting(
665 'betterdocs_doc_single_post_content_padding_bottom',
666 [
667 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_bottom'],
668 'capability' => 'edit_theme_options',
669 'transport' => 'postMessage',
670 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
671
672 ]
673 );
674
675 $this->customizer->add_control(
676 new DimensionControl(
677 $this->customizer,
678 'betterdocs_doc_single_post_content_padding_bottom',
679 [
680 'type' => 'betterdocs-dimension',
681 'section' => 'betterdocs_single_docs_settings',
682 'settings' => 'betterdocs_doc_single_post_content_padding_bottom',
683 'label' => __( 'Bottom', 'betterdocs' ),
684 'priority' => 109,
685 'input_attrs' => [
686 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
687 ]
688 ]
689 )
690 );
691
692 $this->customizer->add_setting(
693 'betterdocs_doc_single_post_content_padding_left',
694 [
695 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_left'],
696 'capability' => 'edit_theme_options',
697 'transport' => 'postMessage',
698 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
699
700 ]
701 );
702
703 $this->customizer->add_control(
704 new DimensionControl(
705 $this->customizer,
706 'betterdocs_doc_single_post_content_padding_left',
707 [
708 'type' => 'betterdocs-dimension',
709 'section' => 'betterdocs_single_docs_settings',
710 'settings' => 'betterdocs_doc_single_post_content_padding_left',
711 'label' => __( 'Left', 'betterdocs' ),
712 'priority' => 109,
713 'input_attrs' => [
714 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
715 ]
716 ]
717 )
718 );
719 }
720
721 public function doc_single_2_post_content_padding() {
722 $this->customizer->add_setting(
723 'betterdocs_doc_single_2_post_content_padding',
724 [
725 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding'],
726 'capability' => 'edit_theme_options',
727 'transport' => 'postMessage',
728 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
729
730 ]
731 );
732
733 $this->customizer->add_control(
734 new TitleControl(
735 $this->customizer,
736 'betterdocs_doc_single_2_post_content_padding',
737 [
738 'type' => 'betterdocs-title',
739 'section' => 'betterdocs_single_docs_settings',
740 'settings' => 'betterdocs_doc_single_2_post_content_padding',
741 'label' => __( 'Post Content Padding', 'betterdocs' ),
742 'priority' => 114,
743 'input_attrs' => [
744 'id' => 'betterdocs_doc_single_2_post_content_padding',
745 'class' => 'betterdocs-dimension'
746 ]
747 ]
748 )
749 );
750
751 $this->customizer->add_setting(
752 'betterdocs_doc_single_2_post_content_padding_top',
753 [
754 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_top'],
755 'capability' => 'edit_theme_options',
756 'transport' => 'postMessage',
757 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
758 ]
759 );
760
761 $this->customizer->add_control(
762 new DimensionControl(
763 $this->customizer,
764 'betterdocs_doc_single_2_post_content_padding_top',
765 [
766 'type' => 'betterdocs-dimension',
767 'section' => 'betterdocs_single_docs_settings',
768 'settings' => 'betterdocs_doc_single_2_post_content_padding_top',
769 'label' => __( 'Top', 'betterdocs' ),
770 'priority' => 114,
771 'input_attrs' => [
772 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
773 ]
774 ]
775 )
776 );
777
778 $this->customizer->add_setting(
779 'betterdocs_doc_single_2_post_content_padding_right',
780 [
781 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_right'],
782 'capability' => 'edit_theme_options',
783 'transport' => 'postMessage',
784 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
785
786 ]
787 );
788
789 $this->customizer->add_control(
790 new DimensionControl(
791 $this->customizer,
792 'betterdocs_doc_single_2_post_content_padding_right',
793 [
794 'type' => 'betterdocs-dimension',
795 'section' => 'betterdocs_single_docs_settings',
796 'settings' => 'betterdocs_doc_single_2_post_content_padding_right',
797 'label' => __( 'Right', 'betterdocs' ),
798 'priority' => 114,
799 'input_attrs' => [
800 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
801 ]
802 ]
803 )
804 );
805
806 $this->customizer->add_setting(
807 'betterdocs_doc_single_2_post_content_padding_bottom',
808 [
809 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_bottom'],
810 'capability' => 'edit_theme_options',
811 'transport' => 'postMessage',
812 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
813
814 ]
815 );
816
817 $this->customizer->add_control(
818 new DimensionControl(
819 $this->customizer,
820 'betterdocs_doc_single_2_post_content_padding_bottom',
821 [
822 'type' => 'betterdocs-dimension',
823 'section' => 'betterdocs_single_docs_settings',
824 'settings' => 'betterdocs_doc_single_2_post_content_padding_bottom',
825 'label' => __( 'Bottom', 'betterdocs' ),
826 'priority' => 114,
827 'input_attrs' => [
828 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
829 ]
830 ]
831 )
832 );
833
834 $this->customizer->add_setting(
835 'betterdocs_doc_single_2_post_content_padding_left',
836 [
837 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_left'],
838 'capability' => 'edit_theme_options',
839 'transport' => 'postMessage',
840 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
841
842 ]
843 );
844
845 $this->customizer->add_control(
846 new DimensionControl(
847 $this->customizer,
848 'betterdocs_doc_single_2_post_content_padding_left',
849 [
850 'type' => 'betterdocs-dimension',
851 'section' => 'betterdocs_single_docs_settings',
852 'settings' => 'betterdocs_doc_single_2_post_content_padding_left',
853 'label' => __( 'Left', 'betterdocs' ),
854 'priority' => 114,
855 'input_attrs' => [
856 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
857 ]
858 ]
859 )
860 );
861 }
862
863 public function doc_single_3_post_content_padding() {
864 $this->customizer->add_setting(
865 'betterdocs_doc_single_3_post_content_padding',
866 [
867 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding'],
868 'capability' => 'edit_theme_options',
869 'transport' => 'postMessage',
870 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
871
872 ]
873 );
874
875 $this->customizer->add_control(
876 new TitleControl(
877 $this->customizer,
878 'betterdocs_doc_single_3_post_content_padding',
879 [
880 'type' => 'betterdocs-title',
881 'section' => 'betterdocs_single_docs_settings',
882 'settings' => 'betterdocs_doc_single_3_post_content_padding',
883 'label' => __( 'Content Area Inner Padding', 'betterdocs' ),
884 'priority' => 119,
885 'input_attrs' => [
886 'id' => 'betterdocs_doc_single_3_post_content_padding',
887 'class' => 'betterdocs-dimension'
888 ]
889 ]
890 )
891 );
892
893 $this->customizer->add_setting(
894 'betterdocs_doc_single_3_post_content_padding_top',
895 [
896 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_top'],
897 'capability' => 'edit_theme_options',
898 'transport' => 'postMessage',
899 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
900 ]
901 );
902
903 $this->customizer->add_control(
904 new DimensionControl(
905 $this->customizer,
906 'betterdocs_doc_single_3_post_content_padding_top',
907 [
908 'type' => 'betterdocs-dimension',
909 'section' => 'betterdocs_single_docs_settings',
910 'settings' => 'betterdocs_doc_single_3_post_content_padding_top',
911 'label' => __( 'Top', 'betterdocs' ),
912 'priority' => 119,
913 'input_attrs' => [
914 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
915 ]
916 ]
917 )
918 );
919
920 $this->customizer->add_setting(
921 'betterdocs_doc_single_3_post_content_padding_right',
922 [
923 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_right'],
924 'capability' => 'edit_theme_options',
925 'transport' => 'postMessage',
926 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
927
928 ]
929 );
930
931 $this->customizer->add_control(
932 new DimensionControl(
933 $this->customizer,
934 'betterdocs_doc_single_3_post_content_padding_right',
935 [
936 'type' => 'betterdocs-dimension',
937 'section' => 'betterdocs_single_docs_settings',
938 'settings' => 'betterdocs_doc_single_3_post_content_padding_right',
939 'label' => __( 'Right', 'betterdocs' ),
940 'priority' => 119,
941 'input_attrs' => [
942 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
943 ]
944 ]
945 )
946 );
947
948 $this->customizer->add_setting(
949 'betterdocs_doc_single_3_post_content_padding_bottom',
950 [
951 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_bottom'],
952 'capability' => 'edit_theme_options',
953 'transport' => 'postMessage',
954 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
955
956 ]
957 );
958
959 $this->customizer->add_control(
960 new DimensionControl(
961 $this->customizer,
962 'betterdocs_doc_single_3_post_content_padding_bottom',
963 [
964 'type' => 'betterdocs-dimension',
965 'section' => 'betterdocs_single_docs_settings',
966 'settings' => 'betterdocs_doc_single_3_post_content_padding_bottom',
967 'label' => __( 'Bottom', 'betterdocs' ),
968 'priority' => 119,
969 'input_attrs' => [
970 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
971 ]
972 ]
973 )
974 );
975
976 $this->customizer->add_setting(
977 'betterdocs_doc_single_3_post_content_padding_left',
978 [
979 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_left'],
980 'capability' => 'edit_theme_options',
981 'transport' => 'postMessage',
982 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
983
984 ]
985 );
986
987 $this->customizer->add_control(
988 new DimensionControl(
989 $this->customizer,
990 'betterdocs_doc_single_3_post_content_padding_left',
991 [
992 'type' => 'betterdocs-dimension',
993 'section' => 'betterdocs_single_docs_settings',
994 'settings' => 'betterdocs_doc_single_3_post_content_padding_left',
995 'label' => __( 'Left', 'betterdocs' ),
996 'priority' => 119,
997 'input_attrs' => [
998 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
999 ]
1000 ]
1001 )
1002 );
1003 }
1004
1005 public function single_doc_layout_8_9_search_wrapper() {
1006 $this->customizer->add_setting(
1007 'single_doc_layout_8_9_search_wrapper',
1008 [
1009 'default' => $this->defaults['single_doc_layout_8_9_search_wrapper'],
1010 'sanitize_callback' => 'esc_html'
1011 ]
1012 );
1013
1014 $this->customizer->add_control(
1015 new SeparatorControl(
1016 $this->customizer,
1017 'single_doc_layout_8_9_search_wrapper',
1018 [
1019 'label' => __( 'Search', 'betterdocs' ),
1020 'settings' => 'single_doc_layout_8_9_search_wrapper',
1021 'section' => 'betterdocs_single_docs_settings',
1022 'priority' => 124
1023 ]
1024 )
1025 );
1026 }
1027
1028 public function single_doc_layout_8_9_search_toogle() {
1029 $this->customizer->add_setting(
1030 'single_doc_layout_8_9_search_toogle',
1031 [
1032 'default' => $this->defaults['single_doc_layout_8_9_search_toogle'],
1033 'capability' => 'edit_theme_options',
1034 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
1035 ]
1036 );
1037
1038 $this->customizer->add_control(
1039 new ToggleControl(
1040 $this->customizer,
1041 'single_doc_layout_8_9_search_toogle',
1042 [
1043 'label' => __( 'Enable', 'betterdocs' ),
1044 'section' => 'betterdocs_single_docs_settings',
1045 'settings' => 'single_doc_layout_8_9_search_toogle',
1046 'type' => 'light', // light, ios, flat,
1047 'priority' => 124
1048 ]
1049 )
1050 );
1051 }
1052
1053 public function single_doc_layout_8_9_search_width() {
1054 $this->customizer->add_setting(
1055 'single_doc_layout_8_9_search_width',
1056 [
1057 'default' => $this->defaults['single_doc_layout_8_9_search_width'],
1058 'capability' => 'edit_theme_options',
1059 'transport' => 'postMessage',
1060 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1061 ]
1062 );
1063
1064 $this->customizer->add_control(
1065 new RangeValueControl(
1066 $this->customizer,
1067 'single_doc_layout_8_9_search_width',
1068 [
1069 'type' => 'betterdocs-range-value',
1070 'section' => 'betterdocs_single_docs_settings',
1071 'settings' => 'single_doc_layout_8_9_search_width',
1072 'label' => __( 'Search Width', 'betterdocs' ),
1073 'input_attrs' => [
1074 'min' => 0,
1075 'max' => 100,
1076 'step' => 1,
1077 'suffix' => '%' //optional suffix
1078 ],
1079 'priority' => 124
1080 ]
1081 )
1082 );
1083 }
1084
1085 public function single_doc_layout_8_9_search_max_width() {
1086 $this->customizer->add_setting(
1087 'single_doc_layout_8_9_search_max_width',
1088 [
1089 'default' => $this->defaults['single_doc_layout_8_9_search_max_width'],
1090 'capability' => 'edit_theme_options',
1091 'transport' => 'postMessage',
1092 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1093 ]
1094 );
1095
1096 $this->customizer->add_control(
1097 new RangeValueControl(
1098 $this->customizer,
1099 'single_doc_layout_8_9_search_max_width',
1100 [
1101 'type' => 'betterdocs-range-value',
1102 'section' => 'betterdocs_single_docs_settings',
1103 'settings' => 'single_doc_layout_8_9_search_max_width',
1104 'label' => __( 'Search Max Width', 'betterdocs' ), //Renamed From 'Content Area Width' to 'Category Archive Width' @since betterdocs revamp version
1105 'input_attrs' => [
1106 'min' => 0,
1107 'max' => 3000,
1108 'step' => 1,
1109 'suffix' => 'px' //optional suffix
1110 ],
1111 'priority' => 124
1112 ]
1113 )
1114 );
1115 }
1116
1117
1118 public function single_doc_layout_8_9_search_margin() {
1119 $this->customizer->add_setting(
1120 'single_doc_layout_8_9_search_margin',
1121 [
1122 'default' => $this->defaults['single_doc_layout_8_9_search_margin'],
1123 'capability' => 'edit_theme_options',
1124 'transport' => 'postMessage',
1125 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1126
1127 ]
1128 );
1129
1130 $this->customizer->add_control(
1131 new TitleControl(
1132 $this->customizer,
1133 'single_doc_layout_8_9_search_margin',
1134 [
1135 'type' => 'betterdocs-title',
1136 'section' => 'betterdocs_single_docs_settings',
1137 'settings' => 'single_doc_layout_8_9_search_margin',
1138 'label' => __( 'Margin', 'betterdocs' ),
1139 'input_attrs' => [
1140 'id' => 'single_doc_layout_8_9_search_margin',
1141 'class' => 'betterdocs-dimension'
1142 ],
1143 'priority' => 124
1144 ]
1145 )
1146 );
1147
1148 $this->customizer->add_setting(
1149 'single_doc_layout_8_9_search_margin_top',
1150 [
1151 'default' => $this->defaults['single_doc_layout_8_9_search_margin_top'],
1152 'capability' => 'edit_theme_options',
1153 'transport' => 'postMessage',
1154 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1155 ]
1156 );
1157
1158 $this->customizer->add_control(
1159 new DimensionControl(
1160 $this->customizer,
1161 'single_doc_layout_8_9_search_margin_top',
1162 [
1163 'type' => 'betterdocs-dimension',
1164 'section' => 'betterdocs_single_docs_settings',
1165 'settings' => 'single_doc_layout_8_9_search_margin_top',
1166 'label' => __( 'Top', 'betterdocs' ),
1167 'input_attrs' => [
1168 'class' => 'single_doc_layout_8_9_search_margin betterdocs-dimension'
1169 ],
1170 'priority' => 124
1171 ]
1172 )
1173 );
1174
1175 $this->customizer->add_setting(
1176 'single_doc_layout_8_9_search_margin_bottom',
1177 [
1178 'default' => $this->defaults['single_doc_layout_8_9_search_margin_bottom'],
1179 'capability' => 'edit_theme_options',
1180 'transport' => 'postMessage',
1181 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1182
1183 ]
1184 );
1185
1186 $this->customizer->add_control(
1187 new DimensionControl(
1188 $this->customizer,
1189 'single_doc_layout_8_9_search_margin_bottom',
1190 [
1191 'type' => 'betterdocs-dimension',
1192 'section' => 'betterdocs_single_docs_settings',
1193 'settings' => 'single_doc_layout_8_9_search_margin_bottom',
1194 'label' => __( 'Bottom', 'betterdocs' ),
1195 'input_attrs' => [
1196 'class' => 'single_doc_layout_8_9_search_margin betterdocs-dimension'
1197 ],
1198 'priority' => 124
1199 ]
1200 )
1201 );
1202 }
1203
1204 public function single_doc_layout_8_9_search_padding() {
1205 $this->customizer->add_setting(
1206 'single_doc_layout_8_9_search_padding',
1207 [
1208 'default' => $this->defaults['single_doc_layout_8_9_search_padding'],
1209 'capability' => 'edit_theme_options',
1210 'transport' => 'postMessage',
1211 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1212 ]
1213 );
1214
1215 $this->customizer->add_control(
1216 new TitleControl(
1217 $this->customizer,
1218 'single_doc_layout_8_9_search_padding',
1219 [
1220 'type' => 'betterdocs-title',
1221 'section' => 'betterdocs_single_docs_settings',
1222 'settings' => 'single_doc_layout_8_9_search_padding',
1223 'label' => __( 'Padding', 'betterdocs' ),
1224 'input_attrs' => [
1225 'id' => 'single_doc_layout_8_9_search_padding',
1226 'class' => 'betterdocs-dimension'
1227 ],
1228 'priority' => 124
1229 ]
1230 )
1231 );
1232
1233 $this->customizer->add_setting(
1234 'single_doc_layout_8_9_search_padding_top',
1235 [
1236 'default' => $this->defaults['single_doc_layout_8_9_search_padding_top'],
1237 'capability' => 'edit_theme_options',
1238 'transport' => 'postMessage',
1239 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1240 ]
1241 );
1242
1243 $this->customizer->add_control(
1244 new DimensionControl(
1245 $this->customizer,
1246 'single_doc_layout_8_9_search_padding_top',
1247 [
1248 'type' => 'betterdocs-dimension',
1249 'section' => 'betterdocs_single_docs_settings',
1250 'settings' => 'single_doc_layout_8_9_search_padding_top',
1251 'label' => __( 'Top', 'betterdocs' ),
1252 'input_attrs' => [
1253 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
1254 ],
1255 'priority' => 124
1256 ]
1257 )
1258 );
1259
1260 $this->customizer->add_setting(
1261 'single_doc_layout_8_9_search_padding_right',
1262 [
1263 'default' => $this->defaults['single_doc_layout_8_9_search_padding_right'],
1264 'capability' => 'edit_theme_options',
1265 'transport' => 'postMessage',
1266 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1267
1268 ]
1269 );
1270
1271 $this->customizer->add_control(
1272 new DimensionControl(
1273 $this->customizer,
1274 'single_doc_layout_8_9_search_padding_right',
1275 [
1276 'type' => 'betterdocs-dimension',
1277 'section' => 'betterdocs_single_docs_settings',
1278 'settings' => 'single_doc_layout_8_9_search_padding_right',
1279 'label' => __( 'Right', 'betterdocs' ),
1280 'input_attrs' => [
1281 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
1282 ],
1283 'priority' => 124
1284 ]
1285 )
1286 );
1287
1288 $this->customizer->add_setting(
1289 'single_doc_layout_8_9_search_padding_bottom',
1290 [
1291 'default' => $this->defaults['single_doc_layout_8_9_search_padding_bottom'],
1292 'capability' => 'edit_theme_options',
1293 'transport' => 'postMessage',
1294 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1295 ]
1296 );
1297
1298 $this->customizer->add_control(
1299 new DimensionControl(
1300 $this->customizer,
1301 'single_doc_layout_8_9_search_padding_bottom',
1302 [
1303 'type' => 'betterdocs-dimension',
1304 'section' => 'betterdocs_single_docs_settings',
1305 'settings' => 'single_doc_layout_8_9_search_padding_bottom',
1306 'label' => __( 'Bottom', 'betterdocs' ),
1307 'input_attrs' => [
1308 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
1309 ],
1310 'priority' => 124
1311 ]
1312 )
1313 );
1314
1315 $this->customizer->add_setting(
1316 'single_doc_layout_8_9_search_padding_left',
1317 [
1318 'default' => $this->defaults['single_doc_layout_8_9_search_padding_left'],
1319 'capability' => 'edit_theme_options',
1320 'transport' => 'postMessage',
1321 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1322 ]
1323 );
1324
1325 $this->customizer->add_control(
1326 new DimensionControl(
1327 $this->customizer,
1328 'single_doc_layout_8_9_search_padding_left',
1329 [
1330 'type' => 'betterdocs-dimension',
1331 'section' => 'betterdocs_single_docs_settings',
1332 'settings' => 'single_doc_layout_8_9_search_padding_left',
1333 'label' => __( 'Left', 'betterdocs' ),
1334 'input_attrs' => [
1335 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
1336 ],
1337 'priority' => 124
1338 ]
1339 )
1340 );
1341 }
1342
1343 public function single_doc_title() {
1344 $this->customizer->add_setting(
1345 'betterdocs_single_doc_title',
1346 [
1347 'default' => $this->defaults['betterdocs_single_doc_title'],
1348 'sanitize_callback' => 'esc_html'
1349 ]
1350 );
1351
1352 $this->customizer->add_control(
1353 new SeparatorControl(
1354 $this->customizer,
1355 'betterdocs_single_doc_title',
1356 [
1357 'label' => __( 'Post Title', 'betterdocs' ),
1358 'priority' => 124,
1359 'settings' => 'betterdocs_single_doc_title',
1360 'section' => 'betterdocs_single_docs_settings'
1361 ]
1362 )
1363 );
1364 }
1365
1366 public function post_title_tag() {
1367 $this->customizer->add_setting(
1368 'betterdocs_post_title_tag',
1369 [
1370 'default' => $this->defaults['betterdocs_post_title_tag'],
1371 'capability' => 'edit_theme_options',
1372 'sanitize_callback' => [ $this->sanitizer, 'select' ]
1373 ]
1374 );
1375
1376 $this->customizer->add_control(
1377 new WP_Customize_Control(
1378 $this->customizer,
1379 'betterdocs_post_title_tag',
1380 [
1381 'label' => __( 'Title Tag', 'betterdocs' ),
1382 'section' => 'betterdocs_single_docs_settings',
1383 'settings' => 'betterdocs_post_title_tag',
1384 'type' => 'select',
1385 'choices' => [
1386 'h1' => 'h1',
1387 'h2' => 'h2',
1388 'h3' => 'h3',
1389 'h4' => 'h4',
1390 'h5' => 'h5',
1391 'h6' => 'h6',
1392 'p' => 'p'
1393 ],
1394 'priority' => 124
1395 ]
1396 )
1397 );
1398 }
1399
1400 public function post_title_text_transform() {
1401 $this->customizer->add_setting(
1402 'betterdocs_post_title_text_transform',
1403 [
1404 'default' => $this->defaults['betterdocs_post_title_text_transform'],
1405 'capability' => 'edit_theme_options',
1406 'sanitize_callback' => [ $this->sanitizer, 'select' ]
1407 ]
1408 );
1409
1410 $this->customizer->add_control(
1411 new WP_Customize_Control(
1412 $this->customizer,
1413 'betterdocs_post_title_text_transform',
1414 [
1415 'label' => __( 'Text Transform', 'betterdocs' ),
1416 'section' => 'betterdocs_single_docs_settings',
1417 'settings' => 'betterdocs_post_title_text_transform',
1418 'type' => 'select',
1419 'choices' => [
1420 'uppercase' => 'Uppercase',
1421 'lowercase' => 'Lowercase',
1422 'capitalize' => 'Capitalize',
1423 'none' => 'Normal'
1424 ],
1425 'priority' => 124
1426 ]
1427 )
1428 );
1429 }
1430
1431 public function single_doc_title_font_size() {
1432 $this->customizer->add_setting(
1433 'betterdocs_single_doc_title_font_size',
1434 [
1435 'default' => $this->defaults['betterdocs_single_doc_title_font_size'],
1436 'capability' => 'edit_theme_options',
1437 'transport' => 'postMessage',
1438 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1439
1440 ]
1441 );
1442
1443 $this->customizer->add_control(
1444 new RangeValueControl(
1445 $this->customizer,
1446 'betterdocs_single_doc_title_font_size',
1447 [
1448 'type' => 'betterdocs-range-value',
1449 'section' => 'betterdocs_single_docs_settings',
1450 'settings' => 'betterdocs_single_doc_title_font_size',
1451 'label' => __( 'Font Size', 'betterdocs' ),
1452 'priority' => 125,
1453 'input_attrs' => [
1454 'min' => 0,
1455 'max' => 50,
1456 'step' => 1,
1457 'suffix' => 'px' //optional suffix
1458 ]
1459 ]
1460 )
1461 );
1462 }
1463
1464 public function single_doc_title_color() {
1465 $this->customizer->add_setting(
1466 'betterdocs_single_doc_title_color',
1467 [
1468 'capability' => 'edit_theme_options',
1469 'default' => $this->defaults['betterdocs_single_doc_title_color'],
1470 'transport' => 'postMessage',
1471 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1472 ]
1473 );
1474
1475 $this->customizer->add_control(
1476 new AlphaColorControl(
1477 $this->customizer,
1478 'betterdocs_single_doc_title_color',
1479 [
1480 'label' => __( 'Color', 'betterdocs' ),
1481 'priority' => 126,
1482 'section' => 'betterdocs_single_docs_settings',
1483 'settings' => 'betterdocs_single_doc_title_color'
1484 ]
1485 )
1486 );
1487 }
1488
1489 public function post_title_text_transform_layout_8_9() {
1490 $this->customizer->add_setting(
1491 'betterdocs_post_title_text_transform_layout_8_9',
1492 [
1493 'default' => $this->defaults['betterdocs_post_title_text_transform_layout_8_9'],
1494 'capability' => 'edit_theme_options',
1495 'sanitize_callback' => [ $this->sanitizer, 'select' ]
1496 ]
1497 );
1498
1499 $this->customizer->add_control(
1500 new WP_Customize_Control(
1501 $this->customizer,
1502 'betterdocs_post_title_text_transform_layout_8_9',
1503 [
1504 'label' => __( 'Text Transform', 'betterdocs' ),
1505 'section' => 'betterdocs_single_docs_settings',
1506 'settings' => 'betterdocs_post_title_text_transform_layout_8_9',
1507 'type' => 'select',
1508 'choices' => [
1509 'uppercase' => 'Uppercase',
1510 'lowercase' => 'Lowercase',
1511 'capitalize' => 'Capitalize',
1512 'none' => 'Normal'
1513 ],
1514 'priority' => 124
1515 ]
1516 )
1517 );
1518 }
1519
1520 public function single_doc_title_font_size_layout_8_9() {
1521 $this->customizer->add_setting(
1522 'betterdocs_single_doc_title_font_size_layout_8_9',
1523 [
1524 'default' => $this->defaults['betterdocs_single_doc_title_font_size_layout_8_9'],
1525 'capability' => 'edit_theme_options',
1526 'transport' => 'postMessage',
1527 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1528
1529 ]
1530 );
1531
1532 $this->customizer->add_control(
1533 new RangeValueControl(
1534 $this->customizer,
1535 'betterdocs_single_doc_title_font_size_layout_8_9',
1536 [
1537 'type' => 'betterdocs-range-value',
1538 'section' => 'betterdocs_single_docs_settings',
1539 'settings' => 'betterdocs_single_doc_title_font_size_layout_8_9',
1540 'label' => __( 'Font Size', 'betterdocs' ),
1541 'priority' => 125,
1542 'input_attrs' => [
1543 'min' => 0,
1544 'max' => 50,
1545 'step' => 1,
1546 'suffix' => 'px' //optional suffix
1547 ]
1548 ]
1549 )
1550 );
1551 }
1552
1553 public function single_doc_title_color_layout_8_9() {
1554 $this->customizer->add_setting(
1555 'betterdocs_single_doc_title_color_layout_8_9',
1556 [
1557 'capability' => 'edit_theme_options',
1558 'default' => $this->defaults['betterdocs_single_doc_title_color_layout_8_9'],
1559 'transport' => 'postMessage',
1560 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1561 ]
1562 );
1563
1564 $this->customizer->add_control(
1565 new AlphaColorControl(
1566 $this->customizer,
1567 'betterdocs_single_doc_title_color_layout_8_9',
1568 [
1569 'label' => __( 'Color', 'betterdocs' ),
1570 'priority' => 126,
1571 'section' => 'betterdocs_single_docs_settings',
1572 'settings' => 'betterdocs_single_doc_title_color_layout_8_9'
1573 ]
1574 )
1575 );
1576 }
1577
1578 public function single_doc_title_margin_layout_8_9() {
1579 $this->customizer->add_setting(
1580 'single_doc_title_margin_layout_8_9',
1581 [
1582 'default' => $this->defaults['single_doc_title_margin_layout_8_9'],
1583 'capability' => 'edit_theme_options',
1584 'transport' => 'postMessage',
1585 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1586 ]
1587 );
1588
1589 $this->customizer->add_control(
1590 new TitleControl(
1591 $this->customizer,
1592 'single_doc_title_margin_layout_8_9',
1593 [
1594 'type' => 'betterdocs-title',
1595 'section' => 'betterdocs_single_docs_settings',
1596 'settings' => 'single_doc_title_margin_layout_8_9',
1597 'label' => __( 'Title Margin', 'betterdocs' ),
1598 'priority' => 126,
1599 'input_attrs' => [
1600 'id' => 'single_doc_title_margin_layout_8_9',
1601 'class' => 'betterdocs-dimension'
1602 ]
1603 ]
1604 )
1605 );
1606
1607 $this->customizer->add_setting(
1608 'single_doc_title_margin_top_layout_8_9',
1609 [
1610 'default' => $this->defaults['single_doc_title_margin_top_layout_8_9'],
1611 'capability' => 'edit_theme_options',
1612 'transport' => 'postMessage',
1613 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1614 ]
1615 );
1616
1617 $this->customizer->add_control(
1618 new DimensionControl(
1619 $this->customizer,
1620 'single_doc_title_margin_top_layout_8_9',
1621 [
1622 'type' => 'betterdocs-dimension',
1623 'section' => 'betterdocs_single_docs_settings',
1624 'settings' => 'single_doc_title_margin_top_layout_8_9',
1625 'label' => __( 'Top', 'betterdocs' ),
1626 'priority' => 126,
1627 'input_attrs' => [
1628 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1629 ]
1630 ]
1631 )
1632 );
1633
1634 $this->customizer->add_setting(
1635 'single_doc_title_margin_right_layout_8_9',
1636 [
1637 'default' => $this->defaults['single_doc_title_margin_right_layout_8_9'],
1638 'capability' => 'edit_theme_options',
1639 'transport' => 'postMessage',
1640 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1641 ]
1642 );
1643
1644 $this->customizer->add_control(
1645 new DimensionControl(
1646 $this->customizer,
1647 'single_doc_title_margin_right_layout_8_9',
1648 [
1649 'type' => 'betterdocs-dimension',
1650 'section' => 'betterdocs_single_docs_settings',
1651 'settings' => 'single_doc_title_margin_right_layout_8_9',
1652 'label' => __( 'Right', 'betterdocs' ),
1653 'priority' => 126,
1654 'input_attrs' => [
1655 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1656 ]
1657 ]
1658 )
1659 );
1660
1661 $this->customizer->add_setting(
1662 'single_doc_title_margin_bottom_layout_8_9',
1663 [
1664 'default' => $this->defaults['single_doc_title_margin_bottom_layout_8_9'],
1665 'capability' => 'edit_theme_options',
1666 'transport' => 'postMessage',
1667 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1668 ]
1669 );
1670
1671 $this->customizer->add_control(
1672 new DimensionControl(
1673 $this->customizer,
1674 'single_doc_title_margin_bottom_layout_8_9',
1675 [
1676 'type' => 'betterdocs-dimension',
1677 'section' => 'betterdocs_single_docs_settings',
1678 'settings' => 'single_doc_title_margin_bottom_layout_8_9',
1679 'label' => __( 'Bottom', 'betterdocs' ),
1680 'priority' => 126,
1681 'input_attrs' => [
1682 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1683 ]
1684 ]
1685 )
1686 );
1687
1688 $this->customizer->add_setting(
1689 'single_doc_title_margin_left_layout_8_9',
1690 [
1691 'default' => $this->defaults['single_doc_title_margin_left_layout_8_9'],
1692 'capability' => 'edit_theme_options',
1693 'transport' => 'postMessage',
1694 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1695 ]
1696 );
1697
1698 $this->customizer->add_control(
1699 new DimensionControl(
1700 $this->customizer,
1701 'single_doc_title_margin_left_layout_8_9',
1702 [
1703 'type' => 'betterdocs-dimension',
1704 'section' => 'betterdocs_single_docs_settings',
1705 'settings' => 'single_doc_title_margin_left_layout_8_9',
1706 'label' => __( 'Left', 'betterdocs' ),
1707 'priority' => 126,
1708 'input_attrs' => [
1709 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1710 ]
1711 ]
1712 )
1713 );
1714 }
1715
1716 public function doc_single_article_summary_title() {
1717 $this->customizer->add_setting(
1718 'betterdocs_doc_single_article_summary_title',
1719 [
1720 'default' => $this->defaults['betterdocs_doc_single_article_summary_title'],
1721 'sanitize_callback' => 'esc_html'
1722 ]
1723 );
1724
1725 $this->customizer->add_control(
1726 new SeparatorControl(
1727 $this->customizer,
1728 'betterdocs_doc_single_article_summary_title',
1729 [
1730 'label' => __( 'Doc Summary', 'betterdocs' ),
1731 'priority' => 130,
1732 'settings' => 'betterdocs_doc_single_article_summary_title',
1733 'section' => 'betterdocs_single_docs_settings'
1734 ]
1735 )
1736 );
1737 }
1738
1739 public function article_summary_bg_color() {
1740 $this->customizer->add_setting(
1741 'betterdocs_article_summary_bg_color',
1742 [
1743 'capability' => 'edit_theme_options',
1744 'default' => $this->defaults['betterdocs_article_summary_bg_color'],
1745 'transport' => 'postMessage',
1746 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1747 ]
1748 );
1749
1750 $this->customizer->add_control(
1751 new AlphaColorControl(
1752 $this->customizer,
1753 'betterdocs_article_summary_bg_color',
1754 [
1755 'label' => __( 'Background Color', 'betterdocs' ),
1756 'priority' => 130,
1757 'section' => 'betterdocs_single_docs_settings',
1758 'settings' => 'betterdocs_article_summary_bg_color'
1759 ]
1760 )
1761 );
1762 }
1763
1764 public function article_summary_border_color() {
1765 $this->customizer->add_setting(
1766 'betterdocs_article_summary_border_color',
1767 [
1768 'capability' => 'edit_theme_options',
1769 'default' => $this->defaults['betterdocs_article_summary_border_color'],
1770 'transport' => 'postMessage',
1771 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1772 ]
1773 );
1774
1775 $this->customizer->add_control(
1776 new AlphaColorControl(
1777 $this->customizer,
1778 'betterdocs_article_summary_border_color',
1779 [
1780 'label' => __( 'Border Color', 'betterdocs' ),
1781 'priority' => 130,
1782 'section' => 'betterdocs_single_docs_settings',
1783 'settings' => 'betterdocs_article_summary_border_color'
1784 ]
1785 )
1786 );
1787 }
1788
1789 public function article_summary_border_width() {
1790 $this->customizer->add_setting(
1791 'betterdocs_article_summary_border_width',
1792 [
1793 'default' => $this->defaults['betterdocs_article_summary_border_width'],
1794 'capability' => 'edit_theme_options',
1795 'transport' => 'postMessage',
1796 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1797 ]
1798 );
1799
1800 $this->customizer->add_control(
1801 new RangeValueControl(
1802 $this->customizer,
1803 'betterdocs_article_summary_border_width',
1804 [
1805 'type' => 'betterdocs-range-value',
1806 'section' => 'betterdocs_single_docs_settings',
1807 'settings' => 'betterdocs_article_summary_border_width',
1808 'label' => __( 'Border Width', 'betterdocs' ),
1809 'priority' => 130,
1810 'input_attrs' => [
1811 'class' => '',
1812 'min' => 0,
1813 'max' => 10,
1814 'step' => 1,
1815 'suffix' => 'px'
1816 ]
1817 ]
1818 )
1819 );
1820 }
1821
1822 public function article_summary_border_radius() {
1823 $this->customizer->add_setting(
1824 'betterdocs_article_summary_border_radius',
1825 [
1826 'default' => $this->defaults['betterdocs_article_summary_border_radius'],
1827 'capability' => 'edit_theme_options',
1828 'transport' => 'postMessage',
1829 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1830 ]
1831 );
1832
1833 $this->customizer->add_control(
1834 new RangeValueControl(
1835 $this->customizer,
1836 'betterdocs_article_summary_border_radius',
1837 [
1838 'type' => 'betterdocs-range-value',
1839 'section' => 'betterdocs_single_docs_settings',
1840 'settings' => 'betterdocs_article_summary_border_radius',
1841 'label' => __( 'Border Radius', 'betterdocs' ),
1842 'priority' => 130,
1843 'input_attrs' => [
1844 'class' => '',
1845 'min' => 0,
1846 'max' => 50,
1847 'step' => 1,
1848 'suffix' => 'px'
1849 ]
1850 ]
1851 )
1852 );
1853 }
1854
1855 public function article_summary_title_bg_color() {
1856 $this->customizer->add_setting(
1857 'betterdocs_article_summary_title_bg_color',
1858 [
1859 'capability' => 'edit_theme_options',
1860 'default' => $this->defaults['betterdocs_article_summary_title_bg_color'],
1861 'transport' => 'postMessage',
1862 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1863 ]
1864 );
1865
1866 $this->customizer->add_control(
1867 new AlphaColorControl(
1868 $this->customizer,
1869 'betterdocs_article_summary_title_bg_color',
1870 [
1871 'label' => __( 'Title Background Color', 'betterdocs' ),
1872 'priority' => 130,
1873 'section' => 'betterdocs_single_docs_settings',
1874 'settings' => 'betterdocs_article_summary_title_bg_color'
1875 ]
1876 )
1877 );
1878 }
1879
1880 public function article_summary_title_color() {
1881 $this->customizer->add_setting(
1882 'betterdocs_article_summary_title_color',
1883 [
1884 'capability' => 'edit_theme_options',
1885 'default' => $this->defaults['betterdocs_article_summary_title_color'],
1886 'transport' => 'postMessage',
1887 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1888 ]
1889 );
1890
1891 $this->customizer->add_control(
1892 new AlphaColorControl(
1893 $this->customizer,
1894 'betterdocs_article_summary_title_color',
1895 [
1896 'label' => __( 'Title Color', 'betterdocs' ),
1897 'priority' => 130,
1898 'section' => 'betterdocs_single_docs_settings',
1899 'settings' => 'betterdocs_article_summary_title_color'
1900 ]
1901 )
1902 );
1903 }
1904
1905 public function article_summary_title_font_size() {
1906 $this->customizer->add_setting(
1907 'betterdocs_article_summary_title_font_size',
1908 [
1909 'default' => $this->defaults['betterdocs_article_summary_title_font_size'],
1910 'capability' => 'edit_theme_options',
1911 'transport' => 'postMessage',
1912 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1913 ]
1914 );
1915
1916 $this->customizer->add_control(
1917 new RangeValueControl(
1918 $this->customizer,
1919 'betterdocs_article_summary_title_font_size',
1920 [
1921 'type' => 'betterdocs-range-value',
1922 'section' => 'betterdocs_single_docs_settings',
1923 'settings' => 'betterdocs_article_summary_title_font_size',
1924 'label' => __( 'Title Font Size', 'betterdocs' ),
1925 'priority' => 130,
1926 'input_attrs' => [
1927 'class' => '',
1928 'min' => 12,
1929 'max' => 32,
1930 'step' => 1,
1931 'suffix' => 'px'
1932 ]
1933 ]
1934 )
1935 );
1936 }
1937
1938 public function article_summary_content_color() {
1939 $this->customizer->add_setting(
1940 'betterdocs_article_summary_content_color',
1941 [
1942 'default' => $this->defaults['betterdocs_article_summary_content_color'],
1943 'transport' => 'postMessage',
1944 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1945 ]
1946 );
1947
1948 $this->customizer->add_control(
1949 new AlphaColorControl(
1950 $this->customizer,
1951 'betterdocs_article_summary_content_color',
1952 [
1953 'label' => __( 'Content Color', 'betterdocs' ),
1954 'priority' => 130,
1955 'section' => 'betterdocs_single_docs_settings',
1956 'settings' => 'betterdocs_article_summary_content_color'
1957 ]
1958 )
1959 );
1960 }
1961
1962 public function article_summary_content_font_size() {
1963 $this->customizer->add_setting(
1964 'betterdocs_article_summary_content_font_size',
1965 [
1966 'default' => $this->defaults['betterdocs_article_summary_content_font_size'],
1967 'capability' => 'edit_theme_options',
1968 'transport' => 'postMessage',
1969 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1970 ]
1971 );
1972
1973 $this->customizer->add_control(
1974 new RangeValueControl(
1975 $this->customizer,
1976 'betterdocs_article_summary_content_font_size',
1977 [
1978 'type' => 'betterdocs-range-value',
1979 'section' => 'betterdocs_single_docs_settings',
1980 'settings' => 'betterdocs_article_summary_content_font_size',
1981 'label' => __( 'Content Font Size', 'betterdocs' ),
1982 'priority' => 130,
1983 'input_attrs' => [
1984 'class' => '',
1985 'min' => 10,
1986 'max' => 24,
1987 'step' => 1,
1988 'suffix' => 'px'
1989 ]
1990 ]
1991 )
1992 );
1993 }
1994
1995 public function doc_single_toc_title() {
1996 $this->customizer->add_setting(
1997 'betterdocs_doc_single_toc_title',
1998 [
1999 'default' => $this->defaults['betterdocs_doc_single_toc_title'],
2000 'sanitize_callback' => 'esc_html'
2001 ]
2002 );
2003
2004 $this->customizer->add_control(
2005 new SeparatorControl(
2006 $this->customizer,
2007 'betterdocs_doc_single_toc_title',
2008 [
2009 'label' => __( 'Table of Contents', 'betterdocs' ),
2010 'priority' => 132,
2011 'settings' => 'betterdocs_doc_single_toc_title',
2012 'section' => 'betterdocs_single_docs_settings'
2013 ]
2014 )
2015 );
2016 }
2017
2018 public function sticky_toc_width() {
2019 $this->customizer->add_setting(
2020 'betterdocs_sticky_toc_width',
2021 [
2022 'default' => $this->defaults['betterdocs_sticky_toc_width'],
2023 'capability' => 'edit_theme_options',
2024 'transport' => 'postMessage',
2025 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2026
2027 ]
2028 );
2029
2030 $this->customizer->add_control(
2031 new RangeValueControl(
2032 $this->customizer,
2033 'betterdocs_sticky_toc_width',
2034 [
2035 'type' => 'betterdocs-range-value',
2036 'section' => 'betterdocs_single_docs_settings',
2037 'settings' => 'betterdocs_sticky_toc_width',
2038 'label' => __( 'Sticky Toc Width', 'betterdocs' ),
2039 'priority' => 133,
2040 'input_attrs' => [
2041 'class' => '',
2042 'min' => 100,
2043 'max' => 500,
2044 'step' => 1,
2045 'suffix' => 'px' //optional suffix
2046 ]
2047 ]
2048 )
2049 );
2050 }
2051
2052 public function sticky_toc_zindex() {
2053 $this->customizer->add_setting(
2054 'betterdocs_sticky_toc_zindex',
2055 [
2056 'default' => $this->defaults['betterdocs_sticky_toc_zindex'],
2057 'capability' => 'edit_theme_options',
2058 'transport' => 'postMessage',
2059 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2060 ]
2061 );
2062
2063 $this->customizer->add_control(
2064 new NumberControl(
2065 $this->customizer,
2066 'betterdocs_sticky_toc_zindex',
2067 [
2068 'type' => 'betterdocs-number',
2069 'section' => 'betterdocs_single_docs_settings',
2070 'settings' => 'betterdocs_sticky_toc_zindex',
2071 'label' => __( 'Sticky Toc z-index', 'betterdocs' ),
2072 'priority' => 134
2073 ]
2074 )
2075 );
2076 }
2077
2078 public function sticky_toc_margin_top() {
2079 $this->customizer->add_setting(
2080 'betterdocs_sticky_toc_margin_top',
2081 [
2082 'default' => $this->defaults['betterdocs_sticky_toc_margin_top'],
2083 'capability' => 'edit_theme_options',
2084 'transport' => 'postMessage',
2085 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2086
2087 ]
2088 );
2089
2090 $this->customizer->add_control(
2091 new RangeValueControl(
2092 $this->customizer,
2093 'betterdocs_sticky_toc_margin_top',
2094 [
2095 'type' => 'betterdocs-range-value',
2096 'section' => 'betterdocs_single_docs_settings',
2097 'settings' => 'betterdocs_sticky_toc_margin_top',
2098 'label' => __( 'Sticky Toc Margin Top', 'betterdocs' ),
2099 'priority' => 135,
2100 'input_attrs' => [
2101 'class' => '',
2102 'min' => 0,
2103 'max' => 500,
2104 'step' => 1,
2105 'suffix' => 'px' //optional suffix
2106 ]
2107 ]
2108 )
2109 );
2110 }
2111
2112 public function toc_bg_color() {
2113 $this->customizer->add_setting(
2114 'betterdocs_toc_bg_color',
2115 [
2116 'capability' => 'edit_theme_options',
2117 'default' => $this->defaults['betterdocs_toc_bg_color'],
2118 'transport' => 'postMessage',
2119 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2120 ]
2121 );
2122
2123 $this->customizer->add_control(
2124 new AlphaColorControl(
2125 $this->customizer,
2126 'betterdocs_toc_bg_color',
2127 [
2128 'label' => __( 'Background Color', 'betterdocs' ),
2129 'priority' => 136,
2130 'section' => 'betterdocs_single_docs_settings',
2131 'settings' => 'betterdocs_toc_bg_color'
2132 ]
2133 )
2134 );
2135 }
2136
2137 public function doc_single_toc_padding() {
2138 $this->customizer->add_setting(
2139 'betterdocs_doc_single_toc_padding',
2140 [
2141 'default' => $this->defaults['betterdocs_doc_single_toc_padding'],
2142 'capability' => 'edit_theme_options',
2143 'transport' => 'postMessage',
2144 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2145
2146 ]
2147 );
2148
2149 $this->customizer->add_control(
2150 new TitleControl(
2151 $this->customizer,
2152 'betterdocs_doc_single_toc_padding',
2153 [
2154 'type' => 'betterdocs-title',
2155 'section' => 'betterdocs_single_docs_settings',
2156 'settings' => 'betterdocs_doc_single_toc_padding',
2157 'label' => __( 'Content Area Padding', 'betterdocs' ),
2158 'priority' => 137,
2159 'input_attrs' => [
2160 'id' => 'betterdocs_doc_single_toc_padding',
2161 'class' => 'betterdocs-dimension'
2162 ]
2163 ]
2164 )
2165 );
2166
2167 $this->customizer->add_setting(
2168 'betterdocs_doc_single_toc_padding_top',
2169 [
2170 'default' => $this->defaults['betterdocs_doc_single_toc_padding_top'],
2171 'capability' => 'edit_theme_options',
2172 'transport' => 'postMessage',
2173 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2174 ]
2175 );
2176
2177 $this->customizer->add_control(
2178 new DimensionControl(
2179 $this->customizer,
2180 'betterdocs_doc_single_toc_padding_top',
2181 [
2182 'type' => 'betterdocs-dimension',
2183 'section' => 'betterdocs_single_docs_settings',
2184 'settings' => 'betterdocs_doc_single_toc_padding_top',
2185 'label' => __( 'Top', 'betterdocs' ),
2186 'priority' => 137,
2187 'input_attrs' => [
2188 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
2189 ]
2190 ]
2191 )
2192 );
2193
2194 $this->customizer->add_setting(
2195 'betterdocs_doc_single_toc_padding_right',
2196 [
2197 'default' => $this->defaults['betterdocs_doc_single_toc_padding_right'],
2198 'capability' => 'edit_theme_options',
2199 'transport' => 'postMessage',
2200 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2201
2202 ]
2203 );
2204
2205 $this->customizer->add_control(
2206 new DimensionControl(
2207 $this->customizer,
2208 'betterdocs_doc_single_toc_padding_right',
2209 [
2210 'type' => 'betterdocs-dimension',
2211 'section' => 'betterdocs_single_docs_settings',
2212 'settings' => 'betterdocs_doc_single_toc_padding_right',
2213 'label' => __( 'Right', 'betterdocs' ),
2214 'priority' => 137,
2215 'input_attrs' => [
2216 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
2217 ]
2218 ]
2219 )
2220 );
2221
2222 $this->customizer->add_setting(
2223 'betterdocs_doc_single_toc_padding_bottom',
2224 [
2225 'default' => $this->defaults['betterdocs_doc_single_toc_padding_bottom'],
2226 'capability' => 'edit_theme_options',
2227 'transport' => 'postMessage',
2228 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2229
2230 ]
2231 );
2232
2233 $this->customizer->add_control(
2234 new DimensionControl(
2235 $this->customizer,
2236 'betterdocs_doc_single_toc_padding_bottom',
2237 [
2238 'type' => 'betterdocs-dimension',
2239 'section' => 'betterdocs_single_docs_settings',
2240 'settings' => 'betterdocs_doc_single_toc_padding_bottom',
2241 'label' => __( 'Bottom', 'betterdocs' ),
2242 'priority' => 137,
2243 'input_attrs' => [
2244 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
2245 ]
2246 ]
2247 )
2248 );
2249
2250 $this->customizer->add_setting(
2251 'betterdocs_doc_single_toc_padding_left',
2252 [
2253 'default' => $this->defaults['betterdocs_doc_single_toc_padding_left'],
2254 'capability' => 'edit_theme_options',
2255 'transport' => 'postMessage',
2256 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2257
2258 ]
2259 );
2260
2261 $this->customizer->add_control(
2262 new DimensionControl(
2263 $this->customizer,
2264 'betterdocs_doc_single_toc_padding_left',
2265 [
2266 'type' => 'betterdocs-dimension',
2267 'section' => 'betterdocs_single_docs_settings',
2268 'settings' => 'betterdocs_doc_single_toc_padding_left',
2269 'label' => __( 'Left', 'betterdocs' ),
2270 'priority' => 137,
2271 'input_attrs' => [
2272 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
2273 ]
2274 ]
2275 )
2276 );
2277 }
2278
2279 public function doc_single_toc_margin() {
2280 $this->customizer->add_setting(
2281 'betterdocs_doc_single_toc_margin',
2282 [
2283 'default' => $this->defaults['betterdocs_doc_single_toc_margin'],
2284 'capability' => 'edit_theme_options',
2285 'transport' => 'postMessage',
2286 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2287 ]
2288 );
2289
2290 $this->customizer->add_control(
2291 new TitleControl(
2292 $this->customizer,
2293 'betterdocs_doc_single_toc_margin',
2294 [
2295 'type' => 'betterdocs-title',
2296 'section' => 'betterdocs_single_docs_settings',
2297 'settings' => 'betterdocs_doc_single_toc_margin',
2298 'label' => __( 'Content Area Margin', 'betterdocs' ),
2299 'priority' => 141,
2300 'input_attrs' => [
2301 'id' => 'betterdocs_doc_single_toc_margin',
2302 'class' => 'betterdocs-dimension'
2303 ]
2304 ]
2305 )
2306 );
2307
2308 $this->customizer->add_setting(
2309 'betterdocs_doc_single_toc_margin_top',
2310 [
2311 'default' => $this->defaults['betterdocs_doc_single_toc_margin_top'],
2312 'capability' => 'edit_theme_options',
2313 'transport' => 'postMessage',
2314 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2315 ]
2316 );
2317
2318 $this->customizer->add_control(
2319 new DimensionControl(
2320 $this->customizer,
2321 'betterdocs_doc_single_toc_margin_top',
2322 [
2323 'type' => 'betterdocs-dimension',
2324 'section' => 'betterdocs_single_docs_settings',
2325 'settings' => 'betterdocs_doc_single_toc_margin_top',
2326 'label' => __( 'Top', 'betterdocs' ),
2327 'priority' => 141,
2328 'input_attrs' => [
2329 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
2330 ]
2331 ]
2332 )
2333 );
2334
2335 $this->customizer->add_setting(
2336 'betterdocs_doc_single_toc_margin_right',
2337 [
2338 'default' => $this->defaults['betterdocs_doc_single_toc_margin_right'],
2339 'capability' => 'edit_theme_options',
2340 'transport' => 'postMessage',
2341 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2342 ]
2343 );
2344
2345 $this->customizer->add_control(
2346 new DimensionControl(
2347 $this->customizer,
2348 'betterdocs_doc_single_toc_margin_right',
2349 [
2350 'type' => 'betterdocs-dimension',
2351 'section' => 'betterdocs_single_docs_settings',
2352 'settings' => 'betterdocs_doc_single_toc_margin_right',
2353 'label' => __( 'Right', 'betterdocs' ),
2354 'priority' => 141,
2355 'input_attrs' => [
2356 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
2357 ]
2358 ]
2359 )
2360 );
2361
2362 $this->customizer->add_setting(
2363 'betterdocs_doc_single_toc_margin_bottom',
2364 [
2365 'default' => $this->defaults['betterdocs_doc_single_toc_margin_bottom'],
2366 'capability' => 'edit_theme_options',
2367 'transport' => 'postMessage',
2368 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2369 ]
2370 );
2371
2372 $this->customizer->add_control(
2373 new DimensionControl(
2374 $this->customizer,
2375 'betterdocs_doc_single_toc_margin_bottom',
2376 [
2377 'type' => 'betterdocs-dimension',
2378 'section' => 'betterdocs_single_docs_settings',
2379 'settings' => 'betterdocs_doc_single_toc_margin_bottom',
2380 'label' => __( 'Bottom', 'betterdocs' ),
2381 'priority' => 141,
2382 'input_attrs' => [
2383 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
2384 ]
2385 ]
2386 )
2387 );
2388
2389 $this->customizer->add_setting(
2390 'betterdocs_doc_single_toc_margin_left',
2391 [
2392 'default' => $this->defaults['betterdocs_doc_single_toc_margin_left'],
2393 'capability' => 'edit_theme_options',
2394 'transport' => 'postMessage',
2395 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2396 ]
2397 );
2398
2399 $this->customizer->add_control(
2400 new DimensionControl(
2401 $this->customizer,
2402 'betterdocs_doc_single_toc_margin_left',
2403 [
2404 'type' => 'betterdocs-dimension',
2405 'section' => 'betterdocs_single_docs_settings',
2406 'settings' => 'betterdocs_doc_single_toc_margin_left',
2407 'label' => __( 'Left', 'betterdocs' ),
2408 'priority' => 141,
2409 'input_attrs' => [
2410 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
2411 ]
2412 ]
2413 )
2414 );
2415 }
2416
2417 public function toc_title_color() {
2418 $this->customizer->add_setting(
2419 'betterdocs_toc_title_color',
2420 [
2421 'capability' => 'edit_theme_options',
2422 'default' => $this->defaults['betterdocs_toc_title_color'],
2423 'transport' => 'postMessage',
2424 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2425 ]
2426 );
2427
2428 $this->customizer->add_control(
2429 new AlphaColorControl(
2430 $this->customizer,
2431 'betterdocs_toc_title_color',
2432 [
2433 'label' => __( 'Title Color', 'betterdocs' ),
2434 'priority' => 142,
2435 'section' => 'betterdocs_single_docs_settings',
2436 'settings' => 'betterdocs_toc_title_color'
2437 ]
2438 )
2439 );
2440 }
2441
2442 public function toc_title_font_size() {
2443 $this->customizer->add_setting(
2444 'betterdocs_toc_title_font_size',
2445 [
2446 'default' => $this->defaults['betterdocs_toc_title_font_size'],
2447 'capability' => 'edit_theme_options',
2448 'transport' => 'postMessage',
2449 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2450
2451 ]
2452 );
2453
2454 $this->customizer->add_control(
2455 new RangeValueControl(
2456 $this->customizer,
2457 'betterdocs_toc_title_font_size',
2458 [
2459 'type' => 'betterdocs-range-value',
2460 'section' => 'betterdocs_single_docs_settings',
2461 'settings' => 'betterdocs_toc_title_font_size',
2462 'label' => __( 'Title Font Size', 'betterdocs' ),
2463 'priority' => 143,
2464 'input_attrs' => [
2465 'class' => '',
2466 'min' => 0,
2467 'max' => 50,
2468 'step' => 1,
2469 'suffix' => 'px' //optional suffix
2470 ]
2471 ]
2472 )
2473 );
2474 }
2475
2476 public function toc_list_item_color() {
2477 $this->customizer->add_setting(
2478 'betterdocs_toc_list_item_color',
2479 [
2480 'default' => $this->defaults['betterdocs_toc_list_item_color'],
2481 'transport' => 'postMessage',
2482 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2483 ]
2484 );
2485
2486 $this->customizer->add_control(
2487 new AlphaColorControl(
2488 $this->customizer,
2489 'betterdocs_toc_list_item_color',
2490 [
2491 'label' => __( 'List Item Color', 'betterdocs' ),
2492 'priority' => 144,
2493 'section' => 'betterdocs_single_docs_settings',
2494 'settings' => 'betterdocs_toc_list_item_color'
2495 ]
2496 )
2497 );
2498 }
2499
2500 public function toc_list_item_hover_color() {
2501 $this->customizer->add_setting(
2502 'betterdocs_toc_list_item_hover_color',
2503 [
2504 'capability' => 'edit_theme_options',
2505 'default' => $this->defaults['betterdocs_toc_list_item_hover_color'],
2506 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2507 ]
2508 );
2509
2510 $this->customizer->add_control(
2511 new AlphaColorControl(
2512 $this->customizer,
2513 'betterdocs_toc_list_item_hover_color',
2514 [
2515 'label' => __( 'List Item Hover Color', 'betterdocs' ),
2516 'priority' => 145,
2517 'section' => 'betterdocs_single_docs_settings',
2518 'settings' => 'betterdocs_toc_list_item_hover_color'
2519 ]
2520 )
2521 );
2522 }
2523
2524 public function toc_active_item_color() {
2525 $this->customizer->add_setting(
2526 'betterdocs_toc_active_item_color',
2527 [
2528 'capability' => 'edit_theme_options',
2529 'default' => $this->defaults['betterdocs_toc_active_item_color'],
2530 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2531 ]
2532 );
2533
2534 $this->customizer->add_control(
2535 new AlphaColorControl(
2536 $this->customizer,
2537 'betterdocs_toc_active_item_color',
2538 [
2539 'label' => __( 'Active Item Color', 'betterdocs' ),
2540 'priority' => 146,
2541 'section' => 'betterdocs_single_docs_settings',
2542 'settings' => 'betterdocs_toc_active_item_color'
2543 ]
2544 )
2545 );
2546 }
2547
2548 public function toc_list_item_font_size() {
2549 $this->customizer->add_setting(
2550 'betterdocs_toc_list_item_font_size',
2551 [
2552 'default' => $this->defaults['betterdocs_toc_list_item_font_size'],
2553 'capability' => 'edit_theme_options',
2554 'transport' => 'postMessage',
2555 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2556
2557 ]
2558 );
2559
2560 $this->customizer->add_control(
2561 new RangeValueControl(
2562 $this->customizer,
2563 'betterdocs_toc_list_item_font_size',
2564 [
2565 'type' => 'betterdocs-range-value',
2566 'section' => 'betterdocs_single_docs_settings',
2567 'settings' => 'betterdocs_toc_list_item_font_size',
2568 'label' => __( 'List Item Font Size', 'betterdocs' ),
2569 'priority' => 147,
2570 'input_attrs' => [
2571 'class' => '',
2572 'min' => 0,
2573 'max' => 50,
2574 'step' => 1,
2575 'suffix' => 'px' //optional suffix
2576 ]
2577 ]
2578 )
2579 );
2580 }
2581
2582 public function doc_single_toc_list_margin() {
2583 $this->customizer->add_setting(
2584 'betterdocs_doc_single_toc_list_margin',
2585 [
2586 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin'],
2587 'capability' => 'edit_theme_options',
2588 'transport' => 'postMessage',
2589 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2590
2591 ]
2592 );
2593
2594 $this->customizer->add_control(
2595 new TitleControl(
2596 $this->customizer,
2597 'betterdocs_doc_single_toc_list_margin',
2598 [
2599 'type' => 'betterdocs-title',
2600 'section' => 'betterdocs_single_docs_settings',
2601 'settings' => 'betterdocs_doc_single_toc_list_margin',
2602 'label' => __( 'TOC List Margin', 'betterdocs' ),
2603 'priority' => 148,
2604 'input_attrs' => [
2605 'id' => 'betterdocs_doc_single_toc_list_margin',
2606 'class' => 'betterdocs-dimension'
2607 ]
2608 ]
2609 )
2610 );
2611
2612 $this->customizer->add_setting(
2613 'betterdocs_doc_single_toc_list_margin_top',
2614 [
2615 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_top'],
2616 'capability' => 'edit_theme_options',
2617 'transport' => 'postMessage',
2618 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2619 ]
2620 );
2621
2622 $this->customizer->add_control(
2623 new DimensionControl(
2624 $this->customizer,
2625 'betterdocs_doc_single_toc_list_margin_top',
2626 [
2627 'type' => 'betterdocs-dimension',
2628 'section' => 'betterdocs_single_docs_settings',
2629 'settings' => 'betterdocs_doc_single_toc_list_margin_top',
2630 'label' => __( 'Top', 'betterdocs' ),
2631 'priority' => 148,
2632 'input_attrs' => [
2633 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
2634 ]
2635 ]
2636 )
2637 );
2638
2639 $this->customizer->add_setting(
2640 'betterdocs_doc_single_toc_list_margin_right',
2641 [
2642 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_right'],
2643 'capability' => 'edit_theme_options',
2644 'transport' => 'postMessage',
2645 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2646
2647 ]
2648 );
2649
2650 $this->customizer->add_control(
2651 new DimensionControl(
2652 $this->customizer,
2653 'betterdocs_doc_single_toc_list_margin_right',
2654 [
2655 'type' => 'betterdocs-dimension',
2656 'section' => 'betterdocs_single_docs_settings',
2657 'settings' => 'betterdocs_doc_single_toc_list_margin_right',
2658 'label' => __( 'Right', 'betterdocs' ),
2659 'priority' => 148,
2660 'input_attrs' => [
2661 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
2662 ]
2663 ]
2664 )
2665 );
2666
2667 $this->customizer->add_setting(
2668 'betterdocs_doc_single_toc_list_margin_bottom',
2669 [
2670 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_bottom'],
2671 'capability' => 'edit_theme_options',
2672 'transport' => 'postMessage',
2673 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2674
2675 ]
2676 );
2677
2678 $this->customizer->add_control(
2679 new DimensionControl(
2680 $this->customizer,
2681 'betterdocs_doc_single_toc_list_margin_bottom',
2682 [
2683 'type' => 'betterdocs-dimension',
2684 'section' => 'betterdocs_single_docs_settings',
2685 'settings' => 'betterdocs_doc_single_toc_list_margin_bottom',
2686 'label' => __( 'Bottom', 'betterdocs' ),
2687 'priority' => 148,
2688 'input_attrs' => [
2689 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
2690 ]
2691 ]
2692 )
2693 );
2694
2695 $this->customizer->add_setting(
2696 'betterdocs_doc_single_toc_list_margin_left',
2697 [
2698 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_left'],
2699 'capability' => 'edit_theme_options',
2700 'transport' => 'postMessage',
2701 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2702
2703 ]
2704 );
2705
2706 $this->customizer->add_control(
2707 new DimensionControl(
2708 $this->customizer,
2709 'betterdocs_doc_single_toc_list_margin_left',
2710 [
2711 'type' => 'betterdocs-dimension',
2712 'section' => 'betterdocs_single_docs_settings',
2713 'settings' => 'betterdocs_doc_single_toc_list_margin_left',
2714 'label' => __( 'Left', 'betterdocs' ),
2715 'priority' => 148,
2716 'input_attrs' => [
2717 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
2718 ]
2719 ]
2720 )
2721 );
2722 }
2723
2724 public function toc_list_number_color() {
2725 $this->customizer->add_setting(
2726 'betterdocs_toc_list_number_color',
2727 [
2728 'default' => $this->defaults['betterdocs_toc_list_number_color'],
2729 'capability' => 'edit_theme_options',
2730 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2731 ]
2732 );
2733
2734 $this->customizer->add_control(
2735 new AlphaColorControl(
2736 $this->customizer,
2737 'betterdocs_toc_list_number_color',
2738 [
2739 'label' => __( 'List Number Color', 'betterdocs' ),
2740 'priority' => 153,
2741 'section' => 'betterdocs_single_docs_settings',
2742 'settings' => 'betterdocs_toc_list_number_color'
2743 ]
2744 )
2745 );
2746 }
2747
2748 public function toc_list_number_font_size() {
2749 $this->customizer->add_setting(
2750 'betterdocs_toc_list_number_font_size',
2751 [
2752 'default' => $this->defaults['betterdocs_toc_list_number_font_size'],
2753 'capability' => 'edit_theme_options',
2754 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2755
2756 ]
2757 );
2758
2759 $this->customizer->add_control(
2760 new RangeValueControl(
2761 $this->customizer,
2762 'betterdocs_toc_list_number_font_size',
2763 [
2764 'type' => 'betterdocs-range-value',
2765 'section' => 'betterdocs_single_docs_settings',
2766 'settings' => 'betterdocs_toc_list_number_font_size',
2767 'label' => __( 'List Number Font Size', 'betterdocs' ),
2768 'priority' => 154,
2769 'input_attrs' => [
2770 'class' => '',
2771 'min' => 0,
2772 'max' => 50,
2773 'step' => 1,
2774 'suffix' => 'px' //optional suffix
2775 ]
2776 ]
2777 )
2778 );
2779 }
2780
2781 public function toc_margin_bottom() {
2782 $this->customizer->add_setting(
2783 'betterdocs_toc_margin_bottom',
2784 [
2785 'default' => $this->defaults['betterdocs_toc_margin_bottom'],
2786 'capability' => 'edit_theme_options',
2787 'transport' => 'postMessage',
2788 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2789
2790 ]
2791 );
2792
2793 $this->customizer->add_control(
2794 new RangeValueControl(
2795 $this->customizer,
2796 'betterdocs_toc_margin_bottom',
2797 [
2798 'type' => 'betterdocs-range-value',
2799 'section' => 'betterdocs_single_docs_settings',
2800 'settings' => 'betterdocs_toc_margin_bottom',
2801 'label' => __( 'TOC Margin Bottom', 'betterdocs' ),
2802 'priority' => 155,
2803 'input_attrs' => [
2804 'class' => '',
2805 'min' => 0,
2806 'max' => 500,
2807 'step' => 1,
2808 'suffix' => 'px' // optional suffix
2809 ]
2810 ]
2811 )
2812 );
2813 }
2814
2815 public function doc_single_toc_title_layout_8_9() {
2816 $this->customizer->add_setting(
2817 'betterdocs_doc_single_toc_title_layout_8_9',
2818 [
2819 'default' => $this->defaults['betterdocs_doc_single_toc_title_layout_8_9'],
2820 'sanitize_callback' => 'esc_html'
2821 ]
2822 );
2823
2824 $this->customizer->add_control(
2825 new SeparatorControl(
2826 $this->customizer,
2827 'betterdocs_doc_single_toc_title_layout_8_9',
2828 [
2829 'label' => __( 'Table of Contents', 'betterdocs' ),
2830 'priority' => 132,
2831 'settings' => 'betterdocs_doc_single_toc_title_layout_8_9',
2832 'section' => 'betterdocs_single_docs_settings'
2833 ]
2834 )
2835 );
2836 }
2837
2838 // public function sticky_toc_width_layout_8_9() {
2839 // $this->customizer->add_setting( 'betterdocs_sticky_toc_width_layout_8_9', [
2840 // 'default' => $this->defaults['betterdocs_sticky_toc_width_layout_8_9'],
2841 // 'capability' => 'edit_theme_options',
2842 // 'transport' => 'postMessage',
2843 // 'sanitize_callback' => [$this->sanitizer, 'integer']
2844
2845 // ] );
2846
2847 // $this->customizer->add_control( new RangeValueControl(
2848 // $this->customizer, 'betterdocs_sticky_toc_width_layout_8_9', [
2849 // 'type' => 'betterdocs-range-value',
2850 // 'section' => 'betterdocs_single_docs_settings',
2851 // 'settings' => 'betterdocs_sticky_toc_width_layout_8_9',
2852 // 'label' => __( 'Sticky Toc Width', 'betterdocs' ),
2853 // 'priority' => 133,
2854 // 'input_attrs' => [
2855 // 'class' => '',
2856 // 'min' => 100,
2857 // 'max' => 500,
2858 // 'step' => 1,
2859 // 'suffix' => 'px' //optional suffix
2860 // ]
2861 // ] )
2862 // );
2863 // }
2864
2865 // public function sticky_toc_zindex_layout_8_9() {
2866 // $this->customizer->add_setting( 'betterdocs_sticky_toc_zindex_layout_8_9', [
2867 // 'default' => $this->defaults['betterdocs_sticky_toc_zindex_layout_8_9'],
2868 // 'capability' => 'edit_theme_options',
2869 // 'transport' => 'postMessage',
2870 // 'sanitize_callback' => [$this->sanitizer, 'integer']
2871 // ] );
2872
2873 // $this->customizer->add_control( new NumberControl(
2874 // $this->customizer, 'betterdocs_sticky_toc_zindex_layout_8_9', [
2875 // 'type' => 'betterdocs-number',
2876 // 'section' => 'betterdocs_single_docs_settings',
2877 // 'settings' => 'betterdocs_sticky_toc_zindex_layout_8_9',
2878 // 'label' => __( 'Sticky Toc z-index', 'betterdocs' ),
2879 // 'priority' => 134
2880 // ] )
2881 // );
2882 // }
2883
2884 // public function sticky_toc_margin_top_layout_8_9() {
2885 // $this->customizer->add_setting( 'betterdocs_sticky_toc_margin_top_layout_8_9', [
2886 // 'default' => $this->defaults['betterdocs_sticky_toc_margin_top_layout_8_9'],
2887 // 'capability' => 'edit_theme_options',
2888 // 'transport' => 'postMessage',
2889 // 'sanitize_callback' => [$this->sanitizer, 'integer']
2890
2891 // ] );
2892
2893 // $this->customizer->add_control( new RangeValueControl(
2894 // $this->customizer, 'betterdocs_sticky_toc_margin_top_layout_8_9', [
2895 // 'type' => 'betterdocs-range-value',
2896 // 'section' => 'betterdocs_single_docs_settings',
2897 // 'settings' => 'betterdocs_sticky_toc_margin_top_layout_8_9',
2898 // 'label' => __( 'Sticky Toc Margin Top', 'betterdocs' ),
2899 // 'priority' => 135,
2900 // 'input_attrs' => [
2901 // 'class' => '',
2902 // 'min' => 0,
2903 // 'max' => 500,
2904 // 'step' => 1,
2905 // 'suffix' => 'px' //optional suffix
2906 // ]
2907 // ] )
2908 // );
2909 // }
2910
2911 public function toc_bg_color_layout_8_9() {
2912 $this->customizer->add_setting(
2913 'betterdocs_toc_bg_color_layout_8_9',
2914 [
2915 'capability' => 'edit_theme_options',
2916 'default' => $this->defaults['betterdocs_toc_bg_color_layout_8_9'],
2917 'transport' => 'postMessage',
2918 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2919 ]
2920 );
2921
2922 $this->customizer->add_control(
2923 new AlphaColorControl(
2924 $this->customizer,
2925 'betterdocs_toc_bg_color_layout_8_9',
2926 [
2927 'label' => __( 'Background Color', 'betterdocs' ),
2928 'priority' => 136,
2929 'section' => 'betterdocs_single_docs_settings',
2930 'settings' => 'betterdocs_toc_bg_color_layout_8_9'
2931 ]
2932 )
2933 );
2934 }
2935
2936 public function doc_single_toc_padding_layout_8_9() {
2937 $this->customizer->add_setting(
2938 'betterdocs_doc_single_toc_padding_layout_8_9',
2939 [
2940 'default' => $this->defaults['betterdocs_doc_single_toc_padding_layout_8_9'],
2941 'capability' => 'edit_theme_options',
2942 'transport' => 'postMessage',
2943 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2944
2945 ]
2946 );
2947
2948 $this->customizer->add_control(
2949 new TitleControl(
2950 $this->customizer,
2951 'betterdocs_doc_single_toc_padding_layout_8_9',
2952 [
2953 'type' => 'betterdocs-title',
2954 'section' => 'betterdocs_single_docs_settings',
2955 'settings' => 'betterdocs_doc_single_toc_padding_layout_8_9',
2956 'label' => __( 'Content Area Padding', 'betterdocs' ),
2957 'priority' => 137,
2958 'input_attrs' => [
2959 'id' => 'betterdocs_doc_single_toc_padding_layout_8_9',
2960 'class' => 'betterdocs-dimension'
2961 ]
2962 ]
2963 )
2964 );
2965
2966 $this->customizer->add_setting(
2967 'betterdocs_doc_single_toc_padding_top_layout_8_9',
2968 [
2969 'default' => $this->defaults['betterdocs_doc_single_toc_padding_top_layout_8_9'],
2970 'capability' => 'edit_theme_options',
2971 'transport' => 'postMessage',
2972 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2973 ]
2974 );
2975
2976 $this->customizer->add_control(
2977 new DimensionControl(
2978 $this->customizer,
2979 'betterdocs_doc_single_toc_padding_top_layout_8_9',
2980 [
2981 'type' => 'betterdocs-dimension',
2982 'section' => 'betterdocs_single_docs_settings',
2983 'settings' => 'betterdocs_doc_single_toc_padding_top_layout_8_9',
2984 'label' => __( 'Top', 'betterdocs' ),
2985 'priority' => 137,
2986 'input_attrs' => [
2987 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
2988 ]
2989 ]
2990 )
2991 );
2992
2993 $this->customizer->add_setting(
2994 'betterdocs_doc_single_toc_padding_right_layout_8_9',
2995 [
2996 'default' => $this->defaults['betterdocs_doc_single_toc_padding_right_layout_8_9'],
2997 'capability' => 'edit_theme_options',
2998 'transport' => 'postMessage',
2999 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3000
3001 ]
3002 );
3003
3004 $this->customizer->add_control(
3005 new DimensionControl(
3006 $this->customizer,
3007 'betterdocs_doc_single_toc_padding_right_layout_8_9',
3008 [
3009 'type' => 'betterdocs-dimension',
3010 'section' => 'betterdocs_single_docs_settings',
3011 'settings' => 'betterdocs_doc_single_toc_padding_right_layout_8_9',
3012 'label' => __( 'Right', 'betterdocs' ),
3013 'priority' => 137,
3014 'input_attrs' => [
3015 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
3016 ]
3017 ]
3018 )
3019 );
3020
3021 $this->customizer->add_setting(
3022 'betterdocs_doc_single_toc_padding_bottom_layout_8_9',
3023 [
3024 'default' => $this->defaults['betterdocs_doc_single_toc_padding_bottom_layout_8_9'],
3025 'capability' => 'edit_theme_options',
3026 'transport' => 'postMessage',
3027 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3028
3029 ]
3030 );
3031
3032 $this->customizer->add_control(
3033 new DimensionControl(
3034 $this->customizer,
3035 'betterdocs_doc_single_toc_padding_bottom_layout_8_9',
3036 [
3037 'type' => 'betterdocs-dimension',
3038 'section' => 'betterdocs_single_docs_settings',
3039 'settings' => 'betterdocs_doc_single_toc_padding_bottom_layout_8_9',
3040 'label' => __( 'Bottom', 'betterdocs' ),
3041 'priority' => 137,
3042 'input_attrs' => [
3043 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
3044 ]
3045 ]
3046 )
3047 );
3048
3049 $this->customizer->add_setting(
3050 'betterdocs_doc_single_toc_padding_left_layout_8_9',
3051 [
3052 'default' => $this->defaults['betterdocs_doc_single_toc_padding_left_layout_8_9'],
3053 'capability' => 'edit_theme_options',
3054 'transport' => 'postMessage',
3055 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3056
3057 ]
3058 );
3059
3060 $this->customizer->add_control(
3061 new DimensionControl(
3062 $this->customizer,
3063 'betterdocs_doc_single_toc_padding_left_layout_8_9',
3064 [
3065 'type' => 'betterdocs-dimension',
3066 'section' => 'betterdocs_single_docs_settings',
3067 'settings' => 'betterdocs_doc_single_toc_padding_left_layout_8_9',
3068 'label' => __( 'Left', 'betterdocs' ),
3069 'priority' => 137,
3070 'input_attrs' => [
3071 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
3072 ]
3073 ]
3074 )
3075 );
3076 }
3077
3078 public function doc_single_toc_margin_layout_8_9() {
3079 $this->customizer->add_setting(
3080 'betterdocs_doc_single_toc_margin_layout_8_9',
3081 [
3082 'default' => $this->defaults['betterdocs_doc_single_toc_margin_layout_8_9'],
3083 'capability' => 'edit_theme_options',
3084 'transport' => 'postMessage',
3085 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3086 ]
3087 );
3088
3089 $this->customizer->add_control(
3090 new TitleControl(
3091 $this->customizer,
3092 'betterdocs_doc_single_toc_margin_layout_8_9',
3093 [
3094 'type' => 'betterdocs-title',
3095 'section' => 'betterdocs_single_docs_settings',
3096 'settings' => 'betterdocs_doc_single_toc_margin_layout_8_9',
3097 'label' => __( 'Content Area Margin', 'betterdocs' ),
3098 'priority' => 141,
3099 'input_attrs' => [
3100 'id' => 'betterdocs_doc_single_toc_margin_layout_8_9',
3101 'class' => 'betterdocs-dimension'
3102 ]
3103 ]
3104 )
3105 );
3106
3107 $this->customizer->add_setting(
3108 'betterdocs_doc_single_toc_margin_top_layout_8_9',
3109 [
3110 'default' => $this->defaults['betterdocs_doc_single_toc_margin_top_layout_8_9'],
3111 'capability' => 'edit_theme_options',
3112 'transport' => 'postMessage',
3113 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3114 ]
3115 );
3116
3117 $this->customizer->add_control(
3118 new DimensionControl(
3119 $this->customizer,
3120 'betterdocs_doc_single_toc_margin_top_layout_8_9',
3121 [
3122 'type' => 'betterdocs-dimension',
3123 'section' => 'betterdocs_single_docs_settings',
3124 'settings' => 'betterdocs_doc_single_toc_margin_top_layout_8_9',
3125 'label' => __( 'Top', 'betterdocs' ),
3126 'priority' => 141,
3127 'input_attrs' => [
3128 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
3129 ]
3130 ]
3131 )
3132 );
3133
3134 $this->customizer->add_setting(
3135 'betterdocs_doc_single_toc_margin_right_layout_8_9',
3136 [
3137 'default' => $this->defaults['betterdocs_doc_single_toc_margin_right_layout_8_9'],
3138 'capability' => 'edit_theme_options',
3139 'transport' => 'postMessage',
3140 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3141 ]
3142 );
3143
3144 $this->customizer->add_control(
3145 new DimensionControl(
3146 $this->customizer,
3147 'betterdocs_doc_single_toc_margin_right_layout_8_9',
3148 [
3149 'type' => 'betterdocs-dimension',
3150 'section' => 'betterdocs_single_docs_settings',
3151 'settings' => 'betterdocs_doc_single_toc_margin_right_layout_8_9',
3152 'label' => __( 'Right', 'betterdocs' ),
3153 'priority' => 141,
3154 'input_attrs' => [
3155 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
3156 ]
3157 ]
3158 )
3159 );
3160
3161 $this->customizer->add_setting(
3162 'betterdocs_doc_single_toc_margin_bottom_layout_8_9',
3163 [
3164 'default' => $this->defaults['betterdocs_doc_single_toc_margin_bottom_layout_8_9'],
3165 'capability' => 'edit_theme_options',
3166 'transport' => 'postMessage',
3167 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3168 ]
3169 );
3170
3171 $this->customizer->add_control(
3172 new DimensionControl(
3173 $this->customizer,
3174 'betterdocs_doc_single_toc_margin_bottom_layout_8_9',
3175 [
3176 'type' => 'betterdocs-dimension',
3177 'section' => 'betterdocs_single_docs_settings',
3178 'settings' => 'betterdocs_doc_single_toc_margin_bottom_layout_8_9',
3179 'label' => __( 'Bottom', 'betterdocs' ),
3180 'priority' => 141,
3181 'input_attrs' => [
3182 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
3183 ]
3184 ]
3185 )
3186 );
3187
3188 $this->customizer->add_setting(
3189 'betterdocs_doc_single_toc_margin_left_layout_8_9',
3190 [
3191 'default' => $this->defaults['betterdocs_doc_single_toc_margin_left_layout_8_9'],
3192 'capability' => 'edit_theme_options',
3193 'transport' => 'postMessage',
3194 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3195 ]
3196 );
3197
3198 $this->customizer->add_control(
3199 new DimensionControl(
3200 $this->customizer,
3201 'betterdocs_doc_single_toc_margin_left_layout_8_9',
3202 [
3203 'type' => 'betterdocs-dimension',
3204 'section' => 'betterdocs_single_docs_settings',
3205 'settings' => 'betterdocs_doc_single_toc_margin_left_layout_8_9',
3206 'label' => __( 'Left', 'betterdocs' ),
3207 'priority' => 141,
3208 'input_attrs' => [
3209 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
3210 ]
3211 ]
3212 )
3213 );
3214 }
3215
3216 public function toc_title_color_layout_8_9() {
3217 $this->customizer->add_setting(
3218 'betterdocs_toc_title_color_layout_8_9',
3219 [
3220 'capability' => 'edit_theme_options',
3221 'default' => $this->defaults['betterdocs_toc_title_color_layout_8_9'],
3222 'transport' => 'postMessage',
3223 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3224 ]
3225 );
3226
3227 $this->customizer->add_control(
3228 new AlphaColorControl(
3229 $this->customizer,
3230 'betterdocs_toc_title_color_layout_8_9',
3231 [
3232 'label' => __( 'Title Color', 'betterdocs' ),
3233 'priority' => 142,
3234 'section' => 'betterdocs_single_docs_settings',
3235 'settings' => 'betterdocs_toc_title_color_layout_8_9'
3236 ]
3237 )
3238 );
3239 }
3240
3241 public function toc_title_margin_layout_8_9() {
3242 $this->customizer->add_setting(
3243 'toc_title_margin_layout_8_9',
3244 [
3245 'default' => $this->defaults['toc_title_margin_layout_8_9'],
3246 'capability' => 'edit_theme_options',
3247 'transport' => 'postMessage',
3248 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3249 ]
3250 );
3251
3252 $this->customizer->add_control(
3253 new TitleControl(
3254 $this->customizer,
3255 'toc_title_margin_layout_8_9',
3256 [
3257 'type' => 'betterdocs-title',
3258 'section' => 'betterdocs_single_docs_settings',
3259 'settings' => 'toc_title_margin_layout_8_9',
3260 'label' => __( 'Margin', 'betterdocs' ),
3261 'priority' => 142,
3262 'input_attrs' => [
3263 'id' => 'toc_title_margin_layout_8_9',
3264 'class' => 'betterdocs-dimension'
3265 ]
3266 ]
3267 )
3268 );
3269
3270 $this->customizer->add_setting(
3271 'toc_title_margin_top_layout_8_9',
3272 [
3273 'default' => $this->defaults['toc_title_margin_top_layout_8_9'],
3274 'capability' => 'edit_theme_options',
3275 'transport' => 'postMessage',
3276 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3277 ]
3278 );
3279
3280 $this->customizer->add_control(
3281 new DimensionControl(
3282 $this->customizer,
3283 'toc_title_margin_top_layout_8_9',
3284 [
3285 'type' => 'betterdocs-dimension',
3286 'section' => 'betterdocs_single_docs_settings',
3287 'settings' => 'toc_title_margin_top_layout_8_9',
3288 'label' => __( 'Top', 'betterdocs' ),
3289 'priority' => 142,
3290 'input_attrs' => [
3291 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
3292 ]
3293 ]
3294 )
3295 );
3296
3297 $this->customizer->add_setting(
3298 'toc_title_margin_right_layout_8_9',
3299 [
3300 'default' => $this->defaults['toc_title_margin_right_layout_8_9'],
3301 'capability' => 'edit_theme_options',
3302 'transport' => 'postMessage',
3303 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3304 ]
3305 );
3306
3307 $this->customizer->add_control(
3308 new DimensionControl(
3309 $this->customizer,
3310 'toc_title_margin_right_layout_8_9',
3311 [
3312 'type' => 'betterdocs-dimension',
3313 'section' => 'betterdocs_single_docs_settings',
3314 'settings' => 'toc_title_margin_right_layout_8_9',
3315 'label' => __( 'Right', 'betterdocs' ),
3316 'priority' => 142,
3317 'input_attrs' => [
3318 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
3319 ]
3320 ]
3321 )
3322 );
3323
3324 $this->customizer->add_setting(
3325 'toc_title_margin_bottom_layout_8_9',
3326 [
3327 'default' => $this->defaults['toc_title_margin_bottom_layout_8_9'],
3328 'capability' => 'edit_theme_options',
3329 'transport' => 'postMessage',
3330 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3331 ]
3332 );
3333
3334 $this->customizer->add_control(
3335 new DimensionControl(
3336 $this->customizer,
3337 'toc_title_margin_bottom_layout_8_9',
3338 [
3339 'type' => 'betterdocs-dimension',
3340 'section' => 'betterdocs_single_docs_settings',
3341 'settings' => 'toc_title_margin_bottom_layout_8_9',
3342 'label' => __( 'Bottom', 'betterdocs' ),
3343 'priority' => 142,
3344 'input_attrs' => [
3345 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
3346 ]
3347 ]
3348 )
3349 );
3350
3351 $this->customizer->add_setting(
3352 'toc_title_margin_left_layout_8_9',
3353 [
3354 'default' => $this->defaults['toc_title_margin_left_layout_8_9'],
3355 'capability' => 'edit_theme_options',
3356 'transport' => 'postMessage',
3357 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3358 ]
3359 );
3360
3361 $this->customizer->add_control(
3362 new DimensionControl(
3363 $this->customizer,
3364 'toc_title_margin_left_layout_8_9',
3365 [
3366 'type' => 'betterdocs-dimension',
3367 'section' => 'betterdocs_single_docs_settings',
3368 'settings' => 'toc_title_margin_left_layout_8_9',
3369 'label' => __( 'Left', 'betterdocs' ),
3370 'priority' => 142,
3371 'input_attrs' => [
3372 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
3373 ]
3374 ]
3375 )
3376 );
3377 }
3378
3379 public function toc_title_font_size_layout_8_9() {
3380 $this->customizer->add_setting(
3381 'betterdocs_toc_title_font_size_layout_8_9',
3382 [
3383 'default' => $this->defaults['betterdocs_toc_title_font_size_layout_8_9'],
3384 'capability' => 'edit_theme_options',
3385 'transport' => 'postMessage',
3386 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3387
3388 ]
3389 );
3390
3391 $this->customizer->add_control(
3392 new RangeValueControl(
3393 $this->customizer,
3394 'betterdocs_toc_title_font_size_layout_8_9',
3395 [
3396 'type' => 'betterdocs-range-value',
3397 'section' => 'betterdocs_single_docs_settings',
3398 'settings' => 'betterdocs_toc_title_font_size_layout_8_9',
3399 'label' => __( 'Title Font Size', 'betterdocs' ),
3400 'priority' => 143,
3401 'input_attrs' => [
3402 'class' => '',
3403 'min' => 0,
3404 'max' => 50,
3405 'step' => 1,
3406 'suffix' => 'px' //optional suffix
3407 ]
3408 ]
3409 )
3410 );
3411 }
3412
3413 public function toc_list_item_color_layout_8_9() {
3414 $this->customizer->add_setting(
3415 'betterdocs_toc_list_item_color_layout_8_9',
3416 [
3417 'default' => $this->defaults['betterdocs_toc_list_item_color_layout_8_9'],
3418 'transport' => 'postMessage',
3419 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3420 ]
3421 );
3422
3423 $this->customizer->add_control(
3424 new AlphaColorControl(
3425 $this->customizer,
3426 'betterdocs_toc_list_item_color_layout_8_9',
3427 [
3428 'label' => __( 'List Item Color', 'betterdocs' ),
3429 'priority' => 144,
3430 'section' => 'betterdocs_single_docs_settings',
3431 'settings' => 'betterdocs_toc_list_item_color_layout_8_9'
3432 ]
3433 )
3434 );
3435 }
3436
3437 public function toc_list_item_hover_color_layout_8_9() {
3438 $this->customizer->add_setting(
3439 'betterdocs_toc_list_item_hover_color_layout_8_9',
3440 [
3441 'capability' => 'edit_theme_options',
3442 'default' => $this->defaults['betterdocs_toc_list_item_hover_color_layout_8_9'],
3443 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3444 ]
3445 );
3446
3447 $this->customizer->add_control(
3448 new AlphaColorControl(
3449 $this->customizer,
3450 'betterdocs_toc_list_item_hover_color_layout_8_9',
3451 [
3452 'label' => __( 'List Item Hover Color', 'betterdocs' ),
3453 'priority' => 145,
3454 'section' => 'betterdocs_single_docs_settings',
3455 'settings' => 'betterdocs_toc_list_item_hover_color_layout_8_9'
3456 ]
3457 )
3458 );
3459 }
3460
3461 public function toc_active_item_color_layout_8_9() {
3462 $this->customizer->add_setting(
3463 'betterdocs_toc_active_item_color_layout_8_9',
3464 [
3465 'capability' => 'edit_theme_options',
3466 'default' => $this->defaults['betterdocs_toc_active_item_color_layout_8_9'],
3467 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3468 ]
3469 );
3470
3471 $this->customizer->add_control(
3472 new AlphaColorControl(
3473 $this->customizer,
3474 'betterdocs_toc_active_item_color_layout_8_9',
3475 [
3476 'label' => __( 'Active Item Color', 'betterdocs' ),
3477 'priority' => 146,
3478 'section' => 'betterdocs_single_docs_settings',
3479 'settings' => 'betterdocs_toc_active_item_color_layout_8_9'
3480 ]
3481 )
3482 );
3483 }
3484
3485 public function toc_active_item_border_color_layout_8_9() {
3486 $this->customizer->add_setting(
3487 'toc_active_item_border_color_layout_8_9',
3488 [
3489 'capability' => 'edit_theme_options',
3490 'default' => $this->defaults['toc_active_item_border_color_layout_8_9'],
3491 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3492 ]
3493 );
3494
3495 $this->customizer->add_control(
3496 new AlphaColorControl(
3497 $this->customizer,
3498 'toc_active_item_border_color_layout_8_9',
3499 [
3500 'label' => __( 'Active Item Border Color', 'betterdocs' ),
3501 'priority' => 146,
3502 'section' => 'betterdocs_single_docs_settings',
3503 'settings' => 'toc_active_item_border_color_layout_8_9'
3504 ]
3505 )
3506 );
3507 }
3508
3509 public function toc_item_hover_bg_color_layout_10() {
3510 $this->customizer->add_setting(
3511 'toc_item_hover_bg_color_layout_10',
3512 [
3513 'capability' => 'edit_theme_options',
3514 'default' => $this->defaults['toc_item_hover_bg_color_layout_10'],
3515 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3516 ]
3517 );
3518
3519 $this->customizer->add_control(
3520 new AlphaColorControl(
3521 $this->customizer,
3522 'toc_item_hover_bg_color_layout_10',
3523 [
3524 'label' => __( 'Active Item Background Color', 'betterdocs' ),
3525 'priority' => 146,
3526 'section' => 'betterdocs_single_docs_settings',
3527 'settings' => 'toc_item_hover_bg_color_layout_10'
3528 ]
3529 )
3530 );
3531 }
3532
3533 public function toc_list_item_font_size_layout_8_9() {
3534 $this->customizer->add_setting(
3535 'betterdocs_toc_list_item_font_size_layout_8_9',
3536 [
3537 'default' => $this->defaults['betterdocs_toc_list_item_font_size_layout_8_9'],
3538 'capability' => 'edit_theme_options',
3539 'transport' => 'postMessage',
3540 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3541
3542 ]
3543 );
3544
3545 $this->customizer->add_control(
3546 new RangeValueControl(
3547 $this->customizer,
3548 'betterdocs_toc_list_item_font_size_layout_8_9',
3549 [
3550 'type' => 'betterdocs-range-value',
3551 'section' => 'betterdocs_single_docs_settings',
3552 'settings' => 'betterdocs_toc_list_item_font_size_layout_8_9',
3553 'label' => __( 'List Item Font Size', 'betterdocs' ),
3554 'priority' => 147,
3555 'input_attrs' => [
3556 'class' => '',
3557 'min' => 0,
3558 'max' => 50,
3559 'step' => 1,
3560 'suffix' => 'px' //optional suffix
3561 ]
3562 ]
3563 )
3564 );
3565 }
3566
3567 public function doc_single_toc_list_margin_layout_8_9() {
3568 $this->customizer->add_setting(
3569 'betterdocs_doc_single_toc_list_margin_layout_8_9',
3570 [
3571 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_layout_8_9'],
3572 'capability' => 'edit_theme_options',
3573 'transport' => 'postMessage',
3574 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3575
3576 ]
3577 );
3578
3579 $this->customizer->add_control(
3580 new TitleControl(
3581 $this->customizer,
3582 'betterdocs_doc_single_toc_list_margin_layout_8_9',
3583 [
3584 'type' => 'betterdocs-title',
3585 'section' => 'betterdocs_single_docs_settings',
3586 'settings' => 'betterdocs_doc_single_toc_list_margin_layout_8_9',
3587 'label' => __( 'TOC List Margin', 'betterdocs' ),
3588 'priority' => 148,
3589 'input_attrs' => [
3590 'id' => 'betterdocs_doc_single_toc_list_margin_layout_8_9',
3591 'class' => 'betterdocs-dimension'
3592 ]
3593 ]
3594 )
3595 );
3596
3597 $this->customizer->add_setting(
3598 'betterdocs_doc_single_toc_list_margin_top_layout_8_9',
3599 [
3600 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_top_layout_8_9'],
3601 'capability' => 'edit_theme_options',
3602 'transport' => 'postMessage',
3603 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3604 ]
3605 );
3606
3607 $this->customizer->add_control(
3608 new DimensionControl(
3609 $this->customizer,
3610 'betterdocs_doc_single_toc_list_margin_top_layout_8_9',
3611 [
3612 'type' => 'betterdocs-dimension',
3613 'section' => 'betterdocs_single_docs_settings',
3614 'settings' => 'betterdocs_doc_single_toc_list_margin_top_layout_8_9',
3615 'label' => __( 'Top', 'betterdocs' ),
3616 'priority' => 148,
3617 'input_attrs' => [
3618 'class' => 'betterdocs_doc_single_toc_list_margin_layout_8_9 betterdocs-dimension'
3619 ]
3620 ]
3621 )
3622 );
3623
3624 $this->customizer->add_setting(
3625 'betterdocs_doc_single_toc_list_margin_right_layout_8_9',
3626 [
3627 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_right_layout_8_9'],
3628 'capability' => 'edit_theme_options',
3629 'transport' => 'postMessage',
3630 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3631
3632 ]
3633 );
3634
3635 $this->customizer->add_control(
3636 new DimensionControl(
3637 $this->customizer,
3638 'betterdocs_doc_single_toc_list_margin_right_layout_8_9',
3639 [
3640 'type' => 'betterdocs-dimension',
3641 'section' => 'betterdocs_single_docs_settings',
3642 'settings' => 'betterdocs_doc_single_toc_list_margin_right_layout_8_9',
3643 'label' => __( 'Right', 'betterdocs' ),
3644 'priority' => 148,
3645 'input_attrs' => [
3646 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
3647 ]
3648 ]
3649 )
3650 );
3651
3652 $this->customizer->add_setting(
3653 'betterdocs_doc_single_toc_list_margin_bottom_layout_8_9',
3654 [
3655 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_bottom_layout_8_9'],
3656 'capability' => 'edit_theme_options',
3657 'transport' => 'postMessage',
3658 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3659
3660 ]
3661 );
3662
3663 $this->customizer->add_control(
3664 new DimensionControl(
3665 $this->customizer,
3666 'betterdocs_doc_single_toc_list_margin_bottom_layout_8_9',
3667 [
3668 'type' => 'betterdocs-dimension',
3669 'section' => 'betterdocs_single_docs_settings',
3670 'settings' => 'betterdocs_doc_single_toc_list_margin_bottom_layout_8_9',
3671 'label' => __( 'Bottom', 'betterdocs' ),
3672 'priority' => 148,
3673 'input_attrs' => [
3674 'class' => 'betterdocs_doc_single_toc_list_margin_layout_8_9 betterdocs-dimension'
3675 ]
3676 ]
3677 )
3678 );
3679
3680 $this->customizer->add_setting(
3681 'betterdocs_doc_single_toc_list_margin_left_layout_8_9',
3682 [
3683 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_left_layout_8_9'],
3684 'capability' => 'edit_theme_options',
3685 'transport' => 'postMessage',
3686 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3687
3688 ]
3689 );
3690
3691 $this->customizer->add_control(
3692 new DimensionControl(
3693 $this->customizer,
3694 'betterdocs_doc_single_toc_list_margin_left_layout_8_9',
3695 [
3696 'type' => 'betterdocs-dimension',
3697 'section' => 'betterdocs_single_docs_settings',
3698 'settings' => 'betterdocs_doc_single_toc_list_margin_left_layout_8_9',
3699 'label' => __( 'Left', 'betterdocs' ),
3700 'priority' => 148,
3701 'input_attrs' => [
3702 'class' => 'betterdocs_doc_single_toc_list_margin_layout_8_9 betterdocs-dimension'
3703 ]
3704 ]
3705 )
3706 );
3707 }
3708
3709 public function doc_author_section() {
3710 $this->customizer->add_setting(
3711 'betterdocs_doc_author_section',
3712 [
3713 'default' => $this->defaults['betterdocs_doc_author_section'],
3714 'sanitize_callback' => 'esc_html'
3715 ]
3716 );
3717
3718 $this->customizer->add_control(
3719 new SeparatorControl(
3720 $this->customizer,
3721 'betterdocs_doc_author_section',
3722 [
3723 'label' => __( 'Author', 'betterdocs' ),
3724 'priority' => 155,
3725 'settings' => 'betterdocs_doc_author_section',
3726 'section' => 'betterdocs_single_docs_settings'
3727 ]
3728 )
3729 );
3730 }
3731
3732 public function doc_author_enable() {
3733 $this->customizer->add_setting(
3734 'betterdocs_doc_author_enable',
3735 [
3736 'default' => $this->defaults['betterdocs_doc_author_enable'],
3737 'capability' => 'edit_theme_options',
3738 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
3739 ]
3740 );
3741
3742 $this->customizer->add_control(
3743 new ToggleControl(
3744 $this->customizer,
3745 'betterdocs_doc_author_enable',
3746 [
3747 'label' => __( 'Enable Author Info', 'betterdocs' ),
3748 'priority' => 155,
3749 'section' => 'betterdocs_single_docs_settings',
3750 'settings' => 'betterdocs_doc_author_enable',
3751 'type' => 'light' // light, ios, flat
3752 ]
3753 )
3754 );
3755 }
3756
3757 public function doc_author_enable_layout_9() {
3758 $this->customizer->add_setting(
3759 'betterdocs_doc_author_enable_layout_9',
3760 [
3761 'default' => $this->defaults['betterdocs_doc_author_enable_layout_9'],
3762 'capability' => 'edit_theme_options',
3763 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
3764 ]
3765 );
3766
3767 $this->customizer->add_control(
3768 new ToggleControl(
3769 $this->customizer,
3770 'betterdocs_doc_author_enable_layout_9',
3771 [
3772 'label' => __( 'Enable Author Info', 'betterdocs' ),
3773 'priority' => 155,
3774 'section' => 'betterdocs_single_docs_settings',
3775 'settings' => 'betterdocs_doc_author_enable_layout_9',
3776 'type' => 'light' // light, ios, flat
3777 ]
3778 )
3779 );
3780 }
3781
3782 public function doc_author_date() {
3783 $this->customizer->add_setting(
3784 'betterdocs_doc_author_date',
3785 [
3786 'default' => $this->defaults['betterdocs_doc_author_date'],
3787 'capability' => 'edit_theme_options',
3788 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
3789 ]
3790 );
3791
3792 $this->customizer->add_control(
3793 new ToggleControl(
3794 $this->customizer,
3795 'betterdocs_doc_author_date',
3796 [
3797 'label' => __( 'Updated Date', 'betterdocs' ),
3798 'priority' => 155,
3799 'section' => 'betterdocs_single_docs_settings',
3800 'settings' => 'betterdocs_doc_author_date',
3801 'type' => 'light' // light, ios, flat
3802 ]
3803 )
3804 );
3805 }
3806
3807
3808 public function doc_estimate_reading_time_section() {
3809 $this->customizer->add_setting(
3810 'betterdocs_doc_estimate_reading_time_section',
3811 [
3812 'default' => $this->defaults['betterdocs_doc_estimate_reading_time_section'],
3813 'sanitize_callback' => 'esc_html'
3814 ]
3815 );
3816
3817 $this->customizer->add_control(
3818 new SeparatorControl(
3819 $this->customizer,
3820 'betterdocs_doc_estimate_reading_time_section',
3821 [
3822 'label' => __( 'Estimated Reading Time', 'betterdocs' ),
3823 'priority' => 155,
3824 'settings' => 'betterdocs_doc_estimate_reading_time_section',
3825 'section' => 'betterdocs_single_docs_settings'
3826 ]
3827 )
3828 );
3829 }
3830
3831 public function doc_erstimate_reading_time_bg_color() {
3832 $this->customizer->add_setting(
3833 'betterdocs_doc_single_content_est_reading_bg_color',
3834 [
3835 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_bg_color'],
3836 'capability' => 'edit_theme_options',
3837 'transport' => 'postMessage',
3838 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3839 ]
3840 );
3841
3842 $this->customizer->add_control(
3843 new AlphaColorControl(
3844 $this->customizer,
3845 'betterdocs_doc_single_content_est_reading_bg_color',
3846 [
3847 'label' => __( 'Background Color', 'betterdocs' ),
3848 'priority' => 155,
3849 'section' => 'betterdocs_single_docs_settings',
3850 'settings' => 'betterdocs_doc_single_content_est_reading_bg_color'
3851 ]
3852 )
3853 );
3854 }
3855
3856 public function doc_erstimate_reading_time_bg_color_layout_8_9() {
3857 $this->customizer->add_setting(
3858 'betterdocs_doc_single_content_est_reading_bg_color_layout_8_9',
3859 [
3860 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_bg_color_layout_8_9'],
3861 'capability' => 'edit_theme_options',
3862 'transport' => 'postMessage',
3863 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3864 ]
3865 );
3866
3867 $this->customizer->add_control(
3868 new AlphaColorControl(
3869 $this->customizer,
3870 'betterdocs_doc_single_content_est_reading_bg_color_layout_8_9',
3871 [
3872 'label' => __( 'Background Color', 'betterdocs' ),
3873 'priority' => 155,
3874 'section' => 'betterdocs_single_docs_settings',
3875 'settings' => 'betterdocs_doc_single_content_est_reading_bg_color_layout_8_9'
3876 ]
3877 )
3878 );
3879 }
3880
3881 public function doc_estimate_reading_time_icon_color() {
3882 $this->customizer->add_setting(
3883 'betterdocs_doc_single_content_est_reading_icon_color',
3884 [
3885 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_icon_color'],
3886 'capability' => 'edit_theme_options',
3887 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3888 ]
3889 );
3890
3891 $this->customizer->add_control(
3892 new AlphaColorControl(
3893 $this->customizer,
3894 'betterdocs_doc_single_content_est_reading_icon_color',
3895 [
3896 'label' => __( 'Clock Icon Color', 'betterdocs' ),
3897 'priority' => 155,
3898 'section' => 'betterdocs_single_docs_settings',
3899 'settings' => 'betterdocs_doc_single_content_est_reading_icon_color'
3900 ]
3901 )
3902 );
3903 }
3904
3905 public function betterdocs_doc_single_content_est_reading_icon_font_size() {
3906 $this->customizer->add_setting(
3907 'betterdocs_doc_single_content_est_reading_icon_font_size',
3908 [
3909 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_icon_font_size'],
3910 'capability' => 'edit_theme_options',
3911 'transport' => 'postMessage',
3912 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3913
3914 ]
3915 );
3916
3917 $this->customizer->add_control(
3918 new RangeValueControl(
3919 $this->customizer,
3920 'betterdocs_doc_single_content_est_reading_icon_font_size',
3921 [
3922 'type' => 'betterdocs-range-value',
3923 'section' => 'betterdocs_single_docs_settings',
3924 'settings' => 'betterdocs_doc_single_content_est_reading_icon_font_size',
3925 'label' => __( 'Clock Icon Size', 'betterdocs' ),
3926 'priority' => 155,
3927 'input_attrs' => [
3928 'min' => 0,
3929 'max' => 50,
3930 'step' => 1,
3931 'suffix' => 'px' //optional suffix
3932 ]
3933 ]
3934 )
3935 );
3936 }
3937
3938 public function doc_estimate_reading_time_color() {
3939 $this->customizer->add_setting(
3940 'betterdocs_doc_single_content_est_reading_color',
3941 [
3942 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_color'],
3943 'capability' => 'edit_theme_options',
3944 'transport' => 'postMessage',
3945 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3946 ]
3947 );
3948
3949 $this->customizer->add_control(
3950 new AlphaColorControl(
3951 $this->customizer,
3952 'betterdocs_doc_single_content_est_reading_color',
3953 [
3954 'label' => __( 'Font Color', 'betterdocs' ),
3955 'priority' => 155,
3956 'section' => 'betterdocs_single_docs_settings',
3957 'settings' => 'betterdocs_doc_single_content_est_reading_color'
3958 ]
3959 )
3960 );
3961 }
3962
3963 public function betterdocs_doc_single_content_est_reading_font_size() {
3964 $this->customizer->add_setting(
3965 'betterdocs_doc_single_content_est_reading_font_size',
3966 [
3967 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_font_size'],
3968 'capability' => 'edit_theme_options',
3969 'transport' => 'postMessage',
3970 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3971
3972 ]
3973 );
3974
3975 $this->customizer->add_control(
3976 new RangeValueControl(
3977 $this->customizer,
3978 'betterdocs_doc_single_content_est_reading_font_size',
3979 [
3980 'type' => 'betterdocs-range-value',
3981 'section' => 'betterdocs_single_docs_settings',
3982 'settings' => 'betterdocs_doc_single_content_est_reading_font_size',
3983 'label' => __( 'Font Size', 'betterdocs' ),
3984 'priority' => 155,
3985 'input_attrs' => [
3986 'min' => 0,
3987 'max' => 50,
3988 'step' => 1,
3989 'suffix' => 'px' //optional suffix
3990 ]
3991 ]
3992 )
3993 );
3994 }
3995
3996 public function betterdocs_doc_single_content_est_reading_border_radius() {
3997 $this->customizer->add_setting(
3998 'betterdocs_doc_single_content_est_reading_border_radius',
3999 [
4000 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_border_radius'],
4001 'capability' => 'edit_theme_options',
4002 'transport' => 'postMessage',
4003 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4004
4005 ]
4006 );
4007
4008 $this->customizer->add_control(
4009 new RangeValueControl(
4010 $this->customizer,
4011 'betterdocs_doc_single_content_est_reading_border_radius',
4012 [
4013 'type' => 'betterdocs-range-value',
4014 'section' => 'betterdocs_single_docs_settings',
4015 'settings' => 'betterdocs_doc_single_content_est_reading_border_radius',
4016 'label' => __( 'Border Radius', 'betterdocs' ),
4017 'input_attrs' => [
4018 'class' => '',
4019 'min' => 0,
4020 'max' => 100,
4021 'step' => 1,
4022 'suffix' => 'px' //optional suffix
4023 ],
4024 'priority' => 155
4025 ]
4026 )
4027 );
4028 }
4029
4030 public function betterdocs_doc_single_content_est_reading_font_weight() {
4031 $this->customizer->add_setting(
4032 'betterdocs_doc_single_content_est_reading_font_weight',
4033 [
4034 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_font_weight'],
4035 'capability' => 'edit_theme_options',
4036 'transport' => 'postMessage',
4037 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
4038 ]
4039 );
4040
4041 $this->customizer->add_control(
4042 new WP_Customize_Control(
4043 $this->customizer,
4044 'betterdocs_doc_single_content_est_reading_font_weight',
4045 [
4046 'label' => __( 'Font Weight', 'betterdocs' ),
4047 'section' => 'betterdocs_single_docs_settings',
4048 'settings' => 'betterdocs_doc_single_content_est_reading_font_weight',
4049 'type' => 'select',
4050 'choices' => [
4051 'normal' => 'Normal',
4052 '100' => '100',
4053 '200' => '200',
4054 '300' => '300',
4055 '400' => '400',
4056 '500' => '500',
4057 '600' => '600',
4058 '700' => '700',
4059 '800' => '800',
4060 '900' => '900'
4061 ],
4062 'priority' => 155
4063 ]
4064 )
4065 );
4066 }
4067
4068 public function betterdocs_doc_single_content_est_reading_margin() {
4069 $this->customizer->add_setting(
4070 'betterdocs_doc_single_content_est_reading_margin',
4071 [
4072 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin'],
4073 'capability' => 'edit_theme_options',
4074 'transport' => 'postMessage',
4075 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4076 ]
4077 );
4078
4079 $this->customizer->add_control(
4080 new TitleControl(
4081 $this->customizer,
4082 'betterdocs_doc_single_content_est_reading_margin',
4083 [
4084 'type' => 'betterdocs-title',
4085 'section' => 'betterdocs_single_docs_settings',
4086 'settings' => 'betterdocs_doc_single_content_est_reading_margin',
4087 'label' => __( 'Margin', 'betterdocs' ),
4088 'priority' => 155,
4089 'input_attrs' => [
4090 'id' => 'betterdocs_doc_single_content_est_reading_margin',
4091 'class' => 'betterdocs-dimension'
4092 ]
4093 ]
4094 )
4095 );
4096
4097 $this->customizer->add_setting(
4098 'betterdocs_doc_single_content_est_reading_margin_top',
4099 [
4100 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_top'],
4101 'capability' => 'edit_theme_options',
4102 'transport' => 'postMessage',
4103 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4104 ]
4105 );
4106
4107 $this->customizer->add_control(
4108 new DimensionControl(
4109 $this->customizer,
4110 'betterdocs_doc_single_content_est_reading_margin_top',
4111 [
4112 'type' => 'betterdocs-dimension',
4113 'section' => 'betterdocs_single_docs_settings',
4114 'settings' => 'betterdocs_doc_single_content_est_reading_margin_top',
4115 'label' => __( 'Top', 'betterdocs' ),
4116 'priority' => 155,
4117 'input_attrs' => [
4118 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
4119 ]
4120 ]
4121 )
4122 );
4123
4124 $this->customizer->add_setting(
4125 'betterdocs_doc_single_content_est_reading_margin_right',
4126 [
4127 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_right'],
4128 'capability' => 'edit_theme_options',
4129 'transport' => 'postMessage',
4130 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4131 ]
4132 );
4133
4134 $this->customizer->add_control(
4135 new DimensionControl(
4136 $this->customizer,
4137 'betterdocs_doc_single_content_est_reading_margin_right',
4138 [
4139 'type' => 'betterdocs-dimension',
4140 'section' => 'betterdocs_single_docs_settings',
4141 'settings' => 'betterdocs_doc_single_content_est_reading_margin_right',
4142 'label' => __( 'Right', 'betterdocs' ),
4143 'priority' => 155,
4144 'input_attrs' => [
4145 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
4146 ]
4147 ]
4148 )
4149 );
4150
4151 $this->customizer->add_setting(
4152 'betterdocs_doc_single_content_est_reading_margin_bottom',
4153 [
4154 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_bottom'],
4155 'capability' => 'edit_theme_options',
4156 'transport' => 'postMessage',
4157 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4158 ]
4159 );
4160
4161 $this->customizer->add_control(
4162 new DimensionControl(
4163 $this->customizer,
4164 'betterdocs_doc_single_content_est_reading_margin_bottom',
4165 [
4166 'type' => 'betterdocs-dimension',
4167 'section' => 'betterdocs_single_docs_settings',
4168 'settings' => 'betterdocs_doc_single_content_est_reading_margin_bottom',
4169 'label' => __( 'Bottom', 'betterdocs' ),
4170 'priority' => 155,
4171 'input_attrs' => [
4172 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
4173 ]
4174 ]
4175 )
4176 );
4177
4178 $this->customizer->add_setting(
4179 'betterdocs_doc_single_content_est_reading_margin_left',
4180 [
4181 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_left'],
4182 'capability' => 'edit_theme_options',
4183 'transport' => 'postMessage',
4184 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4185 ]
4186 );
4187
4188 $this->customizer->add_control(
4189 new DimensionControl(
4190 $this->customizer,
4191 'betterdocs_doc_single_content_est_reading_margin_left',
4192 [
4193 'type' => 'betterdocs-dimension',
4194 'section' => 'betterdocs_single_docs_settings',
4195 'settings' => 'betterdocs_doc_single_content_est_reading_margin_left',
4196 'label' => __( 'Left', 'betterdocs' ),
4197 'priority' => 155,
4198 'input_attrs' => [
4199 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
4200 ]
4201 ]
4202 )
4203 );
4204 }
4205
4206 public function betterdocs_doc_single_content_est_reading_padding() {
4207 $this->customizer->add_setting(
4208 'betterdocs_doc_single_content_est_reading_padding',
4209 [
4210 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding'],
4211 'capability' => 'edit_theme_options',
4212 'transport' => 'postMessage',
4213 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4214
4215 ]
4216 );
4217
4218 $this->customizer->add_control(
4219 new TitleControl(
4220 $this->customizer,
4221 'betterdocs_doc_single_content_est_reading_padding',
4222 [
4223 'type' => 'betterdocs-title',
4224 'section' => 'betterdocs_single_docs_settings',
4225 'settings' => 'betterdocs_doc_single_content_est_reading_padding',
4226 'label' => __( 'Padding', 'betterdocs' ),
4227 'priority' => 155,
4228 'input_attrs' => [
4229 'id' => 'betterdocs_doc_single_content_est_reading_padding',
4230 'class' => 'betterdocs-dimension'
4231 ]
4232 ]
4233 )
4234 );
4235
4236 $this->customizer->add_setting(
4237 'betterdocs_doc_single_content_est_reading_padding_top',
4238 [
4239 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_top'],
4240 'capability' => 'edit_theme_options',
4241 'transport' => 'postMessage',
4242 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4243 ]
4244 );
4245
4246 $this->customizer->add_control(
4247 new DimensionControl(
4248 $this->customizer,
4249 'betterdocs_doc_single_content_est_reading_padding_top',
4250 [
4251 'type' => 'betterdocs-dimension',
4252 'section' => 'betterdocs_single_docs_settings',
4253 'settings' => 'betterdocs_doc_single_content_est_reading_padding_top',
4254 'label' => __( 'Top', 'betterdocs' ),
4255 'priority' => 155,
4256 'input_attrs' => [
4257 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
4258 ]
4259 ]
4260 )
4261 );
4262
4263 $this->customizer->add_setting(
4264 'betterdocs_doc_single_content_est_reading_padding_right',
4265 [
4266 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_right'],
4267 'capability' => 'edit_theme_options',
4268 'transport' => 'postMessage',
4269 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4270
4271 ]
4272 );
4273
4274 $this->customizer->add_control(
4275 new DimensionControl(
4276 $this->customizer,
4277 'betterdocs_doc_single_content_est_reading_padding_right',
4278 [
4279 'type' => 'betterdocs-dimension',
4280 'section' => 'betterdocs_single_docs_settings',
4281 'settings' => 'betterdocs_doc_single_content_est_reading_padding_right',
4282 'label' => __( 'Right', 'betterdocs' ),
4283 'priority' => 155,
4284 'input_attrs' => [
4285 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
4286 ]
4287 ]
4288 )
4289 );
4290
4291 $this->customizer->add_setting(
4292 'betterdocs_doc_single_content_est_reading_padding_bottom',
4293 [
4294 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_bottom'],
4295 'capability' => 'edit_theme_options',
4296 'transport' => 'postMessage',
4297 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4298
4299 ]
4300 );
4301
4302 $this->customizer->add_control(
4303 new DimensionControl(
4304 $this->customizer,
4305 'betterdocs_doc_single_content_est_reading_padding_bottom',
4306 [
4307 'type' => 'betterdocs-dimension',
4308 'section' => 'betterdocs_single_docs_settings',
4309 'settings' => 'betterdocs_doc_single_content_est_reading_padding_bottom',
4310 'label' => __( 'Bottom', 'betterdocs' ),
4311 'priority' => 155,
4312 'input_attrs' => [
4313 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
4314 ]
4315 ]
4316 )
4317 );
4318
4319 $this->customizer->add_setting(
4320 'betterdocs_doc_single_content_est_reading_padding_left',
4321 [
4322 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_left'],
4323 'capability' => 'edit_theme_options',
4324 'transport' => 'postMessage',
4325 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4326
4327 ]
4328 );
4329
4330 $this->customizer->add_control(
4331 new DimensionControl(
4332 $this->customizer,
4333 'betterdocs_doc_single_content_est_reading_padding_left',
4334 [
4335 'type' => 'betterdocs-dimension',
4336 'section' => 'betterdocs_single_docs_settings',
4337 'settings' => 'betterdocs_doc_single_content_est_reading_padding_left',
4338 'label' => __( 'Left', 'betterdocs' ),
4339 'priority' => 155,
4340 'input_attrs' => [
4341 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
4342 ]
4343 ]
4344 )
4345 );
4346 }
4347
4348 /**
4349 * AI Actions split button.
4350 *
4351 * Mirrors the style controls the Gutenberg block and the Elementor widget
4352 * already expose (see Editors/Elementor/Widget/ReadingTime.php:377-471), so the
4353 * three surfaces stay in step. Declared physically after the reading-time group
4354 * and sharing its priority of 155: WP_Customize_Manager::prepare_controls()
4355 * sorts by priority then instance_number, and instance_number follows
4356 * registration order, which Section::register() takes from get_class_methods()
4357 * — i.e. source order. There is no free integer between 155 and the 156 "Entry
4358 * Content" separator, and this is the same mechanism that already keeps the
4359 * Author group above Estimated Reading Time.
4360 */
4361 public function doc_ai_actions_section() {
4362 $this->customizer->add_setting(
4363 'betterdocs_doc_ai_actions_section',
4364 [
4365 'default' => $this->defaults['betterdocs_doc_ai_actions_section'],
4366 'sanitize_callback' => 'esc_html'
4367 ]
4368 );
4369
4370 $this->customizer->add_control(
4371 new SeparatorControl(
4372 $this->customizer,
4373 'betterdocs_doc_ai_actions_section',
4374 [
4375 'label' => __( 'AI Actions', 'betterdocs' ),
4376 'priority' => 155,
4377 'settings' => 'betterdocs_doc_ai_actions_section',
4378 'section' => 'betterdocs_single_docs_settings'
4379 ]
4380 )
4381 );
4382 }
4383
4384 public function betterdocs_doc_single_content_ai_actions_bg_color() {
4385 $this->customizer->add_setting(
4386 'betterdocs_doc_single_content_ai_actions_bg_color',
4387 [
4388 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_bg_color'],
4389 'capability' => 'edit_theme_options',
4390 'transport' => 'postMessage',
4391 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4392 ]
4393 );
4394
4395 $this->customizer->add_control(
4396 new AlphaColorControl(
4397 $this->customizer,
4398 'betterdocs_doc_single_content_ai_actions_bg_color',
4399 [
4400 'label' => __( 'Background Color', 'betterdocs' ),
4401 'priority' => 155,
4402 'section' => 'betterdocs_single_docs_settings',
4403 'settings' => 'betterdocs_doc_single_content_ai_actions_bg_color'
4404 ]
4405 )
4406 );
4407 }
4408
4409 public function betterdocs_doc_single_content_ai_actions_color() {
4410 $this->customizer->add_setting(
4411 'betterdocs_doc_single_content_ai_actions_color',
4412 [
4413 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_color'],
4414 'capability' => 'edit_theme_options',
4415 'transport' => 'postMessage',
4416 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4417 ]
4418 );
4419
4420 $this->customizer->add_control(
4421 new AlphaColorControl(
4422 $this->customizer,
4423 'betterdocs_doc_single_content_ai_actions_color',
4424 [
4425 'label' => __( 'Font Color', 'betterdocs' ),
4426 'priority' => 155,
4427 'section' => 'betterdocs_single_docs_settings',
4428 'settings' => 'betterdocs_doc_single_content_ai_actions_color'
4429 ]
4430 )
4431 );
4432 }
4433
4434 public function betterdocs_doc_single_content_ai_actions_font_size() {
4435 $this->customizer->add_setting(
4436 'betterdocs_doc_single_content_ai_actions_font_size',
4437 [
4438 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_font_size'],
4439 'capability' => 'edit_theme_options',
4440 'transport' => 'postMessage',
4441 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4442 ]
4443 );
4444
4445 $this->customizer->add_control(
4446 new RangeValueControl(
4447 $this->customizer,
4448 'betterdocs_doc_single_content_ai_actions_font_size',
4449 [
4450 'type' => 'betterdocs-range-value',
4451 'section' => 'betterdocs_single_docs_settings',
4452 'settings' => 'betterdocs_doc_single_content_ai_actions_font_size',
4453 'label' => __( 'Font Size', 'betterdocs' ),
4454 'priority' => 155,
4455 'input_attrs' => [
4456 'min' => 0,
4457 'max' => 40,
4458 'step' => 1,
4459 'suffix' => 'px',
4460 // The setting defaults to '' so nothing is emitted until the
4461 // user opts in, but '' is not representable in an
4462 // <input type="range"> — the browser coerces it to the
4463 // min/max midpoint. This is the value ai-actions.scss actually
4464 // paints, so the thumb starts on the truth. Read by
4465 // customizer-range-value-control.js; never written to the setting.
4466 'data-unset-val' => 14
4467 ]
4468 ]
4469 )
4470 );
4471 }
4472
4473 public function betterdocs_doc_single_content_ai_actions_font_weight() {
4474 $this->customizer->add_setting(
4475 'betterdocs_doc_single_content_ai_actions_font_weight',
4476 [
4477 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_font_weight'],
4478 'capability' => 'edit_theme_options',
4479 'transport' => 'postMessage',
4480 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
4481 ]
4482 );
4483
4484 $this->customizer->add_control(
4485 new WP_Customize_Control(
4486 $this->customizer,
4487 'betterdocs_doc_single_content_ai_actions_font_weight',
4488 [
4489 'label' => __( 'Font Weight', 'betterdocs' ),
4490 'section' => 'betterdocs_single_docs_settings',
4491 'settings' => 'betterdocs_doc_single_content_ai_actions_font_weight',
4492 'type' => 'select',
4493 // The empty option has to be a real choice: Sanitizer::select()
4494 // falls back to the setting default unless the input is a key of
4495 // $control->choices, and '' is the default that emits nothing.
4496 'choices' => [
4497 '' => __( 'Default', 'betterdocs' ),
4498 'normal' => 'Normal',
4499 '100' => '100',
4500 '200' => '200',
4501 '300' => '300',
4502 '400' => '400',
4503 '500' => '500',
4504 '600' => '600',
4505 '700' => '700',
4506 '800' => '800',
4507 '900' => '900'
4508 ],
4509 'priority' => 155
4510 ]
4511 )
4512 );
4513 }
4514
4515 public function betterdocs_doc_single_content_ai_actions_icon_size() {
4516 $this->customizer->add_setting(
4517 'betterdocs_doc_single_content_ai_actions_icon_size',
4518 [
4519 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_icon_size'],
4520 'capability' => 'edit_theme_options',
4521 'transport' => 'postMessage',
4522 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4523 ]
4524 );
4525
4526 $this->customizer->add_control(
4527 new RangeValueControl(
4528 $this->customizer,
4529 'betterdocs_doc_single_content_ai_actions_icon_size',
4530 [
4531 'type' => 'betterdocs-range-value',
4532 'section' => 'betterdocs_single_docs_settings',
4533 'settings' => 'betterdocs_doc_single_content_ai_actions_icon_size',
4534 'label' => __( 'Icon Size', 'betterdocs' ),
4535 'priority' => 155,
4536 'input_attrs' => [
4537 'min' => 10,
4538 'max' => 40,
4539 'step' => 1,
4540 'suffix' => 'px',
4541 // Reset target, so it has to be the shipped default.
4542 'data-unset-val' => 14
4543 ]
4544 ]
4545 )
4546 );
4547 }
4548
4549 /**
4550 * Icon colour. Separate from the label colour above: the copy glyph and the
4551 * caret are the only part of the control that can carry a tint without
4552 * turning the label into a link-coloured word, and every icon in the button
4553 * is stroked with `currentColor`, so one `color` declaration does both.
4554 */
4555 public function betterdocs_doc_single_content_ai_actions_icon_color() {
4556 $this->customizer->add_setting(
4557 'betterdocs_doc_single_content_ai_actions_icon_color',
4558 [
4559 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_icon_color'],
4560 'capability' => 'edit_theme_options',
4561 'transport' => 'postMessage',
4562 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4563 ]
4564 );
4565
4566 $this->customizer->add_control(
4567 new AlphaColorControl(
4568 $this->customizer,
4569 'betterdocs_doc_single_content_ai_actions_icon_color',
4570 [
4571 'label' => __( 'Icon Color', 'betterdocs' ),
4572 'priority' => 155,
4573 'section' => 'betterdocs_single_docs_settings',
4574 'settings' => 'betterdocs_doc_single_content_ai_actions_icon_color'
4575 ]
4576 )
4577 );
4578 }
4579
4580 public function betterdocs_doc_single_content_ai_actions_border_color() {
4581 $this->customizer->add_setting(
4582 'betterdocs_doc_single_content_ai_actions_border_color',
4583 [
4584 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_border_color'],
4585 'capability' => 'edit_theme_options',
4586 'transport' => 'postMessage',
4587 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4588 ]
4589 );
4590
4591 $this->customizer->add_control(
4592 new AlphaColorControl(
4593 $this->customizer,
4594 'betterdocs_doc_single_content_ai_actions_border_color',
4595 [
4596 'label' => __( 'Border Color', 'betterdocs' ),
4597 'priority' => 155,
4598 'section' => 'betterdocs_single_docs_settings',
4599 'settings' => 'betterdocs_doc_single_content_ai_actions_border_color'
4600 ]
4601 )
4602 );
4603 }
4604
4605 public function betterdocs_doc_single_content_ai_actions_border_width() {
4606 $this->customizer->add_setting(
4607 'betterdocs_doc_single_content_ai_actions_border_width',
4608 [
4609 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_border_width'],
4610 'capability' => 'edit_theme_options',
4611 'transport' => 'postMessage',
4612 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4613 ]
4614 );
4615
4616 $this->customizer->add_control(
4617 new RangeValueControl(
4618 $this->customizer,
4619 'betterdocs_doc_single_content_ai_actions_border_width',
4620 [
4621 'type' => 'betterdocs-range-value',
4622 'section' => 'betterdocs_single_docs_settings',
4623 'settings' => 'betterdocs_doc_single_content_ai_actions_border_width',
4624 'label' => __( 'Border Width', 'betterdocs' ),
4625 'priority' => 155,
4626 'input_attrs' => [
4627 'min' => 0,
4628 'max' => 10,
4629 'step' => 1,
4630 'suffix' => 'px',
4631 // The button ships borderless, so 0 is both the default and
4632 // what "reset" has to return to.
4633 'data-unset-val' => 0
4634 ]
4635 ]
4636 )
4637 );
4638 }
4639
4640 public function betterdocs_doc_single_content_ai_actions_border_radius() {
4641 $this->customizer->add_setting(
4642 'betterdocs_doc_single_content_ai_actions_border_radius',
4643 [
4644 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_border_radius'],
4645 'capability' => 'edit_theme_options',
4646 'transport' => 'postMessage',
4647 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4648 ]
4649 );
4650
4651 $this->customizer->add_control(
4652 new RangeValueControl(
4653 $this->customizer,
4654 'betterdocs_doc_single_content_ai_actions_border_radius',
4655 [
4656 'type' => 'betterdocs-range-value',
4657 'section' => 'betterdocs_single_docs_settings',
4658 'settings' => 'betterdocs_doc_single_content_ai_actions_border_radius',
4659 'label' => __( 'Border Radius', 'betterdocs' ),
4660 'priority' => 155,
4661 'input_attrs' => [
4662 'min' => 0,
4663 'max' => 100,
4664 'step' => 1,
4665 'suffix' => 'px',
4666 // The shipped corner, shared with the reading-time pill.
4667 'data-unset-val' => 16
4668 ]
4669 ]
4670 )
4671 );
4672 }
4673
4674 public function betterdocs_doc_single_content_ai_actions_padding() {
4675 $this->customizer->add_setting(
4676 'betterdocs_doc_single_content_ai_actions_padding',
4677 [
4678 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_padding'],
4679 'capability' => 'edit_theme_options',
4680 'transport' => 'postMessage',
4681 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4682 ]
4683 );
4684
4685 $this->customizer->add_control(
4686 new TitleControl(
4687 $this->customizer,
4688 'betterdocs_doc_single_content_ai_actions_padding',
4689 [
4690 'type' => 'betterdocs-title',
4691 'section' => 'betterdocs_single_docs_settings',
4692 'settings' => 'betterdocs_doc_single_content_ai_actions_padding',
4693 'label' => __( 'Padding', 'betterdocs' ),
4694 'priority' => 155,
4695 'input_attrs' => [
4696 'id' => 'betterdocs_doc_single_content_ai_actions_padding',
4697 'class' => 'betterdocs-dimension'
4698 ]
4699 ]
4700 )
4701 );
4702
4703 $this->customizer->add_setting(
4704 'betterdocs_doc_single_content_ai_actions_padding_top',
4705 [
4706 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_padding_top'],
4707 'capability' => 'edit_theme_options',
4708 'transport' => 'postMessage',
4709 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4710 ]
4711 );
4712
4713 $this->customizer->add_control(
4714 new DimensionControl(
4715 $this->customizer,
4716 'betterdocs_doc_single_content_ai_actions_padding_top',
4717 [
4718 'type' => 'betterdocs-dimension',
4719 'section' => 'betterdocs_single_docs_settings',
4720 'settings' => 'betterdocs_doc_single_content_ai_actions_padding_top',
4721 'label' => __( 'Top', 'betterdocs' ),
4722 'priority' => 155,
4723 'input_attrs' => [
4724 'class' => 'betterdocs_doc_single_content_ai_actions_padding betterdocs-dimension'
4725 ]
4726 ]
4727 )
4728 );
4729
4730 $this->customizer->add_setting(
4731 'betterdocs_doc_single_content_ai_actions_padding_right',
4732 [
4733 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_padding_right'],
4734 'capability' => 'edit_theme_options',
4735 'transport' => 'postMessage',
4736 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4737 ]
4738 );
4739
4740 $this->customizer->add_control(
4741 new DimensionControl(
4742 $this->customizer,
4743 'betterdocs_doc_single_content_ai_actions_padding_right',
4744 [
4745 'type' => 'betterdocs-dimension',
4746 'section' => 'betterdocs_single_docs_settings',
4747 'settings' => 'betterdocs_doc_single_content_ai_actions_padding_right',
4748 'label' => __( 'Right', 'betterdocs' ),
4749 'priority' => 155,
4750 'input_attrs' => [
4751 'class' => 'betterdocs_doc_single_content_ai_actions_padding betterdocs-dimension'
4752 ]
4753 ]
4754 )
4755 );
4756
4757 $this->customizer->add_setting(
4758 'betterdocs_doc_single_content_ai_actions_padding_bottom',
4759 [
4760 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_padding_bottom'],
4761 'capability' => 'edit_theme_options',
4762 'transport' => 'postMessage',
4763 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4764 ]
4765 );
4766
4767 $this->customizer->add_control(
4768 new DimensionControl(
4769 $this->customizer,
4770 'betterdocs_doc_single_content_ai_actions_padding_bottom',
4771 [
4772 'type' => 'betterdocs-dimension',
4773 'section' => 'betterdocs_single_docs_settings',
4774 'settings' => 'betterdocs_doc_single_content_ai_actions_padding_bottom',
4775 'label' => __( 'Bottom', 'betterdocs' ),
4776 'priority' => 155,
4777 'input_attrs' => [
4778 'class' => 'betterdocs_doc_single_content_ai_actions_padding betterdocs-dimension'
4779 ]
4780 ]
4781 )
4782 );
4783
4784 $this->customizer->add_setting(
4785 'betterdocs_doc_single_content_ai_actions_padding_left',
4786 [
4787 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_padding_left'],
4788 'capability' => 'edit_theme_options',
4789 'transport' => 'postMessage',
4790 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4791 ]
4792 );
4793
4794 $this->customizer->add_control(
4795 new DimensionControl(
4796 $this->customizer,
4797 'betterdocs_doc_single_content_ai_actions_padding_left',
4798 [
4799 'type' => 'betterdocs-dimension',
4800 'section' => 'betterdocs_single_docs_settings',
4801 'settings' => 'betterdocs_doc_single_content_ai_actions_padding_left',
4802 'label' => __( 'Left', 'betterdocs' ),
4803 'priority' => 155,
4804 'input_attrs' => [
4805 'class' => 'betterdocs_doc_single_content_ai_actions_padding betterdocs-dimension'
4806 ]
4807 ]
4808 )
4809 );
4810 }
4811
4812
4813 /**
4814 * Listen — the pill that morphs into an audio player.
4815 *
4816 * Mirrors the AI Actions group directly above, control for control, plus one
4817 * of its own: Accent Color, for the player's chrome. Declared physically after
4818 * that group and sharing its priority of 155, which is how
4819 * WP_Customize_Manager::prepare_controls() is made to order them —
4820 * `instance_number` follows registration order, which Section::register() takes
4821 * from get_class_methods(), i.e. source order. There is no free integer between
4822 * 155 and the 156 "Entry Content" separator, and this is the same mechanism that
4823 * already keeps the Author group above Estimated Reading Time.
4824 */
4825 public function doc_listen_section() {
4826 $this->customizer->add_setting(
4827 'betterdocs_doc_listen_section',
4828 [
4829 'default' => $this->defaults['betterdocs_doc_listen_section'],
4830 'sanitize_callback' => 'esc_html'
4831 ]
4832 );
4833
4834 $this->customizer->add_control(
4835 new SeparatorControl(
4836 $this->customizer,
4837 'betterdocs_doc_listen_section',
4838 [
4839 'label' => __( 'Listen', 'betterdocs' ),
4840 'priority' => 155,
4841 'settings' => 'betterdocs_doc_listen_section',
4842 'section' => 'betterdocs_single_docs_settings'
4843 ]
4844 )
4845 );
4846 }
4847
4848 public function betterdocs_doc_single_content_listen_bg_color() {
4849 $this->customizer->add_setting(
4850 'betterdocs_doc_single_content_listen_bg_color',
4851 [
4852 'default' => $this->defaults['betterdocs_doc_single_content_listen_bg_color'],
4853 'capability' => 'edit_theme_options',
4854 'transport' => 'postMessage',
4855 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4856 ]
4857 );
4858
4859 $this->customizer->add_control(
4860 new AlphaColorControl(
4861 $this->customizer,
4862 'betterdocs_doc_single_content_listen_bg_color',
4863 [
4864 'label' => __( 'Background Color', 'betterdocs' ),
4865 'priority' => 155,
4866 'section' => 'betterdocs_single_docs_settings',
4867 'settings' => 'betterdocs_doc_single_content_listen_bg_color'
4868 ]
4869 )
4870 );
4871 }
4872
4873 public function betterdocs_doc_single_content_listen_color() {
4874 $this->customizer->add_setting(
4875 'betterdocs_doc_single_content_listen_color',
4876 [
4877 'default' => $this->defaults['betterdocs_doc_single_content_listen_color'],
4878 'capability' => 'edit_theme_options',
4879 'transport' => 'postMessage',
4880 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4881 ]
4882 );
4883
4884 $this->customizer->add_control(
4885 new AlphaColorControl(
4886 $this->customizer,
4887 'betterdocs_doc_single_content_listen_color',
4888 [
4889 'label' => __( 'Font Color', 'betterdocs' ),
4890 'priority' => 155,
4891 'section' => 'betterdocs_single_docs_settings',
4892 'settings' => 'betterdocs_doc_single_content_listen_color'
4893 ]
4894 )
4895 );
4896 }
4897
4898 /**
4899 * The player's chrome: the play button's fill, the progress bar's fill and the
4900 * scrubber's ring.
4901 *
4902 * One control for all three because listen.scss publishes them as a single
4903 * custom property, `--bd-listen-accent`, on `.betterdocs-listen-player`. Three
4904 * separate controls would be three chances for a site to end up with a play
4905 * button that does not match its own progress bar.
4906 */
4907 public function betterdocs_doc_single_content_listen_accent_color() {
4908 $this->customizer->add_setting(
4909 'betterdocs_doc_single_content_listen_accent_color',
4910 [
4911 'default' => $this->defaults['betterdocs_doc_single_content_listen_accent_color'],
4912 'capability' => 'edit_theme_options',
4913 'transport' => 'postMessage',
4914 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4915 ]
4916 );
4917
4918 $this->customizer->add_control(
4919 new AlphaColorControl(
4920 $this->customizer,
4921 'betterdocs_doc_single_content_listen_accent_color',
4922 [
4923 'label' => __( 'Player Accent Color', 'betterdocs' ),
4924 'description' => __( 'Used for the play button, the progress bar and its handle.', 'betterdocs' ),
4925 'priority' => 155,
4926 'section' => 'betterdocs_single_docs_settings',
4927 'settings' => 'betterdocs_doc_single_content_listen_accent_color'
4928 ]
4929 )
4930 );
4931 }
4932
4933 public function betterdocs_doc_single_content_listen_font_size() {
4934 $this->customizer->add_setting(
4935 'betterdocs_doc_single_content_listen_font_size',
4936 [
4937 'default' => $this->defaults['betterdocs_doc_single_content_listen_font_size'],
4938 'capability' => 'edit_theme_options',
4939 'transport' => 'postMessage',
4940 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4941 ]
4942 );
4943
4944 $this->customizer->add_control(
4945 new RangeValueControl(
4946 $this->customizer,
4947 'betterdocs_doc_single_content_listen_font_size',
4948 [
4949 'type' => 'betterdocs-range-value',
4950 'section' => 'betterdocs_single_docs_settings',
4951 'settings' => 'betterdocs_doc_single_content_listen_font_size',
4952 'label' => __( 'Font Size', 'betterdocs' ),
4953 'priority' => 155,
4954 'input_attrs' => [
4955 'min' => 0,
4956 'max' => 40,
4957 'step' => 1,
4958 'suffix' => 'px',
4959 // Reset target, so it has to be the value listen.scss paints.
4960 // The player's own readout is sized in `em`, so this scales
4961 // that with the label rather than leaving it behind.
4962 'data-unset-val' => 14
4963 ]
4964 ]
4965 )
4966 );
4967 }
4968
4969 public function betterdocs_doc_single_content_listen_font_weight() {
4970 $this->customizer->add_setting(
4971 'betterdocs_doc_single_content_listen_font_weight',
4972 [
4973 'default' => $this->defaults['betterdocs_doc_single_content_listen_font_weight'],
4974 'capability' => 'edit_theme_options',
4975 'transport' => 'postMessage',
4976 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
4977 ]
4978 );
4979
4980 $this->customizer->add_control(
4981 new WP_Customize_Control(
4982 $this->customizer,
4983 'betterdocs_doc_single_content_listen_font_weight',
4984 [
4985 'label' => __( 'Font Weight', 'betterdocs' ),
4986 'section' => 'betterdocs_single_docs_settings',
4987 'settings' => 'betterdocs_doc_single_content_listen_font_weight',
4988 'type' => 'select',
4989 // The empty option has to be a real choice: Sanitizer::select()
4990 // falls back to the setting default unless the input is a key of
4991 // $control->choices, and '' is the default that emits nothing.
4992 'choices' => [
4993 '' => __( 'Default', 'betterdocs' ),
4994 'normal' => 'Normal',
4995 '100' => '100',
4996 '200' => '200',
4997 '300' => '300',
4998 '400' => '400',
4999 '500' => '500',
5000 '600' => '600',
5001 '700' => '700',
5002 '800' => '800',
5003 '900' => '900'
5004 ],
5005 'priority' => 155
5006 ]
5007 )
5008 );
5009 }
5010
5011 public function betterdocs_doc_single_content_listen_icon_size() {
5012 $this->customizer->add_setting(
5013 'betterdocs_doc_single_content_listen_icon_size',
5014 [
5015 'default' => $this->defaults['betterdocs_doc_single_content_listen_icon_size'],
5016 'capability' => 'edit_theme_options',
5017 'transport' => 'postMessage',
5018 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5019 ]
5020 );
5021
5022 $this->customizer->add_control(
5023 new RangeValueControl(
5024 $this->customizer,
5025 'betterdocs_doc_single_content_listen_icon_size',
5026 [
5027 'type' => 'betterdocs-range-value',
5028 'section' => 'betterdocs_single_docs_settings',
5029 'settings' => 'betterdocs_doc_single_content_listen_icon_size',
5030 'label' => __( 'Icon Size', 'betterdocs' ),
5031 'priority' => 155,
5032 'input_attrs' => [
5033 'min' => 10,
5034 'max' => 40,
5035 'step' => 1,
5036 'suffix' => 'px',
5037 // The headset glyph on the collapsed pill only. The player's
5038 // own glyphs are 9px and 11px by design and stay that way —
5039 // they have to fit inside 20px circles.
5040 'data-unset-val' => 14
5041 ]
5042 ]
5043 )
5044 );
5045 }
5046
5047 public function betterdocs_doc_single_content_listen_icon_color() {
5048 $this->customizer->add_setting(
5049 'betterdocs_doc_single_content_listen_icon_color',
5050 [
5051 'default' => $this->defaults['betterdocs_doc_single_content_listen_icon_color'],
5052 'capability' => 'edit_theme_options',
5053 'transport' => 'postMessage',
5054 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5055 ]
5056 );
5057
5058 $this->customizer->add_control(
5059 new AlphaColorControl(
5060 $this->customizer,
5061 'betterdocs_doc_single_content_listen_icon_color',
5062 [
5063 'label' => __( 'Icon Color', 'betterdocs' ),
5064 'priority' => 155,
5065 'section' => 'betterdocs_single_docs_settings',
5066 'settings' => 'betterdocs_doc_single_content_listen_icon_color'
5067 ]
5068 )
5069 );
5070 }
5071
5072 public function betterdocs_doc_single_content_listen_border_color() {
5073 $this->customizer->add_setting(
5074 'betterdocs_doc_single_content_listen_border_color',
5075 [
5076 'default' => $this->defaults['betterdocs_doc_single_content_listen_border_color'],
5077 'capability' => 'edit_theme_options',
5078 'transport' => 'postMessage',
5079 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5080 ]
5081 );
5082
5083 $this->customizer->add_control(
5084 new AlphaColorControl(
5085 $this->customizer,
5086 'betterdocs_doc_single_content_listen_border_color',
5087 [
5088 'label' => __( 'Border Color', 'betterdocs' ),
5089 'priority' => 155,
5090 'section' => 'betterdocs_single_docs_settings',
5091 'settings' => 'betterdocs_doc_single_content_listen_border_color'
5092 ]
5093 )
5094 );
5095 }
5096
5097 public function betterdocs_doc_single_content_listen_border_width() {
5098 $this->customizer->add_setting(
5099 'betterdocs_doc_single_content_listen_border_width',
5100 [
5101 'default' => $this->defaults['betterdocs_doc_single_content_listen_border_width'],
5102 'capability' => 'edit_theme_options',
5103 'transport' => 'postMessage',
5104 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5105 ]
5106 );
5107
5108 $this->customizer->add_control(
5109 new RangeValueControl(
5110 $this->customizer,
5111 'betterdocs_doc_single_content_listen_border_width',
5112 [
5113 'type' => 'betterdocs-range-value',
5114 'section' => 'betterdocs_single_docs_settings',
5115 'settings' => 'betterdocs_doc_single_content_listen_border_width',
5116 'label' => __( 'Border Width', 'betterdocs' ),
5117 'priority' => 155,
5118 'input_attrs' => [
5119 'min' => 0,
5120 'max' => 10,
5121 'step' => 1,
5122 'suffix' => 'px',
5123 'data-unset-val' => 0
5124 ]
5125 ]
5126 )
5127 );
5128 }
5129
5130 public function betterdocs_doc_single_content_listen_border_radius() {
5131 $this->customizer->add_setting(
5132 'betterdocs_doc_single_content_listen_border_radius',
5133 [
5134 'default' => $this->defaults['betterdocs_doc_single_content_listen_border_radius'],
5135 'capability' => 'edit_theme_options',
5136 'transport' => 'postMessage',
5137 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5138 ]
5139 );
5140
5141 $this->customizer->add_control(
5142 new RangeValueControl(
5143 $this->customizer,
5144 'betterdocs_doc_single_content_listen_border_radius',
5145 [
5146 'type' => 'betterdocs-range-value',
5147 'section' => 'betterdocs_single_docs_settings',
5148 'settings' => 'betterdocs_doc_single_content_listen_border_radius',
5149 'label' => __( 'Border Radius', 'betterdocs' ),
5150 'priority' => 155,
5151 'input_attrs' => [
5152 'min' => 0,
5153 'max' => 100,
5154 'step' => 1,
5155 'suffix' => 'px',
5156 'data-unset-val' => 16
5157 ]
5158 ]
5159 )
5160 );
5161 }
5162
5163 public function betterdocs_doc_single_content_listen_padding() {
5164 $this->customizer->add_setting(
5165 'betterdocs_doc_single_content_listen_padding',
5166 [
5167 'default' => $this->defaults['betterdocs_doc_single_content_listen_padding'],
5168 'capability' => 'edit_theme_options',
5169 'transport' => 'postMessage',
5170 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5171 ]
5172 );
5173
5174 $this->customizer->add_control(
5175 new TitleControl(
5176 $this->customizer,
5177 'betterdocs_doc_single_content_listen_padding',
5178 [
5179 'type' => 'betterdocs-title',
5180 'section' => 'betterdocs_single_docs_settings',
5181 'settings' => 'betterdocs_doc_single_content_listen_padding',
5182 'label' => __( 'Padding', 'betterdocs' ),
5183 'priority' => 155,
5184 'input_attrs' => [
5185 'id' => 'betterdocs_doc_single_content_listen_padding',
5186 'class' => 'betterdocs-dimension'
5187 ]
5188 ]
5189 )
5190 );
5191
5192 $this->customizer->add_setting(
5193 'betterdocs_doc_single_content_listen_padding_top',
5194 [
5195 'default' => $this->defaults['betterdocs_doc_single_content_listen_padding_top'],
5196 'capability' => 'edit_theme_options',
5197 'transport' => 'postMessage',
5198 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5199 ]
5200 );
5201
5202 $this->customizer->add_control(
5203 new DimensionControl(
5204 $this->customizer,
5205 'betterdocs_doc_single_content_listen_padding_top',
5206 [
5207 'type' => 'betterdocs-dimension',
5208 'section' => 'betterdocs_single_docs_settings',
5209 'settings' => 'betterdocs_doc_single_content_listen_padding_top',
5210 'label' => __( 'Top', 'betterdocs' ),
5211 'priority' => 155,
5212 'input_attrs' => [
5213 'class' => 'betterdocs_doc_single_content_listen_padding betterdocs-dimension'
5214 ]
5215 ]
5216 )
5217 );
5218
5219 $this->customizer->add_setting(
5220 'betterdocs_doc_single_content_listen_padding_right',
5221 [
5222 'default' => $this->defaults['betterdocs_doc_single_content_listen_padding_right'],
5223 'capability' => 'edit_theme_options',
5224 'transport' => 'postMessage',
5225 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5226 ]
5227 );
5228
5229 $this->customizer->add_control(
5230 new DimensionControl(
5231 $this->customizer,
5232 'betterdocs_doc_single_content_listen_padding_right',
5233 [
5234 'type' => 'betterdocs-dimension',
5235 'section' => 'betterdocs_single_docs_settings',
5236 'settings' => 'betterdocs_doc_single_content_listen_padding_right',
5237 'label' => __( 'Right', 'betterdocs' ),
5238 'priority' => 155,
5239 'input_attrs' => [
5240 'class' => 'betterdocs_doc_single_content_listen_padding betterdocs-dimension'
5241 ]
5242 ]
5243 )
5244 );
5245
5246 $this->customizer->add_setting(
5247 'betterdocs_doc_single_content_listen_padding_bottom',
5248 [
5249 'default' => $this->defaults['betterdocs_doc_single_content_listen_padding_bottom'],
5250 'capability' => 'edit_theme_options',
5251 'transport' => 'postMessage',
5252 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5253 ]
5254 );
5255
5256 $this->customizer->add_control(
5257 new DimensionControl(
5258 $this->customizer,
5259 'betterdocs_doc_single_content_listen_padding_bottom',
5260 [
5261 'type' => 'betterdocs-dimension',
5262 'section' => 'betterdocs_single_docs_settings',
5263 'settings' => 'betterdocs_doc_single_content_listen_padding_bottom',
5264 'label' => __( 'Bottom', 'betterdocs' ),
5265 'priority' => 155,
5266 'input_attrs' => [
5267 'class' => 'betterdocs_doc_single_content_listen_padding betterdocs-dimension'
5268 ]
5269 ]
5270 )
5271 );
5272
5273 $this->customizer->add_setting(
5274 'betterdocs_doc_single_content_listen_padding_left',
5275 [
5276 'default' => $this->defaults['betterdocs_doc_single_content_listen_padding_left'],
5277 'capability' => 'edit_theme_options',
5278 'transport' => 'postMessage',
5279 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5280 ]
5281 );
5282
5283 $this->customizer->add_control(
5284 new DimensionControl(
5285 $this->customizer,
5286 'betterdocs_doc_single_content_listen_padding_left',
5287 [
5288 'type' => 'betterdocs-dimension',
5289 'section' => 'betterdocs_single_docs_settings',
5290 'settings' => 'betterdocs_doc_single_content_listen_padding_left',
5291 'label' => __( 'Left', 'betterdocs' ),
5292 'priority' => 155,
5293 'input_attrs' => [
5294 'class' => 'betterdocs_doc_single_content_listen_padding betterdocs-dimension'
5295 ]
5296 ]
5297 )
5298 );
5299 }
5300
5301 public function doc_single_entry_content() {
5302 $this->customizer->add_setting(
5303 'betterdocs_doc_single_entry_content',
5304 [
5305 'default' => $this->defaults['betterdocs_doc_single_entry_content'],
5306 'sanitize_callback' => 'esc_html'
5307 ]
5308 );
5309
5310 $this->customizer->add_control(
5311 new SeparatorControl(
5312 $this->customizer,
5313 'betterdocs_doc_single_entry_content',
5314 [
5315 'label' => __( 'Entry Content', 'betterdocs' ),
5316 'priority' => 156,
5317 'settings' => 'betterdocs_doc_single_entry_content',
5318 'section' => 'betterdocs_single_docs_settings'
5319 ]
5320 )
5321 );
5322 }
5323
5324 public function single_content_font_size() {
5325 $this->customizer->add_setting(
5326 'betterdocs_single_content_font_size',
5327 [
5328 'default' => $this->defaults['betterdocs_single_content_font_size'],
5329 'capability' => 'edit_theme_options',
5330 'transport' => 'postMessage',
5331 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5332
5333 ]
5334 );
5335
5336 $this->customizer->add_control(
5337 new RangeValueControl(
5338 $this->customizer,
5339 'betterdocs_single_content_font_size',
5340 [
5341 'type' => 'betterdocs-range-value',
5342 'section' => 'betterdocs_single_docs_settings',
5343 'settings' => 'betterdocs_single_content_font_size',
5344 'label' => __( 'Font Size', 'betterdocs' ),
5345 'priority' => 157,
5346 'input_attrs' => [
5347 'class' => '',
5348 'min' => 0,
5349 'max' => 50,
5350 'step' => 1,
5351 'suffix' => 'px' // optional suffix
5352 ]
5353 ]
5354 )
5355 );
5356 }
5357
5358 public function single_content_font_color() {
5359 $this->customizer->add_setting(
5360 'betterdocs_single_content_font_color',
5361 [
5362 'default' => $this->defaults['betterdocs_single_content_font_color'],
5363 'capability' => 'edit_theme_options',
5364 'transport' => 'postMessage',
5365 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5366 ]
5367 );
5368
5369 $this->customizer->add_control(
5370 new AlphaColorControl(
5371 $this->customizer,
5372 'betterdocs_single_content_font_color',
5373 [
5374 'label' => __( 'Font Color', 'betterdocs' ),
5375 'priority' => 158,
5376 'section' => 'betterdocs_single_docs_settings',
5377 'settings' => 'betterdocs_single_content_font_color'
5378 ]
5379 )
5380 );
5381 }
5382
5383 public function doc_single_entry_content_layout_8_9() {
5384 $this->customizer->add_setting(
5385 'betterdocs_doc_single_entry_content_layout_8_9',
5386 [
5387 'default' => $this->defaults['betterdocs_doc_single_entry_content_layout_8_9'],
5388 'sanitize_callback' => 'esc_html'
5389 ]
5390 );
5391
5392 $this->customizer->add_control(
5393 new SeparatorControl(
5394 $this->customizer,
5395 'betterdocs_doc_single_entry_content_layout_8_9',
5396 [
5397 'label' => __( 'Entry Content', 'betterdocs' ),
5398 'priority' => 156,
5399 'settings' => 'betterdocs_doc_single_entry_content_layout_8_9',
5400 'section' => 'betterdocs_single_docs_settings'
5401 ]
5402 )
5403 );
5404 }
5405
5406 public function single_content_font_size_layout_8_9() {
5407 $this->customizer->add_setting(
5408 'betterdocs_single_content_font_size_layout_8_9',
5409 [
5410 'default' => $this->defaults['betterdocs_single_content_font_size_layout_8_9'],
5411 'capability' => 'edit_theme_options',
5412 'transport' => 'postMessage',
5413 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5414
5415 ]
5416 );
5417
5418 $this->customizer->add_control(
5419 new RangeValueControl(
5420 $this->customizer,
5421 'betterdocs_single_content_font_size_layout_8_9',
5422 [
5423 'type' => 'betterdocs-range-value',
5424 'section' => 'betterdocs_single_docs_settings',
5425 'settings' => 'betterdocs_single_content_font_size_layout_8_9',
5426 'label' => __( 'Font Size', 'betterdocs' ),
5427 'priority' => 157,
5428 'input_attrs' => [
5429 'class' => '',
5430 'min' => 0,
5431 'max' => 50,
5432 'step' => 1,
5433 'suffix' => 'px' // optional suffix
5434 ]
5435 ]
5436 )
5437 );
5438 }
5439
5440 public function single_content_font_color_layout_8_9() {
5441 $this->customizer->add_setting(
5442 'betterdocs_single_content_font_color_layout_8_9',
5443 [
5444 'default' => $this->defaults['betterdocs_single_content_font_color_layout_8_9'],
5445 'capability' => 'edit_theme_options',
5446 'transport' => 'postMessage',
5447 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5448 ]
5449 );
5450
5451 $this->customizer->add_control(
5452 new AlphaColorControl(
5453 $this->customizer,
5454 'betterdocs_single_content_font_color_layout_8_9',
5455 [
5456 'label' => __( 'Font Color', 'betterdocs' ),
5457 'priority' => 158,
5458 'section' => 'betterdocs_single_docs_settings',
5459 'settings' => 'betterdocs_single_content_font_color_layout_8_9'
5460 ]
5461 )
5462 );
5463 }
5464
5465 public function single_content_padding_layout_8_9() {
5466 $this->customizer->add_setting(
5467 'single_content_padding_layout_8_9',
5468 [
5469 'default' => $this->defaults['single_content_padding_layout_8_9'],
5470 'capability' => 'edit_theme_options',
5471 'transport' => 'postMessage',
5472 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5473 ]
5474 );
5475
5476 $this->customizer->add_control(
5477 new TitleControl(
5478 $this->customizer,
5479 'single_content_padding_layout_8_9',
5480 [
5481 'type' => 'betterdocs-title',
5482 'section' => 'betterdocs_single_docs_settings',
5483 'settings' => 'single_content_padding_layout_8_9',
5484 'label' => __( 'Padding', 'betterdocs' ),
5485 'priority' => 158,
5486 'input_attrs' => [
5487 'id' => 'single_content_padding_layout_8_9',
5488 'class' => 'betterdocs-dimension'
5489 ]
5490 ]
5491 )
5492 );
5493
5494 $this->customizer->add_setting(
5495 'single_content_padding_top_layout_8_9',
5496 [
5497 'default' => $this->defaults['single_content_padding_top_layout_8_9'],
5498 'capability' => 'edit_theme_options',
5499 'transport' => 'postMessage',
5500 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5501 ]
5502 );
5503
5504 $this->customizer->add_control(
5505 new DimensionControl(
5506 $this->customizer,
5507 'single_content_padding_top_layout_8_9',
5508 [
5509 'type' => 'betterdocs-dimension',
5510 'section' => 'betterdocs_single_docs_settings',
5511 'settings' => 'single_content_padding_top_layout_8_9',
5512 'label' => __( 'Top', 'betterdocs' ),
5513 'priority' => 158,
5514 'input_attrs' => [
5515 'class' => 'single_content_padding_layout_8_9 betterdocs-dimension'
5516 ]
5517 ]
5518 )
5519 );
5520
5521 $this->customizer->add_setting(
5522 'single_content_padding_right_layout_8_9',
5523 [
5524 'default' => $this->defaults['single_content_padding_right_layout_8_9'],
5525 'capability' => 'edit_theme_options',
5526 'transport' => 'postMessage',
5527 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5528 ]
5529 );
5530
5531 $this->customizer->add_control(
5532 new DimensionControl(
5533 $this->customizer,
5534 'single_content_padding_right_layout_8_9',
5535 [
5536 'type' => 'betterdocs-dimension',
5537 'section' => 'betterdocs_single_docs_settings',
5538 'settings' => 'single_content_padding_right_layout_8_9',
5539 'label' => __( 'Right', 'betterdocs' ),
5540 'priority' => 158,
5541 'input_attrs' => [
5542 'class' => 'single_content_padding_layout_8_9 betterdocs-dimension'
5543 ]
5544 ]
5545 )
5546 );
5547
5548 $this->customizer->add_setting(
5549 'single_content_padding_bottom_layout_8_9',
5550 [
5551 'default' => $this->defaults['single_content_padding_bottom_layout_8_9'],
5552 'capability' => 'edit_theme_options',
5553 'transport' => 'postMessage',
5554 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5555 ]
5556 );
5557
5558 $this->customizer->add_control(
5559 new DimensionControl(
5560 $this->customizer,
5561 'single_content_padding_bottom_layout_8_9',
5562 [
5563 'type' => 'betterdocs-dimension',
5564 'section' => 'betterdocs_single_docs_settings',
5565 'settings' => 'single_content_padding_bottom_layout_8_9',
5566 'label' => __( 'Bottom', 'betterdocs' ),
5567 'priority' => 158,
5568 'input_attrs' => [
5569 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
5570 ]
5571 ]
5572 )
5573 );
5574
5575 $this->customizer->add_setting(
5576 'single_content_padding_left_layout_8_9',
5577 [
5578 'default' => $this->defaults['single_content_padding_left_layout_8_9'],
5579 'capability' => 'edit_theme_options',
5580 'transport' => 'postMessage',
5581 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5582 ]
5583 );
5584
5585 $this->customizer->add_control(
5586 new DimensionControl(
5587 $this->customizer,
5588 'single_content_padding_left_layout_8_9',
5589 [
5590 'type' => 'betterdocs-dimension',
5591 'section' => 'betterdocs_single_docs_settings',
5592 'settings' => 'single_content_padding_left_layout_8_9',
5593 'label' => __( 'Left', 'betterdocs' ),
5594 'priority' => 158,
5595 'input_attrs' => [
5596 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
5597 ]
5598 ]
5599 )
5600 );
5601 }
5602
5603 public function single_content_margin_layout_8_9() {
5604 $this->customizer->add_setting(
5605 'single_content_margin_layout_8_9',
5606 [
5607 'default' => $this->defaults['single_content_margin_layout_8_9'],
5608 'capability' => 'edit_theme_options',
5609 'transport' => 'postMessage',
5610 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5611 ]
5612 );
5613
5614 $this->customizer->add_control(
5615 new TitleControl(
5616 $this->customizer,
5617 'single_content_margin_layout_8_9',
5618 [
5619 'type' => 'betterdocs-title',
5620 'section' => 'betterdocs_single_docs_settings',
5621 'settings' => 'single_content_margin_layout_8_9',
5622 'label' => __( 'Margin', 'betterdocs' ),
5623 'priority' => 158,
5624 'input_attrs' => [
5625 'id' => 'single_content_margin_layout_8_9',
5626 'class' => 'betterdocs-dimension'
5627 ]
5628 ]
5629 )
5630 );
5631
5632 $this->customizer->add_setting(
5633 'single_content_margin_top_layout_8_9',
5634 [
5635 'default' => $this->defaults['single_content_margin_top_layout_8_9'],
5636 'capability' => 'edit_theme_options',
5637 'transport' => 'postMessage',
5638 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5639 ]
5640 );
5641
5642 $this->customizer->add_control(
5643 new DimensionControl(
5644 $this->customizer,
5645 'single_content_margin_top_layout_8_9',
5646 [
5647 'type' => 'betterdocs-dimension',
5648 'section' => 'betterdocs_single_docs_settings',
5649 'settings' => 'single_content_margin_top_layout_8_9',
5650 'label' => __( 'Top', 'betterdocs' ),
5651 'priority' => 158,
5652 'input_attrs' => [
5653 'class' => 'single_content_margin_layout_8_9 betterdocs-dimension'
5654 ]
5655 ]
5656 )
5657 );
5658
5659 $this->customizer->add_setting(
5660 'single_content_margin_right_layout_8_9',
5661 [
5662 'default' => $this->defaults['single_content_margin_right_layout_8_9'],
5663 'capability' => 'edit_theme_options',
5664 'transport' => 'postMessage',
5665 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5666 ]
5667 );
5668
5669 $this->customizer->add_control(
5670 new DimensionControl(
5671 $this->customizer,
5672 'single_content_margin_right_layout_8_9',
5673 [
5674 'type' => 'betterdocs-dimension',
5675 'section' => 'betterdocs_single_docs_settings',
5676 'settings' => 'single_content_margin_right_layout_8_9',
5677 'label' => __( 'Right', 'betterdocs' ),
5678 'priority' => 158,
5679 'input_attrs' => [
5680 'class' => 'single_content_margin_layout_8_9 betterdocs-dimension'
5681 ]
5682 ]
5683 )
5684 );
5685
5686 $this->customizer->add_setting(
5687 'single_content_margin_bottom_layout_8_9',
5688 [
5689 'default' => $this->defaults['single_content_margin_bottom_layout_8_9'],
5690 'capability' => 'edit_theme_options',
5691 'transport' => 'postMessage',
5692 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5693 ]
5694 );
5695
5696 $this->customizer->add_control(
5697 new DimensionControl(
5698 $this->customizer,
5699 'single_content_margin_bottom_layout_8_9',
5700 [
5701 'type' => 'betterdocs-dimension',
5702 'section' => 'betterdocs_single_docs_settings',
5703 'settings' => 'single_content_margin_bottom_layout_8_9',
5704 'label' => __( 'Bottom', 'betterdocs' ),
5705 'priority' => 158,
5706 'input_attrs' => [
5707 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
5708 ]
5709 ]
5710 )
5711 );
5712
5713 $this->customizer->add_setting(
5714 'single_content_margin_left_layout_8_9',
5715 [
5716 'default' => $this->defaults['single_content_margin_left_layout_8_9'],
5717 'capability' => 'edit_theme_options',
5718 'transport' => 'postMessage',
5719 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5720 ]
5721 );
5722
5723 $this->customizer->add_control(
5724 new DimensionControl(
5725 $this->customizer,
5726 'single_content_margin_left_layout_8_9',
5727 [
5728 'type' => 'betterdocs-dimension',
5729 'section' => 'betterdocs_single_docs_settings',
5730 'settings' => 'single_content_margin_left_layout_8_9',
5731 'label' => __( 'Left', 'betterdocs' ),
5732 'priority' => 158,
5733 'input_attrs' => [
5734 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
5735 ]
5736 ]
5737 )
5738 );
5739 }
5740
5741 public function social_share_title() {
5742 $this->customizer->add_setting(
5743 'betterdocs_social_share_title',
5744 [
5745 'default' => '',
5746 'sanitize_callback' => 'esc_html'
5747 ]
5748 );
5749
5750 $this->customizer->add_control(
5751 new SeparatorControl(
5752 $this->customizer,
5753 'betterdocs_social_share_title',
5754 [
5755 'label' => __( 'Social Share', 'betterdocs' ),
5756 'priority' => 164,
5757 'settings' => 'betterdocs_social_share_title',
5758 'section' => 'betterdocs_single_docs_settings'
5759 ]
5760 )
5761 );
5762 }
5763
5764 public function social_share_title_tag() {
5765 $this->customizer->add_setting(
5766 'betterdocs_social_share_title_tag',
5767 [
5768 'default' => $this->defaults['betterdocs_social_share_title_tag'],
5769 'capability' => 'edit_theme_options',
5770 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
5771 ]
5772 );
5773
5774 $this->customizer->add_control(
5775 new WP_Customize_Control(
5776 $this->customizer,
5777 'betterdocs_social_share_title_tag',
5778 [
5779 'label' => __( 'Social Share Title Tag', 'betterdocs' ),
5780 'section' => 'betterdocs_single_docs_settings',
5781 'settings' => 'betterdocs_social_share_title_tag',
5782 'type' => 'select',
5783 'choices' => [
5784 'h1' => 'h1',
5785 'h2' => 'h2',
5786 'h3' => 'h3',
5787 'h4' => 'h4',
5788 'h5' => 'h5',
5789 'h6' => 'h6'
5790 ],
5791 'priority' => 165
5792 ]
5793 )
5794 );
5795 }
5796
5797 public function post_social_share() {
5798 $this->customizer->add_setting(
5799 'betterdocs_post_social_share',
5800 [
5801 'default' => $this->defaults['betterdocs_post_social_share'],
5802 'capability' => 'edit_theme_options',
5803 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
5804 ]
5805 );
5806
5807 $this->customizer->add_control(
5808 new ToggleControl(
5809 $this->customizer,
5810 'betterdocs_post_social_share',
5811 [
5812 'label' => __( 'Enable Social Sharing?', 'betterdocs' ),
5813 'priority' => 165,
5814 'section' => 'betterdocs_single_docs_settings',
5815 'settings' => 'betterdocs_post_social_share',
5816 'type' => 'light' // light, ios, flat
5817 ]
5818 )
5819 );
5820 }
5821
5822 public function social_sharing_text() {
5823 $this->customizer->add_setting(
5824 'betterdocs_social_sharing_text',
5825 [
5826 'default' => $this->defaults['betterdocs_social_sharing_text'],
5827 'capability' => 'edit_theme_options',
5828 'sanitize_callback' => 'esc_html'
5829 ]
5830 );
5831
5832 $this->customizer->add_control(
5833 new SelectControl(
5834 $this->customizer,
5835 'betterdocs_social_sharing_text',
5836 [
5837 'label' => __( 'Social Sharing Title', 'betterdocs' ),
5838 'priority' => 166,
5839 'section' => 'betterdocs_single_docs_settings',
5840 'settings' => 'betterdocs_social_sharing_text',
5841 'type' => 'text'
5842 ]
5843 )
5844 );
5845 }
5846
5847 public function post_social_share_text_color() {
5848 $this->customizer->add_setting(
5849 'betterdocs_post_social_share_text_color',
5850 [
5851 'default' => $this->defaults['betterdocs_post_social_share_text_color'],
5852 'capability' => 'edit_theme_options',
5853 'transport' => 'postMessage',
5854 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5855 ]
5856 );
5857
5858 $this->customizer->add_control(
5859 new AlphaColorControl(
5860 $this->customizer,
5861 'betterdocs_post_social_share_text_color',
5862 [
5863 'label' => __( 'Title Text Color', 'betterdocs' ),
5864 'priority' => 167,
5865 'section' => 'betterdocs_single_docs_settings',
5866 'settings' => 'betterdocs_post_social_share_text_color'
5867 ]
5868 )
5869 );
5870 }
5871
5872 public function post_social_share_text_color_layout_8_9() {
5873 $this->customizer->add_setting(
5874 'betterdocs_post_social_share_text_color_color_layout_8_9',
5875 [
5876 'default' => $this->defaults['betterdocs_post_social_share_text_color_color_layout_8_9'],
5877 'capability' => 'edit_theme_options',
5878 'transport' => 'postMessage',
5879 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5880 ]
5881 );
5882
5883 $this->customizer->add_control(
5884 new AlphaColorControl(
5885 $this->customizer,
5886 'betterdocs_post_social_share_text_color_color_layout_8_9',
5887 [
5888 'label' => __( 'Title Text Color', 'betterdocs' ),
5889 'priority' => 167,
5890 'section' => 'betterdocs_single_docs_settings',
5891 'settings' => 'betterdocs_post_social_share_text_color_color_layout_8_9'
5892 ]
5893 )
5894 );
5895 }
5896
5897 public function post_social_share_margin_layout_8() {
5898 $this->customizer->add_setting(
5899 'post_social_share_margin_layout_8',
5900 [
5901 'default' => $this->defaults['post_social_share_margin_layout_8'],
5902 'capability' => 'edit_theme_options',
5903 'transport' => 'postMessage',
5904 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5905 ]
5906 );
5907
5908 $this->customizer->add_control(
5909 new TitleControl(
5910 $this->customizer,
5911 'post_social_share_margin_layout_8',
5912 [
5913 'type' => 'betterdocs-title',
5914 'section' => 'betterdocs_single_docs_settings',
5915 'settings' => 'post_social_share_margin_layout_8',
5916 'label' => __( 'Margin', 'betterdocs' ),
5917 'priority' => 167,
5918 'input_attrs' => [
5919 'id' => 'post_social_share_margin_layout_8',
5920 'class' => 'betterdocs-dimension'
5921 ]
5922 ]
5923 )
5924 );
5925
5926 $this->customizer->add_setting(
5927 'post_social_share_margin_top_layout_8',
5928 [
5929 'default' => $this->defaults['post_social_share_margin_top_layout_8'],
5930 'capability' => 'edit_theme_options',
5931 'transport' => 'postMessage',
5932 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5933 ]
5934 );
5935
5936 $this->customizer->add_control(
5937 new DimensionControl(
5938 $this->customizer,
5939 'post_social_share_margin_top_layout_8',
5940 [
5941 'type' => 'betterdocs-dimension',
5942 'section' => 'betterdocs_single_docs_settings',
5943 'settings' => 'post_social_share_margin_top_layout_8',
5944 'label' => __( 'Top', 'betterdocs' ),
5945 'priority' => 167,
5946 'input_attrs' => [
5947 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
5948 ]
5949 ]
5950 )
5951 );
5952
5953 $this->customizer->add_setting(
5954 'post_social_share_margin_right_layout_8',
5955 [
5956 'default' => $this->defaults['post_social_share_margin_right_layout_8'],
5957 'capability' => 'edit_theme_options',
5958 'transport' => 'postMessage',
5959 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5960 ]
5961 );
5962
5963 $this->customizer->add_control(
5964 new DimensionControl(
5965 $this->customizer,
5966 'post_social_share_margin_right_layout_8',
5967 [
5968 'type' => 'betterdocs-dimension',
5969 'section' => 'betterdocs_single_docs_settings',
5970 'settings' => 'post_social_share_margin_right_layout_8',
5971 'label' => __( 'Right', 'betterdocs' ),
5972 'priority' => 167,
5973 'input_attrs' => [
5974 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
5975 ]
5976 ]
5977 )
5978 );
5979
5980 $this->customizer->add_setting(
5981 'post_social_share_margin_bottom_layout_8',
5982 [
5983 'default' => $this->defaults['post_social_share_margin_bottom_layout_8'],
5984 'capability' => 'edit_theme_options',
5985 'transport' => 'postMessage',
5986 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5987 ]
5988 );
5989
5990 $this->customizer->add_control(
5991 new DimensionControl(
5992 $this->customizer,
5993 'post_social_share_margin_bottom_layout_8',
5994 [
5995 'type' => 'betterdocs-dimension',
5996 'section' => 'betterdocs_single_docs_settings',
5997 'settings' => 'post_social_share_margin_bottom_layout_8',
5998 'label' => __( 'Bottom', 'betterdocs' ),
5999 'priority' => 167,
6000 'input_attrs' => [
6001 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
6002 ]
6003 ]
6004 )
6005 );
6006
6007 $this->customizer->add_setting(
6008 'post_social_share_margin_left_layout_8',
6009 [
6010 'default' => $this->defaults['post_social_share_margin_left_layout_8'],
6011 'capability' => 'edit_theme_options',
6012 'transport' => 'postMessage',
6013 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6014 ]
6015 );
6016
6017 $this->customizer->add_control(
6018 new DimensionControl(
6019 $this->customizer,
6020 'post_social_share_margin_left_layout_8',
6021 [
6022 'type' => 'betterdocs-dimension',
6023 'section' => 'betterdocs_single_docs_settings',
6024 'settings' => 'post_social_share_margin_left_layout_8',
6025 'label' => __( 'Left', 'betterdocs' ),
6026 'priority' => 167,
6027 'input_attrs' => [
6028 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
6029 ]
6030 ]
6031 )
6032 );
6033 }
6034
6035 public function post_social_share_margin_layout_9() {
6036 $this->customizer->add_setting(
6037 'post_social_share_margin_layout_9',
6038 [
6039 'default' => $this->defaults['post_social_share_margin_layout_9'],
6040 'capability' => 'edit_theme_options',
6041 'transport' => 'postMessage',
6042 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6043 ]
6044 );
6045
6046 $this->customizer->add_control(
6047 new TitleControl(
6048 $this->customizer,
6049 'post_social_share_margin_layout_9',
6050 [
6051 'type' => 'betterdocs-title',
6052 'section' => 'betterdocs_single_docs_settings',
6053 'settings' => 'post_social_share_margin_layout_9',
6054 'label' => __( 'Margin', 'betterdocs' ),
6055 'priority' => 167,
6056 'input_attrs' => [
6057 'id' => 'post_social_share_margin_layout_9',
6058 'class' => 'betterdocs-dimension'
6059 ]
6060 ]
6061 )
6062 );
6063
6064 $this->customizer->add_setting(
6065 'post_social_share_margin_top_layout_9',
6066 [
6067 'default' => $this->defaults['post_social_share_margin_top_layout_9'],
6068 'capability' => 'edit_theme_options',
6069 'transport' => 'postMessage',
6070 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6071 ]
6072 );
6073
6074 $this->customizer->add_control(
6075 new DimensionControl(
6076 $this->customizer,
6077 'post_social_share_margin_top_layout_9',
6078 [
6079 'type' => 'betterdocs-dimension',
6080 'section' => 'betterdocs_single_docs_settings',
6081 'settings' => 'post_social_share_margin_top_layout_9',
6082 'label' => __( 'Top', 'betterdocs' ),
6083 'priority' => 167,
6084 'input_attrs' => [
6085 'class' => 'post_social_share_margin_layout_9 betterdocs-dimension'
6086 ]
6087 ]
6088 )
6089 );
6090
6091 $this->customizer->add_setting(
6092 'post_social_share_margin_right_layout_9',
6093 [
6094 'default' => $this->defaults['post_social_share_margin_right_layout_9'],
6095 'capability' => 'edit_theme_options',
6096 'transport' => 'postMessage',
6097 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6098 ]
6099 );
6100
6101 $this->customizer->add_control(
6102 new DimensionControl(
6103 $this->customizer,
6104 'post_social_share_margin_right_layout_9',
6105 [
6106 'type' => 'betterdocs-dimension',
6107 'section' => 'betterdocs_single_docs_settings',
6108 'settings' => 'post_social_share_margin_right_layout_9',
6109 'label' => __( 'Right', 'betterdocs' ),
6110 'priority' => 167,
6111 'input_attrs' => [
6112 'class' => 'post_social_share_margin_layout_9 betterdocs-dimension'
6113 ]
6114 ]
6115 )
6116 );
6117
6118 $this->customizer->add_setting(
6119 'post_social_share_margin_bottom_layout_9',
6120 [
6121 'default' => $this->defaults['post_social_share_margin_bottom_layout_9'],
6122 'capability' => 'edit_theme_options',
6123 'transport' => 'postMessage',
6124 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6125 ]
6126 );
6127
6128 $this->customizer->add_control(
6129 new DimensionControl(
6130 $this->customizer,
6131 'post_social_share_margin_bottom_layout_9',
6132 [
6133 'type' => 'betterdocs-dimension',
6134 'section' => 'betterdocs_single_docs_settings',
6135 'settings' => 'post_social_share_margin_bottom_layout_9',
6136 'label' => __( 'Bottom', 'betterdocs' ),
6137 'priority' => 167,
6138 'input_attrs' => [
6139 'class' => 'post_social_share_margin_layout_9 betterdocs-dimension'
6140 ]
6141 ]
6142 )
6143 );
6144
6145 $this->customizer->add_setting(
6146 'post_social_share_margin_left_layout_9',
6147 [
6148 'default' => $this->defaults['post_social_share_margin_left_layout_9'],
6149 'capability' => 'edit_theme_options',
6150 'transport' => 'postMessage',
6151 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6152 ]
6153 );
6154
6155 $this->customizer->add_control(
6156 new DimensionControl(
6157 $this->customizer,
6158 'post_social_share_margin_left_layout_9',
6159 [
6160 'type' => 'betterdocs-dimension',
6161 'section' => 'betterdocs_single_docs_settings',
6162 'settings' => 'post_social_share_margin_left_layout_9',
6163 'label' => __( 'Left', 'betterdocs' ),
6164 'priority' => 167,
6165 'input_attrs' => [
6166 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
6167 ]
6168 ]
6169 )
6170 );
6171 }
6172
6173
6174 public function post_social_share_padding_layout_8() {
6175 $this->customizer->add_setting(
6176 'post_social_share_padding_layout_8',
6177 [
6178 'default' => $this->defaults['post_social_share_padding_layout_8'],
6179 'capability' => 'edit_theme_options',
6180 'transport' => 'postMessage',
6181 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6182 ]
6183 );
6184
6185 $this->customizer->add_control(
6186 new TitleControl(
6187 $this->customizer,
6188 'post_social_share_padding_layout_8',
6189 [
6190 'type' => 'betterdocs-title',
6191 'section' => 'betterdocs_single_docs_settings',
6192 'settings' => 'post_social_share_padding_layout_8',
6193 'label' => __( 'Padding', 'betterdocs' ),
6194 'priority' => 167,
6195 'input_attrs' => [
6196 'id' => 'post_social_share_padding_layout_8',
6197 'class' => 'betterdocs-dimension'
6198 ]
6199 ]
6200 )
6201 );
6202
6203 $this->customizer->add_setting(
6204 'post_social_share_padding_top_layout_8',
6205 [
6206 'default' => $this->defaults['post_social_share_padding_top_layout_8'],
6207 'capability' => 'edit_theme_options',
6208 'transport' => 'postMessage',
6209 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6210 ]
6211 );
6212
6213 $this->customizer->add_control(
6214 new DimensionControl(
6215 $this->customizer,
6216 'post_social_share_padding_top_layout_8',
6217 [
6218 'type' => 'betterdocs-dimension',
6219 'section' => 'betterdocs_single_docs_settings',
6220 'settings' => 'post_social_share_padding_top_layout_8',
6221 'label' => __( 'Top', 'betterdocs' ),
6222 'priority' => 167,
6223 'input_attrs' => [
6224 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
6225 ]
6226 ]
6227 )
6228 );
6229
6230 $this->customizer->add_setting(
6231 'post_social_share_padding_right_layout_8',
6232 [
6233 'default' => $this->defaults['post_social_share_padding_right_layout_8'],
6234 'capability' => 'edit_theme_options',
6235 'transport' => 'postMessage',
6236 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6237 ]
6238 );
6239
6240 $this->customizer->add_control(
6241 new DimensionControl(
6242 $this->customizer,
6243 'post_social_share_padding_right_layout_8',
6244 [
6245 'type' => 'betterdocs-dimension',
6246 'section' => 'betterdocs_single_docs_settings',
6247 'settings' => 'post_social_share_padding_right_layout_8',
6248 'label' => __( 'Right', 'betterdocs' ),
6249 'priority' => 167,
6250 'input_attrs' => [
6251 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
6252 ]
6253 ]
6254 )
6255 );
6256
6257 $this->customizer->add_setting(
6258 'post_social_share_padding_bottom_layout_8',
6259 [
6260 'default' => $this->defaults['post_social_share_padding_bottom_layout_8'],
6261 'capability' => 'edit_theme_options',
6262 'transport' => 'postMessage',
6263 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6264 ]
6265 );
6266
6267 $this->customizer->add_control(
6268 new DimensionControl(
6269 $this->customizer,
6270 'post_social_share_padding_bottom_layout_8',
6271 [
6272 'type' => 'betterdocs-dimension',
6273 'section' => 'betterdocs_single_docs_settings',
6274 'settings' => 'post_social_share_padding_bottom_layout_8',
6275 'label' => __( 'Bottom', 'betterdocs' ),
6276 'priority' => 167,
6277 'input_attrs' => [
6278 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
6279 ]
6280 ]
6281 )
6282 );
6283
6284 $this->customizer->add_setting(
6285 'post_social_share_padding_left_layout_8',
6286 [
6287 'default' => $this->defaults['post_social_share_padding_left_layout_8'],
6288 'capability' => 'edit_theme_options',
6289 'transport' => 'postMessage',
6290 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6291 ]
6292 );
6293
6294 $this->customizer->add_control(
6295 new DimensionControl(
6296 $this->customizer,
6297 'post_social_share_padding_left_layout_8',
6298 [
6299 'type' => 'betterdocs-dimension',
6300 'section' => 'betterdocs_single_docs_settings',
6301 'settings' => 'post_social_share_padding_left_layout_8',
6302 'label' => __( 'Left', 'betterdocs' ),
6303 'priority' => 167,
6304 'input_attrs' => [
6305 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
6306 ]
6307 ]
6308 )
6309 );
6310 }
6311
6312 public function post_social_share_padding_layout_9() {
6313 $this->customizer->add_setting(
6314 'post_social_share_padding_layout_9',
6315 [
6316 'default' => $this->defaults['post_social_share_padding_layout_9'],
6317 'capability' => 'edit_theme_options',
6318 'transport' => 'postMessage',
6319 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6320 ]
6321 );
6322
6323 $this->customizer->add_control(
6324 new TitleControl(
6325 $this->customizer,
6326 'post_social_share_padding_layout_9',
6327 [
6328 'type' => 'betterdocs-title',
6329 'section' => 'betterdocs_single_docs_settings',
6330 'settings' => 'post_social_share_padding_layout_9',
6331 'label' => __( 'Padding', 'betterdocs' ),
6332 'priority' => 167,
6333 'input_attrs' => [
6334 'id' => 'post_social_share_padding_layout_9',
6335 'class' => 'betterdocs-dimension'
6336 ]
6337 ]
6338 )
6339 );
6340
6341 $this->customizer->add_setting(
6342 'post_social_share_padding_top_layout_9',
6343 [
6344 'default' => $this->defaults['post_social_share_padding_top_layout_9'],
6345 'capability' => 'edit_theme_options',
6346 'transport' => 'postMessage',
6347 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6348 ]
6349 );
6350
6351 $this->customizer->add_control(
6352 new DimensionControl(
6353 $this->customizer,
6354 'post_social_share_padding_top_layout_9',
6355 [
6356 'type' => 'betterdocs-dimension',
6357 'section' => 'betterdocs_single_docs_settings',
6358 'settings' => 'post_social_share_padding_top_layout_9',
6359 'label' => __( 'Top', 'betterdocs' ),
6360 'priority' => 167,
6361 'input_attrs' => [
6362 'class' => 'post_social_share_padding_layout_9 betterdocs-dimension'
6363 ]
6364 ]
6365 )
6366 );
6367
6368 $this->customizer->add_setting(
6369 'post_social_share_padding_right_layout_9',
6370 [
6371 'default' => $this->defaults['post_social_share_padding_right_layout_9'],
6372 'capability' => 'edit_theme_options',
6373 'transport' => 'postMessage',
6374 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6375 ]
6376 );
6377
6378 $this->customizer->add_control(
6379 new DimensionControl(
6380 $this->customizer,
6381 'post_social_share_padding_right_layout_9',
6382 [
6383 'type' => 'betterdocs-dimension',
6384 'section' => 'betterdocs_single_docs_settings',
6385 'settings' => 'post_social_share_padding_right_layout_9',
6386 'label' => __( 'Right', 'betterdocs' ),
6387 'priority' => 167,
6388 'input_attrs' => [
6389 'class' => 'post_social_share_padding_layout_9 betterdocs-dimension'
6390 ]
6391 ]
6392 )
6393 );
6394
6395 $this->customizer->add_setting(
6396 'post_social_share_padding_bottom_layout_9',
6397 [
6398 'default' => $this->defaults['post_social_share_padding_bottom_layout_9'],
6399 'capability' => 'edit_theme_options',
6400 'transport' => 'postMessage',
6401 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6402 ]
6403 );
6404
6405 $this->customizer->add_control(
6406 new DimensionControl(
6407 $this->customizer,
6408 'post_social_share_padding_bottom_layout_9',
6409 [
6410 'type' => 'betterdocs-dimension',
6411 'section' => 'betterdocs_single_docs_settings',
6412 'settings' => 'post_social_share_padding_bottom_layout_9',
6413 'label' => __( 'Bottom', 'betterdocs' ),
6414 'priority' => 167,
6415 'input_attrs' => [
6416 'class' => 'post_social_share_padding_layout_9 betterdocs-dimension'
6417 ]
6418 ]
6419 )
6420 );
6421
6422 $this->customizer->add_setting(
6423 'post_social_share_padding_left_layout_9',
6424 [
6425 'default' => $this->defaults['post_social_share_padding_left_layout_9'],
6426 'capability' => 'edit_theme_options',
6427 'transport' => 'postMessage',
6428 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6429 ]
6430 );
6431
6432 $this->customizer->add_control(
6433 new DimensionControl(
6434 $this->customizer,
6435 'post_social_share_padding_left_layout_9',
6436 [
6437 'type' => 'betterdocs-dimension',
6438 'section' => 'betterdocs_single_docs_settings',
6439 'settings' => 'post_social_share_padding_left_layout_9',
6440 'label' => __( 'Left', 'betterdocs' ),
6441 'priority' => 167,
6442 'input_attrs' => [
6443 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
6444 ]
6445 ]
6446 )
6447 );
6448 }
6449
6450 public function post_social_share_facebook() {
6451 $this->customizer->add_setting(
6452 'betterdocs_post_social_share_facebook',
6453 [
6454 'default' => $this->defaults['betterdocs_post_social_share_facebook'],
6455 'capability' => 'edit_theme_options',
6456 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
6457 ]
6458 );
6459
6460 $this->customizer->add_control(
6461 new ToggleControl(
6462 $this->customizer,
6463 'betterdocs_post_social_share_facebook',
6464 [
6465 'label' => __( 'Facebook Sharing', 'betterdocs' ),
6466 'priority' => 168,
6467 'section' => 'betterdocs_single_docs_settings',
6468 'settings' => 'betterdocs_post_social_share_facebook',
6469 'type' => 'light' // light, ios, flat
6470 ]
6471 )
6472 );
6473 }
6474
6475 public function post_social_share_twitter() {
6476 $this->customizer->add_setting(
6477 'betterdocs_post_social_share_twitter',
6478 [
6479 'default' => $this->defaults['betterdocs_post_social_share_twitter'],
6480 'capability' => 'edit_theme_options',
6481 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
6482 ]
6483 );
6484
6485 $this->customizer->add_control(
6486 new ToggleControl(
6487 $this->customizer,
6488 'betterdocs_post_social_share_twitter',
6489 [
6490 'label' => __( 'Twitter Sharing', 'betterdocs' ),
6491 'priority' => 169,
6492 'section' => 'betterdocs_single_docs_settings',
6493 'settings' => 'betterdocs_post_social_share_twitter',
6494 'type' => 'light' // light, ios, flat
6495 ]
6496 )
6497 );
6498 }
6499
6500 public function post_social_share_linkedin() {
6501 $this->customizer->add_setting(
6502 'betterdocs_post_social_share_linkedin',
6503 [
6504 'default' => $this->defaults['betterdocs_post_social_share_linkedin'],
6505 'capability' => 'edit_theme_options',
6506 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
6507 ]
6508 );
6509
6510 $this->customizer->add_control(
6511 new ToggleControl(
6512 $this->customizer,
6513 'betterdocs_post_social_share_linkedin',
6514 [
6515 'label' => __( 'Linkedin Sharing', 'betterdocs' ),
6516 'priority' => 170,
6517 'section' => 'betterdocs_single_docs_settings',
6518 'settings' => 'betterdocs_post_social_share_linkedin',
6519 'type' => 'light' // light, ios, flat
6520 ]
6521 )
6522 );
6523 }
6524
6525 public function post_social_share_pinterest() {
6526 $this->customizer->add_setting(
6527 'betterdocs_post_social_share_pinterest',
6528 [
6529 'default' => $this->defaults['betterdocs_post_social_share_pinterest'],
6530 'capability' => 'edit_theme_options',
6531 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
6532 ]
6533 );
6534
6535 $this->customizer->add_control(
6536 new ToggleControl(
6537 $this->customizer,
6538 'betterdocs_post_social_share_pinterest',
6539 [
6540 'label' => __( 'Pinterest Sharing', 'betterdocs' ),
6541 'priority' => 171,
6542 'section' => 'betterdocs_single_docs_settings',
6543 'settings' => 'betterdocs_post_social_share_pinterest',
6544 'type' => 'light' // light, ios, flat
6545 ]
6546 )
6547 );
6548 }
6549
6550 public function doc_single_entry_footer() {
6551 $this->customizer->add_setting(
6552 'betterdocs_doc_single_entry_footer',
6553 [
6554 'default' => $this->defaults['betterdocs_doc_single_entry_footer'],
6555 'sanitize_callback' => 'esc_html'
6556 ]
6557 );
6558
6559 $this->customizer->add_control(
6560 new SeparatorControl(
6561 $this->customizer,
6562 'betterdocs_doc_single_entry_footer',
6563 [
6564 'label' => __( 'Entry Footer', 'betterdocs' ),
6565 'priority' => 172,
6566 'settings' => 'betterdocs_doc_single_entry_footer',
6567 'section' => 'betterdocs_single_docs_settings'
6568 ]
6569 )
6570 );
6571 }
6572
6573 public function single_doc_feedback_label_name_text(){
6574 $this->customizer->add_setting(
6575 'single_doc_feedback_label_name_text',
6576 [
6577 'default' => $this->defaults['single_doc_feedback_label_name_text'],
6578 'capability' => 'edit_theme_options',
6579 'sanitize_callback' => 'esc_html'
6580 ]
6581 );
6582
6583 $this->customizer->add_control(
6584 new SelectControl(
6585 $this->customizer,
6586 'single_doc_feedback_label_name_text',
6587 [
6588 'label' => __( 'Label Name Text', 'betterdocs' ),
6589 'priority' => 173,
6590 'section' => 'betterdocs_single_docs_settings',
6591 'settings' => 'single_doc_feedback_label_name_text',
6592 'type' => 'text'
6593 ]
6594 )
6595 );
6596 }
6597
6598 public function single_doc_feedback_label_email_text(){
6599 $this->customizer->add_setting(
6600 'single_doc_feedback_label_email_text',
6601 [
6602 'default' => $this->defaults['single_doc_feedback_label_email_text'],
6603 'capability' => 'edit_theme_options',
6604 'sanitize_callback' => 'esc_html'
6605 ]
6606 );
6607
6608 $this->customizer->add_control(
6609 new SelectControl(
6610 $this->customizer,
6611 'single_doc_feedback_label_email_text',
6612 [
6613 'label' => __( 'Label Email Text', 'betterdocs' ),
6614 'priority' => 173,
6615 'section' => 'betterdocs_single_docs_settings',
6616 'settings' => 'single_doc_feedback_label_email_text',
6617 'type' => 'text'
6618 ]
6619 )
6620 );
6621 }
6622
6623 public function single_doc_feedback_label_message_text(){
6624 $this->customizer->add_setting(
6625 'single_doc_feedback_label_message_text',
6626 [
6627 'default' => $this->defaults['single_doc_feedback_label_message_text'],
6628 'capability' => 'edit_theme_options',
6629 'sanitize_callback' => 'esc_html'
6630 ]
6631 );
6632
6633 $this->customizer->add_control(
6634 new SelectControl(
6635 $this->customizer,
6636 'single_doc_feedback_label_message_text',
6637 [
6638 'label' => __( 'Label Message Text', 'betterdocs' ),
6639 'priority' => 173,
6640 'section' => 'betterdocs_single_docs_settings',
6641 'settings' => 'single_doc_feedback_label_message_text',
6642 'type' => 'text'
6643 ]
6644 )
6645 );
6646 }
6647
6648 public function single_doc_feedback_icon_font_size() {
6649 $this->customizer->add_setting(
6650 'betterdocs_single_doc_feedback_icon_font_size',
6651 [
6652 'default' => $this->defaults['betterdocs_single_doc_feedback_icon_font_size'],
6653 'capability' => 'edit_theme_options',
6654 'transport' => 'postMessage',
6655 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6656
6657 ]
6658 );
6659
6660 $this->customizer->add_control(
6661 new RangeValueControl(
6662 $this->customizer,
6663 'betterdocs_single_doc_feedback_icon_font_size',
6664 [
6665 'type' => 'betterdocs-range-value',
6666 'section' => 'betterdocs_single_docs_settings',
6667 'settings' => 'betterdocs_single_doc_feedback_icon_font_size',
6668 'label' => __( 'Feedback Icon Size', 'betterdocs' ),
6669 'priority' => 173,
6670 'input_attrs' => [
6671 'class' => '',
6672 'min' => 0,
6673 'max' => 100,
6674 'step' => 1,
6675 'suffix' => 'px' //optional suffix
6676 ]
6677 ]
6678 )
6679 );
6680 }
6681
6682 public function single_doc_feedback_icon() {
6683 $this->customizer->add_setting(
6684 'betterdocs_single_doc_feedback_icon',
6685 [
6686 'default' => $this->defaults['betterdocs_single_doc_feedback_icon'],
6687 'capability' => 'edit_theme_options'
6688 ]
6689 );
6690
6691 $this->customizer->add_control(
6692 new WP_Customize_Image_Control(
6693 $this->customizer,
6694 'betterdocs_single_doc_feedback_icon',
6695 [
6696 'section' => 'betterdocs_single_docs_settings',
6697 'settings' => 'betterdocs_single_doc_feedback_icon',
6698 'label' => __( 'Feedback Icon', 'betterdocs' ),
6699 'priority' => 173
6700 ]
6701 )
6702 );
6703 }
6704
6705 public function single_doc_feedback_link_color() {
6706 $this->customizer->add_setting(
6707 'betterdocs_single_doc_feedback_link_color',
6708 [
6709 'default' => $this->defaults['betterdocs_single_doc_feedback_link_color'],
6710 'capability' => 'edit_theme_options',
6711 'transport' => 'postMessage',
6712 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6713 ]
6714 );
6715
6716 $this->customizer->add_control(
6717 new AlphaColorControl(
6718 $this->customizer,
6719 'betterdocs_single_doc_feedback_link_color',
6720 [
6721 'label' => __( 'Feedback Link Color', 'betterdocs' ),
6722 'priority' => 174,
6723 'section' => 'betterdocs_single_docs_settings',
6724 'settings' => 'betterdocs_single_doc_feedback_link_color'
6725 ]
6726 )
6727 );
6728 }
6729
6730 public function single_doc_feedback_link_hover_color() {
6731 $this->customizer->add_setting(
6732 'betterdocs_single_doc_feedback_link_hover_color',
6733 [
6734 'default' => $this->defaults['betterdocs_single_doc_feedback_link_hover_color'],
6735 'capability' => 'edit_theme_options',
6736 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6737 ]
6738 );
6739
6740 $this->customizer->add_control(
6741 new AlphaColorControl(
6742 $this->customizer,
6743 'betterdocs_single_doc_feedback_link_hover_color',
6744 [
6745 'label' => __( 'Feedback Link Hover Color', 'betterdocs' ),
6746 'priority' => 175,
6747 'section' => 'betterdocs_single_docs_settings',
6748 'settings' => 'betterdocs_single_doc_feedback_link_hover_color'
6749 ]
6750 )
6751 );
6752 }
6753
6754 public function single_doc_feedback_link_font_size() {
6755 $this->customizer->add_setting(
6756 'betterdocs_single_doc_feedback_link_font_size',
6757 [
6758 'default' => $this->defaults['betterdocs_single_doc_feedback_link_font_size'],
6759 'capability' => 'edit_theme_options',
6760 'transport' => 'postMessage',
6761 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6762
6763 ]
6764 );
6765
6766 $this->customizer->add_control(
6767 new RangeValueControl(
6768 $this->customizer,
6769 'betterdocs_single_doc_feedback_link_font_size',
6770 [
6771 'type' => 'betterdocs-range-value',
6772 'section' => 'betterdocs_single_docs_settings',
6773 'settings' => 'betterdocs_single_doc_feedback_link_font_size',
6774 'label' => __( 'Feedback Link Font Size', 'betterdocs' ),
6775 'priority' => 175,
6776 'input_attrs' => [
6777 'class' => '',
6778 'min' => 0,
6779 'max' => 50,
6780 'step' => 1,
6781 'suffix' => 'px' //optional suffix
6782 ]
6783 ]
6784 )
6785 );
6786 }
6787
6788 public function feedback_form_title_tag() {
6789 $this->customizer->add_setting(
6790 'betterdocs_feedback_form_title_tag',
6791 [
6792 'default' => $this->defaults['betterdocs_feedback_form_title_tag'],
6793 'capability' => 'edit_theme_options',
6794 'sanitize_callback' => [ $this->sanitizer, 'select' ]
6795 ]
6796 );
6797
6798 $this->customizer->add_control(
6799 new WP_Customize_Control(
6800 $this->customizer,
6801 'betterdocs_feedback_form_title_tag',
6802 [
6803 'label' => __( 'Feedback Form Title Tag', 'betterdocs' ),
6804 'section' => 'betterdocs_single_docs_settings',
6805 'settings' => 'betterdocs_feedback_form_title_tag',
6806 'priority' => 175,
6807 'type' => 'select',
6808 'choices' => [
6809 'h1' => 'h1',
6810 'h2' => 'h2',
6811 'h3' => 'h3',
6812 'h4' => 'h4',
6813 'h5' => 'h5',
6814 'h6' => 'h6',
6815 'p' => 'p'
6816 ]
6817 ]
6818 )
6819 );
6820 }
6821
6822 public function single_doc_feedback_title_font_size() {
6823 $this->customizer->add_setting(
6824 'betterdocs_single_doc_feedback_title_font_size',
6825 [
6826 'default' => $this->defaults['betterdocs_single_doc_feedback_title_font_size'],
6827 'capability' => 'edit_theme_options',
6828 'transport' => 'postMessage',
6829 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6830
6831 ]
6832 );
6833
6834 $this->customizer->add_control(
6835 new RangeValueControl(
6836 $this->customizer,
6837 'betterdocs_single_doc_feedback_title_font_size',
6838 [
6839 'type' => 'betterdocs-range-value',
6840 'section' => 'betterdocs_single_docs_settings',
6841 'settings' => 'betterdocs_single_doc_feedback_title_font_size',
6842 'label' => __( 'Feedback Form Title Font Size', 'betterdocs' ),
6843 'priority' => 175,
6844 'input_attrs' => [
6845 'class' => '',
6846 'min' => 0,
6847 'max' => 100,
6848 'step' => 1,
6849 'suffix' => 'px' //optional suffix
6850 ]
6851 ]
6852 )
6853 );
6854 }
6855
6856 public function single_doc_feedback_title_color() {
6857 $this->customizer->add_setting(
6858 'betterdocs_single_doc_feedback_title_color',
6859 [
6860 'default' => $this->defaults['betterdocs_single_doc_feedback_title_color'],
6861 'capability' => 'edit_theme_options',
6862 'transport' => 'postMessage',
6863 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6864 ]
6865 );
6866
6867 $this->customizer->add_control(
6868 new AlphaColorControl(
6869 $this->customizer,
6870 'betterdocs_single_doc_feedback_title_color',
6871 [
6872 'label' => __( 'Feedback Form Title Color', 'betterdocs' ),
6873 'priority' => 175,
6874 'section' => 'betterdocs_single_docs_settings',
6875 'settings' => 'betterdocs_single_doc_feedback_title_color'
6876 ]
6877 )
6878 );
6879 }
6880
6881 public function single_doc_navigation_color() {
6882 $this->customizer->add_setting(
6883 'betterdocs_single_doc_navigation_color',
6884 [
6885 'default' => $this->defaults['betterdocs_single_doc_navigation_color'],
6886 'capability' => 'edit_theme_options',
6887 'transport' => 'postMessage',
6888 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6889 ]
6890 );
6891
6892 $this->customizer->add_control(
6893 new AlphaColorControl(
6894 $this->customizer,
6895 'betterdocs_single_doc_navigation_color',
6896 [
6897 'label' => __( 'Navigation Color', 'betterdocs' ),
6898 'priority' => 177,
6899 'section' => 'betterdocs_single_docs_settings',
6900 'settings' => 'betterdocs_single_doc_navigation_color'
6901 ]
6902 )
6903 );
6904 }
6905
6906 public function single_doc_navigation_font_size() {
6907 $this->customizer->add_setting(
6908 'betterdocs_single_doc_navigation_font_size',
6909 [
6910 'default' => $this->defaults['betterdocs_single_doc_navigation_font_size'],
6911 'capability' => 'edit_theme_options',
6912 'transport' => 'postMessage',
6913 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6914
6915 ]
6916 );
6917
6918 $this->customizer->add_control(
6919 new RangeValueControl(
6920 $this->customizer,
6921 'betterdocs_single_doc_navigation_font_size',
6922 [
6923 'type' => 'betterdocs-range-value',
6924 'section' => 'betterdocs_single_docs_settings',
6925 'settings' => 'betterdocs_single_doc_navigation_font_size',
6926 'label' => __( 'Navigation Font Size', 'betterdocs' ),
6927 'priority' => 178,
6928 'input_attrs' => [
6929 'class' => '',
6930 'min' => 0,
6931 'max' => 50,
6932 'step' => 1,
6933 'suffix' => 'px' //optional suffix
6934 ]
6935 ]
6936 )
6937 );
6938 }
6939
6940 public function single_doc_navigation_hover_color() {
6941 $this->customizer->add_setting(
6942 'betterdocs_single_doc_navigation_hover_color',
6943 [
6944 'default' => $this->defaults['betterdocs_single_doc_navigation_hover_color'],
6945 'capability' => 'edit_theme_options',
6946 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6947 ]
6948 );
6949
6950 $this->customizer->add_control(
6951 new AlphaColorControl(
6952 $this->customizer,
6953 'betterdocs_single_doc_navigation_hover_color',
6954 [
6955 'label' => __( 'Navigation Hover Color', 'betterdocs' ),
6956 'priority' => 179,
6957 'section' => 'betterdocs_single_docs_settings',
6958 'settings' => 'betterdocs_single_doc_navigation_hover_color'
6959 ]
6960 )
6961 );
6962 }
6963
6964 public function single_doc_navigation_arrow_color() {
6965 $this->customizer->add_setting(
6966 'betterdocs_single_doc_navigation_arrow_color',
6967 [
6968 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_color'],
6969 'capability' => 'edit_theme_options',
6970 'transport' => 'postMessage',
6971 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6972 ]
6973 );
6974
6975 $this->customizer->add_control(
6976 new AlphaColorControl(
6977 $this->customizer,
6978 'betterdocs_single_doc_navigation_arrow_color',
6979 [
6980 'label' => __( 'Navigation Arrow Color', 'betterdocs' ),
6981 'priority' => 180,
6982 'section' => 'betterdocs_single_docs_settings',
6983 'settings' => 'betterdocs_single_doc_navigation_arrow_color'
6984 ]
6985 )
6986 );
6987 }
6988
6989 public function single_doc_navigation_arrow_font_size() {
6990 $this->customizer->add_setting(
6991 'betterdocs_single_doc_navigation_arrow_font_size',
6992 [
6993 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_font_size'],
6994 'capability' => 'edit_theme_options',
6995 'transport' => 'postMessage',
6996 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6997
6998 ]
6999 );
7000
7001 $this->customizer->add_control(
7002 new RangeValueControl(
7003 $this->customizer,
7004 'betterdocs_single_doc_navigation_arrow_font_size',
7005 [
7006 'type' => 'betterdocs-range-value',
7007 'section' => 'betterdocs_single_docs_settings',
7008 'settings' => 'betterdocs_single_doc_navigation_arrow_font_size',
7009 'label' => __( 'Navigation Arrow Font Size', 'betterdocs' ),
7010 'priority' => 181,
7011 'input_attrs' => [
7012 'class' => '',
7013 'min' => 0,
7014 'max' => 50,
7015 'step' => 1,
7016 'suffix' => 'px' //optional suffix
7017 ]
7018 ]
7019 )
7020 );
7021 }
7022
7023 public function single_doc_navigation_color_layout_8_9() {
7024 $this->customizer->add_setting(
7025 'betterdocs_single_doc_navigation_color_layout_8_9',
7026 [
7027 'default' => $this->defaults['betterdocs_single_doc_navigation_color_layout_8_9'],
7028 'capability' => 'edit_theme_options',
7029 'transport' => 'postMessage',
7030 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7031 ]
7032 );
7033
7034 $this->customizer->add_control(
7035 new AlphaColorControl(
7036 $this->customizer,
7037 'betterdocs_single_doc_navigation_color_layout_8_9',
7038 [
7039 'label' => __( 'Navigation Color', 'betterdocs' ),
7040 'priority' => 177,
7041 'section' => 'betterdocs_single_docs_settings',
7042 'settings' => 'betterdocs_single_doc_navigation_color_layout_8_9'
7043 ]
7044 )
7045 );
7046 }
7047
7048 public function single_doc_navigation_font_size_layout_8_9() {
7049 $this->customizer->add_setting(
7050 'betterdocs_single_doc_navigation_font_size_layout_8_9',
7051 [
7052 'default' => $this->defaults['betterdocs_single_doc_navigation_font_size_layout_8_9'],
7053 'capability' => 'edit_theme_options',
7054 'transport' => 'postMessage',
7055 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7056
7057 ]
7058 );
7059
7060 $this->customizer->add_control(
7061 new RangeValueControl(
7062 $this->customizer,
7063 'betterdocs_single_doc_navigation_font_size_layout_8_9',
7064 [
7065 'type' => 'betterdocs-range-value',
7066 'section' => 'betterdocs_single_docs_settings',
7067 'settings' => 'betterdocs_single_doc_navigation_font_size_layout_8_9',
7068 'label' => __( 'Navigation Font Size', 'betterdocs' ),
7069 'priority' => 178,
7070 'input_attrs' => [
7071 'class' => '',
7072 'min' => 0,
7073 'max' => 50,
7074 'step' => 1,
7075 'suffix' => 'px' //optional suffix
7076 ]
7077 ]
7078 )
7079 );
7080 }
7081
7082 public function single_doc_navigation_hover_color_layout_8_9() {
7083 $this->customizer->add_setting(
7084 'betterdocs_single_doc_navigation_hover_color_layout_8_9',
7085 [
7086 'default' => $this->defaults['betterdocs_single_doc_navigation_hover_color_layout_8_9'],
7087 'capability' => 'edit_theme_options',
7088 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7089 ]
7090 );
7091
7092 $this->customizer->add_control(
7093 new AlphaColorControl(
7094 $this->customizer,
7095 'betterdocs_single_doc_navigation_hover_color_layout_8_9',
7096 [
7097 'label' => __( 'Navigation Hover Color', 'betterdocs' ),
7098 'priority' => 179,
7099 'section' => 'betterdocs_single_docs_settings',
7100 'settings' => 'betterdocs_single_doc_navigation_hover_color_layout_8_9'
7101 ]
7102 )
7103 );
7104 }
7105
7106 public function single_doc_navigation_arrow_color_layout_8_9() {
7107 $this->customizer->add_setting(
7108 'betterdocs_single_doc_navigation_arrow_color_layout_8_9',
7109 [
7110 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_color_layout_8_9'],
7111 'capability' => 'edit_theme_options',
7112 'transport' => 'postMessage',
7113 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7114 ]
7115 );
7116
7117 $this->customizer->add_control(
7118 new AlphaColorControl(
7119 $this->customizer,
7120 'betterdocs_single_doc_navigation_arrow_color_layout_8_9',
7121 [
7122 'label' => __( 'Navigation Arrow Color', 'betterdocs' ),
7123 'priority' => 180,
7124 'section' => 'betterdocs_single_docs_settings',
7125 'settings' => 'betterdocs_single_doc_navigation_arrow_color_layout_8_9'
7126 ]
7127 )
7128 );
7129 }
7130
7131 public function single_doc_navigation_arrow_font_size_layout_8_9() {
7132 $this->customizer->add_setting(
7133 'betterdocs_single_doc_navigation_arrow_font_size_layout_8_9',
7134 [
7135 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_font_size_layout_8_9'],
7136 'capability' => 'edit_theme_options',
7137 'transport' => 'postMessage',
7138 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7139
7140 ]
7141 );
7142
7143 $this->customizer->add_control(
7144 new RangeValueControl(
7145 $this->customizer,
7146 'betterdocs_single_doc_navigation_arrow_font_size_layout_8_9',
7147 [
7148 'type' => 'betterdocs-range-value',
7149 'section' => 'betterdocs_single_docs_settings',
7150 'settings' => 'betterdocs_single_doc_navigation_arrow_font_size_layout_8_9',
7151 'label' => __( 'Navigation Arrow Font Size', 'betterdocs' ),
7152 'priority' => 181,
7153 'input_attrs' => [
7154 'class' => '',
7155 'min' => 0,
7156 'max' => 50,
7157 'step' => 1,
7158 'suffix' => 'px' //optional suffix
7159 ]
7160 ]
7161 )
7162 );
7163 }
7164
7165 public function betterdocs_single_doc_lu_time_color() {
7166 $this->customizer->add_setting(
7167 'betterdocs_single_doc_lu_time_color',
7168 [
7169 'default' => $this->defaults['betterdocs_single_doc_lu_time_color'],
7170 'capability' => 'edit_theme_options',
7171 'transport' => 'postMessage',
7172 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7173 ]
7174 );
7175
7176 $this->customizer->add_control(
7177 new AlphaColorControl(
7178 $this->customizer,
7179 'betterdocs_single_doc_lu_time_color',
7180 [
7181 'label' => __( 'Last Updated Time Color', 'betterdocs' ),
7182 'priority' => 182,
7183 'section' => 'betterdocs_single_docs_settings',
7184 'settings' => 'betterdocs_single_doc_lu_time_color'
7185 ]
7186 )
7187 );
7188 }
7189
7190 public function single_doc_lu_time_font_size() {
7191 $this->customizer->add_setting(
7192 'betterdocs_single_doc_lu_time_font_size',
7193 [
7194 'default' => $this->defaults['betterdocs_single_doc_lu_time_font_size'],
7195 'capability' => 'edit_theme_options',
7196 'transport' => 'postMessage',
7197 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7198
7199 ]
7200 );
7201
7202 $this->customizer->add_control(
7203 new RangeValueControl(
7204 $this->customizer,
7205 'betterdocs_single_doc_lu_time_font_size',
7206 [
7207 'type' => 'betterdocs-range-value',
7208 'section' => 'betterdocs_single_docs_settings',
7209 'settings' => 'betterdocs_single_doc_lu_time_font_size',
7210 'label' => __( 'Last Updated Time Font Size', 'betterdocs' ),
7211 'priority' => 183,
7212 'input_attrs' => [
7213 'class' => '',
7214 'min' => 0,
7215 'max' => 50,
7216 'step' => 1,
7217 'suffix' => 'px' //optional suffix
7218 ]
7219 ]
7220 )
7221 );
7222 }
7223
7224
7225
7226 public function single_doc_powered_by_color() {
7227 $this->customizer->add_setting(
7228 'betterdocs_single_doc_powered_by_color',
7229 [
7230 'default' => $this->defaults['betterdocs_single_doc_powered_by_color'],
7231 'capability' => 'edit_theme_options',
7232 'transport' => 'postMessage',
7233 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7234 ]
7235 );
7236
7237 $this->customizer->add_control(
7238 new AlphaColorControl(
7239 $this->customizer,
7240 'betterdocs_single_doc_powered_by_color',
7241 [
7242 'label' => __( 'Powered by Color', 'betterdocs' ),
7243 'priority' => 184,
7244 'section' => 'betterdocs_single_docs_settings',
7245 'settings' => 'betterdocs_single_doc_powered_by_color'
7246 ]
7247 )
7248 );
7249 }
7250
7251 public function single_doc_powered_by_font_size() {
7252 $this->customizer->add_setting(
7253 'betterdocs_single_doc_powered_by_font_size',
7254 [
7255 'default' => $this->defaults['betterdocs_single_doc_powered_by_font_size'],
7256 'capability' => 'edit_theme_options',
7257 'transport' => 'postMessage',
7258 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7259
7260 ]
7261 );
7262
7263 $this->customizer->add_control(
7264 new RangeValueControl(
7265 $this->customizer,
7266 'betterdocs_single_doc_powered_by_font_size',
7267 [
7268 'type' => 'betterdocs-range-value',
7269 'section' => 'betterdocs_single_docs_settings',
7270 'settings' => 'betterdocs_single_doc_powered_by_font_size',
7271 'label' => __( 'Powered By Font Size', 'betterdocs' ),
7272 'priority' => 185,
7273 'input_attrs' => [
7274 'class' => '',
7275 'min' => 0,
7276 'max' => 50,
7277 'step' => 1,
7278 'suffix' => 'px' //optional suffix
7279 ]
7280 ]
7281 )
7282 );
7283 }
7284
7285 public function single_doc_powered_by_link_color() {
7286 $this->customizer->add_setting(
7287 'betterdocs_single_doc_powered_by_link_color',
7288 [
7289 'default' => $this->defaults['betterdocs_single_doc_powered_by_link_color'],
7290 'capability' => 'edit_theme_options',
7291 'transport' => 'postMessage',
7292 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7293 ]
7294 );
7295
7296 $this->customizer->add_control(
7297 new AlphaColorControl(
7298 $this->customizer,
7299 'betterdocs_single_doc_powered_by_link_color',
7300 [
7301 'label' => __( 'Powered By Link Color', 'betterdocs' ),
7302 'priority' => 186,
7303 'section' => 'betterdocs_single_docs_settings',
7304 'settings' => 'betterdocs_single_doc_powered_by_link_color'
7305 ]
7306 )
7307 );
7308 }
7309
7310 public function reactions_title() {
7311 $this->customizer->add_setting(
7312 'betterdocs_reactions_title',
7313 [
7314 'default' => '',
7315 'sanitize_callback' => 'esc_html'
7316 ]
7317 );
7318
7319 $this->customizer->add_control(
7320 new SeparatorControl(
7321 $this->customizer,
7322 'betterdocs_reactions_title',
7323 [
7324 'label' => __( 'Reactions', 'betterdocs' ),
7325 'priority' => 159,
7326 'settings' => 'betterdocs_reactions_title',
7327 'section' => 'betterdocs_single_docs_settings'
7328 ]
7329 )
7330 );
7331 }
7332
7333 public function reactions_title_tag() {
7334 $this->customizer->add_setting(
7335 'betterdocs_reactions_title_tag',
7336 [
7337 'default' => $this->defaults['betterdocs_reactions_title_tag'],
7338 'capability' => 'edit_theme_options',
7339 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
7340 ]
7341 );
7342
7343 $this->customizer->add_control(
7344 new WP_Customize_Control(
7345 $this->customizer,
7346 'betterdocs_reactions_title_tag',
7347 [
7348 'label' => __( 'Reactions Title Tag', 'betterdocs' ),
7349 'section' => 'betterdocs_single_docs_settings',
7350 'settings' => 'betterdocs_reactions_title_tag',
7351 'type' => 'select',
7352 'choices' => [
7353 'h1' => 'h1',
7354 'h2' => 'h2',
7355 'h3' => 'h3',
7356 'h4' => 'h4',
7357 'h5' => 'h5',
7358 'h6' => 'h6'
7359 ],
7360 'priority' => 160
7361 ]
7362 )
7363 );
7364 }
7365
7366 public function post_reactions() {
7367 $this->customizer->add_setting(
7368 'betterdocs_post_reactions',
7369 [
7370 'default' => $this->defaults['betterdocs_post_reactions'],
7371 'capability' => 'edit_theme_options',
7372 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
7373 ]
7374 );
7375
7376 $this->customizer->add_control(
7377 new ToggleControl(
7378 $this->customizer,
7379 'betterdocs_post_reactions',
7380 [
7381 'label' => __( 'Enable Reactions?', 'betterdocs' ),
7382 'priority' => 160,
7383 'section' => 'betterdocs_single_docs_settings',
7384 'settings' => 'betterdocs_post_reactions',
7385 'type' => 'light' // light, ios, flat
7386 ]
7387 )
7388 );
7389 }
7390
7391 public function post_reactions_happy() {
7392 $this->customizer->add_setting(
7393 'betterdocs_post_reactions_happy',
7394 [
7395 'default' => $this->defaults['betterdocs_post_reactions_happy'],
7396 'capability' => 'edit_theme_options',
7397 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
7398 ]
7399 );
7400
7401 $this->customizer->add_control(
7402 new ToggleControl(
7403 $this->customizer,
7404 'betterdocs_post_reactions_happy',
7405 [
7406 'label' => __( 'Enable Happy?', 'betterdocs' ),
7407 'priority' => 160,
7408 'section' => 'betterdocs_single_docs_settings',
7409 'settings' => 'betterdocs_post_reactions_happy',
7410 'type' => 'light' // light, ios, flat
7411 ]
7412 )
7413 );
7414 }
7415
7416 public function post_reactions_happy_icon() {
7417 $this->customizer->add_setting(
7418 'betterdocs_post_reactions_happy_icon',
7419 [
7420 'default' => $this->defaults['betterdocs_post_reactions_happy_icon'],
7421 'capability' => 'edit_theme_options'
7422
7423 ]
7424 );
7425
7426 $this->customizer->add_control(
7427 new WP_Customize_Image_Control(
7428 $this->customizer,
7429 'betterdocs_post_reactions_happy_icon',
7430 [
7431 'section' => 'betterdocs_single_docs_settings',
7432 'settings' => 'betterdocs_post_reactions_happy_icon',
7433 'label' => __( 'Happy Icon', 'betterdocs' ),
7434 'priority' => 160
7435 ]
7436 )
7437 );
7438 }
7439
7440 public function post_reactions_normal() {
7441 $this->customizer->add_setting(
7442 'betterdocs_post_reactions_normal',
7443 [
7444 'default' => $this->defaults['betterdocs_post_reactions_normal'],
7445 'capability' => 'edit_theme_options',
7446 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
7447 ]
7448 );
7449
7450 $this->customizer->add_control(
7451 new ToggleControl(
7452 $this->customizer,
7453 'betterdocs_post_reactions_normal',
7454 [
7455 'label' => __( 'Enable Normal?', 'betterdocs' ),
7456 'priority' => 160,
7457 'section' => 'betterdocs_single_docs_settings',
7458 'settings' => 'betterdocs_post_reactions_normal',
7459 'type' => 'light' // light, ios, flat
7460 ]
7461 )
7462 );
7463 }
7464
7465 public function post_reactions_normal_icon() {
7466 $this->customizer->add_setting(
7467 'betterdocs_post_reactions_normal_icon',
7468 [
7469 'default' => $this->defaults['betterdocs_post_reactions_normal_icon'],
7470 'capability' => 'edit_theme_options'
7471
7472 ]
7473 );
7474
7475 $this->customizer->add_control(
7476 new WP_Customize_Image_Control(
7477 $this->customizer,
7478 'betterdocs_post_reactions_normal_icon',
7479 [
7480 'section' => 'betterdocs_single_docs_settings',
7481 'settings' => 'betterdocs_post_reactions_normal_icon',
7482 'label' => __( 'Normal Icon', 'betterdocs' ),
7483 'priority' => 160
7484 ]
7485 )
7486 );
7487 }
7488
7489 public function post_reactions_sad() {
7490 $this->customizer->add_setting(
7491 'betterdocs_post_reactions_sad',
7492 [
7493 'default' => $this->defaults['betterdocs_post_reactions_sad'],
7494 'capability' => 'edit_theme_options',
7495 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
7496 ]
7497 );
7498
7499 $this->customizer->add_control(
7500 new ToggleControl(
7501 $this->customizer,
7502 'betterdocs_post_reactions_sad',
7503 [
7504 'label' => __( 'Enable Sad?', 'betterdocs' ),
7505 'priority' => 160,
7506 'section' => 'betterdocs_single_docs_settings',
7507 'settings' => 'betterdocs_post_reactions_sad',
7508 'type' => 'light' // light, ios, flat
7509 ]
7510 )
7511 );
7512 }
7513
7514 public function post_reactions_sad_icon() {
7515 $this->customizer->add_setting(
7516 'betterdocs_post_reactions_sad_icon',
7517 [
7518 'default' => $this->defaults['betterdocs_post_reactions_sad_icon'],
7519 'capability' => 'edit_theme_options'
7520
7521 ]
7522 );
7523
7524 $this->customizer->add_control(
7525 new WP_Customize_Image_Control(
7526 $this->customizer,
7527 'betterdocs_post_reactions_sad_icon',
7528 [
7529 'section' => 'betterdocs_single_docs_settings',
7530 'settings' => 'betterdocs_post_reactions_sad_icon',
7531 'label' => __( 'Sad Icon', 'betterdocs' ),
7532 'priority' => 160
7533 ]
7534 )
7535 );
7536 }
7537
7538 public function post_reactions_text() {
7539 $this->customizer->add_setting(
7540 'betterdocs_post_reactions_text',
7541 [
7542 'default' => $this->defaults['betterdocs_post_reactions_text'],
7543 'capability' => 'edit_theme_options',
7544 'sanitize_callback' => 'esc_html'
7545 ]
7546 );
7547
7548 $this->customizer->add_control(
7549 new SelectControl(
7550 $this->customizer,
7551 'betterdocs_post_reactions_text',
7552 [
7553 'label' => __( 'Reactions Title', 'betterdocs' ),
7554 'priority' => 161,
7555 'section' => 'betterdocs_single_docs_settings',
7556 'settings' => 'betterdocs_post_reactions_text',
7557 'type' => 'text'
7558 ]
7559 )
7560 );
7561 }
7562
7563 public function post_reactions_text_2() {
7564 $this->customizer->add_setting(
7565 'betterdocs_post_reactions_text_2',
7566 [
7567 'default' => $this->defaults['betterdocs_post_reactions_text_2'],
7568 'capability' => 'edit_theme_options',
7569 'sanitize_callback' => 'esc_html'
7570 ]
7571 );
7572
7573 $this->customizer->add_control(
7574 new SelectControl(
7575 $this->customizer,
7576 'betterdocs_post_reactions_text_2',
7577 [
7578 'label' => __( 'Reactions Title', 'betterdocs' ),
7579 'priority' => 161,
7580 'section' => 'betterdocs_single_docs_settings',
7581 'settings' => 'betterdocs_post_reactions_text_2',
7582 'type' => 'text'
7583 ]
7584 )
7585 );
7586 }
7587
7588 public function reactions_background_color() {
7589 $this->customizer->add_setting(
7590 'reactions_background_color',
7591 [
7592 'default' => $this->defaults['reactions_background_color'],
7593 'capability' => 'edit_theme_options',
7594 'transport' => 'postMessage',
7595 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7596 ]
7597 );
7598
7599 $this->customizer->add_control(
7600 new AlphaColorControl(
7601 $this->customizer,
7602 'reactions_background_color',
7603 [
7604 'label' => __( 'Reactions Background Color', 'betterdocs' ),
7605 'priority' => 162,
7606 'section' => 'betterdocs_single_docs_settings',
7607 'settings' => 'reactions_background_color'
7608 ]
7609 )
7610 );
7611 }
7612
7613 public function post_reactions_text_color() {
7614 $this->customizer->add_setting(
7615 'betterdocs_post_reactions_text_color',
7616 [
7617 'default' => $this->defaults['betterdocs_post_reactions_text_color'],
7618 'capability' => 'edit_theme_options',
7619 'transport' => 'postMessage',
7620 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7621 ]
7622 );
7623
7624 $this->customizer->add_control(
7625 new AlphaColorControl(
7626 $this->customizer,
7627 'betterdocs_post_reactions_text_color',
7628 [
7629 'label' => __( 'Reactions Text Color', 'betterdocs' ),
7630 'priority' => 162,
7631 'section' => 'betterdocs_single_docs_settings',
7632 'settings' => 'betterdocs_post_reactions_text_color'
7633 ]
7634 )
7635 );
7636 }
7637
7638 public function post_reactions_icon_color() {
7639 $this->customizer->add_setting(
7640 'betterdocs_post_reactions_icon_color',
7641 [
7642 'default' => $this->defaults['betterdocs_post_reactions_icon_color'],
7643 'capability' => 'edit_theme_options',
7644 'transport' => 'postMessage',
7645 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7646 ]
7647 );
7648
7649 $this->customizer->add_control(
7650 new AlphaColorControl(
7651 $this->customizer,
7652 'betterdocs_post_reactions_icon_color',
7653 [
7654 'label' => __( 'Reactions Icon Background Color', 'betterdocs' ),
7655 'priority' => 163,
7656 'section' => 'betterdocs_single_docs_settings',
7657 'settings' => 'betterdocs_post_reactions_icon_color'
7658 ]
7659 )
7660 );
7661 }
7662
7663 public function post_reactions_icon_svg_color() {
7664 $this->customizer->add_setting(
7665 'betterdocs_post_reactions_icon_svg_color',
7666 [
7667 'default' => $this->defaults['betterdocs_post_reactions_icon_svg_color'],
7668 'capability' => 'edit_theme_options',
7669 'transport' => 'postMessage',
7670 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7671 ]
7672 );
7673
7674 $this->customizer->add_control(
7675 new AlphaColorControl(
7676 $this->customizer,
7677 'betterdocs_post_reactions_icon_svg_color',
7678 [
7679 'label' => __( 'Reactions Icon Color', 'betterdocs' ),
7680 'priority' => 163,
7681 'section' => 'betterdocs_single_docs_settings',
7682 'settings' => 'betterdocs_post_reactions_icon_svg_color'
7683 ]
7684 )
7685 );
7686 }
7687
7688 public function post_reactions_icon_hover_bg_color() {
7689 $this->customizer->add_setting(
7690 'betterdocs_post_reactions_icon_hover_bg_color',
7691 [
7692 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_bg_color'],
7693 'capability' => 'edit_theme_options',
7694 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7695 ]
7696 );
7697
7698 $this->customizer->add_control(
7699 new AlphaColorControl(
7700 $this->customizer,
7701 'betterdocs_post_reactions_icon_hover_bg_color',
7702 [
7703 'label' => __( 'Reactions Icon Hover Background Color', 'betterdocs' ),
7704 'priority' => 163,
7705 'section' => 'betterdocs_single_docs_settings',
7706 'settings' => 'betterdocs_post_reactions_icon_hover_bg_color'
7707 ]
7708 )
7709 );
7710 }
7711
7712 public function post_reactions_icon_hover_svg_color() {
7713 $this->customizer->add_setting(
7714 'betterdocs_post_reactions_icon_hover_svg_color',
7715 [
7716 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_svg_color'],
7717 'capability' => 'edit_theme_options',
7718 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7719 ]
7720 );
7721
7722 $this->customizer->add_control(
7723 new AlphaColorControl(
7724 $this->customizer,
7725 'betterdocs_post_reactions_icon_hover_svg_color',
7726 [
7727 'label' => __( 'Reactions Icon Hover Color', 'betterdocs' ),
7728 'priority' => 163,
7729 'section' => 'betterdocs_single_docs_settings',
7730 'settings' => 'betterdocs_post_reactions_icon_hover_svg_color'
7731 ]
7732 )
7733 );
7734 }
7735
7736 public function reactions_background_color_layout_8() {
7737 $this->customizer->add_setting(
7738 'reactions_background_color_layout_8',
7739 [
7740 'default' => $this->defaults['reactions_background_color_layout_8'],
7741 'capability' => 'edit_theme_options',
7742 'transport' => 'postMessage',
7743 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7744 ]
7745 );
7746
7747 $this->customizer->add_control(
7748 new AlphaColorControl(
7749 $this->customizer,
7750 'reactions_background_color_layout_8',
7751 [
7752 'label' => __( 'Reactions Background Color', 'betterdocs' ),
7753 'priority' => 162,
7754 'section' => 'betterdocs_single_docs_settings',
7755 'settings' => 'reactions_background_color_layout_8'
7756 ]
7757 )
7758 );
7759 }
7760
7761 public function reactions_background_color_layout_9() {
7762 $this->customizer->add_setting(
7763 'reactions_background_color_layout_9',
7764 [
7765 'default' => $this->defaults['reactions_background_color_layout_9'],
7766 'capability' => 'edit_theme_options',
7767 'transport' => 'postMessage',
7768 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7769 ]
7770 );
7771
7772 $this->customizer->add_control(
7773 new AlphaColorControl(
7774 $this->customizer,
7775 'reactions_background_color_layout_9',
7776 [
7777 'label' => __( 'Reactions Background Color', 'betterdocs' ),
7778 'priority' => 162,
7779 'section' => 'betterdocs_single_docs_settings',
7780 'settings' => 'reactions_background_color_layout_9'
7781 ]
7782 )
7783 );
7784 }
7785
7786 public function post_reactions_text_color_layout_8_9() {
7787 $this->customizer->add_setting(
7788 'betterdocs_post_reactions_text_color_layout_8_9',
7789 [
7790 'default' => $this->defaults['betterdocs_post_reactions_text_color_layout_8_9'],
7791 'capability' => 'edit_theme_options',
7792 'transport' => 'postMessage',
7793 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7794 ]
7795 );
7796
7797 $this->customizer->add_control(
7798 new AlphaColorControl(
7799 $this->customizer,
7800 'betterdocs_post_reactions_text_color_layout_8_9',
7801 [
7802 'label' => __( 'Reactions Text Color', 'betterdocs' ),
7803 'priority' => 162,
7804 'section' => 'betterdocs_single_docs_settings',
7805 'settings' => 'betterdocs_post_reactions_text_color_layout_8_9'
7806 ]
7807 )
7808 );
7809 }
7810
7811 public function post_reactions_icon_color_layout_8_9() {
7812 $this->customizer->add_setting(
7813 'betterdocs_post_reactions_icon_color_layout_8_9',
7814 [
7815 'default' => $this->defaults['betterdocs_post_reactions_icon_color_layout_8_9'],
7816 'capability' => 'edit_theme_options',
7817 'transport' => 'postMessage',
7818 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7819 ]
7820 );
7821
7822 $this->customizer->add_control(
7823 new AlphaColorControl(
7824 $this->customizer,
7825 'betterdocs_post_reactions_icon_color_layout_8_9',
7826 [
7827 'label' => __( 'Reactions Icon Background Color', 'betterdocs' ),
7828 'priority' => 163,
7829 'section' => 'betterdocs_single_docs_settings',
7830 'settings' => 'betterdocs_post_reactions_icon_color_layout_8_9'
7831 ]
7832 )
7833 );
7834 }
7835
7836 public function post_reactions_margin_layout_8() {
7837 $this->customizer->add_setting(
7838 'post_reactions_margin_layout_8',
7839 [
7840 'default' => $this->defaults['post_reactions_margin_layout_8'],
7841 'capability' => 'edit_theme_options',
7842 'transport' => 'postMessage',
7843 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7844 ]
7845 );
7846
7847 $this->customizer->add_control(
7848 new TitleControl(
7849 $this->customizer,
7850 'post_reactions_margin_layout_8',
7851 [
7852 'type' => 'betterdocs-title',
7853 'section' => 'betterdocs_single_docs_settings',
7854 'settings' => 'post_reactions_margin_layout_8',
7855 'label' => __( 'Margin', 'betterdocs' ),
7856 'priority' => 163,
7857 'input_attrs' => [
7858 'id' => 'post_reactions_margin_layout_8',
7859 'class' => 'betterdocs-dimension'
7860 ]
7861 ]
7862 )
7863 );
7864
7865 $this->customizer->add_setting(
7866 'post_reactions_margin_top_layout_8',
7867 [
7868 'default' => $this->defaults['post_reactions_margin_top_layout_8'],
7869 'capability' => 'edit_theme_options',
7870 'transport' => 'postMessage',
7871 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7872 ]
7873 );
7874
7875 $this->customizer->add_control(
7876 new DimensionControl(
7877 $this->customizer,
7878 'post_reactions_margin_top_layout_8',
7879 [
7880 'type' => 'betterdocs-dimension',
7881 'section' => 'betterdocs_single_docs_settings',
7882 'settings' => 'post_reactions_margin_top_layout_8',
7883 'label' => __( 'Top', 'betterdocs' ),
7884 'priority' => 163,
7885 'input_attrs' => [
7886 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
7887 ]
7888 ]
7889 )
7890 );
7891
7892 $this->customizer->add_setting(
7893 'post_reactions_margin_right_layout_8',
7894 [
7895 'default' => $this->defaults['post_reactions_margin_right_layout_8'],
7896 'capability' => 'edit_theme_options',
7897 'transport' => 'postMessage',
7898 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7899 ]
7900 );
7901
7902 $this->customizer->add_control(
7903 new DimensionControl(
7904 $this->customizer,
7905 'post_reactions_margin_right_layout_8',
7906 [
7907 'type' => 'betterdocs-dimension',
7908 'section' => 'betterdocs_single_docs_settings',
7909 'settings' => 'post_reactions_margin_right_layout_8',
7910 'label' => __( 'Right', 'betterdocs' ),
7911 'priority' => 163,
7912 'input_attrs' => [
7913 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
7914 ]
7915 ]
7916 )
7917 );
7918
7919 $this->customizer->add_setting(
7920 'post_reactions_margin_bottom_layout_8',
7921 [
7922 'default' => $this->defaults['post_reactions_margin_bottom_layout_8'],
7923 'capability' => 'edit_theme_options',
7924 'transport' => 'postMessage',
7925 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7926 ]
7927 );
7928
7929 $this->customizer->add_control(
7930 new DimensionControl(
7931 $this->customizer,
7932 'post_reactions_margin_bottom_layout_8',
7933 [
7934 'type' => 'betterdocs-dimension',
7935 'section' => 'betterdocs_single_docs_settings',
7936 'settings' => 'post_reactions_margin_bottom_layout_8',
7937 'label' => __( 'Bottom', 'betterdocs' ),
7938 'priority' => 163,
7939 'input_attrs' => [
7940 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
7941 ]
7942 ]
7943 )
7944 );
7945
7946 $this->customizer->add_setting(
7947 'post_reactions_margin_left_layout_8',
7948 [
7949 'default' => $this->defaults['post_reactions_margin_left_layout_8'],
7950 'capability' => 'edit_theme_options',
7951 'transport' => 'postMessage',
7952 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7953 ]
7954 );
7955
7956 $this->customizer->add_control(
7957 new DimensionControl(
7958 $this->customizer,
7959 'post_reactions_margin_left_layout_8',
7960 [
7961 'type' => 'betterdocs-dimension',
7962 'section' => 'betterdocs_single_docs_settings',
7963 'settings' => 'post_reactions_margin_left_layout_8',
7964 'label' => __( 'Left', 'betterdocs' ),
7965 'priority' => 163,
7966 'input_attrs' => [
7967 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
7968 ]
7969 ]
7970 )
7971 );
7972 }
7973
7974 public function post_reactions_margin_layout_9() {
7975 $this->customizer->add_setting(
7976 'post_reactions_margin_layout_9',
7977 [
7978 'default' => $this->defaults['post_reactions_margin_layout_9'],
7979 'capability' => 'edit_theme_options',
7980 'transport' => 'postMessage',
7981 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7982 ]
7983 );
7984
7985 $this->customizer->add_control(
7986 new TitleControl(
7987 $this->customizer,
7988 'post_reactions_margin_layout_9',
7989 [
7990 'type' => 'betterdocs-title',
7991 'section' => 'betterdocs_single_docs_settings',
7992 'settings' => 'post_reactions_margin_layout_9',
7993 'label' => __( 'Margin', 'betterdocs' ),
7994 'priority' => 163,
7995 'input_attrs' => [
7996 'id' => 'post_reactions_margin_layout_9',
7997 'class' => 'betterdocs-dimension'
7998 ]
7999 ]
8000 )
8001 );
8002
8003 $this->customizer->add_setting(
8004 'post_reactions_margin_top_layout_9',
8005 [
8006 'default' => $this->defaults['post_reactions_margin_top_layout_9'],
8007 'capability' => 'edit_theme_options',
8008 'transport' => 'postMessage',
8009 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8010 ]
8011 );
8012
8013 $this->customizer->add_control(
8014 new DimensionControl(
8015 $this->customizer,
8016 'post_reactions_margin_top_layout_9',
8017 [
8018 'type' => 'betterdocs-dimension',
8019 'section' => 'betterdocs_single_docs_settings',
8020 'settings' => 'post_reactions_margin_top_layout_9',
8021 'label' => __( 'Top', 'betterdocs' ),
8022 'priority' => 163,
8023 'input_attrs' => [
8024 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
8025 ]
8026 ]
8027 )
8028 );
8029
8030 $this->customizer->add_setting(
8031 'post_reactions_margin_right_layout_9',
8032 [
8033 'default' => $this->defaults['post_reactions_margin_right_layout_9'],
8034 'capability' => 'edit_theme_options',
8035 'transport' => 'postMessage',
8036 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8037 ]
8038 );
8039
8040 $this->customizer->add_control(
8041 new DimensionControl(
8042 $this->customizer,
8043 'post_reactions_margin_right_layout_9',
8044 [
8045 'type' => 'betterdocs-dimension',
8046 'section' => 'betterdocs_single_docs_settings',
8047 'settings' => 'post_reactions_margin_right_layout_9',
8048 'label' => __( 'Right', 'betterdocs' ),
8049 'priority' => 163,
8050 'input_attrs' => [
8051 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
8052 ]
8053 ]
8054 )
8055 );
8056
8057 $this->customizer->add_setting(
8058 'post_reactions_margin_bottom_layout_9',
8059 [
8060 'default' => $this->defaults['post_reactions_margin_bottom_layout_9'],
8061 'capability' => 'edit_theme_options',
8062 'transport' => 'postMessage',
8063 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8064 ]
8065 );
8066
8067 $this->customizer->add_control(
8068 new DimensionControl(
8069 $this->customizer,
8070 'post_reactions_margin_bottom_layout_9',
8071 [
8072 'type' => 'betterdocs-dimension',
8073 'section' => 'betterdocs_single_docs_settings',
8074 'settings' => 'post_reactions_margin_bottom_layout_9',
8075 'label' => __( 'Bottom', 'betterdocs' ),
8076 'priority' => 163,
8077 'input_attrs' => [
8078 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
8079 ]
8080 ]
8081 )
8082 );
8083
8084 $this->customizer->add_setting(
8085 'post_reactions_margin_left_layout_9',
8086 [
8087 'default' => $this->defaults['post_reactions_margin_left_layout_9'],
8088 'capability' => 'edit_theme_options',
8089 'transport' => 'postMessage',
8090 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8091 ]
8092 );
8093
8094 $this->customizer->add_control(
8095 new DimensionControl(
8096 $this->customizer,
8097 'post_reactions_margin_left_layout_9',
8098 [
8099 'type' => 'betterdocs-dimension',
8100 'section' => 'betterdocs_single_docs_settings',
8101 'settings' => 'post_reactions_margin_left_layout_9',
8102 'label' => __( 'Left', 'betterdocs' ),
8103 'priority' => 163,
8104 'input_attrs' => [
8105 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
8106 ]
8107 ]
8108 )
8109 );
8110 }
8111
8112
8113 public function post_reactions_padding_layout_8() {
8114 $this->customizer->add_setting(
8115 'post_reactions_padding_layout_8',
8116 [
8117 'default' => $this->defaults['post_reactions_padding_layout_8'],
8118 'capability' => 'edit_theme_options',
8119 'transport' => 'postMessage',
8120 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8121 ]
8122 );
8123
8124 $this->customizer->add_control(
8125 new TitleControl(
8126 $this->customizer,
8127 'post_reactions_padding_layout_8',
8128 [
8129 'type' => 'betterdocs-title',
8130 'section' => 'betterdocs_single_docs_settings',
8131 'settings' => 'post_reactions_padding_layout_8',
8132 'label' => __( 'Padding', 'betterdocs' ),
8133 'priority' => 163,
8134 'input_attrs' => [
8135 'id' => 'post_reactions_padding_layout_8',
8136 'class' => 'betterdocs-dimension'
8137 ]
8138 ]
8139 )
8140 );
8141
8142 $this->customizer->add_setting(
8143 'post_reactions_padding_top_layout_8',
8144 [
8145 'default' => $this->defaults['post_reactions_padding_top_layout_8'],
8146 'capability' => 'edit_theme_options',
8147 'transport' => 'postMessage',
8148 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8149 ]
8150 );
8151
8152 $this->customizer->add_control(
8153 new DimensionControl(
8154 $this->customizer,
8155 'post_reactions_padding_top_layout_8',
8156 [
8157 'type' => 'betterdocs-dimension',
8158 'section' => 'betterdocs_single_docs_settings',
8159 'settings' => 'post_reactions_padding_top_layout_8',
8160 'label' => __( 'Top', 'betterdocs' ),
8161 'priority' => 163,
8162 'input_attrs' => [
8163 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
8164 ]
8165 ]
8166 )
8167 );
8168
8169 $this->customizer->add_setting(
8170 'post_reactions_padding_right_layout_8',
8171 [
8172 'default' => $this->defaults['post_reactions_padding_right_layout_8'],
8173 'capability' => 'edit_theme_options',
8174 'transport' => 'postMessage',
8175 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8176 ]
8177 );
8178
8179 $this->customizer->add_control(
8180 new DimensionControl(
8181 $this->customizer,
8182 'post_reactions_padding_right_layout_8',
8183 [
8184 'type' => 'betterdocs-dimension',
8185 'section' => 'betterdocs_single_docs_settings',
8186 'settings' => 'post_reactions_padding_right_layout_8',
8187 'label' => __( 'Right', 'betterdocs' ),
8188 'priority' => 163,
8189 'input_attrs' => [
8190 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
8191 ]
8192 ]
8193 )
8194 );
8195
8196 $this->customizer->add_setting(
8197 'post_reactions_padding_bottom_layout_8',
8198 [
8199 'default' => $this->defaults['post_reactions_padding_bottom_layout_8'],
8200 'capability' => 'edit_theme_options',
8201 'transport' => 'postMessage',
8202 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8203 ]
8204 );
8205
8206 $this->customizer->add_control(
8207 new DimensionControl(
8208 $this->customizer,
8209 'post_reactions_padding_bottom_layout_8',
8210 [
8211 'type' => 'betterdocs-dimension',
8212 'section' => 'betterdocs_single_docs_settings',
8213 'settings' => 'post_reactions_padding_bottom_layout_8',
8214 'label' => __( 'Bottom', 'betterdocs' ),
8215 'priority' => 163,
8216 'input_attrs' => [
8217 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
8218 ]
8219 ]
8220 )
8221 );
8222
8223 $this->customizer->add_setting(
8224 'post_reactions_padding_left_layout_8',
8225 [
8226 'default' => $this->defaults['post_reactions_padding_left_layout_8'],
8227 'capability' => 'edit_theme_options',
8228 'transport' => 'postMessage',
8229 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8230 ]
8231 );
8232
8233 $this->customizer->add_control(
8234 new DimensionControl(
8235 $this->customizer,
8236 'post_reactions_padding_left_layout_8',
8237 [
8238 'type' => 'betterdocs-dimension',
8239 'section' => 'betterdocs_single_docs_settings',
8240 'settings' => 'post_reactions_padding_left_layout_8',
8241 'label' => __( 'Left', 'betterdocs' ),
8242 'priority' => 163,
8243 'input_attrs' => [
8244 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
8245 ]
8246 ]
8247 )
8248 );
8249 }
8250
8251 public function post_reactions_padding_layout_9() {
8252 $this->customizer->add_setting(
8253 'post_reactions_padding_layout_9',
8254 [
8255 'default' => $this->defaults['post_reactions_padding_layout_9'],
8256 'capability' => 'edit_theme_options',
8257 'transport' => 'postMessage',
8258 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8259 ]
8260 );
8261
8262 $this->customizer->add_control(
8263 new TitleControl(
8264 $this->customizer,
8265 'post_reactions_padding_layout_9',
8266 [
8267 'type' => 'betterdocs-title',
8268 'section' => 'betterdocs_single_docs_settings',
8269 'settings' => 'post_reactions_padding_layout_9',
8270 'label' => __( 'Padding', 'betterdocs' ),
8271 'priority' => 163,
8272 'input_attrs' => [
8273 'id' => 'post_reactions_padding_layout_9',
8274 'class' => 'betterdocs-dimension'
8275 ]
8276 ]
8277 )
8278 );
8279
8280 $this->customizer->add_setting(
8281 'post_reactions_padding_top_layout_9',
8282 [
8283 'default' => $this->defaults['post_reactions_padding_top_layout_9'],
8284 'capability' => 'edit_theme_options',
8285 'transport' => 'postMessage',
8286 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8287 ]
8288 );
8289
8290 $this->customizer->add_control(
8291 new DimensionControl(
8292 $this->customizer,
8293 'post_reactions_padding_top_layout_9',
8294 [
8295 'type' => 'betterdocs-dimension',
8296 'section' => 'betterdocs_single_docs_settings',
8297 'settings' => 'post_reactions_padding_top_layout_9',
8298 'label' => __( 'Top', 'betterdocs' ),
8299 'priority' => 163,
8300 'input_attrs' => [
8301 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
8302 ]
8303 ]
8304 )
8305 );
8306
8307 $this->customizer->add_setting(
8308 'post_reactions_padding_right_layout_9',
8309 [
8310 'default' => $this->defaults['post_reactions_padding_right_layout_9'],
8311 'capability' => 'edit_theme_options',
8312 'transport' => 'postMessage',
8313 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8314 ]
8315 );
8316
8317 $this->customizer->add_control(
8318 new DimensionControl(
8319 $this->customizer,
8320 'post_reactions_padding_right_layout_9',
8321 [
8322 'type' => 'betterdocs-dimension',
8323 'section' => 'betterdocs_single_docs_settings',
8324 'settings' => 'post_reactions_padding_right_layout_9',
8325 'label' => __( 'Right', 'betterdocs' ),
8326 'priority' => 163,
8327 'input_attrs' => [
8328 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
8329 ]
8330 ]
8331 )
8332 );
8333
8334 $this->customizer->add_setting(
8335 'post_reactions_padding_bottom_layout_9',
8336 [
8337 'default' => $this->defaults['post_reactions_padding_bottom_layout_9'],
8338 'capability' => 'edit_theme_options',
8339 'transport' => 'postMessage',
8340 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8341 ]
8342 );
8343
8344 $this->customizer->add_control(
8345 new DimensionControl(
8346 $this->customizer,
8347 'post_reactions_padding_bottom_layout_9',
8348 [
8349 'type' => 'betterdocs-dimension',
8350 'section' => 'betterdocs_single_docs_settings',
8351 'settings' => 'post_reactions_padding_bottom_layout_8',
8352 'label' => __( 'Bottom', 'betterdocs' ),
8353 'priority' => 163,
8354 'input_attrs' => [
8355 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
8356 ]
8357 ]
8358 )
8359 );
8360
8361 $this->customizer->add_setting(
8362 'post_reactions_padding_left_layout_9',
8363 [
8364 'default' => $this->defaults['post_reactions_padding_left_layout_9'],
8365 'capability' => 'edit_theme_options',
8366 'transport' => 'postMessage',
8367 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8368 ]
8369 );
8370
8371 $this->customizer->add_control(
8372 new DimensionControl(
8373 $this->customizer,
8374 'post_reactions_padding_left_layout_9',
8375 [
8376 'type' => 'betterdocs-dimension',
8377 'section' => 'betterdocs_single_docs_settings',
8378 'settings' => 'post_reactions_padding_left_layout_8',
8379 'label' => __( 'Left', 'betterdocs' ),
8380 'priority' => 163,
8381 'input_attrs' => [
8382 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
8383 ]
8384 ]
8385 )
8386 );
8387 }
8388
8389 public function post_reactions_border_layout_8() {
8390 $this->customizer->add_setting(
8391 'post_reactions_border_layout_8',
8392 [
8393 'default' => $this->defaults['post_reactions_border_layout_8'],
8394 'capability' => 'edit_theme_options',
8395 'transport' => 'postMessage',
8396 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8397 ]
8398 );
8399
8400 $this->customizer->add_control(
8401 new TitleControl(
8402 $this->customizer,
8403 'post_reactions_border_layout_8',
8404 [
8405 'type' => 'betterdocs-title',
8406 'section' => 'betterdocs_single_docs_settings',
8407 'settings' => 'post_reactions_border_layout_8',
8408 'label' => __( 'Border', 'betterdocs' ),
8409 'priority' => 163,
8410 'input_attrs' => [
8411 'id' => 'post_reactions_border_layout_8',
8412 'class' => 'betterdocs-dimension'
8413 ]
8414 ]
8415 )
8416 );
8417
8418 $this->customizer->add_setting(
8419 'post_reactions_border_top_layout_8',
8420 [
8421 'default' => $this->defaults['post_reactions_border_top_layout_8'],
8422 'capability' => 'edit_theme_options',
8423 'transport' => 'postMessage',
8424 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8425 ]
8426 );
8427
8428 $this->customizer->add_control(
8429 new DimensionControl(
8430 $this->customizer,
8431 'post_reactions_border_top_layout_8',
8432 [
8433 'type' => 'betterdocs-dimension',
8434 'section' => 'betterdocs_single_docs_settings',
8435 'settings' => 'post_reactions_border_top_layout_8',
8436 'label' => __( 'Border Top', 'betterdocs' ),
8437 'priority' => 163,
8438 'input_attrs' => [
8439 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
8440 ]
8441 ]
8442 )
8443 );
8444
8445 $this->customizer->add_setting(
8446 'post_reactions_border_right_layout_8',
8447 [
8448 'default' => $this->defaults['post_reactions_border_right_layout_8'],
8449 'capability' => 'edit_theme_options',
8450 'transport' => 'postMessage',
8451 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8452 ]
8453 );
8454
8455 $this->customizer->add_control(
8456 new DimensionControl(
8457 $this->customizer,
8458 'post_reactions_border_right_layout_8',
8459 [
8460 'type' => 'betterdocs-dimension',
8461 'section' => 'betterdocs_single_docs_settings',
8462 'settings' => 'post_reactions_border_right_layout_8',
8463 'label' => __( 'Border Right', 'betterdocs' ),
8464 'priority' => 163,
8465 'input_attrs' => [
8466 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
8467 ]
8468 ]
8469 )
8470 );
8471
8472 $this->customizer->add_setting(
8473 'post_reactions_border_bottom_layout_8',
8474 [
8475 'default' => $this->defaults['post_reactions_border_bottom_layout_8'],
8476 'capability' => 'edit_theme_options',
8477 'transport' => 'postMessage',
8478 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8479 ]
8480 );
8481
8482 $this->customizer->add_control(
8483 new DimensionControl(
8484 $this->customizer,
8485 'post_reactions_border_bottom_layout_8',
8486 [
8487 'type' => 'betterdocs-dimension',
8488 'section' => 'betterdocs_single_docs_settings',
8489 'settings' => 'post_reactions_border_bottom_layout_8',
8490 'label' => __( 'Border Bottom', 'betterdocs' ),
8491 'priority' => 163,
8492 'input_attrs' => [
8493 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
8494 ]
8495 ]
8496 )
8497 );
8498
8499 $this->customizer->add_setting(
8500 'post_reactions_border_left_layout_8',
8501 [
8502 'default' => $this->defaults['post_reactions_border_left_layout_8'],
8503 'capability' => 'edit_theme_options',
8504 'transport' => 'postMessage',
8505 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8506 ]
8507 );
8508
8509 $this->customizer->add_control(
8510 new DimensionControl(
8511 $this->customizer,
8512 'post_reactions_border_left_layout_8',
8513 [
8514 'type' => 'betterdocs-dimension',
8515 'section' => 'betterdocs_single_docs_settings',
8516 'settings' => 'post_reactions_border_left_layout_8',
8517 'label' => __( 'Border Left', 'betterdocs' ),
8518 'priority' => 163,
8519 'input_attrs' => [
8520 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
8521 ]
8522 ]
8523 )
8524 );
8525 }
8526
8527 // public function post_reactions_icon_svg_color_layout_8_9() {
8528 // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_svg_color_layout_8_9', [
8529 // 'default' => $this->defaults['betterdocs_post_reactions_icon_svg_color_layout_8_9'],
8530 // 'capability' => 'edit_theme_options',
8531 // 'transport' => 'postMessage',
8532 // 'sanitize_callback' => [$this->sanitizer, 'rgba']
8533 // ] );
8534
8535 // $this->customizer->add_control(
8536 // new AlphaColorControl(
8537 // $this->customizer,
8538 // 'betterdocs_post_reactions_icon_svg_color_layout_8_9',
8539 // [
8540 // 'label' => __( 'Reactions Icon Color', 'betterdocs' ),
8541 // 'priority' => 163,
8542 // 'section' => 'betterdocs_single_docs_settings',
8543 // 'settings' => 'betterdocs_post_reactions_icon_svg_color_layout_8_9'
8544 // ]
8545 // )
8546 // );
8547 // }
8548
8549 // public function post_reactions_icon_hover_bg_color_layout_8_9() {
8550 // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9', [
8551 // 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_bg_color_layout_8_9'],
8552 // 'capability' => 'edit_theme_options',
8553 // 'sanitize_callback' => [$this->sanitizer, 'rgba']
8554 // ] );
8555
8556 // $this->customizer->add_control(
8557 // new AlphaColorControl(
8558 // $this->customizer,
8559 // 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9',
8560 // [
8561 // 'label' => __( 'Reactions Icon Hover Background Color', 'betterdocs' ),
8562 // 'priority' => 163,
8563 // 'section' => 'betterdocs_single_docs_settings',
8564 // 'settings' => 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9'
8565 // ]
8566 // )
8567 // );
8568 // }
8569
8570 // public function post_reactions_icon_hover_svg_color_layout_8_9() {
8571 // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9', [
8572 // 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_svg_color_layout_8_9'],
8573 // 'capability' => 'edit_theme_options',
8574 // 'sanitize_callback' => [$this->sanitizer, 'rgba']
8575 // ] );
8576
8577 // $this->customizer->add_control(
8578 // new AlphaColorControl(
8579 // $this->customizer,
8580 // 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9',
8581 // [
8582 // 'label' => __( 'Reactions Icon Hover Color', 'betterdocs' ),
8583 // 'priority' => 163,
8584 // 'section' => 'betterdocs_single_docs_settings',
8585 // 'settings' => 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9'
8586 // ]
8587 // )
8588 // );
8589 // }
8590
8591 public function attachments_heading() {
8592 $this->customizer->add_setting(
8593 'betterdocs_single_doc_attachment_heading',
8594 [
8595 'default' => '',
8596 'sanitize_callback' => 'esc_html'
8597 ]
8598 );
8599
8600 $this->customizer->add_control(
8601 new SeparatorControl(
8602 $this->customizer,
8603 'betterdocs_single_doc_attachment_heading',
8604 [
8605 'label' => __( 'Attachments', 'betterdocs' ),
8606 'priority' => 163,
8607 'settings' => 'betterdocs_single_doc_attachment_heading',
8608 'section' => 'betterdocs_single_docs_settings'
8609 ]
8610 )
8611 );
8612 }
8613
8614 public function betterdocs_doc_single_attachment_content_bg_color() {
8615 $this->customizer->add_setting(
8616 'betterdocs_doc_single_attachment_content_bg_color',
8617 [
8618 'default' => $this->defaults['betterdocs_doc_single_attachment_content_bg_color'],
8619 'capability' => 'edit_theme_options',
8620 'transport' => 'postMessage',
8621 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
8622 ]
8623 );
8624
8625 $this->customizer->add_control(
8626 new AlphaColorControl(
8627 $this->customizer,
8628 'betterdocs_doc_single_attachment_content_bg_color',
8629 [
8630 'label' => __( 'Content Background Color', 'betterdocs' ),
8631 'section' => 'betterdocs_single_docs_settings',
8632 'settings' => 'betterdocs_doc_single_attachment_content_bg_color',
8633 'priority' => 163
8634 ]
8635 )
8636 );
8637 }
8638
8639 public function betterdocs_doc_single_attachment_content_padding() {
8640 $this->customizer->add_setting(
8641 'betterdocs_doc_single_attachment_content_padding',
8642 [
8643 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding'],
8644 'capability' => 'edit_theme_options',
8645 'transport' => 'postMessage',
8646 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8647
8648 ]
8649 );
8650
8651 $this->customizer->add_control(
8652 new TitleControl(
8653 $this->customizer,
8654 'betterdocs_doc_single_attachment_content_padding',
8655 [
8656 'type' => 'betterdocs-title',
8657 'section' => 'betterdocs_single_docs_settings',
8658 'settings' => 'betterdocs_doc_single_attachment_content_padding',
8659 'label' => __( 'Content Padding', 'betterdocs' ),
8660 'priority' => 163,
8661 'input_attrs' => [
8662 'id' => 'betterdocs_doc_single_attachment_content_padding',
8663 'class' => 'betterdocs-dimension'
8664 ]
8665 ]
8666 )
8667 );
8668
8669 $this->customizer->add_setting(
8670 'betterdocs_doc_single_attachment_content_padding_top',
8671 [
8672 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_top'],
8673 'capability' => 'edit_theme_options',
8674 'transport' => 'postMessage',
8675 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8676 ]
8677 );
8678
8679 $this->customizer->add_control(
8680 new DimensionControl(
8681 $this->customizer,
8682 'betterdocs_doc_single_attachment_content_padding_top',
8683 [
8684 'type' => 'betterdocs-dimension',
8685 'section' => 'betterdocs_single_docs_settings',
8686 'settings' => 'betterdocs_doc_single_attachment_content_padding_top',
8687 'label' => __( 'Top', 'betterdocs' ),
8688 'priority' => 163,
8689 'input_attrs' => [
8690 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
8691 ]
8692 ]
8693 )
8694 );
8695
8696 $this->customizer->add_setting(
8697 'betterdocs_doc_single_attachment_content_padding_right',
8698 [
8699 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_right'],
8700 'capability' => 'edit_theme_options',
8701 'transport' => 'postMessage',
8702 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8703
8704 ]
8705 );
8706
8707 $this->customizer->add_control(
8708 new DimensionControl(
8709 $this->customizer,
8710 'betterdocs_doc_single_attachment_content_padding_right',
8711 [
8712 'type' => 'betterdocs-dimension',
8713 'section' => 'betterdocs_single_docs_settings',
8714 'settings' => 'betterdocs_doc_single_attachment_content_padding_right',
8715 'label' => __( 'Right', 'betterdocs' ),
8716 'priority' => 163,
8717 'input_attrs' => [
8718 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
8719 ]
8720 ]
8721 )
8722 );
8723
8724 $this->customizer->add_setting(
8725 'betterdocs_doc_single_attachment_content_padding_bottom',
8726 [
8727 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_bottom'],
8728 'capability' => 'edit_theme_options',
8729 'transport' => 'postMessage',
8730 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8731
8732 ]
8733 );
8734
8735 $this->customizer->add_control(
8736 new DimensionControl(
8737 $this->customizer,
8738 'betterdocs_doc_single_attachment_content_padding_bottom',
8739 [
8740 'type' => 'betterdocs-dimension',
8741 'section' => 'betterdocs_single_docs_settings',
8742 'settings' => 'betterdocs_doc_single_attachment_content_padding_bottom',
8743 'label' => __( 'Bottom', 'betterdocs' ),
8744 'priority' => 163,
8745 'input_attrs' => [
8746 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
8747 ]
8748 ]
8749 )
8750 );
8751
8752 $this->customizer->add_setting(
8753 'betterdocs_doc_single_attachment_content_padding_left',
8754 [
8755 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_left'],
8756 'capability' => 'edit_theme_options',
8757 'transport' => 'postMessage',
8758 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8759
8760 ]
8761 );
8762
8763 $this->customizer->add_control(
8764 new DimensionControl(
8765 $this->customizer,
8766 'betterdocs_doc_single_attachment_content_padding_left',
8767 [
8768 'type' => 'betterdocs-dimension',
8769 'section' => 'betterdocs_single_docs_settings',
8770 'settings' => 'betterdocs_doc_single_attachment_content_padding_left',
8771 'label' => __( 'Left', 'betterdocs' ),
8772 'priority' => 163,
8773 'input_attrs' => [
8774 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
8775 ]
8776 ]
8777 )
8778 );
8779 }
8780
8781 public function betterdocs_doc_single_attachment_content_margin() {
8782 $this->customizer->add_setting(
8783 'betterdocs_doc_single_attachment_content_margin',
8784 [
8785 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin'],
8786 'capability' => 'edit_theme_options',
8787 'transport' => 'postMessage',
8788 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8789
8790 ]
8791 );
8792
8793 $this->customizer->add_control(
8794 new TitleControl(
8795 $this->customizer,
8796 'betterdocs_doc_single_attachment_content_margin',
8797 [
8798 'type' => 'betterdocs-title',
8799 'section' => 'betterdocs_single_docs_settings',
8800 'settings' => 'betterdocs_doc_single_attachment_content_margin',
8801 'label' => __( 'Content Margin', 'betterdocs' ),
8802 'priority' => 163,
8803 'input_attrs' => [
8804 'id' => 'betterdocs_doc_single_attachment_content_margin',
8805 'class' => 'betterdocs-dimension'
8806 ]
8807 ]
8808 )
8809 );
8810
8811 $this->customizer->add_setting(
8812 'betterdocs_doc_single_attachment_content_margin_top',
8813 [
8814 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_top'],
8815 'capability' => 'edit_theme_options',
8816 'transport' => 'postMessage',
8817 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8818 ]
8819 );
8820
8821 $this->customizer->add_control(
8822 new DimensionControl(
8823 $this->customizer,
8824 'betterdocs_doc_single_attachment_content_margin_top',
8825 [
8826 'type' => 'betterdocs-dimension',
8827 'section' => 'betterdocs_single_docs_settings',
8828 'settings' => 'betterdocs_doc_single_attachment_content_margin_top',
8829 'label' => __( 'Top', 'betterdocs' ),
8830 'priority' => 163,
8831 'input_attrs' => [
8832 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
8833 ]
8834 ]
8835 )
8836 );
8837
8838 $this->customizer->add_setting(
8839 'betterdocs_doc_single_attachment_content_margin_right',
8840 [
8841 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_right'],
8842 'capability' => 'edit_theme_options',
8843 'transport' => 'postMessage',
8844 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8845
8846 ]
8847 );
8848
8849 $this->customizer->add_control(
8850 new DimensionControl(
8851 $this->customizer,
8852 'betterdocs_doc_single_attachment_content_margin_right',
8853 [
8854 'type' => 'betterdocs-dimension',
8855 'section' => 'betterdocs_single_docs_settings',
8856 'settings' => 'betterdocs_doc_single_attachment_content_margin_right',
8857 'label' => __( 'Right', 'betterdocs' ),
8858 'priority' => 163,
8859 'input_attrs' => [
8860 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
8861 ]
8862 ]
8863 )
8864 );
8865
8866 $this->customizer->add_setting(
8867 'betterdocs_doc_single_attachment_content_margin_bottom',
8868 [
8869 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_bottom'],
8870 'capability' => 'edit_theme_options',
8871 'transport' => 'postMessage',
8872 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8873
8874 ]
8875 );
8876
8877 $this->customizer->add_control(
8878 new DimensionControl(
8879 $this->customizer,
8880 'betterdocs_doc_single_attachment_content_margin_bottom',
8881 [
8882 'type' => 'betterdocs-dimension',
8883 'section' => 'betterdocs_single_docs_settings',
8884 'settings' => 'betterdocs_doc_single_attachment_content_margin_bottom',
8885 'label' => __( 'Bottom', 'betterdocs' ),
8886 'priority' => 163,
8887 'input_attrs' => [
8888 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
8889 ]
8890 ]
8891 )
8892 );
8893
8894 $this->customizer->add_setting(
8895 'betterdocs_doc_single_attachment_content_margin_left',
8896 [
8897 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_left'],
8898 'capability' => 'edit_theme_options',
8899 'transport' => 'postMessage',
8900 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8901
8902 ]
8903 );
8904
8905 $this->customizer->add_control(
8906 new DimensionControl(
8907 $this->customizer,
8908 'betterdocs_doc_single_attachment_content_margin_left',
8909 [
8910 'type' => 'betterdocs-dimension',
8911 'section' => 'betterdocs_single_docs_settings',
8912 'settings' => 'betterdocs_doc_single_attachment_content_margin_left',
8913 'label' => __( 'Left', 'betterdocs' ),
8914 'priority' => 163,
8915 'input_attrs' => [
8916 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
8917 ]
8918 ]
8919 )
8920 );
8921 }
8922
8923 public function betterdocs_doc_single_attachment_label_color() {
8924 $this->customizer->add_setting(
8925 'betterdocs_doc_single_attachment_label_color',
8926 [
8927 'default' => $this->defaults['betterdocs_doc_single_attachment_label_color'],
8928 'capability' => 'edit_theme_options',
8929 'transport' => 'postMessage',
8930 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
8931 ]
8932 );
8933
8934 $this->customizer->add_control(
8935 new AlphaColorControl(
8936 $this->customizer,
8937 'betterdocs_doc_single_attachment_label_color',
8938 [
8939 'label' => __( 'Label Color', 'betterdocs' ),
8940 'section' => 'betterdocs_single_docs_settings',
8941 'settings' => 'betterdocs_doc_single_attachment_label_color',
8942 'priority' => 163
8943 ]
8944 )
8945 );
8946 }
8947
8948 public function betterdocs_doc_single_attachment_label_padding() {
8949 $this->customizer->add_setting(
8950 'betterdocs_doc_single_attachment_label_padding',
8951 [
8952 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding'],
8953 'capability' => 'edit_theme_options',
8954 'transport' => 'postMessage',
8955 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8956
8957 ]
8958 );
8959
8960 $this->customizer->add_control(
8961 new TitleControl(
8962 $this->customizer,
8963 'betterdocs_doc_single_attachment_label_padding',
8964 [
8965 'type' => 'betterdocs-title',
8966 'section' => 'betterdocs_single_docs_settings',
8967 'settings' => 'betterdocs_doc_single_attachment_label_padding',
8968 'label' => __( 'Label Padding', 'betterdocs' ),
8969 'priority' => 163,
8970 'input_attrs' => [
8971 'id' => 'betterdocs_doc_single_attachment_label_padding',
8972 'class' => 'betterdocs-dimension'
8973 ]
8974 ]
8975 )
8976 );
8977
8978 $this->customizer->add_setting(
8979 'betterdocs_doc_single_attachment_label_padding_top',
8980 [
8981 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_top'],
8982 'capability' => 'edit_theme_options',
8983 'transport' => 'postMessage',
8984 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8985 ]
8986 );
8987
8988 $this->customizer->add_control(
8989 new DimensionControl(
8990 $this->customizer,
8991 'betterdocs_doc_single_attachment_label_padding_top',
8992 [
8993 'type' => 'betterdocs-dimension',
8994 'section' => 'betterdocs_single_docs_settings',
8995 'settings' => 'betterdocs_doc_single_attachment_label_padding_top',
8996 'label' => __( 'Top', 'betterdocs' ),
8997 'priority' => 163,
8998 'input_attrs' => [
8999 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
9000 ]
9001 ]
9002 )
9003 );
9004
9005 $this->customizer->add_setting(
9006 'betterdocs_doc_single_attachment_label_padding_right',
9007 [
9008 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_right'],
9009 'capability' => 'edit_theme_options',
9010 'transport' => 'postMessage',
9011 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9012
9013 ]
9014 );
9015
9016 $this->customizer->add_control(
9017 new DimensionControl(
9018 $this->customizer,
9019 'betterdocs_doc_single_attachment_label_padding_right',
9020 [
9021 'type' => 'betterdocs-dimension',
9022 'section' => 'betterdocs_single_docs_settings',
9023 'settings' => 'betterdocs_doc_single_attachment_label_padding_right',
9024 'label' => __( 'Right', 'betterdocs' ),
9025 'priority' => 163,
9026 'input_attrs' => [
9027 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
9028 ]
9029 ]
9030 )
9031 );
9032
9033 $this->customizer->add_setting(
9034 'betterdocs_doc_single_attachment_label_padding_bottom',
9035 [
9036 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_bottom'],
9037 'capability' => 'edit_theme_options',
9038 'transport' => 'postMessage',
9039 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9040
9041 ]
9042 );
9043
9044 $this->customizer->add_control(
9045 new DimensionControl(
9046 $this->customizer,
9047 'betterdocs_doc_single_attachment_label_padding_bottom',
9048 [
9049 'type' => 'betterdocs-dimension',
9050 'section' => 'betterdocs_single_docs_settings',
9051 'settings' => 'betterdocs_doc_single_attachment_label_padding_bottom',
9052 'label' => __( 'Bottom', 'betterdocs' ),
9053 'priority' => 163,
9054 'input_attrs' => [
9055 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
9056 ]
9057 ]
9058 )
9059 );
9060
9061 $this->customizer->add_setting(
9062 'betterdocs_doc_single_attachment_label_padding_left',
9063 [
9064 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_left'],
9065 'capability' => 'edit_theme_options',
9066 'transport' => 'postMessage',
9067 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9068
9069 ]
9070 );
9071
9072 $this->customizer->add_control(
9073 new DimensionControl(
9074 $this->customizer,
9075 'betterdocs_doc_single_attachment_label_padding_left',
9076 [
9077 'type' => 'betterdocs-dimension',
9078 'section' => 'betterdocs_single_docs_settings',
9079 'settings' => 'betterdocs_doc_single_attachment_label_padding_left',
9080 'label' => __( 'Left', 'betterdocs' ),
9081 'priority' => 163,
9082 'input_attrs' => [
9083 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
9084 ]
9085 ]
9086 )
9087 );
9088 }
9089
9090 public function betterdocs_doc_single_attachment_label_margin() {
9091 $this->customizer->add_setting(
9092 'betterdocs_doc_single_attachment_label_margin',
9093 [
9094 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin'],
9095 'capability' => 'edit_theme_options',
9096 'transport' => 'postMessage',
9097 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9098
9099 ]
9100 );
9101
9102 $this->customizer->add_control(
9103 new TitleControl(
9104 $this->customizer,
9105 'betterdocs_doc_single_attachment_label_margin',
9106 [
9107 'type' => 'betterdocs-title',
9108 'section' => 'betterdocs_single_docs_settings',
9109 'settings' => 'betterdocs_doc_single_attachment_label_margin',
9110 'label' => __( 'Label Margin', 'betterdocs' ),
9111 'priority' => 163,
9112 'input_attrs' => [
9113 'id' => 'betterdocs_doc_single_attachment_label_margin',
9114 'class' => 'betterdocs-dimension'
9115 ]
9116 ]
9117 )
9118 );
9119
9120 $this->customizer->add_setting(
9121 'betterdocs_doc_single_attachment_label_margin_top',
9122 [
9123 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_top'],
9124 'capability' => 'edit_theme_options',
9125 'transport' => 'postMessage',
9126 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9127 ]
9128 );
9129
9130 $this->customizer->add_control(
9131 new DimensionControl(
9132 $this->customizer,
9133 'betterdocs_doc_single_attachment_label_margin_top',
9134 [
9135 'type' => 'betterdocs-dimension',
9136 'section' => 'betterdocs_single_docs_settings',
9137 'settings' => 'betterdocs_doc_single_attachment_label_margin_top',
9138 'label' => __( 'Top', 'betterdocs' ),
9139 'priority' => 163,
9140 'input_attrs' => [
9141 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
9142 ]
9143 ]
9144 )
9145 );
9146
9147 $this->customizer->add_setting(
9148 'betterdocs_doc_single_attachment_label_margin_right',
9149 [
9150 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_right'],
9151 'capability' => 'edit_theme_options',
9152 'transport' => 'postMessage',
9153 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9154
9155 ]
9156 );
9157
9158 $this->customizer->add_control(
9159 new DimensionControl(
9160 $this->customizer,
9161 'betterdocs_doc_single_attachment_label_margin_right',
9162 [
9163 'type' => 'betterdocs-dimension',
9164 'section' => 'betterdocs_single_docs_settings',
9165 'settings' => 'betterdocs_doc_single_attachment_label_margin_right',
9166 'label' => __( 'Right', 'betterdocs' ),
9167 'priority' => 163,
9168 'input_attrs' => [
9169 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
9170 ]
9171 ]
9172 )
9173 );
9174
9175 $this->customizer->add_setting(
9176 'betterdocs_doc_single_attachment_label_margin_bottom',
9177 [
9178 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_bottom'],
9179 'capability' => 'edit_theme_options',
9180 'transport' => 'postMessage',
9181 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9182 ]
9183 );
9184
9185 $this->customizer->add_control(
9186 new DimensionControl(
9187 $this->customizer,
9188 'betterdocs_doc_single_attachment_label_margin_bottom',
9189 [
9190 'type' => 'betterdocs-dimension',
9191 'section' => 'betterdocs_single_docs_settings',
9192 'settings' => 'betterdocs_doc_single_attachment_label_margin_bottom',
9193 'label' => __( 'Bottom', 'betterdocs' ),
9194 'priority' => 163,
9195 'input_attrs' => [
9196 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
9197 ]
9198 ]
9199 )
9200 );
9201
9202 $this->customizer->add_setting(
9203 'betterdocs_doc_single_attachment_label_margin_left',
9204 [
9205 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_left'],
9206 'capability' => 'edit_theme_options',
9207 'transport' => 'postMessage',
9208 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9209 ]
9210 );
9211
9212 $this->customizer->add_control(
9213 new DimensionControl(
9214 $this->customizer,
9215 'betterdocs_doc_single_attachment_label_margin_left',
9216 [
9217 'type' => 'betterdocs-dimension',
9218 'section' => 'betterdocs_single_docs_settings',
9219 'settings' => 'betterdocs_doc_single_attachment_label_margin_left',
9220 'label' => __( 'Left', 'betterdocs' ),
9221 'priority' => 163,
9222 'input_attrs' => [
9223 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
9224 ]
9225 ]
9226 )
9227 );
9228 }
9229
9230 public function betterdocs_doc_single_attachment_list_font_size() {
9231 $this->customizer->add_setting(
9232 'betterdocs_doc_single_attachment_list_font_size',
9233 [
9234 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_size'],
9235 'capability' => 'edit_theme_options',
9236 'transport' => 'postMessage',
9237 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9238
9239 ]
9240 );
9241
9242 $this->customizer->add_control(
9243 new RangeValueControl(
9244 $this->customizer,
9245 'betterdocs_doc_single_attachment_list_font_size',
9246 [
9247 'type' => 'betterdocs-range-value',
9248 'section' => 'betterdocs_single_docs_settings',
9249 'settings' => 'betterdocs_doc_single_attachment_list_font_size',
9250 'label' => __( 'List Font Size', 'betterdocs' ),
9251 'priority' => 163,
9252 'input_attrs' => [
9253 'min' => 0,
9254 'max' => 50,
9255 'step' => 1,
9256 'suffix' => 'px' //optional suffix
9257 ]
9258 ]
9259 )
9260 );
9261 }
9262
9263 public function betterdocs_doc_single_attachment_list_font_weight() {
9264 $this->customizer->add_setting(
9265 'betterdocs_doc_single_attachment_list_font_weight',
9266 [
9267 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_weight'],
9268 'capability' => 'edit_theme_options',
9269 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
9270 ]
9271 );
9272
9273 $this->customizer->add_control(
9274 new WP_Customize_Control(
9275 $this->customizer,
9276 'betterdocs_doc_single_attachment_list_font_weight',
9277 [
9278 'label' => __( 'List Font Weight', 'betterdocs' ),
9279 'section' => 'betterdocs_single_docs_settings',
9280 'settings' => 'betterdocs_doc_single_attachment_list_font_weight',
9281 'type' => 'select',
9282 'choices' => [
9283 'normal' => 'Normal',
9284 '100' => '100',
9285 '200' => '200',
9286 '300' => '300',
9287 '400' => '400',
9288 '500' => '500',
9289 '600' => '600',
9290 '700' => '700',
9291 '800' => '800',
9292 '900' => '900'
9293 ],
9294 'priority' => 163
9295 ]
9296 )
9297 );
9298 }
9299
9300 public function betterdocs_doc_single_attachment_list_extension_color() {
9301 $this->customizer->add_setting(
9302 'betterdocs_doc_single_attachment_list_extension_color',
9303 [
9304 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_color'],
9305 'capability' => 'edit_theme_options',
9306 'transport' => 'postMessage',
9307 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9308 ]
9309 );
9310
9311 $this->customizer->add_control(
9312 new AlphaColorControl(
9313 $this->customizer,
9314 'betterdocs_doc_single_attachment_list_extension_color',
9315 [
9316 'label' => __( 'Extension Color', 'betterdocs' ),
9317 'section' => 'betterdocs_single_docs_settings',
9318 'settings' => 'betterdocs_doc_single_attachment_list_extension_color',
9319 'priority' => 163
9320 ]
9321 )
9322 );
9323 }
9324 public function betterdocs_doc_single_attachment_list_extension_font_size() {
9325 $this->customizer->add_setting(
9326 'betterdocs_doc_single_attachment_list_extension_font_size',
9327 [
9328 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_size'],
9329 'capability' => 'edit_theme_options',
9330 'transport' => 'postMessage',
9331 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9332
9333 ]
9334 );
9335
9336 $this->customizer->add_control(
9337 new RangeValueControl(
9338 $this->customizer,
9339 'betterdocs_doc_single_attachment_list_extension_font_size',
9340 [
9341 'type' => 'betterdocs-range-value',
9342 'section' => 'betterdocs_single_docs_settings',
9343 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_size',
9344 'label' => __( 'Extension Font Size', 'betterdocs' ),
9345 'priority' => 163,
9346 'input_attrs' => [
9347 'min' => 0,
9348 'max' => 50,
9349 'step' => 1,
9350 'suffix' => 'px' //optional suffix
9351 ]
9352 ]
9353 )
9354 );
9355 }
9356
9357 public function betterdocs_doc_single_attachment_list_extension_font_weight() {
9358 $this->customizer->add_setting(
9359 'betterdocs_doc_single_attachment_list_extension_font_weight',
9360 [
9361 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_weight'],
9362 'capability' => 'edit_theme_options',
9363 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
9364 ]
9365 );
9366
9367 $this->customizer->add_control(
9368 new WP_Customize_Control(
9369 $this->customizer,
9370 'betterdocs_doc_single_attachment_list_extension_font_weight',
9371 [
9372 'label' => __( 'Extension Font Weight', 'betterdocs' ),
9373 'section' => 'betterdocs_single_docs_settings',
9374 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_weight',
9375 'type' => 'select',
9376 'choices' => [
9377 'normal' => 'Normal',
9378 '100' => '100',
9379 '200' => '200',
9380 '300' => '300',
9381 '400' => '400',
9382 '500' => '500',
9383 '600' => '600',
9384 '700' => '700',
9385 '800' => '800',
9386 '900' => '900'
9387 ],
9388 'priority' => 163
9389 ]
9390 )
9391 );
9392 }
9393
9394 public function betterdocs_doc_single_attachment_list_color() {
9395 $this->customizer->add_setting(
9396 'betterdocs_doc_single_attachment_list_color',
9397 [
9398 'default' => $this->defaults['betterdocs_doc_single_attachment_list_color'],
9399 'capability' => 'edit_theme_options',
9400 'transport' => 'postMessage',
9401 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9402 ]
9403 );
9404
9405 $this->customizer->add_control(
9406 new AlphaColorControl(
9407 $this->customizer,
9408 'betterdocs_doc_single_attachment_list_color',
9409 [
9410 'label' => __( 'List Color', 'betterdocs' ),
9411 'section' => 'betterdocs_single_docs_settings',
9412 'settings' => 'betterdocs_doc_single_attachment_list_color',
9413 'priority' => 163
9414 ]
9415 )
9416 );
9417 }
9418
9419 public function betterdocs_doc_single_attachment_list_background_color() {
9420 $this->customizer->add_setting(
9421 'betterdocs_doc_single_attachment_list_background_color',
9422 [
9423 'default' => $this->defaults['betterdocs_doc_single_attachment_list_background_color'],
9424 'capability' => 'edit_theme_options',
9425 'transport' => 'postMessage',
9426 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9427 ]
9428 );
9429
9430 $this->customizer->add_control(
9431 new AlphaColorControl(
9432 $this->customizer,
9433 'betterdocs_doc_single_attachment_list_background_color',
9434 [
9435 'label' => __( 'List Background Color', 'betterdocs' ),
9436 'section' => 'betterdocs_single_docs_settings',
9437 'settings' => 'betterdocs_doc_single_attachment_list_background_color',
9438 'priority' => 163
9439 ]
9440 )
9441 );
9442 }
9443
9444 public function betterdocs_doc_single_attachment_list_padding() {
9445 $this->customizer->add_setting(
9446 'betterdocs_doc_single_attachment_list_padding',
9447 [
9448 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding'],
9449 'capability' => 'edit_theme_options',
9450 'transport' => 'postMessage',
9451 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9452
9453 ]
9454 );
9455
9456 $this->customizer->add_control(
9457 new TitleControl(
9458 $this->customizer,
9459 'betterdocs_doc_single_attachment_list_padding',
9460 [
9461 'type' => 'betterdocs-title',
9462 'section' => 'betterdocs_single_docs_settings',
9463 'settings' => 'betterdocs_doc_single_attachment_list_padding',
9464 'label' => __( 'List Padding', 'betterdocs' ),
9465 'priority' => 163,
9466 'input_attrs' => [
9467 'id' => 'betterdocs_doc_single_attachment_list_padding',
9468 'class' => 'betterdocs-dimension'
9469 ]
9470 ]
9471 )
9472 );
9473
9474 $this->customizer->add_setting(
9475 'betterdocs_doc_single_attachment_list_padding_top',
9476 [
9477 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_top'],
9478 'capability' => 'edit_theme_options',
9479 'transport' => 'postMessage',
9480 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9481 ]
9482 );
9483
9484 $this->customizer->add_control(
9485 new DimensionControl(
9486 $this->customizer,
9487 'betterdocs_doc_single_attachment_list_padding_top',
9488 [
9489 'type' => 'betterdocs-dimension',
9490 'section' => 'betterdocs_single_docs_settings',
9491 'settings' => 'betterdocs_doc_single_attachment_list_padding_top',
9492 'label' => __( 'Top', 'betterdocs' ),
9493 'priority' => 163,
9494 'input_attrs' => [
9495 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
9496 ]
9497 ]
9498 )
9499 );
9500
9501 $this->customizer->add_setting(
9502 'betterdocs_doc_single_attachment_list_padding_right',
9503 [
9504 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_right'],
9505 'capability' => 'edit_theme_options',
9506 'transport' => 'postMessage',
9507 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9508
9509 ]
9510 );
9511
9512 $this->customizer->add_control(
9513 new DimensionControl(
9514 $this->customizer,
9515 'betterdocs_doc_single_attachment_list_padding_right',
9516 [
9517 'type' => 'betterdocs-dimension',
9518 'section' => 'betterdocs_single_docs_settings',
9519 'settings' => 'betterdocs_doc_single_attachment_list_padding_right',
9520 'label' => __( 'Right', 'betterdocs' ),
9521 'priority' => 163,
9522 'input_attrs' => [
9523 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
9524 ]
9525 ]
9526 )
9527 );
9528
9529 $this->customizer->add_setting(
9530 'betterdocs_doc_single_attachment_list_padding_bottom',
9531 [
9532 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_bottom'],
9533 'capability' => 'edit_theme_options',
9534 'transport' => 'postMessage',
9535 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9536 ]
9537 );
9538
9539 $this->customizer->add_control(
9540 new DimensionControl(
9541 $this->customizer,
9542 'betterdocs_doc_single_attachment_list_padding_bottom',
9543 [
9544 'type' => 'betterdocs-dimension',
9545 'section' => 'betterdocs_single_docs_settings',
9546 'settings' => 'betterdocs_doc_single_attachment_list_padding_bottom',
9547 'label' => __( 'Bottom', 'betterdocs' ),
9548 'priority' => 163,
9549 'input_attrs' => [
9550 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
9551 ]
9552 ]
9553 )
9554 );
9555
9556 $this->customizer->add_setting(
9557 'betterdocs_doc_single_attachment_list_padding_left',
9558 [
9559 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_left'],
9560 'capability' => 'edit_theme_options',
9561 'transport' => 'postMessage',
9562 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9563 ]
9564 );
9565
9566 $this->customizer->add_control(
9567 new DimensionControl(
9568 $this->customizer,
9569 'betterdocs_doc_single_attachment_list_padding_left',
9570 [
9571 'type' => 'betterdocs-dimension',
9572 'section' => 'betterdocs_single_docs_settings',
9573 'settings' => 'betterdocs_doc_single_attachment_list_padding_left',
9574 'label' => __( 'Left', 'betterdocs' ),
9575 'priority' => 163,
9576 'input_attrs' => [
9577 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
9578 ]
9579 ]
9580 )
9581 );
9582 }
9583
9584 public function betterdocs_doc_single_attachment_list_margin() {
9585 $this->customizer->add_setting(
9586 'betterdocs_doc_single_attachment_list_margin',
9587 [
9588 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin'],
9589 'capability' => 'edit_theme_options',
9590 'transport' => 'postMessage',
9591 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9592
9593 ]
9594 );
9595
9596 $this->customizer->add_control(
9597 new TitleControl(
9598 $this->customizer,
9599 'betterdocs_doc_single_attachment_list_margin',
9600 [
9601 'type' => 'betterdocs-title',
9602 'section' => 'betterdocs_single_docs_settings',
9603 'settings' => 'betterdocs_doc_single_attachment_list_margin',
9604 'label' => __( 'List Margin', 'betterdocs' ),
9605 'priority' => 163,
9606 'input_attrs' => [
9607 'id' => 'betterdocs_doc_single_attachment_list_margin',
9608 'class' => 'betterdocs-dimension'
9609 ]
9610 ]
9611 )
9612 );
9613
9614 $this->customizer->add_setting(
9615 'betterdocs_doc_single_attachment_list_margin_top',
9616 [
9617 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_top'],
9618 'capability' => 'edit_theme_options',
9619 'transport' => 'postMessage',
9620 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9621 ]
9622 );
9623
9624 $this->customizer->add_control(
9625 new DimensionControl(
9626 $this->customizer,
9627 'betterdocs_doc_single_attachment_list_margin_top',
9628 [
9629 'type' => 'betterdocs-dimension',
9630 'section' => 'betterdocs_single_docs_settings',
9631 'settings' => 'betterdocs_doc_single_attachment_list_margin_top',
9632 'label' => __( 'Top', 'betterdocs' ),
9633 'priority' => 163,
9634 'input_attrs' => [
9635 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
9636 ]
9637 ]
9638 )
9639 );
9640
9641 $this->customizer->add_setting(
9642 'betterdocs_doc_single_attachment_list_margin_right',
9643 [
9644 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_right'],
9645 'capability' => 'edit_theme_options',
9646 'transport' => 'postMessage',
9647 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9648
9649 ]
9650 );
9651
9652 $this->customizer->add_control(
9653 new DimensionControl(
9654 $this->customizer,
9655 'betterdocs_doc_single_attachment_list_margin_right',
9656 [
9657 'type' => 'betterdocs-dimension',
9658 'section' => 'betterdocs_single_docs_settings',
9659 'settings' => 'betterdocs_doc_single_attachment_list_margin_right',
9660 'label' => __( 'Right', 'betterdocs' ),
9661 'priority' => 163,
9662 'input_attrs' => [
9663 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
9664 ]
9665 ]
9666 )
9667 );
9668
9669 $this->customizer->add_setting(
9670 'betterdocs_doc_single_attachment_list_margin_bottom',
9671 [
9672 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_bottom'],
9673 'capability' => 'edit_theme_options',
9674 'transport' => 'postMessage',
9675 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9676 ]
9677 );
9678
9679 $this->customizer->add_control(
9680 new DimensionControl(
9681 $this->customizer,
9682 'betterdocs_doc_single_attachment_list_margin_bottom',
9683 [
9684 'type' => 'betterdocs-dimension',
9685 'section' => 'betterdocs_single_docs_settings',
9686 'settings' => 'betterdocs_doc_single_attachment_list_margin_bottom',
9687 'label' => __( 'Bottom', 'betterdocs' ),
9688 'priority' => 163,
9689 'input_attrs' => [
9690 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
9691 ]
9692 ]
9693 )
9694 );
9695
9696 $this->customizer->add_setting(
9697 'betterdocs_doc_single_attachment_list_margin_left',
9698 [
9699 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_left'],
9700 'capability' => 'edit_theme_options',
9701 'transport' => 'postMessage',
9702 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9703 ]
9704 );
9705
9706 $this->customizer->add_control(
9707 new DimensionControl(
9708 $this->customizer,
9709 'betterdocs_doc_single_attachment_list_margin_left',
9710 [
9711 'type' => 'betterdocs-dimension',
9712 'section' => 'betterdocs_single_docs_settings',
9713 'settings' => 'betterdocs_doc_single_attachment_list_margin_left',
9714 'label' => __( 'Left', 'betterdocs' ),
9715 'priority' => 163,
9716 'input_attrs' => [
9717 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
9718 ]
9719 ]
9720 )
9721 );
9722 }
9723
9724 public function attachments_heading_layout_8_9() {
9725 $this->customizer->add_setting(
9726 'betterdocs_single_doc_attachment_heading_layout_8_9',
9727 [
9728 'default' => '',
9729 'sanitize_callback' => 'esc_html'
9730 ]
9731 );
9732
9733 $this->customizer->add_control(
9734 new SeparatorControl(
9735 $this->customizer,
9736 'betterdocs_single_doc_attachment_heading_layout_8_9',
9737 [
9738 'label' => __( 'Attachments', 'betterdocs' ),
9739 'priority' => 163,
9740 'settings' => 'betterdocs_single_doc_attachment_heading_layout_8_9',
9741 'section' => 'betterdocs_single_docs_settings'
9742 ]
9743 )
9744 );
9745 }
9746
9747 public function betterdocs_doc_single_attachment_content_bg_color_layout_8_9() {
9748 $this->customizer->add_setting(
9749 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
9750 [
9751 'default' => $this->defaults['betterdocs_doc_single_attachment_content_bg_color_layout_8_9'],
9752 'capability' => 'edit_theme_options',
9753 'transport' => 'postMessage',
9754 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9755 ]
9756 );
9757
9758 $this->customizer->add_control(
9759 new AlphaColorControl(
9760 $this->customizer,
9761 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
9762 [
9763 'label' => __( 'Content Background Color', 'betterdocs' ),
9764 'section' => 'betterdocs_single_docs_settings',
9765 'settings' => 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
9766 'priority' => 163
9767 ]
9768 )
9769 );
9770 }
9771
9772 public function betterdocs_doc_single_attachment_content_padding_layout_8_9() {
9773 $this->customizer->add_setting(
9774 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
9775 [
9776 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_layout_8_9'],
9777 'capability' => 'edit_theme_options',
9778 'transport' => 'postMessage',
9779 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9780
9781 ]
9782 );
9783
9784 $this->customizer->add_control(
9785 new TitleControl(
9786 $this->customizer,
9787 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
9788 [
9789 'type' => 'betterdocs-title',
9790 'section' => 'betterdocs_single_docs_settings',
9791 'settings' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
9792 'label' => __( 'Content Padding', 'betterdocs' ),
9793 'priority' => 163,
9794 'input_attrs' => [
9795 'id' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
9796 'class' => 'betterdocs-dimension'
9797 ]
9798 ]
9799 )
9800 );
9801
9802 $this->customizer->add_setting(
9803 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9',
9804 [
9805 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_top_layout_8_9'],
9806 'capability' => 'edit_theme_options',
9807 'transport' => 'postMessage',
9808 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9809 ]
9810 );
9811
9812 $this->customizer->add_control(
9813 new DimensionControl(
9814 $this->customizer,
9815 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9',
9816 [
9817 'type' => 'betterdocs-dimension',
9818 'section' => 'betterdocs_single_docs_settings',
9819 'settings' => 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9',
9820 'label' => __( 'Top', 'betterdocs' ),
9821 'priority' => 163,
9822 'input_attrs' => [
9823 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
9824 ]
9825 ]
9826 )
9827 );
9828
9829 $this->customizer->add_setting(
9830 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9',
9831 [
9832 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_right_layout_8_9'],
9833 'capability' => 'edit_theme_options',
9834 'transport' => 'postMessage',
9835 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9836
9837 ]
9838 );
9839
9840 $this->customizer->add_control(
9841 new DimensionControl(
9842 $this->customizer,
9843 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9',
9844 [
9845 'type' => 'betterdocs-dimension',
9846 'section' => 'betterdocs_single_docs_settings',
9847 'settings' => 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9',
9848 'label' => __( 'Right', 'betterdocs' ),
9849 'priority' => 163,
9850 'input_attrs' => [
9851 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
9852 ]
9853 ]
9854 )
9855 );
9856
9857 $this->customizer->add_setting(
9858 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9',
9859 [
9860 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9'],
9861 'capability' => 'edit_theme_options',
9862 'transport' => 'postMessage',
9863 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9864
9865 ]
9866 );
9867
9868 $this->customizer->add_control(
9869 new DimensionControl(
9870 $this->customizer,
9871 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9',
9872 [
9873 'type' => 'betterdocs-dimension',
9874 'section' => 'betterdocs_single_docs_settings',
9875 'settings' => 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9',
9876 'label' => __( 'Bottom', 'betterdocs' ),
9877 'priority' => 163,
9878 'input_attrs' => [
9879 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
9880 ]
9881 ]
9882 )
9883 );
9884
9885 $this->customizer->add_setting(
9886 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9',
9887 [
9888 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_left_layout_8_9'],
9889 'capability' => 'edit_theme_options',
9890 'transport' => 'postMessage',
9891 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9892
9893 ]
9894 );
9895
9896 $this->customizer->add_control(
9897 new DimensionControl(
9898 $this->customizer,
9899 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9',
9900 [
9901 'type' => 'betterdocs-dimension',
9902 'section' => 'betterdocs_single_docs_settings',
9903 'settings' => 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9',
9904 'label' => __( 'Left', 'betterdocs' ),
9905 'priority' => 163,
9906 'input_attrs' => [
9907 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
9908 ]
9909 ]
9910 )
9911 );
9912 }
9913
9914 public function betterdocs_doc_single_attachment_content_margin_layout_8_9() {
9915 $this->customizer->add_setting(
9916 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
9917 [
9918 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_layout_8_9'],
9919 'capability' => 'edit_theme_options',
9920 'transport' => 'postMessage',
9921 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9922
9923 ]
9924 );
9925
9926 $this->customizer->add_control(
9927 new TitleControl(
9928 $this->customizer,
9929 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
9930 [
9931 'type' => 'betterdocs-title',
9932 'section' => 'betterdocs_single_docs_settings',
9933 'settings' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
9934 'label' => __( 'Content Margin', 'betterdocs' ),
9935 'priority' => 163,
9936 'input_attrs' => [
9937 'id' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
9938 'class' => 'betterdocs-dimension'
9939 ]
9940 ]
9941 )
9942 );
9943
9944 $this->customizer->add_setting(
9945 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9',
9946 [
9947 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_top_layout_8_9'],
9948 'capability' => 'edit_theme_options',
9949 'transport' => 'postMessage',
9950 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9951 ]
9952 );
9953
9954 $this->customizer->add_control(
9955 new DimensionControl(
9956 $this->customizer,
9957 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9',
9958 [
9959 'type' => 'betterdocs-dimension',
9960 'section' => 'betterdocs_single_docs_settings',
9961 'settings' => 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9',
9962 'label' => __( 'Top', 'betterdocs' ),
9963 'priority' => 163,
9964 'input_attrs' => [
9965 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
9966 ]
9967 ]
9968 )
9969 );
9970
9971 $this->customizer->add_setting(
9972 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9',
9973 [
9974 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_right_layout_8_9'],
9975 'capability' => 'edit_theme_options',
9976 'transport' => 'postMessage',
9977 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9978
9979 ]
9980 );
9981
9982 $this->customizer->add_control(
9983 new DimensionControl(
9984 $this->customizer,
9985 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9',
9986 [
9987 'type' => 'betterdocs-dimension',
9988 'section' => 'betterdocs_single_docs_settings',
9989 'settings' => 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9',
9990 'label' => __( 'Right', 'betterdocs' ),
9991 'priority' => 163,
9992 'input_attrs' => [
9993 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
9994 ]
9995 ]
9996 )
9997 );
9998
9999 $this->customizer->add_setting(
10000 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9',
10001 [
10002 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9'],
10003 'capability' => 'edit_theme_options',
10004 'transport' => 'postMessage',
10005 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10006
10007 ]
10008 );
10009
10010 $this->customizer->add_control(
10011 new DimensionControl(
10012 $this->customizer,
10013 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9',
10014 [
10015 'type' => 'betterdocs-dimension',
10016 'section' => 'betterdocs_single_docs_settings',
10017 'settings' => 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9',
10018 'label' => __( 'Bottom', 'betterdocs' ),
10019 'priority' => 163,
10020 'input_attrs' => [
10021 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
10022 ]
10023 ]
10024 )
10025 );
10026
10027 $this->customizer->add_setting(
10028 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9',
10029 [
10030 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_left_layout_8_9'],
10031 'capability' => 'edit_theme_options',
10032 'transport' => 'postMessage',
10033 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10034
10035 ]
10036 );
10037
10038 $this->customizer->add_control(
10039 new DimensionControl(
10040 $this->customizer,
10041 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9',
10042 [
10043 'type' => 'betterdocs-dimension',
10044 'section' => 'betterdocs_single_docs_settings',
10045 'settings' => 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9',
10046 'label' => __( 'Left', 'betterdocs' ),
10047 'priority' => 163,
10048 'input_attrs' => [
10049 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
10050 ]
10051 ]
10052 )
10053 );
10054 }
10055
10056 public function betterdocs_doc_single_attachment_label_color_layout_8_9() {
10057 $this->customizer->add_setting(
10058 'betterdocs_doc_single_attachment_label_color_layout_8_9',
10059 [
10060 'default' => $this->defaults['betterdocs_doc_single_attachment_label_color_layout_8_9'],
10061 'capability' => 'edit_theme_options',
10062 'transport' => 'postMessage',
10063 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10064 ]
10065 );
10066
10067 $this->customizer->add_control(
10068 new AlphaColorControl(
10069 $this->customizer,
10070 'betterdocs_doc_single_attachment_label_color_layout_8_9',
10071 [
10072 'label' => __( 'Label Color', 'betterdocs' ),
10073 'section' => 'betterdocs_single_docs_settings',
10074 'settings' => 'betterdocs_doc_single_attachment_label_color_layout_8_9',
10075 'priority' => 163
10076 ]
10077 )
10078 );
10079 }
10080
10081 public function betterdocs_doc_single_attachment_label_padding_layout_8_9() {
10082 $this->customizer->add_setting(
10083 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
10084 [
10085 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_layout_8_9'],
10086 'capability' => 'edit_theme_options',
10087 'transport' => 'postMessage',
10088 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10089
10090 ]
10091 );
10092
10093 $this->customizer->add_control(
10094 new TitleControl(
10095 $this->customizer,
10096 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
10097 [
10098 'type' => 'betterdocs-title',
10099 'section' => 'betterdocs_single_docs_settings',
10100 'settings' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
10101 'label' => __( 'Label Padding', 'betterdocs' ),
10102 'priority' => 163,
10103 'input_attrs' => [
10104 'id' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
10105 'class' => 'betterdocs-dimension'
10106 ]
10107 ]
10108 )
10109 );
10110
10111 $this->customizer->add_setting(
10112 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9',
10113 [
10114 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_top_layout_8_9'],
10115 'capability' => 'edit_theme_options',
10116 'transport' => 'postMessage',
10117 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10118 ]
10119 );
10120
10121 $this->customizer->add_control(
10122 new DimensionControl(
10123 $this->customizer,
10124 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9',
10125 [
10126 'type' => 'betterdocs-dimension',
10127 'section' => 'betterdocs_single_docs_settings',
10128 'settings' => 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9',
10129 'label' => __( 'Top', 'betterdocs' ),
10130 'priority' => 163,
10131 'input_attrs' => [
10132 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
10133 ]
10134 ]
10135 )
10136 );
10137
10138 $this->customizer->add_setting(
10139 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9',
10140 [
10141 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_right_layout_8_9'],
10142 'capability' => 'edit_theme_options',
10143 'transport' => 'postMessage',
10144 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10145
10146 ]
10147 );
10148
10149 $this->customizer->add_control(
10150 new DimensionControl(
10151 $this->customizer,
10152 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9',
10153 [
10154 'type' => 'betterdocs-dimension',
10155 'section' => 'betterdocs_single_docs_settings',
10156 'settings' => 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9',
10157 'label' => __( 'Right', 'betterdocs' ),
10158 'priority' => 163,
10159 'input_attrs' => [
10160 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
10161 ]
10162 ]
10163 )
10164 );
10165
10166 $this->customizer->add_setting(
10167 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9',
10168 [
10169 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9'],
10170 'capability' => 'edit_theme_options',
10171 'transport' => 'postMessage',
10172 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10173
10174 ]
10175 );
10176
10177 $this->customizer->add_control(
10178 new DimensionControl(
10179 $this->customizer,
10180 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9',
10181 [
10182 'type' => 'betterdocs-dimension',
10183 'section' => 'betterdocs_single_docs_settings',
10184 'settings' => 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9',
10185 'label' => __( 'Bottom', 'betterdocs' ),
10186 'priority' => 163,
10187 'input_attrs' => [
10188 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
10189 ]
10190 ]
10191 )
10192 );
10193
10194 $this->customizer->add_setting(
10195 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9',
10196 [
10197 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_left_layout_8_9'],
10198 'capability' => 'edit_theme_options',
10199 'transport' => 'postMessage',
10200 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10201
10202 ]
10203 );
10204
10205 $this->customizer->add_control(
10206 new DimensionControl(
10207 $this->customizer,
10208 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9',
10209 [
10210 'type' => 'betterdocs-dimension',
10211 'section' => 'betterdocs_single_docs_settings',
10212 'settings' => 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9',
10213 'label' => __( 'Left', 'betterdocs' ),
10214 'priority' => 163,
10215 'input_attrs' => [
10216 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
10217 ]
10218 ]
10219 )
10220 );
10221 }
10222
10223 public function betterdocs_doc_single_attachment_label_margin_layout_8_9() {
10224 $this->customizer->add_setting(
10225 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
10226 [
10227 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_layout_8_9'],
10228 'capability' => 'edit_theme_options',
10229 'transport' => 'postMessage',
10230 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10231
10232 ]
10233 );
10234
10235 $this->customizer->add_control(
10236 new TitleControl(
10237 $this->customizer,
10238 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
10239 [
10240 'type' => 'betterdocs-title',
10241 'section' => 'betterdocs_single_docs_settings',
10242 'settings' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
10243 'label' => __( 'Label Margin', 'betterdocs' ),
10244 'priority' => 163,
10245 'input_attrs' => [
10246 'id' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
10247 'class' => 'betterdocs-dimension'
10248 ]
10249 ]
10250 )
10251 );
10252
10253 $this->customizer->add_setting(
10254 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9',
10255 [
10256 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_top_layout_8_9'],
10257 'capability' => 'edit_theme_options',
10258 'transport' => 'postMessage',
10259 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10260 ]
10261 );
10262
10263 $this->customizer->add_control(
10264 new DimensionControl(
10265 $this->customizer,
10266 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9',
10267 [
10268 'type' => 'betterdocs-dimension',
10269 'section' => 'betterdocs_single_docs_settings',
10270 'settings' => 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9',
10271 'label' => __( 'Top', 'betterdocs' ),
10272 'priority' => 163,
10273 'input_attrs' => [
10274 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
10275 ]
10276 ]
10277 )
10278 );
10279
10280 $this->customizer->add_setting(
10281 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9',
10282 [
10283 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_right_layout_8_9'],
10284 'capability' => 'edit_theme_options',
10285 'transport' => 'postMessage',
10286 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10287
10288 ]
10289 );
10290
10291 $this->customizer->add_control(
10292 new DimensionControl(
10293 $this->customizer,
10294 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9',
10295 [
10296 'type' => 'betterdocs-dimension',
10297 'section' => 'betterdocs_single_docs_settings',
10298 'settings' => 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9',
10299 'label' => __( 'Right', 'betterdocs' ),
10300 'priority' => 163,
10301 'input_attrs' => [
10302 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
10303 ]
10304 ]
10305 )
10306 );
10307
10308 $this->customizer->add_setting(
10309 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9',
10310 [
10311 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9'],
10312 'capability' => 'edit_theme_options',
10313 'transport' => 'postMessage',
10314 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10315 ]
10316 );
10317
10318 $this->customizer->add_control(
10319 new DimensionControl(
10320 $this->customizer,
10321 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9',
10322 [
10323 'type' => 'betterdocs-dimension',
10324 'section' => 'betterdocs_single_docs_settings',
10325 'settings' => 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9',
10326 'label' => __( 'Bottom', 'betterdocs' ),
10327 'priority' => 163,
10328 'input_attrs' => [
10329 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
10330 ]
10331 ]
10332 )
10333 );
10334
10335 $this->customizer->add_setting(
10336 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9',
10337 [
10338 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_left_layout_8_9'],
10339 'capability' => 'edit_theme_options',
10340 'transport' => 'postMessage',
10341 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10342 ]
10343 );
10344
10345 $this->customizer->add_control(
10346 new DimensionControl(
10347 $this->customizer,
10348 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9',
10349 [
10350 'type' => 'betterdocs-dimension',
10351 'section' => 'betterdocs_single_docs_settings',
10352 'settings' => 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9',
10353 'label' => __( 'Left', 'betterdocs' ),
10354 'priority' => 163,
10355 'input_attrs' => [
10356 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
10357 ]
10358 ]
10359 )
10360 );
10361 }
10362
10363 public function betterdocs_doc_single_attachment_list_font_size_layout_8_9() {
10364 $this->customizer->add_setting(
10365 'betterdocs_doc_single_attachment_list_font_size_layout_8_9',
10366 [
10367 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_size_layout_8_9'],
10368 'capability' => 'edit_theme_options',
10369 'transport' => 'postMessage',
10370 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10371
10372 ]
10373 );
10374
10375 $this->customizer->add_control(
10376 new RangeValueControl(
10377 $this->customizer,
10378 'betterdocs_doc_single_attachment_list_font_size_layout_8_9',
10379 [
10380 'type' => 'betterdocs-range-value',
10381 'section' => 'betterdocs_single_docs_settings',
10382 'settings' => 'betterdocs_doc_single_attachment_list_font_size_layout_8_9',
10383 'label' => __( 'List Font Size', 'betterdocs' ),
10384 'priority' => 163,
10385 'input_attrs' => [
10386 'min' => 0,
10387 'max' => 50,
10388 'step' => 1,
10389 'suffix' => 'px' //optional suffix
10390 ]
10391 ]
10392 )
10393 );
10394 }
10395
10396 public function betterdocs_doc_single_attachment_list_font_weight_layout_8_9() {
10397 $this->customizer->add_setting(
10398 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
10399 [
10400 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_weight_layout_8_9'],
10401 'capability' => 'edit_theme_options',
10402 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
10403 ]
10404 );
10405
10406 $this->customizer->add_control(
10407 new WP_Customize_Control(
10408 $this->customizer,
10409 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
10410 [
10411 'label' => __( 'List Font Weight', 'betterdocs' ),
10412 'section' => 'betterdocs_single_docs_settings',
10413 'settings' => 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
10414 'type' => 'select',
10415 'choices' => [
10416 'normal' => 'Normal',
10417 '100' => '100',
10418 '200' => '200',
10419 '300' => '300',
10420 '400' => '400',
10421 '500' => '500',
10422 '600' => '600',
10423 '700' => '700',
10424 '800' => '800',
10425 '900' => '900'
10426 ],
10427 'priority' => 163
10428 ]
10429 )
10430 );
10431 }
10432
10433 public function betterdocs_doc_single_attachment_list_extension_color_layout_8_9() {
10434 $this->customizer->add_setting(
10435 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
10436 [
10437 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_color_layout_8_9'],
10438 'capability' => 'edit_theme_options',
10439 'transport' => 'postMessage',
10440 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10441 ]
10442 );
10443
10444 $this->customizer->add_control(
10445 new AlphaColorControl(
10446 $this->customizer,
10447 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
10448 [
10449 'label' => __( 'Extension Color', 'betterdocs' ),
10450 'section' => 'betterdocs_single_docs_settings',
10451 'settings' => 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
10452 'priority' => 163
10453 ]
10454 )
10455 );
10456 }
10457
10458 public function betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9() {
10459 $this->customizer->add_setting(
10460 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9',
10461 [
10462 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9'],
10463 'capability' => 'edit_theme_options',
10464 'transport' => 'postMessage',
10465 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10466
10467 ]
10468 );
10469
10470 $this->customizer->add_control(
10471 new RangeValueControl(
10472 $this->customizer,
10473 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9',
10474 [
10475 'type' => 'betterdocs-range-value',
10476 'section' => 'betterdocs_single_docs_settings',
10477 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9',
10478 'label' => __( 'Extension Font Size', 'betterdocs' ),
10479 'priority' => 163,
10480 'input_attrs' => [
10481 'min' => 0,
10482 'max' => 50,
10483 'step' => 1,
10484 'suffix' => 'px' //optional suffix
10485 ]
10486 ]
10487 )
10488 );
10489 }
10490
10491 public function betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9() {
10492 $this->customizer->add_setting(
10493 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
10494 [
10495 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9'],
10496 'capability' => 'edit_theme_options',
10497 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
10498 ]
10499 );
10500
10501 $this->customizer->add_control(
10502 new WP_Customize_Control(
10503 $this->customizer,
10504 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
10505 [
10506 'label' => __( 'Extension Font Weight', 'betterdocs' ),
10507 'section' => 'betterdocs_single_docs_settings',
10508 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
10509 'type' => 'select',
10510 'choices' => [
10511 'normal' => 'Normal',
10512 '100' => '100',
10513 '200' => '200',
10514 '300' => '300',
10515 '400' => '400',
10516 '500' => '500',
10517 '600' => '600',
10518 '700' => '700',
10519 '800' => '800',
10520 '900' => '900'
10521 ],
10522 'priority' => 163
10523 ]
10524 )
10525 );
10526 }
10527
10528 public function betterdocs_doc_single_attachment_list_color_layout_8_9() {
10529 $this->customizer->add_setting(
10530 'betterdocs_doc_single_attachment_list_color_layout_8_9',
10531 [
10532 'default' => $this->defaults['betterdocs_doc_single_attachment_list_color_layout_8_9'],
10533 'capability' => 'edit_theme_options',
10534 'transport' => 'postMessage',
10535 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10536 ]
10537 );
10538
10539 $this->customizer->add_control(
10540 new AlphaColorControl(
10541 $this->customizer,
10542 'betterdocs_doc_single_attachment_list_color_layout_8_9',
10543 [
10544 'label' => __( 'List Color', 'betterdocs' ),
10545 'section' => 'betterdocs_single_docs_settings',
10546 'settings' => 'betterdocs_doc_single_attachment_list_color_layout_8_9',
10547 'priority' => 163
10548 ]
10549 )
10550 );
10551 }
10552
10553 public function betterdocs_doc_single_attachment_list_background_color_layout_8_9() {
10554 $this->customizer->add_setting(
10555 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
10556 [
10557 'default' => $this->defaults['betterdocs_doc_single_attachment_list_background_color_layout_8_9'],
10558 'capability' => 'edit_theme_options',
10559 'transport' => 'postMessage',
10560 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10561 ]
10562 );
10563
10564 $this->customizer->add_control(
10565 new AlphaColorControl(
10566 $this->customizer,
10567 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
10568 [
10569 'label' => __( 'List Background Color', 'betterdocs' ),
10570 'section' => 'betterdocs_single_docs_settings',
10571 'settings' => 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
10572 'priority' => 163
10573 ]
10574 )
10575 );
10576 }
10577
10578 public function betterdocs_doc_single_attachment_list_padding_layout_8_9() {
10579 $this->customizer->add_setting(
10580 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
10581 [
10582 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_layout_8_9'],
10583 'capability' => 'edit_theme_options',
10584 'transport' => 'postMessage',
10585 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10586
10587 ]
10588 );
10589
10590 $this->customizer->add_control(
10591 new TitleControl(
10592 $this->customizer,
10593 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
10594 [
10595 'type' => 'betterdocs-title',
10596 'section' => 'betterdocs_single_docs_settings',
10597 'settings' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
10598 'label' => __( 'List Padding', 'betterdocs' ),
10599 'priority' => 163,
10600 'input_attrs' => [
10601 'id' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
10602 'class' => 'betterdocs-dimension'
10603 ]
10604 ]
10605 )
10606 );
10607
10608 $this->customizer->add_setting(
10609 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9',
10610 [
10611 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_top_layout_8_9'],
10612 'capability' => 'edit_theme_options',
10613 'transport' => 'postMessage',
10614 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10615 ]
10616 );
10617
10618 $this->customizer->add_control(
10619 new DimensionControl(
10620 $this->customizer,
10621 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9',
10622 [
10623 'type' => 'betterdocs-dimension',
10624 'section' => 'betterdocs_single_docs_settings',
10625 'settings' => 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9',
10626 'label' => __( 'Top', 'betterdocs' ),
10627 'priority' => 163,
10628 'input_attrs' => [
10629 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
10630 ]
10631 ]
10632 )
10633 );
10634
10635 $this->customizer->add_setting(
10636 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9',
10637 [
10638 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_right_layout_8_9'],
10639 'capability' => 'edit_theme_options',
10640 'transport' => 'postMessage',
10641 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10642
10643 ]
10644 );
10645
10646 $this->customizer->add_control(
10647 new DimensionControl(
10648 $this->customizer,
10649 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9',
10650 [
10651 'type' => 'betterdocs-dimension',
10652 'section' => 'betterdocs_single_docs_settings',
10653 'settings' => 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9',
10654 'label' => __( 'Right', 'betterdocs' ),
10655 'priority' => 163,
10656 'input_attrs' => [
10657 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
10658 ]
10659 ]
10660 )
10661 );
10662
10663 $this->customizer->add_setting(
10664 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9',
10665 [
10666 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9'],
10667 'capability' => 'edit_theme_options',
10668 'transport' => 'postMessage',
10669 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10670 ]
10671 );
10672
10673 $this->customizer->add_control(
10674 new DimensionControl(
10675 $this->customizer,
10676 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9',
10677 [
10678 'type' => 'betterdocs-dimension',
10679 'section' => 'betterdocs_single_docs_settings',
10680 'settings' => 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9',
10681 'label' => __( 'Bottom', 'betterdocs' ),
10682 'priority' => 163,
10683 'input_attrs' => [
10684 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
10685 ]
10686 ]
10687 )
10688 );
10689
10690 $this->customizer->add_setting(
10691 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9',
10692 [
10693 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_left_layout_8_9'],
10694 'capability' => 'edit_theme_options',
10695 'transport' => 'postMessage',
10696 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10697 ]
10698 );
10699
10700 $this->customizer->add_control(
10701 new DimensionControl(
10702 $this->customizer,
10703 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9',
10704 [
10705 'type' => 'betterdocs-dimension',
10706 'section' => 'betterdocs_single_docs_settings',
10707 'settings' => 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9',
10708 'label' => __( 'Left', 'betterdocs' ),
10709 'priority' => 163,
10710 'input_attrs' => [
10711 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
10712 ]
10713 ]
10714 )
10715 );
10716 }
10717
10718 public function betterdocs_doc_single_attachment_list_margin_layout_8_9() {
10719 $this->customizer->add_setting(
10720 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
10721 [
10722 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_layout_8_9'],
10723 'capability' => 'edit_theme_options',
10724 'transport' => 'postMessage',
10725 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10726
10727 ]
10728 );
10729
10730 $this->customizer->add_control(
10731 new TitleControl(
10732 $this->customizer,
10733 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
10734 [
10735 'type' => 'betterdocs-title',
10736 'section' => 'betterdocs_single_docs_settings',
10737 'settings' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
10738 'label' => __( 'List Margin', 'betterdocs' ),
10739 'priority' => 163,
10740 'input_attrs' => [
10741 'id' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
10742 'class' => 'betterdocs-dimension'
10743 ]
10744 ]
10745 )
10746 );
10747
10748 $this->customizer->add_setting(
10749 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9',
10750 [
10751 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_top_layout_8_9'],
10752 'capability' => 'edit_theme_options',
10753 'transport' => 'postMessage',
10754 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10755 ]
10756 );
10757
10758 $this->customizer->add_control(
10759 new DimensionControl(
10760 $this->customizer,
10761 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9',
10762 [
10763 'type' => 'betterdocs-dimension',
10764 'section' => 'betterdocs_single_docs_settings',
10765 'settings' => 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9',
10766 'label' => __( 'Top', 'betterdocs' ),
10767 'priority' => 163,
10768 'input_attrs' => [
10769 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
10770 ]
10771 ]
10772 )
10773 );
10774
10775 $this->customizer->add_setting(
10776 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9',
10777 [
10778 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_right_layout_8_9'],
10779 'capability' => 'edit_theme_options',
10780 'transport' => 'postMessage',
10781 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10782
10783 ]
10784 );
10785
10786 $this->customizer->add_control(
10787 new DimensionControl(
10788 $this->customizer,
10789 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9',
10790 [
10791 'type' => 'betterdocs-dimension',
10792 'section' => 'betterdocs_single_docs_settings',
10793 'settings' => 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9',
10794 'label' => __( 'Right', 'betterdocs' ),
10795 'priority' => 163,
10796 'input_attrs' => [
10797 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
10798 ]
10799 ]
10800 )
10801 );
10802
10803 $this->customizer->add_setting(
10804 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9',
10805 [
10806 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9'],
10807 'capability' => 'edit_theme_options',
10808 'transport' => 'postMessage',
10809 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10810 ]
10811 );
10812
10813 $this->customizer->add_control(
10814 new DimensionControl(
10815 $this->customizer,
10816 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9',
10817 [
10818 'type' => 'betterdocs-dimension',
10819 'section' => 'betterdocs_single_docs_settings',
10820 'settings' => 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9',
10821 'label' => __( 'Bottom', 'betterdocs' ),
10822 'priority' => 163,
10823 'input_attrs' => [
10824 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
10825 ]
10826 ]
10827 )
10828 );
10829
10830 $this->customizer->add_setting(
10831 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9',
10832 [
10833 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_left_layout_8_9'],
10834 'capability' => 'edit_theme_options',
10835 'transport' => 'postMessage',
10836 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10837 ]
10838 );
10839
10840 $this->customizer->add_control(
10841 new DimensionControl(
10842 $this->customizer,
10843 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9',
10844 [
10845 'type' => 'betterdocs-dimension',
10846 'section' => 'betterdocs_single_docs_settings',
10847 'settings' => 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9',
10848 'label' => __( 'Left', 'betterdocs' ),
10849 'priority' => 163,
10850 'input_attrs' => [
10851 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
10852 ]
10853 ]
10854 )
10855 );
10856 }
10857
10858 public function betterdocs_doc_single_related_docs_heading() {
10859 $this->customizer->add_setting(
10860 'betterdocs_doc_single_related_docs_heading',
10861 [
10862 'default' => 'betterdocs_doc_single_related_docs_heading',
10863 'sanitize_callback' => 'esc_html'
10864 ]
10865 );
10866
10867 $this->customizer->add_control(
10868 new SeparatorControl(
10869 $this->customizer,
10870 'betterdocs_doc_single_related_docs_heading',
10871 [
10872 'label' => __( 'Related Docs', 'betterdocs' ),
10873 'priority' => 163,
10874 'settings' => 'betterdocs_doc_single_related_docs_heading',
10875 'section' => 'betterdocs_single_docs_settings'
10876 ]
10877 )
10878 );
10879 }
10880
10881 public function betterdocs_doc_single_related_docs_content_bg_color() {
10882 $this->customizer->add_setting(
10883 'betterdocs_doc_single_related_docs_content_bg_color',
10884 [
10885 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_bg_color'],
10886 'capability' => 'edit_theme_options',
10887 'transport' => 'postMessage',
10888 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10889 ]
10890 );
10891
10892 $this->customizer->add_control(
10893 new AlphaColorControl(
10894 $this->customizer,
10895 'betterdocs_doc_single_related_docs_content_bg_color',
10896 [
10897 'label' => __( 'Content Background Color', 'betterdocs' ),
10898 'section' => 'betterdocs_single_docs_settings',
10899 'settings' => 'betterdocs_doc_single_related_docs_content_bg_color',
10900 'priority' => 163
10901 ]
10902 )
10903 );
10904 }
10905
10906 public function betterdocs_doc_single_related_docs_content_padding() {
10907 $this->customizer->add_setting(
10908 'betterdocs_doc_single_related_docs_content_padding',
10909 [
10910 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding'],
10911 'capability' => 'edit_theme_options',
10912 'transport' => 'postMessage',
10913 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10914
10915 ]
10916 );
10917
10918 $this->customizer->add_control(
10919 new TitleControl(
10920 $this->customizer,
10921 'betterdocs_doc_single_related_docs_content_padding',
10922 [
10923 'type' => 'betterdocs-title',
10924 'section' => 'betterdocs_single_docs_settings',
10925 'settings' => 'betterdocs_doc_single_related_docs_content_padding',
10926 'label' => __( 'Content Padding', 'betterdocs' ),
10927 'priority' => 163,
10928 'input_attrs' => [
10929 'id' => 'betterdocs_doc_single_related_docs_content_padding',
10930 'class' => 'betterdocs-dimension'
10931 ]
10932 ]
10933 )
10934 );
10935
10936 $this->customizer->add_setting(
10937 'betterdocs_doc_single_related_docs_content_padding_top',
10938 [
10939 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_top'],
10940 'capability' => 'edit_theme_options',
10941 'transport' => 'postMessage',
10942 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10943 ]
10944 );
10945
10946 $this->customizer->add_control(
10947 new DimensionControl(
10948 $this->customizer,
10949 'betterdocs_doc_single_related_docs_content_padding_top',
10950 [
10951 'type' => 'betterdocs-dimension',
10952 'section' => 'betterdocs_single_docs_settings',
10953 'settings' => 'betterdocs_doc_single_related_docs_content_padding_top',
10954 'label' => __( 'Top', 'betterdocs' ),
10955 'priority' => 163,
10956 'input_attrs' => [
10957 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
10958 ]
10959 ]
10960 )
10961 );
10962
10963 $this->customizer->add_setting(
10964 'betterdocs_doc_single_related_docs_content_padding_right',
10965 [
10966 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_right'],
10967 'capability' => 'edit_theme_options',
10968 'transport' => 'postMessage',
10969 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10970
10971 ]
10972 );
10973
10974 $this->customizer->add_control(
10975 new DimensionControl(
10976 $this->customizer,
10977 'betterdocs_doc_single_related_docs_content_padding_right',
10978 [
10979 'type' => 'betterdocs-dimension',
10980 'section' => 'betterdocs_single_docs_settings',
10981 'settings' => 'betterdocs_doc_single_related_docs_content_padding_right',
10982 'label' => __( 'Right', 'betterdocs' ),
10983 'priority' => 163,
10984 'input_attrs' => [
10985 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
10986 ]
10987 ]
10988 )
10989 );
10990
10991 $this->customizer->add_setting(
10992 'betterdocs_doc_single_related_docs_content_padding_bottom',
10993 [
10994 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_bottom'],
10995 'capability' => 'edit_theme_options',
10996 'transport' => 'postMessage',
10997 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10998
10999 ]
11000 );
11001
11002 $this->customizer->add_control(
11003 new DimensionControl(
11004 $this->customizer,
11005 'betterdocs_doc_single_related_docs_content_padding_bottom',
11006 [
11007 'type' => 'betterdocs-dimension',
11008 'section' => 'betterdocs_single_docs_settings',
11009 'settings' => 'betterdocs_doc_single_related_docs_content_padding_bottom',
11010 'label' => __( 'Bottom', 'betterdocs' ),
11011 'priority' => 163,
11012 'input_attrs' => [
11013 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
11014 ]
11015 ]
11016 )
11017 );
11018
11019 $this->customizer->add_setting(
11020 'betterdocs_doc_single_related_docs_content_padding_left',
11021 [
11022 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_left'],
11023 'capability' => 'edit_theme_options',
11024 'transport' => 'postMessage',
11025 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11026
11027 ]
11028 );
11029
11030 $this->customizer->add_control(
11031 new DimensionControl(
11032 $this->customizer,
11033 'betterdocs_doc_single_related_docs_content_padding_left',
11034 [
11035 'type' => 'betterdocs-dimension',
11036 'section' => 'betterdocs_single_docs_settings',
11037 'settings' => 'betterdocs_doc_single_related_docs_content_padding_left',
11038 'label' => __( 'Left', 'betterdocs' ),
11039 'priority' => 163,
11040 'input_attrs' => [
11041 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
11042 ]
11043 ]
11044 )
11045 );
11046 }
11047
11048 public function betterdocs_doc_single_related_docs_content_margin() {
11049 $this->customizer->add_setting(
11050 'betterdocs_doc_single_related_docs_content_margin',
11051 [
11052 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin'],
11053 'capability' => 'edit_theme_options',
11054 'transport' => 'postMessage',
11055 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11056
11057 ]
11058 );
11059
11060 $this->customizer->add_control(
11061 new TitleControl(
11062 $this->customizer,
11063 'betterdocs_doc_single_related_docs_content_margin',
11064 [
11065 'type' => 'betterdocs-title',
11066 'section' => 'betterdocs_single_docs_settings',
11067 'settings' => 'betterdocs_doc_single_related_docs_content_margin',
11068 'label' => __( 'Content Margin', 'betterdocs' ),
11069 'priority' => 163,
11070 'input_attrs' => [
11071 'id' => 'betterdocs_doc_single_related_docs_content_margin',
11072 'class' => 'betterdocs-dimension'
11073 ]
11074 ]
11075 )
11076 );
11077
11078 $this->customizer->add_setting(
11079 'betterdocs_doc_single_related_docs_content_margin_top',
11080 [
11081 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_top'],
11082 'capability' => 'edit_theme_options',
11083 'transport' => 'postMessage',
11084 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11085 ]
11086 );
11087
11088 $this->customizer->add_control(
11089 new DimensionControl(
11090 $this->customizer,
11091 'betterdocs_doc_single_related_docs_content_margin_top',
11092 [
11093 'type' => 'betterdocs-dimension',
11094 'section' => 'betterdocs_single_docs_settings',
11095 'settings' => 'betterdocs_doc_single_related_docs_content_margin_top',
11096 'label' => __( 'Top', 'betterdocs' ),
11097 'priority' => 163,
11098 'input_attrs' => [
11099 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
11100 ]
11101 ]
11102 )
11103 );
11104
11105 $this->customizer->add_setting(
11106 'betterdocs_doc_single_related_docs_content_margin_right',
11107 [
11108 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_right'],
11109 'capability' => 'edit_theme_options',
11110 'transport' => 'postMessage',
11111 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11112
11113 ]
11114 );
11115
11116 $this->customizer->add_control(
11117 new DimensionControl(
11118 $this->customizer,
11119 'betterdocs_doc_single_related_docs_content_margin_right',
11120 [
11121 'type' => 'betterdocs-dimension',
11122 'section' => 'betterdocs_single_docs_settings',
11123 'settings' => 'betterdocs_doc_single_related_docs_content_margin_right',
11124 'label' => __( 'Right', 'betterdocs' ),
11125 'priority' => 163,
11126 'input_attrs' => [
11127 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
11128 ]
11129 ]
11130 )
11131 );
11132
11133 $this->customizer->add_setting(
11134 'betterdocs_doc_single_related_docs_content_margin_bottom',
11135 [
11136 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_bottom'],
11137 'capability' => 'edit_theme_options',
11138 'transport' => 'postMessage',
11139 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11140
11141 ]
11142 );
11143
11144 $this->customizer->add_control(
11145 new DimensionControl(
11146 $this->customizer,
11147 'betterdocs_doc_single_related_docs_content_margin_bottom',
11148 [
11149 'type' => 'betterdocs-dimension',
11150 'section' => 'betterdocs_single_docs_settings',
11151 'settings' => 'betterdocs_doc_single_related_docs_content_margin_bottom',
11152 'label' => __( 'Bottom', 'betterdocs' ),
11153 'priority' => 163,
11154 'input_attrs' => [
11155 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
11156 ]
11157 ]
11158 )
11159 );
11160
11161 $this->customizer->add_setting(
11162 'betterdocs_doc_single_related_docs_content_margin_left',
11163 [
11164 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_left'],
11165 'capability' => 'edit_theme_options',
11166 'transport' => 'postMessage',
11167 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11168
11169 ]
11170 );
11171
11172 $this->customizer->add_control(
11173 new DimensionControl(
11174 $this->customizer,
11175 'betterdocs_doc_single_related_docs_content_margin_left',
11176 [
11177 'type' => 'betterdocs-dimension',
11178 'section' => 'betterdocs_single_docs_settings',
11179 'settings' => 'betterdocs_doc_single_related_docs_content_margin_left',
11180 'label' => __( 'Left', 'betterdocs' ),
11181 'priority' => 163,
11182 'input_attrs' => [
11183 'class' => 'betterdocs_doc_single_related_docs_content_margin_left betterdocs-dimension'
11184 ]
11185 ]
11186 )
11187 );
11188 }
11189
11190 public function betterdocs_doc_single_related_docs_label_color() {
11191 $this->customizer->add_setting(
11192 'betterdocs_doc_single_related_docs_label_color',
11193 [
11194 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_color'],
11195 'capability' => 'edit_theme_options',
11196 'transport' => 'postMessage',
11197 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
11198 ]
11199 );
11200
11201 $this->customizer->add_control(
11202 new AlphaColorControl(
11203 $this->customizer,
11204 'betterdocs_doc_single_related_docs_label_color',
11205 [
11206 'label' => __( 'Label Color', 'betterdocs' ),
11207 'section' => 'betterdocs_single_docs_settings',
11208 'settings' => 'betterdocs_doc_single_related_docs_label_color',
11209 'priority' => 163
11210 ]
11211 )
11212 );
11213 }
11214
11215 public function betterdocs_doc_single_related_docs_label_padding() {
11216 $this->customizer->add_setting(
11217 'betterdocs_doc_single_related_docs_label_padding',
11218 [
11219 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding'],
11220 'capability' => 'edit_theme_options',
11221 'transport' => 'postMessage',
11222 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11223
11224 ]
11225 );
11226
11227 $this->customizer->add_control(
11228 new TitleControl(
11229 $this->customizer,
11230 'betterdocs_doc_single_related_docs_label_padding',
11231 [
11232 'type' => 'betterdocs-title',
11233 'section' => 'betterdocs_single_docs_settings',
11234 'settings' => 'betterdocs_doc_single_related_docs_label_padding',
11235 'label' => __( 'Label Padding', 'betterdocs' ),
11236 'priority' => 163,
11237 'input_attrs' => [
11238 'id' => 'betterdocs_doc_single_related_docs_label_padding',
11239 'class' => 'betterdocs-dimension'
11240 ]
11241 ]
11242 )
11243 );
11244
11245 $this->customizer->add_setting(
11246 'betterdocs_doc_single_related_docs_label_padding_top',
11247 [
11248 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_top'],
11249 'capability' => 'edit_theme_options',
11250 'transport' => 'postMessage',
11251 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11252 ]
11253 );
11254
11255 $this->customizer->add_control(
11256 new DimensionControl(
11257 $this->customizer,
11258 'betterdocs_doc_single_related_docs_label_padding_top',
11259 [
11260 'type' => 'betterdocs-dimension',
11261 'section' => 'betterdocs_single_docs_settings',
11262 'settings' => 'betterdocs_doc_single_related_docs_label_padding_top',
11263 'label' => __( 'Top', 'betterdocs' ),
11264 'priority' => 163,
11265 'input_attrs' => [
11266 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
11267 ]
11268 ]
11269 )
11270 );
11271
11272 $this->customizer->add_setting(
11273 'betterdocs_doc_single_related_docs_label_padding_right',
11274 [
11275 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_right'],
11276 'capability' => 'edit_theme_options',
11277 'transport' => 'postMessage',
11278 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11279
11280 ]
11281 );
11282
11283 $this->customizer->add_control(
11284 new DimensionControl(
11285 $this->customizer,
11286 'betterdocs_doc_single_related_docs_label_padding_right',
11287 [
11288 'type' => 'betterdocs-dimension',
11289 'section' => 'betterdocs_single_docs_settings',
11290 'settings' => 'betterdocs_doc_single_related_docs_label_padding_right',
11291 'label' => __( 'Right', 'betterdocs' ),
11292 'priority' => 163,
11293 'input_attrs' => [
11294 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
11295 ]
11296 ]
11297 )
11298 );
11299
11300 $this->customizer->add_setting(
11301 'betterdocs_doc_single_related_docs_label_padding_bottom',
11302 [
11303 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_bottom'],
11304 'capability' => 'edit_theme_options',
11305 'transport' => 'postMessage',
11306 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11307
11308 ]
11309 );
11310
11311 $this->customizer->add_control(
11312 new DimensionControl(
11313 $this->customizer,
11314 'betterdocs_doc_single_related_docs_label_padding_bottom',
11315 [
11316 'type' => 'betterdocs-dimension',
11317 'section' => 'betterdocs_single_docs_settings',
11318 'settings' => 'betterdocs_doc_single_related_docs_label_padding_bottom',
11319 'label' => __( 'Bottom', 'betterdocs' ),
11320 'priority' => 163,
11321 'input_attrs' => [
11322 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
11323 ]
11324 ]
11325 )
11326 );
11327
11328 $this->customizer->add_setting(
11329 'betterdocs_doc_single_related_docs_label_padding_left',
11330 [
11331 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_left'],
11332 'capability' => 'edit_theme_options',
11333 'transport' => 'postMessage',
11334 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11335
11336 ]
11337 );
11338
11339 $this->customizer->add_control(
11340 new DimensionControl(
11341 $this->customizer,
11342 'betterdocs_doc_single_related_docs_label_padding_left',
11343 [
11344 'type' => 'betterdocs-dimension',
11345 'section' => 'betterdocs_single_docs_settings',
11346 'settings' => 'betterdocs_doc_single_related_docs_label_padding_left',
11347 'label' => __( 'Left', 'betterdocs' ),
11348 'priority' => 163,
11349 'input_attrs' => [
11350 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
11351 ]
11352 ]
11353 )
11354 );
11355 }
11356
11357 public function betterdocs_doc_single_related_docs_label_margin() {
11358 $this->customizer->add_setting(
11359 'betterdocs_doc_single_related_docs_label_margin',
11360 [
11361 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin'],
11362 'capability' => 'edit_theme_options',
11363 'transport' => 'postMessage',
11364 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11365
11366 ]
11367 );
11368
11369 $this->customizer->add_control(
11370 new TitleControl(
11371 $this->customizer,
11372 'betterdocs_doc_single_related_docs_label_margin',
11373 [
11374 'type' => 'betterdocs-title',
11375 'section' => 'betterdocs_single_docs_settings',
11376 'settings' => 'betterdocs_doc_single_related_docs_label_margin',
11377 'label' => __( 'Label Margin', 'betterdocs' ),
11378 'priority' => 163,
11379 'input_attrs' => [
11380 'id' => 'betterdocs_doc_single_related_docs_label_margin',
11381 'class' => 'betterdocs-dimension'
11382 ]
11383 ]
11384 )
11385 );
11386
11387 $this->customizer->add_setting(
11388 'betterdocs_doc_single_related_docs_label_margin_top',
11389 [
11390 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_top'],
11391 'capability' => 'edit_theme_options',
11392 'transport' => 'postMessage',
11393 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11394 ]
11395 );
11396
11397 $this->customizer->add_control(
11398 new DimensionControl(
11399 $this->customizer,
11400 'betterdocs_doc_single_related_docs_label_margin_top',
11401 [
11402 'type' => 'betterdocs-dimension',
11403 'section' => 'betterdocs_single_docs_settings',
11404 'settings' => 'betterdocs_doc_single_related_docs_label_margin_top',
11405 'label' => __( 'Top', 'betterdocs' ),
11406 'priority' => 163,
11407 'input_attrs' => [
11408 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
11409 ]
11410 ]
11411 )
11412 );
11413
11414 $this->customizer->add_setting(
11415 'betterdocs_doc_single_related_docs_label_margin_right',
11416 [
11417 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_right'],
11418 'capability' => 'edit_theme_options',
11419 'transport' => 'postMessage',
11420 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11421
11422 ]
11423 );
11424
11425 $this->customizer->add_control(
11426 new DimensionControl(
11427 $this->customizer,
11428 'betterdocs_doc_single_related_docs_label_margin_right',
11429 [
11430 'type' => 'betterdocs-dimension',
11431 'section' => 'betterdocs_single_docs_settings',
11432 'settings' => 'betterdocs_doc_single_related_docs_label_margin_right',
11433 'label' => __( 'Right', 'betterdocs' ),
11434 'priority' => 163,
11435 'input_attrs' => [
11436 'class' => 'betterdocs_doc_single_related_docs_label_margin_right betterdocs-dimension'
11437 ]
11438 ]
11439 )
11440 );
11441
11442 $this->customizer->add_setting(
11443 'betterdocs_doc_single_related_docs_label_margin_bottom',
11444 [
11445 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_bottom'],
11446 'capability' => 'edit_theme_options',
11447 'transport' => 'postMessage',
11448 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11449 ]
11450 );
11451
11452 $this->customizer->add_control(
11453 new DimensionControl(
11454 $this->customizer,
11455 'betterdocs_doc_single_related_docs_label_margin_bottom',
11456 [
11457 'type' => 'betterdocs-dimension',
11458 'section' => 'betterdocs_single_docs_settings',
11459 'settings' => 'betterdocs_doc_single_related_docs_label_margin_bottom',
11460 'label' => __( 'Bottom', 'betterdocs' ),
11461 'priority' => 163,
11462 'input_attrs' => [
11463 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
11464 ]
11465 ]
11466 )
11467 );
11468
11469 $this->customizer->add_setting(
11470 'betterdocs_doc_single_related_docs_label_margin_left',
11471 [
11472 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_left'],
11473 'capability' => 'edit_theme_options',
11474 'transport' => 'postMessage',
11475 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11476 ]
11477 );
11478
11479 $this->customizer->add_control(
11480 new DimensionControl(
11481 $this->customizer,
11482 'betterdocs_doc_single_related_docs_label_margin_left',
11483 [
11484 'type' => 'betterdocs-dimension',
11485 'section' => 'betterdocs_single_docs_settings',
11486 'settings' => 'betterdocs_doc_single_related_docs_label_margin_left',
11487 'label' => __( 'Left', 'betterdocs' ),
11488 'priority' => 163,
11489 'input_attrs' => [
11490 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
11491 ]
11492 ]
11493 )
11494 );
11495 }
11496
11497 public function betterdocs_doc_related_docs_list_font_size() {
11498 $this->customizer->add_setting(
11499 'betterdocs_doc_related_docs_list_font_size',
11500 [
11501 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_size'],
11502 'capability' => 'edit_theme_options',
11503 'transport' => 'postMessage',
11504 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11505
11506 ]
11507 );
11508
11509 $this->customizer->add_control(
11510 new RangeValueControl(
11511 $this->customizer,
11512 'betterdocs_doc_related_docs_list_font_size',
11513 [
11514 'type' => 'betterdocs-range-value',
11515 'section' => 'betterdocs_single_docs_settings',
11516 'settings' => 'betterdocs_doc_related_docs_list_font_size',
11517 'label' => __( 'List Font Size', 'betterdocs' ),
11518 'priority' => 163,
11519 'input_attrs' => [
11520 'min' => 0,
11521 'max' => 50,
11522 'step' => 1,
11523 'suffix' => 'px' //optional suffix
11524 ]
11525 ]
11526 )
11527 );
11528 }
11529
11530 public function betterdocs_doc_related_docs_list_font_weight() {
11531 $this->customizer->add_setting(
11532 'betterdocs_doc_related_docs_list_font_weight',
11533 [
11534 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_weight'],
11535 'capability' => 'edit_theme_options',
11536 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
11537 ]
11538 );
11539
11540 $this->customizer->add_control(
11541 new WP_Customize_Control(
11542 $this->customizer,
11543 'betterdocs_doc_related_docs_list_font_weight',
11544 [
11545 'label' => __( 'List Font Weight', 'betterdocs' ),
11546 'section' => 'betterdocs_single_docs_settings',
11547 'settings' => 'betterdocs_doc_related_docs_list_font_weight',
11548 'type' => 'select',
11549 'choices' => [
11550 'normal' => 'Normal',
11551 '100' => '100',
11552 '200' => '200',
11553 '300' => '300',
11554 '400' => '400',
11555 '500' => '500',
11556 '600' => '600',
11557 '700' => '700',
11558 '800' => '800',
11559 '900' => '900'
11560 ],
11561 'priority' => 163
11562 ]
11563 )
11564 );
11565 }
11566
11567
11568 public function betterdocs_doc_single_related_docs_list_color() {
11569 $this->customizer->add_setting(
11570 'betterdocs_doc_single_related_docs_list_color',
11571 [
11572 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_color'],
11573 'capability' => 'edit_theme_options',
11574 'transport' => 'postMessage',
11575 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
11576 ]
11577 );
11578
11579 $this->customizer->add_control(
11580 new AlphaColorControl(
11581 $this->customizer,
11582 'betterdocs_doc_single_related_docs_list_color',
11583 [
11584 'label' => __( 'List Color', 'betterdocs' ),
11585 'section' => 'betterdocs_single_docs_settings',
11586 'settings' => 'betterdocs_doc_single_related_docs_list_color',
11587 'priority' => 163
11588 ]
11589 )
11590 );
11591 }
11592
11593 public function betterdocs_doc_single_related_docs_list_background_color() {
11594 $this->customizer->add_setting(
11595 'betterdocs_doc_single_related_docs_list_background_color',
11596 [
11597 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_background_color'],
11598 'capability' => 'edit_theme_options',
11599 'transport' => 'postMessage',
11600 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
11601 ]
11602 );
11603
11604 $this->customizer->add_control(
11605 new AlphaColorControl(
11606 $this->customizer,
11607 'betterdocs_doc_single_related_docs_list_background_color',
11608 [
11609 'label' => __( 'List Background Color', 'betterdocs' ),
11610 'section' => 'betterdocs_single_docs_settings',
11611 'settings' => 'betterdocs_doc_single_related_docs_list_background_color',
11612 'priority' => 163
11613 ]
11614 )
11615 );
11616 }
11617
11618 public function betterdocs_doc_single_related_docs_list_padding() {
11619 $this->customizer->add_setting(
11620 'betterdocs_doc_single_related_docs_list_padding',
11621 [
11622 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding'],
11623 'capability' => 'edit_theme_options',
11624 'transport' => 'postMessage',
11625 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11626
11627 ]
11628 );
11629
11630 $this->customizer->add_control(
11631 new TitleControl(
11632 $this->customizer,
11633 'betterdocs_doc_single_related_docs_list_padding',
11634 [
11635 'type' => 'betterdocs-title',
11636 'section' => 'betterdocs_single_docs_settings',
11637 'settings' => 'betterdocs_doc_single_related_docs_list_padding',
11638 'label' => __( 'List Padding', 'betterdocs' ),
11639 'priority' => 163,
11640 'input_attrs' => [
11641 'id' => 'betterdocs_doc_single_related_docs_list_padding',
11642 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
11643 ]
11644 ]
11645 )
11646 );
11647
11648 $this->customizer->add_setting(
11649 'betterdocs_doc_single_related_docs_list_padding_top',
11650 [
11651 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_top'],
11652 'capability' => 'edit_theme_options',
11653 'transport' => 'postMessage',
11654 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11655 ]
11656 );
11657
11658 $this->customizer->add_control(
11659 new DimensionControl(
11660 $this->customizer,
11661 'betterdocs_doc_single_related_docs_list_padding_top',
11662 [
11663 'type' => 'betterdocs-dimension',
11664 'section' => 'betterdocs_single_docs_settings',
11665 'settings' => 'betterdocs_doc_single_related_docs_list_padding_top',
11666 'label' => __( 'Top', 'betterdocs' ),
11667 'priority' => 163,
11668 'input_attrs' => [
11669 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
11670 ]
11671 ]
11672 )
11673 );
11674
11675 $this->customizer->add_setting(
11676 'betterdocs_doc_single_related_docs_list_padding_right',
11677 [
11678 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_right'],
11679 'capability' => 'edit_theme_options',
11680 'transport' => 'postMessage',
11681 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11682
11683 ]
11684 );
11685
11686 $this->customizer->add_control(
11687 new DimensionControl(
11688 $this->customizer,
11689 'betterdocs_doc_single_related_docs_list_padding_right',
11690 [
11691 'type' => 'betterdocs-dimension',
11692 'section' => 'betterdocs_single_docs_settings',
11693 'settings' => 'betterdocs_doc_single_related_docs_list_padding_right',
11694 'label' => __( 'Right', 'betterdocs' ),
11695 'priority' => 163,
11696 'input_attrs' => [
11697 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
11698 ]
11699 ]
11700 )
11701 );
11702
11703 $this->customizer->add_setting(
11704 'betterdocs_doc_single_related_docs_list_padding_bottom',
11705 [
11706 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_bottom'],
11707 'capability' => 'edit_theme_options',
11708 'transport' => 'postMessage',
11709 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11710 ]
11711 );
11712
11713 $this->customizer->add_control(
11714 new DimensionControl(
11715 $this->customizer,
11716 'betterdocs_doc_single_related_docs_list_padding_bottom',
11717 [
11718 'type' => 'betterdocs-dimension',
11719 'section' => 'betterdocs_single_docs_settings',
11720 'settings' => 'betterdocs_doc_single_related_docs_list_padding_bottom',
11721 'label' => __( 'Bottom', 'betterdocs' ),
11722 'priority' => 163,
11723 'input_attrs' => [
11724 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
11725 ]
11726 ]
11727 )
11728 );
11729
11730 $this->customizer->add_setting(
11731 'betterdocs_doc_single_related_docs_list_padding_left',
11732 [
11733 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_left'],
11734 'capability' => 'edit_theme_options',
11735 'transport' => 'postMessage',
11736 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11737 ]
11738 );
11739
11740 $this->customizer->add_control(
11741 new DimensionControl(
11742 $this->customizer,
11743 'betterdocs_doc_single_related_docs_list_padding_left',
11744 [
11745 'type' => 'betterdocs-dimension',
11746 'section' => 'betterdocs_single_docs_settings',
11747 'settings' => 'betterdocs_doc_single_related_docs_list_padding_left',
11748 'label' => __( 'Left', 'betterdocs' ),
11749 'priority' => 163,
11750 'input_attrs' => [
11751 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
11752 ]
11753 ]
11754 )
11755 );
11756 }
11757
11758 public function betterdocs_doc_single_related_docs_list_margin() {
11759 $this->customizer->add_setting(
11760 'betterdocs_doc_single_related_docs_list_margin',
11761 [
11762 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin'],
11763 'capability' => 'edit_theme_options',
11764 'transport' => 'postMessage',
11765 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11766
11767 ]
11768 );
11769
11770 $this->customizer->add_control(
11771 new TitleControl(
11772 $this->customizer,
11773 'betterdocs_doc_single_related_docs_list_margin',
11774 [
11775 'type' => 'betterdocs-title',
11776 'section' => 'betterdocs_single_docs_settings',
11777 'settings' => 'betterdocs_doc_single_related_docs_list_margin',
11778 'label' => __( 'List Margin', 'betterdocs' ),
11779 'priority' => 163,
11780 'input_attrs' => [
11781 'id' => 'betterdocs_doc_single_related_docs_list_margin',
11782 'class' => 'betterdocs-dimension'
11783 ]
11784 ]
11785 )
11786 );
11787
11788 $this->customizer->add_setting(
11789 'betterdocs_doc_single_related_docs_list_margin_top',
11790 [
11791 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_top'],
11792 'capability' => 'edit_theme_options',
11793 'transport' => 'postMessage',
11794 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11795 ]
11796 );
11797
11798 $this->customizer->add_control(
11799 new DimensionControl(
11800 $this->customizer,
11801 'betterdocs_doc_single_related_docs_list_margin_top',
11802 [
11803 'type' => 'betterdocs-dimension',
11804 'section' => 'betterdocs_single_docs_settings',
11805 'settings' => 'betterdocs_doc_single_related_docs_list_margin_top',
11806 'label' => __( 'Top', 'betterdocs' ),
11807 'priority' => 163,
11808 'input_attrs' => [
11809 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
11810 ]
11811 ]
11812 )
11813 );
11814
11815 $this->customizer->add_setting(
11816 'betterdocs_doc_single_related_docs_list_margin_right',
11817 [
11818 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_right'],
11819 'capability' => 'edit_theme_options',
11820 'transport' => 'postMessage',
11821 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11822
11823 ]
11824 );
11825
11826 $this->customizer->add_control(
11827 new DimensionControl(
11828 $this->customizer,
11829 'betterdocs_doc_single_related_docs_list_margin_right',
11830 [
11831 'type' => 'betterdocs-dimension',
11832 'section' => 'betterdocs_single_docs_settings',
11833 'settings' => 'betterdocs_doc_single_related_docs_list_margin_right',
11834 'label' => __( 'Right', 'betterdocs' ),
11835 'priority' => 163,
11836 'input_attrs' => [
11837 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
11838 ]
11839 ]
11840 )
11841 );
11842
11843 $this->customizer->add_setting(
11844 'betterdocs_doc_single_related_docs_list_margin_bottom',
11845 [
11846 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_bottom'],
11847 'capability' => 'edit_theme_options',
11848 'transport' => 'postMessage',
11849 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11850 ]
11851 );
11852
11853 $this->customizer->add_control(
11854 new DimensionControl(
11855 $this->customizer,
11856 'betterdocs_doc_single_related_docs_list_margin_bottom',
11857 [
11858 'type' => 'betterdocs-dimension',
11859 'section' => 'betterdocs_single_docs_settings',
11860 'settings' => 'betterdocs_doc_single_related_docs_list_margin_bottom',
11861 'label' => __( 'Bottom', 'betterdocs' ),
11862 'priority' => 163,
11863 'input_attrs' => [
11864 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
11865 ]
11866 ]
11867 )
11868 );
11869
11870 $this->customizer->add_setting(
11871 'betterdocs_doc_single_related_docs_list_margin_left',
11872 [
11873 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_left'],
11874 'capability' => 'edit_theme_options',
11875 'transport' => 'postMessage',
11876 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11877 ]
11878 );
11879
11880 $this->customizer->add_control(
11881 new DimensionControl(
11882 $this->customizer,
11883 'betterdocs_doc_single_related_docs_list_margin_left',
11884 [
11885 'type' => 'betterdocs-dimension',
11886 'section' => 'betterdocs_single_docs_settings',
11887 'settings' => 'betterdocs_doc_single_related_docs_list_margin_left',
11888 'label' => __( 'Left', 'betterdocs' ),
11889 'priority' => 163,
11890 'input_attrs' => [
11891 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
11892 ]
11893 ]
11894 )
11895 );
11896 }
11897
11898 public function betterdocs_doc_single_related_docs_heading_layout_8_9() {
11899 $this->customizer->add_setting(
11900 'betterdocs_doc_single_related_docs_heading_layout_8_9',
11901 [
11902 'default' => 'betterdocs_doc_single_related_docs_heading_layout_8_9',
11903 'sanitize_callback' => 'esc_html'
11904 ]
11905 );
11906
11907 $this->customizer->add_control(
11908 new SeparatorControl(
11909 $this->customizer,
11910 'betterdocs_doc_single_related_docs_heading_layout_8_9',
11911 [
11912 'label' => __( 'Related Docs', 'betterdocs' ),
11913 'priority' => 163,
11914 'settings' => 'betterdocs_doc_single_related_docs_heading_layout_8_9',
11915 'section' => 'betterdocs_single_docs_settings'
11916 ]
11917 )
11918 );
11919 }
11920
11921 public function betterdocs_doc_single_related_docs_content_bg_color_layout_8_9() {
11922 $this->customizer->add_setting(
11923 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
11924 [
11925 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_bg_color_layout_8_9'],
11926 'capability' => 'edit_theme_options',
11927 'transport' => 'postMessage',
11928 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
11929 ]
11930 );
11931
11932 $this->customizer->add_control(
11933 new AlphaColorControl(
11934 $this->customizer,
11935 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
11936 [
11937 'label' => __( 'Content Background Color', 'betterdocs' ),
11938 'section' => 'betterdocs_single_docs_settings',
11939 'settings' => 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
11940 'priority' => 163
11941 ]
11942 )
11943 );
11944 }
11945
11946 public function betterdocs_doc_single_related_docs_content_padding_layout_8_9() {
11947 $this->customizer->add_setting(
11948 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
11949 [
11950 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_layout_8_9'],
11951 'capability' => 'edit_theme_options',
11952 'transport' => 'postMessage',
11953 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11954
11955 ]
11956 );
11957
11958 $this->customizer->add_control(
11959 new TitleControl(
11960 $this->customizer,
11961 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
11962 [
11963 'type' => 'betterdocs-title',
11964 'section' => 'betterdocs_single_docs_settings',
11965 'settings' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
11966 'label' => __( 'Content Padding', 'betterdocs' ),
11967 'priority' => 163,
11968 'input_attrs' => [
11969 'id' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
11970 'class' => 'betterdocs-dimension'
11971 ]
11972 ]
11973 )
11974 );
11975
11976 $this->customizer->add_setting(
11977 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9',
11978 [
11979 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_top_layout_8_9'],
11980 'capability' => 'edit_theme_options',
11981 'transport' => 'postMessage',
11982 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11983 ]
11984 );
11985
11986 $this->customizer->add_control(
11987 new DimensionControl(
11988 $this->customizer,
11989 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9',
11990 [
11991 'type' => 'betterdocs-dimension',
11992 'section' => 'betterdocs_single_docs_settings',
11993 'settings' => 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9',
11994 'label' => __( 'Top', 'betterdocs' ),
11995 'priority' => 163,
11996 'input_attrs' => [
11997 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
11998 ]
11999 ]
12000 )
12001 );
12002
12003 $this->customizer->add_setting(
12004 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9',
12005 [
12006 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_right_layout_8_9'],
12007 'capability' => 'edit_theme_options',
12008 'transport' => 'postMessage',
12009 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12010
12011 ]
12012 );
12013
12014 $this->customizer->add_control(
12015 new DimensionControl(
12016 $this->customizer,
12017 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9',
12018 [
12019 'type' => 'betterdocs-dimension',
12020 'section' => 'betterdocs_single_docs_settings',
12021 'settings' => 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9',
12022 'label' => __( 'Right', 'betterdocs' ),
12023 'priority' => 163,
12024 'input_attrs' => [
12025 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
12026 ]
12027 ]
12028 )
12029 );
12030
12031 $this->customizer->add_setting(
12032 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9',
12033 [
12034 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9'],
12035 'capability' => 'edit_theme_options',
12036 'transport' => 'postMessage',
12037 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12038
12039 ]
12040 );
12041
12042 $this->customizer->add_control(
12043 new DimensionControl(
12044 $this->customizer,
12045 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9',
12046 [
12047 'type' => 'betterdocs-dimension',
12048 'section' => 'betterdocs_single_docs_settings',
12049 'settings' => 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9',
12050 'label' => __( 'Bottom', 'betterdocs' ),
12051 'priority' => 163,
12052 'input_attrs' => [
12053 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
12054 ]
12055 ]
12056 )
12057 );
12058
12059 $this->customizer->add_setting(
12060 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9',
12061 [
12062 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_left_layout_8_9'],
12063 'capability' => 'edit_theme_options',
12064 'transport' => 'postMessage',
12065 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12066
12067 ]
12068 );
12069
12070 $this->customizer->add_control(
12071 new DimensionControl(
12072 $this->customizer,
12073 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9',
12074 [
12075 'type' => 'betterdocs-dimension',
12076 'section' => 'betterdocs_single_docs_settings',
12077 'settings' => 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9',
12078 'label' => __( 'Left', 'betterdocs' ),
12079 'priority' => 163,
12080 'input_attrs' => [
12081 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
12082 ]
12083 ]
12084 )
12085 );
12086 }
12087
12088 public function betterdocs_doc_single_related_docs_content_margin_layout_8_9() {
12089 $this->customizer->add_setting(
12090 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
12091 [
12092 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_layout_8_9'],
12093 'capability' => 'edit_theme_options',
12094 'transport' => 'postMessage',
12095 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12096
12097 ]
12098 );
12099
12100 $this->customizer->add_control(
12101 new TitleControl(
12102 $this->customizer,
12103 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
12104 [
12105 'type' => 'betterdocs-title',
12106 'section' => 'betterdocs_single_docs_settings',
12107 'settings' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
12108 'label' => __( 'Content Margin', 'betterdocs' ),
12109 'priority' => 163,
12110 'input_attrs' => [
12111 'id' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
12112 'class' => 'betterdocs-dimension'
12113 ]
12114 ]
12115 )
12116 );
12117
12118 $this->customizer->add_setting(
12119 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9',
12120 [
12121 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_top_layout_8_9'],
12122 'capability' => 'edit_theme_options',
12123 'transport' => 'postMessage',
12124 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12125 ]
12126 );
12127
12128 $this->customizer->add_control(
12129 new DimensionControl(
12130 $this->customizer,
12131 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9',
12132 [
12133 'type' => 'betterdocs-dimension',
12134 'section' => 'betterdocs_single_docs_settings',
12135 'settings' => 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9',
12136 'label' => __( 'Top', 'betterdocs' ),
12137 'priority' => 163,
12138 'input_attrs' => [
12139 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
12140 ]
12141 ]
12142 )
12143 );
12144
12145 $this->customizer->add_setting(
12146 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9',
12147 [
12148 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_right_layout_8_9'],
12149 'capability' => 'edit_theme_options',
12150 'transport' => 'postMessage',
12151 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12152
12153 ]
12154 );
12155
12156 $this->customizer->add_control(
12157 new DimensionControl(
12158 $this->customizer,
12159 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9',
12160 [
12161 'type' => 'betterdocs-dimension',
12162 'section' => 'betterdocs_single_docs_settings',
12163 'settings' => 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9',
12164 'label' => __( 'Right', 'betterdocs' ),
12165 'priority' => 163,
12166 'input_attrs' => [
12167 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
12168 ]
12169 ]
12170 )
12171 );
12172
12173 $this->customizer->add_setting(
12174 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9',
12175 [
12176 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9'],
12177 'capability' => 'edit_theme_options',
12178 'transport' => 'postMessage',
12179 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12180
12181 ]
12182 );
12183
12184 $this->customizer->add_control(
12185 new DimensionControl(
12186 $this->customizer,
12187 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9',
12188 [
12189 'type' => 'betterdocs-dimension',
12190 'section' => 'betterdocs_single_docs_settings',
12191 'settings' => 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9',
12192 'label' => __( 'Bottom', 'betterdocs' ),
12193 'priority' => 163,
12194 'input_attrs' => [
12195 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
12196 ]
12197 ]
12198 )
12199 );
12200
12201 $this->customizer->add_setting(
12202 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9',
12203 [
12204 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_left_layout_8_9'],
12205 'capability' => 'edit_theme_options',
12206 'transport' => 'postMessage',
12207 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12208
12209 ]
12210 );
12211
12212 $this->customizer->add_control(
12213 new DimensionControl(
12214 $this->customizer,
12215 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9',
12216 [
12217 'type' => 'betterdocs-dimension',
12218 'section' => 'betterdocs_single_docs_settings',
12219 'settings' => 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9',
12220 'label' => __( 'Left', 'betterdocs' ),
12221 'priority' => 163,
12222 'input_attrs' => [
12223 'class' => 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9 betterdocs-dimension'
12224 ]
12225 ]
12226 )
12227 );
12228 }
12229
12230 public function betterdocs_doc_single_related_docs_label_color_layout_8_9() {
12231 $this->customizer->add_setting(
12232 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
12233 [
12234 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_color_layout_8_9'],
12235 'capability' => 'edit_theme_options',
12236 'transport' => 'postMessage',
12237 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
12238 ]
12239 );
12240
12241 $this->customizer->add_control(
12242 new AlphaColorControl(
12243 $this->customizer,
12244 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
12245 [
12246 'label' => __( 'Label Color', 'betterdocs' ),
12247 'section' => 'betterdocs_single_docs_settings',
12248 'settings' => 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
12249 'priority' => 163
12250 ]
12251 )
12252 );
12253 }
12254
12255 public function betterdocs_doc_single_related_docs_label_padding_layout_8_9() {
12256 $this->customizer->add_setting(
12257 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
12258 [
12259 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_layout_8_9'],
12260 'capability' => 'edit_theme_options',
12261 'transport' => 'postMessage',
12262 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12263
12264 ]
12265 );
12266
12267 $this->customizer->add_control(
12268 new TitleControl(
12269 $this->customizer,
12270 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
12271 [
12272 'type' => 'betterdocs-title',
12273 'section' => 'betterdocs_single_docs_settings',
12274 'settings' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
12275 'label' => __( 'Label Padding', 'betterdocs' ),
12276 'priority' => 163,
12277 'input_attrs' => [
12278 'id' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
12279 'class' => 'betterdocs-dimension'
12280 ]
12281 ]
12282 )
12283 );
12284
12285 $this->customizer->add_setting(
12286 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9',
12287 [
12288 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_top_layout_8_9'],
12289 'capability' => 'edit_theme_options',
12290 'transport' => 'postMessage',
12291 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12292 ]
12293 );
12294
12295 $this->customizer->add_control(
12296 new DimensionControl(
12297 $this->customizer,
12298 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9',
12299 [
12300 'type' => 'betterdocs-dimension',
12301 'section' => 'betterdocs_single_docs_settings',
12302 'settings' => 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9',
12303 'label' => __( 'Top', 'betterdocs' ),
12304 'priority' => 163,
12305 'input_attrs' => [
12306 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
12307 ]
12308 ]
12309 )
12310 );
12311
12312 $this->customizer->add_setting(
12313 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9',
12314 [
12315 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_right_layout_8_9'],
12316 'capability' => 'edit_theme_options',
12317 'transport' => 'postMessage',
12318 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12319
12320 ]
12321 );
12322
12323 $this->customizer->add_control(
12324 new DimensionControl(
12325 $this->customizer,
12326 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9',
12327 [
12328 'type' => 'betterdocs-dimension',
12329 'section' => 'betterdocs_single_docs_settings',
12330 'settings' => 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9',
12331 'label' => __( 'Right', 'betterdocs' ),
12332 'priority' => 163,
12333 'input_attrs' => [
12334 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
12335 ]
12336 ]
12337 )
12338 );
12339
12340 $this->customizer->add_setting(
12341 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9',
12342 [
12343 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9'],
12344 'capability' => 'edit_theme_options',
12345 'transport' => 'postMessage',
12346 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12347
12348 ]
12349 );
12350
12351 $this->customizer->add_control(
12352 new DimensionControl(
12353 $this->customizer,
12354 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9',
12355 [
12356 'type' => 'betterdocs-dimension',
12357 'section' => 'betterdocs_single_docs_settings',
12358 'settings' => 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9',
12359 'label' => __( 'Bottom', 'betterdocs' ),
12360 'priority' => 163,
12361 'input_attrs' => [
12362 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
12363 ]
12364 ]
12365 )
12366 );
12367
12368 $this->customizer->add_setting(
12369 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9',
12370 [
12371 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_left_layout_8_9'],
12372 'capability' => 'edit_theme_options',
12373 'transport' => 'postMessage',
12374 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12375
12376 ]
12377 );
12378
12379 $this->customizer->add_control(
12380 new DimensionControl(
12381 $this->customizer,
12382 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9',
12383 [
12384 'type' => 'betterdocs-dimension',
12385 'section' => 'betterdocs_single_docs_settings',
12386 'settings' => 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9',
12387 'label' => __( 'Left', 'betterdocs' ),
12388 'priority' => 163,
12389 'input_attrs' => [
12390 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
12391 ]
12392 ]
12393 )
12394 );
12395 }
12396
12397 public function betterdocs_doc_single_related_docs_label_margin_layout_8_9() {
12398 $this->customizer->add_setting(
12399 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
12400 [
12401 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_layout_8_9'],
12402 'capability' => 'edit_theme_options',
12403 'transport' => 'postMessage',
12404 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12405
12406 ]
12407 );
12408
12409 $this->customizer->add_control(
12410 new TitleControl(
12411 $this->customizer,
12412 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
12413 [
12414 'type' => 'betterdocs-title',
12415 'section' => 'betterdocs_single_docs_settings',
12416 'settings' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
12417 'label' => __( 'Label Margin', 'betterdocs' ),
12418 'priority' => 163,
12419 'input_attrs' => [
12420 'id' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
12421 'class' => 'betterdocs-dimension'
12422 ]
12423 ]
12424 )
12425 );
12426
12427 $this->customizer->add_setting(
12428 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9',
12429 [
12430 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_top_layout_8_9'],
12431 'capability' => 'edit_theme_options',
12432 'transport' => 'postMessage',
12433 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12434 ]
12435 );
12436
12437 $this->customizer->add_control(
12438 new DimensionControl(
12439 $this->customizer,
12440 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9',
12441 [
12442 'type' => 'betterdocs-dimension',
12443 'section' => 'betterdocs_single_docs_settings',
12444 'settings' => 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9',
12445 'label' => __( 'Top', 'betterdocs' ),
12446 'priority' => 163,
12447 'input_attrs' => [
12448 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
12449 ]
12450 ]
12451 )
12452 );
12453
12454 $this->customizer->add_setting(
12455 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9',
12456 [
12457 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_right_layout_8_9'],
12458 'capability' => 'edit_theme_options',
12459 'transport' => 'postMessage',
12460 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12461
12462 ]
12463 );
12464
12465 $this->customizer->add_control(
12466 new DimensionControl(
12467 $this->customizer,
12468 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9',
12469 [
12470 'type' => 'betterdocs-dimension',
12471 'section' => 'betterdocs_single_docs_settings',
12472 'settings' => 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9',
12473 'label' => __( 'Right', 'betterdocs' ),
12474 'priority' => 163,
12475 'input_attrs' => [
12476 'class' => 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9 betterdocs-dimension'
12477 ]
12478 ]
12479 )
12480 );
12481
12482 $this->customizer->add_setting(
12483 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9',
12484 [
12485 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9'],
12486 'capability' => 'edit_theme_options',
12487 'transport' => 'postMessage',
12488 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12489 ]
12490 );
12491
12492 $this->customizer->add_control(
12493 new DimensionControl(
12494 $this->customizer,
12495 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9',
12496 [
12497 'type' => 'betterdocs-dimension',
12498 'section' => 'betterdocs_single_docs_settings',
12499 'settings' => 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9',
12500 'label' => __( 'Bottom', 'betterdocs' ),
12501 'priority' => 163,
12502 'input_attrs' => [
12503 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
12504 ]
12505 ]
12506 )
12507 );
12508
12509 $this->customizer->add_setting(
12510 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9',
12511 [
12512 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_left_layout_8_9'],
12513 'capability' => 'edit_theme_options',
12514 'transport' => 'postMessage',
12515 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12516 ]
12517 );
12518
12519 $this->customizer->add_control(
12520 new DimensionControl(
12521 $this->customizer,
12522 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9',
12523 [
12524 'type' => 'betterdocs-dimension',
12525 'section' => 'betterdocs_single_docs_settings',
12526 'settings' => 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9',
12527 'label' => __( 'Left', 'betterdocs' ),
12528 'priority' => 163,
12529 'input_attrs' => [
12530 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
12531 ]
12532 ]
12533 )
12534 );
12535 }
12536
12537 public function betterdocs_doc_related_docs_list_font_size_layout_8_9() {
12538 $this->customizer->add_setting(
12539 'betterdocs_doc_related_docs_list_font_size_layout_8_9',
12540 [
12541 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_size_layout_8_9'],
12542 'capability' => 'edit_theme_options',
12543 'transport' => 'postMessage',
12544 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12545
12546 ]
12547 );
12548
12549 $this->customizer->add_control(
12550 new RangeValueControl(
12551 $this->customizer,
12552 'betterdocs_doc_related_docs_list_font_size_layout_8_9',
12553 [
12554 'type' => 'betterdocs-range-value',
12555 'section' => 'betterdocs_single_docs_settings',
12556 'settings' => 'betterdocs_doc_related_docs_list_font_size_layout_8_9',
12557 'label' => __( 'List Font Size', 'betterdocs' ),
12558 'priority' => 163,
12559 'input_attrs' => [
12560 'min' => 0,
12561 'max' => 50,
12562 'step' => 1,
12563 'suffix' => 'px' //optional suffix
12564 ]
12565 ]
12566 )
12567 );
12568 }
12569
12570 public function betterdocs_doc_related_docs_list_font_weight_layout_8_9() {
12571 $this->customizer->add_setting(
12572 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
12573 [
12574 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_weight_layout_8_9'],
12575 'capability' => 'edit_theme_options',
12576 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
12577 ]
12578 );
12579
12580 $this->customizer->add_control(
12581 new WP_Customize_Control(
12582 $this->customizer,
12583 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
12584 [
12585 'label' => __( 'List Font Weight', 'betterdocs' ),
12586 'section' => 'betterdocs_single_docs_settings',
12587 'settings' => 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
12588 'type' => 'select',
12589 'choices' => [
12590 'normal' => 'Normal',
12591 '100' => '100',
12592 '200' => '200',
12593 '300' => '300',
12594 '400' => '400',
12595 '500' => '500',
12596 '600' => '600',
12597 '700' => '700',
12598 '800' => '800',
12599 '900' => '900'
12600 ],
12601 'priority' => 163
12602 ]
12603 )
12604 );
12605 }
12606
12607
12608 public function betterdocs_doc_single_related_docs_list_color_layout_8_9() {
12609 $this->customizer->add_setting(
12610 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
12611 [
12612 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_color_layout_8_9'],
12613 'capability' => 'edit_theme_options',
12614 'transport' => 'postMessage',
12615 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
12616 ]
12617 );
12618
12619 $this->customizer->add_control(
12620 new AlphaColorControl(
12621 $this->customizer,
12622 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
12623 [
12624 'label' => __( 'List Color', 'betterdocs' ),
12625 'section' => 'betterdocs_single_docs_settings',
12626 'settings' => 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
12627 'priority' => 163
12628 ]
12629 )
12630 );
12631 }
12632
12633 public function betterdocs_doc_single_related_docs_list_background_color_layout_8_9() {
12634 $this->customizer->add_setting(
12635 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
12636 [
12637 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_background_color_layout_8_9'],
12638 'capability' => 'edit_theme_options',
12639 'transport' => 'postMessage',
12640 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
12641 ]
12642 );
12643
12644 $this->customizer->add_control(
12645 new AlphaColorControl(
12646 $this->customizer,
12647 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
12648 [
12649 'label' => __( 'List Background Color', 'betterdocs' ),
12650 'section' => 'betterdocs_single_docs_settings',
12651 'settings' => 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
12652 'priority' => 163
12653 ]
12654 )
12655 );
12656 }
12657
12658 public function betterdocs_doc_single_related_docs_list_padding_layout_8_9() {
12659 $this->customizer->add_setting(
12660 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
12661 [
12662 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_layout_8_9'],
12663 'capability' => 'edit_theme_options',
12664 'transport' => 'postMessage',
12665 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12666
12667 ]
12668 );
12669
12670 $this->customizer->add_control(
12671 new TitleControl(
12672 $this->customizer,
12673 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
12674 [
12675 'type' => 'betterdocs-title',
12676 'section' => 'betterdocs_single_docs_settings',
12677 'settings' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
12678 'label' => __( 'List Padding', 'betterdocs' ),
12679 'priority' => 163,
12680 'input_attrs' => [
12681 'id' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
12682 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
12683 ]
12684 ]
12685 )
12686 );
12687
12688 $this->customizer->add_setting(
12689 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9',
12690 [
12691 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_top_layout_8_9'],
12692 'capability' => 'edit_theme_options',
12693 'transport' => 'postMessage',
12694 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12695 ]
12696 );
12697
12698 $this->customizer->add_control(
12699 new DimensionControl(
12700 $this->customizer,
12701 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9',
12702 [
12703 'type' => 'betterdocs-dimension',
12704 'section' => 'betterdocs_single_docs_settings',
12705 'settings' => 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9',
12706 'label' => __( 'Top', 'betterdocs' ),
12707 'priority' => 163,
12708 'input_attrs' => [
12709 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
12710 ]
12711 ]
12712 )
12713 );
12714
12715 $this->customizer->add_setting(
12716 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9',
12717 [
12718 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_right_layout_8_9'],
12719 'capability' => 'edit_theme_options',
12720 'transport' => 'postMessage',
12721 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12722
12723 ]
12724 );
12725
12726 $this->customizer->add_control(
12727 new DimensionControl(
12728 $this->customizer,
12729 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9',
12730 [
12731 'type' => 'betterdocs-dimension',
12732 'section' => 'betterdocs_single_docs_settings',
12733 'settings' => 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9',
12734 'label' => __( 'Right', 'betterdocs' ),
12735 'priority' => 163,
12736 'input_attrs' => [
12737 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
12738 ]
12739 ]
12740 )
12741 );
12742
12743 $this->customizer->add_setting(
12744 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9',
12745 [
12746 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9'],
12747 'capability' => 'edit_theme_options',
12748 'transport' => 'postMessage',
12749 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12750 ]
12751 );
12752
12753 $this->customizer->add_control(
12754 new DimensionControl(
12755 $this->customizer,
12756 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9',
12757 [
12758 'type' => 'betterdocs-dimension',
12759 'section' => 'betterdocs_single_docs_settings',
12760 'settings' => 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9',
12761 'label' => __( 'Bottom', 'betterdocs' ),
12762 'priority' => 163,
12763 'input_attrs' => [
12764 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
12765 ]
12766 ]
12767 )
12768 );
12769
12770 $this->customizer->add_setting(
12771 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9',
12772 [
12773 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_left_layout_8_9'],
12774 'capability' => 'edit_theme_options',
12775 'transport' => 'postMessage',
12776 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12777 ]
12778 );
12779
12780 $this->customizer->add_control(
12781 new DimensionControl(
12782 $this->customizer,
12783 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9',
12784 [
12785 'type' => 'betterdocs-dimension',
12786 'section' => 'betterdocs_single_docs_settings',
12787 'settings' => 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9',
12788 'label' => __( 'Left', 'betterdocs' ),
12789 'priority' => 163,
12790 'input_attrs' => [
12791 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
12792 ]
12793 ]
12794 )
12795 );
12796 }
12797
12798 public function betterdocs_doc_single_related_docs_list_margin_layout_8_9() {
12799 $this->customizer->add_setting(
12800 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
12801 [
12802 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_layout_8_9'],
12803 'capability' => 'edit_theme_options',
12804 'transport' => 'postMessage',
12805 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12806
12807 ]
12808 );
12809
12810 $this->customizer->add_control(
12811 new TitleControl(
12812 $this->customizer,
12813 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
12814 [
12815 'type' => 'betterdocs-title',
12816 'section' => 'betterdocs_single_docs_settings',
12817 'settings' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
12818 'label' => __( 'List Margin', 'betterdocs' ),
12819 'priority' => 163,
12820 'input_attrs' => [
12821 'id' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
12822 'class' => 'betterdocs-dimension'
12823 ]
12824 ]
12825 )
12826 );
12827
12828 $this->customizer->add_setting(
12829 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9',
12830 [
12831 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_top_layout_8_9'],
12832 'capability' => 'edit_theme_options',
12833 'transport' => 'postMessage',
12834 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12835 ]
12836 );
12837
12838 $this->customizer->add_control(
12839 new DimensionControl(
12840 $this->customizer,
12841 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9',
12842 [
12843 'type' => 'betterdocs-dimension',
12844 'section' => 'betterdocs_single_docs_settings',
12845 'settings' => 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9',
12846 'label' => __( 'Top', 'betterdocs' ),
12847 'priority' => 163,
12848 'input_attrs' => [
12849 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
12850 ]
12851 ]
12852 )
12853 );
12854
12855 $this->customizer->add_setting(
12856 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9',
12857 [
12858 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_right_layout_8_9'],
12859 'capability' => 'edit_theme_options',
12860 'transport' => 'postMessage',
12861 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12862
12863 ]
12864 );
12865
12866 $this->customizer->add_control(
12867 new DimensionControl(
12868 $this->customizer,
12869 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9',
12870 [
12871 'type' => 'betterdocs-dimension',
12872 'section' => 'betterdocs_single_docs_settings',
12873 'settings' => 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9',
12874 'label' => __( 'Right', 'betterdocs' ),
12875 'priority' => 163,
12876 'input_attrs' => [
12877 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
12878 ]
12879 ]
12880 )
12881 );
12882
12883 $this->customizer->add_setting(
12884 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9',
12885 [
12886 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9'],
12887 'capability' => 'edit_theme_options',
12888 'transport' => 'postMessage',
12889 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12890 ]
12891 );
12892
12893 $this->customizer->add_control(
12894 new DimensionControl(
12895 $this->customizer,
12896 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9',
12897 [
12898 'type' => 'betterdocs-dimension',
12899 'section' => 'betterdocs_single_docs_settings',
12900 'settings' => 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9',
12901 'label' => __( 'Bottom', 'betterdocs' ),
12902 'priority' => 163,
12903 'input_attrs' => [
12904 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
12905 ]
12906 ]
12907 )
12908 );
12909
12910 $this->customizer->add_setting(
12911 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9',
12912 [
12913 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_left_layout_8_9'],
12914 'capability' => 'edit_theme_options',
12915 'transport' => 'postMessage',
12916 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12917 ]
12918 );
12919
12920 $this->customizer->add_control(
12921 new DimensionControl(
12922 $this->customizer,
12923 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9',
12924 [
12925 'type' => 'betterdocs-dimension',
12926 'section' => 'betterdocs_single_docs_settings',
12927 'settings' => 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9',
12928 'label' => __( 'Left', 'betterdocs' ),
12929 'priority' => 163,
12930 'input_attrs' => [
12931 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
12932 ]
12933 ]
12934 )
12935 );
12936 }
12937 }
12938