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

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

8,972 lines 412.7 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( 'betterdocs_single_layout_select', [
45 'default' => $this->defaults['betterdocs_single_layout_select'],
46 'capability' => 'edit_theme_options',
47 'sanitize_callback' => [$this->sanitizer, 'select']
48 ] );
49
50 $choices = [
51 'layout-8' => [
52 'label' => __( 'Essence Layout', 'betterdocs' ),
53 'image' => $this->assets->icon( 'customizer/single/layout-8.png', true ),
54 ],
55 'layout-9' => [
56 'label' => __( 'Rustic Layout', 'betterdocs' ),
57 'image' => $this->assets->icon( 'customizer/single/layout-9.png', true ),
58 ],
59 'layout-1' => [
60 'label' => __( 'Classic Layout', 'betterdocs' ),
61 'image' => $this->assets->icon( 'customizer/single/layout-1.png', true )
62 ],
63 'layout-4' => [
64 'label' => __( 'Abstract Layout', 'betterdocs' ),
65 'image' => $this->assets->icon( 'customizer/single/layout-4.png', true ),
66 'pro' => false
67 ],
68 'layout-5' => [
69 'label' => __( 'Modern Layout', 'betterdocs' ),
70 'image' => $this->assets->icon( 'customizer/single/layout-5.png', true ),
71 'pro' => false
72 ],
73 'layout-2' => [
74 'label' => __( 'Minimalist Layout', 'betterdocs' ),
75 'image' => $this->assets->icon( 'customizer/single/layout-2.png', true ),
76 'pro' => true,
77 'url' => 'https://betterdocs.co/upgrade'
78 ],
79 'layout-3' => [
80 'label' => __( 'Artisan Layout', 'betterdocs' ),
81 'image' => $this->assets->icon( 'customizer/single/layout-3.png', true ),
82 'pro' => true,
83 'url' => 'https://betterdocs.co/upgrade'
84 ],
85 'layout-6' => [
86 'label' => __( 'Bohemian Layout', 'betterdocs' ),
87 'image' => $this->assets->icon( 'customizer/single/layout-6.png', true ),
88 'pro' => true,
89 'url' => 'https://betterdocs.co/upgrade'
90 ],
91 ];
92
93 if($encyclopeia_suorce == 'docs'){
94 $choices['layout-7'] = [
95 'label' => __( 'Encyclopedia Layout', 'betterdocs' ),
96 'image' => $this->assets->icon( 'customizer/encyclopedia/layout-7.png', true ),
97 'pro' => true,
98 'url' => 'https://betterdocs.co/upgrade'
99 ];
100 }
101
102
103 $this->customizer->add_control(
104 new RadioImageControl(
105 $this->customizer,
106 'betterdocs_single_layout_select',
107 [
108 'type' => 'betterdocs-radio-image',
109 'settings' => 'betterdocs_single_layout_select',
110 'section' => 'betterdocs_single_docs_settings',
111 'label' => __( 'Select Layout', 'betterdocs' ),
112 'priority' => 102,
113 'choices' => apply_filters( 'betterdocs_single_layout_select_choices', $choices )
114 ]
115 )
116 );
117 }
118
119 public function doc_single_content_area_bg_color() {
120 $this->customizer->add_setting( 'betterdocs_doc_single_content_area_bg_color', [
121 'default' => $this->defaults['betterdocs_doc_single_content_area_bg_color'],
122 'capability' => 'edit_theme_options',
123 'transport' => 'postMessage',
124 'sanitize_callback' => [$this->sanitizer, 'rgba']
125 ] );
126
127 $this->customizer->add_control(
128 new AlphaColorControl(
129 $this->customizer,
130 'betterdocs_doc_single_content_area_bg_color',
131 [
132 'label' => __( 'Content Area Background Color', 'betterdocs' ),
133 'section' => 'betterdocs_single_docs_settings',
134 'settings' => 'betterdocs_doc_single_content_area_bg_color',
135 'priority' => 103
136 ]
137 )
138 );
139 }
140
141 public function doc_single_content_area_bg_image() {
142 $this->customizer->add_setting( 'betterdocs_doc_single_content_area_bg_image', [
143 'default' => $this->defaults['betterdocs_doc_single_content_area_bg_image'],
144 'capability' => 'edit_theme_options',
145 'transport' => 'postMessage'
146 ] );
147
148 $this->customizer->add_control(
149 new WP_Customize_Image_Control(
150 $this->customizer,
151 'betterdocs_doc_single_content_area_bg_image',
152 [
153 'label' => __( 'Background Image', 'betterdocs' ),
154 'section' => 'betterdocs_single_docs_settings',
155 'settings' => 'betterdocs_doc_single_content_area_bg_image',
156 'priority' => 103
157 ] )
158 );
159 }
160
161 public function doc_single_content_bg_property() {
162 $this->customizer->add_setting( 'betterdocs_doc_single_content_bg_property', [
163 'default' => $this->defaults['betterdocs_doc_single_content_bg_property'],
164 'capability' => 'edit_theme_options',
165 'transport' => 'postMessage',
166 'sanitize_callback' => [$this->sanitizer, 'select']
167
168 ] );
169
170 $this->customizer->add_control( new TitleControl(
171 $this->customizer, 'betterdocs_doc_single_content_bg_property', [
172 'type' => 'betterdocs-title',
173 'section' => 'betterdocs_single_docs_settings',
174 'settings' => 'betterdocs_doc_single_content_bg_property',
175 'priority' => 103,
176 'label' => __( 'Background Property', 'betterdocs' ),
177 'input_attrs' => [
178 'id' => 'betterdocs_doc_single_content_bg_property',
179 'class' => 'betterdocs-select'
180 ]
181 ] )
182 );
183 }
184
185 public function doc_single_content_bg_property_size() {
186 $this->customizer->add_setting( 'betterdocs_doc_single_content_bg_property_size', [
187 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_size'],
188 'capability' => 'edit_theme_options',
189 'transport' => 'postMessage',
190 'sanitize_callback' => [$this->sanitizer, 'select']
191
192 ] );
193
194 $this->customizer->add_control( new SelectControl(
195 $this->customizer, 'betterdocs_doc_single_content_bg_property_size', [
196 'type' => 'betterdocs-select',
197 'section' => 'betterdocs_single_docs_settings',
198 'settings' => 'betterdocs_doc_single_content_bg_property_size',
199 'priority' => 103,
200 'label' => __( 'Size', 'betterdocs' ),
201 'input_attrs' => [
202 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
203 ],
204 'choices' => [
205 'auto' => __( 'auto', 'betterdocs' ),
206 'length' => __( 'length', 'betterdocs' ),
207 'cover' => __( 'cover', 'betterdocs' ),
208 'contain' => __( 'contain', 'betterdocs' ),
209 'initial' => __( 'initial', 'betterdocs' ),
210 'inherit' => __( 'inherit', 'betterdocs' )
211 ]
212 ] )
213 );
214 }
215
216 public function doc_single_content_bg_property_repeat() {
217 $this->customizer->add_setting( 'betterdocs_doc_single_content_bg_property_repeat', [
218 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_repeat'],
219 'capability' => 'edit_theme_options',
220 'transport' => 'postMessage',
221 'sanitize_callback' => [$this->sanitizer, 'select']
222 ] );
223
224 $this->customizer->add_control( new SelectControl(
225 $this->customizer, 'betterdocs_doc_single_content_bg_property_repeat', [
226 'type' => 'betterdocs-select',
227 'section' => 'betterdocs_single_docs_settings',
228 'settings' => 'betterdocs_doc_single_content_bg_property_repeat',
229 'priority' => 103,
230 'label' => __( 'Repeat', 'betterdocs' ),
231 'input_attrs' => [
232 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
233 ],
234 'choices' => [
235 'no-repeat' => __( 'no-repeat', 'betterdocs' ),
236 'initial' => __( 'initial', 'betterdocs' ),
237 'inherit' => __( 'inherit', 'betterdocs' ),
238 'repeat' => __( 'repeat', 'betterdocs' ),
239 'repeat-x' => __( 'repeat-x', 'betterdocs' ),
240 'repeat-y' => __( 'repeat-y', 'betterdocs' )
241 ]
242 ] )
243 );
244 }
245
246 public function doc_single_content_bg_property_attachment() {
247 $this->customizer->add_setting( 'betterdocs_doc_single_content_bg_property_attachment', [
248 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_attachment'],
249 'capability' => 'edit_theme_options',
250 'transport' => 'postMessage',
251 'sanitize_callback' => [$this->sanitizer, 'select']
252
253 ] );
254
255 $this->customizer->add_control( new SelectControl(
256 $this->customizer, 'betterdocs_doc_single_content_bg_property_attachment', [
257 'type' => 'betterdocs-select',
258 'section' => 'betterdocs_single_docs_settings',
259 'settings' => 'betterdocs_doc_single_content_bg_property_attachment',
260 'priority' => 103,
261 'label' => __( 'Attachment', 'betterdocs' ),
262 'input_attrs' => [
263 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
264 ],
265 'choices' => [
266 'initial' => __( 'initial', 'betterdocs' ),
267 'inherit' => __( 'inherit', 'betterdocs' ),
268 'scroll' => __( 'scroll', 'betterdocs' ),
269 'fixed' => __( 'fixed', 'betterdocs' ),
270 'local' => __( 'local', 'betterdocs' )
271 ]
272 ] )
273 );
274 }
275
276 public function doc_single_content_bg_property_position() {
277 $this->customizer->add_setting( 'betterdocs_doc_single_content_bg_property_position', [
278 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_position'],
279 'capability' => 'edit_theme_options',
280 'transport' => 'postMessage',
281 'sanitize_callback' => 'esc_html'
282
283 ] );
284
285 $this->customizer->add_control( new SelectControl(
286 $this->customizer, 'betterdocs_doc_single_content_bg_property_position', [
287 'type' => 'betterdocs-select',
288 'section' => 'betterdocs_single_docs_settings',
289 'settings' => 'betterdocs_doc_single_content_bg_property_position',
290 'priority' => 103,
291 'label' => __( 'Position', 'betterdocs' ),
292 'input_attrs' => [
293 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
294 ],
295 'choices' => [
296 'left top' => __( 'left top', 'betterdocs' ),
297 'left center' => __( 'left center', 'betterdocs' ),
298 'left bottom' => __( 'left bottom', 'betterdocs' ),
299 'right top' => __( 'right top', 'betterdocs' ),
300 'right center' => __( 'right center', 'betterdocs' ),
301 'right bottom' => __( 'right bottom', 'betterdocs' ),
302 'center top' => __( 'center top', 'betterdocs' ),
303 'center center' => __( 'center center', 'betterdocs' ),
304 'center bottom' => __( 'center bottom', 'betterdocs' )
305 ]
306 ] )
307 );
308 }
309
310 public function doc_single_content_area_padding() {
311 $this->customizer->add_setting( 'betterdocs_doc_single_content_area_padding', [
312 'default' => $this->defaults['betterdocs_doc_single_content_area_padding'],
313 'capability' => 'edit_theme_options',
314 'transport' => 'postMessage',
315 'sanitize_callback' => [$this->sanitizer, 'integer']
316
317 ] );
318
319 $this->customizer->add_control( new TitleControl(
320 $this->customizer, 'betterdocs_doc_single_content_area_padding', [
321 'type' => 'betterdocs-title',
322 'section' => 'betterdocs_single_docs_settings',
323 'settings' => 'betterdocs_doc_single_content_area_padding',
324 'label' => __( 'Content Area Padding', 'betterdocs' ),
325 'priority' => 104,
326 'input_attrs' => [
327 'id' => 'betterdocs_doc_single_content_area_padding',
328 'class' => 'betterdocs-dimension'
329 ]
330 ] )
331 );
332
333 $this->customizer->add_setting( 'betterdocs_doc_single_content_area_padding_top', [
334 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_top'],
335 'capability' => 'edit_theme_options',
336 'transport' => 'postMessage',
337 'sanitize_callback' => [$this->sanitizer, 'integer']
338 ] );
339
340 $this->customizer->add_control( new DimensionControl(
341 $this->customizer, 'betterdocs_doc_single_content_area_padding_top', [
342 'type' => 'betterdocs-dimension',
343 'section' => 'betterdocs_single_docs_settings',
344 'settings' => 'betterdocs_doc_single_content_area_padding_top',
345 'label' => __( 'Top', 'betterdocs' ),
346 'priority' => 104,
347 'input_attrs' => [
348 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
349 ]
350 ] )
351 );
352
353 $this->customizer->add_setting( 'betterdocs_doc_single_content_area_padding_right', [
354 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_right'],
355 'capability' => 'edit_theme_options',
356 'transport' => 'postMessage',
357 'sanitize_callback' => [$this->sanitizer, 'integer']
358
359 ] );
360
361 $this->customizer->add_control( new DimensionControl(
362 $this->customizer, 'betterdocs_doc_single_content_area_padding_right', [
363 'type' => 'betterdocs-dimension',
364 'section' => 'betterdocs_single_docs_settings',
365 'settings' => 'betterdocs_doc_single_content_area_padding_right',
366 'label' => __( 'Right', 'betterdocs' ),
367 'priority' => 104,
368 'input_attrs' => [
369 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
370 ]
371 ] )
372 );
373
374 $this->customizer->add_setting( 'betterdocs_doc_single_content_area_padding_bottom', [
375 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_bottom'],
376 'capability' => 'edit_theme_options',
377 'transport' => 'postMessage',
378 'sanitize_callback' => [$this->sanitizer, 'integer']
379
380 ] );
381
382 $this->customizer->add_control( new DimensionControl(
383 $this->customizer, 'betterdocs_doc_single_content_area_padding_bottom', [
384 'type' => 'betterdocs-dimension',
385 'section' => 'betterdocs_single_docs_settings',
386 'settings' => 'betterdocs_doc_single_content_area_padding_bottom',
387 'label' => __( 'Bottom', 'betterdocs' ),
388 'priority' => 104,
389 'input_attrs' => [
390 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
391 ]
392 ] )
393 );
394
395 $this->customizer->add_setting( 'betterdocs_doc_single_content_area_padding_left', [
396 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_left'],
397 'capability' => 'edit_theme_options',
398 'transport' => 'postMessage',
399 'sanitize_callback' => [$this->sanitizer, 'integer']
400
401 ] );
402
403 $this->customizer->add_control( new DimensionControl(
404 $this->customizer, 'betterdocs_doc_single_content_area_padding_left', [
405 'type' => 'betterdocs-dimension',
406 'section' => 'betterdocs_single_docs_settings',
407 'settings' => 'betterdocs_doc_single_content_area_padding_left',
408 'label' => __( 'Left', 'betterdocs' ),
409 'priority' => 104,
410 'input_attrs' => [
411 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
412 ]
413 ] )
414 );
415 }
416
417 public function doc_single_post_content_padding() {
418 $this->customizer->add_setting( 'betterdocs_doc_single_post_content_padding', [
419 'default' => $this->defaults['betterdocs_doc_single_post_content_padding'],
420 'capability' => 'edit_theme_options',
421 'transport' => 'postMessage',
422 'sanitize_callback' => [$this->sanitizer, 'integer']
423
424 ] );
425
426 $this->customizer->add_control( new TitleControl(
427 $this->customizer, 'betterdocs_doc_single_post_content_padding', [
428 'type' => 'betterdocs-title',
429 'section' => 'betterdocs_single_docs_settings',
430 'settings' => 'betterdocs_doc_single_post_content_padding',
431 'label' => __( 'Doc Content Padding', 'betterdocs' ),
432 'priority' => 109,
433 'input_attrs' => [
434 'id' => 'betterdocs_doc_single_post_content_padding',
435 'class' => 'betterdocs-dimension'
436 ]
437 ] )
438 );
439
440 $this->customizer->add_setting( 'betterdocs_doc_single_post_content_padding_top', [
441 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_top'],
442 'capability' => 'edit_theme_options',
443 'transport' => 'postMessage',
444 'sanitize_callback' => [$this->sanitizer, 'integer']
445 ] );
446
447 $this->customizer->add_control( new DimensionControl(
448 $this->customizer, 'betterdocs_doc_single_post_content_padding_top', [
449 'type' => 'betterdocs-dimension',
450 'section' => 'betterdocs_single_docs_settings',
451 'settings' => 'betterdocs_doc_single_post_content_padding_top',
452 'label' => __( 'Top', 'betterdocs' ),
453 'priority' => 109,
454 'input_attrs' => [
455 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
456 ]
457 ] )
458 );
459
460 $this->customizer->add_setting( 'betterdocs_doc_single_post_content_padding_right', [
461 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_right'],
462 'capability' => 'edit_theme_options',
463 'transport' => 'postMessage',
464 'sanitize_callback' => [$this->sanitizer, 'integer']
465
466 ] );
467
468 $this->customizer->add_control( new DimensionControl(
469 $this->customizer, 'betterdocs_doc_single_post_content_padding_right', [
470 'type' => 'betterdocs-dimension',
471 'section' => 'betterdocs_single_docs_settings',
472 'settings' => 'betterdocs_doc_single_post_content_padding_right',
473 'label' => __( 'Right', 'betterdocs' ),
474 'priority' => 109,
475 'input_attrs' => [
476 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
477 ]
478 ] )
479 );
480
481 $this->customizer->add_setting( 'betterdocs_doc_single_post_content_padding_bottom', [
482 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_bottom'],
483 'capability' => 'edit_theme_options',
484 'transport' => 'postMessage',
485 'sanitize_callback' => [$this->sanitizer, 'integer']
486
487 ] );
488
489 $this->customizer->add_control( new DimensionControl(
490 $this->customizer, 'betterdocs_doc_single_post_content_padding_bottom', [
491 'type' => 'betterdocs-dimension',
492 'section' => 'betterdocs_single_docs_settings',
493 'settings' => 'betterdocs_doc_single_post_content_padding_bottom',
494 'label' => __( 'Bottom', 'betterdocs' ),
495 'priority' => 109,
496 'input_attrs' => [
497 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
498 ]
499 ] )
500 );
501
502 $this->customizer->add_setting( 'betterdocs_doc_single_post_content_padding_left', [
503 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_left'],
504 'capability' => 'edit_theme_options',
505 'transport' => 'postMessage',
506 'sanitize_callback' => [$this->sanitizer, 'integer']
507
508 ] );
509
510 $this->customizer->add_control( new DimensionControl(
511 $this->customizer, 'betterdocs_doc_single_post_content_padding_left', [
512 'type' => 'betterdocs-dimension',
513 'section' => 'betterdocs_single_docs_settings',
514 'settings' => 'betterdocs_doc_single_post_content_padding_left',
515 'label' => __( 'Left', 'betterdocs' ),
516 'priority' => 109,
517 'input_attrs' => [
518 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
519 ]
520 ] )
521 );
522 }
523
524 public function doc_single_2_post_content_padding() {
525 $this->customizer->add_setting( 'betterdocs_doc_single_2_post_content_padding', [
526 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding'],
527 'capability' => 'edit_theme_options',
528 'transport' => 'postMessage',
529 'sanitize_callback' => [$this->sanitizer, 'integer']
530
531 ] );
532
533 $this->customizer->add_control( new TitleControl(
534 $this->customizer, 'betterdocs_doc_single_2_post_content_padding', [
535 'type' => 'betterdocs-title',
536 'section' => 'betterdocs_single_docs_settings',
537 'settings' => 'betterdocs_doc_single_2_post_content_padding',
538 'label' => __( 'Post Content Padding', 'betterdocs' ),
539 'priority' => 114,
540 'input_attrs' => [
541 'id' => 'betterdocs_doc_single_2_post_content_padding',
542 'class' => 'betterdocs-dimension'
543 ]
544 ] )
545 );
546
547 $this->customizer->add_setting( 'betterdocs_doc_single_2_post_content_padding_top', [
548 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_top'],
549 'capability' => 'edit_theme_options',
550 'transport' => 'postMessage',
551 'sanitize_callback' => [$this->sanitizer, 'integer']
552 ] );
553
554 $this->customizer->add_control( new DimensionControl(
555 $this->customizer, 'betterdocs_doc_single_2_post_content_padding_top', [
556 'type' => 'betterdocs-dimension',
557 'section' => 'betterdocs_single_docs_settings',
558 'settings' => 'betterdocs_doc_single_2_post_content_padding_top',
559 'label' => __( 'Top', 'betterdocs' ),
560 'priority' => 114,
561 'input_attrs' => [
562 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
563 ]
564 ] )
565 );
566
567 $this->customizer->add_setting( 'betterdocs_doc_single_2_post_content_padding_right', [
568 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_right'],
569 'capability' => 'edit_theme_options',
570 'transport' => 'postMessage',
571 'sanitize_callback' => [$this->sanitizer, 'integer']
572
573 ] );
574
575 $this->customizer->add_control( new DimensionControl(
576 $this->customizer, 'betterdocs_doc_single_2_post_content_padding_right', [
577 'type' => 'betterdocs-dimension',
578 'section' => 'betterdocs_single_docs_settings',
579 'settings' => 'betterdocs_doc_single_2_post_content_padding_right',
580 'label' => __( 'Right', 'betterdocs' ),
581 'priority' => 114,
582 'input_attrs' => [
583 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
584 ]
585 ] )
586 );
587
588 $this->customizer->add_setting( 'betterdocs_doc_single_2_post_content_padding_bottom', [
589 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_bottom'],
590 'capability' => 'edit_theme_options',
591 'transport' => 'postMessage',
592 'sanitize_callback' => [$this->sanitizer, 'integer']
593
594 ] );
595
596 $this->customizer->add_control( new DimensionControl(
597 $this->customizer, 'betterdocs_doc_single_2_post_content_padding_bottom', [
598 'type' => 'betterdocs-dimension',
599 'section' => 'betterdocs_single_docs_settings',
600 'settings' => 'betterdocs_doc_single_2_post_content_padding_bottom',
601 'label' => __( 'Bottom', 'betterdocs' ),
602 'priority' => 114,
603 'input_attrs' => [
604 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
605 ]
606 ] )
607 );
608
609 $this->customizer->add_setting( 'betterdocs_doc_single_2_post_content_padding_left', [
610 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_left'],
611 'capability' => 'edit_theme_options',
612 'transport' => 'postMessage',
613 'sanitize_callback' => [$this->sanitizer, 'integer']
614
615 ] );
616
617 $this->customizer->add_control( new DimensionControl(
618 $this->customizer, 'betterdocs_doc_single_2_post_content_padding_left', [
619 'type' => 'betterdocs-dimension',
620 'section' => 'betterdocs_single_docs_settings',
621 'settings' => 'betterdocs_doc_single_2_post_content_padding_left',
622 'label' => __( 'Left', 'betterdocs' ),
623 'priority' => 114,
624 'input_attrs' => [
625 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
626 ]
627 ] )
628 );
629 }
630
631 public function doc_single_3_post_content_padding() {
632 $this->customizer->add_setting( 'betterdocs_doc_single_3_post_content_padding', [
633 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding'],
634 'capability' => 'edit_theme_options',
635 'transport' => 'postMessage',
636 'sanitize_callback' => [$this->sanitizer, 'integer']
637
638 ] );
639
640 $this->customizer->add_control( new TitleControl(
641 $this->customizer, 'betterdocs_doc_single_3_post_content_padding', [
642 'type' => 'betterdocs-title',
643 'section' => 'betterdocs_single_docs_settings',
644 'settings' => 'betterdocs_doc_single_3_post_content_padding',
645 'label' => __( 'Content Area Inner Padding', 'betterdocs' ),
646 'priority' => 119,
647 'input_attrs' => [
648 'id' => 'betterdocs_doc_single_3_post_content_padding',
649 'class' => 'betterdocs-dimension'
650 ]
651 ] )
652 );
653
654 $this->customizer->add_setting( 'betterdocs_doc_single_3_post_content_padding_top', [
655 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_top'],
656 'capability' => 'edit_theme_options',
657 'transport' => 'postMessage',
658 'sanitize_callback' => [$this->sanitizer, 'integer']
659 ] );
660
661 $this->customizer->add_control( new DimensionControl(
662 $this->customizer, 'betterdocs_doc_single_3_post_content_padding_top', [
663 'type' => 'betterdocs-dimension',
664 'section' => 'betterdocs_single_docs_settings',
665 'settings' => 'betterdocs_doc_single_3_post_content_padding_top',
666 'label' => __( 'Top', 'betterdocs' ),
667 'priority' => 119,
668 'input_attrs' => [
669 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
670 ]
671 ] )
672 );
673
674 $this->customizer->add_setting( 'betterdocs_doc_single_3_post_content_padding_right', [
675 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_right'],
676 'capability' => 'edit_theme_options',
677 'transport' => 'postMessage',
678 'sanitize_callback' => [$this->sanitizer, 'integer']
679
680 ] );
681
682 $this->customizer->add_control( new DimensionControl(
683 $this->customizer, 'betterdocs_doc_single_3_post_content_padding_right', [
684 'type' => 'betterdocs-dimension',
685 'section' => 'betterdocs_single_docs_settings',
686 'settings' => 'betterdocs_doc_single_3_post_content_padding_right',
687 'label' => __( 'Right', 'betterdocs' ),
688 'priority' => 119,
689 'input_attrs' => [
690 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
691 ]
692 ] )
693 );
694
695 $this->customizer->add_setting( 'betterdocs_doc_single_3_post_content_padding_bottom', [
696 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_bottom'],
697 'capability' => 'edit_theme_options',
698 'transport' => 'postMessage',
699 'sanitize_callback' => [$this->sanitizer, 'integer']
700
701 ] );
702
703 $this->customizer->add_control( new DimensionControl(
704 $this->customizer, 'betterdocs_doc_single_3_post_content_padding_bottom', [
705 'type' => 'betterdocs-dimension',
706 'section' => 'betterdocs_single_docs_settings',
707 'settings' => 'betterdocs_doc_single_3_post_content_padding_bottom',
708 'label' => __( 'Bottom', 'betterdocs' ),
709 'priority' => 119,
710 'input_attrs' => [
711 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
712 ]
713 ] )
714 );
715
716 $this->customizer->add_setting( 'betterdocs_doc_single_3_post_content_padding_left', [
717 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_left'],
718 'capability' => 'edit_theme_options',
719 'transport' => 'postMessage',
720 'sanitize_callback' => [$this->sanitizer, 'integer']
721
722 ] );
723
724 $this->customizer->add_control( new DimensionControl(
725 $this->customizer, 'betterdocs_doc_single_3_post_content_padding_left', [
726 'type' => 'betterdocs-dimension',
727 'section' => 'betterdocs_single_docs_settings',
728 'settings' => 'betterdocs_doc_single_3_post_content_padding_left',
729 'label' => __( 'Left', 'betterdocs' ),
730 'priority' => 119,
731 'input_attrs' => [
732 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
733 ]
734 ] )
735 );
736 }
737
738 public function single_doc_layout_8_9_search_wrapper() {
739 $this->customizer->add_setting( 'single_doc_layout_8_9_search_wrapper', [
740 'default' => $this->defaults['single_doc_layout_8_9_search_wrapper'],
741 'sanitize_callback' => 'esc_html'
742 ] );
743
744 $this->customizer->add_control( new SeparatorControl(
745 $this->customizer, 'single_doc_layout_8_9_search_wrapper', [
746 'label' => __( 'Search', 'betterdocs' ),
747 'settings' => 'single_doc_layout_8_9_search_wrapper',
748 'section' => 'betterdocs_single_docs_settings',
749 'priority' => 124
750 ] )
751 );
752 }
753
754 public function single_doc_layout_8_9_search_toogle() {
755 $this->customizer->add_setting( 'single_doc_layout_8_9_search_toogle', [
756 'default' => $this->defaults['single_doc_layout_8_9_search_toogle'],
757 'capability' => 'edit_theme_options',
758 'sanitize_callback' => [$this->sanitizer, 'checkbox']
759 ] );
760
761 $this->customizer->add_control( new ToggleControl(
762 $this->customizer, 'single_doc_layout_8_9_search_toogle', [
763 'label' => __( 'Enable', 'betterdocs' ),
764 'section' => 'betterdocs_single_docs_settings',
765 'settings' => 'single_doc_layout_8_9_search_toogle',
766 'type' => 'light', // light, ios, flat,
767 'priority' => 124
768 ]
769 ) );
770 }
771
772 public function single_doc_layout_8_9_search_width() {
773 $this->customizer->add_setting( 'single_doc_layout_8_9_search_width', [
774 'default' => $this->defaults['single_doc_layout_8_9_search_width'],
775 'capability' => 'edit_theme_options',
776 'transport' => 'postMessage',
777 'sanitize_callback' => [$this->sanitizer, 'integer']
778 ] );
779
780 $this->customizer->add_control( new RangeValueControl(
781 $this->customizer, 'single_doc_layout_8_9_search_width', [
782 'type' => 'betterdocs-range-value',
783 'section' => 'betterdocs_single_docs_settings',
784 'settings' => 'single_doc_layout_8_9_search_width',
785 'label' => __( 'Search Width', 'betterdocs' ),
786 'input_attrs' => [
787 'min' => 0,
788 'max' => 100,
789 'step' => 1,
790 'suffix' => '%' //optional suffix
791 ],
792 'priority' => 124
793 ]
794 ) );
795 }
796
797 public function single_doc_layout_8_9_search_max_width() {
798 $this->customizer->add_setting( 'single_doc_layout_8_9_search_max_width', [
799 'default' => $this->defaults['single_doc_layout_8_9_search_max_width'],
800 'capability' => 'edit_theme_options',
801 'transport' => 'postMessage',
802 'sanitize_callback' => [$this->sanitizer, 'integer']
803 ] );
804
805 $this->customizer->add_control( new RangeValueControl(
806 $this->customizer, 'single_doc_layout_8_9_search_max_width', [
807 'type' => 'betterdocs-range-value',
808 'section' => 'betterdocs_single_docs_settings',
809 'settings' => 'single_doc_layout_8_9_search_max_width',
810 'label' => __( 'Search Max Width', 'betterdocs' ), //Renamed From 'Content Area Width' to 'Category Archive Width' @since betterdocs revamp version
811 'input_attrs' => [
812 'min' => 0,
813 'max' => 3000,
814 'step' => 1,
815 'suffix' => 'px' //optional suffix
816 ],
817 'priority' => 124
818 ]
819 ) );
820 }
821
822
823 public function single_doc_layout_8_9_search_margin() {
824 $this->customizer->add_setting( 'single_doc_layout_8_9_search_margin', [
825 'default' => $this->defaults['single_doc_layout_8_9_search_margin'],
826 'capability' => 'edit_theme_options',
827 'transport' => 'postMessage',
828 'sanitize_callback' => [$this->sanitizer, 'integer']
829
830 ] );
831
832 $this->customizer->add_control( new TitleControl(
833 $this->customizer, 'single_doc_layout_8_9_search_margin', [
834 'type' => 'betterdocs-title',
835 'section' => 'betterdocs_single_docs_settings',
836 'settings' => 'single_doc_layout_8_9_search_margin',
837 'label' => __( 'Margin', 'betterdocs' ),
838 'input_attrs' => [
839 'id' => 'single_doc_layout_8_9_search_margin',
840 'class' => 'betterdocs-dimension'
841 ],
842 'priority' => 124
843 ] ) );
844
845 $this->customizer->add_setting( 'single_doc_layout_8_9_search_margin_top', [
846 'default' => $this->defaults['single_doc_layout_8_9_search_margin_top'],
847 'capability' => 'edit_theme_options',
848 'transport' => 'postMessage',
849 'sanitize_callback' => [$this->sanitizer, 'integer']
850 ] );
851
852 $this->customizer->add_control( new DimensionControl(
853 $this->customizer, 'single_doc_layout_8_9_search_margin_top', [
854 'type' => 'betterdocs-dimension',
855 'section' => 'betterdocs_single_docs_settings',
856 'settings' => 'single_doc_layout_8_9_search_margin_top',
857 'label' => __( 'Top', 'betterdocs' ),
858 'input_attrs' => [
859 'class' => 'single_doc_layout_8_9_search_margin betterdocs-dimension'
860 ],
861 'priority' => 124
862 ] )
863 );
864
865
866 $this->customizer->add_setting( 'single_doc_layout_8_9_search_margin_bottom', [
867 'default' => $this->defaults['single_doc_layout_8_9_search_margin_bottom'],
868 'capability' => 'edit_theme_options',
869 'transport' => 'postMessage',
870 'sanitize_callback' => [$this->sanitizer, 'integer']
871
872 ] );
873
874 $this->customizer->add_control( new DimensionControl(
875 $this->customizer, 'single_doc_layout_8_9_search_margin_bottom', [
876 'type' => 'betterdocs-dimension',
877 'section' => 'betterdocs_single_docs_settings',
878 'settings' => 'single_doc_layout_8_9_search_margin_bottom',
879 'label' => __( 'Bottom', 'betterdocs' ),
880 'input_attrs' => [
881 'class' => 'single_doc_layout_8_9_search_margin betterdocs-dimension'
882 ],
883 'priority' => 124
884 ] )
885 );
886 }
887
888 public function single_doc_layout_8_9_search_padding() {
889 $this->customizer->add_setting( 'single_doc_layout_8_9_search_padding', [
890 'default' => $this->defaults['single_doc_layout_8_9_search_padding'],
891 'capability' => 'edit_theme_options',
892 'transport' => 'postMessage',
893 'sanitize_callback' => [$this->sanitizer, 'integer']
894 ] );
895
896 $this->customizer->add_control( new TitleControl(
897 $this->customizer, 'single_doc_layout_8_9_search_padding', [
898 'type' => 'betterdocs-title',
899 'section' => 'betterdocs_single_docs_settings',
900 'settings' => 'single_doc_layout_8_9_search_padding',
901 'label' => __( 'Padding', 'betterdocs' ),
902 'input_attrs' => [
903 'id' => 'single_doc_layout_8_9_search_padding',
904 'class' => 'betterdocs-dimension'
905 ],
906 'priority' => 124
907 ] )
908 );
909
910 $this->customizer->add_setting( 'single_doc_layout_8_9_search_padding_top', [
911 'default' => $this->defaults['single_doc_layout_8_9_search_padding_top'],
912 'capability' => 'edit_theme_options',
913 'transport' => 'postMessage',
914 'sanitize_callback' => [$this->sanitizer, 'integer']
915 ] );
916
917 $this->customizer->add_control( new DimensionControl(
918 $this->customizer, 'single_doc_layout_8_9_search_padding_top', [
919 'type' => 'betterdocs-dimension',
920 'section' => 'betterdocs_single_docs_settings',
921 'settings' => 'single_doc_layout_8_9_search_padding_top',
922 'label' => __( 'Top', 'betterdocs' ),
923 'input_attrs' => [
924 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
925 ],
926 'priority' => 124
927 ] )
928 );
929
930 $this->customizer->add_setting( 'single_doc_layout_8_9_search_padding_right', [
931 'default' => $this->defaults['single_doc_layout_8_9_search_padding_right'],
932 'capability' => 'edit_theme_options',
933 'transport' => 'postMessage',
934 'sanitize_callback' => [$this->sanitizer, 'integer']
935
936 ] );
937
938 $this->customizer->add_control( new DimensionControl(
939 $this->customizer, 'single_doc_layout_8_9_search_padding_right', [
940 'type' => 'betterdocs-dimension',
941 'section' => 'betterdocs_single_docs_settings',
942 'settings' => 'single_doc_layout_8_9_search_padding_right',
943 'label' => __( 'Right', 'betterdocs' ),
944 'input_attrs' => [
945 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
946 ],
947 'priority' => 124
948 ] )
949 );
950
951 $this->customizer->add_setting( 'single_doc_layout_8_9_search_padding_bottom', [
952 'default' => $this->defaults['single_doc_layout_8_9_search_padding_bottom'],
953 'capability' => 'edit_theme_options',
954 'transport' => 'postMessage',
955 'sanitize_callback' => [$this->sanitizer, 'integer']
956 ] );
957
958 $this->customizer->add_control( new DimensionControl(
959 $this->customizer, 'single_doc_layout_8_9_search_padding_bottom', [
960 'type' => 'betterdocs-dimension',
961 'section' => 'betterdocs_single_docs_settings',
962 'settings' => 'single_doc_layout_8_9_search_padding_bottom',
963 'label' => __( 'Bottom', 'betterdocs' ),
964 'input_attrs' => [
965 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
966 ],
967 'priority' => 124
968 ] )
969 );
970
971 $this->customizer->add_setting( 'single_doc_layout_8_9_search_padding_left', [
972 'default' => $this->defaults['single_doc_layout_8_9_search_padding_left'],
973 'capability' => 'edit_theme_options',
974 'transport' => 'postMessage',
975 'sanitize_callback' => [$this->sanitizer, 'integer']
976 ] );
977
978 $this->customizer->add_control( new DimensionControl(
979 $this->customizer, 'single_doc_layout_8_9_search_padding_left', [
980 'type' => 'betterdocs-dimension',
981 'section' => 'betterdocs_single_docs_settings',
982 'settings' => 'single_doc_layout_8_9_search_padding_left',
983 'label' => __( 'Left', 'betterdocs' ),
984 'input_attrs' => [
985 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
986 ],
987 'priority' => 124
988 ] )
989 );
990 }
991
992 public function single_doc_title() {
993 $this->customizer->add_setting( 'betterdocs_single_doc_title', [
994 'default' => $this->defaults['betterdocs_single_doc_title'],
995 'sanitize_callback' => 'esc_html'
996 ] );
997
998 $this->customizer->add_control( new SeparatorControl(
999 $this->customizer, 'betterdocs_single_doc_title', [
1000 'label' => __( 'Post Title', 'betterdocs' ),
1001 'priority' => 124,
1002 'settings' => 'betterdocs_single_doc_title',
1003 'section' => 'betterdocs_single_docs_settings'
1004 ] )
1005 );
1006 }
1007
1008 public function post_title_tag() {
1009 $this->customizer->add_setting( 'betterdocs_post_title_tag', [
1010 'default' => $this->defaults['betterdocs_post_title_tag'],
1011 'capability' => 'edit_theme_options',
1012 'sanitize_callback' => [$this->sanitizer, 'select']
1013 ] );
1014
1015 $this->customizer->add_control(
1016 new WP_Customize_Control(
1017 $this->customizer,
1018 'betterdocs_post_title_tag',
1019 [
1020 'label' => __( 'Title Tag', 'betterdocs' ),
1021 'section' => 'betterdocs_single_docs_settings',
1022 'settings' => 'betterdocs_post_title_tag',
1023 'type' => 'select',
1024 'choices' => [
1025 'h1' => 'h1',
1026 'h2' => 'h2',
1027 'h3' => 'h3',
1028 'h4' => 'h4',
1029 'h5' => 'h5',
1030 'h6' => 'h6',
1031 'p' => 'p'
1032 ],
1033 'priority' => 124
1034 ]
1035 )
1036 );
1037 }
1038
1039 public function post_title_text_transform() {
1040 $this->customizer->add_setting( 'betterdocs_post_title_text_transform', [
1041 'default' => $this->defaults['betterdocs_post_title_text_transform'],
1042 'capability' => 'edit_theme_options',
1043 'sanitize_callback' => [$this->sanitizer, 'select']
1044 ] );
1045
1046 $this->customizer->add_control(
1047 new WP_Customize_Control(
1048 $this->customizer,
1049 'betterdocs_post_title_text_transform',
1050 [
1051 'label' => __( 'Text Transform', 'betterdocs' ),
1052 'section' => 'betterdocs_single_docs_settings',
1053 'settings' => 'betterdocs_post_title_text_transform',
1054 'type' => 'select',
1055 'choices' => [
1056 'uppercase' => 'Uppercase',
1057 'lowercase' => 'Lowercase',
1058 'capitalize' => 'Capitalize',
1059 'none' => 'Normal'
1060 ],
1061 'priority' => 124
1062 ]
1063 )
1064 );
1065 }
1066
1067 public function single_doc_title_font_size() {
1068 $this->customizer->add_setting( 'betterdocs_single_doc_title_font_size', [
1069 'default' => $this->defaults['betterdocs_single_doc_title_font_size'],
1070 'capability' => 'edit_theme_options',
1071 'transport' => 'postMessage',
1072 'sanitize_callback' => [$this->sanitizer, 'integer']
1073
1074 ] );
1075
1076 $this->customizer->add_control( new RangeValueControl(
1077 $this->customizer, 'betterdocs_single_doc_title_font_size', [
1078 'type' => 'betterdocs-range-value',
1079 'section' => 'betterdocs_single_docs_settings',
1080 'settings' => 'betterdocs_single_doc_title_font_size',
1081 'label' => __( 'Font Size', 'betterdocs' ),
1082 'priority' => 125,
1083 'input_attrs' => [
1084 'min' => 0,
1085 'max' => 50,
1086 'step' => 1,
1087 'suffix' => 'px' //optional suffix
1088 ]
1089 ] )
1090 );
1091 }
1092
1093 public function single_doc_title_color() {
1094 $this->customizer->add_setting( 'betterdocs_single_doc_title_color', [
1095 'capability' => 'edit_theme_options',
1096 'default' => $this->defaults['betterdocs_single_doc_title_color'],
1097 'transport' => 'postMessage',
1098 'sanitize_callback' => [$this->sanitizer, 'rgba']
1099 ] );
1100
1101 $this->customizer->add_control(
1102 new AlphaColorControl(
1103 $this->customizer,
1104 'betterdocs_single_doc_title_color',
1105 [
1106 'label' => __( 'Color', 'betterdocs' ),
1107 'priority' => 126,
1108 'section' => 'betterdocs_single_docs_settings',
1109 'settings' => 'betterdocs_single_doc_title_color'
1110 ]
1111 )
1112 );
1113 }
1114
1115 public function post_title_text_transform_layout_8_9() {
1116 $this->customizer->add_setting( 'betterdocs_post_title_text_transform_layout_8_9', [
1117 'default' => $this->defaults['betterdocs_post_title_text_transform_layout_8_9'],
1118 'capability' => 'edit_theme_options',
1119 'sanitize_callback' => [$this->sanitizer, 'select']
1120 ] );
1121
1122 $this->customizer->add_control(
1123 new WP_Customize_Control(
1124 $this->customizer,
1125 'betterdocs_post_title_text_transform_layout_8_9',
1126 [
1127 'label' => __( 'Text Transform', 'betterdocs' ),
1128 'section' => 'betterdocs_single_docs_settings',
1129 'settings' => 'betterdocs_post_title_text_transform_layout_8_9',
1130 'type' => 'select',
1131 'choices' => [
1132 'uppercase' => 'Uppercase',
1133 'lowercase' => 'Lowercase',
1134 'capitalize' => 'Capitalize',
1135 'none' => 'Normal'
1136 ],
1137 'priority' => 124
1138 ]
1139 )
1140 );
1141 }
1142
1143 public function single_doc_title_font_size_layout_8_9() {
1144 $this->customizer->add_setting( 'betterdocs_single_doc_title_font_size_layout_8_9', [
1145 'default' => $this->defaults['betterdocs_single_doc_title_font_size_layout_8_9'],
1146 'capability' => 'edit_theme_options',
1147 'transport' => 'postMessage',
1148 'sanitize_callback' => [$this->sanitizer, 'integer']
1149
1150 ] );
1151
1152 $this->customizer->add_control( new RangeValueControl(
1153 $this->customizer, 'betterdocs_single_doc_title_font_size_layout_8_9', [
1154 'type' => 'betterdocs-range-value',
1155 'section' => 'betterdocs_single_docs_settings',
1156 'settings' => 'betterdocs_single_doc_title_font_size_layout_8_9',
1157 'label' => __( 'Font Size', 'betterdocs' ),
1158 'priority' => 125,
1159 'input_attrs' => [
1160 'min' => 0,
1161 'max' => 50,
1162 'step' => 1,
1163 'suffix' => 'px' //optional suffix
1164 ]
1165 ] )
1166 );
1167 }
1168
1169 public function single_doc_title_color_layout_8_9() {
1170 $this->customizer->add_setting( 'betterdocs_single_doc_title_color_layout_8_9', [
1171 'capability' => 'edit_theme_options',
1172 'default' => $this->defaults['betterdocs_single_doc_title_color_layout_8_9'],
1173 'transport' => 'postMessage',
1174 'sanitize_callback' => [$this->sanitizer, 'rgba']
1175 ] );
1176
1177 $this->customizer->add_control(
1178 new AlphaColorControl(
1179 $this->customizer,
1180 'betterdocs_single_doc_title_color_layout_8_9',
1181 [
1182 'label' => __( 'Color', 'betterdocs' ),
1183 'priority' => 126,
1184 'section' => 'betterdocs_single_docs_settings',
1185 'settings' => 'betterdocs_single_doc_title_color_layout_8_9'
1186 ]
1187 )
1188 );
1189 }
1190
1191 public function single_doc_title_margin_layout_8_9() {
1192 $this->customizer->add_setting( 'single_doc_title_margin_layout_8_9', [
1193 'default' => $this->defaults['single_doc_title_margin_layout_8_9'],
1194 'capability' => 'edit_theme_options',
1195 'transport' => 'postMessage',
1196 'sanitize_callback' => [$this->sanitizer, 'integer']
1197 ] );
1198
1199 $this->customizer->add_control( new TitleControl(
1200 $this->customizer, 'single_doc_title_margin_layout_8_9', [
1201 'type' => 'betterdocs-title',
1202 'section' => 'betterdocs_single_docs_settings',
1203 'settings' => 'single_doc_title_margin_layout_8_9',
1204 'label' => __( 'Title Margin', 'betterdocs' ),
1205 'priority' => 126,
1206 'input_attrs' => [
1207 'id' => 'single_doc_title_margin_layout_8_9',
1208 'class' => 'betterdocs-dimension'
1209 ]
1210 ] )
1211 );
1212
1213 $this->customizer->add_setting( 'single_doc_title_margin_top_layout_8_9', [
1214 'default' => $this->defaults['single_doc_title_margin_top_layout_8_9'],
1215 'capability' => 'edit_theme_options',
1216 'transport' => 'postMessage',
1217 'sanitize_callback' => [$this->sanitizer, 'integer']
1218 ] );
1219
1220 $this->customizer->add_control( new DimensionControl(
1221 $this->customizer, 'single_doc_title_margin_top_layout_8_9', [
1222 'type' => 'betterdocs-dimension',
1223 'section' => 'betterdocs_single_docs_settings',
1224 'settings' => 'single_doc_title_margin_top_layout_8_9',
1225 'label' => __( 'Top', 'betterdocs' ),
1226 'priority' => 126,
1227 'input_attrs' => [
1228 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1229 ]
1230 ] )
1231 );
1232
1233 $this->customizer->add_setting( 'single_doc_title_margin_right_layout_8_9', [
1234 'default' => $this->defaults['single_doc_title_margin_right_layout_8_9'],
1235 'capability' => 'edit_theme_options',
1236 'transport' => 'postMessage',
1237 'sanitize_callback' => [$this->sanitizer, 'integer']
1238 ] );
1239
1240 $this->customizer->add_control( new DimensionControl(
1241 $this->customizer, 'single_doc_title_margin_right_layout_8_9', [
1242 'type' => 'betterdocs-dimension',
1243 'section' => 'betterdocs_single_docs_settings',
1244 'settings' => 'single_doc_title_margin_right_layout_8_9',
1245 'label' => __( 'Right', 'betterdocs' ),
1246 'priority' => 126,
1247 'input_attrs' => [
1248 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1249 ]
1250 ] )
1251 );
1252
1253 $this->customizer->add_setting( 'single_doc_title_margin_bottom_layout_8_9', [
1254 'default' => $this->defaults['single_doc_title_margin_bottom_layout_8_9'],
1255 'capability' => 'edit_theme_options',
1256 'transport' => 'postMessage',
1257 'sanitize_callback' => [$this->sanitizer, 'integer']
1258 ] );
1259
1260 $this->customizer->add_control( new DimensionControl(
1261 $this->customizer, 'single_doc_title_margin_bottom_layout_8_9', [
1262 'type' => 'betterdocs-dimension',
1263 'section' => 'betterdocs_single_docs_settings',
1264 'settings' => 'single_doc_title_margin_bottom_layout_8_9',
1265 'label' => __( 'Bottom', 'betterdocs' ),
1266 'priority' => 126,
1267 'input_attrs' => [
1268 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1269 ]
1270 ] )
1271 );
1272
1273 $this->customizer->add_setting( 'single_doc_title_margin_left_layout_8_9', [
1274 'default' => $this->defaults['single_doc_title_margin_left_layout_8_9'],
1275 'capability' => 'edit_theme_options',
1276 'transport' => 'postMessage',
1277 'sanitize_callback' => [$this->sanitizer, 'integer']
1278 ] );
1279
1280 $this->customizer->add_control( new DimensionControl(
1281 $this->customizer, 'single_doc_title_margin_left_layout_8_9', [
1282 'type' => 'betterdocs-dimension',
1283 'section' => 'betterdocs_single_docs_settings',
1284 'settings' => 'single_doc_title_margin_left_layout_8_9',
1285 'label' => __( 'Left', 'betterdocs' ),
1286 'priority' => 126,
1287 'input_attrs' => [
1288 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1289 ]
1290 ] )
1291 );
1292 }
1293
1294 public function doc_single_toc_title() {
1295 $this->customizer->add_setting( 'betterdocs_doc_single_toc_title', [
1296 'default' => $this->defaults['betterdocs_doc_single_toc_title'],
1297 'sanitize_callback' => 'esc_html'
1298 ] );
1299
1300 $this->customizer->add_control( new SeparatorControl(
1301 $this->customizer, 'betterdocs_doc_single_toc_title', [
1302 'label' => __( 'Table of Contents', 'betterdocs' ),
1303 'priority' => 132,
1304 'settings' => 'betterdocs_doc_single_toc_title',
1305 'section' => 'betterdocs_single_docs_settings'
1306 ] )
1307 );
1308 }
1309
1310 public function sticky_toc_width() {
1311 $this->customizer->add_setting( 'betterdocs_sticky_toc_width', [
1312 'default' => $this->defaults['betterdocs_sticky_toc_width'],
1313 'capability' => 'edit_theme_options',
1314 'transport' => 'postMessage',
1315 'sanitize_callback' => [$this->sanitizer, 'integer']
1316
1317 ] );
1318
1319 $this->customizer->add_control( new RangeValueControl(
1320 $this->customizer, 'betterdocs_sticky_toc_width', [
1321 'type' => 'betterdocs-range-value',
1322 'section' => 'betterdocs_single_docs_settings',
1323 'settings' => 'betterdocs_sticky_toc_width',
1324 'label' => __( 'Sticky Toc Width', 'betterdocs' ),
1325 'priority' => 133,
1326 'input_attrs' => [
1327 'class' => '',
1328 'min' => 100,
1329 'max' => 500,
1330 'step' => 1,
1331 'suffix' => 'px' //optional suffix
1332 ]
1333 ] )
1334 );
1335 }
1336
1337 public function sticky_toc_zindex() {
1338 $this->customizer->add_setting( 'betterdocs_sticky_toc_zindex', [
1339 'default' => $this->defaults['betterdocs_sticky_toc_zindex'],
1340 'capability' => 'edit_theme_options',
1341 'transport' => 'postMessage',
1342 'sanitize_callback' => [$this->sanitizer, 'integer']
1343 ] );
1344
1345 $this->customizer->add_control( new NumberControl(
1346 $this->customizer, 'betterdocs_sticky_toc_zindex', [
1347 'type' => 'betterdocs-number',
1348 'section' => 'betterdocs_single_docs_settings',
1349 'settings' => 'betterdocs_sticky_toc_zindex',
1350 'label' => __( 'Sticky Toc z-index', 'betterdocs' ),
1351 'priority' => 134
1352 ] )
1353 );
1354 }
1355
1356 public function sticky_toc_margin_top() {
1357 $this->customizer->add_setting( 'betterdocs_sticky_toc_margin_top', [
1358 'default' => $this->defaults['betterdocs_sticky_toc_margin_top'],
1359 'capability' => 'edit_theme_options',
1360 'transport' => 'postMessage',
1361 'sanitize_callback' => [$this->sanitizer, 'integer']
1362
1363 ] );
1364
1365 $this->customizer->add_control( new RangeValueControl(
1366 $this->customizer, 'betterdocs_sticky_toc_margin_top', [
1367 'type' => 'betterdocs-range-value',
1368 'section' => 'betterdocs_single_docs_settings',
1369 'settings' => 'betterdocs_sticky_toc_margin_top',
1370 'label' => __( 'Sticky Toc Margin Top', 'betterdocs' ),
1371 'priority' => 135,
1372 'input_attrs' => [
1373 'class' => '',
1374 'min' => 0,
1375 'max' => 500,
1376 'step' => 1,
1377 'suffix' => 'px' //optional suffix
1378 ]
1379 ] )
1380 );
1381 }
1382
1383 public function toc_bg_color() {
1384 $this->customizer->add_setting( 'betterdocs_toc_bg_color', [
1385 'capability' => 'edit_theme_options',
1386 'default' => $this->defaults['betterdocs_toc_bg_color'],
1387 'transport' => 'postMessage',
1388 'sanitize_callback' => [$this->sanitizer, 'rgba']
1389 ] );
1390
1391 $this->customizer->add_control(
1392 new AlphaColorControl(
1393 $this->customizer,
1394 'betterdocs_toc_bg_color',
1395 [
1396 'label' => __( 'Background Color', 'betterdocs' ),
1397 'priority' => 136,
1398 'section' => 'betterdocs_single_docs_settings',
1399 'settings' => 'betterdocs_toc_bg_color'
1400 ]
1401 )
1402 );
1403 }
1404
1405 public function doc_single_toc_padding() {
1406 $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding', [
1407 'default' => $this->defaults['betterdocs_doc_single_toc_padding'],
1408 'capability' => 'edit_theme_options',
1409 'transport' => 'postMessage',
1410 'sanitize_callback' => [$this->sanitizer, 'integer']
1411
1412 ] );
1413
1414 $this->customizer->add_control( new TitleControl(
1415 $this->customizer, 'betterdocs_doc_single_toc_padding', [
1416 'type' => 'betterdocs-title',
1417 'section' => 'betterdocs_single_docs_settings',
1418 'settings' => 'betterdocs_doc_single_toc_padding',
1419 'label' => __( 'Content Area Padding', 'betterdocs' ),
1420 'priority' => 137,
1421 'input_attrs' => [
1422 'id' => 'betterdocs_doc_single_toc_padding',
1423 'class' => 'betterdocs-dimension'
1424 ]
1425 ] )
1426 );
1427
1428 $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_top', [
1429 'default' => $this->defaults['betterdocs_doc_single_toc_padding_top'],
1430 'capability' => 'edit_theme_options',
1431 'transport' => 'postMessage',
1432 'sanitize_callback' => [$this->sanitizer, 'integer']
1433 ] );
1434
1435 $this->customizer->add_control( new DimensionControl(
1436 $this->customizer, 'betterdocs_doc_single_toc_padding_top', [
1437 'type' => 'betterdocs-dimension',
1438 'section' => 'betterdocs_single_docs_settings',
1439 'settings' => 'betterdocs_doc_single_toc_padding_top',
1440 'label' => __( 'Top', 'betterdocs' ),
1441 'priority' => 137,
1442 'input_attrs' => [
1443 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
1444 ]
1445 ] )
1446 );
1447
1448 $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_right', [
1449 'default' => $this->defaults['betterdocs_doc_single_toc_padding_right'],
1450 'capability' => 'edit_theme_options',
1451 'transport' => 'postMessage',
1452 'sanitize_callback' => [$this->sanitizer, 'integer']
1453
1454 ] );
1455
1456 $this->customizer->add_control( new DimensionControl(
1457 $this->customizer, 'betterdocs_doc_single_toc_padding_right', [
1458 'type' => 'betterdocs-dimension',
1459 'section' => 'betterdocs_single_docs_settings',
1460 'settings' => 'betterdocs_doc_single_toc_padding_right',
1461 'label' => __( 'Right', 'betterdocs' ),
1462 'priority' => 137,
1463 'input_attrs' => [
1464 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
1465 ]
1466 ] )
1467 );
1468
1469 $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_bottom', [
1470 'default' => $this->defaults['betterdocs_doc_single_toc_padding_bottom'],
1471 'capability' => 'edit_theme_options',
1472 'transport' => 'postMessage',
1473 'sanitize_callback' => [$this->sanitizer, 'integer']
1474
1475 ] );
1476
1477 $this->customizer->add_control( new DimensionControl(
1478 $this->customizer, 'betterdocs_doc_single_toc_padding_bottom', [
1479 'type' => 'betterdocs-dimension',
1480 'section' => 'betterdocs_single_docs_settings',
1481 'settings' => 'betterdocs_doc_single_toc_padding_bottom',
1482 'label' => __( 'Bottom', 'betterdocs' ),
1483 'priority' => 137,
1484 'input_attrs' => [
1485 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
1486 ]
1487 ] )
1488 );
1489
1490 $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_left', [
1491 'default' => $this->defaults['betterdocs_doc_single_toc_padding_left'],
1492 'capability' => 'edit_theme_options',
1493 'transport' => 'postMessage',
1494 'sanitize_callback' => [$this->sanitizer, 'integer']
1495
1496 ] );
1497
1498 $this->customizer->add_control( new DimensionControl(
1499 $this->customizer, 'betterdocs_doc_single_toc_padding_left', [
1500 'type' => 'betterdocs-dimension',
1501 'section' => 'betterdocs_single_docs_settings',
1502 'settings' => 'betterdocs_doc_single_toc_padding_left',
1503 'label' => __( 'Left', 'betterdocs' ),
1504 'priority' => 137,
1505 'input_attrs' => [
1506 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
1507 ]
1508 ] )
1509 );
1510 }
1511
1512 public function doc_single_toc_margin() {
1513 $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin', [
1514 'default' => $this->defaults['betterdocs_doc_single_toc_margin'],
1515 'capability' => 'edit_theme_options',
1516 'transport' => 'postMessage',
1517 'sanitize_callback' => [$this->sanitizer, 'integer']
1518 ] );
1519
1520 $this->customizer->add_control( new TitleControl(
1521 $this->customizer, 'betterdocs_doc_single_toc_margin', [
1522 'type' => 'betterdocs-title',
1523 'section' => 'betterdocs_single_docs_settings',
1524 'settings' => 'betterdocs_doc_single_toc_margin',
1525 'label' => __( 'Content Area Margin', 'betterdocs' ),
1526 'priority' => 141,
1527 'input_attrs' => [
1528 'id' => 'betterdocs_doc_single_toc_margin',
1529 'class' => 'betterdocs-dimension'
1530 ]
1531 ] )
1532 );
1533
1534 $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_top', [
1535 'default' => $this->defaults['betterdocs_doc_single_toc_margin_top'],
1536 'capability' => 'edit_theme_options',
1537 'transport' => 'postMessage',
1538 'sanitize_callback' => [$this->sanitizer, 'integer']
1539 ] );
1540
1541 $this->customizer->add_control( new DimensionControl(
1542 $this->customizer, 'betterdocs_doc_single_toc_margin_top', [
1543 'type' => 'betterdocs-dimension',
1544 'section' => 'betterdocs_single_docs_settings',
1545 'settings' => 'betterdocs_doc_single_toc_margin_top',
1546 'label' => __( 'Top', 'betterdocs' ),
1547 'priority' => 141,
1548 'input_attrs' => [
1549 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
1550 ]
1551 ] )
1552 );
1553
1554 $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_right', [
1555 'default' => $this->defaults['betterdocs_doc_single_toc_margin_right'],
1556 'capability' => 'edit_theme_options',
1557 'transport' => 'postMessage',
1558 'sanitize_callback' => [$this->sanitizer, 'integer']
1559 ] );
1560
1561 $this->customizer->add_control( new DimensionControl(
1562 $this->customizer, 'betterdocs_doc_single_toc_margin_right', [
1563 'type' => 'betterdocs-dimension',
1564 'section' => 'betterdocs_single_docs_settings',
1565 'settings' => 'betterdocs_doc_single_toc_margin_right',
1566 'label' => __( 'Right', 'betterdocs' ),
1567 'priority' => 141,
1568 'input_attrs' => [
1569 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
1570 ]
1571 ] )
1572 );
1573
1574 $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_bottom', [
1575 'default' => $this->defaults['betterdocs_doc_single_toc_margin_bottom'],
1576 'capability' => 'edit_theme_options',
1577 'transport' => 'postMessage',
1578 'sanitize_callback' => [$this->sanitizer, 'integer']
1579 ] );
1580
1581 $this->customizer->add_control( new DimensionControl(
1582 $this->customizer, 'betterdocs_doc_single_toc_margin_bottom', [
1583 'type' => 'betterdocs-dimension',
1584 'section' => 'betterdocs_single_docs_settings',
1585 'settings' => 'betterdocs_doc_single_toc_margin_bottom',
1586 'label' => __( 'Bottom', 'betterdocs' ),
1587 'priority' => 141,
1588 'input_attrs' => [
1589 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
1590 ]
1591 ] )
1592 );
1593
1594 $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_left', [
1595 'default' => $this->defaults['betterdocs_doc_single_toc_margin_left'],
1596 'capability' => 'edit_theme_options',
1597 'transport' => 'postMessage',
1598 'sanitize_callback' => [$this->sanitizer, 'integer']
1599 ] );
1600
1601 $this->customizer->add_control( new DimensionControl(
1602 $this->customizer, 'betterdocs_doc_single_toc_margin_left', [
1603 'type' => 'betterdocs-dimension',
1604 'section' => 'betterdocs_single_docs_settings',
1605 'settings' => 'betterdocs_doc_single_toc_margin_left',
1606 'label' => __( 'Left', 'betterdocs' ),
1607 'priority' => 141,
1608 'input_attrs' => [
1609 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
1610 ]
1611 ] )
1612 );
1613 }
1614
1615 public function toc_title_color() {
1616 $this->customizer->add_setting( 'betterdocs_toc_title_color', [
1617 'capability' => 'edit_theme_options',
1618 'default' => $this->defaults['betterdocs_toc_title_color'],
1619 'transport' => 'postMessage',
1620 'sanitize_callback' => [$this->sanitizer, 'rgba']
1621 ] );
1622
1623 $this->customizer->add_control(
1624 new AlphaColorControl(
1625 $this->customizer,
1626 'betterdocs_toc_title_color',
1627 [
1628 'label' => __( 'Title Color', 'betterdocs' ),
1629 'priority' => 142,
1630 'section' => 'betterdocs_single_docs_settings',
1631 'settings' => 'betterdocs_toc_title_color'
1632 ]
1633 )
1634 );
1635 }
1636
1637 public function toc_title_font_size() {
1638 $this->customizer->add_setting( 'betterdocs_toc_title_font_size', [
1639 'default' => $this->defaults['betterdocs_toc_title_font_size'],
1640 'capability' => 'edit_theme_options',
1641 'transport' => 'postMessage',
1642 'sanitize_callback' => [$this->sanitizer, 'integer']
1643
1644 ] );
1645
1646 $this->customizer->add_control( new RangeValueControl(
1647 $this->customizer, 'betterdocs_toc_title_font_size', [
1648 'type' => 'betterdocs-range-value',
1649 'section' => 'betterdocs_single_docs_settings',
1650 'settings' => 'betterdocs_toc_title_font_size',
1651 'label' => __( 'Title Font Size', 'betterdocs' ),
1652 'priority' => 143,
1653 'input_attrs' => [
1654 'class' => '',
1655 'min' => 0,
1656 'max' => 50,
1657 'step' => 1,
1658 'suffix' => 'px' //optional suffix
1659 ]
1660 ] )
1661 );
1662 }
1663
1664 public function toc_list_item_color() {
1665 $this->customizer->add_setting( 'betterdocs_toc_list_item_color', [
1666 'default' => $this->defaults['betterdocs_toc_list_item_color'],
1667 'transport' => 'postMessage',
1668 'sanitize_callback' => [$this->sanitizer, 'rgba']
1669 ] );
1670
1671 $this->customizer->add_control(
1672 new AlphaColorControl(
1673 $this->customizer,
1674 'betterdocs_toc_list_item_color',
1675 [
1676 'label' => __( 'List Item Color', 'betterdocs' ),
1677 'priority' => 144,
1678 'section' => 'betterdocs_single_docs_settings',
1679 'settings' => 'betterdocs_toc_list_item_color'
1680 ]
1681 )
1682 );
1683 }
1684
1685 public function toc_list_item_hover_color() {
1686 $this->customizer->add_setting( 'betterdocs_toc_list_item_hover_color', [
1687 'capability' => 'edit_theme_options',
1688 'default' => $this->defaults['betterdocs_toc_list_item_hover_color'],
1689 'sanitize_callback' => [$this->sanitizer, 'rgba']
1690 ] );
1691
1692 $this->customizer->add_control(
1693 new AlphaColorControl(
1694 $this->customizer,
1695 'betterdocs_toc_list_item_hover_color',
1696 [
1697 'label' => __( 'List Item Hover Color', 'betterdocs' ),
1698 'priority' => 145,
1699 'section' => 'betterdocs_single_docs_settings',
1700 'settings' => 'betterdocs_toc_list_item_hover_color'
1701 ]
1702 )
1703 );
1704 }
1705
1706 public function toc_active_item_color() {
1707 $this->customizer->add_setting( 'betterdocs_toc_active_item_color', [
1708 'capability' => 'edit_theme_options',
1709 'default' => $this->defaults['betterdocs_toc_active_item_color'],
1710 'sanitize_callback' => [$this->sanitizer, 'rgba']
1711 ] );
1712
1713 $this->customizer->add_control(
1714 new AlphaColorControl(
1715 $this->customizer,
1716 'betterdocs_toc_active_item_color',
1717 [
1718 'label' => __( 'Active Item Color', 'betterdocs' ),
1719 'priority' => 146,
1720 'section' => 'betterdocs_single_docs_settings',
1721 'settings' => 'betterdocs_toc_active_item_color'
1722 ]
1723 )
1724 );
1725 }
1726
1727 public function toc_list_item_font_size() {
1728 $this->customizer->add_setting( 'betterdocs_toc_list_item_font_size', [
1729 'default' => $this->defaults['betterdocs_toc_list_item_font_size'],
1730 'capability' => 'edit_theme_options',
1731 'transport' => 'postMessage',
1732 'sanitize_callback' => [$this->sanitizer, 'integer']
1733
1734 ] );
1735
1736 $this->customizer->add_control( new RangeValueControl(
1737 $this->customizer, 'betterdocs_toc_list_item_font_size', [
1738 'type' => 'betterdocs-range-value',
1739 'section' => 'betterdocs_single_docs_settings',
1740 'settings' => 'betterdocs_toc_list_item_font_size',
1741 'label' => __( 'List Item Font Size', 'betterdocs' ),
1742 'priority' => 147,
1743 'input_attrs' => [
1744 'class' => '',
1745 'min' => 0,
1746 'max' => 50,
1747 'step' => 1,
1748 'suffix' => 'px' //optional suffix
1749 ]
1750 ] )
1751 );
1752 }
1753
1754 public function doc_single_toc_list_margin() {
1755 $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin', [
1756 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin'],
1757 'capability' => 'edit_theme_options',
1758 'transport' => 'postMessage',
1759 'sanitize_callback' => [$this->sanitizer, 'integer']
1760
1761 ] );
1762
1763 $this->customizer->add_control( new TitleControl(
1764 $this->customizer, 'betterdocs_doc_single_toc_list_margin', [
1765 'type' => 'betterdocs-title',
1766 'section' => 'betterdocs_single_docs_settings',
1767 'settings' => 'betterdocs_doc_single_toc_list_margin',
1768 'label' => __( 'TOC List Margin', 'betterdocs' ),
1769 'priority' => 148,
1770 'input_attrs' => [
1771 'id' => 'betterdocs_doc_single_toc_list_margin',
1772 'class' => 'betterdocs-dimension'
1773 ]
1774 ] )
1775 );
1776
1777 $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_top', [
1778 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_top'],
1779 'capability' => 'edit_theme_options',
1780 'transport' => 'postMessage',
1781 'sanitize_callback' => [$this->sanitizer, 'integer']
1782 ] );
1783
1784 $this->customizer->add_control( new DimensionControl(
1785 $this->customizer, 'betterdocs_doc_single_toc_list_margin_top', [
1786 'type' => 'betterdocs-dimension',
1787 'section' => 'betterdocs_single_docs_settings',
1788 'settings' => 'betterdocs_doc_single_toc_list_margin_top',
1789 'label' => __( 'Top', 'betterdocs' ),
1790 'priority' => 148,
1791 'input_attrs' => [
1792 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
1793 ]
1794 ] )
1795 );
1796
1797 $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_right', [
1798 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_right'],
1799 'capability' => 'edit_theme_options',
1800 'transport' => 'postMessage',
1801 'sanitize_callback' => [$this->sanitizer, 'integer']
1802
1803 ] );
1804
1805 $this->customizer->add_control( new DimensionControl(
1806 $this->customizer, 'betterdocs_doc_single_toc_list_margin_right', [
1807 'type' => 'betterdocs-dimension',
1808 'section' => 'betterdocs_single_docs_settings',
1809 'settings' => 'betterdocs_doc_single_toc_list_margin_right',
1810 'label' => __( 'Right', 'betterdocs' ),
1811 'priority' => 148,
1812 'input_attrs' => [
1813 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
1814 ]
1815 ] )
1816 );
1817
1818 $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_bottom', [
1819 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_bottom'],
1820 'capability' => 'edit_theme_options',
1821 'transport' => 'postMessage',
1822 'sanitize_callback' => [$this->sanitizer, 'integer']
1823
1824 ] );
1825
1826 $this->customizer->add_control( new DimensionControl(
1827 $this->customizer, 'betterdocs_doc_single_toc_list_margin_bottom', [
1828 'type' => 'betterdocs-dimension',
1829 'section' => 'betterdocs_single_docs_settings',
1830 'settings' => 'betterdocs_doc_single_toc_list_margin_bottom',
1831 'label' => __( 'Bottom', 'betterdocs' ),
1832 'priority' => 148,
1833 'input_attrs' => [
1834 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
1835 ]
1836 ] )
1837 );
1838
1839 $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_left', [
1840 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_left'],
1841 'capability' => 'edit_theme_options',
1842 'transport' => 'postMessage',
1843 'sanitize_callback' => [$this->sanitizer, 'integer']
1844
1845 ] );
1846
1847 $this->customizer->add_control( new DimensionControl(
1848 $this->customizer, 'betterdocs_doc_single_toc_list_margin_left', [
1849 'type' => 'betterdocs-dimension',
1850 'section' => 'betterdocs_single_docs_settings',
1851 'settings' => 'betterdocs_doc_single_toc_list_margin_left',
1852 'label' => __( 'Left', 'betterdocs' ),
1853 'priority' => 148,
1854 'input_attrs' => [
1855 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
1856 ]
1857 ] )
1858 );
1859 }
1860
1861 public function toc_list_number_color() {
1862 $this->customizer->add_setting( 'betterdocs_toc_list_number_color', [
1863 'default' => $this->defaults['betterdocs_toc_list_number_color'],
1864 'capability' => 'edit_theme_options',
1865 'sanitize_callback' => [$this->sanitizer, 'rgba']
1866 ] );
1867
1868 $this->customizer->add_control(
1869 new AlphaColorControl(
1870 $this->customizer,
1871 'betterdocs_toc_list_number_color',
1872 [
1873 'label' => __( 'List Number Color', 'betterdocs' ),
1874 'priority' => 153,
1875 'section' => 'betterdocs_single_docs_settings',
1876 'settings' => 'betterdocs_toc_list_number_color'
1877 ]
1878 )
1879 );
1880 }
1881
1882 public function toc_list_number_font_size() {
1883 $this->customizer->add_setting( 'betterdocs_toc_list_number_font_size', [
1884 'default' => $this->defaults['betterdocs_toc_list_number_font_size'],
1885 'capability' => 'edit_theme_options',
1886 'sanitize_callback' => [$this->sanitizer, 'integer']
1887
1888 ] );
1889
1890 $this->customizer->add_control( new RangeValueControl(
1891 $this->customizer, 'betterdocs_toc_list_number_font_size', [
1892 'type' => 'betterdocs-range-value',
1893 'section' => 'betterdocs_single_docs_settings',
1894 'settings' => 'betterdocs_toc_list_number_font_size',
1895 'label' => __( 'List Number Font Size', 'betterdocs' ),
1896 'priority' => 154,
1897 'input_attrs' => [
1898 'class' => '',
1899 'min' => 0,
1900 'max' => 50,
1901 'step' => 1,
1902 'suffix' => 'px' //optional suffix
1903 ]
1904 ] )
1905 );
1906 }
1907
1908 public function toc_margin_bottom() {
1909 $this->customizer->add_setting( 'betterdocs_toc_margin_bottom', [
1910 'default' => $this->defaults['betterdocs_toc_margin_bottom'],
1911 'capability' => 'edit_theme_options',
1912 'transport' => 'postMessage',
1913 'sanitize_callback' => [$this->sanitizer, 'integer']
1914
1915 ] );
1916
1917 $this->customizer->add_control( new RangeValueControl(
1918 $this->customizer, 'betterdocs_toc_margin_bottom', [
1919 'type' => 'betterdocs-range-value',
1920 'section' => 'betterdocs_single_docs_settings',
1921 'settings' => 'betterdocs_toc_margin_bottom',
1922 'label' => __( 'TOC Margin Bottom', 'betterdocs' ),
1923 'priority' => 155,
1924 'input_attrs' => [
1925 'class' => '',
1926 'min' => 0,
1927 'max' => 500,
1928 'step' => 1,
1929 'suffix' => 'px' // optional suffix
1930 ]
1931 ] )
1932 );
1933 }
1934
1935 public function doc_single_toc_title_layout_8_9() {
1936 $this->customizer->add_setting( 'betterdocs_doc_single_toc_title_layout_8_9', [
1937 'default' => $this->defaults['betterdocs_doc_single_toc_title_layout_8_9'],
1938 'sanitize_callback' => 'esc_html'
1939 ] );
1940
1941 $this->customizer->add_control( new SeparatorControl(
1942 $this->customizer, 'betterdocs_doc_single_toc_title_layout_8_9', [
1943 'label' => __( 'Table of Contents', 'betterdocs' ),
1944 'priority' => 132,
1945 'settings' => 'betterdocs_doc_single_toc_title_layout_8_9',
1946 'section' => 'betterdocs_single_docs_settings'
1947 ] )
1948 );
1949 }
1950
1951 // public function sticky_toc_width_layout_8_9() {
1952 // $this->customizer->add_setting( 'betterdocs_sticky_toc_width_layout_8_9', [
1953 // 'default' => $this->defaults['betterdocs_sticky_toc_width_layout_8_9'],
1954 // 'capability' => 'edit_theme_options',
1955 // 'transport' => 'postMessage',
1956 // 'sanitize_callback' => [$this->sanitizer, 'integer']
1957
1958 // ] );
1959
1960 // $this->customizer->add_control( new RangeValueControl(
1961 // $this->customizer, 'betterdocs_sticky_toc_width_layout_8_9', [
1962 // 'type' => 'betterdocs-range-value',
1963 // 'section' => 'betterdocs_single_docs_settings',
1964 // 'settings' => 'betterdocs_sticky_toc_width_layout_8_9',
1965 // 'label' => __( 'Sticky Toc Width', 'betterdocs' ),
1966 // 'priority' => 133,
1967 // 'input_attrs' => [
1968 // 'class' => '',
1969 // 'min' => 100,
1970 // 'max' => 500,
1971 // 'step' => 1,
1972 // 'suffix' => 'px' //optional suffix
1973 // ]
1974 // ] )
1975 // );
1976 // }
1977
1978 // public function sticky_toc_zindex_layout_8_9() {
1979 // $this->customizer->add_setting( 'betterdocs_sticky_toc_zindex_layout_8_9', [
1980 // 'default' => $this->defaults['betterdocs_sticky_toc_zindex_layout_8_9'],
1981 // 'capability' => 'edit_theme_options',
1982 // 'transport' => 'postMessage',
1983 // 'sanitize_callback' => [$this->sanitizer, 'integer']
1984 // ] );
1985
1986 // $this->customizer->add_control( new NumberControl(
1987 // $this->customizer, 'betterdocs_sticky_toc_zindex_layout_8_9', [
1988 // 'type' => 'betterdocs-number',
1989 // 'section' => 'betterdocs_single_docs_settings',
1990 // 'settings' => 'betterdocs_sticky_toc_zindex_layout_8_9',
1991 // 'label' => __( 'Sticky Toc z-index', 'betterdocs' ),
1992 // 'priority' => 134
1993 // ] )
1994 // );
1995 // }
1996
1997 // public function sticky_toc_margin_top_layout_8_9() {
1998 // $this->customizer->add_setting( 'betterdocs_sticky_toc_margin_top_layout_8_9', [
1999 // 'default' => $this->defaults['betterdocs_sticky_toc_margin_top_layout_8_9'],
2000 // 'capability' => 'edit_theme_options',
2001 // 'transport' => 'postMessage',
2002 // 'sanitize_callback' => [$this->sanitizer, 'integer']
2003
2004 // ] );
2005
2006 // $this->customizer->add_control( new RangeValueControl(
2007 // $this->customizer, 'betterdocs_sticky_toc_margin_top_layout_8_9', [
2008 // 'type' => 'betterdocs-range-value',
2009 // 'section' => 'betterdocs_single_docs_settings',
2010 // 'settings' => 'betterdocs_sticky_toc_margin_top_layout_8_9',
2011 // 'label' => __( 'Sticky Toc Margin Top', 'betterdocs' ),
2012 // 'priority' => 135,
2013 // 'input_attrs' => [
2014 // 'class' => '',
2015 // 'min' => 0,
2016 // 'max' => 500,
2017 // 'step' => 1,
2018 // 'suffix' => 'px' //optional suffix
2019 // ]
2020 // ] )
2021 // );
2022 // }
2023
2024 public function toc_bg_color_layout_8_9() {
2025 $this->customizer->add_setting( 'betterdocs_toc_bg_color_layout_8_9', [
2026 'capability' => 'edit_theme_options',
2027 'default' => $this->defaults['betterdocs_toc_bg_color_layout_8_9'],
2028 'transport' => 'postMessage',
2029 'sanitize_callback' => [$this->sanitizer, 'rgba']
2030 ] );
2031
2032 $this->customizer->add_control(
2033 new AlphaColorControl(
2034 $this->customizer,
2035 'betterdocs_toc_bg_color_layout_8_9',
2036 [
2037 'label' => __( 'Background Color', 'betterdocs' ),
2038 'priority' => 136,
2039 'section' => 'betterdocs_single_docs_settings',
2040 'settings' => 'betterdocs_toc_bg_color_layout_8_9'
2041 ]
2042 )
2043 );
2044 }
2045
2046 public function doc_single_toc_padding_layout_8_9() {
2047 $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_layout_8_9', [
2048 'default' => $this->defaults['betterdocs_doc_single_toc_padding_layout_8_9'],
2049 'capability' => 'edit_theme_options',
2050 'transport' => 'postMessage',
2051 'sanitize_callback' => [$this->sanitizer, 'integer']
2052
2053 ] );
2054
2055 $this->customizer->add_control( new TitleControl(
2056 $this->customizer, 'betterdocs_doc_single_toc_padding_layout_8_9', [
2057 'type' => 'betterdocs-title',
2058 'section' => 'betterdocs_single_docs_settings',
2059 'settings' => 'betterdocs_doc_single_toc_padding_layout_8_9',
2060 'label' => __( 'Content Area Padding', 'betterdocs' ),
2061 'priority' => 137,
2062 'input_attrs' => [
2063 'id' => 'betterdocs_doc_single_toc_padding_layout_8_9',
2064 'class' => 'betterdocs-dimension'
2065 ]
2066 ] )
2067 );
2068
2069 $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_top_layout_8_9', [
2070 'default' => $this->defaults['betterdocs_doc_single_toc_padding_top_layout_8_9'],
2071 'capability' => 'edit_theme_options',
2072 'transport' => 'postMessage',
2073 'sanitize_callback' => [$this->sanitizer, 'integer']
2074 ] );
2075
2076 $this->customizer->add_control( new DimensionControl(
2077 $this->customizer, 'betterdocs_doc_single_toc_padding_top_layout_8_9', [
2078 'type' => 'betterdocs-dimension',
2079 'section' => 'betterdocs_single_docs_settings',
2080 'settings' => 'betterdocs_doc_single_toc_padding_top_layout_8_9',
2081 'label' => __( 'Top', 'betterdocs' ),
2082 'priority' => 137,
2083 'input_attrs' => [
2084 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
2085 ]
2086 ] )
2087 );
2088
2089 $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_right_layout_8_9', [
2090 'default' => $this->defaults['betterdocs_doc_single_toc_padding_right_layout_8_9'],
2091 'capability' => 'edit_theme_options',
2092 'transport' => 'postMessage',
2093 'sanitize_callback' => [$this->sanitizer, 'integer']
2094
2095 ] );
2096
2097 $this->customizer->add_control( new DimensionControl(
2098 $this->customizer, 'betterdocs_doc_single_toc_padding_right_layout_8_9', [
2099 'type' => 'betterdocs-dimension',
2100 'section' => 'betterdocs_single_docs_settings',
2101 'settings' => 'betterdocs_doc_single_toc_padding_right_layout_8_9',
2102 'label' => __( 'Right', 'betterdocs' ),
2103 'priority' => 137,
2104 'input_attrs' => [
2105 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
2106 ]
2107 ] )
2108 );
2109
2110 $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_bottom_layout_8_9', [
2111 'default' => $this->defaults['betterdocs_doc_single_toc_padding_bottom_layout_8_9'],
2112 'capability' => 'edit_theme_options',
2113 'transport' => 'postMessage',
2114 'sanitize_callback' => [$this->sanitizer, 'integer']
2115
2116 ] );
2117
2118 $this->customizer->add_control( new DimensionControl(
2119 $this->customizer, 'betterdocs_doc_single_toc_padding_bottom_layout_8_9', [
2120 'type' => 'betterdocs-dimension',
2121 'section' => 'betterdocs_single_docs_settings',
2122 'settings' => 'betterdocs_doc_single_toc_padding_bottom_layout_8_9',
2123 'label' => __( 'Bottom', 'betterdocs' ),
2124 'priority' => 137,
2125 'input_attrs' => [
2126 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
2127 ]
2128 ] )
2129 );
2130
2131 $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_left_layout_8_9', [
2132 'default' => $this->defaults['betterdocs_doc_single_toc_padding_left_layout_8_9'],
2133 'capability' => 'edit_theme_options',
2134 'transport' => 'postMessage',
2135 'sanitize_callback' => [$this->sanitizer, 'integer']
2136
2137 ] );
2138
2139 $this->customizer->add_control( new DimensionControl(
2140 $this->customizer, 'betterdocs_doc_single_toc_padding_left_layout_8_9', [
2141 'type' => 'betterdocs-dimension',
2142 'section' => 'betterdocs_single_docs_settings',
2143 'settings' => 'betterdocs_doc_single_toc_padding_left_layout_8_9',
2144 'label' => __( 'Left', 'betterdocs' ),
2145 'priority' => 137,
2146 'input_attrs' => [
2147 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
2148 ]
2149 ] )
2150 );
2151 }
2152
2153 public function doc_single_toc_margin_layout_8_9() {
2154 $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_layout_8_9', [
2155 'default' => $this->defaults['betterdocs_doc_single_toc_margin_layout_8_9'],
2156 'capability' => 'edit_theme_options',
2157 'transport' => 'postMessage',
2158 'sanitize_callback' => [$this->sanitizer, 'integer']
2159 ] );
2160
2161 $this->customizer->add_control( new TitleControl(
2162 $this->customizer, 'betterdocs_doc_single_toc_margin_layout_8_9', [
2163 'type' => 'betterdocs-title',
2164 'section' => 'betterdocs_single_docs_settings',
2165 'settings' => 'betterdocs_doc_single_toc_margin_layout_8_9',
2166 'label' => __( 'Content Area Margin', 'betterdocs' ),
2167 'priority' => 141,
2168 'input_attrs' => [
2169 'id' => 'betterdocs_doc_single_toc_margin_layout_8_9',
2170 'class' => 'betterdocs-dimension'
2171 ]
2172 ] )
2173 );
2174
2175 $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_top_layout_8_9', [
2176 'default' => $this->defaults['betterdocs_doc_single_toc_margin_top_layout_8_9'],
2177 'capability' => 'edit_theme_options',
2178 'transport' => 'postMessage',
2179 'sanitize_callback' => [$this->sanitizer, 'integer']
2180 ] );
2181
2182 $this->customizer->add_control( new DimensionControl(
2183 $this->customizer, 'betterdocs_doc_single_toc_margin_top_layout_8_9', [
2184 'type' => 'betterdocs-dimension',
2185 'section' => 'betterdocs_single_docs_settings',
2186 'settings' => 'betterdocs_doc_single_toc_margin_top_layout_8_9',
2187 'label' => __( 'Top', 'betterdocs' ),
2188 'priority' => 141,
2189 'input_attrs' => [
2190 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
2191 ]
2192 ] )
2193 );
2194
2195 $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_right_layout_8_9', [
2196 'default' => $this->defaults['betterdocs_doc_single_toc_margin_right_layout_8_9'],
2197 'capability' => 'edit_theme_options',
2198 'transport' => 'postMessage',
2199 'sanitize_callback' => [$this->sanitizer, 'integer']
2200 ] );
2201
2202 $this->customizer->add_control( new DimensionControl(
2203 $this->customizer, 'betterdocs_doc_single_toc_margin_right_layout_8_9', [
2204 'type' => 'betterdocs-dimension',
2205 'section' => 'betterdocs_single_docs_settings',
2206 'settings' => 'betterdocs_doc_single_toc_margin_right_layout_8_9',
2207 'label' => __( 'Right', 'betterdocs' ),
2208 'priority' => 141,
2209 'input_attrs' => [
2210 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
2211 ]
2212 ] )
2213 );
2214
2215 $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_bottom_layout_8_9', [
2216 'default' => $this->defaults['betterdocs_doc_single_toc_margin_bottom_layout_8_9'],
2217 'capability' => 'edit_theme_options',
2218 'transport' => 'postMessage',
2219 'sanitize_callback' => [$this->sanitizer, 'integer']
2220 ] );
2221
2222 $this->customizer->add_control( new DimensionControl(
2223 $this->customizer, 'betterdocs_doc_single_toc_margin_bottom_layout_8_9', [
2224 'type' => 'betterdocs-dimension',
2225 'section' => 'betterdocs_single_docs_settings',
2226 'settings' => 'betterdocs_doc_single_toc_margin_bottom_layout_8_9',
2227 'label' => __( 'Bottom', 'betterdocs' ),
2228 'priority' => 141,
2229 'input_attrs' => [
2230 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
2231 ]
2232 ] )
2233 );
2234
2235 $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_left_layout_8_9', [
2236 'default' => $this->defaults['betterdocs_doc_single_toc_margin_left_layout_8_9'],
2237 'capability' => 'edit_theme_options',
2238 'transport' => 'postMessage',
2239 'sanitize_callback' => [$this->sanitizer, 'integer']
2240 ] );
2241
2242 $this->customizer->add_control( new DimensionControl(
2243 $this->customizer, 'betterdocs_doc_single_toc_margin_left_layout_8_9', [
2244 'type' => 'betterdocs-dimension',
2245 'section' => 'betterdocs_single_docs_settings',
2246 'settings' => 'betterdocs_doc_single_toc_margin_left_layout_8_9',
2247 'label' => __( 'Left', 'betterdocs' ),
2248 'priority' => 141,
2249 'input_attrs' => [
2250 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
2251 ]
2252 ] )
2253 );
2254 }
2255
2256 public function toc_title_color_layout_8_9() {
2257 $this->customizer->add_setting( 'betterdocs_toc_title_color_layout_8_9', [
2258 'capability' => 'edit_theme_options',
2259 'default' => $this->defaults['betterdocs_toc_title_color_layout_8_9'],
2260 'transport' => 'postMessage',
2261 'sanitize_callback' => [$this->sanitizer, 'rgba']
2262 ] );
2263
2264 $this->customizer->add_control(
2265 new AlphaColorControl(
2266 $this->customizer,
2267 'betterdocs_toc_title_color_layout_8_9',
2268 [
2269 'label' => __( 'Title Color', 'betterdocs' ),
2270 'priority' => 142,
2271 'section' => 'betterdocs_single_docs_settings',
2272 'settings' => 'betterdocs_toc_title_color_layout_8_9'
2273 ]
2274 )
2275 );
2276 }
2277
2278 public function toc_title_margin_layout_8_9() {
2279 $this->customizer->add_setting( 'toc_title_margin_layout_8_9', [
2280 'default' => $this->defaults['toc_title_margin_layout_8_9'],
2281 'capability' => 'edit_theme_options',
2282 'transport' => 'postMessage',
2283 'sanitize_callback' => [$this->sanitizer, 'integer']
2284 ] );
2285
2286 $this->customizer->add_control( new TitleControl(
2287 $this->customizer, 'toc_title_margin_layout_8_9', [
2288 'type' => 'betterdocs-title',
2289 'section' => 'betterdocs_single_docs_settings',
2290 'settings' => 'toc_title_margin_layout_8_9',
2291 'label' => __( 'Margin', 'betterdocs' ),
2292 'priority' => 142,
2293 'input_attrs' => [
2294 'id' => 'toc_title_margin_layout_8_9',
2295 'class' => 'betterdocs-dimension'
2296 ]
2297 ] )
2298 );
2299
2300 $this->customizer->add_setting( 'toc_title_margin_top_layout_8_9', [
2301 'default' => $this->defaults['toc_title_margin_top_layout_8_9'],
2302 'capability' => 'edit_theme_options',
2303 'transport' => 'postMessage',
2304 'sanitize_callback' => [$this->sanitizer, 'integer']
2305 ] );
2306
2307 $this->customizer->add_control( new DimensionControl(
2308 $this->customizer, 'toc_title_margin_top_layout_8_9', [
2309 'type' => 'betterdocs-dimension',
2310 'section' => 'betterdocs_single_docs_settings',
2311 'settings' => 'toc_title_margin_top_layout_8_9',
2312 'label' => __( 'Top', 'betterdocs' ),
2313 'priority' => 142,
2314 'input_attrs' => [
2315 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
2316 ]
2317 ] )
2318 );
2319
2320 $this->customizer->add_setting( 'toc_title_margin_right_layout_8_9', [
2321 'default' => $this->defaults['toc_title_margin_right_layout_8_9'],
2322 'capability' => 'edit_theme_options',
2323 'transport' => 'postMessage',
2324 'sanitize_callback' => [$this->sanitizer, 'integer']
2325 ] );
2326
2327 $this->customizer->add_control( new DimensionControl(
2328 $this->customizer, 'toc_title_margin_right_layout_8_9', [
2329 'type' => 'betterdocs-dimension',
2330 'section' => 'betterdocs_single_docs_settings',
2331 'settings' => 'toc_title_margin_right_layout_8_9',
2332 'label' => __( 'Right', 'betterdocs' ),
2333 'priority' => 142,
2334 'input_attrs' => [
2335 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
2336 ]
2337 ] )
2338 );
2339
2340 $this->customizer->add_setting( 'toc_title_margin_bottom_layout_8_9', [
2341 'default' => $this->defaults['toc_title_margin_bottom_layout_8_9'],
2342 'capability' => 'edit_theme_options',
2343 'transport' => 'postMessage',
2344 'sanitize_callback' => [$this->sanitizer, 'integer']
2345 ] );
2346
2347 $this->customizer->add_control( new DimensionControl(
2348 $this->customizer, 'toc_title_margin_bottom_layout_8_9', [
2349 'type' => 'betterdocs-dimension',
2350 'section' => 'betterdocs_single_docs_settings',
2351 'settings' => 'toc_title_margin_bottom_layout_8_9',
2352 'label' => __( 'Bottom', 'betterdocs' ),
2353 'priority' => 142,
2354 'input_attrs' => [
2355 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
2356 ]
2357 ] )
2358 );
2359
2360 $this->customizer->add_setting( 'toc_title_margin_left_layout_8_9', [
2361 'default' => $this->defaults['toc_title_margin_left_layout_8_9'],
2362 'capability' => 'edit_theme_options',
2363 'transport' => 'postMessage',
2364 'sanitize_callback' => [$this->sanitizer, 'integer']
2365 ] );
2366
2367 $this->customizer->add_control( new DimensionControl(
2368 $this->customizer, 'toc_title_margin_left_layout_8_9', [
2369 'type' => 'betterdocs-dimension',
2370 'section' => 'betterdocs_single_docs_settings',
2371 'settings' => 'toc_title_margin_left_layout_8_9',
2372 'label' => __( 'Left', 'betterdocs' ),
2373 'priority' => 142,
2374 'input_attrs' => [
2375 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
2376 ]
2377 ] )
2378 );
2379 }
2380
2381 public function toc_title_font_size_layout_8_9() {
2382 $this->customizer->add_setting( 'betterdocs_toc_title_font_size_layout_8_9', [
2383 'default' => $this->defaults['betterdocs_toc_title_font_size_layout_8_9'],
2384 'capability' => 'edit_theme_options',
2385 'transport' => 'postMessage',
2386 'sanitize_callback' => [$this->sanitizer, 'integer']
2387
2388 ] );
2389
2390 $this->customizer->add_control( new RangeValueControl(
2391 $this->customizer, 'betterdocs_toc_title_font_size_layout_8_9', [
2392 'type' => 'betterdocs-range-value',
2393 'section' => 'betterdocs_single_docs_settings',
2394 'settings' => 'betterdocs_toc_title_font_size_layout_8_9',
2395 'label' => __( 'Title Font Size', 'betterdocs' ),
2396 'priority' => 143,
2397 'input_attrs' => [
2398 'class' => '',
2399 'min' => 0,
2400 'max' => 50,
2401 'step' => 1,
2402 'suffix' => 'px' //optional suffix
2403 ]
2404 ] )
2405 );
2406 }
2407
2408 public function toc_list_item_color_layout_8_9() {
2409 $this->customizer->add_setting( 'betterdocs_toc_list_item_color_layout_8_9', [
2410 'default' => $this->defaults['betterdocs_toc_list_item_color_layout_8_9'],
2411 'transport' => 'postMessage',
2412 'sanitize_callback' => [$this->sanitizer, 'rgba']
2413 ] );
2414
2415 $this->customizer->add_control(
2416 new AlphaColorControl(
2417 $this->customizer,
2418 'betterdocs_toc_list_item_color_layout_8_9',
2419 [
2420 'label' => __( 'List Item Color', 'betterdocs' ),
2421 'priority' => 144,
2422 'section' => 'betterdocs_single_docs_settings',
2423 'settings' => 'betterdocs_toc_list_item_color_layout_8_9'
2424 ]
2425 )
2426 );
2427 }
2428
2429 public function toc_list_item_hover_color_layout_8_9() {
2430 $this->customizer->add_setting( 'betterdocs_toc_list_item_hover_color_layout_8_9', [
2431 'capability' => 'edit_theme_options',
2432 'default' => $this->defaults['betterdocs_toc_list_item_hover_color_layout_8_9'],
2433 'sanitize_callback' => [$this->sanitizer, 'rgba']
2434 ] );
2435
2436 $this->customizer->add_control(
2437 new AlphaColorControl(
2438 $this->customizer,
2439 'betterdocs_toc_list_item_hover_color_layout_8_9',
2440 [
2441 'label' => __( 'List Item Hover Color', 'betterdocs' ),
2442 'priority' => 145,
2443 'section' => 'betterdocs_single_docs_settings',
2444 'settings' => 'betterdocs_toc_list_item_hover_color_layout_8_9'
2445 ]
2446 )
2447 );
2448 }
2449
2450 public function toc_active_item_color_layout_8_9() {
2451 $this->customizer->add_setting( 'betterdocs_toc_active_item_color_layout_8_9', [
2452 'capability' => 'edit_theme_options',
2453 'default' => $this->defaults['betterdocs_toc_active_item_color_layout_8_9'],
2454 'sanitize_callback' => [$this->sanitizer, 'rgba']
2455 ] );
2456
2457 $this->customizer->add_control(
2458 new AlphaColorControl(
2459 $this->customizer,
2460 'betterdocs_toc_active_item_color_layout_8_9',
2461 [
2462 'label' => __( 'Active Item Color', 'betterdocs' ),
2463 'priority' => 146,
2464 'section' => 'betterdocs_single_docs_settings',
2465 'settings' => 'betterdocs_toc_active_item_color_layout_8_9'
2466 ]
2467 )
2468 );
2469 }
2470
2471 public function toc_active_item_border_color_layout_8_9() {
2472 $this->customizer->add_setting( 'toc_active_item_border_color_layout_8_9', [
2473 'capability' => 'edit_theme_options',
2474 'default' => $this->defaults['toc_active_item_border_color_layout_8_9'],
2475 'sanitize_callback' => [$this->sanitizer, 'rgba']
2476 ] );
2477
2478 $this->customizer->add_control(
2479 new AlphaColorControl(
2480 $this->customizer,
2481 'toc_active_item_border_color_layout_8_9',
2482 [
2483 'label' => __( 'Active Item Border Color', 'betterdocs' ),
2484 'priority' => 146,
2485 'section' => 'betterdocs_single_docs_settings',
2486 'settings' => 'toc_active_item_border_color_layout_8_9'
2487 ]
2488 )
2489 );
2490 }
2491
2492 public function toc_list_item_font_size_layout_8_9() {
2493 $this->customizer->add_setting( 'betterdocs_toc_list_item_font_size_layout_8_9', [
2494 'default' => $this->defaults['betterdocs_toc_list_item_font_size_layout_8_9'],
2495 'capability' => 'edit_theme_options',
2496 'transport' => 'postMessage',
2497 'sanitize_callback' => [$this->sanitizer, 'integer']
2498
2499 ] );
2500
2501 $this->customizer->add_control( new RangeValueControl(
2502 $this->customizer, 'betterdocs_toc_list_item_font_size_layout_8_9', [
2503 'type' => 'betterdocs-range-value',
2504 'section' => 'betterdocs_single_docs_settings',
2505 'settings' => 'betterdocs_toc_list_item_font_size_layout_8_9',
2506 'label' => __( 'List Item Font Size', 'betterdocs' ),
2507 'priority' => 147,
2508 'input_attrs' => [
2509 'class' => '',
2510 'min' => 0,
2511 'max' => 50,
2512 'step' => 1,
2513 'suffix' => 'px' //optional suffix
2514 ]
2515 ] )
2516 );
2517 }
2518
2519 public function doc_single_toc_list_margin_layout_8_9() {
2520 $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_layout_8_9', [
2521 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_layout_8_9'],
2522 'capability' => 'edit_theme_options',
2523 'transport' => 'postMessage',
2524 'sanitize_callback' => [$this->sanitizer, 'integer']
2525
2526 ] );
2527
2528 $this->customizer->add_control( new TitleControl(
2529 $this->customizer, 'betterdocs_doc_single_toc_list_margin_layout_8_9', [
2530 'type' => 'betterdocs-title',
2531 'section' => 'betterdocs_single_docs_settings',
2532 'settings' => 'betterdocs_doc_single_toc_list_margin_layout_8_9',
2533 'label' => __( 'TOC List Margin', 'betterdocs' ),
2534 'priority' => 148,
2535 'input_attrs' => [
2536 'id' => 'betterdocs_doc_single_toc_list_margin_layout_8_9',
2537 'class' => 'betterdocs-dimension'
2538 ]
2539 ] )
2540 );
2541
2542 $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_top_layout_8_9', [
2543 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_top_layout_8_9'],
2544 'capability' => 'edit_theme_options',
2545 'transport' => 'postMessage',
2546 'sanitize_callback' => [$this->sanitizer, 'integer']
2547 ] );
2548
2549 $this->customizer->add_control( new DimensionControl(
2550 $this->customizer, 'betterdocs_doc_single_toc_list_margin_top_layout_8_9', [
2551 'type' => 'betterdocs-dimension',
2552 'section' => 'betterdocs_single_docs_settings',
2553 'settings' => 'betterdocs_doc_single_toc_list_margin_top_layout_8_9',
2554 'label' => __( 'Top', 'betterdocs' ),
2555 'priority' => 148,
2556 'input_attrs' => [
2557 'class' => 'betterdocs_doc_single_toc_list_margin_layout_8_9 betterdocs-dimension'
2558 ]
2559 ] )
2560 );
2561
2562 $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_right_layout_8_9', [
2563 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_right_layout_8_9'],
2564 'capability' => 'edit_theme_options',
2565 'transport' => 'postMessage',
2566 'sanitize_callback' => [$this->sanitizer, 'integer']
2567
2568 ] );
2569
2570 $this->customizer->add_control( new DimensionControl(
2571 $this->customizer, 'betterdocs_doc_single_toc_list_margin_right_layout_8_9', [
2572 'type' => 'betterdocs-dimension',
2573 'section' => 'betterdocs_single_docs_settings',
2574 'settings' => 'betterdocs_doc_single_toc_list_margin_right_layout_8_9',
2575 'label' => __( 'Right', 'betterdocs' ),
2576 'priority' => 148,
2577 'input_attrs' => [
2578 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
2579 ]
2580 ] )
2581 );
2582
2583 $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_bottom_layout_8_9', [
2584 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_bottom_layout_8_9'],
2585 'capability' => 'edit_theme_options',
2586 'transport' => 'postMessage',
2587 'sanitize_callback' => [$this->sanitizer, 'integer']
2588
2589 ] );
2590
2591 $this->customizer->add_control( new DimensionControl(
2592 $this->customizer, 'betterdocs_doc_single_toc_list_margin_bottom_layout_8_9', [
2593 'type' => 'betterdocs-dimension',
2594 'section' => 'betterdocs_single_docs_settings',
2595 'settings' => 'betterdocs_doc_single_toc_list_margin_bottom_layout_8_9',
2596 'label' => __( 'Bottom', 'betterdocs' ),
2597 'priority' => 148,
2598 'input_attrs' => [
2599 'class' => 'betterdocs_doc_single_toc_list_margin_layout_8_9 betterdocs-dimension'
2600 ]
2601 ] )
2602 );
2603
2604 $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_left_layout_8_9', [
2605 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_left_layout_8_9'],
2606 'capability' => 'edit_theme_options',
2607 'transport' => 'postMessage',
2608 'sanitize_callback' => [$this->sanitizer, 'integer']
2609
2610 ] );
2611
2612 $this->customizer->add_control( new DimensionControl(
2613 $this->customizer, 'betterdocs_doc_single_toc_list_margin_left_layout_8_9', [
2614 'type' => 'betterdocs-dimension',
2615 'section' => 'betterdocs_single_docs_settings',
2616 'settings' => 'betterdocs_doc_single_toc_list_margin_left_layout_8_9',
2617 'label' => __( 'Left', 'betterdocs' ),
2618 'priority' => 148,
2619 'input_attrs' => [
2620 'class' => 'betterdocs_doc_single_toc_list_margin_layout_8_9 betterdocs-dimension'
2621 ]
2622 ] )
2623 );
2624 }
2625
2626 public function doc_author_section() {
2627 $this->customizer->add_setting( 'betterdocs_doc_author_section', [
2628 'default' => $this->defaults['betterdocs_doc_author_section'],
2629 'sanitize_callback' => 'esc_html'
2630 ] );
2631
2632 $this->customizer->add_control( new SeparatorControl(
2633 $this->customizer, 'betterdocs_doc_author_section', [
2634 'label' => __( 'Author', 'betterdocs' ),
2635 'priority' => 155,
2636 'settings' => 'betterdocs_doc_author_section',
2637 'section' => 'betterdocs_single_docs_settings'
2638 ] )
2639 );
2640 }
2641
2642 public function doc_author_enable() {
2643 $this->customizer->add_setting( 'betterdocs_doc_author_enable', [
2644 'default' => $this->defaults['betterdocs_doc_author_enable'],
2645 'capability' => 'edit_theme_options',
2646 'sanitize_callback' => [$this->sanitizer, 'checkbox']
2647 ] );
2648
2649 $this->customizer->add_control(
2650 new ToggleControl(
2651 $this->customizer, 'betterdocs_doc_author_enable', [
2652 'label' => __( 'Enable Author Info', 'betterdocs' ),
2653 'priority' => 155,
2654 'section' => 'betterdocs_single_docs_settings',
2655 'settings' => 'betterdocs_doc_author_enable',
2656 'type' => 'light' // light, ios, flat
2657 ]
2658 )
2659 );
2660 }
2661
2662 public function doc_author_enable_layout_9() {
2663 $this->customizer->add_setting( 'betterdocs_doc_author_enable_layout_9', [
2664 'default' => $this->defaults['betterdocs_doc_author_enable_layout_9'],
2665 'capability' => 'edit_theme_options',
2666 'sanitize_callback' => [$this->sanitizer, 'checkbox']
2667 ] );
2668
2669 $this->customizer->add_control(
2670 new ToggleControl(
2671 $this->customizer, 'betterdocs_doc_author_enable_layout_9', [
2672 'label' => __( 'Enable Author Info', 'betterdocs' ),
2673 'priority' => 155,
2674 'section' => 'betterdocs_single_docs_settings',
2675 'settings' => 'betterdocs_doc_author_enable_layout_9',
2676 'type' => 'light' // light, ios, flat
2677 ]
2678 )
2679 );
2680 }
2681
2682 public function doc_author_date() {
2683 $this->customizer->add_setting( 'betterdocs_doc_author_date', [
2684 'default' => $this->defaults['betterdocs_doc_author_date'],
2685 'capability' => 'edit_theme_options',
2686 'sanitize_callback' => [$this->sanitizer, 'checkbox']
2687 ] );
2688
2689 $this->customizer->add_control(
2690 new ToggleControl(
2691 $this->customizer, 'betterdocs_doc_author_date', [
2692 'label' => __( 'Updated Date', 'betterdocs' ),
2693 'priority' => 155,
2694 'section' => 'betterdocs_single_docs_settings',
2695 'settings' => 'betterdocs_doc_author_date',
2696 'type' => 'light' // light, ios, flat
2697 ]
2698 )
2699 );
2700 }
2701
2702
2703 public function doc_estimate_reading_time_section() {
2704 $this->customizer->add_setting( 'betterdocs_doc_estimate_reading_time_section', [
2705 'default' => $this->defaults['betterdocs_doc_estimate_reading_time_section'],
2706 'sanitize_callback' => 'esc_html'
2707 ] );
2708
2709 $this->customizer->add_control( new SeparatorControl(
2710 $this->customizer, 'betterdocs_doc_estimate_reading_time_section', [
2711 'label' => __( 'Estimated Reading Time', 'betterdocs' ),
2712 'priority' => 155,
2713 'settings' => 'betterdocs_doc_estimate_reading_time_section',
2714 'section' => 'betterdocs_single_docs_settings'
2715 ] )
2716 );
2717 }
2718
2719 public function doc_erstimate_reading_time_bg_color() {
2720 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_bg_color', [
2721 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_bg_color'],
2722 'capability' => 'edit_theme_options',
2723 'transport' => 'postMessage',
2724 'sanitize_callback' => [$this->sanitizer, 'rgba']
2725 ] );
2726
2727 $this->customizer->add_control(
2728 new AlphaColorControl(
2729 $this->customizer,
2730 'betterdocs_doc_single_content_est_reading_bg_color',
2731 [
2732 'label' => __( 'Background Color', 'betterdocs' ),
2733 'priority' => 155,
2734 'section' => 'betterdocs_single_docs_settings',
2735 'settings' => 'betterdocs_doc_single_content_est_reading_bg_color'
2736 ]
2737 )
2738 );
2739 }
2740
2741 public function doc_erstimate_reading_time_bg_color_layout_8_9() {
2742 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_bg_color_layout_8_9', [
2743 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_bg_color_layout_8_9'],
2744 'capability' => 'edit_theme_options',
2745 'transport' => 'postMessage',
2746 'sanitize_callback' => [$this->sanitizer, 'rgba']
2747 ] );
2748
2749 $this->customizer->add_control(
2750 new AlphaColorControl(
2751 $this->customizer,
2752 'betterdocs_doc_single_content_est_reading_bg_color_layout_8_9',
2753 [
2754 'label' => __( 'Background Color', 'betterdocs' ),
2755 'priority' => 155,
2756 'section' => 'betterdocs_single_docs_settings',
2757 'settings' => 'betterdocs_doc_single_content_est_reading_bg_color_layout_8_9'
2758 ]
2759 )
2760 );
2761 }
2762
2763 public function doc_estimate_reading_time_icon_color() {
2764 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_icon_color', [
2765 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_icon_color'],
2766 'capability' => 'edit_theme_options',
2767 'sanitize_callback' => [$this->sanitizer, 'rgba']
2768 ] );
2769
2770 $this->customizer->add_control(
2771 new AlphaColorControl(
2772 $this->customizer,
2773 'betterdocs_doc_single_content_est_reading_icon_color',
2774 [
2775 'label' => __( 'Clock Icon Color', 'betterdocs' ),
2776 'priority' => 155,
2777 'section' => 'betterdocs_single_docs_settings',
2778 'settings' => 'betterdocs_doc_single_content_est_reading_icon_color'
2779 ]
2780 )
2781 );
2782 }
2783
2784 public function betterdocs_doc_single_content_est_reading_icon_font_size() {
2785 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_icon_font_size', [
2786 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_icon_font_size'],
2787 'capability' => 'edit_theme_options',
2788 'transport' => 'postMessage',
2789 'sanitize_callback' => [$this->sanitizer, 'integer']
2790
2791 ] );
2792
2793 $this->customizer->add_control( new RangeValueControl(
2794 $this->customizer, 'betterdocs_doc_single_content_est_reading_icon_font_size', [
2795 'type' => 'betterdocs-range-value',
2796 'section' => 'betterdocs_single_docs_settings',
2797 'settings' => 'betterdocs_doc_single_content_est_reading_icon_font_size',
2798 'label' => __( 'Clock Icon Size', 'betterdocs' ),
2799 'priority' => 155,
2800 'input_attrs' => [
2801 'min' => 0,
2802 'max' => 50,
2803 'step' => 1,
2804 'suffix' => 'px' //optional suffix
2805 ]
2806 ] )
2807 );
2808 }
2809
2810 public function doc_estimate_reading_time_color() {
2811 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_color', [
2812 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_color'],
2813 'capability' => 'edit_theme_options',
2814 'transport' => 'postMessage',
2815 'sanitize_callback' => [$this->sanitizer, 'rgba']
2816 ] );
2817
2818 $this->customizer->add_control(
2819 new AlphaColorControl(
2820 $this->customizer,
2821 'betterdocs_doc_single_content_est_reading_color',
2822 [
2823 'label' => __( 'Font Color', 'betterdocs' ),
2824 'priority' => 155,
2825 'section' => 'betterdocs_single_docs_settings',
2826 'settings' => 'betterdocs_doc_single_content_est_reading_color'
2827 ]
2828 )
2829 );
2830 }
2831
2832 public function betterdocs_doc_single_content_est_reading_font_size() {
2833 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_font_size', [
2834 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_font_size'],
2835 'capability' => 'edit_theme_options',
2836 'transport' => 'postMessage',
2837 'sanitize_callback' => [$this->sanitizer, 'integer']
2838
2839 ] );
2840
2841 $this->customizer->add_control( new RangeValueControl(
2842 $this->customizer, 'betterdocs_doc_single_content_est_reading_font_size', [
2843 'type' => 'betterdocs-range-value',
2844 'section' => 'betterdocs_single_docs_settings',
2845 'settings' => 'betterdocs_doc_single_content_est_reading_font_size',
2846 'label' => __( 'Font Size', 'betterdocs' ),
2847 'priority' => 155,
2848 'input_attrs' => [
2849 'min' => 0,
2850 'max' => 50,
2851 'step' => 1,
2852 'suffix' => 'px' //optional suffix
2853 ]
2854 ] )
2855 );
2856 }
2857
2858 public function betterdocs_doc_single_content_est_reading_border_radius() {
2859 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_border_radius', [
2860 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_border_radius'],
2861 'capability' => 'edit_theme_options',
2862 'transport' => 'postMessage',
2863 'sanitize_callback' => [$this->sanitizer, 'integer']
2864
2865 ] );
2866
2867 $this->customizer->add_control( new RangeValueControl(
2868 $this->customizer, 'betterdocs_doc_single_content_est_reading_border_radius', [
2869 'type' => 'betterdocs-range-value',
2870 'section' => 'betterdocs_single_docs_settings',
2871 'settings' => 'betterdocs_doc_single_content_est_reading_border_radius',
2872 'label' => __( 'Border Radius', 'betterdocs' ),
2873 'input_attrs' => [
2874 'class' => '',
2875 'min' => 0,
2876 'max' => 100,
2877 'step' => 1,
2878 'suffix' => 'px' //optional suffix
2879 ],
2880 'priority' => 155
2881 ] )
2882 );
2883 }
2884
2885 public function betterdocs_doc_single_content_est_reading_font_weight() {
2886 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_font_weight', [
2887 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_font_weight'],
2888 'capability' => 'edit_theme_options',
2889 'transport' => 'postMessage',
2890 'sanitize_callback' => [$this->sanitizer, 'choices']
2891 ] );
2892
2893 $this->customizer->add_control(
2894 new WP_Customize_Control(
2895 $this->customizer,
2896 'betterdocs_doc_single_content_est_reading_font_weight',
2897 [
2898 'label' => __( 'Font Weight', 'betterdocs-pro' ),
2899 'section' => 'betterdocs_single_docs_settings',
2900 'settings' => 'betterdocs_doc_single_content_est_reading_font_weight',
2901 'type' => 'select',
2902 'choices' => [
2903 'normal' => 'Normal',
2904 '100' => '100',
2905 '200' => '200',
2906 '300' => '300',
2907 '400' => '400',
2908 '500' => '500',
2909 '600' => '600',
2910 '700' => '700',
2911 '800' => '800',
2912 '900' => '900'
2913 ],
2914 'priority' => 155
2915 ]
2916 )
2917 );
2918 }
2919
2920 public function betterdocs_doc_single_content_est_reading_margin() {
2921 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_margin', [
2922 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin'],
2923 'capability' => 'edit_theme_options',
2924 'transport' => 'postMessage',
2925 'sanitize_callback' => [$this->sanitizer, 'integer']
2926 ] );
2927
2928 $this->customizer->add_control( new TitleControl(
2929 $this->customizer, 'betterdocs_doc_single_content_est_reading_margin', [
2930 'type' => 'betterdocs-title',
2931 'section' => 'betterdocs_single_docs_settings',
2932 'settings' => 'betterdocs_doc_single_content_est_reading_margin',
2933 'label' => __( 'Margin', 'betterdocs' ),
2934 'priority' => 155,
2935 'input_attrs' => [
2936 'id' => 'betterdocs_doc_single_content_est_reading_margin',
2937 'class' => 'betterdocs-dimension'
2938 ]
2939 ] )
2940 );
2941
2942 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_margin_top', [
2943 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_top'],
2944 'capability' => 'edit_theme_options',
2945 'transport' => 'postMessage',
2946 'sanitize_callback' => [$this->sanitizer, 'integer']
2947 ] );
2948
2949 $this->customizer->add_control( new DimensionControl(
2950 $this->customizer, 'betterdocs_doc_single_content_est_reading_margin_top', [
2951 'type' => 'betterdocs-dimension',
2952 'section' => 'betterdocs_single_docs_settings',
2953 'settings' => 'betterdocs_doc_single_content_est_reading_margin_top',
2954 'label' => __( 'Top', 'betterdocs' ),
2955 'priority' => 155,
2956 'input_attrs' => [
2957 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
2958 ]
2959 ] )
2960 );
2961
2962 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_margin_right', [
2963 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_right'],
2964 'capability' => 'edit_theme_options',
2965 'transport' => 'postMessage',
2966 'sanitize_callback' => [$this->sanitizer, 'integer']
2967 ] );
2968
2969 $this->customizer->add_control( new DimensionControl(
2970 $this->customizer, 'betterdocs_doc_single_content_est_reading_margin_right', [
2971 'type' => 'betterdocs-dimension',
2972 'section' => 'betterdocs_single_docs_settings',
2973 'settings' => 'betterdocs_doc_single_content_est_reading_margin_right',
2974 'label' => __( 'Right', 'betterdocs' ),
2975 'priority' => 155,
2976 'input_attrs' => [
2977 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
2978 ]
2979 ] )
2980 );
2981
2982 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_margin_bottom', [
2983 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_bottom'],
2984 'capability' => 'edit_theme_options',
2985 'transport' => 'postMessage',
2986 'sanitize_callback' => [$this->sanitizer, 'integer']
2987 ] );
2988
2989 $this->customizer->add_control( new DimensionControl(
2990 $this->customizer, 'betterdocs_doc_single_content_est_reading_margin_bottom', [
2991 'type' => 'betterdocs-dimension',
2992 'section' => 'betterdocs_single_docs_settings',
2993 'settings' => 'betterdocs_doc_single_content_est_reading_margin_bottom',
2994 'label' => __( 'Bottom', 'betterdocs' ),
2995 'priority' => 155,
2996 'input_attrs' => [
2997 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
2998 ]
2999 ] )
3000 );
3001
3002 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_margin_left', [
3003 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_left'],
3004 'capability' => 'edit_theme_options',
3005 'transport' => 'postMessage',
3006 'sanitize_callback' => [$this->sanitizer, 'integer']
3007 ] );
3008
3009 $this->customizer->add_control( new DimensionControl(
3010 $this->customizer, 'betterdocs_doc_single_content_est_reading_margin_left', [
3011 'type' => 'betterdocs-dimension',
3012 'section' => 'betterdocs_single_docs_settings',
3013 'settings' => 'betterdocs_doc_single_content_est_reading_margin_left',
3014 'label' => __( 'Left', 'betterdocs' ),
3015 'priority' => 155,
3016 'input_attrs' => [
3017 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
3018 ]
3019 ] )
3020 );
3021 }
3022
3023 public function betterdocs_doc_single_content_est_reading_padding() {
3024 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_padding', [
3025 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding'],
3026 'capability' => 'edit_theme_options',
3027 'transport' => 'postMessage',
3028 'sanitize_callback' => [$this->sanitizer, 'integer']
3029
3030 ] );
3031
3032 $this->customizer->add_control( new TitleControl(
3033 $this->customizer, 'betterdocs_doc_single_content_est_reading_padding', [
3034 'type' => 'betterdocs-title',
3035 'section' => 'betterdocs_single_docs_settings',
3036 'settings' => 'betterdocs_doc_single_content_est_reading_padding',
3037 'label' => __( 'Padding', 'betterdocs' ),
3038 'priority' => 155,
3039 'input_attrs' => [
3040 'id' => 'betterdocs_doc_single_content_est_reading_padding',
3041 'class' => 'betterdocs-dimension'
3042 ]
3043 ] )
3044 );
3045
3046 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_padding_top', [
3047 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_top'],
3048 'capability' => 'edit_theme_options',
3049 'transport' => 'postMessage',
3050 'sanitize_callback' => [$this->sanitizer, 'integer']
3051 ] );
3052
3053 $this->customizer->add_control( new DimensionControl(
3054 $this->customizer, 'betterdocs_doc_single_content_est_reading_padding_top', [
3055 'type' => 'betterdocs-dimension',
3056 'section' => 'betterdocs_single_docs_settings',
3057 'settings' => 'betterdocs_doc_single_content_est_reading_padding_top',
3058 'label' => __( 'Top', 'betterdocs' ),
3059 'priority' => 155,
3060 'input_attrs' => [
3061 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
3062 ]
3063 ] )
3064 );
3065
3066 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_padding_right', [
3067 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_right'],
3068 'capability' => 'edit_theme_options',
3069 'transport' => 'postMessage',
3070 'sanitize_callback' => [$this->sanitizer, 'integer']
3071
3072 ] );
3073
3074 $this->customizer->add_control( new DimensionControl(
3075 $this->customizer, 'betterdocs_doc_single_content_est_reading_padding_right', [
3076 'type' => 'betterdocs-dimension',
3077 'section' => 'betterdocs_single_docs_settings',
3078 'settings' => 'betterdocs_doc_single_content_est_reading_padding_right',
3079 'label' => __( 'Right', 'betterdocs' ),
3080 'priority' => 155,
3081 'input_attrs' => [
3082 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
3083 ]
3084 ] )
3085 );
3086
3087 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_padding_bottom', [
3088 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_bottom'],
3089 'capability' => 'edit_theme_options',
3090 'transport' => 'postMessage',
3091 'sanitize_callback' => [$this->sanitizer, 'integer']
3092
3093 ] );
3094
3095 $this->customizer->add_control( new DimensionControl(
3096 $this->customizer, 'betterdocs_doc_single_content_est_reading_padding_bottom', [
3097 'type' => 'betterdocs-dimension',
3098 'section' => 'betterdocs_single_docs_settings',
3099 'settings' => 'betterdocs_doc_single_content_est_reading_padding_bottom',
3100 'label' => __( 'Bottom', 'betterdocs' ),
3101 'priority' => 155,
3102 'input_attrs' => [
3103 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
3104 ]
3105 ] )
3106 );
3107
3108 $this->customizer->add_setting( 'betterdocs_doc_single_content_est_reading_padding_left', [
3109 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_left'],
3110 'capability' => 'edit_theme_options',
3111 'transport' => 'postMessage',
3112 'sanitize_callback' => [$this->sanitizer, 'integer']
3113
3114 ] );
3115
3116 $this->customizer->add_control( new DimensionControl(
3117 $this->customizer, 'betterdocs_doc_single_content_est_reading_padding_left', [
3118 'type' => 'betterdocs-dimension',
3119 'section' => 'betterdocs_single_docs_settings',
3120 'settings' => 'betterdocs_doc_single_content_est_reading_padding_left',
3121 'label' => __( 'Left', 'betterdocs' ),
3122 'priority' => 155,
3123 'input_attrs' => [
3124 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
3125 ]
3126 ] )
3127 );
3128 }
3129
3130 public function doc_single_entry_content() {
3131 $this->customizer->add_setting( 'betterdocs_doc_single_entry_content', [
3132 'default' => $this->defaults['betterdocs_doc_single_entry_content'],
3133 'sanitize_callback' => 'esc_html'
3134 ] );
3135
3136 $this->customizer->add_control( new SeparatorControl(
3137 $this->customizer, 'betterdocs_doc_single_entry_content', [
3138 'label' => __( 'Entry Content', 'betterdocs' ),
3139 'priority' => 156,
3140 'settings' => 'betterdocs_doc_single_entry_content',
3141 'section' => 'betterdocs_single_docs_settings'
3142 ] )
3143 );
3144 }
3145
3146 public function single_content_font_size() {
3147 $this->customizer->add_setting( 'betterdocs_single_content_font_size', [
3148 'default' => $this->defaults['betterdocs_single_content_font_size'],
3149 'capability' => 'edit_theme_options',
3150 'transport' => 'postMessage',
3151 'sanitize_callback' => [$this->sanitizer, 'integer']
3152
3153 ] );
3154
3155 $this->customizer->add_control( new RangeValueControl(
3156 $this->customizer, 'betterdocs_single_content_font_size', [
3157 'type' => 'betterdocs-range-value',
3158 'section' => 'betterdocs_single_docs_settings',
3159 'settings' => 'betterdocs_single_content_font_size',
3160 'label' => __( 'Font Size', 'betterdocs' ),
3161 'priority' => 157,
3162 'input_attrs' => [
3163 'class' => '',
3164 'min' => 0,
3165 'max' => 50,
3166 'step' => 1,
3167 'suffix' => 'px' // optional suffix
3168 ]
3169 ] )
3170 );
3171 }
3172
3173 public function single_content_font_color() {
3174 $this->customizer->add_setting( 'betterdocs_single_content_font_color', [
3175 'default' => $this->defaults['betterdocs_single_content_font_color'],
3176 'capability' => 'edit_theme_options',
3177 'transport' => 'postMessage',
3178 'sanitize_callback' => [$this->sanitizer, 'rgba']
3179 ] );
3180
3181 $this->customizer->add_control(
3182 new AlphaColorControl(
3183 $this->customizer,
3184 'betterdocs_single_content_font_color',
3185 [
3186 'label' => __( 'Font Color', 'betterdocs' ),
3187 'priority' => 158,
3188 'section' => 'betterdocs_single_docs_settings',
3189 'settings' => 'betterdocs_single_content_font_color'
3190 ]
3191 )
3192 );
3193 }
3194
3195 public function doc_single_entry_content_layout_8_9() {
3196 $this->customizer->add_setting( 'betterdocs_doc_single_entry_content_layout_8_9', [
3197 'default' => $this->defaults['betterdocs_doc_single_entry_content_layout_8_9'],
3198 'sanitize_callback' => 'esc_html'
3199 ] );
3200
3201 $this->customizer->add_control( new SeparatorControl(
3202 $this->customizer, 'betterdocs_doc_single_entry_content_layout_8_9', [
3203 'label' => __( 'Entry Content', 'betterdocs' ),
3204 'priority' => 156,
3205 'settings' => 'betterdocs_doc_single_entry_content_layout_8_9',
3206 'section' => 'betterdocs_single_docs_settings'
3207 ] )
3208 );
3209 }
3210
3211 public function single_content_font_size_layout_8_9() {
3212 $this->customizer->add_setting( 'betterdocs_single_content_font_size_layout_8_9', [
3213 'default' => $this->defaults['betterdocs_single_content_font_size_layout_8_9'],
3214 'capability' => 'edit_theme_options',
3215 'transport' => 'postMessage',
3216 'sanitize_callback' => [$this->sanitizer, 'integer']
3217
3218 ] );
3219
3220 $this->customizer->add_control( new RangeValueControl(
3221 $this->customizer, 'betterdocs_single_content_font_size_layout_8_9', [
3222 'type' => 'betterdocs-range-value',
3223 'section' => 'betterdocs_single_docs_settings',
3224 'settings' => 'betterdocs_single_content_font_size_layout_8_9',
3225 'label' => __( 'Font Size', 'betterdocs' ),
3226 'priority' => 157,
3227 'input_attrs' => [
3228 'class' => '',
3229 'min' => 0,
3230 'max' => 50,
3231 'step' => 1,
3232 'suffix' => 'px' // optional suffix
3233 ]
3234 ] )
3235 );
3236 }
3237
3238 public function single_content_font_color_layout_8_9() {
3239 $this->customizer->add_setting( 'betterdocs_single_content_font_color_layout_8_9', [
3240 'default' => $this->defaults['betterdocs_single_content_font_color_layout_8_9'],
3241 'capability' => 'edit_theme_options',
3242 'transport' => 'postMessage',
3243 'sanitize_callback' => [$this->sanitizer, 'rgba']
3244 ] );
3245
3246 $this->customizer->add_control(
3247 new AlphaColorControl(
3248 $this->customizer,
3249 'betterdocs_single_content_font_color_layout_8_9',
3250 [
3251 'label' => __( 'Font Color', 'betterdocs' ),
3252 'priority' => 158,
3253 'section' => 'betterdocs_single_docs_settings',
3254 'settings' => 'betterdocs_single_content_font_color_layout_8_9'
3255 ]
3256 )
3257 );
3258 }
3259
3260 public function single_content_padding_layout_8_9() {
3261 $this->customizer->add_setting( 'single_content_padding_layout_8_9', [
3262 'default' => $this->defaults['single_content_padding_layout_8_9'],
3263 'capability' => 'edit_theme_options',
3264 'transport' => 'postMessage',
3265 'sanitize_callback' => [$this->sanitizer, 'integer']
3266 ] );
3267
3268 $this->customizer->add_control( new TitleControl(
3269 $this->customizer, 'single_content_padding_layout_8_9', [
3270 'type' => 'betterdocs-title',
3271 'section' => 'betterdocs_single_docs_settings',
3272 'settings' => 'single_content_padding_layout_8_9',
3273 'label' => __( 'Padding', 'betterdocs' ),
3274 'priority' => 158,
3275 'input_attrs' => [
3276 'id' => 'single_content_padding_layout_8_9',
3277 'class' => 'betterdocs-dimension'
3278 ]
3279 ] )
3280 );
3281
3282 $this->customizer->add_setting( 'single_content_padding_top_layout_8_9', [
3283 'default' => $this->defaults['single_content_padding_top_layout_8_9'],
3284 'capability' => 'edit_theme_options',
3285 'transport' => 'postMessage',
3286 'sanitize_callback' => [$this->sanitizer, 'integer']
3287 ] );
3288
3289 $this->customizer->add_control( new DimensionControl(
3290 $this->customizer, 'single_content_padding_top_layout_8_9', [
3291 'type' => 'betterdocs-dimension',
3292 'section' => 'betterdocs_single_docs_settings',
3293 'settings' => 'single_content_padding_top_layout_8_9',
3294 'label' => __( 'Top', 'betterdocs' ),
3295 'priority' => 158,
3296 'input_attrs' => [
3297 'class' => 'single_content_padding_layout_8_9 betterdocs-dimension'
3298 ]
3299 ] )
3300 );
3301
3302 $this->customizer->add_setting( 'single_content_padding_right_layout_8_9', [
3303 'default' => $this->defaults['single_content_padding_right_layout_8_9'],
3304 'capability' => 'edit_theme_options',
3305 'transport' => 'postMessage',
3306 'sanitize_callback' => [$this->sanitizer, 'integer']
3307 ] );
3308
3309 $this->customizer->add_control( new DimensionControl(
3310 $this->customizer, 'single_content_padding_right_layout_8_9', [
3311 'type' => 'betterdocs-dimension',
3312 'section' => 'betterdocs_single_docs_settings',
3313 'settings' => 'single_content_padding_right_layout_8_9',
3314 'label' => __( 'Right', 'betterdocs' ),
3315 'priority' => 158,
3316 'input_attrs' => [
3317 'class' => 'single_content_padding_layout_8_9 betterdocs-dimension'
3318 ]
3319 ] )
3320 );
3321
3322 $this->customizer->add_setting( 'single_content_padding_bottom_layout_8_9', [
3323 'default' => $this->defaults['single_content_padding_bottom_layout_8_9'],
3324 'capability' => 'edit_theme_options',
3325 'transport' => 'postMessage',
3326 'sanitize_callback' => [$this->sanitizer, 'integer']
3327 ] );
3328
3329 $this->customizer->add_control( new DimensionControl(
3330 $this->customizer, 'single_content_padding_bottom_layout_8_9', [
3331 'type' => 'betterdocs-dimension',
3332 'section' => 'betterdocs_single_docs_settings',
3333 'settings' => 'single_content_padding_bottom_layout_8_9',
3334 'label' => __( 'Bottom', 'betterdocs' ),
3335 'priority' => 158,
3336 'input_attrs' => [
3337 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
3338 ]
3339 ] )
3340 );
3341
3342 $this->customizer->add_setting( 'single_content_padding_left_layout_8_9', [
3343 'default' => $this->defaults['single_content_padding_left_layout_8_9'],
3344 'capability' => 'edit_theme_options',
3345 'transport' => 'postMessage',
3346 'sanitize_callback' => [$this->sanitizer, 'integer']
3347 ] );
3348
3349 $this->customizer->add_control( new DimensionControl(
3350 $this->customizer, 'single_content_padding_left_layout_8_9', [
3351 'type' => 'betterdocs-dimension',
3352 'section' => 'betterdocs_single_docs_settings',
3353 'settings' => 'single_content_padding_left_layout_8_9',
3354 'label' => __( 'Left', 'betterdocs' ),
3355 'priority' => 158,
3356 'input_attrs' => [
3357 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
3358 ]
3359 ] )
3360 );
3361 }
3362
3363 public function single_content_margin_layout_8_9() {
3364 $this->customizer->add_setting( 'single_content_margin_layout_8_9', [
3365 'default' => $this->defaults['single_content_margin_layout_8_9'],
3366 'capability' => 'edit_theme_options',
3367 'transport' => 'postMessage',
3368 'sanitize_callback' => [$this->sanitizer, 'integer']
3369 ] );
3370
3371 $this->customizer->add_control( new TitleControl(
3372 $this->customizer, 'single_content_margin_layout_8_9', [
3373 'type' => 'betterdocs-title',
3374 'section' => 'betterdocs_single_docs_settings',
3375 'settings' => 'single_content_margin_layout_8_9',
3376 'label' => __( 'Margin', 'betterdocs' ),
3377 'priority' => 158,
3378 'input_attrs' => [
3379 'id' => 'single_content_margin_layout_8_9',
3380 'class' => 'betterdocs-dimension'
3381 ]
3382 ] )
3383 );
3384
3385 $this->customizer->add_setting( 'single_content_margin_top_layout_8_9', [
3386 'default' => $this->defaults['single_content_margin_top_layout_8_9'],
3387 'capability' => 'edit_theme_options',
3388 'transport' => 'postMessage',
3389 'sanitize_callback' => [$this->sanitizer, 'integer']
3390 ] );
3391
3392 $this->customizer->add_control( new DimensionControl(
3393 $this->customizer, 'single_content_margin_top_layout_8_9', [
3394 'type' => 'betterdocs-dimension',
3395 'section' => 'betterdocs_single_docs_settings',
3396 'settings' => 'single_content_margin_top_layout_8_9',
3397 'label' => __( 'Top', 'betterdocs' ),
3398 'priority' => 158,
3399 'input_attrs' => [
3400 'class' => 'single_content_margin_layout_8_9 betterdocs-dimension'
3401 ]
3402 ] )
3403 );
3404
3405 $this->customizer->add_setting( 'single_content_margin_right_layout_8_9', [
3406 'default' => $this->defaults['single_content_margin_right_layout_8_9'],
3407 'capability' => 'edit_theme_options',
3408 'transport' => 'postMessage',
3409 'sanitize_callback' => [$this->sanitizer, 'integer']
3410 ] );
3411
3412 $this->customizer->add_control( new DimensionControl(
3413 $this->customizer, 'single_content_margin_right_layout_8_9', [
3414 'type' => 'betterdocs-dimension',
3415 'section' => 'betterdocs_single_docs_settings',
3416 'settings' => 'single_content_margin_right_layout_8_9',
3417 'label' => __( 'Right', 'betterdocs' ),
3418 'priority' => 158,
3419 'input_attrs' => [
3420 'class' => 'single_content_margin_layout_8_9 betterdocs-dimension'
3421 ]
3422 ] )
3423 );
3424
3425 $this->customizer->add_setting( 'single_content_margin_bottom_layout_8_9', [
3426 'default' => $this->defaults['single_content_margin_bottom_layout_8_9'],
3427 'capability' => 'edit_theme_options',
3428 'transport' => 'postMessage',
3429 'sanitize_callback' => [$this->sanitizer, 'integer']
3430 ] );
3431
3432 $this->customizer->add_control( new DimensionControl(
3433 $this->customizer, 'single_content_margin_bottom_layout_8_9', [
3434 'type' => 'betterdocs-dimension',
3435 'section' => 'betterdocs_single_docs_settings',
3436 'settings' => 'single_content_margin_bottom_layout_8_9',
3437 'label' => __( 'Bottom', 'betterdocs' ),
3438 'priority' => 158,
3439 'input_attrs' => [
3440 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
3441 ]
3442 ] )
3443 );
3444
3445 $this->customizer->add_setting( 'single_content_margin_left_layout_8_9', [
3446 'default' => $this->defaults['single_content_margin_left_layout_8_9'],
3447 'capability' => 'edit_theme_options',
3448 'transport' => 'postMessage',
3449 'sanitize_callback' => [$this->sanitizer, 'integer']
3450 ] );
3451
3452 $this->customizer->add_control( new DimensionControl(
3453 $this->customizer, 'single_content_margin_left_layout_8_9', [
3454 'type' => 'betterdocs-dimension',
3455 'section' => 'betterdocs_single_docs_settings',
3456 'settings' => 'single_content_margin_left_layout_8_9',
3457 'label' => __( 'Left', 'betterdocs' ),
3458 'priority' => 158,
3459 'input_attrs' => [
3460 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
3461 ]
3462 ] )
3463 );
3464 }
3465
3466 public function social_share_title() {
3467 $this->customizer->add_setting( 'betterdocs_social_share_title', [
3468 'default' => '',
3469 'sanitize_callback' => 'esc_html'
3470 ] );
3471
3472 $this->customizer->add_control(
3473 new SeparatorControl(
3474 $this->customizer, 'betterdocs_social_share_title', [
3475 'label' => __( 'Social Share', 'betterdocs' ),
3476 'priority' => 164,
3477 'settings' => 'betterdocs_social_share_title',
3478 'section' => 'betterdocs_single_docs_settings'
3479 ]
3480 )
3481 );
3482 }
3483
3484 public function post_social_share() {
3485 $this->customizer->add_setting( 'betterdocs_post_social_share', [
3486 'default' => $this->defaults['betterdocs_post_social_share'],
3487 'capability' => 'edit_theme_options',
3488 'sanitize_callback' => [$this->sanitizer, 'checkbox']
3489 ] );
3490
3491 $this->customizer->add_control(
3492 new ToggleControl(
3493 $this->customizer, 'betterdocs_post_social_share', [
3494 'label' => __( 'Enable Social Sharing?', 'betterdocs' ),
3495 'priority' => 165,
3496 'section' => 'betterdocs_single_docs_settings',
3497 'settings' => 'betterdocs_post_social_share',
3498 'type' => 'light' // light, ios, flat
3499 ]
3500 )
3501 );
3502 }
3503
3504 public function social_sharing_text() {
3505 $this->customizer->add_setting( 'betterdocs_social_sharing_text', [
3506 'default' => $this->defaults['betterdocs_social_sharing_text'],
3507 'capability' => 'edit_theme_options',
3508 'sanitize_callback' => 'esc_html'
3509 ] );
3510
3511 $this->customizer->add_control(
3512 new SelectControl(
3513 $this->customizer,
3514 'betterdocs_social_sharing_text',
3515 [
3516 'label' => __( 'Social Sharing Title', 'betterdocs' ),
3517 'priority' => 166,
3518 'section' => 'betterdocs_single_docs_settings',
3519 'settings' => 'betterdocs_social_sharing_text',
3520 'type' => 'text'
3521 ]
3522 )
3523 );
3524 }
3525
3526 public function post_social_share_text_color() {
3527 $this->customizer->add_setting( 'betterdocs_post_social_share_text_color', [
3528 'default' => $this->defaults['betterdocs_post_social_share_text_color'],
3529 'capability' => 'edit_theme_options',
3530 'transport' => 'postMessage',
3531 'sanitize_callback' => [$this->sanitizer, 'rgba']
3532 ] );
3533
3534 $this->customizer->add_control(
3535 new AlphaColorControl(
3536 $this->customizer,
3537 'betterdocs_post_social_share_text_color',
3538 [
3539 'label' => __( 'Title Text Color', 'betterdocs' ),
3540 'priority' => 167,
3541 'section' => 'betterdocs_single_docs_settings',
3542 'settings' => 'betterdocs_post_social_share_text_color'
3543 ]
3544 )
3545 );
3546 }
3547
3548 public function post_social_share_text_color_layout_8_9() {
3549 $this->customizer->add_setting( 'betterdocs_post_social_share_text_color_color_layout_8_9', [
3550 'default' => $this->defaults['betterdocs_post_social_share_text_color_color_layout_8_9'],
3551 'capability' => 'edit_theme_options',
3552 'transport' => 'postMessage',
3553 'sanitize_callback' => [$this->sanitizer, 'rgba']
3554 ] );
3555
3556 $this->customizer->add_control(
3557 new AlphaColorControl(
3558 $this->customizer,
3559 'betterdocs_post_social_share_text_color_color_layout_8_9',
3560 [
3561 'label' => __( 'Title Text Color', 'betterdocs' ),
3562 'priority' => 167,
3563 'section' => 'betterdocs_single_docs_settings',
3564 'settings' => 'betterdocs_post_social_share_text_color_color_layout_8_9'
3565 ]
3566 )
3567 );
3568 }
3569
3570 public function post_social_share_margin_layout_8() {
3571 $this->customizer->add_setting( 'post_social_share_margin_layout_8', [
3572 'default' => $this->defaults['post_social_share_margin_layout_8'],
3573 'capability' => 'edit_theme_options',
3574 'transport' => 'postMessage',
3575 'sanitize_callback' => [$this->sanitizer, 'integer']
3576 ] );
3577
3578 $this->customizer->add_control( new TitleControl(
3579 $this->customizer, 'post_social_share_margin_layout_8', [
3580 'type' => 'betterdocs-title',
3581 'section' => 'betterdocs_single_docs_settings',
3582 'settings' => 'post_social_share_margin_layout_8',
3583 'label' => __( 'Margin', 'betterdocs' ),
3584 'priority' => 167,
3585 'input_attrs' => [
3586 'id' => 'post_social_share_margin_layout_8',
3587 'class' => 'betterdocs-dimension'
3588 ]
3589 ] )
3590 );
3591
3592 $this->customizer->add_setting( 'post_social_share_margin_top_layout_8', [
3593 'default' => $this->defaults['post_social_share_margin_top_layout_8'],
3594 'capability' => 'edit_theme_options',
3595 'transport' => 'postMessage',
3596 'sanitize_callback' => [$this->sanitizer, 'integer']
3597 ] );
3598
3599 $this->customizer->add_control( new DimensionControl(
3600 $this->customizer, 'post_social_share_margin_top_layout_8', [
3601 'type' => 'betterdocs-dimension',
3602 'section' => 'betterdocs_single_docs_settings',
3603 'settings' => 'post_social_share_margin_top_layout_8',
3604 'label' => __( 'Top', 'betterdocs' ),
3605 'priority' => 167,
3606 'input_attrs' => [
3607 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
3608 ]
3609 ] )
3610 );
3611
3612 $this->customizer->add_setting( 'post_social_share_margin_right_layout_8', [
3613 'default' => $this->defaults['post_social_share_margin_right_layout_8'],
3614 'capability' => 'edit_theme_options',
3615 'transport' => 'postMessage',
3616 'sanitize_callback' => [$this->sanitizer, 'integer']
3617 ] );
3618
3619 $this->customizer->add_control( new DimensionControl(
3620 $this->customizer, 'post_social_share_margin_right_layout_8', [
3621 'type' => 'betterdocs-dimension',
3622 'section' => 'betterdocs_single_docs_settings',
3623 'settings' => 'post_social_share_margin_right_layout_8',
3624 'label' => __( 'Right', 'betterdocs' ),
3625 'priority' => 167,
3626 'input_attrs' => [
3627 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
3628 ]
3629 ] )
3630 );
3631
3632 $this->customizer->add_setting( 'post_social_share_margin_bottom_layout_8', [
3633 'default' => $this->defaults['post_social_share_margin_bottom_layout_8'],
3634 'capability' => 'edit_theme_options',
3635 'transport' => 'postMessage',
3636 'sanitize_callback' => [$this->sanitizer, 'integer']
3637 ] );
3638
3639 $this->customizer->add_control( new DimensionControl(
3640 $this->customizer, 'post_social_share_margin_bottom_layout_8', [
3641 'type' => 'betterdocs-dimension',
3642 'section' => 'betterdocs_single_docs_settings',
3643 'settings' => 'post_social_share_margin_bottom_layout_8',
3644 'label' => __( 'Bottom', 'betterdocs' ),
3645 'priority' => 167,
3646 'input_attrs' => [
3647 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
3648 ]
3649 ] )
3650 );
3651
3652 $this->customizer->add_setting( 'post_social_share_margin_left_layout_8', [
3653 'default' => $this->defaults['post_social_share_margin_left_layout_8'],
3654 'capability' => 'edit_theme_options',
3655 'transport' => 'postMessage',
3656 'sanitize_callback' => [$this->sanitizer, 'integer']
3657 ] );
3658
3659 $this->customizer->add_control( new DimensionControl(
3660 $this->customizer, 'post_social_share_margin_left_layout_8', [
3661 'type' => 'betterdocs-dimension',
3662 'section' => 'betterdocs_single_docs_settings',
3663 'settings' => 'post_social_share_margin_left_layout_8',
3664 'label' => __( 'Left', 'betterdocs' ),
3665 'priority' => 167,
3666 'input_attrs' => [
3667 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
3668 ]
3669 ] )
3670 );
3671 }
3672
3673 public function post_social_share_margin_layout_9() {
3674 $this->customizer->add_setting( 'post_social_share_margin_layout_9', [
3675 'default' => $this->defaults['post_social_share_margin_layout_9'],
3676 'capability' => 'edit_theme_options',
3677 'transport' => 'postMessage',
3678 'sanitize_callback' => [$this->sanitizer, 'integer']
3679 ] );
3680
3681 $this->customizer->add_control( new TitleControl(
3682 $this->customizer, 'post_social_share_margin_layout_9', [
3683 'type' => 'betterdocs-title',
3684 'section' => 'betterdocs_single_docs_settings',
3685 'settings' => 'post_social_share_margin_layout_9',
3686 'label' => __( 'Margin', 'betterdocs' ),
3687 'priority' => 167,
3688 'input_attrs' => [
3689 'id' => 'post_social_share_margin_layout_9',
3690 'class' => 'betterdocs-dimension'
3691 ]
3692 ] )
3693 );
3694
3695 $this->customizer->add_setting( 'post_social_share_margin_top_layout_9', [
3696 'default' => $this->defaults['post_social_share_margin_top_layout_9'],
3697 'capability' => 'edit_theme_options',
3698 'transport' => 'postMessage',
3699 'sanitize_callback' => [$this->sanitizer, 'integer']
3700 ] );
3701
3702 $this->customizer->add_control( new DimensionControl(
3703 $this->customizer, 'post_social_share_margin_top_layout_9', [
3704 'type' => 'betterdocs-dimension',
3705 'section' => 'betterdocs_single_docs_settings',
3706 'settings' => 'post_social_share_margin_top_layout_9',
3707 'label' => __( 'Top', 'betterdocs' ),
3708 'priority' => 167,
3709 'input_attrs' => [
3710 'class' => 'post_social_share_margin_layout_9 betterdocs-dimension'
3711 ]
3712 ] )
3713 );
3714
3715 $this->customizer->add_setting( 'post_social_share_margin_right_layout_9', [
3716 'default' => $this->defaults['post_social_share_margin_right_layout_9'],
3717 'capability' => 'edit_theme_options',
3718 'transport' => 'postMessage',
3719 'sanitize_callback' => [$this->sanitizer, 'integer']
3720 ] );
3721
3722 $this->customizer->add_control( new DimensionControl(
3723 $this->customizer, 'post_social_share_margin_right_layout_9', [
3724 'type' => 'betterdocs-dimension',
3725 'section' => 'betterdocs_single_docs_settings',
3726 'settings' => 'post_social_share_margin_right_layout_9',
3727 'label' => __( 'Right', 'betterdocs' ),
3728 'priority' => 167,
3729 'input_attrs' => [
3730 'class' => 'post_social_share_margin_layout_9 betterdocs-dimension'
3731 ]
3732 ] )
3733 );
3734
3735 $this->customizer->add_setting( 'post_social_share_margin_bottom_layout_9', [
3736 'default' => $this->defaults['post_social_share_margin_bottom_layout_9'],
3737 'capability' => 'edit_theme_options',
3738 'transport' => 'postMessage',
3739 'sanitize_callback' => [$this->sanitizer, 'integer']
3740 ] );
3741
3742 $this->customizer->add_control( new DimensionControl(
3743 $this->customizer, 'post_social_share_margin_bottom_layout_9', [
3744 'type' => 'betterdocs-dimension',
3745 'section' => 'betterdocs_single_docs_settings',
3746 'settings' => 'post_social_share_margin_bottom_layout_9',
3747 'label' => __( 'Bottom', 'betterdocs' ),
3748 'priority' => 167,
3749 'input_attrs' => [
3750 'class' => 'post_social_share_margin_layout_9 betterdocs-dimension'
3751 ]
3752 ] )
3753 );
3754
3755 $this->customizer->add_setting( 'post_social_share_margin_left_layout_9', [
3756 'default' => $this->defaults['post_social_share_margin_left_layout_9'],
3757 'capability' => 'edit_theme_options',
3758 'transport' => 'postMessage',
3759 'sanitize_callback' => [$this->sanitizer, 'integer']
3760 ] );
3761
3762 $this->customizer->add_control( new DimensionControl(
3763 $this->customizer, 'post_social_share_margin_left_layout_9', [
3764 'type' => 'betterdocs-dimension',
3765 'section' => 'betterdocs_single_docs_settings',
3766 'settings' => 'post_social_share_margin_left_layout_9',
3767 'label' => __( 'Left', 'betterdocs' ),
3768 'priority' => 167,
3769 'input_attrs' => [
3770 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
3771 ]
3772 ] )
3773 );
3774 }
3775
3776
3777 public function post_social_share_padding_layout_8() {
3778 $this->customizer->add_setting( 'post_social_share_padding_layout_8', [
3779 'default' => $this->defaults['post_social_share_padding_layout_8'],
3780 'capability' => 'edit_theme_options',
3781 'transport' => 'postMessage',
3782 'sanitize_callback' => [$this->sanitizer, 'integer']
3783 ] );
3784
3785 $this->customizer->add_control( new TitleControl(
3786 $this->customizer, 'post_social_share_padding_layout_8', [
3787 'type' => 'betterdocs-title',
3788 'section' => 'betterdocs_single_docs_settings',
3789 'settings' => 'post_social_share_padding_layout_8',
3790 'label' => __( 'Padding', 'betterdocs' ),
3791 'priority' => 167,
3792 'input_attrs' => [
3793 'id' => 'post_social_share_padding_layout_8',
3794 'class' => 'betterdocs-dimension'
3795 ]
3796 ] )
3797 );
3798
3799 $this->customizer->add_setting( 'post_social_share_padding_top_layout_8', [
3800 'default' => $this->defaults['post_social_share_padding_top_layout_8'],
3801 'capability' => 'edit_theme_options',
3802 'transport' => 'postMessage',
3803 'sanitize_callback' => [$this->sanitizer, 'integer']
3804 ] );
3805
3806 $this->customizer->add_control( new DimensionControl(
3807 $this->customizer, 'post_social_share_padding_top_layout_8', [
3808 'type' => 'betterdocs-dimension',
3809 'section' => 'betterdocs_single_docs_settings',
3810 'settings' => 'post_social_share_padding_top_layout_8',
3811 'label' => __( 'Top', 'betterdocs' ),
3812 'priority' => 167,
3813 'input_attrs' => [
3814 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
3815 ]
3816 ] )
3817 );
3818
3819 $this->customizer->add_setting( 'post_social_share_padding_right_layout_8', [
3820 'default' => $this->defaults['post_social_share_padding_right_layout_8'],
3821 'capability' => 'edit_theme_options',
3822 'transport' => 'postMessage',
3823 'sanitize_callback' => [$this->sanitizer, 'integer']
3824 ] );
3825
3826 $this->customizer->add_control( new DimensionControl(
3827 $this->customizer, 'post_social_share_padding_right_layout_8', [
3828 'type' => 'betterdocs-dimension',
3829 'section' => 'betterdocs_single_docs_settings',
3830 'settings' => 'post_social_share_padding_right_layout_8',
3831 'label' => __( 'Right', 'betterdocs' ),
3832 'priority' => 167,
3833 'input_attrs' => [
3834 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
3835 ]
3836 ] )
3837 );
3838
3839 $this->customizer->add_setting( 'post_social_share_padding_bottom_layout_8', [
3840 'default' => $this->defaults['post_social_share_padding_bottom_layout_8'],
3841 'capability' => 'edit_theme_options',
3842 'transport' => 'postMessage',
3843 'sanitize_callback' => [$this->sanitizer, 'integer']
3844 ] );
3845
3846 $this->customizer->add_control( new DimensionControl(
3847 $this->customizer, 'post_social_share_padding_bottom_layout_8', [
3848 'type' => 'betterdocs-dimension',
3849 'section' => 'betterdocs_single_docs_settings',
3850 'settings' => 'post_social_share_padding_bottom_layout_8',
3851 'label' => __( 'Bottom', 'betterdocs' ),
3852 'priority' => 167,
3853 'input_attrs' => [
3854 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
3855 ]
3856 ] )
3857 );
3858
3859 $this->customizer->add_setting( 'post_social_share_padding_left_layout_8', [
3860 'default' => $this->defaults['post_social_share_padding_left_layout_8'],
3861 'capability' => 'edit_theme_options',
3862 'transport' => 'postMessage',
3863 'sanitize_callback' => [$this->sanitizer, 'integer']
3864 ] );
3865
3866 $this->customizer->add_control( new DimensionControl(
3867 $this->customizer, 'post_social_share_padding_left_layout_8', [
3868 'type' => 'betterdocs-dimension',
3869 'section' => 'betterdocs_single_docs_settings',
3870 'settings' => 'post_social_share_padding_left_layout_8',
3871 'label' => __( 'Left', 'betterdocs' ),
3872 'priority' => 167,
3873 'input_attrs' => [
3874 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
3875 ]
3876 ] )
3877 );
3878 }
3879
3880 public function post_social_share_padding_layout_9() {
3881 $this->customizer->add_setting( 'post_social_share_padding_layout_9', [
3882 'default' => $this->defaults['post_social_share_padding_layout_9'],
3883 'capability' => 'edit_theme_options',
3884 'transport' => 'postMessage',
3885 'sanitize_callback' => [$this->sanitizer, 'integer']
3886 ] );
3887
3888 $this->customizer->add_control( new TitleControl(
3889 $this->customizer, 'post_social_share_padding_layout_9', [
3890 'type' => 'betterdocs-title',
3891 'section' => 'betterdocs_single_docs_settings',
3892 'settings' => 'post_social_share_padding_layout_9',
3893 'label' => __( 'Padding', 'betterdocs' ),
3894 'priority' => 167,
3895 'input_attrs' => [
3896 'id' => 'post_social_share_padding_layout_9',
3897 'class' => 'betterdocs-dimension'
3898 ]
3899 ] )
3900 );
3901
3902 $this->customizer->add_setting( 'post_social_share_padding_top_layout_9', [
3903 'default' => $this->defaults['post_social_share_padding_top_layout_9'],
3904 'capability' => 'edit_theme_options',
3905 'transport' => 'postMessage',
3906 'sanitize_callback' => [$this->sanitizer, 'integer']
3907 ] );
3908
3909 $this->customizer->add_control( new DimensionControl(
3910 $this->customizer, 'post_social_share_padding_top_layout_9', [
3911 'type' => 'betterdocs-dimension',
3912 'section' => 'betterdocs_single_docs_settings',
3913 'settings' => 'post_social_share_padding_top_layout_9',
3914 'label' => __( 'Top', 'betterdocs' ),
3915 'priority' => 167,
3916 'input_attrs' => [
3917 'class' => 'post_social_share_padding_layout_9 betterdocs-dimension'
3918 ]
3919 ] )
3920 );
3921
3922 $this->customizer->add_setting( 'post_social_share_padding_right_layout_9', [
3923 'default' => $this->defaults['post_social_share_padding_right_layout_9'],
3924 'capability' => 'edit_theme_options',
3925 'transport' => 'postMessage',
3926 'sanitize_callback' => [$this->sanitizer, 'integer']
3927 ] );
3928
3929 $this->customizer->add_control( new DimensionControl(
3930 $this->customizer, 'post_social_share_padding_right_layout_9', [
3931 'type' => 'betterdocs-dimension',
3932 'section' => 'betterdocs_single_docs_settings',
3933 'settings' => 'post_social_share_padding_right_layout_9',
3934 'label' => __( 'Right', 'betterdocs' ),
3935 'priority' => 167,
3936 'input_attrs' => [
3937 'class' => 'post_social_share_padding_layout_9 betterdocs-dimension'
3938 ]
3939 ] )
3940 );
3941
3942 $this->customizer->add_setting( 'post_social_share_padding_bottom_layout_9', [
3943 'default' => $this->defaults['post_social_share_padding_bottom_layout_9'],
3944 'capability' => 'edit_theme_options',
3945 'transport' => 'postMessage',
3946 'sanitize_callback' => [$this->sanitizer, 'integer']
3947 ] );
3948
3949 $this->customizer->add_control( new DimensionControl(
3950 $this->customizer, 'post_social_share_padding_bottom_layout_9', [
3951 'type' => 'betterdocs-dimension',
3952 'section' => 'betterdocs_single_docs_settings',
3953 'settings' => 'post_social_share_padding_bottom_layout_9',
3954 'label' => __( 'Bottom', 'betterdocs' ),
3955 'priority' => 167,
3956 'input_attrs' => [
3957 'class' => 'post_social_share_padding_layout_9 betterdocs-dimension'
3958 ]
3959 ] )
3960 );
3961
3962 $this->customizer->add_setting( 'post_social_share_padding_left_layout_9', [
3963 'default' => $this->defaults['post_social_share_padding_left_layout_9'],
3964 'capability' => 'edit_theme_options',
3965 'transport' => 'postMessage',
3966 'sanitize_callback' => [$this->sanitizer, 'integer']
3967 ] );
3968
3969 $this->customizer->add_control( new DimensionControl(
3970 $this->customizer, 'post_social_share_padding_left_layout_9', [
3971 'type' => 'betterdocs-dimension',
3972 'section' => 'betterdocs_single_docs_settings',
3973 'settings' => 'post_social_share_padding_left_layout_9',
3974 'label' => __( 'Left', 'betterdocs' ),
3975 'priority' => 167,
3976 'input_attrs' => [
3977 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
3978 ]
3979 ] )
3980 );
3981 }
3982
3983 public function post_social_share_facebook() {
3984 $this->customizer->add_setting( 'betterdocs_post_social_share_facebook', [
3985 'default' => $this->defaults['betterdocs_post_social_share_facebook'],
3986 'capability' => 'edit_theme_options',
3987 'sanitize_callback' => [$this->sanitizer, 'checkbox']
3988 ] );
3989
3990 $this->customizer->add_control( new ToggleControl(
3991 $this->customizer, 'betterdocs_post_social_share_facebook', [
3992 'label' => __( 'Facebook Sharing', 'betterdocs' ),
3993 'priority' => 168,
3994 'section' => 'betterdocs_single_docs_settings',
3995 'settings' => 'betterdocs_post_social_share_facebook',
3996 'type' => 'light' // light, ios, flat
3997 ] )
3998 );
3999 }
4000
4001 public function post_social_share_twitter() {
4002 $this->customizer->add_setting( 'betterdocs_post_social_share_twitter', [
4003 'default' => $this->defaults['betterdocs_post_social_share_twitter'],
4004 'capability' => 'edit_theme_options',
4005 'sanitize_callback' => [$this->sanitizer, 'checkbox']
4006 ] );
4007
4008 $this->customizer->add_control( new ToggleControl(
4009 $this->customizer, 'betterdocs_post_social_share_twitter', [
4010 'label' => __( 'Twitter Sharing', 'betterdocs' ),
4011 'priority' => 169,
4012 'section' => 'betterdocs_single_docs_settings',
4013 'settings' => 'betterdocs_post_social_share_twitter',
4014 'type' => 'light' // light, ios, flat
4015 ] )
4016 );
4017 }
4018
4019 public function post_social_share_linkedin() {
4020 $this->customizer->add_setting( 'betterdocs_post_social_share_linkedin', [
4021 'default' => $this->defaults['betterdocs_post_social_share_linkedin'],
4022 'capability' => 'edit_theme_options',
4023 'sanitize_callback' => [$this->sanitizer, 'checkbox']
4024 ] );
4025
4026 $this->customizer->add_control( new ToggleControl( $this->customizer, 'betterdocs_post_social_share_linkedin', [
4027 'label' => __( 'Linkedin Sharing', 'betterdocs' ),
4028 'priority' => 170,
4029 'section' => 'betterdocs_single_docs_settings',
4030 'settings' => 'betterdocs_post_social_share_linkedin',
4031 'type' => 'light' // light, ios, flat
4032 ] ) );
4033 }
4034
4035 public function post_social_share_pinterest() {
4036 $this->customizer->add_setting( 'betterdocs_post_social_share_pinterest', [
4037 'default' => $this->defaults['betterdocs_post_social_share_pinterest'],
4038 'capability' => 'edit_theme_options',
4039 'sanitize_callback' => [$this->sanitizer, 'checkbox']
4040 ] );
4041
4042 $this->customizer->add_control( new ToggleControl( $this->customizer, 'betterdocs_post_social_share_pinterest', [
4043 'label' => __( 'Pinterest Sharing', 'betterdocs' ),
4044 'priority' => 171,
4045 'section' => 'betterdocs_single_docs_settings',
4046 'settings' => 'betterdocs_post_social_share_pinterest',
4047 'type' => 'light' // light, ios, flat
4048 ] ) );
4049 }
4050
4051 public function doc_single_entry_footer() {
4052 $this->customizer->add_setting( 'betterdocs_doc_single_entry_footer', [
4053 'default' => $this->defaults['betterdocs_doc_single_entry_footer'],
4054 'sanitize_callback' => 'esc_html'
4055 ] );
4056
4057 $this->customizer->add_control( new SeparatorControl(
4058 $this->customizer, 'betterdocs_doc_single_entry_footer', [
4059 'label' => __( 'Entry Footer', 'betterdocs' ),
4060 'priority' => 172,
4061 'settings' => 'betterdocs_doc_single_entry_footer',
4062 'section' => 'betterdocs_single_docs_settings'
4063 ] )
4064 );
4065 }
4066
4067 public function single_doc_feedback_icon_font_size() {
4068 $this->customizer->add_setting( 'betterdocs_single_doc_feedback_icon_font_size', [
4069 'default' => $this->defaults['betterdocs_single_doc_feedback_icon_font_size'],
4070 'capability' => 'edit_theme_options',
4071 'transport' => 'postMessage',
4072 'sanitize_callback' => [$this->sanitizer, 'integer']
4073
4074 ] );
4075
4076 $this->customizer->add_control( new RangeValueControl(
4077 $this->customizer, 'betterdocs_single_doc_feedback_icon_font_size', [
4078 'type' => 'betterdocs-range-value',
4079 'section' => 'betterdocs_single_docs_settings',
4080 'settings' => 'betterdocs_single_doc_feedback_icon_font_size',
4081 'label' => __( 'Feedback Icon Size', 'betterdocs' ),
4082 'priority' => 173,
4083 'input_attrs' => [
4084 'class' => '',
4085 'min' => 0,
4086 'max' => 100,
4087 'step' => 1,
4088 'suffix' => 'px' //optional suffix
4089 ]
4090 ] )
4091 );
4092 }
4093
4094 public function single_doc_feedback_icon() {
4095 $this->customizer->add_setting( 'betterdocs_single_doc_feedback_icon', [
4096 'default' => $this->defaults['betterdocs_single_doc_feedback_icon'],
4097 'capability' => 'edit_theme_options'
4098 ] );
4099
4100 $this->customizer->add_control( new WP_Customize_Image_Control(
4101 $this->customizer, 'betterdocs_single_doc_feedback_icon', [
4102 'section' => 'betterdocs_single_docs_settings',
4103 'settings' => 'betterdocs_single_doc_feedback_icon',
4104 'label' => __( 'Feedback Icon', 'betterdocs' ),
4105 'priority' => 173
4106 ] )
4107 );
4108 }
4109
4110 public function single_doc_feedback_link_color() {
4111 $this->customizer->add_setting( 'betterdocs_single_doc_feedback_link_color', [
4112 'default' => $this->defaults['betterdocs_single_doc_feedback_link_color'],
4113 'capability' => 'edit_theme_options',
4114 'transport' => 'postMessage',
4115 'sanitize_callback' => [$this->sanitizer, 'rgba']
4116 ] );
4117
4118 $this->customizer->add_control(
4119 new AlphaColorControl(
4120 $this->customizer,
4121 'betterdocs_single_doc_feedback_link_color',
4122 [
4123 'label' => __( 'Feedback Link Color', 'betterdocs' ),
4124 'priority' => 174,
4125 'section' => 'betterdocs_single_docs_settings',
4126 'settings' => 'betterdocs_single_doc_feedback_link_color'
4127 ]
4128 )
4129 );
4130 }
4131
4132 public function single_doc_feedback_link_hover_color() {
4133 $this->customizer->add_setting( 'betterdocs_single_doc_feedback_link_hover_color', [
4134 'default' => $this->defaults['betterdocs_single_doc_feedback_link_hover_color'],
4135 'capability' => 'edit_theme_options',
4136 'sanitize_callback' => [$this->sanitizer, 'rgba']
4137 ] );
4138
4139 $this->customizer->add_control(
4140 new AlphaColorControl(
4141 $this->customizer,
4142 'betterdocs_single_doc_feedback_link_hover_color',
4143 [
4144 'label' => __( 'Feedback Link Hover Color', 'betterdocs' ),
4145 'priority' => 175,
4146 'section' => 'betterdocs_single_docs_settings',
4147 'settings' => 'betterdocs_single_doc_feedback_link_hover_color'
4148 ]
4149 )
4150 );
4151 }
4152
4153 public function single_doc_feedback_link_font_size() {
4154 $this->customizer->add_setting( 'betterdocs_single_doc_feedback_link_font_size', [
4155 'default' => $this->defaults['betterdocs_single_doc_feedback_link_font_size'],
4156 'capability' => 'edit_theme_options',
4157 'transport' => 'postMessage',
4158 'sanitize_callback' => [$this->sanitizer, 'integer']
4159
4160 ] );
4161
4162 $this->customizer->add_control( new RangeValueControl(
4163 $this->customizer, 'betterdocs_single_doc_feedback_link_font_size', [
4164 'type' => 'betterdocs-range-value',
4165 'section' => 'betterdocs_single_docs_settings',
4166 'settings' => 'betterdocs_single_doc_feedback_link_font_size',
4167 'label' => __( 'Feedback Link Font Size', 'betterdocs' ),
4168 'priority' => 175,
4169 'input_attrs' => [
4170 'class' => '',
4171 'min' => 0,
4172 'max' => 50,
4173 'step' => 1,
4174 'suffix' => 'px' //optional suffix
4175 ]
4176 ] )
4177 );
4178 }
4179
4180 public function feedback_form_title_tag() {
4181 $this->customizer->add_setting( 'betterdocs_feedback_form_title_tag', [
4182 'default' => $this->defaults['betterdocs_feedback_form_title_tag'],
4183 'capability' => 'edit_theme_options',
4184 'sanitize_callback' => [$this->sanitizer, 'select']
4185 ] );
4186
4187 $this->customizer->add_control(
4188 new WP_Customize_Control(
4189 $this->customizer,
4190 'betterdocs_feedback_form_title_tag',
4191 [
4192 'label' => __( 'Feedback Form Title Tag', 'betterdocs' ),
4193 'section' => 'betterdocs_single_docs_settings',
4194 'settings' => 'betterdocs_feedback_form_title_tag',
4195 'priority' => 175,
4196 'type' => 'select',
4197 'choices' => [
4198 'h1' => 'h1',
4199 'h2' => 'h2',
4200 'h3' => 'h3',
4201 'h4' => 'h4',
4202 'h5' => 'h5',
4203 'h6' => 'h6',
4204 'p' => 'p'
4205 ]
4206 ]
4207 )
4208 );
4209 }
4210
4211 public function single_doc_feedback_title_font_size() {
4212 $this->customizer->add_setting( 'betterdocs_single_doc_feedback_title_font_size', [
4213 'default' => $this->defaults['betterdocs_single_doc_feedback_title_font_size'],
4214 'capability' => 'edit_theme_options',
4215 'transport' => 'postMessage',
4216 'sanitize_callback' => [$this->sanitizer, 'integer']
4217
4218 ] );
4219
4220 $this->customizer->add_control( new RangeValueControl(
4221 $this->customizer, 'betterdocs_single_doc_feedback_title_font_size', [
4222 'type' => 'betterdocs-range-value',
4223 'section' => 'betterdocs_single_docs_settings',
4224 'settings' => 'betterdocs_single_doc_feedback_title_font_size',
4225 'label' => __( 'Feedback Form Title Font Size', 'betterdocs' ),
4226 'priority' => 175,
4227 'input_attrs' => [
4228 'class' => '',
4229 'min' => 0,
4230 'max' => 100,
4231 'step' => 1,
4232 'suffix' => 'px' //optional suffix
4233 ]
4234 ] )
4235 );
4236 }
4237
4238 public function single_doc_feedback_title_color() {
4239 $this->customizer->add_setting( 'betterdocs_single_doc_feedback_title_color', [
4240 'default' => $this->defaults['betterdocs_single_doc_feedback_title_color'],
4241 'capability' => 'edit_theme_options',
4242 'transport' => 'postMessage',
4243 'sanitize_callback' => [$this->sanitizer, 'rgba']
4244 ] );
4245
4246 $this->customizer->add_control(
4247 new AlphaColorControl(
4248 $this->customizer,
4249 'betterdocs_single_doc_feedback_title_color',
4250 [
4251 'label' => __( 'Feedback Form Title Color', 'betterdocs' ),
4252 'priority' => 175,
4253 'section' => 'betterdocs_single_docs_settings',
4254 'settings' => 'betterdocs_single_doc_feedback_title_color'
4255 ]
4256 )
4257 );
4258 }
4259
4260 public function single_doc_navigation_color() {
4261 $this->customizer->add_setting( 'betterdocs_single_doc_navigation_color', [
4262 'default' => $this->defaults['betterdocs_single_doc_navigation_color'],
4263 'capability' => 'edit_theme_options',
4264 'transport' => 'postMessage',
4265 'sanitize_callback' => [$this->sanitizer, 'rgba']
4266 ] );
4267
4268 $this->customizer->add_control(
4269 new AlphaColorControl(
4270 $this->customizer,
4271 'betterdocs_single_doc_navigation_color',
4272 [
4273 'label' => __( 'Navigation Color', 'betterdocs' ),
4274 'priority' => 177,
4275 'section' => 'betterdocs_single_docs_settings',
4276 'settings' => 'betterdocs_single_doc_navigation_color'
4277 ]
4278 )
4279 );
4280 }
4281
4282 public function single_doc_navigation_font_size() {
4283 $this->customizer->add_setting( 'betterdocs_single_doc_navigation_font_size', [
4284 'default' => $this->defaults['betterdocs_single_doc_navigation_font_size'],
4285 'capability' => 'edit_theme_options',
4286 'transport' => 'postMessage',
4287 'sanitize_callback' => [$this->sanitizer, 'integer']
4288
4289 ] );
4290
4291 $this->customizer->add_control( new RangeValueControl(
4292 $this->customizer, 'betterdocs_single_doc_navigation_font_size', [
4293 'type' => 'betterdocs-range-value',
4294 'section' => 'betterdocs_single_docs_settings',
4295 'settings' => 'betterdocs_single_doc_navigation_font_size',
4296 'label' => __( 'Navigation Font Size', 'betterdocs' ),
4297 'priority' => 178,
4298 'input_attrs' => [
4299 'class' => '',
4300 'min' => 0,
4301 'max' => 50,
4302 'step' => 1,
4303 'suffix' => 'px' //optional suffix
4304 ]
4305 ] )
4306 );
4307 }
4308
4309 public function single_doc_navigation_hover_color() {
4310 $this->customizer->add_setting( 'betterdocs_single_doc_navigation_hover_color', [
4311 'default' => $this->defaults['betterdocs_single_doc_navigation_hover_color'],
4312 'capability' => 'edit_theme_options',
4313 'sanitize_callback' => [$this->sanitizer, 'rgba']
4314 ] );
4315
4316 $this->customizer->add_control(
4317 new AlphaColorControl(
4318 $this->customizer,
4319 'betterdocs_single_doc_navigation_hover_color',
4320 [
4321 'label' => __( 'Navigation Hover Color', 'betterdocs' ),
4322 'priority' => 179,
4323 'section' => 'betterdocs_single_docs_settings',
4324 'settings' => 'betterdocs_single_doc_navigation_hover_color'
4325 ]
4326 )
4327 );
4328 }
4329
4330 public function single_doc_navigation_arrow_color() {
4331 $this->customizer->add_setting( 'betterdocs_single_doc_navigation_arrow_color', [
4332 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_color'],
4333 'capability' => 'edit_theme_options',
4334 'transport' => 'postMessage',
4335 'sanitize_callback' => [$this->sanitizer, 'rgba']
4336 ] );
4337
4338 $this->customizer->add_control(
4339 new AlphaColorControl(
4340 $this->customizer,
4341 'betterdocs_single_doc_navigation_arrow_color',
4342 [
4343 'label' => __( 'Navigation Arrow Color', 'betterdocs' ),
4344 'priority' => 180,
4345 'section' => 'betterdocs_single_docs_settings',
4346 'settings' => 'betterdocs_single_doc_navigation_arrow_color'
4347 ]
4348 )
4349 );
4350 }
4351
4352 public function single_doc_navigation_arrow_font_size() {
4353 $this->customizer->add_setting( 'betterdocs_single_doc_navigation_arrow_font_size', [
4354 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_font_size'],
4355 'capability' => 'edit_theme_options',
4356 'transport' => 'postMessage',
4357 'sanitize_callback' => [$this->sanitizer, 'integer']
4358
4359 ] );
4360
4361 $this->customizer->add_control( new RangeValueControl(
4362 $this->customizer, 'betterdocs_single_doc_navigation_arrow_font_size', [
4363 'type' => 'betterdocs-range-value',
4364 'section' => 'betterdocs_single_docs_settings',
4365 'settings' => 'betterdocs_single_doc_navigation_arrow_font_size',
4366 'label' => __( 'Navigation Arrow Font Size', 'betterdocs' ),
4367 'priority' => 181,
4368 'input_attrs' => [
4369 'class' => '',
4370 'min' => 0,
4371 'max' => 50,
4372 'step' => 1,
4373 'suffix' => 'px' //optional suffix
4374 ]
4375 ] )
4376 );
4377 }
4378
4379 public function single_doc_navigation_color_layout_8_9() {
4380 $this->customizer->add_setting( 'betterdocs_single_doc_navigation_color_layout_8_9', [
4381 'default' => $this->defaults['betterdocs_single_doc_navigation_color_layout_8_9'],
4382 'capability' => 'edit_theme_options',
4383 'transport' => 'postMessage',
4384 'sanitize_callback' => [$this->sanitizer, 'rgba']
4385 ] );
4386
4387 $this->customizer->add_control(
4388 new AlphaColorControl(
4389 $this->customizer,
4390 'betterdocs_single_doc_navigation_color_layout_8_9',
4391 [
4392 'label' => __( 'Navigation Color', 'betterdocs' ),
4393 'priority' => 177,
4394 'section' => 'betterdocs_single_docs_settings',
4395 'settings' => 'betterdocs_single_doc_navigation_color_layout_8_9'
4396 ]
4397 )
4398 );
4399 }
4400
4401 public function single_doc_navigation_font_size_layout_8_9() {
4402 $this->customizer->add_setting( 'betterdocs_single_doc_navigation_font_size_layout_8_9', [
4403 'default' => $this->defaults['betterdocs_single_doc_navigation_font_size_layout_8_9'],
4404 'capability' => 'edit_theme_options',
4405 'transport' => 'postMessage',
4406 'sanitize_callback' => [$this->sanitizer, 'integer']
4407
4408 ] );
4409
4410 $this->customizer->add_control( new RangeValueControl(
4411 $this->customizer, 'betterdocs_single_doc_navigation_font_size_layout_8_9', [
4412 'type' => 'betterdocs-range-value',
4413 'section' => 'betterdocs_single_docs_settings',
4414 'settings' => 'betterdocs_single_doc_navigation_font_size_layout_8_9',
4415 'label' => __( 'Navigation Font Size', 'betterdocs' ),
4416 'priority' => 178,
4417 'input_attrs' => [
4418 'class' => '',
4419 'min' => 0,
4420 'max' => 50,
4421 'step' => 1,
4422 'suffix' => 'px' //optional suffix
4423 ]
4424 ] )
4425 );
4426 }
4427
4428 public function single_doc_navigation_hover_color_layout_8_9() {
4429 $this->customizer->add_setting( 'betterdocs_single_doc_navigation_hover_color_layout_8_9', [
4430 'default' => $this->defaults['betterdocs_single_doc_navigation_hover_color_layout_8_9'],
4431 'capability' => 'edit_theme_options',
4432 'sanitize_callback' => [$this->sanitizer, 'rgba']
4433 ] );
4434
4435 $this->customizer->add_control(
4436 new AlphaColorControl(
4437 $this->customizer,
4438 'betterdocs_single_doc_navigation_hover_color_layout_8_9',
4439 [
4440 'label' => __( 'Navigation Hover Color', 'betterdocs' ),
4441 'priority' => 179,
4442 'section' => 'betterdocs_single_docs_settings',
4443 'settings' => 'betterdocs_single_doc_navigation_hover_color_layout_8_9'
4444 ]
4445 )
4446 );
4447 }
4448
4449 public function single_doc_navigation_arrow_color_layout_8_9() {
4450 $this->customizer->add_setting( 'betterdocs_single_doc_navigation_arrow_color_layout_8_9', [
4451 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_color_layout_8_9'],
4452 'capability' => 'edit_theme_options',
4453 'transport' => 'postMessage',
4454 'sanitize_callback' => [$this->sanitizer, 'rgba']
4455 ] );
4456
4457 $this->customizer->add_control(
4458 new AlphaColorControl(
4459 $this->customizer,
4460 'betterdocs_single_doc_navigation_arrow_color_layout_8_9',
4461 [
4462 'label' => __( 'Navigation Arrow Color', 'betterdocs' ),
4463 'priority' => 180,
4464 'section' => 'betterdocs_single_docs_settings',
4465 'settings' => 'betterdocs_single_doc_navigation_arrow_color_layout_8_9'
4466 ]
4467 )
4468 );
4469 }
4470
4471 public function single_doc_navigation_arrow_font_size_layout_8_9() {
4472 $this->customizer->add_setting( 'betterdocs_single_doc_navigation_arrow_font_size_layout_8_9', [
4473 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_font_size_layout_8_9'],
4474 'capability' => 'edit_theme_options',
4475 'transport' => 'postMessage',
4476 'sanitize_callback' => [$this->sanitizer, 'integer']
4477
4478 ] );
4479
4480 $this->customizer->add_control( new RangeValueControl(
4481 $this->customizer, 'betterdocs_single_doc_navigation_arrow_font_size_layout_8_9', [
4482 'type' => 'betterdocs-range-value',
4483 'section' => 'betterdocs_single_docs_settings',
4484 'settings' => 'betterdocs_single_doc_navigation_arrow_font_size_layout_8_9',
4485 'label' => __( 'Navigation Arrow Font Size', 'betterdocs' ),
4486 'priority' => 181,
4487 'input_attrs' => [
4488 'class' => '',
4489 'min' => 0,
4490 'max' => 50,
4491 'step' => 1,
4492 'suffix' => 'px' //optional suffix
4493 ]
4494 ] )
4495 );
4496 }
4497
4498 public function betterdocs_single_doc_lu_time_color() {
4499 $this->customizer->add_setting( 'betterdocs_single_doc_lu_time_color', [
4500 'default' => $this->defaults['betterdocs_single_doc_lu_time_color'],
4501 'capability' => 'edit_theme_options',
4502 'transport' => 'postMessage',
4503 'sanitize_callback' => [$this->sanitizer, 'rgba']
4504 ] );
4505
4506 $this->customizer->add_control(
4507 new AlphaColorControl(
4508 $this->customizer,
4509 'betterdocs_single_doc_lu_time_color',
4510 [
4511 'label' => __( 'Last Updated Time Color', 'betterdocs' ),
4512 'priority' => 182,
4513 'section' => 'betterdocs_single_docs_settings',
4514 'settings' => 'betterdocs_single_doc_lu_time_color'
4515 ]
4516 )
4517 );
4518 }
4519
4520 public function single_doc_lu_time_font_size() {
4521 $this->customizer->add_setting( 'betterdocs_single_doc_lu_time_font_size', [
4522 'default' => $this->defaults['betterdocs_single_doc_lu_time_font_size'],
4523 'capability' => 'edit_theme_options',
4524 'transport' => 'postMessage',
4525 'sanitize_callback' => [$this->sanitizer, 'integer']
4526
4527 ] );
4528
4529 $this->customizer->add_control( new RangeValueControl(
4530 $this->customizer, 'betterdocs_single_doc_lu_time_font_size', [
4531 'type' => 'betterdocs-range-value',
4532 'section' => 'betterdocs_single_docs_settings',
4533 'settings' => 'betterdocs_single_doc_lu_time_font_size',
4534 'label' => __( 'Last Updated Time Font Size', 'betterdocs' ),
4535 'priority' => 183,
4536 'input_attrs' => [
4537 'class' => '',
4538 'min' => 0,
4539 'max' => 50,
4540 'step' => 1,
4541 'suffix' => 'px' //optional suffix
4542 ]
4543 ] )
4544 );
4545 }
4546
4547
4548
4549 public function single_doc_powered_by_color() {
4550 $this->customizer->add_setting( 'betterdocs_single_doc_powered_by_color', [
4551 'default' => $this->defaults['betterdocs_single_doc_powered_by_color'],
4552 'capability' => 'edit_theme_options',
4553 'transport' => 'postMessage',
4554 'sanitize_callback' => [$this->sanitizer, 'rgba']
4555 ] );
4556
4557 $this->customizer->add_control(
4558 new AlphaColorControl(
4559 $this->customizer,
4560 'betterdocs_single_doc_powered_by_color',
4561 [
4562 'label' => __( 'Powered by Color', 'betterdocs' ),
4563 'priority' => 184,
4564 'section' => 'betterdocs_single_docs_settings',
4565 'settings' => 'betterdocs_single_doc_powered_by_color'
4566 ]
4567 )
4568 );
4569 }
4570
4571 public function single_doc_powered_by_font_size() {
4572 $this->customizer->add_setting( 'betterdocs_single_doc_powered_by_font_size', [
4573 'default' => $this->defaults['betterdocs_single_doc_powered_by_font_size'],
4574 'capability' => 'edit_theme_options',
4575 'transport' => 'postMessage',
4576 'sanitize_callback' => [$this->sanitizer, 'integer']
4577
4578 ] );
4579
4580 $this->customizer->add_control( new RangeValueControl(
4581 $this->customizer, 'betterdocs_single_doc_powered_by_font_size', [
4582 'type' => 'betterdocs-range-value',
4583 'section' => 'betterdocs_single_docs_settings',
4584 'settings' => 'betterdocs_single_doc_powered_by_font_size',
4585 'label' => __( 'Powered By Font Size', 'betterdocs' ),
4586 'priority' => 185,
4587 'input_attrs' => [
4588 'class' => '',
4589 'min' => 0,
4590 'max' => 50,
4591 'step' => 1,
4592 'suffix' => 'px' //optional suffix
4593 ]
4594 ] )
4595 );
4596 }
4597
4598 public function single_doc_powered_by_link_color() {
4599 $this->customizer->add_setting( 'betterdocs_single_doc_powered_by_link_color', [
4600 'default' => $this->defaults['betterdocs_single_doc_powered_by_link_color'],
4601 'capability' => 'edit_theme_options',
4602 'transport' => 'postMessage',
4603 'sanitize_callback' => [$this->sanitizer, 'rgba']
4604 ] );
4605
4606 $this->customizer->add_control(
4607 new AlphaColorControl(
4608 $this->customizer,
4609 'betterdocs_single_doc_powered_by_link_color',
4610 [
4611 'label' => __( 'Powered By Link Color', 'betterdocs' ),
4612 'priority' => 186,
4613 'section' => 'betterdocs_single_docs_settings',
4614 'settings' => 'betterdocs_single_doc_powered_by_link_color'
4615 ]
4616 )
4617 );
4618 }
4619
4620 public function reactions_title() {
4621 $this->customizer->add_setting( 'betterdocs_reactions_title', [
4622 'default' => '',
4623 'sanitize_callback' => 'esc_html'
4624 ] );
4625
4626 $this->customizer->add_control( new SeparatorControl(
4627 $this->customizer, 'betterdocs_reactions_title', [
4628 'label' => __( 'Reactions', 'betterdocs' ),
4629 'priority' => 159,
4630 'settings' => 'betterdocs_reactions_title',
4631 'section' => 'betterdocs_single_docs_settings'
4632 ] )
4633 );
4634 }
4635
4636 public function post_reactions() {
4637 $this->customizer->add_setting( 'betterdocs_post_reactions', [
4638 'default' => $this->defaults['betterdocs_post_reactions'],
4639 'capability' => 'edit_theme_options',
4640 'sanitize_callback' => [$this->sanitizer, 'checkbox']
4641 ] );
4642
4643 $this->customizer->add_control( new ToggleControl(
4644 $this->customizer, 'betterdocs_post_reactions', [
4645 'label' => __( 'Enable Reactions?', 'betterdocs' ),
4646 'priority' => 160,
4647 'section' => 'betterdocs_single_docs_settings',
4648 'settings' => 'betterdocs_post_reactions',
4649 'type' => 'light' // light, ios, flat
4650 ] )
4651 );
4652 }
4653
4654 public function post_reactions_happy() {
4655 $this->customizer->add_setting( 'betterdocs_post_reactions_happy', [
4656 'default' => $this->defaults['betterdocs_post_reactions_happy'],
4657 'capability' => 'edit_theme_options',
4658 'sanitize_callback' => [$this->sanitizer, 'checkbox']
4659 ] );
4660
4661 $this->customizer->add_control( new ToggleControl(
4662 $this->customizer, 'betterdocs_post_reactions_happy', [
4663 'label' => __( 'Enable Happy?', 'betterdocs' ),
4664 'priority' => 160,
4665 'section' => 'betterdocs_single_docs_settings',
4666 'settings' => 'betterdocs_post_reactions_happy',
4667 'type' => 'light' // light, ios, flat
4668 ] )
4669 );
4670 }
4671
4672 public function post_reactions_happy_icon() {
4673 $this->customizer->add_setting( 'betterdocs_post_reactions_happy_icon', [
4674 'default' => $this->defaults['betterdocs_post_reactions_happy_icon'],
4675 'capability' => 'edit_theme_options'
4676
4677 ] );
4678
4679 $this->customizer->add_control(
4680 new WP_Customize_Image_Control(
4681 $this->customizer, 'betterdocs_post_reactions_happy_icon', [
4682 'section' => 'betterdocs_single_docs_settings',
4683 'settings' => 'betterdocs_post_reactions_happy_icon',
4684 'label' => __( 'Happy Icon', 'betterdocs' ),
4685 'priority' => 160
4686 ]
4687 )
4688 );
4689 }
4690
4691 public function post_reactions_normal() {
4692 $this->customizer->add_setting( 'betterdocs_post_reactions_normal', [
4693 'default' => $this->defaults['betterdocs_post_reactions_normal'],
4694 'capability' => 'edit_theme_options',
4695 'sanitize_callback' => [$this->sanitizer, 'checkbox']
4696 ] );
4697
4698 $this->customizer->add_control( new ToggleControl(
4699 $this->customizer, 'betterdocs_post_reactions_normal', [
4700 'label' => __( 'Enable Normal?', 'betterdocs' ),
4701 'priority' => 160,
4702 'section' => 'betterdocs_single_docs_settings',
4703 'settings' => 'betterdocs_post_reactions_normal',
4704 'type' => 'light' // light, ios, flat
4705 ] )
4706 );
4707 }
4708
4709 public function post_reactions_normal_icon() {
4710 $this->customizer->add_setting( 'betterdocs_post_reactions_normal_icon', [
4711 'default' => $this->defaults['betterdocs_post_reactions_normal_icon'],
4712 'capability' => 'edit_theme_options'
4713
4714 ] );
4715
4716 $this->customizer->add_control(
4717 new WP_Customize_Image_Control(
4718 $this->customizer, 'betterdocs_post_reactions_normal_icon', [
4719 'section' => 'betterdocs_single_docs_settings',
4720 'settings' => 'betterdocs_post_reactions_normal_icon',
4721 'label' => __( 'Normal Icon', 'betterdocs' ),
4722 'priority' => 160
4723 ]
4724 )
4725 );
4726 }
4727
4728 public function post_reactions_sad() {
4729 $this->customizer->add_setting( 'betterdocs_post_reactions_sad', [
4730 'default' => $this->defaults['betterdocs_post_reactions_sad'],
4731 'capability' => 'edit_theme_options',
4732 'sanitize_callback' => [$this->sanitizer, 'checkbox']
4733 ] );
4734
4735 $this->customizer->add_control( new ToggleControl(
4736 $this->customizer, 'betterdocs_post_reactions_sad', [
4737 'label' => __( 'Enable Sad?', 'betterdocs' ),
4738 'priority' => 160,
4739 'section' => 'betterdocs_single_docs_settings',
4740 'settings' => 'betterdocs_post_reactions_sad',
4741 'type' => 'light' // light, ios, flat
4742 ] )
4743 );
4744 }
4745
4746 public function post_reactions_sad_icon() {
4747 $this->customizer->add_setting( 'betterdocs_post_reactions_sad_icon', [
4748 'default' => $this->defaults['betterdocs_post_reactions_sad_icon'],
4749 'capability' => 'edit_theme_options'
4750
4751 ] );
4752
4753 $this->customizer->add_control(
4754 new WP_Customize_Image_Control(
4755 $this->customizer, 'betterdocs_post_reactions_sad_icon', [
4756 'section' => 'betterdocs_single_docs_settings',
4757 'settings' => 'betterdocs_post_reactions_sad_icon',
4758 'label' => __( 'Sad Icon', 'betterdocs' ),
4759 'priority' => 160
4760 ]
4761 )
4762 );
4763 }
4764
4765 public function post_reactions_text() {
4766 $this->customizer->add_setting( 'betterdocs_post_reactions_text', [
4767 'default' => $this->defaults['betterdocs_post_reactions_text'],
4768 'capability' => 'edit_theme_options',
4769 'sanitize_callback' => 'esc_html'
4770 ] );
4771
4772 $this->customizer->add_control(
4773 new SelectControl(
4774 $this->customizer,
4775 'betterdocs_post_reactions_text',
4776 [
4777 'label' => __( 'Reactions Title', 'betterdocs' ),
4778 'priority' => 161,
4779 'section' => 'betterdocs_single_docs_settings',
4780 'settings' => 'betterdocs_post_reactions_text',
4781 'type' => 'text'
4782 ]
4783 )
4784 );
4785 }
4786
4787 public function post_reactions_text_2() {
4788 $this->customizer->add_setting( 'betterdocs_post_reactions_text_2', [
4789 'default' => $this->defaults['betterdocs_post_reactions_text_2'],
4790 'capability' => 'edit_theme_options',
4791 'sanitize_callback' => 'esc_html'
4792 ] );
4793
4794 $this->customizer->add_control(
4795 new SelectControl(
4796 $this->customizer,
4797 'betterdocs_post_reactions_text_2',
4798 [
4799 'label' => __( 'Reactions Title', 'betterdocs' ),
4800 'priority' => 161,
4801 'section' => 'betterdocs_single_docs_settings',
4802 'settings' => 'betterdocs_post_reactions_text_2',
4803 'type' => 'text'
4804 ]
4805 )
4806 );
4807 }
4808
4809 public function reactions_background_color() {
4810 $this->customizer->add_setting( 'reactions_background_color', [
4811 'default' => $this->defaults['reactions_background_color'],
4812 'capability' => 'edit_theme_options',
4813 'transport' => 'postMessage',
4814 'sanitize_callback' => [$this->sanitizer, 'rgba']
4815 ] );
4816
4817 $this->customizer->add_control(
4818 new AlphaColorControl(
4819 $this->customizer,
4820 'reactions_background_color',
4821 [
4822 'label' => __( 'Reactions Background Color', 'betterdocs' ),
4823 'priority' => 162,
4824 'section' => 'betterdocs_single_docs_settings',
4825 'settings' => 'reactions_background_color'
4826 ]
4827 )
4828 );
4829 }
4830
4831 public function post_reactions_text_color() {
4832 $this->customizer->add_setting( 'betterdocs_post_reactions_text_color', [
4833 'default' => $this->defaults['betterdocs_post_reactions_text_color'],
4834 'capability' => 'edit_theme_options',
4835 'transport' => 'postMessage',
4836 'sanitize_callback' => [$this->sanitizer, 'rgba']
4837 ] );
4838
4839 $this->customizer->add_control(
4840 new AlphaColorControl(
4841 $this->customizer,
4842 'betterdocs_post_reactions_text_color',
4843 [
4844 'label' => __( 'Reactions Text Color', 'betterdocs' ),
4845 'priority' => 162,
4846 'section' => 'betterdocs_single_docs_settings',
4847 'settings' => 'betterdocs_post_reactions_text_color'
4848 ]
4849 )
4850 );
4851 }
4852
4853 public function post_reactions_icon_color() {
4854 $this->customizer->add_setting( 'betterdocs_post_reactions_icon_color', [
4855 'default' => $this->defaults['betterdocs_post_reactions_icon_color'],
4856 'capability' => 'edit_theme_options',
4857 'transport' => 'postMessage',
4858 'sanitize_callback' => [$this->sanitizer, 'rgba']
4859 ] );
4860
4861 $this->customizer->add_control(
4862 new AlphaColorControl(
4863 $this->customizer,
4864 'betterdocs_post_reactions_icon_color',
4865 [
4866 'label' => __( 'Reactions Icon Background Color', 'betterdocs' ),
4867 'priority' => 163,
4868 'section' => 'betterdocs_single_docs_settings',
4869 'settings' => 'betterdocs_post_reactions_icon_color'
4870 ]
4871 )
4872 );
4873 }
4874
4875 public function post_reactions_icon_svg_color() {
4876 $this->customizer->add_setting( 'betterdocs_post_reactions_icon_svg_color', [
4877 'default' => $this->defaults['betterdocs_post_reactions_icon_svg_color'],
4878 'capability' => 'edit_theme_options',
4879 'transport' => 'postMessage',
4880 'sanitize_callback' => [$this->sanitizer, 'rgba']
4881 ] );
4882
4883 $this->customizer->add_control(
4884 new AlphaColorControl(
4885 $this->customizer,
4886 'betterdocs_post_reactions_icon_svg_color',
4887 [
4888 'label' => __( 'Reactions Icon Color', 'betterdocs' ),
4889 'priority' => 163,
4890 'section' => 'betterdocs_single_docs_settings',
4891 'settings' => 'betterdocs_post_reactions_icon_svg_color'
4892 ]
4893 )
4894 );
4895 }
4896
4897 public function post_reactions_icon_hover_bg_color() {
4898 $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_bg_color', [
4899 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_bg_color'],
4900 'capability' => 'edit_theme_options',
4901 'sanitize_callback' => [$this->sanitizer, 'rgba']
4902 ] );
4903
4904 $this->customizer->add_control(
4905 new AlphaColorControl(
4906 $this->customizer,
4907 'betterdocs_post_reactions_icon_hover_bg_color',
4908 [
4909 'label' => __( 'Reactions Icon Hover Background Color', 'betterdocs' ),
4910 'priority' => 163,
4911 'section' => 'betterdocs_single_docs_settings',
4912 'settings' => 'betterdocs_post_reactions_icon_hover_bg_color'
4913 ]
4914 )
4915 );
4916 }
4917
4918 public function post_reactions_icon_hover_svg_color() {
4919 $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_svg_color', [
4920 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_svg_color'],
4921 'capability' => 'edit_theme_options',
4922 'sanitize_callback' => [$this->sanitizer, 'rgba']
4923 ] );
4924
4925 $this->customizer->add_control(
4926 new AlphaColorControl(
4927 $this->customizer,
4928 'betterdocs_post_reactions_icon_hover_svg_color',
4929 [
4930 'label' => __( 'Reactions Icon Hover Color', 'betterdocs' ),
4931 'priority' => 163,
4932 'section' => 'betterdocs_single_docs_settings',
4933 'settings' => 'betterdocs_post_reactions_icon_hover_svg_color'
4934 ]
4935 )
4936 );
4937 }
4938
4939 public function reactions_background_color_layout_8() {
4940 $this->customizer->add_setting( 'reactions_background_color_layout_8', [
4941 'default' => $this->defaults['reactions_background_color_layout_8'],
4942 'capability' => 'edit_theme_options',
4943 'transport' => 'postMessage',
4944 'sanitize_callback' => [$this->sanitizer, 'rgba']
4945 ] );
4946
4947 $this->customizer->add_control(
4948 new AlphaColorControl(
4949 $this->customizer,
4950 'reactions_background_color_layout_8',
4951 [
4952 'label' => __( 'Reactions Background Color', 'betterdocs' ),
4953 'priority' => 162,
4954 'section' => 'betterdocs_single_docs_settings',
4955 'settings' => 'reactions_background_color_layout_8'
4956 ]
4957 )
4958 );
4959 }
4960
4961 public function reactions_background_color_layout_9() {
4962 $this->customizer->add_setting( 'reactions_background_color_layout_9', [
4963 'default' => $this->defaults['reactions_background_color_layout_9'],
4964 'capability' => 'edit_theme_options',
4965 'transport' => 'postMessage',
4966 'sanitize_callback' => [$this->sanitizer, 'rgba']
4967 ] );
4968
4969 $this->customizer->add_control(
4970 new AlphaColorControl(
4971 $this->customizer,
4972 'reactions_background_color_layout_9',
4973 [
4974 'label' => __( 'Reactions Background Color', 'betterdocs' ),
4975 'priority' => 162,
4976 'section' => 'betterdocs_single_docs_settings',
4977 'settings' => 'reactions_background_color_layout_9'
4978 ]
4979 )
4980 );
4981 }
4982
4983 public function post_reactions_text_color_layout_8_9() {
4984 $this->customizer->add_setting( 'betterdocs_post_reactions_text_color_layout_8_9', [
4985 'default' => $this->defaults['betterdocs_post_reactions_text_color_layout_8_9'],
4986 'capability' => 'edit_theme_options',
4987 'transport' => 'postMessage',
4988 'sanitize_callback' => [$this->sanitizer, 'rgba']
4989 ] );
4990
4991 $this->customizer->add_control(
4992 new AlphaColorControl(
4993 $this->customizer,
4994 'betterdocs_post_reactions_text_color_layout_8_9',
4995 [
4996 'label' => __( 'Reactions Text Color', 'betterdocs' ),
4997 'priority' => 162,
4998 'section' => 'betterdocs_single_docs_settings',
4999 'settings' => 'betterdocs_post_reactions_text_color_layout_8_9'
5000 ]
5001 )
5002 );
5003 }
5004
5005 public function post_reactions_icon_color_layout_8_9() {
5006 $this->customizer->add_setting( 'betterdocs_post_reactions_icon_color_layout_8_9', [
5007 'default' => $this->defaults['betterdocs_post_reactions_icon_color_layout_8_9'],
5008 'capability' => 'edit_theme_options',
5009 'transport' => 'postMessage',
5010 'sanitize_callback' => [$this->sanitizer, 'rgba']
5011 ] );
5012
5013 $this->customizer->add_control(
5014 new AlphaColorControl(
5015 $this->customizer,
5016 'betterdocs_post_reactions_icon_color_layout_8_9',
5017 [
5018 'label' => __( 'Reactions Icon Background Color', 'betterdocs' ),
5019 'priority' => 163,
5020 'section' => 'betterdocs_single_docs_settings',
5021 'settings' => 'betterdocs_post_reactions_icon_color_layout_8_9'
5022 ]
5023 )
5024 );
5025 }
5026
5027 public function post_reactions_margin_layout_8() {
5028 $this->customizer->add_setting( 'post_reactions_margin_layout_8', [
5029 'default' => $this->defaults['post_reactions_margin_layout_8'],
5030 'capability' => 'edit_theme_options',
5031 'transport' => 'postMessage',
5032 'sanitize_callback' => [$this->sanitizer, 'integer']
5033 ] );
5034
5035 $this->customizer->add_control( new TitleControl(
5036 $this->customizer, 'post_reactions_margin_layout_8', [
5037 'type' => 'betterdocs-title',
5038 'section' => 'betterdocs_single_docs_settings',
5039 'settings' => 'post_reactions_margin_layout_8',
5040 'label' => __( 'Margin', 'betterdocs' ),
5041 'priority' => 163,
5042 'input_attrs' => [
5043 'id' => 'post_reactions_margin_layout_8',
5044 'class' => 'betterdocs-dimension'
5045 ]
5046 ] )
5047 );
5048
5049 $this->customizer->add_setting( 'post_reactions_margin_top_layout_8', [
5050 'default' => $this->defaults['post_reactions_margin_top_layout_8'],
5051 'capability' => 'edit_theme_options',
5052 'transport' => 'postMessage',
5053 'sanitize_callback' => [$this->sanitizer, 'integer']
5054 ] );
5055
5056 $this->customizer->add_control( new DimensionControl(
5057 $this->customizer, 'post_reactions_margin_top_layout_8', [
5058 'type' => 'betterdocs-dimension',
5059 'section' => 'betterdocs_single_docs_settings',
5060 'settings' => 'post_reactions_margin_top_layout_8',
5061 'label' => __( 'Top', 'betterdocs' ),
5062 'priority' => 163,
5063 'input_attrs' => [
5064 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
5065 ]
5066 ] )
5067 );
5068
5069 $this->customizer->add_setting( 'post_reactions_margin_right_layout_8', [
5070 'default' => $this->defaults['post_reactions_margin_right_layout_8'],
5071 'capability' => 'edit_theme_options',
5072 'transport' => 'postMessage',
5073 'sanitize_callback' => [$this->sanitizer, 'integer']
5074 ] );
5075
5076 $this->customizer->add_control( new DimensionControl(
5077 $this->customizer, 'post_reactions_margin_right_layout_8', [
5078 'type' => 'betterdocs-dimension',
5079 'section' => 'betterdocs_single_docs_settings',
5080 'settings' => 'post_reactions_margin_right_layout_8',
5081 'label' => __( 'Right', 'betterdocs' ),
5082 'priority' => 163,
5083 'input_attrs' => [
5084 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
5085 ]
5086 ] )
5087 );
5088
5089 $this->customizer->add_setting( 'post_reactions_margin_bottom_layout_8', [
5090 'default' => $this->defaults['post_reactions_margin_bottom_layout_8'],
5091 'capability' => 'edit_theme_options',
5092 'transport' => 'postMessage',
5093 'sanitize_callback' => [$this->sanitizer, 'integer']
5094 ] );
5095
5096 $this->customizer->add_control( new DimensionControl(
5097 $this->customizer, 'post_reactions_margin_bottom_layout_8', [
5098 'type' => 'betterdocs-dimension',
5099 'section' => 'betterdocs_single_docs_settings',
5100 'settings' => 'post_reactions_margin_bottom_layout_8',
5101 'label' => __( 'Bottom', 'betterdocs' ),
5102 'priority' => 163,
5103 'input_attrs' => [
5104 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
5105 ]
5106 ] )
5107 );
5108
5109 $this->customizer->add_setting( 'post_reactions_margin_left_layout_8', [
5110 'default' => $this->defaults['post_reactions_margin_left_layout_8'],
5111 'capability' => 'edit_theme_options',
5112 'transport' => 'postMessage',
5113 'sanitize_callback' => [$this->sanitizer, 'integer']
5114 ] );
5115
5116 $this->customizer->add_control( new DimensionControl(
5117 $this->customizer, 'post_reactions_margin_left_layout_8', [
5118 'type' => 'betterdocs-dimension',
5119 'section' => 'betterdocs_single_docs_settings',
5120 'settings' => 'post_reactions_margin_left_layout_8',
5121 'label' => __( 'Left', 'betterdocs' ),
5122 'priority' => 163,
5123 'input_attrs' => [
5124 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
5125 ]
5126 ] )
5127 );
5128 }
5129
5130 public function post_reactions_margin_layout_9() {
5131 $this->customizer->add_setting( 'post_reactions_margin_layout_9', [
5132 'default' => $this->defaults['post_reactions_margin_layout_9'],
5133 'capability' => 'edit_theme_options',
5134 'transport' => 'postMessage',
5135 'sanitize_callback' => [$this->sanitizer, 'integer']
5136 ] );
5137
5138 $this->customizer->add_control( new TitleControl(
5139 $this->customizer, 'post_reactions_margin_layout_9', [
5140 'type' => 'betterdocs-title',
5141 'section' => 'betterdocs_single_docs_settings',
5142 'settings' => 'post_reactions_margin_layout_9',
5143 'label' => __( 'Margin', 'betterdocs' ),
5144 'priority' => 163,
5145 'input_attrs' => [
5146 'id' => 'post_reactions_margin_layout_9',
5147 'class' => 'betterdocs-dimension'
5148 ]
5149 ] )
5150 );
5151
5152 $this->customizer->add_setting( 'post_reactions_margin_top_layout_9', [
5153 'default' => $this->defaults['post_reactions_margin_top_layout_9'],
5154 'capability' => 'edit_theme_options',
5155 'transport' => 'postMessage',
5156 'sanitize_callback' => [$this->sanitizer, 'integer']
5157 ] );
5158
5159 $this->customizer->add_control( new DimensionControl(
5160 $this->customizer, 'post_reactions_margin_top_layout_9', [
5161 'type' => 'betterdocs-dimension',
5162 'section' => 'betterdocs_single_docs_settings',
5163 'settings' => 'post_reactions_margin_top_layout_9',
5164 'label' => __( 'Top', 'betterdocs' ),
5165 'priority' => 163,
5166 'input_attrs' => [
5167 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
5168 ]
5169 ] )
5170 );
5171
5172 $this->customizer->add_setting( 'post_reactions_margin_right_layout_9', [
5173 'default' => $this->defaults['post_reactions_margin_right_layout_9'],
5174 'capability' => 'edit_theme_options',
5175 'transport' => 'postMessage',
5176 'sanitize_callback' => [$this->sanitizer, 'integer']
5177 ] );
5178
5179 $this->customizer->add_control( new DimensionControl(
5180 $this->customizer, 'post_reactions_margin_right_layout_9', [
5181 'type' => 'betterdocs-dimension',
5182 'section' => 'betterdocs_single_docs_settings',
5183 'settings' => 'post_reactions_margin_right_layout_9',
5184 'label' => __( 'Right', 'betterdocs' ),
5185 'priority' => 163,
5186 'input_attrs' => [
5187 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
5188 ]
5189 ] )
5190 );
5191
5192 $this->customizer->add_setting( 'post_reactions_margin_bottom_layout_9', [
5193 'default' => $this->defaults['post_reactions_margin_bottom_layout_9'],
5194 'capability' => 'edit_theme_options',
5195 'transport' => 'postMessage',
5196 'sanitize_callback' => [$this->sanitizer, 'integer']
5197 ] );
5198
5199 $this->customizer->add_control( new DimensionControl(
5200 $this->customizer, 'post_reactions_margin_bottom_layout_9', [
5201 'type' => 'betterdocs-dimension',
5202 'section' => 'betterdocs_single_docs_settings',
5203 'settings' => 'post_reactions_margin_bottom_layout_9',
5204 'label' => __( 'Bottom', 'betterdocs' ),
5205 'priority' => 163,
5206 'input_attrs' => [
5207 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
5208 ]
5209 ] )
5210 );
5211
5212 $this->customizer->add_setting( 'post_reactions_margin_left_layout_9', [
5213 'default' => $this->defaults['post_reactions_margin_left_layout_9'],
5214 'capability' => 'edit_theme_options',
5215 'transport' => 'postMessage',
5216 'sanitize_callback' => [$this->sanitizer, 'integer']
5217 ] );
5218
5219 $this->customizer->add_control( new DimensionControl(
5220 $this->customizer, 'post_reactions_margin_left_layout_9', [
5221 'type' => 'betterdocs-dimension',
5222 'section' => 'betterdocs_single_docs_settings',
5223 'settings' => 'post_reactions_margin_left_layout_9',
5224 'label' => __( 'Left', 'betterdocs' ),
5225 'priority' => 163,
5226 'input_attrs' => [
5227 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
5228 ]
5229 ] )
5230 );
5231 }
5232
5233
5234 public function post_reactions_padding_layout_8() {
5235 $this->customizer->add_setting( 'post_reactions_padding_layout_8', [
5236 'default' => $this->defaults['post_reactions_padding_layout_8'],
5237 'capability' => 'edit_theme_options',
5238 'transport' => 'postMessage',
5239 'sanitize_callback' => [$this->sanitizer, 'integer']
5240 ] );
5241
5242 $this->customizer->add_control( new TitleControl(
5243 $this->customizer, 'post_reactions_padding_layout_8', [
5244 'type' => 'betterdocs-title',
5245 'section' => 'betterdocs_single_docs_settings',
5246 'settings' => 'post_reactions_padding_layout_8',
5247 'label' => __( 'Padding', 'betterdocs' ),
5248 'priority' => 163,
5249 'input_attrs' => [
5250 'id' => 'post_reactions_padding_layout_8',
5251 'class' => 'betterdocs-dimension'
5252 ]
5253 ] )
5254 );
5255
5256 $this->customizer->add_setting( 'post_reactions_padding_top_layout_8', [
5257 'default' => $this->defaults['post_reactions_padding_top_layout_8'],
5258 'capability' => 'edit_theme_options',
5259 'transport' => 'postMessage',
5260 'sanitize_callback' => [$this->sanitizer, 'integer']
5261 ] );
5262
5263 $this->customizer->add_control( new DimensionControl(
5264 $this->customizer, 'post_reactions_padding_top_layout_8', [
5265 'type' => 'betterdocs-dimension',
5266 'section' => 'betterdocs_single_docs_settings',
5267 'settings' => 'post_reactions_padding_top_layout_8',
5268 'label' => __( 'Top', 'betterdocs' ),
5269 'priority' => 163,
5270 'input_attrs' => [
5271 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
5272 ]
5273 ] )
5274 );
5275
5276 $this->customizer->add_setting( 'post_reactions_padding_right_layout_8', [
5277 'default' => $this->defaults['post_reactions_padding_right_layout_8'],
5278 'capability' => 'edit_theme_options',
5279 'transport' => 'postMessage',
5280 'sanitize_callback' => [$this->sanitizer, 'integer']
5281 ] );
5282
5283 $this->customizer->add_control( new DimensionControl(
5284 $this->customizer, 'post_reactions_padding_right_layout_8', [
5285 'type' => 'betterdocs-dimension',
5286 'section' => 'betterdocs_single_docs_settings',
5287 'settings' => 'post_reactions_padding_right_layout_8',
5288 'label' => __( 'Right', 'betterdocs' ),
5289 'priority' => 163,
5290 'input_attrs' => [
5291 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
5292 ]
5293 ] )
5294 );
5295
5296 $this->customizer->add_setting( 'post_reactions_padding_bottom_layout_8', [
5297 'default' => $this->defaults['post_reactions_padding_bottom_layout_8'],
5298 'capability' => 'edit_theme_options',
5299 'transport' => 'postMessage',
5300 'sanitize_callback' => [$this->sanitizer, 'integer']
5301 ] );
5302
5303 $this->customizer->add_control( new DimensionControl(
5304 $this->customizer, 'post_reactions_padding_bottom_layout_8', [
5305 'type' => 'betterdocs-dimension',
5306 'section' => 'betterdocs_single_docs_settings',
5307 'settings' => 'post_reactions_padding_bottom_layout_8',
5308 'label' => __( 'Bottom', 'betterdocs' ),
5309 'priority' => 163,
5310 'input_attrs' => [
5311 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
5312 ]
5313 ] )
5314 );
5315
5316 $this->customizer->add_setting( 'post_reactions_padding_left_layout_8', [
5317 'default' => $this->defaults['post_reactions_padding_left_layout_8'],
5318 'capability' => 'edit_theme_options',
5319 'transport' => 'postMessage',
5320 'sanitize_callback' => [$this->sanitizer, 'integer']
5321 ] );
5322
5323 $this->customizer->add_control( new DimensionControl(
5324 $this->customizer, 'post_reactions_padding_left_layout_8', [
5325 'type' => 'betterdocs-dimension',
5326 'section' => 'betterdocs_single_docs_settings',
5327 'settings' => 'post_reactions_padding_left_layout_8',
5328 'label' => __( 'Left', 'betterdocs' ),
5329 'priority' => 163,
5330 'input_attrs' => [
5331 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
5332 ]
5333 ] )
5334 );
5335 }
5336
5337 public function post_reactions_padding_layout_9() {
5338 $this->customizer->add_setting( 'post_reactions_padding_layout_9', [
5339 'default' => $this->defaults['post_reactions_padding_layout_9'],
5340 'capability' => 'edit_theme_options',
5341 'transport' => 'postMessage',
5342 'sanitize_callback' => [$this->sanitizer, 'integer']
5343 ] );
5344
5345 $this->customizer->add_control( new TitleControl(
5346 $this->customizer, 'post_reactions_padding_layout_9', [
5347 'type' => 'betterdocs-title',
5348 'section' => 'betterdocs_single_docs_settings',
5349 'settings' => 'post_reactions_padding_layout_9',
5350 'label' => __( 'Padding', 'betterdocs' ),
5351 'priority' => 163,
5352 'input_attrs' => [
5353 'id' => 'post_reactions_padding_layout_9',
5354 'class' => 'betterdocs-dimension'
5355 ]
5356 ] )
5357 );
5358
5359 $this->customizer->add_setting( 'post_reactions_padding_top_layout_9', [
5360 'default' => $this->defaults['post_reactions_padding_top_layout_9'],
5361 'capability' => 'edit_theme_options',
5362 'transport' => 'postMessage',
5363 'sanitize_callback' => [$this->sanitizer, 'integer']
5364 ] );
5365
5366 $this->customizer->add_control( new DimensionControl(
5367 $this->customizer, 'post_reactions_padding_top_layout_9', [
5368 'type' => 'betterdocs-dimension',
5369 'section' => 'betterdocs_single_docs_settings',
5370 'settings' => 'post_reactions_padding_top_layout_9',
5371 'label' => __( 'Top', 'betterdocs' ),
5372 'priority' => 163,
5373 'input_attrs' => [
5374 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
5375 ]
5376 ] )
5377 );
5378
5379 $this->customizer->add_setting( 'post_reactions_padding_right_layout_9', [
5380 'default' => $this->defaults['post_reactions_padding_right_layout_9'],
5381 'capability' => 'edit_theme_options',
5382 'transport' => 'postMessage',
5383 'sanitize_callback' => [$this->sanitizer, 'integer']
5384 ] );
5385
5386 $this->customizer->add_control( new DimensionControl(
5387 $this->customizer, 'post_reactions_padding_right_layout_9', [
5388 'type' => 'betterdocs-dimension',
5389 'section' => 'betterdocs_single_docs_settings',
5390 'settings' => 'post_reactions_padding_right_layout_9',
5391 'label' => __( 'Right', 'betterdocs' ),
5392 'priority' => 163,
5393 'input_attrs' => [
5394 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
5395 ]
5396 ] )
5397 );
5398
5399 $this->customizer->add_setting( 'post_reactions_padding_bottom_layout_9', [
5400 'default' => $this->defaults['post_reactions_padding_bottom_layout_9'],
5401 'capability' => 'edit_theme_options',
5402 'transport' => 'postMessage',
5403 'sanitize_callback' => [$this->sanitizer, 'integer']
5404 ] );
5405
5406 $this->customizer->add_control( new DimensionControl(
5407 $this->customizer, 'post_reactions_padding_bottom_layout_9', [
5408 'type' => 'betterdocs-dimension',
5409 'section' => 'betterdocs_single_docs_settings',
5410 'settings' => 'post_reactions_padding_bottom_layout_8',
5411 'label' => __( 'Bottom', 'betterdocs' ),
5412 'priority' => 163,
5413 'input_attrs' => [
5414 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
5415 ]
5416 ] )
5417 );
5418
5419 $this->customizer->add_setting( 'post_reactions_padding_left_layout_9', [
5420 'default' => $this->defaults['post_reactions_padding_left_layout_9'],
5421 'capability' => 'edit_theme_options',
5422 'transport' => 'postMessage',
5423 'sanitize_callback' => [$this->sanitizer, 'integer']
5424 ] );
5425
5426 $this->customizer->add_control( new DimensionControl(
5427 $this->customizer, 'post_reactions_padding_left_layout_9', [
5428 'type' => 'betterdocs-dimension',
5429 'section' => 'betterdocs_single_docs_settings',
5430 'settings' => 'post_reactions_padding_left_layout_8',
5431 'label' => __( 'Left', 'betterdocs' ),
5432 'priority' => 163,
5433 'input_attrs' => [
5434 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
5435 ]
5436 ] )
5437 );
5438 }
5439
5440 public function post_reactions_border_layout_8() {
5441 $this->customizer->add_setting( 'post_reactions_border_layout_8', [
5442 'default' => $this->defaults['post_reactions_border_layout_8'],
5443 'capability' => 'edit_theme_options',
5444 'transport' => 'postMessage',
5445 'sanitize_callback' => [$this->sanitizer, 'integer']
5446 ] );
5447
5448 $this->customizer->add_control( new TitleControl(
5449 $this->customizer, 'post_reactions_border_layout_8', [
5450 'type' => 'betterdocs-title',
5451 'section' => 'betterdocs_single_docs_settings',
5452 'settings' => 'post_reactions_border_layout_8',
5453 'label' => __( 'Border', 'betterdocs' ),
5454 'priority' => 163,
5455 'input_attrs' => [
5456 'id' => 'post_reactions_border_layout_8',
5457 'class' => 'betterdocs-dimension'
5458 ]
5459 ] )
5460 );
5461
5462 $this->customizer->add_setting( 'post_reactions_border_top_layout_8', [
5463 'default' => $this->defaults['post_reactions_border_top_layout_8'],
5464 'capability' => 'edit_theme_options',
5465 'transport' => 'postMessage',
5466 'sanitize_callback' => [$this->sanitizer, 'integer']
5467 ] );
5468
5469 $this->customizer->add_control( new DimensionControl(
5470 $this->customizer, 'post_reactions_border_top_layout_8', [
5471 'type' => 'betterdocs-dimension',
5472 'section' => 'betterdocs_single_docs_settings',
5473 'settings' => 'post_reactions_border_top_layout_8',
5474 'label' => __( 'Border Top', 'betterdocs' ),
5475 'priority' => 163,
5476 'input_attrs' => [
5477 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
5478 ]
5479 ] )
5480 );
5481
5482 $this->customizer->add_setting( 'post_reactions_border_right_layout_8', [
5483 'default' => $this->defaults['post_reactions_border_right_layout_8'],
5484 'capability' => 'edit_theme_options',
5485 'transport' => 'postMessage',
5486 'sanitize_callback' => [$this->sanitizer, 'integer']
5487 ] );
5488
5489 $this->customizer->add_control( new DimensionControl(
5490 $this->customizer, 'post_reactions_border_right_layout_8', [
5491 'type' => 'betterdocs-dimension',
5492 'section' => 'betterdocs_single_docs_settings',
5493 'settings' => 'post_reactions_border_right_layout_8',
5494 'label' => __( 'Border Right', 'betterdocs' ),
5495 'priority' => 163,
5496 'input_attrs' => [
5497 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
5498 ]
5499 ] )
5500 );
5501
5502 $this->customizer->add_setting( 'post_reactions_border_bottom_layout_8', [
5503 'default' => $this->defaults['post_reactions_border_bottom_layout_8'],
5504 'capability' => 'edit_theme_options',
5505 'transport' => 'postMessage',
5506 'sanitize_callback' => [$this->sanitizer, 'integer']
5507 ] );
5508
5509 $this->customizer->add_control( new DimensionControl(
5510 $this->customizer, 'post_reactions_border_bottom_layout_8', [
5511 'type' => 'betterdocs-dimension',
5512 'section' => 'betterdocs_single_docs_settings',
5513 'settings' => 'post_reactions_border_bottom_layout_8',
5514 'label' => __( 'Border Bottom', 'betterdocs' ),
5515 'priority' => 163,
5516 'input_attrs' => [
5517 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
5518 ]
5519 ] )
5520 );
5521
5522 $this->customizer->add_setting( 'post_reactions_border_left_layout_8', [
5523 'default' => $this->defaults['post_reactions_border_left_layout_8'],
5524 'capability' => 'edit_theme_options',
5525 'transport' => 'postMessage',
5526 'sanitize_callback' => [$this->sanitizer, 'integer']
5527 ] );
5528
5529 $this->customizer->add_control( new DimensionControl(
5530 $this->customizer, 'post_reactions_border_left_layout_8', [
5531 'type' => 'betterdocs-dimension',
5532 'section' => 'betterdocs_single_docs_settings',
5533 'settings' => 'post_reactions_border_left_layout_8',
5534 'label' => __( 'Border Left', 'betterdocs' ),
5535 'priority' => 163,
5536 'input_attrs' => [
5537 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
5538 ]
5539 ] )
5540 );
5541 }
5542
5543 // public function post_reactions_icon_svg_color_layout_8_9() {
5544 // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_svg_color_layout_8_9', [
5545 // 'default' => $this->defaults['betterdocs_post_reactions_icon_svg_color_layout_8_9'],
5546 // 'capability' => 'edit_theme_options',
5547 // 'transport' => 'postMessage',
5548 // 'sanitize_callback' => [$this->sanitizer, 'rgba']
5549 // ] );
5550
5551 // $this->customizer->add_control(
5552 // new AlphaColorControl(
5553 // $this->customizer,
5554 // 'betterdocs_post_reactions_icon_svg_color_layout_8_9',
5555 // [
5556 // 'label' => __( 'Reactions Icon Color', 'betterdocs' ),
5557 // 'priority' => 163,
5558 // 'section' => 'betterdocs_single_docs_settings',
5559 // 'settings' => 'betterdocs_post_reactions_icon_svg_color_layout_8_9'
5560 // ]
5561 // )
5562 // );
5563 // }
5564
5565 // public function post_reactions_icon_hover_bg_color_layout_8_9() {
5566 // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9', [
5567 // 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_bg_color_layout_8_9'],
5568 // 'capability' => 'edit_theme_options',
5569 // 'sanitize_callback' => [$this->sanitizer, 'rgba']
5570 // ] );
5571
5572 // $this->customizer->add_control(
5573 // new AlphaColorControl(
5574 // $this->customizer,
5575 // 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9',
5576 // [
5577 // 'label' => __( 'Reactions Icon Hover Background Color', 'betterdocs' ),
5578 // 'priority' => 163,
5579 // 'section' => 'betterdocs_single_docs_settings',
5580 // 'settings' => 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9'
5581 // ]
5582 // )
5583 // );
5584 // }
5585
5586 // public function post_reactions_icon_hover_svg_color_layout_8_9() {
5587 // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9', [
5588 // 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_svg_color_layout_8_9'],
5589 // 'capability' => 'edit_theme_options',
5590 // 'sanitize_callback' => [$this->sanitizer, 'rgba']
5591 // ] );
5592
5593 // $this->customizer->add_control(
5594 // new AlphaColorControl(
5595 // $this->customizer,
5596 // 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9',
5597 // [
5598 // 'label' => __( 'Reactions Icon Hover Color', 'betterdocs' ),
5599 // 'priority' => 163,
5600 // 'section' => 'betterdocs_single_docs_settings',
5601 // 'settings' => 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9'
5602 // ]
5603 // )
5604 // );
5605 // }
5606
5607 public function attachments_heading() {
5608 $this->customizer->add_setting( 'betterdocs_single_doc_attachment_heading', [
5609 'default' => '',
5610 'sanitize_callback' => 'esc_html'
5611 ] );
5612
5613 $this->customizer->add_control( new SeparatorControl(
5614 $this->customizer, 'betterdocs_single_doc_attachment_heading', [
5615 'label' => __( 'Attachments', 'betterdocs' ),
5616 'priority' => 163,
5617 'settings' => 'betterdocs_single_doc_attachment_heading',
5618 'section' => 'betterdocs_single_docs_settings'
5619 ] )
5620 );
5621 }
5622
5623 public function betterdocs_doc_single_attachment_content_bg_color() {
5624 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_bg_color', [
5625 'default' => $this->defaults['betterdocs_doc_single_attachment_content_bg_color'],
5626 'capability' => 'edit_theme_options',
5627 'transport' => 'postMessage',
5628 'sanitize_callback' => [$this->sanitizer, 'rgba']
5629 ] );
5630
5631 $this->customizer->add_control(
5632 new AlphaColorControl(
5633 $this->customizer,
5634 'betterdocs_doc_single_attachment_content_bg_color',
5635 [
5636 'label' => __( 'Content Background Color', 'betterdocs' ),
5637 'section' => 'betterdocs_single_docs_settings',
5638 'settings' => 'betterdocs_doc_single_attachment_content_bg_color',
5639 'priority' => 163
5640 ]
5641 )
5642 );
5643 }
5644
5645 public function betterdocs_doc_single_attachment_content_padding() {
5646 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding', [
5647 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding'],
5648 'capability' => 'edit_theme_options',
5649 'transport' => 'postMessage',
5650 'sanitize_callback' => [$this->sanitizer, 'integer']
5651
5652 ] );
5653
5654 $this->customizer->add_control( new TitleControl(
5655 $this->customizer, 'betterdocs_doc_single_attachment_content_padding', [
5656 'type' => 'betterdocs-title',
5657 'section' => 'betterdocs_single_docs_settings',
5658 'settings' => 'betterdocs_doc_single_attachment_content_padding',
5659 'label' => __( 'Content Padding', 'betterdocs' ),
5660 'priority' => 163,
5661 'input_attrs' => [
5662 'id' => 'betterdocs_doc_single_attachment_content_padding',
5663 'class' => 'betterdocs-dimension'
5664 ]
5665 ] )
5666 );
5667
5668 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_top', [
5669 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_top'],
5670 'capability' => 'edit_theme_options',
5671 'transport' => 'postMessage',
5672 'sanitize_callback' => [$this->sanitizer, 'integer']
5673 ] );
5674
5675 $this->customizer->add_control( new DimensionControl(
5676 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_top', [
5677 'type' => 'betterdocs-dimension',
5678 'section' => 'betterdocs_single_docs_settings',
5679 'settings' => 'betterdocs_doc_single_attachment_content_padding_top',
5680 'label' => __( 'Top', 'betterdocs' ),
5681 'priority' => 163,
5682 'input_attrs' => [
5683 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
5684 ]
5685 ] )
5686 );
5687
5688 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_right', [
5689 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_right'],
5690 'capability' => 'edit_theme_options',
5691 'transport' => 'postMessage',
5692 'sanitize_callback' => [$this->sanitizer, 'integer']
5693
5694 ] );
5695
5696 $this->customizer->add_control( new DimensionControl(
5697 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_right', [
5698 'type' => 'betterdocs-dimension',
5699 'section' => 'betterdocs_single_docs_settings',
5700 'settings' => 'betterdocs_doc_single_attachment_content_padding_right',
5701 'label' => __( 'Right', 'betterdocs' ),
5702 'priority' => 163,
5703 'input_attrs' => [
5704 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
5705 ]
5706 ] )
5707 );
5708
5709 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_bottom', [
5710 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_bottom'],
5711 'capability' => 'edit_theme_options',
5712 'transport' => 'postMessage',
5713 'sanitize_callback' => [$this->sanitizer, 'integer']
5714
5715 ] );
5716
5717 $this->customizer->add_control( new DimensionControl(
5718 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_bottom', [
5719 'type' => 'betterdocs-dimension',
5720 'section' => 'betterdocs_single_docs_settings',
5721 'settings' => 'betterdocs_doc_single_attachment_content_padding_bottom',
5722 'label' => __( 'Bottom', 'betterdocs' ),
5723 'priority' => 163,
5724 'input_attrs' => [
5725 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
5726 ]
5727 ] )
5728 );
5729
5730 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_left', [
5731 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_left'],
5732 'capability' => 'edit_theme_options',
5733 'transport' => 'postMessage',
5734 'sanitize_callback' => [$this->sanitizer, 'integer']
5735
5736 ] );
5737
5738 $this->customizer->add_control( new DimensionControl(
5739 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_left', [
5740 'type' => 'betterdocs-dimension',
5741 'section' => 'betterdocs_single_docs_settings',
5742 'settings' => 'betterdocs_doc_single_attachment_content_padding_left',
5743 'label' => __( 'Left', 'betterdocs' ),
5744 'priority' => 163,
5745 'input_attrs' => [
5746 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
5747 ]
5748 ] )
5749 );
5750 }
5751
5752 public function betterdocs_doc_single_attachment_content_margin() {
5753 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin', [
5754 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin'],
5755 'capability' => 'edit_theme_options',
5756 'transport' => 'postMessage',
5757 'sanitize_callback' => [$this->sanitizer, 'integer']
5758
5759 ] );
5760
5761 $this->customizer->add_control( new TitleControl(
5762 $this->customizer, 'betterdocs_doc_single_attachment_content_margin', [
5763 'type' => 'betterdocs-title',
5764 'section' => 'betterdocs_single_docs_settings',
5765 'settings' => 'betterdocs_doc_single_attachment_content_margin',
5766 'label' => __( 'Content Margin', 'betterdocs' ),
5767 'priority' => 163,
5768 'input_attrs' => [
5769 'id' => 'betterdocs_doc_single_attachment_content_margin',
5770 'class' => 'betterdocs-dimension'
5771 ]
5772 ] )
5773 );
5774
5775 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_top', [
5776 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_top'],
5777 'capability' => 'edit_theme_options',
5778 'transport' => 'postMessage',
5779 'sanitize_callback' => [$this->sanitizer, 'integer']
5780 ] );
5781
5782 $this->customizer->add_control( new DimensionControl(
5783 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_top', [
5784 'type' => 'betterdocs-dimension',
5785 'section' => 'betterdocs_single_docs_settings',
5786 'settings' => 'betterdocs_doc_single_attachment_content_margin_top',
5787 'label' => __( 'Top', 'betterdocs' ),
5788 'priority' => 163,
5789 'input_attrs' => [
5790 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
5791 ]
5792 ] )
5793 );
5794
5795 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_right', [
5796 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_right'],
5797 'capability' => 'edit_theme_options',
5798 'transport' => 'postMessage',
5799 'sanitize_callback' => [$this->sanitizer, 'integer']
5800
5801 ] );
5802
5803 $this->customizer->add_control( new DimensionControl(
5804 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_right', [
5805 'type' => 'betterdocs-dimension',
5806 'section' => 'betterdocs_single_docs_settings',
5807 'settings' => 'betterdocs_doc_single_attachment_content_margin_right',
5808 'label' => __( 'Right', 'betterdocs' ),
5809 'priority' => 163,
5810 'input_attrs' => [
5811 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
5812 ]
5813 ] )
5814 );
5815
5816 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_bottom', [
5817 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_bottom'],
5818 'capability' => 'edit_theme_options',
5819 'transport' => 'postMessage',
5820 'sanitize_callback' => [$this->sanitizer, 'integer']
5821
5822 ] );
5823
5824 $this->customizer->add_control( new DimensionControl(
5825 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_bottom', [
5826 'type' => 'betterdocs-dimension',
5827 'section' => 'betterdocs_single_docs_settings',
5828 'settings' => 'betterdocs_doc_single_attachment_content_margin_bottom',
5829 'label' => __( 'Bottom', 'betterdocs' ),
5830 'priority' => 163,
5831 'input_attrs' => [
5832 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
5833 ]
5834 ] )
5835 );
5836
5837 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_left', [
5838 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_left'],
5839 'capability' => 'edit_theme_options',
5840 'transport' => 'postMessage',
5841 'sanitize_callback' => [$this->sanitizer, 'integer']
5842
5843 ] );
5844
5845 $this->customizer->add_control( new DimensionControl(
5846 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_left', [
5847 'type' => 'betterdocs-dimension',
5848 'section' => 'betterdocs_single_docs_settings',
5849 'settings' => 'betterdocs_doc_single_attachment_content_margin_left',
5850 'label' => __( 'Left', 'betterdocs' ),
5851 'priority' => 163,
5852 'input_attrs' => [
5853 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
5854 ]
5855 ] )
5856 );
5857 }
5858
5859 public function betterdocs_doc_single_attachment_label_color() {
5860 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_color', [
5861 'default' => $this->defaults['betterdocs_doc_single_attachment_label_color'],
5862 'capability' => 'edit_theme_options',
5863 'transport' => 'postMessage',
5864 'sanitize_callback' => [$this->sanitizer, 'rgba']
5865 ] );
5866
5867 $this->customizer->add_control(
5868 new AlphaColorControl(
5869 $this->customizer,
5870 'betterdocs_doc_single_attachment_label_color',
5871 [
5872 'label' => __( 'Label Color', 'betterdocs' ),
5873 'section' => 'betterdocs_single_docs_settings',
5874 'settings' => 'betterdocs_doc_single_attachment_label_color',
5875 'priority' => 163
5876 ]
5877 )
5878 );
5879 }
5880
5881 public function betterdocs_doc_single_attachment_label_padding() {
5882 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding', [
5883 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding'],
5884 'capability' => 'edit_theme_options',
5885 'transport' => 'postMessage',
5886 'sanitize_callback' => [$this->sanitizer, 'integer']
5887
5888 ] );
5889
5890 $this->customizer->add_control( new TitleControl(
5891 $this->customizer, 'betterdocs_doc_single_attachment_label_padding', [
5892 'type' => 'betterdocs-title',
5893 'section' => 'betterdocs_single_docs_settings',
5894 'settings' => 'betterdocs_doc_single_attachment_label_padding',
5895 'label' => __( 'Label Padding', 'betterdocs' ),
5896 'priority' => 163,
5897 'input_attrs' => [
5898 'id' => 'betterdocs_doc_single_attachment_label_padding',
5899 'class' => 'betterdocs-dimension'
5900 ]
5901 ] )
5902 );
5903
5904 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_top', [
5905 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_top'],
5906 'capability' => 'edit_theme_options',
5907 'transport' => 'postMessage',
5908 'sanitize_callback' => [$this->sanitizer, 'integer']
5909 ] );
5910
5911 $this->customizer->add_control( new DimensionControl(
5912 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_top', [
5913 'type' => 'betterdocs-dimension',
5914 'section' => 'betterdocs_single_docs_settings',
5915 'settings' => 'betterdocs_doc_single_attachment_label_padding_top',
5916 'label' => __( 'Top', 'betterdocs' ),
5917 'priority' => 163,
5918 'input_attrs' => [
5919 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
5920 ]
5921 ] )
5922 );
5923
5924 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_right', [
5925 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_right'],
5926 'capability' => 'edit_theme_options',
5927 'transport' => 'postMessage',
5928 'sanitize_callback' => [$this->sanitizer, 'integer']
5929
5930 ] );
5931
5932 $this->customizer->add_control( new DimensionControl(
5933 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_right', [
5934 'type' => 'betterdocs-dimension',
5935 'section' => 'betterdocs_single_docs_settings',
5936 'settings' => 'betterdocs_doc_single_attachment_label_padding_right',
5937 'label' => __( 'Right', 'betterdocs' ),
5938 'priority' => 163,
5939 'input_attrs' => [
5940 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
5941 ]
5942 ] )
5943 );
5944
5945 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_bottom', [
5946 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_bottom'],
5947 'capability' => 'edit_theme_options',
5948 'transport' => 'postMessage',
5949 'sanitize_callback' => [$this->sanitizer, 'integer']
5950
5951 ] );
5952
5953 $this->customizer->add_control( new DimensionControl(
5954 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_bottom', [
5955 'type' => 'betterdocs-dimension',
5956 'section' => 'betterdocs_single_docs_settings',
5957 'settings' => 'betterdocs_doc_single_attachment_label_padding_bottom',
5958 'label' => __( 'Bottom', 'betterdocs' ),
5959 'priority' => 163,
5960 'input_attrs' => [
5961 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
5962 ]
5963 ] )
5964 );
5965
5966 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_left', [
5967 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_left'],
5968 'capability' => 'edit_theme_options',
5969 'transport' => 'postMessage',
5970 'sanitize_callback' => [$this->sanitizer, 'integer']
5971
5972 ] );
5973
5974 $this->customizer->add_control( new DimensionControl(
5975 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_left', [
5976 'type' => 'betterdocs-dimension',
5977 'section' => 'betterdocs_single_docs_settings',
5978 'settings' => 'betterdocs_doc_single_attachment_label_padding_left',
5979 'label' => __( 'Left', 'betterdocs' ),
5980 'priority' => 163,
5981 'input_attrs' => [
5982 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
5983 ]
5984 ] )
5985 );
5986 }
5987
5988 public function betterdocs_doc_single_attachment_label_margin() {
5989 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin', [
5990 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin'],
5991 'capability' => 'edit_theme_options',
5992 'transport' => 'postMessage',
5993 'sanitize_callback' => [$this->sanitizer, 'integer']
5994
5995 ] );
5996
5997 $this->customizer->add_control( new TitleControl(
5998 $this->customizer, 'betterdocs_doc_single_attachment_label_margin', [
5999 'type' => 'betterdocs-title',
6000 'section' => 'betterdocs_single_docs_settings',
6001 'settings' => 'betterdocs_doc_single_attachment_label_margin',
6002 'label' => __( 'Label Margin', 'betterdocs' ),
6003 'priority' => 163,
6004 'input_attrs' => [
6005 'id' => 'betterdocs_doc_single_attachment_label_margin',
6006 'class' => 'betterdocs-dimension'
6007 ]
6008 ] )
6009 );
6010
6011 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_top', [
6012 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_top'],
6013 'capability' => 'edit_theme_options',
6014 'transport' => 'postMessage',
6015 'sanitize_callback' => [$this->sanitizer, 'integer']
6016 ] );
6017
6018 $this->customizer->add_control( new DimensionControl(
6019 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_top', [
6020 'type' => 'betterdocs-dimension',
6021 'section' => 'betterdocs_single_docs_settings',
6022 'settings' => 'betterdocs_doc_single_attachment_label_margin_top',
6023 'label' => __( 'Top', 'betterdocs' ),
6024 'priority' => 163,
6025 'input_attrs' => [
6026 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
6027 ]
6028 ] )
6029 );
6030
6031 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_right', [
6032 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_right'],
6033 'capability' => 'edit_theme_options',
6034 'transport' => 'postMessage',
6035 'sanitize_callback' => [$this->sanitizer, 'integer']
6036
6037 ] );
6038
6039 $this->customizer->add_control( new DimensionControl(
6040 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_right', [
6041 'type' => 'betterdocs-dimension',
6042 'section' => 'betterdocs_single_docs_settings',
6043 'settings' => 'betterdocs_doc_single_attachment_label_margin_right',
6044 'label' => __( 'Right', 'betterdocs' ),
6045 'priority' => 163,
6046 'input_attrs' => [
6047 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
6048 ]
6049 ] )
6050 );
6051
6052 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_bottom', [
6053 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_bottom'],
6054 'capability' => 'edit_theme_options',
6055 'transport' => 'postMessage',
6056 'sanitize_callback' => [$this->sanitizer, 'integer']
6057 ] );
6058
6059 $this->customizer->add_control( new DimensionControl(
6060 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_bottom', [
6061 'type' => 'betterdocs-dimension',
6062 'section' => 'betterdocs_single_docs_settings',
6063 'settings' => 'betterdocs_doc_single_attachment_label_margin_bottom',
6064 'label' => __( 'Bottom', 'betterdocs' ),
6065 'priority' => 163,
6066 'input_attrs' => [
6067 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
6068 ]
6069 ] )
6070 );
6071
6072 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_left', [
6073 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_left'],
6074 'capability' => 'edit_theme_options',
6075 'transport' => 'postMessage',
6076 'sanitize_callback' => [$this->sanitizer, 'integer']
6077 ] );
6078
6079 $this->customizer->add_control( new DimensionControl(
6080 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_left', [
6081 'type' => 'betterdocs-dimension',
6082 'section' => 'betterdocs_single_docs_settings',
6083 'settings' => 'betterdocs_doc_single_attachment_label_margin_left',
6084 'label' => __( 'Left', 'betterdocs' ),
6085 'priority' => 163,
6086 'input_attrs' => [
6087 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
6088 ]
6089 ] )
6090 );
6091 }
6092
6093 public function betterdocs_doc_single_attachment_list_font_size() {
6094 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_font_size', [
6095 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_size'],
6096 'capability' => 'edit_theme_options',
6097 'transport' => 'postMessage',
6098 'sanitize_callback' => [$this->sanitizer, 'integer']
6099
6100 ] );
6101
6102 $this->customizer->add_control( new RangeValueControl(
6103 $this->customizer, 'betterdocs_doc_single_attachment_list_font_size', [
6104 'type' => 'betterdocs-range-value',
6105 'section' => 'betterdocs_single_docs_settings',
6106 'settings' => 'betterdocs_doc_single_attachment_list_font_size',
6107 'label' => __( 'List Font Size', 'betterdocs' ),
6108 'priority' => 163,
6109 'input_attrs' => [
6110 'min' => 0,
6111 'max' => 50,
6112 'step' => 1,
6113 'suffix' => 'px' //optional suffix
6114 ]
6115 ] )
6116 );
6117 }
6118
6119 public function betterdocs_doc_single_attachment_list_font_weight() {
6120 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_font_weight', [
6121 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_weight'],
6122 'capability' => 'edit_theme_options',
6123 'sanitize_callback' => [$this->sanitizer, 'choices']
6124 ] );
6125
6126 $this->customizer->add_control(
6127 new WP_Customize_Control(
6128 $this->customizer,
6129 'betterdocs_doc_single_attachment_list_font_weight',
6130 [
6131 'label' => __( 'List Font Weight', 'betterdocs-pro' ),
6132 'section' => 'betterdocs_single_docs_settings',
6133 'settings' => 'betterdocs_doc_single_attachment_list_font_weight',
6134 'type' => 'select',
6135 'choices' => [
6136 'normal' => 'Normal',
6137 '100' => '100',
6138 '200' => '200',
6139 '300' => '300',
6140 '400' => '400',
6141 '500' => '500',
6142 '600' => '600',
6143 '700' => '700',
6144 '800' => '800',
6145 '900' => '900'
6146 ],
6147 'priority' => 163
6148 ]
6149 )
6150 );
6151 }
6152
6153 public function betterdocs_doc_single_attachment_list_extension_color() {
6154 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_extension_color', [
6155 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_color'],
6156 'capability' => 'edit_theme_options',
6157 'transport' => 'postMessage',
6158 'sanitize_callback' => [$this->sanitizer, 'rgba']
6159 ] );
6160
6161 $this->customizer->add_control(
6162 new AlphaColorControl(
6163 $this->customizer,
6164 'betterdocs_doc_single_attachment_list_extension_color',
6165 [
6166 'label' => __( 'Extension Color', 'betterdocs' ),
6167 'section' => 'betterdocs_single_docs_settings',
6168 'settings' => 'betterdocs_doc_single_attachment_list_extension_color',
6169 'priority' => 163
6170 ]
6171 )
6172 );
6173 }
6174 public function betterdocs_doc_single_attachment_list_extension_font_size() {
6175 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_extension_font_size', [
6176 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_size'],
6177 'capability' => 'edit_theme_options',
6178 'transport' => 'postMessage',
6179 'sanitize_callback' => [$this->sanitizer, 'integer']
6180
6181 ] );
6182
6183 $this->customizer->add_control( new RangeValueControl(
6184 $this->customizer, 'betterdocs_doc_single_attachment_list_extension_font_size', [
6185 'type' => 'betterdocs-range-value',
6186 'section' => 'betterdocs_single_docs_settings',
6187 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_size',
6188 'label' => __( 'Extension Font Size', 'betterdocs' ),
6189 'priority' => 163,
6190 'input_attrs' => [
6191 'min' => 0,
6192 'max' => 50,
6193 'step' => 1,
6194 'suffix' => 'px' //optional suffix
6195 ]
6196 ] )
6197 );
6198 }
6199
6200 public function betterdocs_doc_single_attachment_list_extension_font_weight() {
6201 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_extension_font_weight', [
6202 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_weight'],
6203 'capability' => 'edit_theme_options',
6204 'sanitize_callback' => [$this->sanitizer, 'choices']
6205 ] );
6206
6207 $this->customizer->add_control(
6208 new WP_Customize_Control(
6209 $this->customizer,
6210 'betterdocs_doc_single_attachment_list_extension_font_weight',
6211 [
6212 'label' => __( 'Extension Font Weight', 'betterdocs-pro' ),
6213 'section' => 'betterdocs_single_docs_settings',
6214 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_weight',
6215 'type' => 'select',
6216 'choices' => [
6217 'normal' => 'Normal',
6218 '100' => '100',
6219 '200' => '200',
6220 '300' => '300',
6221 '400' => '400',
6222 '500' => '500',
6223 '600' => '600',
6224 '700' => '700',
6225 '800' => '800',
6226 '900' => '900'
6227 ],
6228 'priority' => 163
6229 ]
6230 )
6231 );
6232 }
6233
6234 public function betterdocs_doc_single_attachment_list_color() {
6235 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_color', [
6236 'default' => $this->defaults['betterdocs_doc_single_attachment_list_color'],
6237 'capability' => 'edit_theme_options',
6238 'transport' => 'postMessage',
6239 'sanitize_callback' => [$this->sanitizer, 'rgba']
6240 ] );
6241
6242 $this->customizer->add_control(
6243 new AlphaColorControl(
6244 $this->customizer,
6245 'betterdocs_doc_single_attachment_list_color',
6246 [
6247 'label' => __( 'List Color', 'betterdocs' ),
6248 'section' => 'betterdocs_single_docs_settings',
6249 'settings' => 'betterdocs_doc_single_attachment_list_color',
6250 'priority' => 163
6251 ]
6252 )
6253 );
6254 }
6255
6256 public function betterdocs_doc_single_attachment_list_background_color() {
6257 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_background_color', [
6258 'default' => $this->defaults['betterdocs_doc_single_attachment_list_background_color'],
6259 'capability' => 'edit_theme_options',
6260 'transport' => 'postMessage',
6261 'sanitize_callback' => [$this->sanitizer, 'rgba']
6262 ] );
6263
6264 $this->customizer->add_control(
6265 new AlphaColorControl(
6266 $this->customizer,
6267 'betterdocs_doc_single_attachment_list_background_color',
6268 [
6269 'label' => __( 'List Background Color', 'betterdocs' ),
6270 'section' => 'betterdocs_single_docs_settings',
6271 'settings' => 'betterdocs_doc_single_attachment_list_background_color',
6272 'priority' => 163
6273 ]
6274 )
6275 );
6276 }
6277
6278 public function betterdocs_doc_single_attachment_list_padding() {
6279 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding', [
6280 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding'],
6281 'capability' => 'edit_theme_options',
6282 'transport' => 'postMessage',
6283 'sanitize_callback' => [$this->sanitizer, 'integer']
6284
6285 ] );
6286
6287 $this->customizer->add_control( new TitleControl(
6288 $this->customizer, 'betterdocs_doc_single_attachment_list_padding', [
6289 'type' => 'betterdocs-title',
6290 'section' => 'betterdocs_single_docs_settings',
6291 'settings' => 'betterdocs_doc_single_attachment_list_padding',
6292 'label' => __( 'List Padding', 'betterdocs' ),
6293 'priority' => 163,
6294 'input_attrs' => [
6295 'id' => 'betterdocs_doc_single_attachment_list_padding',
6296 'class' => 'betterdocs-dimension'
6297 ]
6298 ] )
6299 );
6300
6301 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_top', [
6302 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_top'],
6303 'capability' => 'edit_theme_options',
6304 'transport' => 'postMessage',
6305 'sanitize_callback' => [$this->sanitizer, 'integer']
6306 ] );
6307
6308 $this->customizer->add_control( new DimensionControl(
6309 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_top', [
6310 'type' => 'betterdocs-dimension',
6311 'section' => 'betterdocs_single_docs_settings',
6312 'settings' => 'betterdocs_doc_single_attachment_list_padding_top',
6313 'label' => __( 'Top', 'betterdocs' ),
6314 'priority' => 163,
6315 'input_attrs' => [
6316 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
6317 ]
6318 ] )
6319 );
6320
6321 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_right', [
6322 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_right'],
6323 'capability' => 'edit_theme_options',
6324 'transport' => 'postMessage',
6325 'sanitize_callback' => [$this->sanitizer, 'integer']
6326
6327 ] );
6328
6329 $this->customizer->add_control( new DimensionControl(
6330 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_right', [
6331 'type' => 'betterdocs-dimension',
6332 'section' => 'betterdocs_single_docs_settings',
6333 'settings' => 'betterdocs_doc_single_attachment_list_padding_right',
6334 'label' => __( 'Right', 'betterdocs' ),
6335 'priority' => 163,
6336 'input_attrs' => [
6337 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
6338 ]
6339 ] )
6340 );
6341
6342 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_bottom', [
6343 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_bottom'],
6344 'capability' => 'edit_theme_options',
6345 'transport' => 'postMessage',
6346 'sanitize_callback' => [$this->sanitizer, 'integer']
6347 ] );
6348
6349 $this->customizer->add_control( new DimensionControl(
6350 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_bottom', [
6351 'type' => 'betterdocs-dimension',
6352 'section' => 'betterdocs_single_docs_settings',
6353 'settings' => 'betterdocs_doc_single_attachment_list_padding_bottom',
6354 'label' => __( 'Bottom', 'betterdocs' ),
6355 'priority' => 163,
6356 'input_attrs' => [
6357 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
6358 ]
6359 ] )
6360 );
6361
6362 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_left', [
6363 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_left'],
6364 'capability' => 'edit_theme_options',
6365 'transport' => 'postMessage',
6366 'sanitize_callback' => [$this->sanitizer, 'integer']
6367 ] );
6368
6369 $this->customizer->add_control( new DimensionControl(
6370 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_left', [
6371 'type' => 'betterdocs-dimension',
6372 'section' => 'betterdocs_single_docs_settings',
6373 'settings' => 'betterdocs_doc_single_attachment_list_padding_left',
6374 'label' => __( 'Left', 'betterdocs' ),
6375 'priority' => 163,
6376 'input_attrs' => [
6377 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
6378 ]
6379 ] )
6380 );
6381 }
6382
6383 public function betterdocs_doc_single_attachment_list_margin() {
6384 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin', [
6385 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin'],
6386 'capability' => 'edit_theme_options',
6387 'transport' => 'postMessage',
6388 'sanitize_callback' => [$this->sanitizer, 'integer']
6389
6390 ] );
6391
6392 $this->customizer->add_control( new TitleControl(
6393 $this->customizer, 'betterdocs_doc_single_attachment_list_margin', [
6394 'type' => 'betterdocs-title',
6395 'section' => 'betterdocs_single_docs_settings',
6396 'settings' => 'betterdocs_doc_single_attachment_list_margin',
6397 'label' => __( 'List Margin', 'betterdocs' ),
6398 'priority' => 163,
6399 'input_attrs' => [
6400 'id' => 'betterdocs_doc_single_attachment_list_margin',
6401 'class' => 'betterdocs-dimension'
6402 ]
6403 ] )
6404 );
6405
6406 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_top', [
6407 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_top'],
6408 'capability' => 'edit_theme_options',
6409 'transport' => 'postMessage',
6410 'sanitize_callback' => [$this->sanitizer, 'integer']
6411 ] );
6412
6413 $this->customizer->add_control( new DimensionControl(
6414 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_top', [
6415 'type' => 'betterdocs-dimension',
6416 'section' => 'betterdocs_single_docs_settings',
6417 'settings' => 'betterdocs_doc_single_attachment_list_margin_top',
6418 'label' => __( 'Top', 'betterdocs' ),
6419 'priority' => 163,
6420 'input_attrs' => [
6421 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
6422 ]
6423 ] )
6424 );
6425
6426 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_right', [
6427 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_right'],
6428 'capability' => 'edit_theme_options',
6429 'transport' => 'postMessage',
6430 'sanitize_callback' => [$this->sanitizer, 'integer']
6431
6432 ] );
6433
6434 $this->customizer->add_control( new DimensionControl(
6435 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_right', [
6436 'type' => 'betterdocs-dimension',
6437 'section' => 'betterdocs_single_docs_settings',
6438 'settings' => 'betterdocs_doc_single_attachment_list_margin_right',
6439 'label' => __( 'Right', 'betterdocs' ),
6440 'priority' => 163,
6441 'input_attrs' => [
6442 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
6443 ]
6444 ] )
6445 );
6446
6447 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_bottom', [
6448 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_bottom'],
6449 'capability' => 'edit_theme_options',
6450 'transport' => 'postMessage',
6451 'sanitize_callback' => [$this->sanitizer, 'integer']
6452 ] );
6453
6454 $this->customizer->add_control( new DimensionControl(
6455 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_bottom', [
6456 'type' => 'betterdocs-dimension',
6457 'section' => 'betterdocs_single_docs_settings',
6458 'settings' => 'betterdocs_doc_single_attachment_list_margin_bottom',
6459 'label' => __( 'Bottom', 'betterdocs' ),
6460 'priority' => 163,
6461 'input_attrs' => [
6462 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
6463 ]
6464 ] )
6465 );
6466
6467 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_left', [
6468 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_left'],
6469 'capability' => 'edit_theme_options',
6470 'transport' => 'postMessage',
6471 'sanitize_callback' => [$this->sanitizer, 'integer']
6472 ] );
6473
6474 $this->customizer->add_control( new DimensionControl(
6475 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_left', [
6476 'type' => 'betterdocs-dimension',
6477 'section' => 'betterdocs_single_docs_settings',
6478 'settings' => 'betterdocs_doc_single_attachment_list_margin_left',
6479 'label' => __( 'Left', 'betterdocs' ),
6480 'priority' => 163,
6481 'input_attrs' => [
6482 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
6483 ]
6484 ] )
6485 );
6486 }
6487
6488 public function attachments_heading_layout_8_9() {
6489 $this->customizer->add_setting( 'betterdocs_single_doc_attachment_heading_layout_8_9', [
6490 'default' => '',
6491 'sanitize_callback' => 'esc_html'
6492 ] );
6493
6494 $this->customizer->add_control( new SeparatorControl(
6495 $this->customizer, 'betterdocs_single_doc_attachment_heading_layout_8_9', [
6496 'label' => __( 'Attachments', 'betterdocs' ),
6497 'priority' => 163,
6498 'settings' => 'betterdocs_single_doc_attachment_heading_layout_8_9',
6499 'section' => 'betterdocs_single_docs_settings'
6500 ] )
6501 );
6502 }
6503
6504 public function betterdocs_doc_single_attachment_content_bg_color_layout_8_9() {
6505 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9', [
6506 'default' => $this->defaults['betterdocs_doc_single_attachment_content_bg_color_layout_8_9'],
6507 'capability' => 'edit_theme_options',
6508 'transport' => 'postMessage',
6509 'sanitize_callback' => [$this->sanitizer, 'rgba']
6510 ] );
6511
6512 $this->customizer->add_control(
6513 new AlphaColorControl(
6514 $this->customizer,
6515 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
6516 [
6517 'label' => __( 'Content Background Color', 'betterdocs' ),
6518 'section' => 'betterdocs_single_docs_settings',
6519 'settings' => 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
6520 'priority' => 163
6521 ]
6522 )
6523 );
6524 }
6525
6526 public function betterdocs_doc_single_attachment_content_padding_layout_8_9() {
6527 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_layout_8_9', [
6528 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_layout_8_9'],
6529 'capability' => 'edit_theme_options',
6530 'transport' => 'postMessage',
6531 'sanitize_callback' => [$this->sanitizer, 'integer']
6532
6533 ] );
6534
6535 $this->customizer->add_control( new TitleControl(
6536 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_layout_8_9', [
6537 'type' => 'betterdocs-title',
6538 'section' => 'betterdocs_single_docs_settings',
6539 'settings' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
6540 'label' => __( 'Content Padding', 'betterdocs' ),
6541 'priority' => 163,
6542 'input_attrs' => [
6543 'id' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
6544 'class' => 'betterdocs-dimension'
6545 ]
6546 ] )
6547 );
6548
6549 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9', [
6550 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_top_layout_8_9'],
6551 'capability' => 'edit_theme_options',
6552 'transport' => 'postMessage',
6553 'sanitize_callback' => [$this->sanitizer, 'integer']
6554 ] );
6555
6556 $this->customizer->add_control( new DimensionControl(
6557 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9', [
6558 'type' => 'betterdocs-dimension',
6559 'section' => 'betterdocs_single_docs_settings',
6560 'settings' => 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9',
6561 'label' => __( 'Top', 'betterdocs' ),
6562 'priority' => 163,
6563 'input_attrs' => [
6564 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
6565 ]
6566 ] )
6567 );
6568
6569 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9', [
6570 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_right_layout_8_9'],
6571 'capability' => 'edit_theme_options',
6572 'transport' => 'postMessage',
6573 'sanitize_callback' => [$this->sanitizer, 'integer']
6574
6575 ] );
6576
6577 $this->customizer->add_control( new DimensionControl(
6578 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9', [
6579 'type' => 'betterdocs-dimension',
6580 'section' => 'betterdocs_single_docs_settings',
6581 'settings' => 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9',
6582 'label' => __( 'Right', 'betterdocs' ),
6583 'priority' => 163,
6584 'input_attrs' => [
6585 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
6586 ]
6587 ] )
6588 );
6589
6590 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9', [
6591 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9'],
6592 'capability' => 'edit_theme_options',
6593 'transport' => 'postMessage',
6594 'sanitize_callback' => [$this->sanitizer, 'integer']
6595
6596 ] );
6597
6598 $this->customizer->add_control( new DimensionControl(
6599 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9', [
6600 'type' => 'betterdocs-dimension',
6601 'section' => 'betterdocs_single_docs_settings',
6602 'settings' => 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9',
6603 'label' => __( 'Bottom', 'betterdocs' ),
6604 'priority' => 163,
6605 'input_attrs' => [
6606 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
6607 ]
6608 ] )
6609 );
6610
6611 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9', [
6612 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_left_layout_8_9'],
6613 'capability' => 'edit_theme_options',
6614 'transport' => 'postMessage',
6615 'sanitize_callback' => [$this->sanitizer, 'integer']
6616
6617 ] );
6618
6619 $this->customizer->add_control( new DimensionControl(
6620 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9', [
6621 'type' => 'betterdocs-dimension',
6622 'section' => 'betterdocs_single_docs_settings',
6623 'settings' => 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9',
6624 'label' => __( 'Left', 'betterdocs' ),
6625 'priority' => 163,
6626 'input_attrs' => [
6627 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
6628 ]
6629 ] )
6630 );
6631 }
6632
6633 public function betterdocs_doc_single_attachment_content_margin_layout_8_9() {
6634 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_layout_8_9', [
6635 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_layout_8_9'],
6636 'capability' => 'edit_theme_options',
6637 'transport' => 'postMessage',
6638 'sanitize_callback' => [$this->sanitizer, 'integer']
6639
6640 ] );
6641
6642 $this->customizer->add_control( new TitleControl(
6643 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_layout_8_9', [
6644 'type' => 'betterdocs-title',
6645 'section' => 'betterdocs_single_docs_settings',
6646 'settings' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
6647 'label' => __( 'Content Margin', 'betterdocs' ),
6648 'priority' => 163,
6649 'input_attrs' => [
6650 'id' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
6651 'class' => 'betterdocs-dimension'
6652 ]
6653 ] )
6654 );
6655
6656 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9', [
6657 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_top_layout_8_9'],
6658 'capability' => 'edit_theme_options',
6659 'transport' => 'postMessage',
6660 'sanitize_callback' => [$this->sanitizer, 'integer']
6661 ] );
6662
6663 $this->customizer->add_control( new DimensionControl(
6664 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9', [
6665 'type' => 'betterdocs-dimension',
6666 'section' => 'betterdocs_single_docs_settings',
6667 'settings' => 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9',
6668 'label' => __( 'Top', 'betterdocs' ),
6669 'priority' => 163,
6670 'input_attrs' => [
6671 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
6672 ]
6673 ] )
6674 );
6675
6676 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9', [
6677 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_right_layout_8_9'],
6678 'capability' => 'edit_theme_options',
6679 'transport' => 'postMessage',
6680 'sanitize_callback' => [$this->sanitizer, 'integer']
6681
6682 ] );
6683
6684 $this->customizer->add_control( new DimensionControl(
6685 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9', [
6686 'type' => 'betterdocs-dimension',
6687 'section' => 'betterdocs_single_docs_settings',
6688 'settings' => 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9',
6689 'label' => __( 'Right', 'betterdocs' ),
6690 'priority' => 163,
6691 'input_attrs' => [
6692 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
6693 ]
6694 ] )
6695 );
6696
6697 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9', [
6698 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9'],
6699 'capability' => 'edit_theme_options',
6700 'transport' => 'postMessage',
6701 'sanitize_callback' => [$this->sanitizer, 'integer']
6702
6703 ] );
6704
6705 $this->customizer->add_control( new DimensionControl(
6706 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9', [
6707 'type' => 'betterdocs-dimension',
6708 'section' => 'betterdocs_single_docs_settings',
6709 'settings' => 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9',
6710 'label' => __( 'Bottom', 'betterdocs' ),
6711 'priority' => 163,
6712 'input_attrs' => [
6713 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
6714 ]
6715 ] )
6716 );
6717
6718 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9', [
6719 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_left_layout_8_9'],
6720 'capability' => 'edit_theme_options',
6721 'transport' => 'postMessage',
6722 'sanitize_callback' => [$this->sanitizer, 'integer']
6723
6724 ] );
6725
6726 $this->customizer->add_control( new DimensionControl(
6727 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9', [
6728 'type' => 'betterdocs-dimension',
6729 'section' => 'betterdocs_single_docs_settings',
6730 'settings' => 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9',
6731 'label' => __( 'Left', 'betterdocs' ),
6732 'priority' => 163,
6733 'input_attrs' => [
6734 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
6735 ]
6736 ] )
6737 );
6738 }
6739
6740 public function betterdocs_doc_single_attachment_label_color_layout_8_9() {
6741 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_color_layout_8_9', [
6742 'default' => $this->defaults['betterdocs_doc_single_attachment_label_color_layout_8_9'],
6743 'capability' => 'edit_theme_options',
6744 'transport' => 'postMessage',
6745 'sanitize_callback' => [$this->sanitizer, 'rgba']
6746 ] );
6747
6748 $this->customizer->add_control(
6749 new AlphaColorControl(
6750 $this->customizer,
6751 'betterdocs_doc_single_attachment_label_color_layout_8_9',
6752 [
6753 'label' => __( 'Label Color', 'betterdocs' ),
6754 'section' => 'betterdocs_single_docs_settings',
6755 'settings' => 'betterdocs_doc_single_attachment_label_color_layout_8_9',
6756 'priority' => 163
6757 ]
6758 )
6759 );
6760 }
6761
6762 public function betterdocs_doc_single_attachment_label_padding_layout_8_9() {
6763 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_layout_8_9', [
6764 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_layout_8_9'],
6765 'capability' => 'edit_theme_options',
6766 'transport' => 'postMessage',
6767 'sanitize_callback' => [$this->sanitizer, 'integer']
6768
6769 ] );
6770
6771 $this->customizer->add_control( new TitleControl(
6772 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_layout_8_9', [
6773 'type' => 'betterdocs-title',
6774 'section' => 'betterdocs_single_docs_settings',
6775 'settings' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
6776 'label' => __( 'Label Padding', 'betterdocs' ),
6777 'priority' => 163,
6778 'input_attrs' => [
6779 'id' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
6780 'class' => 'betterdocs-dimension'
6781 ]
6782 ] )
6783 );
6784
6785 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9', [
6786 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_top_layout_8_9'],
6787 'capability' => 'edit_theme_options',
6788 'transport' => 'postMessage',
6789 'sanitize_callback' => [$this->sanitizer, 'integer']
6790 ] );
6791
6792 $this->customizer->add_control( new DimensionControl(
6793 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9', [
6794 'type' => 'betterdocs-dimension',
6795 'section' => 'betterdocs_single_docs_settings',
6796 'settings' => 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9',
6797 'label' => __( 'Top', 'betterdocs' ),
6798 'priority' => 163,
6799 'input_attrs' => [
6800 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
6801 ]
6802 ] )
6803 );
6804
6805 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9', [
6806 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_right_layout_8_9'],
6807 'capability' => 'edit_theme_options',
6808 'transport' => 'postMessage',
6809 'sanitize_callback' => [$this->sanitizer, 'integer']
6810
6811 ] );
6812
6813 $this->customizer->add_control( new DimensionControl(
6814 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9', [
6815 'type' => 'betterdocs-dimension',
6816 'section' => 'betterdocs_single_docs_settings',
6817 'settings' => 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9',
6818 'label' => __( 'Right', 'betterdocs' ),
6819 'priority' => 163,
6820 'input_attrs' => [
6821 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
6822 ]
6823 ] )
6824 );
6825
6826 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9', [
6827 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9'],
6828 'capability' => 'edit_theme_options',
6829 'transport' => 'postMessage',
6830 'sanitize_callback' => [$this->sanitizer, 'integer']
6831
6832 ] );
6833
6834 $this->customizer->add_control( new DimensionControl(
6835 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9', [
6836 'type' => 'betterdocs-dimension',
6837 'section' => 'betterdocs_single_docs_settings',
6838 'settings' => 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9',
6839 'label' => __( 'Bottom', 'betterdocs' ),
6840 'priority' => 163,
6841 'input_attrs' => [
6842 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
6843 ]
6844 ] )
6845 );
6846
6847 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9', [
6848 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_left_layout_8_9'],
6849 'capability' => 'edit_theme_options',
6850 'transport' => 'postMessage',
6851 'sanitize_callback' => [$this->sanitizer, 'integer']
6852
6853 ] );
6854
6855 $this->customizer->add_control( new DimensionControl(
6856 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9', [
6857 'type' => 'betterdocs-dimension',
6858 'section' => 'betterdocs_single_docs_settings',
6859 'settings' => 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9',
6860 'label' => __( 'Left', 'betterdocs' ),
6861 'priority' => 163,
6862 'input_attrs' => [
6863 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
6864 ]
6865 ] )
6866 );
6867 }
6868
6869 public function betterdocs_doc_single_attachment_label_margin_layout_8_9() {
6870 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_layout_8_9', [
6871 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_layout_8_9'],
6872 'capability' => 'edit_theme_options',
6873 'transport' => 'postMessage',
6874 'sanitize_callback' => [$this->sanitizer, 'integer']
6875
6876 ] );
6877
6878 $this->customizer->add_control( new TitleControl(
6879 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_layout_8_9', [
6880 'type' => 'betterdocs-title',
6881 'section' => 'betterdocs_single_docs_settings',
6882 'settings' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
6883 'label' => __( 'Label Margin', 'betterdocs' ),
6884 'priority' => 163,
6885 'input_attrs' => [
6886 'id' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
6887 'class' => 'betterdocs-dimension'
6888 ]
6889 ] )
6890 );
6891
6892 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9', [
6893 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_top_layout_8_9'],
6894 'capability' => 'edit_theme_options',
6895 'transport' => 'postMessage',
6896 'sanitize_callback' => [$this->sanitizer, 'integer']
6897 ] );
6898
6899 $this->customizer->add_control( new DimensionControl(
6900 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9', [
6901 'type' => 'betterdocs-dimension',
6902 'section' => 'betterdocs_single_docs_settings',
6903 'settings' => 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9',
6904 'label' => __( 'Top', 'betterdocs' ),
6905 'priority' => 163,
6906 'input_attrs' => [
6907 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
6908 ]
6909 ] )
6910 );
6911
6912 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9', [
6913 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_right_layout_8_9'],
6914 'capability' => 'edit_theme_options',
6915 'transport' => 'postMessage',
6916 'sanitize_callback' => [$this->sanitizer, 'integer']
6917
6918 ] );
6919
6920 $this->customizer->add_control( new DimensionControl(
6921 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9', [
6922 'type' => 'betterdocs-dimension',
6923 'section' => 'betterdocs_single_docs_settings',
6924 'settings' => 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9',
6925 'label' => __( 'Right', 'betterdocs' ),
6926 'priority' => 163,
6927 'input_attrs' => [
6928 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
6929 ]
6930 ] )
6931 );
6932
6933 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9', [
6934 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9'],
6935 'capability' => 'edit_theme_options',
6936 'transport' => 'postMessage',
6937 'sanitize_callback' => [$this->sanitizer, 'integer']
6938 ] );
6939
6940 $this->customizer->add_control( new DimensionControl(
6941 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9', [
6942 'type' => 'betterdocs-dimension',
6943 'section' => 'betterdocs_single_docs_settings',
6944 'settings' => 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9',
6945 'label' => __( 'Bottom', 'betterdocs' ),
6946 'priority' => 163,
6947 'input_attrs' => [
6948 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
6949 ]
6950 ] )
6951 );
6952
6953 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9', [
6954 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_left_layout_8_9'],
6955 'capability' => 'edit_theme_options',
6956 'transport' => 'postMessage',
6957 'sanitize_callback' => [$this->sanitizer, 'integer']
6958 ] );
6959
6960 $this->customizer->add_control( new DimensionControl(
6961 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9', [
6962 'type' => 'betterdocs-dimension',
6963 'section' => 'betterdocs_single_docs_settings',
6964 'settings' => 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9',
6965 'label' => __( 'Left', 'betterdocs' ),
6966 'priority' => 163,
6967 'input_attrs' => [
6968 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
6969 ]
6970 ] )
6971 );
6972 }
6973
6974 public function betterdocs_doc_single_attachment_list_font_size_layout_8_9() {
6975 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_font_size_layout_8_9', [
6976 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_size_layout_8_9'],
6977 'capability' => 'edit_theme_options',
6978 'transport' => 'postMessage',
6979 'sanitize_callback' => [$this->sanitizer, 'integer']
6980
6981 ] );
6982
6983 $this->customizer->add_control( new RangeValueControl(
6984 $this->customizer, 'betterdocs_doc_single_attachment_list_font_size_layout_8_9', [
6985 'type' => 'betterdocs-range-value',
6986 'section' => 'betterdocs_single_docs_settings',
6987 'settings' => 'betterdocs_doc_single_attachment_list_font_size_layout_8_9',
6988 'label' => __( 'List Font Size', 'betterdocs' ),
6989 'priority' => 163,
6990 'input_attrs' => [
6991 'min' => 0,
6992 'max' => 50,
6993 'step' => 1,
6994 'suffix' => 'px' //optional suffix
6995 ]
6996 ] )
6997 );
6998 }
6999
7000 public function betterdocs_doc_single_attachment_list_font_weight_layout_8_9() {
7001 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9', [
7002 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_weight_layout_8_9'],
7003 'capability' => 'edit_theme_options',
7004 'sanitize_callback' => [$this->sanitizer, 'choices']
7005 ] );
7006
7007 $this->customizer->add_control(
7008 new WP_Customize_Control(
7009 $this->customizer,
7010 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
7011 [
7012 'label' => __( 'List Font Weight', 'betterdocs-pro' ),
7013 'section' => 'betterdocs_single_docs_settings',
7014 'settings' => 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
7015 'type' => 'select',
7016 'choices' => [
7017 'normal' => 'Normal',
7018 '100' => '100',
7019 '200' => '200',
7020 '300' => '300',
7021 '400' => '400',
7022 '500' => '500',
7023 '600' => '600',
7024 '700' => '700',
7025 '800' => '800',
7026 '900' => '900'
7027 ],
7028 'priority' => 163
7029 ]
7030 )
7031 );
7032 }
7033
7034 public function betterdocs_doc_single_attachment_list_extension_color_layout_8_9() {
7035 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9', [
7036 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_color_layout_8_9'],
7037 'capability' => 'edit_theme_options',
7038 'transport' => 'postMessage',
7039 'sanitize_callback' => [$this->sanitizer, 'rgba']
7040 ] );
7041
7042 $this->customizer->add_control(
7043 new AlphaColorControl(
7044 $this->customizer,
7045 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
7046 [
7047 'label' => __( 'Extension Color', 'betterdocs' ),
7048 'section' => 'betterdocs_single_docs_settings',
7049 'settings' => 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
7050 'priority' => 163
7051 ]
7052 )
7053 );
7054 }
7055
7056 public function betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9() {
7057 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9', [
7058 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9'],
7059 'capability' => 'edit_theme_options',
7060 'transport' => 'postMessage',
7061 'sanitize_callback' => [$this->sanitizer, 'integer']
7062
7063 ] );
7064
7065 $this->customizer->add_control( new RangeValueControl(
7066 $this->customizer, 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9', [
7067 'type' => 'betterdocs-range-value',
7068 'section' => 'betterdocs_single_docs_settings',
7069 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9',
7070 'label' => __( 'Extension Font Size', 'betterdocs' ),
7071 'priority' => 163,
7072 'input_attrs' => [
7073 'min' => 0,
7074 'max' => 50,
7075 'step' => 1,
7076 'suffix' => 'px' //optional suffix
7077 ]
7078 ] )
7079 );
7080 }
7081
7082 public function betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9() {
7083 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9', [
7084 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9'],
7085 'capability' => 'edit_theme_options',
7086 'sanitize_callback' => [$this->sanitizer, 'choices']
7087 ] );
7088
7089 $this->customizer->add_control(
7090 new WP_Customize_Control(
7091 $this->customizer,
7092 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
7093 [
7094 'label' => __( 'Extension Font Weight', 'betterdocs-pro' ),
7095 'section' => 'betterdocs_single_docs_settings',
7096 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
7097 'type' => 'select',
7098 'choices' => [
7099 'normal' => 'Normal',
7100 '100' => '100',
7101 '200' => '200',
7102 '300' => '300',
7103 '400' => '400',
7104 '500' => '500',
7105 '600' => '600',
7106 '700' => '700',
7107 '800' => '800',
7108 '900' => '900'
7109 ],
7110 'priority' => 163
7111 ]
7112 )
7113 );
7114 }
7115
7116 public function betterdocs_doc_single_attachment_list_color_layout_8_9() {
7117 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_color_layout_8_9', [
7118 'default' => $this->defaults['betterdocs_doc_single_attachment_list_color_layout_8_9'],
7119 'capability' => 'edit_theme_options',
7120 'transport' => 'postMessage',
7121 'sanitize_callback' => [$this->sanitizer, 'rgba']
7122 ] );
7123
7124 $this->customizer->add_control(
7125 new AlphaColorControl(
7126 $this->customizer,
7127 'betterdocs_doc_single_attachment_list_color_layout_8_9',
7128 [
7129 'label' => __( 'List Color', 'betterdocs' ),
7130 'section' => 'betterdocs_single_docs_settings',
7131 'settings' => 'betterdocs_doc_single_attachment_list_color_layout_8_9',
7132 'priority' => 163
7133 ]
7134 )
7135 );
7136 }
7137
7138 public function betterdocs_doc_single_attachment_list_background_color_layout_8_9() {
7139 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_background_color_layout_8_9', [
7140 'default' => $this->defaults['betterdocs_doc_single_attachment_list_background_color_layout_8_9'],
7141 'capability' => 'edit_theme_options',
7142 'transport' => 'postMessage',
7143 'sanitize_callback' => [$this->sanitizer, 'rgba']
7144 ] );
7145
7146 $this->customizer->add_control(
7147 new AlphaColorControl(
7148 $this->customizer,
7149 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
7150 [
7151 'label' => __( 'List Background Color', 'betterdocs' ),
7152 'section' => 'betterdocs_single_docs_settings',
7153 'settings' => 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
7154 'priority' => 163
7155 ]
7156 )
7157 );
7158 }
7159
7160 public function betterdocs_doc_single_attachment_list_padding_layout_8_9() {
7161 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_layout_8_9', [
7162 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_layout_8_9'],
7163 'capability' => 'edit_theme_options',
7164 'transport' => 'postMessage',
7165 'sanitize_callback' => [$this->sanitizer, 'integer']
7166
7167 ] );
7168
7169 $this->customizer->add_control( new TitleControl(
7170 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_layout_8_9', [
7171 'type' => 'betterdocs-title',
7172 'section' => 'betterdocs_single_docs_settings',
7173 'settings' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
7174 'label' => __( 'List Padding', 'betterdocs' ),
7175 'priority' => 163,
7176 'input_attrs' => [
7177 'id' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
7178 'class' => 'betterdocs-dimension'
7179 ]
7180 ] )
7181 );
7182
7183 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9', [
7184 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_top_layout_8_9'],
7185 'capability' => 'edit_theme_options',
7186 'transport' => 'postMessage',
7187 'sanitize_callback' => [$this->sanitizer, 'integer']
7188 ] );
7189
7190 $this->customizer->add_control( new DimensionControl(
7191 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9', [
7192 'type' => 'betterdocs-dimension',
7193 'section' => 'betterdocs_single_docs_settings',
7194 'settings' => 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9',
7195 'label' => __( 'Top', 'betterdocs' ),
7196 'priority' => 163,
7197 'input_attrs' => [
7198 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
7199 ]
7200 ] )
7201 );
7202
7203 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9', [
7204 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_right_layout_8_9'],
7205 'capability' => 'edit_theme_options',
7206 'transport' => 'postMessage',
7207 'sanitize_callback' => [$this->sanitizer, 'integer']
7208
7209 ] );
7210
7211 $this->customizer->add_control( new DimensionControl(
7212 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9', [
7213 'type' => 'betterdocs-dimension',
7214 'section' => 'betterdocs_single_docs_settings',
7215 'settings' => 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9',
7216 'label' => __( 'Right', 'betterdocs' ),
7217 'priority' => 163,
7218 'input_attrs' => [
7219 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
7220 ]
7221 ] )
7222 );
7223
7224 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9', [
7225 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9'],
7226 'capability' => 'edit_theme_options',
7227 'transport' => 'postMessage',
7228 'sanitize_callback' => [$this->sanitizer, 'integer']
7229 ] );
7230
7231 $this->customizer->add_control( new DimensionControl(
7232 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9', [
7233 'type' => 'betterdocs-dimension',
7234 'section' => 'betterdocs_single_docs_settings',
7235 'settings' => 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9',
7236 'label' => __( 'Bottom', 'betterdocs' ),
7237 'priority' => 163,
7238 'input_attrs' => [
7239 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
7240 ]
7241 ] )
7242 );
7243
7244 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9', [
7245 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_left_layout_8_9'],
7246 'capability' => 'edit_theme_options',
7247 'transport' => 'postMessage',
7248 'sanitize_callback' => [$this->sanitizer, 'integer']
7249 ] );
7250
7251 $this->customizer->add_control( new DimensionControl(
7252 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9', [
7253 'type' => 'betterdocs-dimension',
7254 'section' => 'betterdocs_single_docs_settings',
7255 'settings' => 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9',
7256 'label' => __( 'Left', 'betterdocs' ),
7257 'priority' => 163,
7258 'input_attrs' => [
7259 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
7260 ]
7261 ] )
7262 );
7263 }
7264
7265 public function betterdocs_doc_single_attachment_list_margin_layout_8_9() {
7266 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_layout_8_9', [
7267 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_layout_8_9'],
7268 'capability' => 'edit_theme_options',
7269 'transport' => 'postMessage',
7270 'sanitize_callback' => [$this->sanitizer, 'integer']
7271
7272 ] );
7273
7274 $this->customizer->add_control( new TitleControl(
7275 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_layout_8_9', [
7276 'type' => 'betterdocs-title',
7277 'section' => 'betterdocs_single_docs_settings',
7278 'settings' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
7279 'label' => __( 'List Margin', 'betterdocs' ),
7280 'priority' => 163,
7281 'input_attrs' => [
7282 'id' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
7283 'class' => 'betterdocs-dimension'
7284 ]
7285 ] )
7286 );
7287
7288 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9', [
7289 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_top_layout_8_9'],
7290 'capability' => 'edit_theme_options',
7291 'transport' => 'postMessage',
7292 'sanitize_callback' => [$this->sanitizer, 'integer']
7293 ] );
7294
7295 $this->customizer->add_control( new DimensionControl(
7296 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9', [
7297 'type' => 'betterdocs-dimension',
7298 'section' => 'betterdocs_single_docs_settings',
7299 'settings' => 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9',
7300 'label' => __( 'Top', 'betterdocs' ),
7301 'priority' => 163,
7302 'input_attrs' => [
7303 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
7304 ]
7305 ] )
7306 );
7307
7308 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9', [
7309 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_right_layout_8_9'],
7310 'capability' => 'edit_theme_options',
7311 'transport' => 'postMessage',
7312 'sanitize_callback' => [$this->sanitizer, 'integer']
7313
7314 ] );
7315
7316 $this->customizer->add_control( new DimensionControl(
7317 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9', [
7318 'type' => 'betterdocs-dimension',
7319 'section' => 'betterdocs_single_docs_settings',
7320 'settings' => 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9',
7321 'label' => __( 'Right', 'betterdocs' ),
7322 'priority' => 163,
7323 'input_attrs' => [
7324 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
7325 ]
7326 ] )
7327 );
7328
7329 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9', [
7330 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9'],
7331 'capability' => 'edit_theme_options',
7332 'transport' => 'postMessage',
7333 'sanitize_callback' => [$this->sanitizer, 'integer']
7334 ] );
7335
7336 $this->customizer->add_control( new DimensionControl(
7337 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9', [
7338 'type' => 'betterdocs-dimension',
7339 'section' => 'betterdocs_single_docs_settings',
7340 'settings' => 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9',
7341 'label' => __( 'Bottom', 'betterdocs' ),
7342 'priority' => 163,
7343 'input_attrs' => [
7344 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
7345 ]
7346 ] )
7347 );
7348
7349 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9', [
7350 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_left_layout_8_9'],
7351 'capability' => 'edit_theme_options',
7352 'transport' => 'postMessage',
7353 'sanitize_callback' => [$this->sanitizer, 'integer']
7354 ] );
7355
7356 $this->customizer->add_control( new DimensionControl(
7357 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9', [
7358 'type' => 'betterdocs-dimension',
7359 'section' => 'betterdocs_single_docs_settings',
7360 'settings' => 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9',
7361 'label' => __( 'Left', 'betterdocs' ),
7362 'priority' => 163,
7363 'input_attrs' => [
7364 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
7365 ]
7366 ] )
7367 );
7368 }
7369
7370 public function betterdocs_doc_single_related_docs_heading() {
7371 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_heading', [
7372 'default' => 'betterdocs_doc_single_related_docs_heading',
7373 'sanitize_callback' => 'esc_html'
7374 ] );
7375
7376 $this->customizer->add_control( new SeparatorControl(
7377 $this->customizer, 'betterdocs_doc_single_related_docs_heading', [
7378 'label' => __( 'Related Docs', 'betterdocs' ),
7379 'priority' => 163,
7380 'settings' => 'betterdocs_doc_single_related_docs_heading',
7381 'section' => 'betterdocs_single_docs_settings'
7382 ] )
7383 );
7384 }
7385
7386 public function betterdocs_doc_single_related_docs_content_bg_color() {
7387 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_bg_color', [
7388 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_bg_color'],
7389 'capability' => 'edit_theme_options',
7390 'transport' => 'postMessage',
7391 'sanitize_callback' => [$this->sanitizer, 'rgba']
7392 ] );
7393
7394 $this->customizer->add_control(
7395 new AlphaColorControl(
7396 $this->customizer,
7397 'betterdocs_doc_single_related_docs_content_bg_color',
7398 [
7399 'label' => __( 'Content Background Color', 'betterdocs' ),
7400 'section' => 'betterdocs_single_docs_settings',
7401 'settings' => 'betterdocs_doc_single_related_docs_content_bg_color',
7402 'priority' => 163
7403 ]
7404 )
7405 );
7406 }
7407
7408 public function betterdocs_doc_single_related_docs_content_padding() {
7409 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding', [
7410 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding'],
7411 'capability' => 'edit_theme_options',
7412 'transport' => 'postMessage',
7413 'sanitize_callback' => [$this->sanitizer, 'integer']
7414
7415 ] );
7416
7417 $this->customizer->add_control( new TitleControl(
7418 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding', [
7419 'type' => 'betterdocs-title',
7420 'section' => 'betterdocs_single_docs_settings',
7421 'settings' => 'betterdocs_doc_single_related_docs_content_padding',
7422 'label' => __( 'Content Padding', 'betterdocs' ),
7423 'priority' => 163,
7424 'input_attrs' => [
7425 'id' => 'betterdocs_doc_single_related_docs_content_padding',
7426 'class' => 'betterdocs-dimension'
7427 ]
7428 ] )
7429 );
7430
7431 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_top', [
7432 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_top'],
7433 'capability' => 'edit_theme_options',
7434 'transport' => 'postMessage',
7435 'sanitize_callback' => [$this->sanitizer, 'integer']
7436 ] );
7437
7438 $this->customizer->add_control( new DimensionControl(
7439 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_top', [
7440 'type' => 'betterdocs-dimension',
7441 'section' => 'betterdocs_single_docs_settings',
7442 'settings' => 'betterdocs_doc_single_related_docs_content_padding_top',
7443 'label' => __( 'Top', 'betterdocs' ),
7444 'priority' => 163,
7445 'input_attrs' => [
7446 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
7447 ]
7448 ] )
7449 );
7450
7451 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_right', [
7452 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_right'],
7453 'capability' => 'edit_theme_options',
7454 'transport' => 'postMessage',
7455 'sanitize_callback' => [$this->sanitizer, 'integer']
7456
7457 ] );
7458
7459 $this->customizer->add_control( new DimensionControl(
7460 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_right', [
7461 'type' => 'betterdocs-dimension',
7462 'section' => 'betterdocs_single_docs_settings',
7463 'settings' => 'betterdocs_doc_single_related_docs_content_padding_right',
7464 'label' => __( 'Right', 'betterdocs' ),
7465 'priority' => 163,
7466 'input_attrs' => [
7467 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
7468 ]
7469 ] )
7470 );
7471
7472 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_bottom', [
7473 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_bottom'],
7474 'capability' => 'edit_theme_options',
7475 'transport' => 'postMessage',
7476 'sanitize_callback' => [$this->sanitizer, 'integer']
7477
7478 ] );
7479
7480 $this->customizer->add_control( new DimensionControl(
7481 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_bottom', [
7482 'type' => 'betterdocs-dimension',
7483 'section' => 'betterdocs_single_docs_settings',
7484 'settings' => 'betterdocs_doc_single_related_docs_content_padding_bottom',
7485 'label' => __( 'Bottom', 'betterdocs' ),
7486 'priority' => 163,
7487 'input_attrs' => [
7488 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
7489 ]
7490 ] )
7491 );
7492
7493 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_left', [
7494 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_left'],
7495 'capability' => 'edit_theme_options',
7496 'transport' => 'postMessage',
7497 'sanitize_callback' => [$this->sanitizer, 'integer']
7498
7499 ] );
7500
7501 $this->customizer->add_control( new DimensionControl(
7502 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_left', [
7503 'type' => 'betterdocs-dimension',
7504 'section' => 'betterdocs_single_docs_settings',
7505 'settings' => 'betterdocs_doc_single_related_docs_content_padding_left',
7506 'label' => __( 'Left', 'betterdocs' ),
7507 'priority' => 163,
7508 'input_attrs' => [
7509 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
7510 ]
7511 ] )
7512 );
7513 }
7514
7515 public function betterdocs_doc_single_related_docs_content_margin() {
7516 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin', [
7517 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin'],
7518 'capability' => 'edit_theme_options',
7519 'transport' => 'postMessage',
7520 'sanitize_callback' => [$this->sanitizer, 'integer']
7521
7522 ] );
7523
7524 $this->customizer->add_control( new TitleControl(
7525 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin', [
7526 'type' => 'betterdocs-title',
7527 'section' => 'betterdocs_single_docs_settings',
7528 'settings' => 'betterdocs_doc_single_related_docs_content_margin',
7529 'label' => __( 'Content Margin', 'betterdocs' ),
7530 'priority' => 163,
7531 'input_attrs' => [
7532 'id' => 'betterdocs_doc_single_related_docs_content_margin',
7533 'class' => 'betterdocs-dimension'
7534 ]
7535 ] )
7536 );
7537
7538 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_top', [
7539 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_top'],
7540 'capability' => 'edit_theme_options',
7541 'transport' => 'postMessage',
7542 'sanitize_callback' => [$this->sanitizer, 'integer']
7543 ] );
7544
7545 $this->customizer->add_control( new DimensionControl(
7546 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_top', [
7547 'type' => 'betterdocs-dimension',
7548 'section' => 'betterdocs_single_docs_settings',
7549 'settings' => 'betterdocs_doc_single_related_docs_content_margin_top',
7550 'label' => __( 'Top', 'betterdocs' ),
7551 'priority' => 163,
7552 'input_attrs' => [
7553 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
7554 ]
7555 ] )
7556 );
7557
7558 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_right', [
7559 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_right'],
7560 'capability' => 'edit_theme_options',
7561 'transport' => 'postMessage',
7562 'sanitize_callback' => [$this->sanitizer, 'integer']
7563
7564 ] );
7565
7566 $this->customizer->add_control( new DimensionControl(
7567 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_right', [
7568 'type' => 'betterdocs-dimension',
7569 'section' => 'betterdocs_single_docs_settings',
7570 'settings' => 'betterdocs_doc_single_related_docs_content_margin_right',
7571 'label' => __( 'Right', 'betterdocs' ),
7572 'priority' => 163,
7573 'input_attrs' => [
7574 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
7575 ]
7576 ] )
7577 );
7578
7579 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_bottom', [
7580 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_bottom'],
7581 'capability' => 'edit_theme_options',
7582 'transport' => 'postMessage',
7583 'sanitize_callback' => [$this->sanitizer, 'integer']
7584
7585 ] );
7586
7587 $this->customizer->add_control( new DimensionControl(
7588 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_bottom', [
7589 'type' => 'betterdocs-dimension',
7590 'section' => 'betterdocs_single_docs_settings',
7591 'settings' => 'betterdocs_doc_single_related_docs_content_margin_bottom',
7592 'label' => __( 'Bottom', 'betterdocs' ),
7593 'priority' => 163,
7594 'input_attrs' => [
7595 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
7596 ]
7597 ] )
7598 );
7599
7600 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_left', [
7601 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_left'],
7602 'capability' => 'edit_theme_options',
7603 'transport' => 'postMessage',
7604 'sanitize_callback' => [$this->sanitizer, 'integer']
7605
7606 ] );
7607
7608 $this->customizer->add_control( new DimensionControl(
7609 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_left', [
7610 'type' => 'betterdocs-dimension',
7611 'section' => 'betterdocs_single_docs_settings',
7612 'settings' => 'betterdocs_doc_single_related_docs_content_margin_left',
7613 'label' => __( 'Left', 'betterdocs' ),
7614 'priority' => 163,
7615 'input_attrs' => [
7616 'class' => 'betterdocs_doc_single_related_docs_content_margin_left betterdocs-dimension'
7617 ]
7618 ] )
7619 );
7620 }
7621
7622 public function betterdocs_doc_single_related_docs_label_color() {
7623 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_color', [
7624 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_color'],
7625 'capability' => 'edit_theme_options',
7626 'transport' => 'postMessage',
7627 'sanitize_callback' => [$this->sanitizer, 'rgba']
7628 ] );
7629
7630 $this->customizer->add_control(
7631 new AlphaColorControl(
7632 $this->customizer,
7633 'betterdocs_doc_single_related_docs_label_color',
7634 [
7635 'label' => __( 'Label Color', 'betterdocs' ),
7636 'section' => 'betterdocs_single_docs_settings',
7637 'settings' => 'betterdocs_doc_single_related_docs_label_color',
7638 'priority' => 163
7639 ]
7640 )
7641 );
7642 }
7643
7644 public function betterdocs_doc_single_related_docs_label_padding() {
7645 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding', [
7646 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding'],
7647 'capability' => 'edit_theme_options',
7648 'transport' => 'postMessage',
7649 'sanitize_callback' => [$this->sanitizer, 'integer']
7650
7651 ] );
7652
7653 $this->customizer->add_control( new TitleControl(
7654 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding', [
7655 'type' => 'betterdocs-title',
7656 'section' => 'betterdocs_single_docs_settings',
7657 'settings' => 'betterdocs_doc_single_related_docs_label_padding',
7658 'label' => __( 'Label Padding', 'betterdocs' ),
7659 'priority' => 163,
7660 'input_attrs' => [
7661 'id' => 'betterdocs_doc_single_related_docs_label_padding',
7662 'class' => 'betterdocs-dimension'
7663 ]
7664 ] )
7665 );
7666
7667 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_top', [
7668 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_top'],
7669 'capability' => 'edit_theme_options',
7670 'transport' => 'postMessage',
7671 'sanitize_callback' => [$this->sanitizer, 'integer']
7672 ] );
7673
7674 $this->customizer->add_control( new DimensionControl(
7675 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_top', [
7676 'type' => 'betterdocs-dimension',
7677 'section' => 'betterdocs_single_docs_settings',
7678 'settings' => 'betterdocs_doc_single_related_docs_label_padding_top',
7679 'label' => __( 'Top', 'betterdocs' ),
7680 'priority' => 163,
7681 'input_attrs' => [
7682 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
7683 ]
7684 ] )
7685 );
7686
7687 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_right', [
7688 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_right'],
7689 'capability' => 'edit_theme_options',
7690 'transport' => 'postMessage',
7691 'sanitize_callback' => [$this->sanitizer, 'integer']
7692
7693 ] );
7694
7695 $this->customizer->add_control( new DimensionControl(
7696 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_right', [
7697 'type' => 'betterdocs-dimension',
7698 'section' => 'betterdocs_single_docs_settings',
7699 'settings' => 'betterdocs_doc_single_related_docs_label_padding_right',
7700 'label' => __( 'Right', 'betterdocs' ),
7701 'priority' => 163,
7702 'input_attrs' => [
7703 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
7704 ]
7705 ] )
7706 );
7707
7708 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_bottom', [
7709 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_bottom'],
7710 'capability' => 'edit_theme_options',
7711 'transport' => 'postMessage',
7712 'sanitize_callback' => [$this->sanitizer, 'integer']
7713
7714 ] );
7715
7716 $this->customizer->add_control( new DimensionControl(
7717 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_bottom', [
7718 'type' => 'betterdocs-dimension',
7719 'section' => 'betterdocs_single_docs_settings',
7720 'settings' => 'betterdocs_doc_single_related_docs_label_padding_bottom',
7721 'label' => __( 'Bottom', 'betterdocs' ),
7722 'priority' => 163,
7723 'input_attrs' => [
7724 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
7725 ]
7726 ] )
7727 );
7728
7729 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_left', [
7730 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_left'],
7731 'capability' => 'edit_theme_options',
7732 'transport' => 'postMessage',
7733 'sanitize_callback' => [$this->sanitizer, 'integer']
7734
7735 ] );
7736
7737 $this->customizer->add_control( new DimensionControl(
7738 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_left', [
7739 'type' => 'betterdocs-dimension',
7740 'section' => 'betterdocs_single_docs_settings',
7741 'settings' => 'betterdocs_doc_single_related_docs_label_padding_left',
7742 'label' => __( 'Left', 'betterdocs' ),
7743 'priority' => 163,
7744 'input_attrs' => [
7745 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
7746 ]
7747 ] )
7748 );
7749 }
7750
7751 public function betterdocs_doc_single_related_docs_label_margin() {
7752 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin', [
7753 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin'],
7754 'capability' => 'edit_theme_options',
7755 'transport' => 'postMessage',
7756 'sanitize_callback' => [$this->sanitizer, 'integer']
7757
7758 ] );
7759
7760 $this->customizer->add_control( new TitleControl(
7761 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin', [
7762 'type' => 'betterdocs-title',
7763 'section' => 'betterdocs_single_docs_settings',
7764 'settings' => 'betterdocs_doc_single_related_docs_label_margin',
7765 'label' => __( 'Label Margin', 'betterdocs' ),
7766 'priority' => 163,
7767 'input_attrs' => [
7768 'id' => 'betterdocs_doc_single_related_docs_label_margin',
7769 'class' => 'betterdocs-dimension'
7770 ]
7771 ] )
7772 );
7773
7774 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_top', [
7775 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_top'],
7776 'capability' => 'edit_theme_options',
7777 'transport' => 'postMessage',
7778 'sanitize_callback' => [$this->sanitizer, 'integer']
7779 ] );
7780
7781 $this->customizer->add_control( new DimensionControl(
7782 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_top', [
7783 'type' => 'betterdocs-dimension',
7784 'section' => 'betterdocs_single_docs_settings',
7785 'settings' => 'betterdocs_doc_single_related_docs_label_margin_top',
7786 'label' => __( 'Top', 'betterdocs' ),
7787 'priority' => 163,
7788 'input_attrs' => [
7789 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
7790 ]
7791 ] )
7792 );
7793
7794 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_right', [
7795 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_right'],
7796 'capability' => 'edit_theme_options',
7797 'transport' => 'postMessage',
7798 'sanitize_callback' => [$this->sanitizer, 'integer']
7799
7800 ] );
7801
7802 $this->customizer->add_control( new DimensionControl(
7803 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_right', [
7804 'type' => 'betterdocs-dimension',
7805 'section' => 'betterdocs_single_docs_settings',
7806 'settings' => 'betterdocs_doc_single_related_docs_label_margin_right',
7807 'label' => __( 'Right', 'betterdocs' ),
7808 'priority' => 163,
7809 'input_attrs' => [
7810 'class' => 'betterdocs_doc_single_related_docs_label_margin_right betterdocs-dimension'
7811 ]
7812 ] )
7813 );
7814
7815 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_bottom', [
7816 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_bottom'],
7817 'capability' => 'edit_theme_options',
7818 'transport' => 'postMessage',
7819 'sanitize_callback' => [$this->sanitizer, 'integer']
7820 ] );
7821
7822 $this->customizer->add_control( new DimensionControl(
7823 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_bottom', [
7824 'type' => 'betterdocs-dimension',
7825 'section' => 'betterdocs_single_docs_settings',
7826 'settings' => 'betterdocs_doc_single_related_docs_label_margin_bottom',
7827 'label' => __( 'Bottom', 'betterdocs' ),
7828 'priority' => 163,
7829 'input_attrs' => [
7830 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
7831 ]
7832 ] )
7833 );
7834
7835 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_left', [
7836 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_left'],
7837 'capability' => 'edit_theme_options',
7838 'transport' => 'postMessage',
7839 'sanitize_callback' => [$this->sanitizer, 'integer']
7840 ] );
7841
7842 $this->customizer->add_control( new DimensionControl(
7843 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_left', [
7844 'type' => 'betterdocs-dimension',
7845 'section' => 'betterdocs_single_docs_settings',
7846 'settings' => 'betterdocs_doc_single_related_docs_label_margin_left',
7847 'label' => __( 'Left', 'betterdocs' ),
7848 'priority' => 163,
7849 'input_attrs' => [
7850 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
7851 ]
7852 ] )
7853 );
7854 }
7855
7856 public function betterdocs_doc_related_docs_list_font_size() {
7857 $this->customizer->add_setting( 'betterdocs_doc_related_docs_list_font_size', [
7858 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_size'],
7859 'capability' => 'edit_theme_options',
7860 'transport' => 'postMessage',
7861 'sanitize_callback' => [$this->sanitizer, 'integer']
7862
7863 ] );
7864
7865 $this->customizer->add_control( new RangeValueControl(
7866 $this->customizer, 'betterdocs_doc_related_docs_list_font_size', [
7867 'type' => 'betterdocs-range-value',
7868 'section' => 'betterdocs_single_docs_settings',
7869 'settings' => 'betterdocs_doc_related_docs_list_font_size',
7870 'label' => __( 'List Font Size', 'betterdocs' ),
7871 'priority' => 163,
7872 'input_attrs' => [
7873 'min' => 0,
7874 'max' => 50,
7875 'step' => 1,
7876 'suffix' => 'px' //optional suffix
7877 ]
7878 ] )
7879 );
7880 }
7881
7882 public function betterdocs_doc_related_docs_list_font_weight() {
7883 $this->customizer->add_setting( 'betterdocs_doc_related_docs_list_font_weight', [
7884 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_weight'],
7885 'capability' => 'edit_theme_options',
7886 'sanitize_callback' => [$this->sanitizer, 'choices']
7887 ] );
7888
7889 $this->customizer->add_control(
7890 new WP_Customize_Control(
7891 $this->customizer,
7892 'betterdocs_doc_related_docs_list_font_weight',
7893 [
7894 'label' => __( 'List Font Weight', 'betterdocs-pro' ),
7895 'section' => 'betterdocs_single_docs_settings',
7896 'settings' => 'betterdocs_doc_related_docs_list_font_weight',
7897 'type' => 'select',
7898 'choices' => [
7899 'normal' => 'Normal',
7900 '100' => '100',
7901 '200' => '200',
7902 '300' => '300',
7903 '400' => '400',
7904 '500' => '500',
7905 '600' => '600',
7906 '700' => '700',
7907 '800' => '800',
7908 '900' => '900'
7909 ],
7910 'priority' => 163
7911 ]
7912 )
7913 );
7914 }
7915
7916
7917 public function betterdocs_doc_single_related_docs_list_color() {
7918 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_color', [
7919 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_color'],
7920 'capability' => 'edit_theme_options',
7921 'transport' => 'postMessage',
7922 'sanitize_callback' => [$this->sanitizer, 'rgba']
7923 ] );
7924
7925 $this->customizer->add_control(
7926 new AlphaColorControl(
7927 $this->customizer,
7928 'betterdocs_doc_single_related_docs_list_color',
7929 [
7930 'label' => __( 'List Color', 'betterdocs' ),
7931 'section' => 'betterdocs_single_docs_settings',
7932 'settings' => 'betterdocs_doc_single_related_docs_list_color',
7933 'priority' => 163
7934 ]
7935 )
7936 );
7937 }
7938
7939 public function betterdocs_doc_single_related_docs_list_background_color() {
7940 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_background_color', [
7941 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_background_color'],
7942 'capability' => 'edit_theme_options',
7943 'transport' => 'postMessage',
7944 'sanitize_callback' => [$this->sanitizer, 'rgba']
7945 ] );
7946
7947 $this->customizer->add_control(
7948 new AlphaColorControl(
7949 $this->customizer,
7950 'betterdocs_doc_single_related_docs_list_background_color',
7951 [
7952 'label' => __( 'List Background Color', 'betterdocs' ),
7953 'section' => 'betterdocs_single_docs_settings',
7954 'settings' => 'betterdocs_doc_single_related_docs_list_background_color',
7955 'priority' => 163
7956 ]
7957 )
7958 );
7959 }
7960
7961 public function betterdocs_doc_single_related_docs_list_padding() {
7962 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding', [
7963 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding'],
7964 'capability' => 'edit_theme_options',
7965 'transport' => 'postMessage',
7966 'sanitize_callback' => [$this->sanitizer, 'integer']
7967
7968 ] );
7969
7970 $this->customizer->add_control( new TitleControl(
7971 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding', [
7972 'type' => 'betterdocs-title',
7973 'section' => 'betterdocs_single_docs_settings',
7974 'settings' => 'betterdocs_doc_single_related_docs_list_padding',
7975 'label' => __( 'List Padding', 'betterdocs' ),
7976 'priority' => 163,
7977 'input_attrs' => [
7978 'id' => 'betterdocs_doc_single_related_docs_list_padding',
7979 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
7980 ]
7981 ] )
7982 );
7983
7984 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_top', [
7985 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_top'],
7986 'capability' => 'edit_theme_options',
7987 'transport' => 'postMessage',
7988 'sanitize_callback' => [$this->sanitizer, 'integer']
7989 ] );
7990
7991 $this->customizer->add_control( new DimensionControl(
7992 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_top', [
7993 'type' => 'betterdocs-dimension',
7994 'section' => 'betterdocs_single_docs_settings',
7995 'settings' => 'betterdocs_doc_single_related_docs_list_padding_top',
7996 'label' => __( 'Top', 'betterdocs' ),
7997 'priority' => 163,
7998 'input_attrs' => [
7999 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
8000 ]
8001 ] )
8002 );
8003
8004 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_right', [
8005 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_right'],
8006 'capability' => 'edit_theme_options',
8007 'transport' => 'postMessage',
8008 'sanitize_callback' => [$this->sanitizer, 'integer']
8009
8010 ] );
8011
8012 $this->customizer->add_control( new DimensionControl(
8013 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_right', [
8014 'type' => 'betterdocs-dimension',
8015 'section' => 'betterdocs_single_docs_settings',
8016 'settings' => 'betterdocs_doc_single_related_docs_list_padding_right',
8017 'label' => __( 'Right', 'betterdocs' ),
8018 'priority' => 163,
8019 'input_attrs' => [
8020 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
8021 ]
8022 ] )
8023 );
8024
8025 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_bottom', [
8026 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_bottom'],
8027 'capability' => 'edit_theme_options',
8028 'transport' => 'postMessage',
8029 'sanitize_callback' => [$this->sanitizer, 'integer']
8030 ] );
8031
8032 $this->customizer->add_control( new DimensionControl(
8033 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_bottom', [
8034 'type' => 'betterdocs-dimension',
8035 'section' => 'betterdocs_single_docs_settings',
8036 'settings' => 'betterdocs_doc_single_related_docs_list_padding_bottom',
8037 'label' => __( 'Bottom', 'betterdocs' ),
8038 'priority' => 163,
8039 'input_attrs' => [
8040 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
8041 ]
8042 ] )
8043 );
8044
8045 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_left', [
8046 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_left'],
8047 'capability' => 'edit_theme_options',
8048 'transport' => 'postMessage',
8049 'sanitize_callback' => [$this->sanitizer, 'integer']
8050 ] );
8051
8052 $this->customizer->add_control( new DimensionControl(
8053 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_left', [
8054 'type' => 'betterdocs-dimension',
8055 'section' => 'betterdocs_single_docs_settings',
8056 'settings' => 'betterdocs_doc_single_related_docs_list_padding_left',
8057 'label' => __( 'Left', 'betterdocs' ),
8058 'priority' => 163,
8059 'input_attrs' => [
8060 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
8061 ]
8062 ] )
8063 );
8064 }
8065
8066 public function betterdocs_doc_single_related_docs_list_margin() {
8067 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin', [
8068 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin'],
8069 'capability' => 'edit_theme_options',
8070 'transport' => 'postMessage',
8071 'sanitize_callback' => [$this->sanitizer, 'integer']
8072
8073 ] );
8074
8075 $this->customizer->add_control( new TitleControl(
8076 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin', [
8077 'type' => 'betterdocs-title',
8078 'section' => 'betterdocs_single_docs_settings',
8079 'settings' => 'betterdocs_doc_single_related_docs_list_margin',
8080 'label' => __( 'List Margin', 'betterdocs' ),
8081 'priority' => 163,
8082 'input_attrs' => [
8083 'id' => 'betterdocs_doc_single_related_docs_list_margin',
8084 'class' => 'betterdocs-dimension'
8085 ]
8086 ] )
8087 );
8088
8089 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_top', [
8090 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_top'],
8091 'capability' => 'edit_theme_options',
8092 'transport' => 'postMessage',
8093 'sanitize_callback' => [$this->sanitizer, 'integer']
8094 ] );
8095
8096 $this->customizer->add_control( new DimensionControl(
8097 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_top', [
8098 'type' => 'betterdocs-dimension',
8099 'section' => 'betterdocs_single_docs_settings',
8100 'settings' => 'betterdocs_doc_single_related_docs_list_margin_top',
8101 'label' => __( 'Top', 'betterdocs' ),
8102 'priority' => 163,
8103 'input_attrs' => [
8104 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
8105 ]
8106 ] )
8107 );
8108
8109 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_right', [
8110 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_right'],
8111 'capability' => 'edit_theme_options',
8112 'transport' => 'postMessage',
8113 'sanitize_callback' => [$this->sanitizer, 'integer']
8114
8115 ] );
8116
8117 $this->customizer->add_control( new DimensionControl(
8118 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_right', [
8119 'type' => 'betterdocs-dimension',
8120 'section' => 'betterdocs_single_docs_settings',
8121 'settings' => 'betterdocs_doc_single_related_docs_list_margin_right',
8122 'label' => __( 'Right', 'betterdocs' ),
8123 'priority' => 163,
8124 'input_attrs' => [
8125 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
8126 ]
8127 ] )
8128 );
8129
8130 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_bottom', [
8131 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_bottom'],
8132 'capability' => 'edit_theme_options',
8133 'transport' => 'postMessage',
8134 'sanitize_callback' => [$this->sanitizer, 'integer']
8135 ] );
8136
8137 $this->customizer->add_control( new DimensionControl(
8138 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_bottom', [
8139 'type' => 'betterdocs-dimension',
8140 'section' => 'betterdocs_single_docs_settings',
8141 'settings' => 'betterdocs_doc_single_related_docs_list_margin_bottom',
8142 'label' => __( 'Bottom', 'betterdocs' ),
8143 'priority' => 163,
8144 'input_attrs' => [
8145 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
8146 ]
8147 ] )
8148 );
8149
8150 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_left', [
8151 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_left'],
8152 'capability' => 'edit_theme_options',
8153 'transport' => 'postMessage',
8154 'sanitize_callback' => [$this->sanitizer, 'integer']
8155 ] );
8156
8157 $this->customizer->add_control( new DimensionControl(
8158 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_left', [
8159 'type' => 'betterdocs-dimension',
8160 'section' => 'betterdocs_single_docs_settings',
8161 'settings' => 'betterdocs_doc_single_related_docs_list_margin_left',
8162 'label' => __( 'Left', 'betterdocs' ),
8163 'priority' => 163,
8164 'input_attrs' => [
8165 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
8166 ]
8167 ] )
8168 );
8169 }
8170
8171 public function betterdocs_doc_single_related_docs_heading_layout_8_9() {
8172 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_heading_layout_8_9', [
8173 'default' => 'betterdocs_doc_single_related_docs_heading_layout_8_9',
8174 'sanitize_callback' => 'esc_html'
8175 ] );
8176
8177 $this->customizer->add_control( new SeparatorControl(
8178 $this->customizer, 'betterdocs_doc_single_related_docs_heading_layout_8_9', [
8179 'label' => __( 'Related Docs', 'betterdocs' ),
8180 'priority' => 163,
8181 'settings' => 'betterdocs_doc_single_related_docs_heading_layout_8_9',
8182 'section' => 'betterdocs_single_docs_settings'
8183 ] )
8184 );
8185 }
8186
8187 public function betterdocs_doc_single_related_docs_content_bg_color_layout_8_9() {
8188 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9', [
8189 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_bg_color_layout_8_9'],
8190 'capability' => 'edit_theme_options',
8191 'transport' => 'postMessage',
8192 'sanitize_callback' => [$this->sanitizer, 'rgba']
8193 ] );
8194
8195 $this->customizer->add_control(
8196 new AlphaColorControl(
8197 $this->customizer,
8198 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
8199 [
8200 'label' => __( 'Content Background Color', 'betterdocs' ),
8201 'section' => 'betterdocs_single_docs_settings',
8202 'settings' => 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
8203 'priority' => 163
8204 ]
8205 )
8206 );
8207 }
8208
8209 public function betterdocs_doc_single_related_docs_content_padding_layout_8_9() {
8210 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_layout_8_9', [
8211 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_layout_8_9'],
8212 'capability' => 'edit_theme_options',
8213 'transport' => 'postMessage',
8214 'sanitize_callback' => [$this->sanitizer, 'integer']
8215
8216 ] );
8217
8218 $this->customizer->add_control( new TitleControl(
8219 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_layout_8_9', [
8220 'type' => 'betterdocs-title',
8221 'section' => 'betterdocs_single_docs_settings',
8222 'settings' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
8223 'label' => __( 'Content Padding', 'betterdocs' ),
8224 'priority' => 163,
8225 'input_attrs' => [
8226 'id' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
8227 'class' => 'betterdocs-dimension'
8228 ]
8229 ] )
8230 );
8231
8232 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9', [
8233 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_top_layout_8_9'],
8234 'capability' => 'edit_theme_options',
8235 'transport' => 'postMessage',
8236 'sanitize_callback' => [$this->sanitizer, 'integer']
8237 ] );
8238
8239 $this->customizer->add_control( new DimensionControl(
8240 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9', [
8241 'type' => 'betterdocs-dimension',
8242 'section' => 'betterdocs_single_docs_settings',
8243 'settings' => 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9',
8244 'label' => __( 'Top', 'betterdocs' ),
8245 'priority' => 163,
8246 'input_attrs' => [
8247 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
8248 ]
8249 ] )
8250 );
8251
8252 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9', [
8253 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_right_layout_8_9'],
8254 'capability' => 'edit_theme_options',
8255 'transport' => 'postMessage',
8256 'sanitize_callback' => [$this->sanitizer, 'integer']
8257
8258 ] );
8259
8260 $this->customizer->add_control( new DimensionControl(
8261 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9', [
8262 'type' => 'betterdocs-dimension',
8263 'section' => 'betterdocs_single_docs_settings',
8264 'settings' => 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9',
8265 'label' => __( 'Right', 'betterdocs' ),
8266 'priority' => 163,
8267 'input_attrs' => [
8268 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
8269 ]
8270 ] )
8271 );
8272
8273 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9', [
8274 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9'],
8275 'capability' => 'edit_theme_options',
8276 'transport' => 'postMessage',
8277 'sanitize_callback' => [$this->sanitizer, 'integer']
8278
8279 ] );
8280
8281 $this->customizer->add_control( new DimensionControl(
8282 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9', [
8283 'type' => 'betterdocs-dimension',
8284 'section' => 'betterdocs_single_docs_settings',
8285 'settings' => 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9',
8286 'label' => __( 'Bottom', 'betterdocs' ),
8287 'priority' => 163,
8288 'input_attrs' => [
8289 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
8290 ]
8291 ] )
8292 );
8293
8294 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9', [
8295 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_left_layout_8_9'],
8296 'capability' => 'edit_theme_options',
8297 'transport' => 'postMessage',
8298 'sanitize_callback' => [$this->sanitizer, 'integer']
8299
8300 ] );
8301
8302 $this->customizer->add_control( new DimensionControl(
8303 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9', [
8304 'type' => 'betterdocs-dimension',
8305 'section' => 'betterdocs_single_docs_settings',
8306 'settings' => 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9',
8307 'label' => __( 'Left', 'betterdocs' ),
8308 'priority' => 163,
8309 'input_attrs' => [
8310 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
8311 ]
8312 ] )
8313 );
8314 }
8315
8316 public function betterdocs_doc_single_related_docs_content_margin_layout_8_9() {
8317 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_layout_8_9', [
8318 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_layout_8_9'],
8319 'capability' => 'edit_theme_options',
8320 'transport' => 'postMessage',
8321 'sanitize_callback' => [$this->sanitizer, 'integer']
8322
8323 ] );
8324
8325 $this->customizer->add_control( new TitleControl(
8326 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_layout_8_9', [
8327 'type' => 'betterdocs-title',
8328 'section' => 'betterdocs_single_docs_settings',
8329 'settings' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
8330 'label' => __( 'Content Margin', 'betterdocs' ),
8331 'priority' => 163,
8332 'input_attrs' => [
8333 'id' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
8334 'class' => 'betterdocs-dimension'
8335 ]
8336 ] )
8337 );
8338
8339 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9', [
8340 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_top_layout_8_9'],
8341 'capability' => 'edit_theme_options',
8342 'transport' => 'postMessage',
8343 'sanitize_callback' => [$this->sanitizer, 'integer']
8344 ] );
8345
8346 $this->customizer->add_control( new DimensionControl(
8347 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9', [
8348 'type' => 'betterdocs-dimension',
8349 'section' => 'betterdocs_single_docs_settings',
8350 'settings' => 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9',
8351 'label' => __( 'Top', 'betterdocs' ),
8352 'priority' => 163,
8353 'input_attrs' => [
8354 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
8355 ]
8356 ] )
8357 );
8358
8359 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9', [
8360 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_right_layout_8_9'],
8361 'capability' => 'edit_theme_options',
8362 'transport' => 'postMessage',
8363 'sanitize_callback' => [$this->sanitizer, 'integer']
8364
8365 ] );
8366
8367 $this->customizer->add_control( new DimensionControl(
8368 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9', [
8369 'type' => 'betterdocs-dimension',
8370 'section' => 'betterdocs_single_docs_settings',
8371 'settings' => 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9',
8372 'label' => __( 'Right', 'betterdocs' ),
8373 'priority' => 163,
8374 'input_attrs' => [
8375 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
8376 ]
8377 ] )
8378 );
8379
8380 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9', [
8381 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9'],
8382 'capability' => 'edit_theme_options',
8383 'transport' => 'postMessage',
8384 'sanitize_callback' => [$this->sanitizer, 'integer']
8385
8386 ] );
8387
8388 $this->customizer->add_control( new DimensionControl(
8389 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9', [
8390 'type' => 'betterdocs-dimension',
8391 'section' => 'betterdocs_single_docs_settings',
8392 'settings' => 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9',
8393 'label' => __( 'Bottom', 'betterdocs' ),
8394 'priority' => 163,
8395 'input_attrs' => [
8396 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
8397 ]
8398 ] )
8399 );
8400
8401 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9', [
8402 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_left_layout_8_9'],
8403 'capability' => 'edit_theme_options',
8404 'transport' => 'postMessage',
8405 'sanitize_callback' => [$this->sanitizer, 'integer']
8406
8407 ] );
8408
8409 $this->customizer->add_control( new DimensionControl(
8410 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9', [
8411 'type' => 'betterdocs-dimension',
8412 'section' => 'betterdocs_single_docs_settings',
8413 'settings' => 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9',
8414 'label' => __( 'Left', 'betterdocs' ),
8415 'priority' => 163,
8416 'input_attrs' => [
8417 'class' => 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9 betterdocs-dimension'
8418 ]
8419 ] )
8420 );
8421 }
8422
8423 public function betterdocs_doc_single_related_docs_label_color_layout_8_9() {
8424 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_color_layout_8_9', [
8425 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_color_layout_8_9'],
8426 'capability' => 'edit_theme_options',
8427 'transport' => 'postMessage',
8428 'sanitize_callback' => [$this->sanitizer, 'rgba']
8429 ] );
8430
8431 $this->customizer->add_control(
8432 new AlphaColorControl(
8433 $this->customizer,
8434 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
8435 [
8436 'label' => __( 'Label Color', 'betterdocs' ),
8437 'section' => 'betterdocs_single_docs_settings',
8438 'settings' => 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
8439 'priority' => 163
8440 ]
8441 )
8442 );
8443 }
8444
8445 public function betterdocs_doc_single_related_docs_label_padding_layout_8_9() {
8446 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_layout_8_9', [
8447 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_layout_8_9'],
8448 'capability' => 'edit_theme_options',
8449 'transport' => 'postMessage',
8450 'sanitize_callback' => [$this->sanitizer, 'integer']
8451
8452 ] );
8453
8454 $this->customizer->add_control( new TitleControl(
8455 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_layout_8_9', [
8456 'type' => 'betterdocs-title',
8457 'section' => 'betterdocs_single_docs_settings',
8458 'settings' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
8459 'label' => __( 'Label Padding', 'betterdocs' ),
8460 'priority' => 163,
8461 'input_attrs' => [
8462 'id' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
8463 'class' => 'betterdocs-dimension'
8464 ]
8465 ] )
8466 );
8467
8468 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9', [
8469 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_top_layout_8_9'],
8470 'capability' => 'edit_theme_options',
8471 'transport' => 'postMessage',
8472 'sanitize_callback' => [$this->sanitizer, 'integer']
8473 ] );
8474
8475 $this->customizer->add_control( new DimensionControl(
8476 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9', [
8477 'type' => 'betterdocs-dimension',
8478 'section' => 'betterdocs_single_docs_settings',
8479 'settings' => 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9',
8480 'label' => __( 'Top', 'betterdocs' ),
8481 'priority' => 163,
8482 'input_attrs' => [
8483 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
8484 ]
8485 ] )
8486 );
8487
8488 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9', [
8489 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_right_layout_8_9'],
8490 'capability' => 'edit_theme_options',
8491 'transport' => 'postMessage',
8492 'sanitize_callback' => [$this->sanitizer, 'integer']
8493
8494 ] );
8495
8496 $this->customizer->add_control( new DimensionControl(
8497 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9', [
8498 'type' => 'betterdocs-dimension',
8499 'section' => 'betterdocs_single_docs_settings',
8500 'settings' => 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9',
8501 'label' => __( 'Right', 'betterdocs' ),
8502 'priority' => 163,
8503 'input_attrs' => [
8504 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
8505 ]
8506 ] )
8507 );
8508
8509 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9', [
8510 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9'],
8511 'capability' => 'edit_theme_options',
8512 'transport' => 'postMessage',
8513 'sanitize_callback' => [$this->sanitizer, 'integer']
8514
8515 ] );
8516
8517 $this->customizer->add_control( new DimensionControl(
8518 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9', [
8519 'type' => 'betterdocs-dimension',
8520 'section' => 'betterdocs_single_docs_settings',
8521 'settings' => 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9',
8522 'label' => __( 'Bottom', 'betterdocs' ),
8523 'priority' => 163,
8524 'input_attrs' => [
8525 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
8526 ]
8527 ] )
8528 );
8529
8530 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9', [
8531 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_left_layout_8_9'],
8532 'capability' => 'edit_theme_options',
8533 'transport' => 'postMessage',
8534 'sanitize_callback' => [$this->sanitizer, 'integer']
8535
8536 ] );
8537
8538 $this->customizer->add_control( new DimensionControl(
8539 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9', [
8540 'type' => 'betterdocs-dimension',
8541 'section' => 'betterdocs_single_docs_settings',
8542 'settings' => 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9',
8543 'label' => __( 'Left', 'betterdocs' ),
8544 'priority' => 163,
8545 'input_attrs' => [
8546 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
8547 ]
8548 ] )
8549 );
8550 }
8551
8552 public function betterdocs_doc_single_related_docs_label_margin_layout_8_9() {
8553 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_layout_8_9', [
8554 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_layout_8_9'],
8555 'capability' => 'edit_theme_options',
8556 'transport' => 'postMessage',
8557 'sanitize_callback' => [$this->sanitizer, 'integer']
8558
8559 ] );
8560
8561 $this->customizer->add_control( new TitleControl(
8562 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_layout_8_9', [
8563 'type' => 'betterdocs-title',
8564 'section' => 'betterdocs_single_docs_settings',
8565 'settings' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
8566 'label' => __( 'Label Margin', 'betterdocs' ),
8567 'priority' => 163,
8568 'input_attrs' => [
8569 'id' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
8570 'class' => 'betterdocs-dimension'
8571 ]
8572 ] )
8573 );
8574
8575 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9', [
8576 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_top_layout_8_9'],
8577 'capability' => 'edit_theme_options',
8578 'transport' => 'postMessage',
8579 'sanitize_callback' => [$this->sanitizer, 'integer']
8580 ] );
8581
8582 $this->customizer->add_control( new DimensionControl(
8583 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9', [
8584 'type' => 'betterdocs-dimension',
8585 'section' => 'betterdocs_single_docs_settings',
8586 'settings' => 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9',
8587 'label' => __( 'Top', 'betterdocs' ),
8588 'priority' => 163,
8589 'input_attrs' => [
8590 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
8591 ]
8592 ] )
8593 );
8594
8595 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9', [
8596 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_right_layout_8_9'],
8597 'capability' => 'edit_theme_options',
8598 'transport' => 'postMessage',
8599 'sanitize_callback' => [$this->sanitizer, 'integer']
8600
8601 ] );
8602
8603 $this->customizer->add_control( new DimensionControl(
8604 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9', [
8605 'type' => 'betterdocs-dimension',
8606 'section' => 'betterdocs_single_docs_settings',
8607 'settings' => 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9',
8608 'label' => __( 'Right', 'betterdocs' ),
8609 'priority' => 163,
8610 'input_attrs' => [
8611 'class' => 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9 betterdocs-dimension'
8612 ]
8613 ] )
8614 );
8615
8616 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9', [
8617 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9'],
8618 'capability' => 'edit_theme_options',
8619 'transport' => 'postMessage',
8620 'sanitize_callback' => [$this->sanitizer, 'integer']
8621 ] );
8622
8623 $this->customizer->add_control( new DimensionControl(
8624 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9', [
8625 'type' => 'betterdocs-dimension',
8626 'section' => 'betterdocs_single_docs_settings',
8627 'settings' => 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9',
8628 'label' => __( 'Bottom', 'betterdocs' ),
8629 'priority' => 163,
8630 'input_attrs' => [
8631 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
8632 ]
8633 ] )
8634 );
8635
8636 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9', [
8637 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_left_layout_8_9'],
8638 'capability' => 'edit_theme_options',
8639 'transport' => 'postMessage',
8640 'sanitize_callback' => [$this->sanitizer, 'integer']
8641 ] );
8642
8643 $this->customizer->add_control( new DimensionControl(
8644 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9', [
8645 'type' => 'betterdocs-dimension',
8646 'section' => 'betterdocs_single_docs_settings',
8647 'settings' => 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9',
8648 'label' => __( 'Left', 'betterdocs' ),
8649 'priority' => 163,
8650 'input_attrs' => [
8651 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
8652 ]
8653 ] )
8654 );
8655 }
8656
8657 public function betterdocs_doc_related_docs_list_font_size_layout_8_9() {
8658 $this->customizer->add_setting( 'betterdocs_doc_related_docs_list_font_size_layout_8_9', [
8659 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_size_layout_8_9'],
8660 'capability' => 'edit_theme_options',
8661 'transport' => 'postMessage',
8662 'sanitize_callback' => [$this->sanitizer, 'integer']
8663
8664 ] );
8665
8666 $this->customizer->add_control( new RangeValueControl(
8667 $this->customizer, 'betterdocs_doc_related_docs_list_font_size_layout_8_9', [
8668 'type' => 'betterdocs-range-value',
8669 'section' => 'betterdocs_single_docs_settings',
8670 'settings' => 'betterdocs_doc_related_docs_list_font_size_layout_8_9',
8671 'label' => __( 'List Font Size', 'betterdocs' ),
8672 'priority' => 163,
8673 'input_attrs' => [
8674 'min' => 0,
8675 'max' => 50,
8676 'step' => 1,
8677 'suffix' => 'px' //optional suffix
8678 ]
8679 ] )
8680 );
8681 }
8682
8683 public function betterdocs_doc_related_docs_list_font_weight_layout_8_9() {
8684 $this->customizer->add_setting( 'betterdocs_doc_related_docs_list_font_weight_layout_8_9', [
8685 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_weight_layout_8_9'],
8686 'capability' => 'edit_theme_options',
8687 'sanitize_callback' => [$this->sanitizer, 'choices']
8688 ] );
8689
8690 $this->customizer->add_control(
8691 new WP_Customize_Control(
8692 $this->customizer,
8693 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
8694 [
8695 'label' => __( 'List Font Weight', 'betterdocs-pro' ),
8696 'section' => 'betterdocs_single_docs_settings',
8697 'settings' => 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
8698 'type' => 'select',
8699 'choices' => [
8700 'normal' => 'Normal',
8701 '100' => '100',
8702 '200' => '200',
8703 '300' => '300',
8704 '400' => '400',
8705 '500' => '500',
8706 '600' => '600',
8707 '700' => '700',
8708 '800' => '800',
8709 '900' => '900'
8710 ],
8711 'priority' => 163
8712 ]
8713 )
8714 );
8715 }
8716
8717
8718 public function betterdocs_doc_single_related_docs_list_color_layout_8_9() {
8719 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_color_layout_8_9', [
8720 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_color_layout_8_9'],
8721 'capability' => 'edit_theme_options',
8722 'transport' => 'postMessage',
8723 'sanitize_callback' => [$this->sanitizer, 'rgba']
8724 ] );
8725
8726 $this->customizer->add_control(
8727 new AlphaColorControl(
8728 $this->customizer,
8729 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
8730 [
8731 'label' => __( 'List Color', 'betterdocs' ),
8732 'section' => 'betterdocs_single_docs_settings',
8733 'settings' => 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
8734 'priority' => 163
8735 ]
8736 )
8737 );
8738 }
8739
8740 public function betterdocs_doc_single_related_docs_list_background_color_layout_8_9() {
8741 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9', [
8742 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_background_color_layout_8_9'],
8743 'capability' => 'edit_theme_options',
8744 'transport' => 'postMessage',
8745 'sanitize_callback' => [$this->sanitizer, 'rgba']
8746 ] );
8747
8748 $this->customizer->add_control(
8749 new AlphaColorControl(
8750 $this->customizer,
8751 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
8752 [
8753 'label' => __( 'List Background Color', 'betterdocs' ),
8754 'section' => 'betterdocs_single_docs_settings',
8755 'settings' => 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
8756 'priority' => 163
8757 ]
8758 )
8759 );
8760 }
8761
8762 public function betterdocs_doc_single_related_docs_list_padding_layout_8_9() {
8763 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_layout_8_9', [
8764 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_layout_8_9'],
8765 'capability' => 'edit_theme_options',
8766 'transport' => 'postMessage',
8767 'sanitize_callback' => [$this->sanitizer, 'integer']
8768
8769 ] );
8770
8771 $this->customizer->add_control( new TitleControl(
8772 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_layout_8_9', [
8773 'type' => 'betterdocs-title',
8774 'section' => 'betterdocs_single_docs_settings',
8775 'settings' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
8776 'label' => __( 'List Padding', 'betterdocs' ),
8777 'priority' => 163,
8778 'input_attrs' => [
8779 'id' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
8780 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
8781 ]
8782 ] )
8783 );
8784
8785 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9', [
8786 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_top_layout_8_9'],
8787 'capability' => 'edit_theme_options',
8788 'transport' => 'postMessage',
8789 'sanitize_callback' => [$this->sanitizer, 'integer']
8790 ] );
8791
8792 $this->customizer->add_control( new DimensionControl(
8793 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9', [
8794 'type' => 'betterdocs-dimension',
8795 'section' => 'betterdocs_single_docs_settings',
8796 'settings' => 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9',
8797 'label' => __( 'Top', 'betterdocs' ),
8798 'priority' => 163,
8799 'input_attrs' => [
8800 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
8801 ]
8802 ] )
8803 );
8804
8805 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9', [
8806 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_right_layout_8_9'],
8807 'capability' => 'edit_theme_options',
8808 'transport' => 'postMessage',
8809 'sanitize_callback' => [$this->sanitizer, 'integer']
8810
8811 ] );
8812
8813 $this->customizer->add_control( new DimensionControl(
8814 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9', [
8815 'type' => 'betterdocs-dimension',
8816 'section' => 'betterdocs_single_docs_settings',
8817 'settings' => 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9',
8818 'label' => __( 'Right', 'betterdocs' ),
8819 'priority' => 163,
8820 'input_attrs' => [
8821 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
8822 ]
8823 ] )
8824 );
8825
8826 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9', [
8827 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9'],
8828 'capability' => 'edit_theme_options',
8829 'transport' => 'postMessage',
8830 'sanitize_callback' => [$this->sanitizer, 'integer']
8831 ] );
8832
8833 $this->customizer->add_control( new DimensionControl(
8834 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9', [
8835 'type' => 'betterdocs-dimension',
8836 'section' => 'betterdocs_single_docs_settings',
8837 'settings' => 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9',
8838 'label' => __( 'Bottom', 'betterdocs' ),
8839 'priority' => 163,
8840 'input_attrs' => [
8841 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
8842 ]
8843 ] )
8844 );
8845
8846 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9', [
8847 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_left_layout_8_9'],
8848 'capability' => 'edit_theme_options',
8849 'transport' => 'postMessage',
8850 'sanitize_callback' => [$this->sanitizer, 'integer']
8851 ] );
8852
8853 $this->customizer->add_control( new DimensionControl(
8854 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9', [
8855 'type' => 'betterdocs-dimension',
8856 'section' => 'betterdocs_single_docs_settings',
8857 'settings' => 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9',
8858 'label' => __( 'Left', 'betterdocs' ),
8859 'priority' => 163,
8860 'input_attrs' => [
8861 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
8862 ]
8863 ] )
8864 );
8865 }
8866
8867 public function betterdocs_doc_single_related_docs_list_margin_layout_8_9() {
8868 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_layout_8_9', [
8869 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_layout_8_9'],
8870 'capability' => 'edit_theme_options',
8871 'transport' => 'postMessage',
8872 'sanitize_callback' => [$this->sanitizer, 'integer']
8873
8874 ] );
8875
8876 $this->customizer->add_control( new TitleControl(
8877 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_layout_8_9', [
8878 'type' => 'betterdocs-title',
8879 'section' => 'betterdocs_single_docs_settings',
8880 'settings' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
8881 'label' => __( 'List Margin', 'betterdocs' ),
8882 'priority' => 163,
8883 'input_attrs' => [
8884 'id' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
8885 'class' => 'betterdocs-dimension'
8886 ]
8887 ] )
8888 );
8889
8890 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9', [
8891 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_top_layout_8_9'],
8892 'capability' => 'edit_theme_options',
8893 'transport' => 'postMessage',
8894 'sanitize_callback' => [$this->sanitizer, 'integer']
8895 ] );
8896
8897 $this->customizer->add_control( new DimensionControl(
8898 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9', [
8899 'type' => 'betterdocs-dimension',
8900 'section' => 'betterdocs_single_docs_settings',
8901 'settings' => 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9',
8902 'label' => __( 'Top', 'betterdocs' ),
8903 'priority' => 163,
8904 'input_attrs' => [
8905 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
8906 ]
8907 ] )
8908 );
8909
8910 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9', [
8911 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_right_layout_8_9'],
8912 'capability' => 'edit_theme_options',
8913 'transport' => 'postMessage',
8914 'sanitize_callback' => [$this->sanitizer, 'integer']
8915
8916 ] );
8917
8918 $this->customizer->add_control( new DimensionControl(
8919 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9', [
8920 'type' => 'betterdocs-dimension',
8921 'section' => 'betterdocs_single_docs_settings',
8922 'settings' => 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9',
8923 'label' => __( 'Right', 'betterdocs' ),
8924 'priority' => 163,
8925 'input_attrs' => [
8926 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
8927 ]
8928 ] )
8929 );
8930
8931 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9', [
8932 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9'],
8933 'capability' => 'edit_theme_options',
8934 'transport' => 'postMessage',
8935 'sanitize_callback' => [$this->sanitizer, 'integer']
8936 ] );
8937
8938 $this->customizer->add_control( new DimensionControl(
8939 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9', [
8940 'type' => 'betterdocs-dimension',
8941 'section' => 'betterdocs_single_docs_settings',
8942 'settings' => 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9',
8943 'label' => __( 'Bottom', 'betterdocs' ),
8944 'priority' => 163,
8945 'input_attrs' => [
8946 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
8947 ]
8948 ] )
8949 );
8950
8951 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9', [
8952 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_left_layout_8_9'],
8953 'capability' => 'edit_theme_options',
8954 'transport' => 'postMessage',
8955 'sanitize_callback' => [$this->sanitizer, 'integer']
8956 ] );
8957
8958 $this->customizer->add_control( new DimensionControl(
8959 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9', [
8960 'type' => 'betterdocs-dimension',
8961 'section' => 'betterdocs_single_docs_settings',
8962 'settings' => 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9',
8963 'label' => __( 'Left', 'betterdocs' ),
8964 'priority' => 163,
8965 'input_attrs' => [
8966 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
8967 ]
8968 ] )
8969 );
8970 }
8971 }
8972