PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.1
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.1
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.9.1, at includes/Admin/Customizer/Sections/SingleDoc.php

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