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

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

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