PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.7.3
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.7.3
4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 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.7.3, at includes/Admin/Customizer/Sections/SingleDoc.php

8,861 lines 408.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPDeveloper\BetterDocs\Admin\Customizer\Sections;
4
5 use WP_Customize_Control;
6 use WP_Customize_Image_Control;
7 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\TitleControl;
8 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\NumberControl;
9 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\SelectControl;
10 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\ToggleControl;
11 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\DimensionControl;
12 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\SeparatorControl;
13 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\AlphaColorControl;
14 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\RadioImageControl;
15 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\RangeValueControl;
16
17 class SingleDoc extends Section {
18 /**
19 * Section Priority
20 * @var int
21 */
22 protected $priority = 101;
23
24 /**
25 * Get the section id.
26 * @return string
27 */
28 public function get_id() {
29 return 'betterdocs_single_docs_settings';
30 }
31
32 /**
33 * Get the title of the section.
34 * @return string
35 */
36 public function get_title() {
37 return __( 'Single Doc', 'betterdocs' );
38 }
39
40 public function single_layout_select() {
41
42 $encyclopeia_suorce = betterdocs()->settings->get('encyclopedia_source', 'docs');
43
44 $this->customizer->add_setting( '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_text() {
4655 $this->customizer->add_setting( 'betterdocs_post_reactions_text', [
4656 'default' => $this->defaults['betterdocs_post_reactions_text'],
4657 'capability' => 'edit_theme_options',
4658 'sanitize_callback' => 'esc_html'
4659 ] );
4660
4661 $this->customizer->add_control(
4662 new SelectControl(
4663 $this->customizer,
4664 'betterdocs_post_reactions_text',
4665 [
4666 'label' => __( 'Reactions Title', 'betterdocs' ),
4667 'priority' => 161,
4668 'section' => 'betterdocs_single_docs_settings',
4669 'settings' => 'betterdocs_post_reactions_text',
4670 'type' => 'text'
4671 ]
4672 )
4673 );
4674 }
4675
4676 public function post_reactions_text_2() {
4677 $this->customizer->add_setting( 'betterdocs_post_reactions_text_2', [
4678 'default' => $this->defaults['betterdocs_post_reactions_text_2'],
4679 'capability' => 'edit_theme_options',
4680 'sanitize_callback' => 'esc_html'
4681 ] );
4682
4683 $this->customizer->add_control(
4684 new SelectControl(
4685 $this->customizer,
4686 'betterdocs_post_reactions_text_2',
4687 [
4688 'label' => __( 'Reactions Title', 'betterdocs' ),
4689 'priority' => 161,
4690 'section' => 'betterdocs_single_docs_settings',
4691 'settings' => 'betterdocs_post_reactions_text_2',
4692 'type' => 'text'
4693 ]
4694 )
4695 );
4696 }
4697
4698 public function reactions_background_color() {
4699 $this->customizer->add_setting( 'reactions_background_color', [
4700 'default' => $this->defaults['reactions_background_color'],
4701 'capability' => 'edit_theme_options',
4702 'transport' => 'postMessage',
4703 'sanitize_callback' => [$this->sanitizer, 'rgba']
4704 ] );
4705
4706 $this->customizer->add_control(
4707 new AlphaColorControl(
4708 $this->customizer,
4709 'reactions_background_color',
4710 [
4711 'label' => __( 'Reactions Background Color', 'betterdocs' ),
4712 'priority' => 162,
4713 'section' => 'betterdocs_single_docs_settings',
4714 'settings' => 'reactions_background_color'
4715 ]
4716 )
4717 );
4718 }
4719
4720 public function post_reactions_text_color() {
4721 $this->customizer->add_setting( 'betterdocs_post_reactions_text_color', [
4722 'default' => $this->defaults['betterdocs_post_reactions_text_color'],
4723 'capability' => 'edit_theme_options',
4724 'transport' => 'postMessage',
4725 'sanitize_callback' => [$this->sanitizer, 'rgba']
4726 ] );
4727
4728 $this->customizer->add_control(
4729 new AlphaColorControl(
4730 $this->customizer,
4731 'betterdocs_post_reactions_text_color',
4732 [
4733 'label' => __( 'Reactions Text Color', 'betterdocs' ),
4734 'priority' => 162,
4735 'section' => 'betterdocs_single_docs_settings',
4736 'settings' => 'betterdocs_post_reactions_text_color'
4737 ]
4738 )
4739 );
4740 }
4741
4742 public function post_reactions_icon_color() {
4743 $this->customizer->add_setting( 'betterdocs_post_reactions_icon_color', [
4744 'default' => $this->defaults['betterdocs_post_reactions_icon_color'],
4745 'capability' => 'edit_theme_options',
4746 'transport' => 'postMessage',
4747 'sanitize_callback' => [$this->sanitizer, 'rgba']
4748 ] );
4749
4750 $this->customizer->add_control(
4751 new AlphaColorControl(
4752 $this->customizer,
4753 'betterdocs_post_reactions_icon_color',
4754 [
4755 'label' => __( 'Reactions Icon Background Color', 'betterdocs' ),
4756 'priority' => 163,
4757 'section' => 'betterdocs_single_docs_settings',
4758 'settings' => 'betterdocs_post_reactions_icon_color'
4759 ]
4760 )
4761 );
4762 }
4763
4764 public function post_reactions_icon_svg_color() {
4765 $this->customizer->add_setting( 'betterdocs_post_reactions_icon_svg_color', [
4766 'default' => $this->defaults['betterdocs_post_reactions_icon_svg_color'],
4767 'capability' => 'edit_theme_options',
4768 'transport' => 'postMessage',
4769 'sanitize_callback' => [$this->sanitizer, 'rgba']
4770 ] );
4771
4772 $this->customizer->add_control(
4773 new AlphaColorControl(
4774 $this->customizer,
4775 'betterdocs_post_reactions_icon_svg_color',
4776 [
4777 'label' => __( 'Reactions Icon Color', 'betterdocs' ),
4778 'priority' => 163,
4779 'section' => 'betterdocs_single_docs_settings',
4780 'settings' => 'betterdocs_post_reactions_icon_svg_color'
4781 ]
4782 )
4783 );
4784 }
4785
4786 public function post_reactions_icon_hover_bg_color() {
4787 $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_bg_color', [
4788 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_bg_color'],
4789 'capability' => 'edit_theme_options',
4790 'sanitize_callback' => [$this->sanitizer, 'rgba']
4791 ] );
4792
4793 $this->customizer->add_control(
4794 new AlphaColorControl(
4795 $this->customizer,
4796 'betterdocs_post_reactions_icon_hover_bg_color',
4797 [
4798 'label' => __( 'Reactions Icon Hover Background Color', 'betterdocs' ),
4799 'priority' => 163,
4800 'section' => 'betterdocs_single_docs_settings',
4801 'settings' => 'betterdocs_post_reactions_icon_hover_bg_color'
4802 ]
4803 )
4804 );
4805 }
4806
4807 public function post_reactions_icon_hover_svg_color() {
4808 $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_svg_color', [
4809 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_svg_color'],
4810 'capability' => 'edit_theme_options',
4811 'sanitize_callback' => [$this->sanitizer, 'rgba']
4812 ] );
4813
4814 $this->customizer->add_control(
4815 new AlphaColorControl(
4816 $this->customizer,
4817 'betterdocs_post_reactions_icon_hover_svg_color',
4818 [
4819 'label' => __( 'Reactions Icon Hover Color', 'betterdocs' ),
4820 'priority' => 163,
4821 'section' => 'betterdocs_single_docs_settings',
4822 'settings' => 'betterdocs_post_reactions_icon_hover_svg_color'
4823 ]
4824 )
4825 );
4826 }
4827
4828 public function reactions_background_color_layout_8() {
4829 $this->customizer->add_setting( 'reactions_background_color_layout_8', [
4830 'default' => $this->defaults['reactions_background_color_layout_8'],
4831 'capability' => 'edit_theme_options',
4832 'transport' => 'postMessage',
4833 'sanitize_callback' => [$this->sanitizer, 'rgba']
4834 ] );
4835
4836 $this->customizer->add_control(
4837 new AlphaColorControl(
4838 $this->customizer,
4839 'reactions_background_color_layout_8',
4840 [
4841 'label' => __( 'Reactions Background Color', 'betterdocs' ),
4842 'priority' => 162,
4843 'section' => 'betterdocs_single_docs_settings',
4844 'settings' => 'reactions_background_color_layout_8'
4845 ]
4846 )
4847 );
4848 }
4849
4850 public function reactions_background_color_layout_9() {
4851 $this->customizer->add_setting( 'reactions_background_color_layout_9', [
4852 'default' => $this->defaults['reactions_background_color_layout_9'],
4853 'capability' => 'edit_theme_options',
4854 'transport' => 'postMessage',
4855 'sanitize_callback' => [$this->sanitizer, 'rgba']
4856 ] );
4857
4858 $this->customizer->add_control(
4859 new AlphaColorControl(
4860 $this->customizer,
4861 'reactions_background_color_layout_9',
4862 [
4863 'label' => __( 'Reactions Background Color', 'betterdocs' ),
4864 'priority' => 162,
4865 'section' => 'betterdocs_single_docs_settings',
4866 'settings' => 'reactions_background_color_layout_9'
4867 ]
4868 )
4869 );
4870 }
4871
4872 public function post_reactions_text_color_layout_8_9() {
4873 $this->customizer->add_setting( 'betterdocs_post_reactions_text_color_layout_8_9', [
4874 'default' => $this->defaults['betterdocs_post_reactions_text_color_layout_8_9'],
4875 'capability' => 'edit_theme_options',
4876 'transport' => 'postMessage',
4877 'sanitize_callback' => [$this->sanitizer, 'rgba']
4878 ] );
4879
4880 $this->customizer->add_control(
4881 new AlphaColorControl(
4882 $this->customizer,
4883 'betterdocs_post_reactions_text_color_layout_8_9',
4884 [
4885 'label' => __( 'Reactions Text Color', 'betterdocs' ),
4886 'priority' => 162,
4887 'section' => 'betterdocs_single_docs_settings',
4888 'settings' => 'betterdocs_post_reactions_text_color_layout_8_9'
4889 ]
4890 )
4891 );
4892 }
4893
4894 public function post_reactions_icon_color_layout_8_9() {
4895 $this->customizer->add_setting( 'betterdocs_post_reactions_icon_color_layout_8_9', [
4896 'default' => $this->defaults['betterdocs_post_reactions_icon_color_layout_8_9'],
4897 'capability' => 'edit_theme_options',
4898 'transport' => 'postMessage',
4899 'sanitize_callback' => [$this->sanitizer, 'rgba']
4900 ] );
4901
4902 $this->customizer->add_control(
4903 new AlphaColorControl(
4904 $this->customizer,
4905 'betterdocs_post_reactions_icon_color_layout_8_9',
4906 [
4907 'label' => __( 'Reactions Icon Background Color', 'betterdocs' ),
4908 'priority' => 163,
4909 'section' => 'betterdocs_single_docs_settings',
4910 'settings' => 'betterdocs_post_reactions_icon_color_layout_8_9'
4911 ]
4912 )
4913 );
4914 }
4915
4916 public function post_reactions_margin_layout_8() {
4917 $this->customizer->add_setting( 'post_reactions_margin_layout_8', [
4918 'default' => $this->defaults['post_reactions_margin_layout_8'],
4919 'capability' => 'edit_theme_options',
4920 'transport' => 'postMessage',
4921 'sanitize_callback' => [$this->sanitizer, 'integer']
4922 ] );
4923
4924 $this->customizer->add_control( new TitleControl(
4925 $this->customizer, 'post_reactions_margin_layout_8', [
4926 'type' => 'betterdocs-title',
4927 'section' => 'betterdocs_single_docs_settings',
4928 'settings' => 'post_reactions_margin_layout_8',
4929 'label' => __( 'Margin', 'betterdocs' ),
4930 'priority' => 163,
4931 'input_attrs' => [
4932 'id' => 'post_reactions_margin_layout_8',
4933 'class' => 'betterdocs-dimension'
4934 ]
4935 ] )
4936 );
4937
4938 $this->customizer->add_setting( 'post_reactions_margin_top_layout_8', [
4939 'default' => $this->defaults['post_reactions_margin_top_layout_8'],
4940 'capability' => 'edit_theme_options',
4941 'transport' => 'postMessage',
4942 'sanitize_callback' => [$this->sanitizer, 'integer']
4943 ] );
4944
4945 $this->customizer->add_control( new DimensionControl(
4946 $this->customizer, 'post_reactions_margin_top_layout_8', [
4947 'type' => 'betterdocs-dimension',
4948 'section' => 'betterdocs_single_docs_settings',
4949 'settings' => 'post_reactions_margin_top_layout_8',
4950 'label' => __( 'Top', 'betterdocs' ),
4951 'priority' => 163,
4952 'input_attrs' => [
4953 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
4954 ]
4955 ] )
4956 );
4957
4958 $this->customizer->add_setting( 'post_reactions_margin_right_layout_8', [
4959 'default' => $this->defaults['post_reactions_margin_right_layout_8'],
4960 'capability' => 'edit_theme_options',
4961 'transport' => 'postMessage',
4962 'sanitize_callback' => [$this->sanitizer, 'integer']
4963 ] );
4964
4965 $this->customizer->add_control( new DimensionControl(
4966 $this->customizer, 'post_reactions_margin_right_layout_8', [
4967 'type' => 'betterdocs-dimension',
4968 'section' => 'betterdocs_single_docs_settings',
4969 'settings' => 'post_reactions_margin_right_layout_8',
4970 'label' => __( 'Right', 'betterdocs' ),
4971 'priority' => 163,
4972 'input_attrs' => [
4973 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
4974 ]
4975 ] )
4976 );
4977
4978 $this->customizer->add_setting( 'post_reactions_margin_bottom_layout_8', [
4979 'default' => $this->defaults['post_reactions_margin_bottom_layout_8'],
4980 'capability' => 'edit_theme_options',
4981 'transport' => 'postMessage',
4982 'sanitize_callback' => [$this->sanitizer, 'integer']
4983 ] );
4984
4985 $this->customizer->add_control( new DimensionControl(
4986 $this->customizer, 'post_reactions_margin_bottom_layout_8', [
4987 'type' => 'betterdocs-dimension',
4988 'section' => 'betterdocs_single_docs_settings',
4989 'settings' => 'post_reactions_margin_bottom_layout_8',
4990 'label' => __( 'Bottom', 'betterdocs' ),
4991 'priority' => 163,
4992 'input_attrs' => [
4993 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
4994 ]
4995 ] )
4996 );
4997
4998 $this->customizer->add_setting( 'post_reactions_margin_left_layout_8', [
4999 'default' => $this->defaults['post_reactions_margin_left_layout_8'],
5000 'capability' => 'edit_theme_options',
5001 'transport' => 'postMessage',
5002 'sanitize_callback' => [$this->sanitizer, 'integer']
5003 ] );
5004
5005 $this->customizer->add_control( new DimensionControl(
5006 $this->customizer, 'post_reactions_margin_left_layout_8', [
5007 'type' => 'betterdocs-dimension',
5008 'section' => 'betterdocs_single_docs_settings',
5009 'settings' => 'post_reactions_margin_left_layout_8',
5010 'label' => __( 'Left', 'betterdocs' ),
5011 'priority' => 163,
5012 'input_attrs' => [
5013 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
5014 ]
5015 ] )
5016 );
5017 }
5018
5019 public function post_reactions_margin_layout_9() {
5020 $this->customizer->add_setting( 'post_reactions_margin_layout_9', [
5021 'default' => $this->defaults['post_reactions_margin_layout_9'],
5022 'capability' => 'edit_theme_options',
5023 'transport' => 'postMessage',
5024 'sanitize_callback' => [$this->sanitizer, 'integer']
5025 ] );
5026
5027 $this->customizer->add_control( new TitleControl(
5028 $this->customizer, 'post_reactions_margin_layout_9', [
5029 'type' => 'betterdocs-title',
5030 'section' => 'betterdocs_single_docs_settings',
5031 'settings' => 'post_reactions_margin_layout_9',
5032 'label' => __( 'Margin', 'betterdocs' ),
5033 'priority' => 163,
5034 'input_attrs' => [
5035 'id' => 'post_reactions_margin_layout_9',
5036 'class' => 'betterdocs-dimension'
5037 ]
5038 ] )
5039 );
5040
5041 $this->customizer->add_setting( 'post_reactions_margin_top_layout_9', [
5042 'default' => $this->defaults['post_reactions_margin_top_layout_9'],
5043 'capability' => 'edit_theme_options',
5044 'transport' => 'postMessage',
5045 'sanitize_callback' => [$this->sanitizer, 'integer']
5046 ] );
5047
5048 $this->customizer->add_control( new DimensionControl(
5049 $this->customizer, 'post_reactions_margin_top_layout_9', [
5050 'type' => 'betterdocs-dimension',
5051 'section' => 'betterdocs_single_docs_settings',
5052 'settings' => 'post_reactions_margin_top_layout_9',
5053 'label' => __( 'Top', 'betterdocs' ),
5054 'priority' => 163,
5055 'input_attrs' => [
5056 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
5057 ]
5058 ] )
5059 );
5060
5061 $this->customizer->add_setting( 'post_reactions_margin_right_layout_9', [
5062 'default' => $this->defaults['post_reactions_margin_right_layout_9'],
5063 'capability' => 'edit_theme_options',
5064 'transport' => 'postMessage',
5065 'sanitize_callback' => [$this->sanitizer, 'integer']
5066 ] );
5067
5068 $this->customizer->add_control( new DimensionControl(
5069 $this->customizer, 'post_reactions_margin_right_layout_9', [
5070 'type' => 'betterdocs-dimension',
5071 'section' => 'betterdocs_single_docs_settings',
5072 'settings' => 'post_reactions_margin_right_layout_9',
5073 'label' => __( 'Right', 'betterdocs' ),
5074 'priority' => 163,
5075 'input_attrs' => [
5076 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
5077 ]
5078 ] )
5079 );
5080
5081 $this->customizer->add_setting( 'post_reactions_margin_bottom_layout_9', [
5082 'default' => $this->defaults['post_reactions_margin_bottom_layout_9'],
5083 'capability' => 'edit_theme_options',
5084 'transport' => 'postMessage',
5085 'sanitize_callback' => [$this->sanitizer, 'integer']
5086 ] );
5087
5088 $this->customizer->add_control( new DimensionControl(
5089 $this->customizer, 'post_reactions_margin_bottom_layout_9', [
5090 'type' => 'betterdocs-dimension',
5091 'section' => 'betterdocs_single_docs_settings',
5092 'settings' => 'post_reactions_margin_bottom_layout_9',
5093 'label' => __( 'Bottom', 'betterdocs' ),
5094 'priority' => 163,
5095 'input_attrs' => [
5096 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
5097 ]
5098 ] )
5099 );
5100
5101 $this->customizer->add_setting( 'post_reactions_margin_left_layout_9', [
5102 'default' => $this->defaults['post_reactions_margin_left_layout_9'],
5103 'capability' => 'edit_theme_options',
5104 'transport' => 'postMessage',
5105 'sanitize_callback' => [$this->sanitizer, 'integer']
5106 ] );
5107
5108 $this->customizer->add_control( new DimensionControl(
5109 $this->customizer, 'post_reactions_margin_left_layout_9', [
5110 'type' => 'betterdocs-dimension',
5111 'section' => 'betterdocs_single_docs_settings',
5112 'settings' => 'post_reactions_margin_left_layout_9',
5113 'label' => __( 'Left', 'betterdocs' ),
5114 'priority' => 163,
5115 'input_attrs' => [
5116 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
5117 ]
5118 ] )
5119 );
5120 }
5121
5122
5123 public function post_reactions_padding_layout_8() {
5124 $this->customizer->add_setting( 'post_reactions_padding_layout_8', [
5125 'default' => $this->defaults['post_reactions_padding_layout_8'],
5126 'capability' => 'edit_theme_options',
5127 'transport' => 'postMessage',
5128 'sanitize_callback' => [$this->sanitizer, 'integer']
5129 ] );
5130
5131 $this->customizer->add_control( new TitleControl(
5132 $this->customizer, 'post_reactions_padding_layout_8', [
5133 'type' => 'betterdocs-title',
5134 'section' => 'betterdocs_single_docs_settings',
5135 'settings' => 'post_reactions_padding_layout_8',
5136 'label' => __( 'Padding', 'betterdocs' ),
5137 'priority' => 163,
5138 'input_attrs' => [
5139 'id' => 'post_reactions_padding_layout_8',
5140 'class' => 'betterdocs-dimension'
5141 ]
5142 ] )
5143 );
5144
5145 $this->customizer->add_setting( 'post_reactions_padding_top_layout_8', [
5146 'default' => $this->defaults['post_reactions_padding_top_layout_8'],
5147 'capability' => 'edit_theme_options',
5148 'transport' => 'postMessage',
5149 'sanitize_callback' => [$this->sanitizer, 'integer']
5150 ] );
5151
5152 $this->customizer->add_control( new DimensionControl(
5153 $this->customizer, 'post_reactions_padding_top_layout_8', [
5154 'type' => 'betterdocs-dimension',
5155 'section' => 'betterdocs_single_docs_settings',
5156 'settings' => 'post_reactions_padding_top_layout_8',
5157 'label' => __( 'Top', 'betterdocs' ),
5158 'priority' => 163,
5159 'input_attrs' => [
5160 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
5161 ]
5162 ] )
5163 );
5164
5165 $this->customizer->add_setting( 'post_reactions_padding_right_layout_8', [
5166 'default' => $this->defaults['post_reactions_padding_right_layout_8'],
5167 'capability' => 'edit_theme_options',
5168 'transport' => 'postMessage',
5169 'sanitize_callback' => [$this->sanitizer, 'integer']
5170 ] );
5171
5172 $this->customizer->add_control( new DimensionControl(
5173 $this->customizer, 'post_reactions_padding_right_layout_8', [
5174 'type' => 'betterdocs-dimension',
5175 'section' => 'betterdocs_single_docs_settings',
5176 'settings' => 'post_reactions_padding_right_layout_8',
5177 'label' => __( 'Right', 'betterdocs' ),
5178 'priority' => 163,
5179 'input_attrs' => [
5180 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
5181 ]
5182 ] )
5183 );
5184
5185 $this->customizer->add_setting( 'post_reactions_padding_bottom_layout_8', [
5186 'default' => $this->defaults['post_reactions_padding_bottom_layout_8'],
5187 'capability' => 'edit_theme_options',
5188 'transport' => 'postMessage',
5189 'sanitize_callback' => [$this->sanitizer, 'integer']
5190 ] );
5191
5192 $this->customizer->add_control( new DimensionControl(
5193 $this->customizer, 'post_reactions_padding_bottom_layout_8', [
5194 'type' => 'betterdocs-dimension',
5195 'section' => 'betterdocs_single_docs_settings',
5196 'settings' => 'post_reactions_padding_bottom_layout_8',
5197 'label' => __( 'Bottom', 'betterdocs' ),
5198 'priority' => 163,
5199 'input_attrs' => [
5200 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
5201 ]
5202 ] )
5203 );
5204
5205 $this->customizer->add_setting( 'post_reactions_padding_left_layout_8', [
5206 'default' => $this->defaults['post_reactions_padding_left_layout_8'],
5207 'capability' => 'edit_theme_options',
5208 'transport' => 'postMessage',
5209 'sanitize_callback' => [$this->sanitizer, 'integer']
5210 ] );
5211
5212 $this->customizer->add_control( new DimensionControl(
5213 $this->customizer, 'post_reactions_padding_left_layout_8', [
5214 'type' => 'betterdocs-dimension',
5215 'section' => 'betterdocs_single_docs_settings',
5216 'settings' => 'post_reactions_padding_left_layout_8',
5217 'label' => __( 'Left', 'betterdocs' ),
5218 'priority' => 163,
5219 'input_attrs' => [
5220 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
5221 ]
5222 ] )
5223 );
5224 }
5225
5226 public function post_reactions_padding_layout_9() {
5227 $this->customizer->add_setting( 'post_reactions_padding_layout_9', [
5228 'default' => $this->defaults['post_reactions_padding_layout_9'],
5229 'capability' => 'edit_theme_options',
5230 'transport' => 'postMessage',
5231 'sanitize_callback' => [$this->sanitizer, 'integer']
5232 ] );
5233
5234 $this->customizer->add_control( new TitleControl(
5235 $this->customizer, 'post_reactions_padding_layout_9', [
5236 'type' => 'betterdocs-title',
5237 'section' => 'betterdocs_single_docs_settings',
5238 'settings' => 'post_reactions_padding_layout_9',
5239 'label' => __( 'Padding', 'betterdocs' ),
5240 'priority' => 163,
5241 'input_attrs' => [
5242 'id' => 'post_reactions_padding_layout_9',
5243 'class' => 'betterdocs-dimension'
5244 ]
5245 ] )
5246 );
5247
5248 $this->customizer->add_setting( 'post_reactions_padding_top_layout_9', [
5249 'default' => $this->defaults['post_reactions_padding_top_layout_9'],
5250 'capability' => 'edit_theme_options',
5251 'transport' => 'postMessage',
5252 'sanitize_callback' => [$this->sanitizer, 'integer']
5253 ] );
5254
5255 $this->customizer->add_control( new DimensionControl(
5256 $this->customizer, 'post_reactions_padding_top_layout_9', [
5257 'type' => 'betterdocs-dimension',
5258 'section' => 'betterdocs_single_docs_settings',
5259 'settings' => 'post_reactions_padding_top_layout_9',
5260 'label' => __( 'Top', 'betterdocs' ),
5261 'priority' => 163,
5262 'input_attrs' => [
5263 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
5264 ]
5265 ] )
5266 );
5267
5268 $this->customizer->add_setting( 'post_reactions_padding_right_layout_9', [
5269 'default' => $this->defaults['post_reactions_padding_right_layout_9'],
5270 'capability' => 'edit_theme_options',
5271 'transport' => 'postMessage',
5272 'sanitize_callback' => [$this->sanitizer, 'integer']
5273 ] );
5274
5275 $this->customizer->add_control( new DimensionControl(
5276 $this->customizer, 'post_reactions_padding_right_layout_9', [
5277 'type' => 'betterdocs-dimension',
5278 'section' => 'betterdocs_single_docs_settings',
5279 'settings' => 'post_reactions_padding_right_layout_9',
5280 'label' => __( 'Right', 'betterdocs' ),
5281 'priority' => 163,
5282 'input_attrs' => [
5283 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
5284 ]
5285 ] )
5286 );
5287
5288 $this->customizer->add_setting( 'post_reactions_padding_bottom_layout_9', [
5289 'default' => $this->defaults['post_reactions_padding_bottom_layout_9'],
5290 'capability' => 'edit_theme_options',
5291 'transport' => 'postMessage',
5292 'sanitize_callback' => [$this->sanitizer, 'integer']
5293 ] );
5294
5295 $this->customizer->add_control( new DimensionControl(
5296 $this->customizer, 'post_reactions_padding_bottom_layout_9', [
5297 'type' => 'betterdocs-dimension',
5298 'section' => 'betterdocs_single_docs_settings',
5299 'settings' => 'post_reactions_padding_bottom_layout_8',
5300 'label' => __( 'Bottom', 'betterdocs' ),
5301 'priority' => 163,
5302 'input_attrs' => [
5303 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
5304 ]
5305 ] )
5306 );
5307
5308 $this->customizer->add_setting( 'post_reactions_padding_left_layout_9', [
5309 'default' => $this->defaults['post_reactions_padding_left_layout_9'],
5310 'capability' => 'edit_theme_options',
5311 'transport' => 'postMessage',
5312 'sanitize_callback' => [$this->sanitizer, 'integer']
5313 ] );
5314
5315 $this->customizer->add_control( new DimensionControl(
5316 $this->customizer, 'post_reactions_padding_left_layout_9', [
5317 'type' => 'betterdocs-dimension',
5318 'section' => 'betterdocs_single_docs_settings',
5319 'settings' => 'post_reactions_padding_left_layout_8',
5320 'label' => __( 'Left', 'betterdocs' ),
5321 'priority' => 163,
5322 'input_attrs' => [
5323 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
5324 ]
5325 ] )
5326 );
5327 }
5328
5329 public function post_reactions_border_layout_8() {
5330 $this->customizer->add_setting( 'post_reactions_border_layout_8', [
5331 'default' => $this->defaults['post_reactions_border_layout_8'],
5332 'capability' => 'edit_theme_options',
5333 'transport' => 'postMessage',
5334 'sanitize_callback' => [$this->sanitizer, 'integer']
5335 ] );
5336
5337 $this->customizer->add_control( new TitleControl(
5338 $this->customizer, 'post_reactions_border_layout_8', [
5339 'type' => 'betterdocs-title',
5340 'section' => 'betterdocs_single_docs_settings',
5341 'settings' => 'post_reactions_border_layout_8',
5342 'label' => __( 'Border', 'betterdocs' ),
5343 'priority' => 163,
5344 'input_attrs' => [
5345 'id' => 'post_reactions_border_layout_8',
5346 'class' => 'betterdocs-dimension'
5347 ]
5348 ] )
5349 );
5350
5351 $this->customizer->add_setting( 'post_reactions_border_top_layout_8', [
5352 'default' => $this->defaults['post_reactions_border_top_layout_8'],
5353 'capability' => 'edit_theme_options',
5354 'transport' => 'postMessage',
5355 'sanitize_callback' => [$this->sanitizer, 'integer']
5356 ] );
5357
5358 $this->customizer->add_control( new DimensionControl(
5359 $this->customizer, 'post_reactions_border_top_layout_8', [
5360 'type' => 'betterdocs-dimension',
5361 'section' => 'betterdocs_single_docs_settings',
5362 'settings' => 'post_reactions_border_top_layout_8',
5363 'label' => __( 'Border Top', 'betterdocs' ),
5364 'priority' => 163,
5365 'input_attrs' => [
5366 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
5367 ]
5368 ] )
5369 );
5370
5371 $this->customizer->add_setting( 'post_reactions_border_right_layout_8', [
5372 'default' => $this->defaults['post_reactions_border_right_layout_8'],
5373 'capability' => 'edit_theme_options',
5374 'transport' => 'postMessage',
5375 'sanitize_callback' => [$this->sanitizer, 'integer']
5376 ] );
5377
5378 $this->customizer->add_control( new DimensionControl(
5379 $this->customizer, 'post_reactions_border_right_layout_8', [
5380 'type' => 'betterdocs-dimension',
5381 'section' => 'betterdocs_single_docs_settings',
5382 'settings' => 'post_reactions_border_right_layout_8',
5383 'label' => __( 'Border Right', 'betterdocs' ),
5384 'priority' => 163,
5385 'input_attrs' => [
5386 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
5387 ]
5388 ] )
5389 );
5390
5391 $this->customizer->add_setting( 'post_reactions_border_bottom_layout_8', [
5392 'default' => $this->defaults['post_reactions_border_bottom_layout_8'],
5393 'capability' => 'edit_theme_options',
5394 'transport' => 'postMessage',
5395 'sanitize_callback' => [$this->sanitizer, 'integer']
5396 ] );
5397
5398 $this->customizer->add_control( new DimensionControl(
5399 $this->customizer, 'post_reactions_border_bottom_layout_8', [
5400 'type' => 'betterdocs-dimension',
5401 'section' => 'betterdocs_single_docs_settings',
5402 'settings' => 'post_reactions_border_bottom_layout_8',
5403 'label' => __( 'Border Bottom', 'betterdocs' ),
5404 'priority' => 163,
5405 'input_attrs' => [
5406 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
5407 ]
5408 ] )
5409 );
5410
5411 $this->customizer->add_setting( 'post_reactions_border_left_layout_8', [
5412 'default' => $this->defaults['post_reactions_border_left_layout_8'],
5413 'capability' => 'edit_theme_options',
5414 'transport' => 'postMessage',
5415 'sanitize_callback' => [$this->sanitizer, 'integer']
5416 ] );
5417
5418 $this->customizer->add_control( new DimensionControl(
5419 $this->customizer, 'post_reactions_border_left_layout_8', [
5420 'type' => 'betterdocs-dimension',
5421 'section' => 'betterdocs_single_docs_settings',
5422 'settings' => 'post_reactions_border_left_layout_8',
5423 'label' => __( 'Border Left', 'betterdocs' ),
5424 'priority' => 163,
5425 'input_attrs' => [
5426 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
5427 ]
5428 ] )
5429 );
5430 }
5431
5432 // public function post_reactions_icon_svg_color_layout_8_9() {
5433 // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_svg_color_layout_8_9', [
5434 // 'default' => $this->defaults['betterdocs_post_reactions_icon_svg_color_layout_8_9'],
5435 // 'capability' => 'edit_theme_options',
5436 // 'transport' => 'postMessage',
5437 // 'sanitize_callback' => [$this->sanitizer, 'rgba']
5438 // ] );
5439
5440 // $this->customizer->add_control(
5441 // new AlphaColorControl(
5442 // $this->customizer,
5443 // 'betterdocs_post_reactions_icon_svg_color_layout_8_9',
5444 // [
5445 // 'label' => __( 'Reactions Icon Color', 'betterdocs' ),
5446 // 'priority' => 163,
5447 // 'section' => 'betterdocs_single_docs_settings',
5448 // 'settings' => 'betterdocs_post_reactions_icon_svg_color_layout_8_9'
5449 // ]
5450 // )
5451 // );
5452 // }
5453
5454 // public function post_reactions_icon_hover_bg_color_layout_8_9() {
5455 // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9', [
5456 // 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_bg_color_layout_8_9'],
5457 // 'capability' => 'edit_theme_options',
5458 // 'sanitize_callback' => [$this->sanitizer, 'rgba']
5459 // ] );
5460
5461 // $this->customizer->add_control(
5462 // new AlphaColorControl(
5463 // $this->customizer,
5464 // 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9',
5465 // [
5466 // 'label' => __( 'Reactions Icon Hover Background Color', 'betterdocs' ),
5467 // 'priority' => 163,
5468 // 'section' => 'betterdocs_single_docs_settings',
5469 // 'settings' => 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9'
5470 // ]
5471 // )
5472 // );
5473 // }
5474
5475 // public function post_reactions_icon_hover_svg_color_layout_8_9() {
5476 // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9', [
5477 // 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_svg_color_layout_8_9'],
5478 // 'capability' => 'edit_theme_options',
5479 // 'sanitize_callback' => [$this->sanitizer, 'rgba']
5480 // ] );
5481
5482 // $this->customizer->add_control(
5483 // new AlphaColorControl(
5484 // $this->customizer,
5485 // 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9',
5486 // [
5487 // 'label' => __( 'Reactions Icon Hover Color', 'betterdocs' ),
5488 // 'priority' => 163,
5489 // 'section' => 'betterdocs_single_docs_settings',
5490 // 'settings' => 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9'
5491 // ]
5492 // )
5493 // );
5494 // }
5495
5496 public function attachments_heading() {
5497 $this->customizer->add_setting( 'betterdocs_single_doc_attachment_heading', [
5498 'default' => '',
5499 'sanitize_callback' => 'esc_html'
5500 ] );
5501
5502 $this->customizer->add_control( new SeparatorControl(
5503 $this->customizer, 'betterdocs_single_doc_attachment_heading', [
5504 'label' => __( 'Attachments', 'betterdocs' ),
5505 'priority' => 163,
5506 'settings' => 'betterdocs_single_doc_attachment_heading',
5507 'section' => 'betterdocs_single_docs_settings'
5508 ] )
5509 );
5510 }
5511
5512 public function betterdocs_doc_single_attachment_content_bg_color() {
5513 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_bg_color', [
5514 'default' => $this->defaults['betterdocs_doc_single_attachment_content_bg_color'],
5515 'capability' => 'edit_theme_options',
5516 'transport' => 'postMessage',
5517 'sanitize_callback' => [$this->sanitizer, 'rgba']
5518 ] );
5519
5520 $this->customizer->add_control(
5521 new AlphaColorControl(
5522 $this->customizer,
5523 'betterdocs_doc_single_attachment_content_bg_color',
5524 [
5525 'label' => __( 'Content Background Color', 'betterdocs' ),
5526 'section' => 'betterdocs_single_docs_settings',
5527 'settings' => 'betterdocs_doc_single_attachment_content_bg_color',
5528 'priority' => 163
5529 ]
5530 )
5531 );
5532 }
5533
5534 public function betterdocs_doc_single_attachment_content_padding() {
5535 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding', [
5536 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding'],
5537 'capability' => 'edit_theme_options',
5538 'transport' => 'postMessage',
5539 'sanitize_callback' => [$this->sanitizer, 'integer']
5540
5541 ] );
5542
5543 $this->customizer->add_control( new TitleControl(
5544 $this->customizer, 'betterdocs_doc_single_attachment_content_padding', [
5545 'type' => 'betterdocs-title',
5546 'section' => 'betterdocs_single_docs_settings',
5547 'settings' => 'betterdocs_doc_single_attachment_content_padding',
5548 'label' => __( 'Content Padding', 'betterdocs' ),
5549 'priority' => 163,
5550 'input_attrs' => [
5551 'id' => 'betterdocs_doc_single_attachment_content_padding',
5552 'class' => 'betterdocs-dimension'
5553 ]
5554 ] )
5555 );
5556
5557 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_top', [
5558 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_top'],
5559 'capability' => 'edit_theme_options',
5560 'transport' => 'postMessage',
5561 'sanitize_callback' => [$this->sanitizer, 'integer']
5562 ] );
5563
5564 $this->customizer->add_control( new DimensionControl(
5565 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_top', [
5566 'type' => 'betterdocs-dimension',
5567 'section' => 'betterdocs_single_docs_settings',
5568 'settings' => 'betterdocs_doc_single_attachment_content_padding_top',
5569 'label' => __( 'Top', 'betterdocs' ),
5570 'priority' => 163,
5571 'input_attrs' => [
5572 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
5573 ]
5574 ] )
5575 );
5576
5577 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_right', [
5578 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_right'],
5579 'capability' => 'edit_theme_options',
5580 'transport' => 'postMessage',
5581 'sanitize_callback' => [$this->sanitizer, 'integer']
5582
5583 ] );
5584
5585 $this->customizer->add_control( new DimensionControl(
5586 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_right', [
5587 'type' => 'betterdocs-dimension',
5588 'section' => 'betterdocs_single_docs_settings',
5589 'settings' => 'betterdocs_doc_single_attachment_content_padding_right',
5590 'label' => __( 'Right', 'betterdocs' ),
5591 'priority' => 163,
5592 'input_attrs' => [
5593 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
5594 ]
5595 ] )
5596 );
5597
5598 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_bottom', [
5599 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_bottom'],
5600 'capability' => 'edit_theme_options',
5601 'transport' => 'postMessage',
5602 'sanitize_callback' => [$this->sanitizer, 'integer']
5603
5604 ] );
5605
5606 $this->customizer->add_control( new DimensionControl(
5607 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_bottom', [
5608 'type' => 'betterdocs-dimension',
5609 'section' => 'betterdocs_single_docs_settings',
5610 'settings' => 'betterdocs_doc_single_attachment_content_padding_bottom',
5611 'label' => __( 'Bottom', 'betterdocs' ),
5612 'priority' => 163,
5613 'input_attrs' => [
5614 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
5615 ]
5616 ] )
5617 );
5618
5619 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_left', [
5620 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_left'],
5621 'capability' => 'edit_theme_options',
5622 'transport' => 'postMessage',
5623 'sanitize_callback' => [$this->sanitizer, 'integer']
5624
5625 ] );
5626
5627 $this->customizer->add_control( new DimensionControl(
5628 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_left', [
5629 'type' => 'betterdocs-dimension',
5630 'section' => 'betterdocs_single_docs_settings',
5631 'settings' => 'betterdocs_doc_single_attachment_content_padding_left',
5632 'label' => __( 'Left', 'betterdocs' ),
5633 'priority' => 163,
5634 'input_attrs' => [
5635 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
5636 ]
5637 ] )
5638 );
5639 }
5640
5641 public function betterdocs_doc_single_attachment_content_margin() {
5642 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin', [
5643 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin'],
5644 'capability' => 'edit_theme_options',
5645 'transport' => 'postMessage',
5646 'sanitize_callback' => [$this->sanitizer, 'integer']
5647
5648 ] );
5649
5650 $this->customizer->add_control( new TitleControl(
5651 $this->customizer, 'betterdocs_doc_single_attachment_content_margin', [
5652 'type' => 'betterdocs-title',
5653 'section' => 'betterdocs_single_docs_settings',
5654 'settings' => 'betterdocs_doc_single_attachment_content_margin',
5655 'label' => __( 'Content Margin', 'betterdocs' ),
5656 'priority' => 163,
5657 'input_attrs' => [
5658 'id' => 'betterdocs_doc_single_attachment_content_margin',
5659 'class' => 'betterdocs-dimension'
5660 ]
5661 ] )
5662 );
5663
5664 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_top', [
5665 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_top'],
5666 'capability' => 'edit_theme_options',
5667 'transport' => 'postMessage',
5668 'sanitize_callback' => [$this->sanitizer, 'integer']
5669 ] );
5670
5671 $this->customizer->add_control( new DimensionControl(
5672 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_top', [
5673 'type' => 'betterdocs-dimension',
5674 'section' => 'betterdocs_single_docs_settings',
5675 'settings' => 'betterdocs_doc_single_attachment_content_margin_top',
5676 'label' => __( 'Top', 'betterdocs' ),
5677 'priority' => 163,
5678 'input_attrs' => [
5679 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
5680 ]
5681 ] )
5682 );
5683
5684 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_right', [
5685 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_right'],
5686 'capability' => 'edit_theme_options',
5687 'transport' => 'postMessage',
5688 'sanitize_callback' => [$this->sanitizer, 'integer']
5689
5690 ] );
5691
5692 $this->customizer->add_control( new DimensionControl(
5693 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_right', [
5694 'type' => 'betterdocs-dimension',
5695 'section' => 'betterdocs_single_docs_settings',
5696 'settings' => 'betterdocs_doc_single_attachment_content_margin_right',
5697 'label' => __( 'Right', 'betterdocs' ),
5698 'priority' => 163,
5699 'input_attrs' => [
5700 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
5701 ]
5702 ] )
5703 );
5704
5705 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_bottom', [
5706 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_bottom'],
5707 'capability' => 'edit_theme_options',
5708 'transport' => 'postMessage',
5709 'sanitize_callback' => [$this->sanitizer, 'integer']
5710
5711 ] );
5712
5713 $this->customizer->add_control( new DimensionControl(
5714 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_bottom', [
5715 'type' => 'betterdocs-dimension',
5716 'section' => 'betterdocs_single_docs_settings',
5717 'settings' => 'betterdocs_doc_single_attachment_content_margin_bottom',
5718 'label' => __( 'Bottom', 'betterdocs' ),
5719 'priority' => 163,
5720 'input_attrs' => [
5721 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
5722 ]
5723 ] )
5724 );
5725
5726 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_left', [
5727 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_left'],
5728 'capability' => 'edit_theme_options',
5729 'transport' => 'postMessage',
5730 'sanitize_callback' => [$this->sanitizer, 'integer']
5731
5732 ] );
5733
5734 $this->customizer->add_control( new DimensionControl(
5735 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_left', [
5736 'type' => 'betterdocs-dimension',
5737 'section' => 'betterdocs_single_docs_settings',
5738 'settings' => 'betterdocs_doc_single_attachment_content_margin_left',
5739 'label' => __( 'Left', 'betterdocs' ),
5740 'priority' => 163,
5741 'input_attrs' => [
5742 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
5743 ]
5744 ] )
5745 );
5746 }
5747
5748 public function betterdocs_doc_single_attachment_label_color() {
5749 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_color', [
5750 'default' => $this->defaults['betterdocs_doc_single_attachment_label_color'],
5751 'capability' => 'edit_theme_options',
5752 'transport' => 'postMessage',
5753 'sanitize_callback' => [$this->sanitizer, 'rgba']
5754 ] );
5755
5756 $this->customizer->add_control(
5757 new AlphaColorControl(
5758 $this->customizer,
5759 'betterdocs_doc_single_attachment_label_color',
5760 [
5761 'label' => __( 'Label Color', 'betterdocs' ),
5762 'section' => 'betterdocs_single_docs_settings',
5763 'settings' => 'betterdocs_doc_single_attachment_label_color',
5764 'priority' => 163
5765 ]
5766 )
5767 );
5768 }
5769
5770 public function betterdocs_doc_single_attachment_label_padding() {
5771 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding', [
5772 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding'],
5773 'capability' => 'edit_theme_options',
5774 'transport' => 'postMessage',
5775 'sanitize_callback' => [$this->sanitizer, 'integer']
5776
5777 ] );
5778
5779 $this->customizer->add_control( new TitleControl(
5780 $this->customizer, 'betterdocs_doc_single_attachment_label_padding', [
5781 'type' => 'betterdocs-title',
5782 'section' => 'betterdocs_single_docs_settings',
5783 'settings' => 'betterdocs_doc_single_attachment_label_padding',
5784 'label' => __( 'Label Padding', 'betterdocs' ),
5785 'priority' => 163,
5786 'input_attrs' => [
5787 'id' => 'betterdocs_doc_single_attachment_label_padding',
5788 'class' => 'betterdocs-dimension'
5789 ]
5790 ] )
5791 );
5792
5793 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_top', [
5794 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_top'],
5795 'capability' => 'edit_theme_options',
5796 'transport' => 'postMessage',
5797 'sanitize_callback' => [$this->sanitizer, 'integer']
5798 ] );
5799
5800 $this->customizer->add_control( new DimensionControl(
5801 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_top', [
5802 'type' => 'betterdocs-dimension',
5803 'section' => 'betterdocs_single_docs_settings',
5804 'settings' => 'betterdocs_doc_single_attachment_label_padding_top',
5805 'label' => __( 'Top', 'betterdocs' ),
5806 'priority' => 163,
5807 'input_attrs' => [
5808 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
5809 ]
5810 ] )
5811 );
5812
5813 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_right', [
5814 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_right'],
5815 'capability' => 'edit_theme_options',
5816 'transport' => 'postMessage',
5817 'sanitize_callback' => [$this->sanitizer, 'integer']
5818
5819 ] );
5820
5821 $this->customizer->add_control( new DimensionControl(
5822 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_right', [
5823 'type' => 'betterdocs-dimension',
5824 'section' => 'betterdocs_single_docs_settings',
5825 'settings' => 'betterdocs_doc_single_attachment_label_padding_right',
5826 'label' => __( 'Right', 'betterdocs' ),
5827 'priority' => 163,
5828 'input_attrs' => [
5829 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
5830 ]
5831 ] )
5832 );
5833
5834 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_bottom', [
5835 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_bottom'],
5836 'capability' => 'edit_theme_options',
5837 'transport' => 'postMessage',
5838 'sanitize_callback' => [$this->sanitizer, 'integer']
5839
5840 ] );
5841
5842 $this->customizer->add_control( new DimensionControl(
5843 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_bottom', [
5844 'type' => 'betterdocs-dimension',
5845 'section' => 'betterdocs_single_docs_settings',
5846 'settings' => 'betterdocs_doc_single_attachment_label_padding_bottom',
5847 'label' => __( 'Bottom', 'betterdocs' ),
5848 'priority' => 163,
5849 'input_attrs' => [
5850 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
5851 ]
5852 ] )
5853 );
5854
5855 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_left', [
5856 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_left'],
5857 'capability' => 'edit_theme_options',
5858 'transport' => 'postMessage',
5859 'sanitize_callback' => [$this->sanitizer, 'integer']
5860
5861 ] );
5862
5863 $this->customizer->add_control( new DimensionControl(
5864 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_left', [
5865 'type' => 'betterdocs-dimension',
5866 'section' => 'betterdocs_single_docs_settings',
5867 'settings' => 'betterdocs_doc_single_attachment_label_padding_left',
5868 'label' => __( 'Left', 'betterdocs' ),
5869 'priority' => 163,
5870 'input_attrs' => [
5871 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
5872 ]
5873 ] )
5874 );
5875 }
5876
5877 public function betterdocs_doc_single_attachment_label_margin() {
5878 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin', [
5879 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin'],
5880 'capability' => 'edit_theme_options',
5881 'transport' => 'postMessage',
5882 'sanitize_callback' => [$this->sanitizer, 'integer']
5883
5884 ] );
5885
5886 $this->customizer->add_control( new TitleControl(
5887 $this->customizer, 'betterdocs_doc_single_attachment_label_margin', [
5888 'type' => 'betterdocs-title',
5889 'section' => 'betterdocs_single_docs_settings',
5890 'settings' => 'betterdocs_doc_single_attachment_label_margin',
5891 'label' => __( 'Label Margin', 'betterdocs' ),
5892 'priority' => 163,
5893 'input_attrs' => [
5894 'id' => 'betterdocs_doc_single_attachment_label_margin',
5895 'class' => 'betterdocs-dimension'
5896 ]
5897 ] )
5898 );
5899
5900 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_top', [
5901 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_top'],
5902 'capability' => 'edit_theme_options',
5903 'transport' => 'postMessage',
5904 'sanitize_callback' => [$this->sanitizer, 'integer']
5905 ] );
5906
5907 $this->customizer->add_control( new DimensionControl(
5908 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_top', [
5909 'type' => 'betterdocs-dimension',
5910 'section' => 'betterdocs_single_docs_settings',
5911 'settings' => 'betterdocs_doc_single_attachment_label_margin_top',
5912 'label' => __( 'Top', 'betterdocs' ),
5913 'priority' => 163,
5914 'input_attrs' => [
5915 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
5916 ]
5917 ] )
5918 );
5919
5920 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_right', [
5921 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_right'],
5922 'capability' => 'edit_theme_options',
5923 'transport' => 'postMessage',
5924 'sanitize_callback' => [$this->sanitizer, 'integer']
5925
5926 ] );
5927
5928 $this->customizer->add_control( new DimensionControl(
5929 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_right', [
5930 'type' => 'betterdocs-dimension',
5931 'section' => 'betterdocs_single_docs_settings',
5932 'settings' => 'betterdocs_doc_single_attachment_label_margin_right',
5933 'label' => __( 'Right', 'betterdocs' ),
5934 'priority' => 163,
5935 'input_attrs' => [
5936 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
5937 ]
5938 ] )
5939 );
5940
5941 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_bottom', [
5942 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_bottom'],
5943 'capability' => 'edit_theme_options',
5944 'transport' => 'postMessage',
5945 'sanitize_callback' => [$this->sanitizer, 'integer']
5946 ] );
5947
5948 $this->customizer->add_control( new DimensionControl(
5949 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_bottom', [
5950 'type' => 'betterdocs-dimension',
5951 'section' => 'betterdocs_single_docs_settings',
5952 'settings' => 'betterdocs_doc_single_attachment_label_margin_bottom',
5953 'label' => __( 'Bottom', 'betterdocs' ),
5954 'priority' => 163,
5955 'input_attrs' => [
5956 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
5957 ]
5958 ] )
5959 );
5960
5961 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_left', [
5962 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_left'],
5963 'capability' => 'edit_theme_options',
5964 'transport' => 'postMessage',
5965 'sanitize_callback' => [$this->sanitizer, 'integer']
5966 ] );
5967
5968 $this->customizer->add_control( new DimensionControl(
5969 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_left', [
5970 'type' => 'betterdocs-dimension',
5971 'section' => 'betterdocs_single_docs_settings',
5972 'settings' => 'betterdocs_doc_single_attachment_label_margin_left',
5973 'label' => __( 'Left', 'betterdocs' ),
5974 'priority' => 163,
5975 'input_attrs' => [
5976 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
5977 ]
5978 ] )
5979 );
5980 }
5981
5982 public function betterdocs_doc_single_attachment_list_font_size() {
5983 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_font_size', [
5984 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_size'],
5985 'capability' => 'edit_theme_options',
5986 'transport' => 'postMessage',
5987 'sanitize_callback' => [$this->sanitizer, 'integer']
5988
5989 ] );
5990
5991 $this->customizer->add_control( new RangeValueControl(
5992 $this->customizer, 'betterdocs_doc_single_attachment_list_font_size', [
5993 'type' => 'betterdocs-range-value',
5994 'section' => 'betterdocs_single_docs_settings',
5995 'settings' => 'betterdocs_doc_single_attachment_list_font_size',
5996 'label' => __( 'List Font Size', 'betterdocs' ),
5997 'priority' => 163,
5998 'input_attrs' => [
5999 'min' => 0,
6000 'max' => 50,
6001 'step' => 1,
6002 'suffix' => 'px' //optional suffix
6003 ]
6004 ] )
6005 );
6006 }
6007
6008 public function betterdocs_doc_single_attachment_list_font_weight() {
6009 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_font_weight', [
6010 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_weight'],
6011 'capability' => 'edit_theme_options',
6012 'sanitize_callback' => [$this->sanitizer, 'choices']
6013 ] );
6014
6015 $this->customizer->add_control(
6016 new WP_Customize_Control(
6017 $this->customizer,
6018 'betterdocs_doc_single_attachment_list_font_weight',
6019 [
6020 'label' => __( 'List Font Weight', 'betterdocs-pro' ),
6021 'section' => 'betterdocs_single_docs_settings',
6022 'settings' => 'betterdocs_doc_single_attachment_list_font_weight',
6023 'type' => 'select',
6024 'choices' => [
6025 'normal' => 'Normal',
6026 '100' => '100',
6027 '200' => '200',
6028 '300' => '300',
6029 '400' => '400',
6030 '500' => '500',
6031 '600' => '600',
6032 '700' => '700',
6033 '800' => '800',
6034 '900' => '900'
6035 ],
6036 'priority' => 163
6037 ]
6038 )
6039 );
6040 }
6041
6042 public function betterdocs_doc_single_attachment_list_extension_color() {
6043 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_extension_color', [
6044 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_color'],
6045 'capability' => 'edit_theme_options',
6046 'transport' => 'postMessage',
6047 'sanitize_callback' => [$this->sanitizer, 'rgba']
6048 ] );
6049
6050 $this->customizer->add_control(
6051 new AlphaColorControl(
6052 $this->customizer,
6053 'betterdocs_doc_single_attachment_list_extension_color',
6054 [
6055 'label' => __( 'Extension Color', 'betterdocs' ),
6056 'section' => 'betterdocs_single_docs_settings',
6057 'settings' => 'betterdocs_doc_single_attachment_list_extension_color',
6058 'priority' => 163
6059 ]
6060 )
6061 );
6062 }
6063 public function betterdocs_doc_single_attachment_list_extension_font_size() {
6064 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_extension_font_size', [
6065 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_size'],
6066 'capability' => 'edit_theme_options',
6067 'transport' => 'postMessage',
6068 'sanitize_callback' => [$this->sanitizer, 'integer']
6069
6070 ] );
6071
6072 $this->customizer->add_control( new RangeValueControl(
6073 $this->customizer, 'betterdocs_doc_single_attachment_list_extension_font_size', [
6074 'type' => 'betterdocs-range-value',
6075 'section' => 'betterdocs_single_docs_settings',
6076 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_size',
6077 'label' => __( 'Extension Font Size', 'betterdocs' ),
6078 'priority' => 163,
6079 'input_attrs' => [
6080 'min' => 0,
6081 'max' => 50,
6082 'step' => 1,
6083 'suffix' => 'px' //optional suffix
6084 ]
6085 ] )
6086 );
6087 }
6088
6089 public function betterdocs_doc_single_attachment_list_extension_font_weight() {
6090 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_extension_font_weight', [
6091 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_weight'],
6092 'capability' => 'edit_theme_options',
6093 'sanitize_callback' => [$this->sanitizer, 'choices']
6094 ] );
6095
6096 $this->customizer->add_control(
6097 new WP_Customize_Control(
6098 $this->customizer,
6099 'betterdocs_doc_single_attachment_list_extension_font_weight',
6100 [
6101 'label' => __( 'Extension Font Weight', 'betterdocs-pro' ),
6102 'section' => 'betterdocs_single_docs_settings',
6103 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_weight',
6104 'type' => 'select',
6105 'choices' => [
6106 'normal' => 'Normal',
6107 '100' => '100',
6108 '200' => '200',
6109 '300' => '300',
6110 '400' => '400',
6111 '500' => '500',
6112 '600' => '600',
6113 '700' => '700',
6114 '800' => '800',
6115 '900' => '900'
6116 ],
6117 'priority' => 163
6118 ]
6119 )
6120 );
6121 }
6122
6123 public function betterdocs_doc_single_attachment_list_color() {
6124 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_color', [
6125 'default' => $this->defaults['betterdocs_doc_single_attachment_list_color'],
6126 'capability' => 'edit_theme_options',
6127 'transport' => 'postMessage',
6128 'sanitize_callback' => [$this->sanitizer, 'rgba']
6129 ] );
6130
6131 $this->customizer->add_control(
6132 new AlphaColorControl(
6133 $this->customizer,
6134 'betterdocs_doc_single_attachment_list_color',
6135 [
6136 'label' => __( 'List Color', 'betterdocs' ),
6137 'section' => 'betterdocs_single_docs_settings',
6138 'settings' => 'betterdocs_doc_single_attachment_list_color',
6139 'priority' => 163
6140 ]
6141 )
6142 );
6143 }
6144
6145 public function betterdocs_doc_single_attachment_list_background_color() {
6146 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_background_color', [
6147 'default' => $this->defaults['betterdocs_doc_single_attachment_list_background_color'],
6148 'capability' => 'edit_theme_options',
6149 'transport' => 'postMessage',
6150 'sanitize_callback' => [$this->sanitizer, 'rgba']
6151 ] );
6152
6153 $this->customizer->add_control(
6154 new AlphaColorControl(
6155 $this->customizer,
6156 'betterdocs_doc_single_attachment_list_background_color',
6157 [
6158 'label' => __( 'List Background Color', 'betterdocs' ),
6159 'section' => 'betterdocs_single_docs_settings',
6160 'settings' => 'betterdocs_doc_single_attachment_list_background_color',
6161 'priority' => 163
6162 ]
6163 )
6164 );
6165 }
6166
6167 public function betterdocs_doc_single_attachment_list_padding() {
6168 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding', [
6169 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding'],
6170 'capability' => 'edit_theme_options',
6171 'transport' => 'postMessage',
6172 'sanitize_callback' => [$this->sanitizer, 'integer']
6173
6174 ] );
6175
6176 $this->customizer->add_control( new TitleControl(
6177 $this->customizer, 'betterdocs_doc_single_attachment_list_padding', [
6178 'type' => 'betterdocs-title',
6179 'section' => 'betterdocs_single_docs_settings',
6180 'settings' => 'betterdocs_doc_single_attachment_list_padding',
6181 'label' => __( 'List Padding', 'betterdocs' ),
6182 'priority' => 163,
6183 'input_attrs' => [
6184 'id' => 'betterdocs_doc_single_attachment_list_padding',
6185 'class' => 'betterdocs-dimension'
6186 ]
6187 ] )
6188 );
6189
6190 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_top', [
6191 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_top'],
6192 'capability' => 'edit_theme_options',
6193 'transport' => 'postMessage',
6194 'sanitize_callback' => [$this->sanitizer, 'integer']
6195 ] );
6196
6197 $this->customizer->add_control( new DimensionControl(
6198 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_top', [
6199 'type' => 'betterdocs-dimension',
6200 'section' => 'betterdocs_single_docs_settings',
6201 'settings' => 'betterdocs_doc_single_attachment_list_padding_top',
6202 'label' => __( 'Top', 'betterdocs' ),
6203 'priority' => 163,
6204 'input_attrs' => [
6205 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
6206 ]
6207 ] )
6208 );
6209
6210 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_right', [
6211 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_right'],
6212 'capability' => 'edit_theme_options',
6213 'transport' => 'postMessage',
6214 'sanitize_callback' => [$this->sanitizer, 'integer']
6215
6216 ] );
6217
6218 $this->customizer->add_control( new DimensionControl(
6219 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_right', [
6220 'type' => 'betterdocs-dimension',
6221 'section' => 'betterdocs_single_docs_settings',
6222 'settings' => 'betterdocs_doc_single_attachment_list_padding_right',
6223 'label' => __( 'Right', 'betterdocs' ),
6224 'priority' => 163,
6225 'input_attrs' => [
6226 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
6227 ]
6228 ] )
6229 );
6230
6231 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_bottom', [
6232 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_bottom'],
6233 'capability' => 'edit_theme_options',
6234 'transport' => 'postMessage',
6235 'sanitize_callback' => [$this->sanitizer, 'integer']
6236 ] );
6237
6238 $this->customizer->add_control( new DimensionControl(
6239 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_bottom', [
6240 'type' => 'betterdocs-dimension',
6241 'section' => 'betterdocs_single_docs_settings',
6242 'settings' => 'betterdocs_doc_single_attachment_list_padding_bottom',
6243 'label' => __( 'Bottom', 'betterdocs' ),
6244 'priority' => 163,
6245 'input_attrs' => [
6246 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
6247 ]
6248 ] )
6249 );
6250
6251 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_left', [
6252 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_left'],
6253 'capability' => 'edit_theme_options',
6254 'transport' => 'postMessage',
6255 'sanitize_callback' => [$this->sanitizer, 'integer']
6256 ] );
6257
6258 $this->customizer->add_control( new DimensionControl(
6259 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_left', [
6260 'type' => 'betterdocs-dimension',
6261 'section' => 'betterdocs_single_docs_settings',
6262 'settings' => 'betterdocs_doc_single_attachment_list_padding_left',
6263 'label' => __( 'Left', 'betterdocs' ),
6264 'priority' => 163,
6265 'input_attrs' => [
6266 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
6267 ]
6268 ] )
6269 );
6270 }
6271
6272 public function betterdocs_doc_single_attachment_list_margin() {
6273 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin', [
6274 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin'],
6275 'capability' => 'edit_theme_options',
6276 'transport' => 'postMessage',
6277 'sanitize_callback' => [$this->sanitizer, 'integer']
6278
6279 ] );
6280
6281 $this->customizer->add_control( new TitleControl(
6282 $this->customizer, 'betterdocs_doc_single_attachment_list_margin', [
6283 'type' => 'betterdocs-title',
6284 'section' => 'betterdocs_single_docs_settings',
6285 'settings' => 'betterdocs_doc_single_attachment_list_margin',
6286 'label' => __( 'List Margin', 'betterdocs' ),
6287 'priority' => 163,
6288 'input_attrs' => [
6289 'id' => 'betterdocs_doc_single_attachment_list_margin',
6290 'class' => 'betterdocs-dimension'
6291 ]
6292 ] )
6293 );
6294
6295 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_top', [
6296 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_top'],
6297 'capability' => 'edit_theme_options',
6298 'transport' => 'postMessage',
6299 'sanitize_callback' => [$this->sanitizer, 'integer']
6300 ] );
6301
6302 $this->customizer->add_control( new DimensionControl(
6303 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_top', [
6304 'type' => 'betterdocs-dimension',
6305 'section' => 'betterdocs_single_docs_settings',
6306 'settings' => 'betterdocs_doc_single_attachment_list_margin_top',
6307 'label' => __( 'Top', 'betterdocs' ),
6308 'priority' => 163,
6309 'input_attrs' => [
6310 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
6311 ]
6312 ] )
6313 );
6314
6315 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_right', [
6316 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_right'],
6317 'capability' => 'edit_theme_options',
6318 'transport' => 'postMessage',
6319 'sanitize_callback' => [$this->sanitizer, 'integer']
6320
6321 ] );
6322
6323 $this->customizer->add_control( new DimensionControl(
6324 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_right', [
6325 'type' => 'betterdocs-dimension',
6326 'section' => 'betterdocs_single_docs_settings',
6327 'settings' => 'betterdocs_doc_single_attachment_list_margin_right',
6328 'label' => __( 'Right', 'betterdocs' ),
6329 'priority' => 163,
6330 'input_attrs' => [
6331 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
6332 ]
6333 ] )
6334 );
6335
6336 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_bottom', [
6337 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_bottom'],
6338 'capability' => 'edit_theme_options',
6339 'transport' => 'postMessage',
6340 'sanitize_callback' => [$this->sanitizer, 'integer']
6341 ] );
6342
6343 $this->customizer->add_control( new DimensionControl(
6344 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_bottom', [
6345 'type' => 'betterdocs-dimension',
6346 'section' => 'betterdocs_single_docs_settings',
6347 'settings' => 'betterdocs_doc_single_attachment_list_margin_bottom',
6348 'label' => __( 'Bottom', 'betterdocs' ),
6349 'priority' => 163,
6350 'input_attrs' => [
6351 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
6352 ]
6353 ] )
6354 );
6355
6356 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_left', [
6357 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_left'],
6358 'capability' => 'edit_theme_options',
6359 'transport' => 'postMessage',
6360 'sanitize_callback' => [$this->sanitizer, 'integer']
6361 ] );
6362
6363 $this->customizer->add_control( new DimensionControl(
6364 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_left', [
6365 'type' => 'betterdocs-dimension',
6366 'section' => 'betterdocs_single_docs_settings',
6367 'settings' => 'betterdocs_doc_single_attachment_list_margin_left',
6368 'label' => __( 'Left', 'betterdocs' ),
6369 'priority' => 163,
6370 'input_attrs' => [
6371 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
6372 ]
6373 ] )
6374 );
6375 }
6376
6377 public function attachments_heading_layout_8_9() {
6378 $this->customizer->add_setting( 'betterdocs_single_doc_attachment_heading_layout_8_9', [
6379 'default' => '',
6380 'sanitize_callback' => 'esc_html'
6381 ] );
6382
6383 $this->customizer->add_control( new SeparatorControl(
6384 $this->customizer, 'betterdocs_single_doc_attachment_heading_layout_8_9', [
6385 'label' => __( 'Attachments', 'betterdocs' ),
6386 'priority' => 163,
6387 'settings' => 'betterdocs_single_doc_attachment_heading_layout_8_9',
6388 'section' => 'betterdocs_single_docs_settings'
6389 ] )
6390 );
6391 }
6392
6393 public function betterdocs_doc_single_attachment_content_bg_color_layout_8_9() {
6394 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9', [
6395 'default' => $this->defaults['betterdocs_doc_single_attachment_content_bg_color_layout_8_9'],
6396 'capability' => 'edit_theme_options',
6397 'transport' => 'postMessage',
6398 'sanitize_callback' => [$this->sanitizer, 'rgba']
6399 ] );
6400
6401 $this->customizer->add_control(
6402 new AlphaColorControl(
6403 $this->customizer,
6404 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
6405 [
6406 'label' => __( 'Content Background Color', 'betterdocs' ),
6407 'section' => 'betterdocs_single_docs_settings',
6408 'settings' => 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
6409 'priority' => 163
6410 ]
6411 )
6412 );
6413 }
6414
6415 public function betterdocs_doc_single_attachment_content_padding_layout_8_9() {
6416 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_layout_8_9', [
6417 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_layout_8_9'],
6418 'capability' => 'edit_theme_options',
6419 'transport' => 'postMessage',
6420 'sanitize_callback' => [$this->sanitizer, 'integer']
6421
6422 ] );
6423
6424 $this->customizer->add_control( new TitleControl(
6425 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_layout_8_9', [
6426 'type' => 'betterdocs-title',
6427 'section' => 'betterdocs_single_docs_settings',
6428 'settings' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
6429 'label' => __( 'Content Padding', 'betterdocs' ),
6430 'priority' => 163,
6431 'input_attrs' => [
6432 'id' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
6433 'class' => 'betterdocs-dimension'
6434 ]
6435 ] )
6436 );
6437
6438 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9', [
6439 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_top_layout_8_9'],
6440 'capability' => 'edit_theme_options',
6441 'transport' => 'postMessage',
6442 'sanitize_callback' => [$this->sanitizer, 'integer']
6443 ] );
6444
6445 $this->customizer->add_control( new DimensionControl(
6446 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9', [
6447 'type' => 'betterdocs-dimension',
6448 'section' => 'betterdocs_single_docs_settings',
6449 'settings' => 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9',
6450 'label' => __( 'Top', 'betterdocs' ),
6451 'priority' => 163,
6452 'input_attrs' => [
6453 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
6454 ]
6455 ] )
6456 );
6457
6458 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9', [
6459 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_right_layout_8_9'],
6460 'capability' => 'edit_theme_options',
6461 'transport' => 'postMessage',
6462 'sanitize_callback' => [$this->sanitizer, 'integer']
6463
6464 ] );
6465
6466 $this->customizer->add_control( new DimensionControl(
6467 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9', [
6468 'type' => 'betterdocs-dimension',
6469 'section' => 'betterdocs_single_docs_settings',
6470 'settings' => 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9',
6471 'label' => __( 'Right', 'betterdocs' ),
6472 'priority' => 163,
6473 'input_attrs' => [
6474 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
6475 ]
6476 ] )
6477 );
6478
6479 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9', [
6480 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9'],
6481 'capability' => 'edit_theme_options',
6482 'transport' => 'postMessage',
6483 'sanitize_callback' => [$this->sanitizer, 'integer']
6484
6485 ] );
6486
6487 $this->customizer->add_control( new DimensionControl(
6488 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9', [
6489 'type' => 'betterdocs-dimension',
6490 'section' => 'betterdocs_single_docs_settings',
6491 'settings' => 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9',
6492 'label' => __( 'Bottom', 'betterdocs' ),
6493 'priority' => 163,
6494 'input_attrs' => [
6495 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
6496 ]
6497 ] )
6498 );
6499
6500 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9', [
6501 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_left_layout_8_9'],
6502 'capability' => 'edit_theme_options',
6503 'transport' => 'postMessage',
6504 'sanitize_callback' => [$this->sanitizer, 'integer']
6505
6506 ] );
6507
6508 $this->customizer->add_control( new DimensionControl(
6509 $this->customizer, 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9', [
6510 'type' => 'betterdocs-dimension',
6511 'section' => 'betterdocs_single_docs_settings',
6512 'settings' => 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9',
6513 'label' => __( 'Left', 'betterdocs' ),
6514 'priority' => 163,
6515 'input_attrs' => [
6516 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
6517 ]
6518 ] )
6519 );
6520 }
6521
6522 public function betterdocs_doc_single_attachment_content_margin_layout_8_9() {
6523 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_layout_8_9', [
6524 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_layout_8_9'],
6525 'capability' => 'edit_theme_options',
6526 'transport' => 'postMessage',
6527 'sanitize_callback' => [$this->sanitizer, 'integer']
6528
6529 ] );
6530
6531 $this->customizer->add_control( new TitleControl(
6532 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_layout_8_9', [
6533 'type' => 'betterdocs-title',
6534 'section' => 'betterdocs_single_docs_settings',
6535 'settings' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
6536 'label' => __( 'Content Margin', 'betterdocs' ),
6537 'priority' => 163,
6538 'input_attrs' => [
6539 'id' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
6540 'class' => 'betterdocs-dimension'
6541 ]
6542 ] )
6543 );
6544
6545 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9', [
6546 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_top_layout_8_9'],
6547 'capability' => 'edit_theme_options',
6548 'transport' => 'postMessage',
6549 'sanitize_callback' => [$this->sanitizer, 'integer']
6550 ] );
6551
6552 $this->customizer->add_control( new DimensionControl(
6553 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9', [
6554 'type' => 'betterdocs-dimension',
6555 'section' => 'betterdocs_single_docs_settings',
6556 'settings' => 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9',
6557 'label' => __( 'Top', 'betterdocs' ),
6558 'priority' => 163,
6559 'input_attrs' => [
6560 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
6561 ]
6562 ] )
6563 );
6564
6565 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9', [
6566 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_right_layout_8_9'],
6567 'capability' => 'edit_theme_options',
6568 'transport' => 'postMessage',
6569 'sanitize_callback' => [$this->sanitizer, 'integer']
6570
6571 ] );
6572
6573 $this->customizer->add_control( new DimensionControl(
6574 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9', [
6575 'type' => 'betterdocs-dimension',
6576 'section' => 'betterdocs_single_docs_settings',
6577 'settings' => 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9',
6578 'label' => __( 'Right', 'betterdocs' ),
6579 'priority' => 163,
6580 'input_attrs' => [
6581 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
6582 ]
6583 ] )
6584 );
6585
6586 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9', [
6587 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9'],
6588 'capability' => 'edit_theme_options',
6589 'transport' => 'postMessage',
6590 'sanitize_callback' => [$this->sanitizer, 'integer']
6591
6592 ] );
6593
6594 $this->customizer->add_control( new DimensionControl(
6595 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9', [
6596 'type' => 'betterdocs-dimension',
6597 'section' => 'betterdocs_single_docs_settings',
6598 'settings' => 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9',
6599 'label' => __( 'Bottom', 'betterdocs' ),
6600 'priority' => 163,
6601 'input_attrs' => [
6602 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
6603 ]
6604 ] )
6605 );
6606
6607 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9', [
6608 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_left_layout_8_9'],
6609 'capability' => 'edit_theme_options',
6610 'transport' => 'postMessage',
6611 'sanitize_callback' => [$this->sanitizer, 'integer']
6612
6613 ] );
6614
6615 $this->customizer->add_control( new DimensionControl(
6616 $this->customizer, 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9', [
6617 'type' => 'betterdocs-dimension',
6618 'section' => 'betterdocs_single_docs_settings',
6619 'settings' => 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9',
6620 'label' => __( 'Left', 'betterdocs' ),
6621 'priority' => 163,
6622 'input_attrs' => [
6623 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
6624 ]
6625 ] )
6626 );
6627 }
6628
6629 public function betterdocs_doc_single_attachment_label_color_layout_8_9() {
6630 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_color_layout_8_9', [
6631 'default' => $this->defaults['betterdocs_doc_single_attachment_label_color_layout_8_9'],
6632 'capability' => 'edit_theme_options',
6633 'transport' => 'postMessage',
6634 'sanitize_callback' => [$this->sanitizer, 'rgba']
6635 ] );
6636
6637 $this->customizer->add_control(
6638 new AlphaColorControl(
6639 $this->customizer,
6640 'betterdocs_doc_single_attachment_label_color_layout_8_9',
6641 [
6642 'label' => __( 'Label Color', 'betterdocs' ),
6643 'section' => 'betterdocs_single_docs_settings',
6644 'settings' => 'betterdocs_doc_single_attachment_label_color_layout_8_9',
6645 'priority' => 163
6646 ]
6647 )
6648 );
6649 }
6650
6651 public function betterdocs_doc_single_attachment_label_padding_layout_8_9() {
6652 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_layout_8_9', [
6653 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_layout_8_9'],
6654 'capability' => 'edit_theme_options',
6655 'transport' => 'postMessage',
6656 'sanitize_callback' => [$this->sanitizer, 'integer']
6657
6658 ] );
6659
6660 $this->customizer->add_control( new TitleControl(
6661 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_layout_8_9', [
6662 'type' => 'betterdocs-title',
6663 'section' => 'betterdocs_single_docs_settings',
6664 'settings' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
6665 'label' => __( 'Label Padding', 'betterdocs' ),
6666 'priority' => 163,
6667 'input_attrs' => [
6668 'id' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
6669 'class' => 'betterdocs-dimension'
6670 ]
6671 ] )
6672 );
6673
6674 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9', [
6675 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_top_layout_8_9'],
6676 'capability' => 'edit_theme_options',
6677 'transport' => 'postMessage',
6678 'sanitize_callback' => [$this->sanitizer, 'integer']
6679 ] );
6680
6681 $this->customizer->add_control( new DimensionControl(
6682 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9', [
6683 'type' => 'betterdocs-dimension',
6684 'section' => 'betterdocs_single_docs_settings',
6685 'settings' => 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9',
6686 'label' => __( 'Top', 'betterdocs' ),
6687 'priority' => 163,
6688 'input_attrs' => [
6689 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
6690 ]
6691 ] )
6692 );
6693
6694 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9', [
6695 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_right_layout_8_9'],
6696 'capability' => 'edit_theme_options',
6697 'transport' => 'postMessage',
6698 'sanitize_callback' => [$this->sanitizer, 'integer']
6699
6700 ] );
6701
6702 $this->customizer->add_control( new DimensionControl(
6703 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9', [
6704 'type' => 'betterdocs-dimension',
6705 'section' => 'betterdocs_single_docs_settings',
6706 'settings' => 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9',
6707 'label' => __( 'Right', 'betterdocs' ),
6708 'priority' => 163,
6709 'input_attrs' => [
6710 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
6711 ]
6712 ] )
6713 );
6714
6715 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9', [
6716 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9'],
6717 'capability' => 'edit_theme_options',
6718 'transport' => 'postMessage',
6719 'sanitize_callback' => [$this->sanitizer, 'integer']
6720
6721 ] );
6722
6723 $this->customizer->add_control( new DimensionControl(
6724 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9', [
6725 'type' => 'betterdocs-dimension',
6726 'section' => 'betterdocs_single_docs_settings',
6727 'settings' => 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9',
6728 'label' => __( 'Bottom', 'betterdocs' ),
6729 'priority' => 163,
6730 'input_attrs' => [
6731 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
6732 ]
6733 ] )
6734 );
6735
6736 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9', [
6737 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_left_layout_8_9'],
6738 'capability' => 'edit_theme_options',
6739 'transport' => 'postMessage',
6740 'sanitize_callback' => [$this->sanitizer, 'integer']
6741
6742 ] );
6743
6744 $this->customizer->add_control( new DimensionControl(
6745 $this->customizer, 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9', [
6746 'type' => 'betterdocs-dimension',
6747 'section' => 'betterdocs_single_docs_settings',
6748 'settings' => 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9',
6749 'label' => __( 'Left', 'betterdocs' ),
6750 'priority' => 163,
6751 'input_attrs' => [
6752 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
6753 ]
6754 ] )
6755 );
6756 }
6757
6758 public function betterdocs_doc_single_attachment_label_margin_layout_8_9() {
6759 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_layout_8_9', [
6760 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_layout_8_9'],
6761 'capability' => 'edit_theme_options',
6762 'transport' => 'postMessage',
6763 'sanitize_callback' => [$this->sanitizer, 'integer']
6764
6765 ] );
6766
6767 $this->customizer->add_control( new TitleControl(
6768 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_layout_8_9', [
6769 'type' => 'betterdocs-title',
6770 'section' => 'betterdocs_single_docs_settings',
6771 'settings' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
6772 'label' => __( 'Label Margin', 'betterdocs' ),
6773 'priority' => 163,
6774 'input_attrs' => [
6775 'id' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
6776 'class' => 'betterdocs-dimension'
6777 ]
6778 ] )
6779 );
6780
6781 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9', [
6782 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_top_layout_8_9'],
6783 'capability' => 'edit_theme_options',
6784 'transport' => 'postMessage',
6785 'sanitize_callback' => [$this->sanitizer, 'integer']
6786 ] );
6787
6788 $this->customizer->add_control( new DimensionControl(
6789 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9', [
6790 'type' => 'betterdocs-dimension',
6791 'section' => 'betterdocs_single_docs_settings',
6792 'settings' => 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9',
6793 'label' => __( 'Top', 'betterdocs' ),
6794 'priority' => 163,
6795 'input_attrs' => [
6796 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
6797 ]
6798 ] )
6799 );
6800
6801 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9', [
6802 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_right_layout_8_9'],
6803 'capability' => 'edit_theme_options',
6804 'transport' => 'postMessage',
6805 'sanitize_callback' => [$this->sanitizer, 'integer']
6806
6807 ] );
6808
6809 $this->customizer->add_control( new DimensionControl(
6810 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9', [
6811 'type' => 'betterdocs-dimension',
6812 'section' => 'betterdocs_single_docs_settings',
6813 'settings' => 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9',
6814 'label' => __( 'Right', 'betterdocs' ),
6815 'priority' => 163,
6816 'input_attrs' => [
6817 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
6818 ]
6819 ] )
6820 );
6821
6822 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9', [
6823 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9'],
6824 'capability' => 'edit_theme_options',
6825 'transport' => 'postMessage',
6826 'sanitize_callback' => [$this->sanitizer, 'integer']
6827 ] );
6828
6829 $this->customizer->add_control( new DimensionControl(
6830 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9', [
6831 'type' => 'betterdocs-dimension',
6832 'section' => 'betterdocs_single_docs_settings',
6833 'settings' => 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9',
6834 'label' => __( 'Bottom', 'betterdocs' ),
6835 'priority' => 163,
6836 'input_attrs' => [
6837 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
6838 ]
6839 ] )
6840 );
6841
6842 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9', [
6843 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_left_layout_8_9'],
6844 'capability' => 'edit_theme_options',
6845 'transport' => 'postMessage',
6846 'sanitize_callback' => [$this->sanitizer, 'integer']
6847 ] );
6848
6849 $this->customizer->add_control( new DimensionControl(
6850 $this->customizer, 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9', [
6851 'type' => 'betterdocs-dimension',
6852 'section' => 'betterdocs_single_docs_settings',
6853 'settings' => 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9',
6854 'label' => __( 'Left', 'betterdocs' ),
6855 'priority' => 163,
6856 'input_attrs' => [
6857 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
6858 ]
6859 ] )
6860 );
6861 }
6862
6863 public function betterdocs_doc_single_attachment_list_font_size_layout_8_9() {
6864 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_font_size_layout_8_9', [
6865 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_size_layout_8_9'],
6866 'capability' => 'edit_theme_options',
6867 'transport' => 'postMessage',
6868 'sanitize_callback' => [$this->sanitizer, 'integer']
6869
6870 ] );
6871
6872 $this->customizer->add_control( new RangeValueControl(
6873 $this->customizer, 'betterdocs_doc_single_attachment_list_font_size_layout_8_9', [
6874 'type' => 'betterdocs-range-value',
6875 'section' => 'betterdocs_single_docs_settings',
6876 'settings' => 'betterdocs_doc_single_attachment_list_font_size_layout_8_9',
6877 'label' => __( 'List Font Size', 'betterdocs' ),
6878 'priority' => 163,
6879 'input_attrs' => [
6880 'min' => 0,
6881 'max' => 50,
6882 'step' => 1,
6883 'suffix' => 'px' //optional suffix
6884 ]
6885 ] )
6886 );
6887 }
6888
6889 public function betterdocs_doc_single_attachment_list_font_weight_layout_8_9() {
6890 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9', [
6891 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_weight_layout_8_9'],
6892 'capability' => 'edit_theme_options',
6893 'sanitize_callback' => [$this->sanitizer, 'choices']
6894 ] );
6895
6896 $this->customizer->add_control(
6897 new WP_Customize_Control(
6898 $this->customizer,
6899 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
6900 [
6901 'label' => __( 'List Font Weight', 'betterdocs-pro' ),
6902 'section' => 'betterdocs_single_docs_settings',
6903 'settings' => 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
6904 'type' => 'select',
6905 'choices' => [
6906 'normal' => 'Normal',
6907 '100' => '100',
6908 '200' => '200',
6909 '300' => '300',
6910 '400' => '400',
6911 '500' => '500',
6912 '600' => '600',
6913 '700' => '700',
6914 '800' => '800',
6915 '900' => '900'
6916 ],
6917 'priority' => 163
6918 ]
6919 )
6920 );
6921 }
6922
6923 public function betterdocs_doc_single_attachment_list_extension_color_layout_8_9() {
6924 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9', [
6925 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_color_layout_8_9'],
6926 'capability' => 'edit_theme_options',
6927 'transport' => 'postMessage',
6928 'sanitize_callback' => [$this->sanitizer, 'rgba']
6929 ] );
6930
6931 $this->customizer->add_control(
6932 new AlphaColorControl(
6933 $this->customizer,
6934 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
6935 [
6936 'label' => __( 'Extension Color', 'betterdocs' ),
6937 'section' => 'betterdocs_single_docs_settings',
6938 'settings' => 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
6939 'priority' => 163
6940 ]
6941 )
6942 );
6943 }
6944
6945 public function betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9() {
6946 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9', [
6947 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9'],
6948 'capability' => 'edit_theme_options',
6949 'transport' => 'postMessage',
6950 'sanitize_callback' => [$this->sanitizer, 'integer']
6951
6952 ] );
6953
6954 $this->customizer->add_control( new RangeValueControl(
6955 $this->customizer, 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9', [
6956 'type' => 'betterdocs-range-value',
6957 'section' => 'betterdocs_single_docs_settings',
6958 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9',
6959 'label' => __( 'Extension Font Size', 'betterdocs' ),
6960 'priority' => 163,
6961 'input_attrs' => [
6962 'min' => 0,
6963 'max' => 50,
6964 'step' => 1,
6965 'suffix' => 'px' //optional suffix
6966 ]
6967 ] )
6968 );
6969 }
6970
6971 public function betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9() {
6972 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9', [
6973 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9'],
6974 'capability' => 'edit_theme_options',
6975 'sanitize_callback' => [$this->sanitizer, 'choices']
6976 ] );
6977
6978 $this->customizer->add_control(
6979 new WP_Customize_Control(
6980 $this->customizer,
6981 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
6982 [
6983 'label' => __( 'Extension Font Weight', 'betterdocs-pro' ),
6984 'section' => 'betterdocs_single_docs_settings',
6985 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
6986 'type' => 'select',
6987 'choices' => [
6988 'normal' => 'Normal',
6989 '100' => '100',
6990 '200' => '200',
6991 '300' => '300',
6992 '400' => '400',
6993 '500' => '500',
6994 '600' => '600',
6995 '700' => '700',
6996 '800' => '800',
6997 '900' => '900'
6998 ],
6999 'priority' => 163
7000 ]
7001 )
7002 );
7003 }
7004
7005 public function betterdocs_doc_single_attachment_list_color_layout_8_9() {
7006 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_color_layout_8_9', [
7007 'default' => $this->defaults['betterdocs_doc_single_attachment_list_color_layout_8_9'],
7008 'capability' => 'edit_theme_options',
7009 'transport' => 'postMessage',
7010 'sanitize_callback' => [$this->sanitizer, 'rgba']
7011 ] );
7012
7013 $this->customizer->add_control(
7014 new AlphaColorControl(
7015 $this->customizer,
7016 'betterdocs_doc_single_attachment_list_color_layout_8_9',
7017 [
7018 'label' => __( 'List Color', 'betterdocs' ),
7019 'section' => 'betterdocs_single_docs_settings',
7020 'settings' => 'betterdocs_doc_single_attachment_list_color_layout_8_9',
7021 'priority' => 163
7022 ]
7023 )
7024 );
7025 }
7026
7027 public function betterdocs_doc_single_attachment_list_background_color_layout_8_9() {
7028 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_background_color_layout_8_9', [
7029 'default' => $this->defaults['betterdocs_doc_single_attachment_list_background_color_layout_8_9'],
7030 'capability' => 'edit_theme_options',
7031 'transport' => 'postMessage',
7032 'sanitize_callback' => [$this->sanitizer, 'rgba']
7033 ] );
7034
7035 $this->customizer->add_control(
7036 new AlphaColorControl(
7037 $this->customizer,
7038 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
7039 [
7040 'label' => __( 'List Background Color', 'betterdocs' ),
7041 'section' => 'betterdocs_single_docs_settings',
7042 'settings' => 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
7043 'priority' => 163
7044 ]
7045 )
7046 );
7047 }
7048
7049 public function betterdocs_doc_single_attachment_list_padding_layout_8_9() {
7050 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_layout_8_9', [
7051 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_layout_8_9'],
7052 'capability' => 'edit_theme_options',
7053 'transport' => 'postMessage',
7054 'sanitize_callback' => [$this->sanitizer, 'integer']
7055
7056 ] );
7057
7058 $this->customizer->add_control( new TitleControl(
7059 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_layout_8_9', [
7060 'type' => 'betterdocs-title',
7061 'section' => 'betterdocs_single_docs_settings',
7062 'settings' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
7063 'label' => __( 'List Padding', 'betterdocs' ),
7064 'priority' => 163,
7065 'input_attrs' => [
7066 'id' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
7067 'class' => 'betterdocs-dimension'
7068 ]
7069 ] )
7070 );
7071
7072 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9', [
7073 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_top_layout_8_9'],
7074 'capability' => 'edit_theme_options',
7075 'transport' => 'postMessage',
7076 'sanitize_callback' => [$this->sanitizer, 'integer']
7077 ] );
7078
7079 $this->customizer->add_control( new DimensionControl(
7080 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9', [
7081 'type' => 'betterdocs-dimension',
7082 'section' => 'betterdocs_single_docs_settings',
7083 'settings' => 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9',
7084 'label' => __( 'Top', 'betterdocs' ),
7085 'priority' => 163,
7086 'input_attrs' => [
7087 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
7088 ]
7089 ] )
7090 );
7091
7092 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9', [
7093 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_right_layout_8_9'],
7094 'capability' => 'edit_theme_options',
7095 'transport' => 'postMessage',
7096 'sanitize_callback' => [$this->sanitizer, 'integer']
7097
7098 ] );
7099
7100 $this->customizer->add_control( new DimensionControl(
7101 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9', [
7102 'type' => 'betterdocs-dimension',
7103 'section' => 'betterdocs_single_docs_settings',
7104 'settings' => 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9',
7105 'label' => __( 'Right', 'betterdocs' ),
7106 'priority' => 163,
7107 'input_attrs' => [
7108 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
7109 ]
7110 ] )
7111 );
7112
7113 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9', [
7114 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9'],
7115 'capability' => 'edit_theme_options',
7116 'transport' => 'postMessage',
7117 'sanitize_callback' => [$this->sanitizer, 'integer']
7118 ] );
7119
7120 $this->customizer->add_control( new DimensionControl(
7121 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9', [
7122 'type' => 'betterdocs-dimension',
7123 'section' => 'betterdocs_single_docs_settings',
7124 'settings' => 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9',
7125 'label' => __( 'Bottom', 'betterdocs' ),
7126 'priority' => 163,
7127 'input_attrs' => [
7128 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
7129 ]
7130 ] )
7131 );
7132
7133 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9', [
7134 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_left_layout_8_9'],
7135 'capability' => 'edit_theme_options',
7136 'transport' => 'postMessage',
7137 'sanitize_callback' => [$this->sanitizer, 'integer']
7138 ] );
7139
7140 $this->customizer->add_control( new DimensionControl(
7141 $this->customizer, 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9', [
7142 'type' => 'betterdocs-dimension',
7143 'section' => 'betterdocs_single_docs_settings',
7144 'settings' => 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9',
7145 'label' => __( 'Left', 'betterdocs' ),
7146 'priority' => 163,
7147 'input_attrs' => [
7148 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
7149 ]
7150 ] )
7151 );
7152 }
7153
7154 public function betterdocs_doc_single_attachment_list_margin_layout_8_9() {
7155 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_layout_8_9', [
7156 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_layout_8_9'],
7157 'capability' => 'edit_theme_options',
7158 'transport' => 'postMessage',
7159 'sanitize_callback' => [$this->sanitizer, 'integer']
7160
7161 ] );
7162
7163 $this->customizer->add_control( new TitleControl(
7164 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_layout_8_9', [
7165 'type' => 'betterdocs-title',
7166 'section' => 'betterdocs_single_docs_settings',
7167 'settings' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
7168 'label' => __( 'List Margin', 'betterdocs' ),
7169 'priority' => 163,
7170 'input_attrs' => [
7171 'id' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
7172 'class' => 'betterdocs-dimension'
7173 ]
7174 ] )
7175 );
7176
7177 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9', [
7178 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_top_layout_8_9'],
7179 'capability' => 'edit_theme_options',
7180 'transport' => 'postMessage',
7181 'sanitize_callback' => [$this->sanitizer, 'integer']
7182 ] );
7183
7184 $this->customizer->add_control( new DimensionControl(
7185 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9', [
7186 'type' => 'betterdocs-dimension',
7187 'section' => 'betterdocs_single_docs_settings',
7188 'settings' => 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9',
7189 'label' => __( 'Top', 'betterdocs' ),
7190 'priority' => 163,
7191 'input_attrs' => [
7192 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
7193 ]
7194 ] )
7195 );
7196
7197 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9', [
7198 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_right_layout_8_9'],
7199 'capability' => 'edit_theme_options',
7200 'transport' => 'postMessage',
7201 'sanitize_callback' => [$this->sanitizer, 'integer']
7202
7203 ] );
7204
7205 $this->customizer->add_control( new DimensionControl(
7206 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9', [
7207 'type' => 'betterdocs-dimension',
7208 'section' => 'betterdocs_single_docs_settings',
7209 'settings' => 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9',
7210 'label' => __( 'Right', 'betterdocs' ),
7211 'priority' => 163,
7212 'input_attrs' => [
7213 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
7214 ]
7215 ] )
7216 );
7217
7218 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9', [
7219 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9'],
7220 'capability' => 'edit_theme_options',
7221 'transport' => 'postMessage',
7222 'sanitize_callback' => [$this->sanitizer, 'integer']
7223 ] );
7224
7225 $this->customizer->add_control( new DimensionControl(
7226 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9', [
7227 'type' => 'betterdocs-dimension',
7228 'section' => 'betterdocs_single_docs_settings',
7229 'settings' => 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9',
7230 'label' => __( 'Bottom', 'betterdocs' ),
7231 'priority' => 163,
7232 'input_attrs' => [
7233 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
7234 ]
7235 ] )
7236 );
7237
7238 $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9', [
7239 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_left_layout_8_9'],
7240 'capability' => 'edit_theme_options',
7241 'transport' => 'postMessage',
7242 'sanitize_callback' => [$this->sanitizer, 'integer']
7243 ] );
7244
7245 $this->customizer->add_control( new DimensionControl(
7246 $this->customizer, 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9', [
7247 'type' => 'betterdocs-dimension',
7248 'section' => 'betterdocs_single_docs_settings',
7249 'settings' => 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9',
7250 'label' => __( 'Left', 'betterdocs' ),
7251 'priority' => 163,
7252 'input_attrs' => [
7253 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
7254 ]
7255 ] )
7256 );
7257 }
7258
7259 public function betterdocs_doc_single_related_docs_heading() {
7260 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_heading', [
7261 'default' => 'betterdocs_doc_single_related_docs_heading',
7262 'sanitize_callback' => 'esc_html'
7263 ] );
7264
7265 $this->customizer->add_control( new SeparatorControl(
7266 $this->customizer, 'betterdocs_doc_single_related_docs_heading', [
7267 'label' => __( 'Related Docs', 'betterdocs' ),
7268 'priority' => 163,
7269 'settings' => 'betterdocs_doc_single_related_docs_heading',
7270 'section' => 'betterdocs_single_docs_settings'
7271 ] )
7272 );
7273 }
7274
7275 public function betterdocs_doc_single_related_docs_content_bg_color() {
7276 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_bg_color', [
7277 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_bg_color'],
7278 'capability' => 'edit_theme_options',
7279 'transport' => 'postMessage',
7280 'sanitize_callback' => [$this->sanitizer, 'rgba']
7281 ] );
7282
7283 $this->customizer->add_control(
7284 new AlphaColorControl(
7285 $this->customizer,
7286 'betterdocs_doc_single_related_docs_content_bg_color',
7287 [
7288 'label' => __( 'Content Background Color', 'betterdocs' ),
7289 'section' => 'betterdocs_single_docs_settings',
7290 'settings' => 'betterdocs_doc_single_related_docs_content_bg_color',
7291 'priority' => 163
7292 ]
7293 )
7294 );
7295 }
7296
7297 public function betterdocs_doc_single_related_docs_content_padding() {
7298 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding', [
7299 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding'],
7300 'capability' => 'edit_theme_options',
7301 'transport' => 'postMessage',
7302 'sanitize_callback' => [$this->sanitizer, 'integer']
7303
7304 ] );
7305
7306 $this->customizer->add_control( new TitleControl(
7307 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding', [
7308 'type' => 'betterdocs-title',
7309 'section' => 'betterdocs_single_docs_settings',
7310 'settings' => 'betterdocs_doc_single_related_docs_content_padding',
7311 'label' => __( 'Content Padding', 'betterdocs' ),
7312 'priority' => 163,
7313 'input_attrs' => [
7314 'id' => 'betterdocs_doc_single_related_docs_content_padding',
7315 'class' => 'betterdocs-dimension'
7316 ]
7317 ] )
7318 );
7319
7320 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_top', [
7321 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_top'],
7322 'capability' => 'edit_theme_options',
7323 'transport' => 'postMessage',
7324 'sanitize_callback' => [$this->sanitizer, 'integer']
7325 ] );
7326
7327 $this->customizer->add_control( new DimensionControl(
7328 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_top', [
7329 'type' => 'betterdocs-dimension',
7330 'section' => 'betterdocs_single_docs_settings',
7331 'settings' => 'betterdocs_doc_single_related_docs_content_padding_top',
7332 'label' => __( 'Top', 'betterdocs' ),
7333 'priority' => 163,
7334 'input_attrs' => [
7335 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
7336 ]
7337 ] )
7338 );
7339
7340 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_right', [
7341 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_right'],
7342 'capability' => 'edit_theme_options',
7343 'transport' => 'postMessage',
7344 'sanitize_callback' => [$this->sanitizer, 'integer']
7345
7346 ] );
7347
7348 $this->customizer->add_control( new DimensionControl(
7349 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_right', [
7350 'type' => 'betterdocs-dimension',
7351 'section' => 'betterdocs_single_docs_settings',
7352 'settings' => 'betterdocs_doc_single_related_docs_content_padding_right',
7353 'label' => __( 'Right', 'betterdocs' ),
7354 'priority' => 163,
7355 'input_attrs' => [
7356 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
7357 ]
7358 ] )
7359 );
7360
7361 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_bottom', [
7362 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_bottom'],
7363 'capability' => 'edit_theme_options',
7364 'transport' => 'postMessage',
7365 'sanitize_callback' => [$this->sanitizer, 'integer']
7366
7367 ] );
7368
7369 $this->customizer->add_control( new DimensionControl(
7370 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_bottom', [
7371 'type' => 'betterdocs-dimension',
7372 'section' => 'betterdocs_single_docs_settings',
7373 'settings' => 'betterdocs_doc_single_related_docs_content_padding_bottom',
7374 'label' => __( 'Bottom', 'betterdocs' ),
7375 'priority' => 163,
7376 'input_attrs' => [
7377 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
7378 ]
7379 ] )
7380 );
7381
7382 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_left', [
7383 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_left'],
7384 'capability' => 'edit_theme_options',
7385 'transport' => 'postMessage',
7386 'sanitize_callback' => [$this->sanitizer, 'integer']
7387
7388 ] );
7389
7390 $this->customizer->add_control( new DimensionControl(
7391 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_left', [
7392 'type' => 'betterdocs-dimension',
7393 'section' => 'betterdocs_single_docs_settings',
7394 'settings' => 'betterdocs_doc_single_related_docs_content_padding_left',
7395 'label' => __( 'Left', 'betterdocs' ),
7396 'priority' => 163,
7397 'input_attrs' => [
7398 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
7399 ]
7400 ] )
7401 );
7402 }
7403
7404 public function betterdocs_doc_single_related_docs_content_margin() {
7405 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin', [
7406 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin'],
7407 'capability' => 'edit_theme_options',
7408 'transport' => 'postMessage',
7409 'sanitize_callback' => [$this->sanitizer, 'integer']
7410
7411 ] );
7412
7413 $this->customizer->add_control( new TitleControl(
7414 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin', [
7415 'type' => 'betterdocs-title',
7416 'section' => 'betterdocs_single_docs_settings',
7417 'settings' => 'betterdocs_doc_single_related_docs_content_margin',
7418 'label' => __( 'Content Margin', 'betterdocs' ),
7419 'priority' => 163,
7420 'input_attrs' => [
7421 'id' => 'betterdocs_doc_single_related_docs_content_margin',
7422 'class' => 'betterdocs-dimension'
7423 ]
7424 ] )
7425 );
7426
7427 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_top', [
7428 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_top'],
7429 'capability' => 'edit_theme_options',
7430 'transport' => 'postMessage',
7431 'sanitize_callback' => [$this->sanitizer, 'integer']
7432 ] );
7433
7434 $this->customizer->add_control( new DimensionControl(
7435 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_top', [
7436 'type' => 'betterdocs-dimension',
7437 'section' => 'betterdocs_single_docs_settings',
7438 'settings' => 'betterdocs_doc_single_related_docs_content_margin_top',
7439 'label' => __( 'Top', 'betterdocs' ),
7440 'priority' => 163,
7441 'input_attrs' => [
7442 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
7443 ]
7444 ] )
7445 );
7446
7447 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_right', [
7448 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_right'],
7449 'capability' => 'edit_theme_options',
7450 'transport' => 'postMessage',
7451 'sanitize_callback' => [$this->sanitizer, 'integer']
7452
7453 ] );
7454
7455 $this->customizer->add_control( new DimensionControl(
7456 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_right', [
7457 'type' => 'betterdocs-dimension',
7458 'section' => 'betterdocs_single_docs_settings',
7459 'settings' => 'betterdocs_doc_single_related_docs_content_margin_right',
7460 'label' => __( 'Right', 'betterdocs' ),
7461 'priority' => 163,
7462 'input_attrs' => [
7463 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
7464 ]
7465 ] )
7466 );
7467
7468 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_bottom', [
7469 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_bottom'],
7470 'capability' => 'edit_theme_options',
7471 'transport' => 'postMessage',
7472 'sanitize_callback' => [$this->sanitizer, 'integer']
7473
7474 ] );
7475
7476 $this->customizer->add_control( new DimensionControl(
7477 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_bottom', [
7478 'type' => 'betterdocs-dimension',
7479 'section' => 'betterdocs_single_docs_settings',
7480 'settings' => 'betterdocs_doc_single_related_docs_content_margin_bottom',
7481 'label' => __( 'Bottom', 'betterdocs' ),
7482 'priority' => 163,
7483 'input_attrs' => [
7484 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
7485 ]
7486 ] )
7487 );
7488
7489 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_left', [
7490 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_left'],
7491 'capability' => 'edit_theme_options',
7492 'transport' => 'postMessage',
7493 'sanitize_callback' => [$this->sanitizer, 'integer']
7494
7495 ] );
7496
7497 $this->customizer->add_control( new DimensionControl(
7498 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_left', [
7499 'type' => 'betterdocs-dimension',
7500 'section' => 'betterdocs_single_docs_settings',
7501 'settings' => 'betterdocs_doc_single_related_docs_content_margin_left',
7502 'label' => __( 'Left', 'betterdocs' ),
7503 'priority' => 163,
7504 'input_attrs' => [
7505 'class' => 'betterdocs_doc_single_related_docs_content_margin_left betterdocs-dimension'
7506 ]
7507 ] )
7508 );
7509 }
7510
7511 public function betterdocs_doc_single_related_docs_label_color() {
7512 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_color', [
7513 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_color'],
7514 'capability' => 'edit_theme_options',
7515 'transport' => 'postMessage',
7516 'sanitize_callback' => [$this->sanitizer, 'rgba']
7517 ] );
7518
7519 $this->customizer->add_control(
7520 new AlphaColorControl(
7521 $this->customizer,
7522 'betterdocs_doc_single_related_docs_label_color',
7523 [
7524 'label' => __( 'Label Color', 'betterdocs' ),
7525 'section' => 'betterdocs_single_docs_settings',
7526 'settings' => 'betterdocs_doc_single_related_docs_label_color',
7527 'priority' => 163
7528 ]
7529 )
7530 );
7531 }
7532
7533 public function betterdocs_doc_single_related_docs_label_padding() {
7534 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding', [
7535 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding'],
7536 'capability' => 'edit_theme_options',
7537 'transport' => 'postMessage',
7538 'sanitize_callback' => [$this->sanitizer, 'integer']
7539
7540 ] );
7541
7542 $this->customizer->add_control( new TitleControl(
7543 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding', [
7544 'type' => 'betterdocs-title',
7545 'section' => 'betterdocs_single_docs_settings',
7546 'settings' => 'betterdocs_doc_single_related_docs_label_padding',
7547 'label' => __( 'Label Padding', 'betterdocs' ),
7548 'priority' => 163,
7549 'input_attrs' => [
7550 'id' => 'betterdocs_doc_single_related_docs_label_padding',
7551 'class' => 'betterdocs-dimension'
7552 ]
7553 ] )
7554 );
7555
7556 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_top', [
7557 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_top'],
7558 'capability' => 'edit_theme_options',
7559 'transport' => 'postMessage',
7560 'sanitize_callback' => [$this->sanitizer, 'integer']
7561 ] );
7562
7563 $this->customizer->add_control( new DimensionControl(
7564 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_top', [
7565 'type' => 'betterdocs-dimension',
7566 'section' => 'betterdocs_single_docs_settings',
7567 'settings' => 'betterdocs_doc_single_related_docs_label_padding_top',
7568 'label' => __( 'Top', 'betterdocs' ),
7569 'priority' => 163,
7570 'input_attrs' => [
7571 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
7572 ]
7573 ] )
7574 );
7575
7576 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_right', [
7577 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_right'],
7578 'capability' => 'edit_theme_options',
7579 'transport' => 'postMessage',
7580 'sanitize_callback' => [$this->sanitizer, 'integer']
7581
7582 ] );
7583
7584 $this->customizer->add_control( new DimensionControl(
7585 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_right', [
7586 'type' => 'betterdocs-dimension',
7587 'section' => 'betterdocs_single_docs_settings',
7588 'settings' => 'betterdocs_doc_single_related_docs_label_padding_right',
7589 'label' => __( 'Right', 'betterdocs' ),
7590 'priority' => 163,
7591 'input_attrs' => [
7592 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
7593 ]
7594 ] )
7595 );
7596
7597 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_bottom', [
7598 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_bottom'],
7599 'capability' => 'edit_theme_options',
7600 'transport' => 'postMessage',
7601 'sanitize_callback' => [$this->sanitizer, 'integer']
7602
7603 ] );
7604
7605 $this->customizer->add_control( new DimensionControl(
7606 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_bottom', [
7607 'type' => 'betterdocs-dimension',
7608 'section' => 'betterdocs_single_docs_settings',
7609 'settings' => 'betterdocs_doc_single_related_docs_label_padding_bottom',
7610 'label' => __( 'Bottom', 'betterdocs' ),
7611 'priority' => 163,
7612 'input_attrs' => [
7613 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
7614 ]
7615 ] )
7616 );
7617
7618 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_left', [
7619 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_left'],
7620 'capability' => 'edit_theme_options',
7621 'transport' => 'postMessage',
7622 'sanitize_callback' => [$this->sanitizer, 'integer']
7623
7624 ] );
7625
7626 $this->customizer->add_control( new DimensionControl(
7627 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_left', [
7628 'type' => 'betterdocs-dimension',
7629 'section' => 'betterdocs_single_docs_settings',
7630 'settings' => 'betterdocs_doc_single_related_docs_label_padding_left',
7631 'label' => __( 'Left', 'betterdocs' ),
7632 'priority' => 163,
7633 'input_attrs' => [
7634 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
7635 ]
7636 ] )
7637 );
7638 }
7639
7640 public function betterdocs_doc_single_related_docs_label_margin() {
7641 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin', [
7642 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin'],
7643 'capability' => 'edit_theme_options',
7644 'transport' => 'postMessage',
7645 'sanitize_callback' => [$this->sanitizer, 'integer']
7646
7647 ] );
7648
7649 $this->customizer->add_control( new TitleControl(
7650 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin', [
7651 'type' => 'betterdocs-title',
7652 'section' => 'betterdocs_single_docs_settings',
7653 'settings' => 'betterdocs_doc_single_related_docs_label_margin',
7654 'label' => __( 'Label Margin', 'betterdocs' ),
7655 'priority' => 163,
7656 'input_attrs' => [
7657 'id' => 'betterdocs_doc_single_related_docs_label_margin',
7658 'class' => 'betterdocs-dimension'
7659 ]
7660 ] )
7661 );
7662
7663 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_top', [
7664 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_top'],
7665 'capability' => 'edit_theme_options',
7666 'transport' => 'postMessage',
7667 'sanitize_callback' => [$this->sanitizer, 'integer']
7668 ] );
7669
7670 $this->customizer->add_control( new DimensionControl(
7671 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_top', [
7672 'type' => 'betterdocs-dimension',
7673 'section' => 'betterdocs_single_docs_settings',
7674 'settings' => 'betterdocs_doc_single_related_docs_label_margin_top',
7675 'label' => __( 'Top', 'betterdocs' ),
7676 'priority' => 163,
7677 'input_attrs' => [
7678 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
7679 ]
7680 ] )
7681 );
7682
7683 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_right', [
7684 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_right'],
7685 'capability' => 'edit_theme_options',
7686 'transport' => 'postMessage',
7687 'sanitize_callback' => [$this->sanitizer, 'integer']
7688
7689 ] );
7690
7691 $this->customizer->add_control( new DimensionControl(
7692 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_right', [
7693 'type' => 'betterdocs-dimension',
7694 'section' => 'betterdocs_single_docs_settings',
7695 'settings' => 'betterdocs_doc_single_related_docs_label_margin_right',
7696 'label' => __( 'Right', 'betterdocs' ),
7697 'priority' => 163,
7698 'input_attrs' => [
7699 'class' => 'betterdocs_doc_single_related_docs_label_margin_right betterdocs-dimension'
7700 ]
7701 ] )
7702 );
7703
7704 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_bottom', [
7705 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_bottom'],
7706 'capability' => 'edit_theme_options',
7707 'transport' => 'postMessage',
7708 'sanitize_callback' => [$this->sanitizer, 'integer']
7709 ] );
7710
7711 $this->customizer->add_control( new DimensionControl(
7712 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_bottom', [
7713 'type' => 'betterdocs-dimension',
7714 'section' => 'betterdocs_single_docs_settings',
7715 'settings' => 'betterdocs_doc_single_related_docs_label_margin_bottom',
7716 'label' => __( 'Bottom', 'betterdocs' ),
7717 'priority' => 163,
7718 'input_attrs' => [
7719 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
7720 ]
7721 ] )
7722 );
7723
7724 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_left', [
7725 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_left'],
7726 'capability' => 'edit_theme_options',
7727 'transport' => 'postMessage',
7728 'sanitize_callback' => [$this->sanitizer, 'integer']
7729 ] );
7730
7731 $this->customizer->add_control( new DimensionControl(
7732 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_left', [
7733 'type' => 'betterdocs-dimension',
7734 'section' => 'betterdocs_single_docs_settings',
7735 'settings' => 'betterdocs_doc_single_related_docs_label_margin_left',
7736 'label' => __( 'Left', 'betterdocs' ),
7737 'priority' => 163,
7738 'input_attrs' => [
7739 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
7740 ]
7741 ] )
7742 );
7743 }
7744
7745 public function betterdocs_doc_related_docs_list_font_size() {
7746 $this->customizer->add_setting( 'betterdocs_doc_related_docs_list_font_size', [
7747 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_size'],
7748 'capability' => 'edit_theme_options',
7749 'transport' => 'postMessage',
7750 'sanitize_callback' => [$this->sanitizer, 'integer']
7751
7752 ] );
7753
7754 $this->customizer->add_control( new RangeValueControl(
7755 $this->customizer, 'betterdocs_doc_related_docs_list_font_size', [
7756 'type' => 'betterdocs-range-value',
7757 'section' => 'betterdocs_single_docs_settings',
7758 'settings' => 'betterdocs_doc_related_docs_list_font_size',
7759 'label' => __( 'List Font Size', 'betterdocs' ),
7760 'priority' => 163,
7761 'input_attrs' => [
7762 'min' => 0,
7763 'max' => 50,
7764 'step' => 1,
7765 'suffix' => 'px' //optional suffix
7766 ]
7767 ] )
7768 );
7769 }
7770
7771 public function betterdocs_doc_related_docs_list_font_weight() {
7772 $this->customizer->add_setting( 'betterdocs_doc_related_docs_list_font_weight', [
7773 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_weight'],
7774 'capability' => 'edit_theme_options',
7775 'sanitize_callback' => [$this->sanitizer, 'choices']
7776 ] );
7777
7778 $this->customizer->add_control(
7779 new WP_Customize_Control(
7780 $this->customizer,
7781 'betterdocs_doc_related_docs_list_font_weight',
7782 [
7783 'label' => __( 'List Font Weight', 'betterdocs-pro' ),
7784 'section' => 'betterdocs_single_docs_settings',
7785 'settings' => 'betterdocs_doc_related_docs_list_font_weight',
7786 'type' => 'select',
7787 'choices' => [
7788 'normal' => 'Normal',
7789 '100' => '100',
7790 '200' => '200',
7791 '300' => '300',
7792 '400' => '400',
7793 '500' => '500',
7794 '600' => '600',
7795 '700' => '700',
7796 '800' => '800',
7797 '900' => '900'
7798 ],
7799 'priority' => 163
7800 ]
7801 )
7802 );
7803 }
7804
7805
7806 public function betterdocs_doc_single_related_docs_list_color() {
7807 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_color', [
7808 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_color'],
7809 'capability' => 'edit_theme_options',
7810 'transport' => 'postMessage',
7811 'sanitize_callback' => [$this->sanitizer, 'rgba']
7812 ] );
7813
7814 $this->customizer->add_control(
7815 new AlphaColorControl(
7816 $this->customizer,
7817 'betterdocs_doc_single_related_docs_list_color',
7818 [
7819 'label' => __( 'List Color', 'betterdocs' ),
7820 'section' => 'betterdocs_single_docs_settings',
7821 'settings' => 'betterdocs_doc_single_related_docs_list_color',
7822 'priority' => 163
7823 ]
7824 )
7825 );
7826 }
7827
7828 public function betterdocs_doc_single_related_docs_list_background_color() {
7829 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_background_color', [
7830 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_background_color'],
7831 'capability' => 'edit_theme_options',
7832 'transport' => 'postMessage',
7833 'sanitize_callback' => [$this->sanitizer, 'rgba']
7834 ] );
7835
7836 $this->customizer->add_control(
7837 new AlphaColorControl(
7838 $this->customizer,
7839 'betterdocs_doc_single_related_docs_list_background_color',
7840 [
7841 'label' => __( 'List Background Color', 'betterdocs' ),
7842 'section' => 'betterdocs_single_docs_settings',
7843 'settings' => 'betterdocs_doc_single_related_docs_list_background_color',
7844 'priority' => 163
7845 ]
7846 )
7847 );
7848 }
7849
7850 public function betterdocs_doc_single_related_docs_list_padding() {
7851 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding', [
7852 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding'],
7853 'capability' => 'edit_theme_options',
7854 'transport' => 'postMessage',
7855 'sanitize_callback' => [$this->sanitizer, 'integer']
7856
7857 ] );
7858
7859 $this->customizer->add_control( new TitleControl(
7860 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding', [
7861 'type' => 'betterdocs-title',
7862 'section' => 'betterdocs_single_docs_settings',
7863 'settings' => 'betterdocs_doc_single_related_docs_list_padding',
7864 'label' => __( 'List Padding', 'betterdocs' ),
7865 'priority' => 163,
7866 'input_attrs' => [
7867 'id' => 'betterdocs_doc_single_related_docs_list_padding',
7868 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
7869 ]
7870 ] )
7871 );
7872
7873 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_top', [
7874 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_top'],
7875 'capability' => 'edit_theme_options',
7876 'transport' => 'postMessage',
7877 'sanitize_callback' => [$this->sanitizer, 'integer']
7878 ] );
7879
7880 $this->customizer->add_control( new DimensionControl(
7881 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_top', [
7882 'type' => 'betterdocs-dimension',
7883 'section' => 'betterdocs_single_docs_settings',
7884 'settings' => 'betterdocs_doc_single_related_docs_list_padding_top',
7885 'label' => __( 'Top', 'betterdocs' ),
7886 'priority' => 163,
7887 'input_attrs' => [
7888 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
7889 ]
7890 ] )
7891 );
7892
7893 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_right', [
7894 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_right'],
7895 'capability' => 'edit_theme_options',
7896 'transport' => 'postMessage',
7897 'sanitize_callback' => [$this->sanitizer, 'integer']
7898
7899 ] );
7900
7901 $this->customizer->add_control( new DimensionControl(
7902 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_right', [
7903 'type' => 'betterdocs-dimension',
7904 'section' => 'betterdocs_single_docs_settings',
7905 'settings' => 'betterdocs_doc_single_related_docs_list_padding_right',
7906 'label' => __( 'Right', 'betterdocs' ),
7907 'priority' => 163,
7908 'input_attrs' => [
7909 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
7910 ]
7911 ] )
7912 );
7913
7914 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_bottom', [
7915 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_bottom'],
7916 'capability' => 'edit_theme_options',
7917 'transport' => 'postMessage',
7918 'sanitize_callback' => [$this->sanitizer, 'integer']
7919 ] );
7920
7921 $this->customizer->add_control( new DimensionControl(
7922 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_bottom', [
7923 'type' => 'betterdocs-dimension',
7924 'section' => 'betterdocs_single_docs_settings',
7925 'settings' => 'betterdocs_doc_single_related_docs_list_padding_bottom',
7926 'label' => __( 'Bottom', 'betterdocs' ),
7927 'priority' => 163,
7928 'input_attrs' => [
7929 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
7930 ]
7931 ] )
7932 );
7933
7934 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_left', [
7935 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_left'],
7936 'capability' => 'edit_theme_options',
7937 'transport' => 'postMessage',
7938 'sanitize_callback' => [$this->sanitizer, 'integer']
7939 ] );
7940
7941 $this->customizer->add_control( new DimensionControl(
7942 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_left', [
7943 'type' => 'betterdocs-dimension',
7944 'section' => 'betterdocs_single_docs_settings',
7945 'settings' => 'betterdocs_doc_single_related_docs_list_padding_left',
7946 'label' => __( 'Left', 'betterdocs' ),
7947 'priority' => 163,
7948 'input_attrs' => [
7949 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
7950 ]
7951 ] )
7952 );
7953 }
7954
7955 public function betterdocs_doc_single_related_docs_list_margin() {
7956 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin', [
7957 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin'],
7958 'capability' => 'edit_theme_options',
7959 'transport' => 'postMessage',
7960 'sanitize_callback' => [$this->sanitizer, 'integer']
7961
7962 ] );
7963
7964 $this->customizer->add_control( new TitleControl(
7965 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin', [
7966 'type' => 'betterdocs-title',
7967 'section' => 'betterdocs_single_docs_settings',
7968 'settings' => 'betterdocs_doc_single_related_docs_list_margin',
7969 'label' => __( 'List Margin', 'betterdocs' ),
7970 'priority' => 163,
7971 'input_attrs' => [
7972 'id' => 'betterdocs_doc_single_related_docs_list_margin',
7973 'class' => 'betterdocs-dimension'
7974 ]
7975 ] )
7976 );
7977
7978 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_top', [
7979 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_top'],
7980 'capability' => 'edit_theme_options',
7981 'transport' => 'postMessage',
7982 'sanitize_callback' => [$this->sanitizer, 'integer']
7983 ] );
7984
7985 $this->customizer->add_control( new DimensionControl(
7986 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_top', [
7987 'type' => 'betterdocs-dimension',
7988 'section' => 'betterdocs_single_docs_settings',
7989 'settings' => 'betterdocs_doc_single_related_docs_list_margin_top',
7990 'label' => __( 'Top', 'betterdocs' ),
7991 'priority' => 163,
7992 'input_attrs' => [
7993 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
7994 ]
7995 ] )
7996 );
7997
7998 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_right', [
7999 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_right'],
8000 'capability' => 'edit_theme_options',
8001 'transport' => 'postMessage',
8002 'sanitize_callback' => [$this->sanitizer, 'integer']
8003
8004 ] );
8005
8006 $this->customizer->add_control( new DimensionControl(
8007 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_right', [
8008 'type' => 'betterdocs-dimension',
8009 'section' => 'betterdocs_single_docs_settings',
8010 'settings' => 'betterdocs_doc_single_related_docs_list_margin_right',
8011 'label' => __( 'Right', 'betterdocs' ),
8012 'priority' => 163,
8013 'input_attrs' => [
8014 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
8015 ]
8016 ] )
8017 );
8018
8019 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_bottom', [
8020 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_bottom'],
8021 'capability' => 'edit_theme_options',
8022 'transport' => 'postMessage',
8023 'sanitize_callback' => [$this->sanitizer, 'integer']
8024 ] );
8025
8026 $this->customizer->add_control( new DimensionControl(
8027 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_bottom', [
8028 'type' => 'betterdocs-dimension',
8029 'section' => 'betterdocs_single_docs_settings',
8030 'settings' => 'betterdocs_doc_single_related_docs_list_margin_bottom',
8031 'label' => __( 'Bottom', 'betterdocs' ),
8032 'priority' => 163,
8033 'input_attrs' => [
8034 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
8035 ]
8036 ] )
8037 );
8038
8039 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_left', [
8040 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_left'],
8041 'capability' => 'edit_theme_options',
8042 'transport' => 'postMessage',
8043 'sanitize_callback' => [$this->sanitizer, 'integer']
8044 ] );
8045
8046 $this->customizer->add_control( new DimensionControl(
8047 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_left', [
8048 'type' => 'betterdocs-dimension',
8049 'section' => 'betterdocs_single_docs_settings',
8050 'settings' => 'betterdocs_doc_single_related_docs_list_margin_left',
8051 'label' => __( 'Left', 'betterdocs' ),
8052 'priority' => 163,
8053 'input_attrs' => [
8054 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
8055 ]
8056 ] )
8057 );
8058 }
8059
8060 public function betterdocs_doc_single_related_docs_heading_layout_8_9() {
8061 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_heading_layout_8_9', [
8062 'default' => 'betterdocs_doc_single_related_docs_heading_layout_8_9',
8063 'sanitize_callback' => 'esc_html'
8064 ] );
8065
8066 $this->customizer->add_control( new SeparatorControl(
8067 $this->customizer, 'betterdocs_doc_single_related_docs_heading_layout_8_9', [
8068 'label' => __( 'Related Docs', 'betterdocs' ),
8069 'priority' => 163,
8070 'settings' => 'betterdocs_doc_single_related_docs_heading_layout_8_9',
8071 'section' => 'betterdocs_single_docs_settings'
8072 ] )
8073 );
8074 }
8075
8076 public function betterdocs_doc_single_related_docs_content_bg_color_layout_8_9() {
8077 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9', [
8078 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_bg_color_layout_8_9'],
8079 'capability' => 'edit_theme_options',
8080 'transport' => 'postMessage',
8081 'sanitize_callback' => [$this->sanitizer, 'rgba']
8082 ] );
8083
8084 $this->customizer->add_control(
8085 new AlphaColorControl(
8086 $this->customizer,
8087 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
8088 [
8089 'label' => __( 'Content Background Color', 'betterdocs' ),
8090 'section' => 'betterdocs_single_docs_settings',
8091 'settings' => 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
8092 'priority' => 163
8093 ]
8094 )
8095 );
8096 }
8097
8098 public function betterdocs_doc_single_related_docs_content_padding_layout_8_9() {
8099 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_layout_8_9', [
8100 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_layout_8_9'],
8101 'capability' => 'edit_theme_options',
8102 'transport' => 'postMessage',
8103 'sanitize_callback' => [$this->sanitizer, 'integer']
8104
8105 ] );
8106
8107 $this->customizer->add_control( new TitleControl(
8108 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_layout_8_9', [
8109 'type' => 'betterdocs-title',
8110 'section' => 'betterdocs_single_docs_settings',
8111 'settings' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
8112 'label' => __( 'Content Padding', 'betterdocs' ),
8113 'priority' => 163,
8114 'input_attrs' => [
8115 'id' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
8116 'class' => 'betterdocs-dimension'
8117 ]
8118 ] )
8119 );
8120
8121 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9', [
8122 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_top_layout_8_9'],
8123 'capability' => 'edit_theme_options',
8124 'transport' => 'postMessage',
8125 'sanitize_callback' => [$this->sanitizer, 'integer']
8126 ] );
8127
8128 $this->customizer->add_control( new DimensionControl(
8129 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9', [
8130 'type' => 'betterdocs-dimension',
8131 'section' => 'betterdocs_single_docs_settings',
8132 'settings' => 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9',
8133 'label' => __( 'Top', 'betterdocs' ),
8134 'priority' => 163,
8135 'input_attrs' => [
8136 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
8137 ]
8138 ] )
8139 );
8140
8141 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9', [
8142 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_right_layout_8_9'],
8143 'capability' => 'edit_theme_options',
8144 'transport' => 'postMessage',
8145 'sanitize_callback' => [$this->sanitizer, 'integer']
8146
8147 ] );
8148
8149 $this->customizer->add_control( new DimensionControl(
8150 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9', [
8151 'type' => 'betterdocs-dimension',
8152 'section' => 'betterdocs_single_docs_settings',
8153 'settings' => 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9',
8154 'label' => __( 'Right', 'betterdocs' ),
8155 'priority' => 163,
8156 'input_attrs' => [
8157 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
8158 ]
8159 ] )
8160 );
8161
8162 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9', [
8163 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9'],
8164 'capability' => 'edit_theme_options',
8165 'transport' => 'postMessage',
8166 'sanitize_callback' => [$this->sanitizer, 'integer']
8167
8168 ] );
8169
8170 $this->customizer->add_control( new DimensionControl(
8171 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9', [
8172 'type' => 'betterdocs-dimension',
8173 'section' => 'betterdocs_single_docs_settings',
8174 'settings' => 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9',
8175 'label' => __( 'Bottom', 'betterdocs' ),
8176 'priority' => 163,
8177 'input_attrs' => [
8178 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
8179 ]
8180 ] )
8181 );
8182
8183 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9', [
8184 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_left_layout_8_9'],
8185 'capability' => 'edit_theme_options',
8186 'transport' => 'postMessage',
8187 'sanitize_callback' => [$this->sanitizer, 'integer']
8188
8189 ] );
8190
8191 $this->customizer->add_control( new DimensionControl(
8192 $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9', [
8193 'type' => 'betterdocs-dimension',
8194 'section' => 'betterdocs_single_docs_settings',
8195 'settings' => 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9',
8196 'label' => __( 'Left', 'betterdocs' ),
8197 'priority' => 163,
8198 'input_attrs' => [
8199 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
8200 ]
8201 ] )
8202 );
8203 }
8204
8205 public function betterdocs_doc_single_related_docs_content_margin_layout_8_9() {
8206 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_layout_8_9', [
8207 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_layout_8_9'],
8208 'capability' => 'edit_theme_options',
8209 'transport' => 'postMessage',
8210 'sanitize_callback' => [$this->sanitizer, 'integer']
8211
8212 ] );
8213
8214 $this->customizer->add_control( new TitleControl(
8215 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_layout_8_9', [
8216 'type' => 'betterdocs-title',
8217 'section' => 'betterdocs_single_docs_settings',
8218 'settings' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
8219 'label' => __( 'Content Margin', 'betterdocs' ),
8220 'priority' => 163,
8221 'input_attrs' => [
8222 'id' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
8223 'class' => 'betterdocs-dimension'
8224 ]
8225 ] )
8226 );
8227
8228 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9', [
8229 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_top_layout_8_9'],
8230 'capability' => 'edit_theme_options',
8231 'transport' => 'postMessage',
8232 'sanitize_callback' => [$this->sanitizer, 'integer']
8233 ] );
8234
8235 $this->customizer->add_control( new DimensionControl(
8236 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9', [
8237 'type' => 'betterdocs-dimension',
8238 'section' => 'betterdocs_single_docs_settings',
8239 'settings' => 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9',
8240 'label' => __( 'Top', 'betterdocs' ),
8241 'priority' => 163,
8242 'input_attrs' => [
8243 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
8244 ]
8245 ] )
8246 );
8247
8248 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9', [
8249 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_right_layout_8_9'],
8250 'capability' => 'edit_theme_options',
8251 'transport' => 'postMessage',
8252 'sanitize_callback' => [$this->sanitizer, 'integer']
8253
8254 ] );
8255
8256 $this->customizer->add_control( new DimensionControl(
8257 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9', [
8258 'type' => 'betterdocs-dimension',
8259 'section' => 'betterdocs_single_docs_settings',
8260 'settings' => 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9',
8261 'label' => __( 'Right', 'betterdocs' ),
8262 'priority' => 163,
8263 'input_attrs' => [
8264 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
8265 ]
8266 ] )
8267 );
8268
8269 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9', [
8270 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9'],
8271 'capability' => 'edit_theme_options',
8272 'transport' => 'postMessage',
8273 'sanitize_callback' => [$this->sanitizer, 'integer']
8274
8275 ] );
8276
8277 $this->customizer->add_control( new DimensionControl(
8278 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9', [
8279 'type' => 'betterdocs-dimension',
8280 'section' => 'betterdocs_single_docs_settings',
8281 'settings' => 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9',
8282 'label' => __( 'Bottom', 'betterdocs' ),
8283 'priority' => 163,
8284 'input_attrs' => [
8285 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
8286 ]
8287 ] )
8288 );
8289
8290 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9', [
8291 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_left_layout_8_9'],
8292 'capability' => 'edit_theme_options',
8293 'transport' => 'postMessage',
8294 'sanitize_callback' => [$this->sanitizer, 'integer']
8295
8296 ] );
8297
8298 $this->customizer->add_control( new DimensionControl(
8299 $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9', [
8300 'type' => 'betterdocs-dimension',
8301 'section' => 'betterdocs_single_docs_settings',
8302 'settings' => 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9',
8303 'label' => __( 'Left', 'betterdocs' ),
8304 'priority' => 163,
8305 'input_attrs' => [
8306 'class' => 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9 betterdocs-dimension'
8307 ]
8308 ] )
8309 );
8310 }
8311
8312 public function betterdocs_doc_single_related_docs_label_color_layout_8_9() {
8313 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_color_layout_8_9', [
8314 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_color_layout_8_9'],
8315 'capability' => 'edit_theme_options',
8316 'transport' => 'postMessage',
8317 'sanitize_callback' => [$this->sanitizer, 'rgba']
8318 ] );
8319
8320 $this->customizer->add_control(
8321 new AlphaColorControl(
8322 $this->customizer,
8323 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
8324 [
8325 'label' => __( 'Label Color', 'betterdocs' ),
8326 'section' => 'betterdocs_single_docs_settings',
8327 'settings' => 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
8328 'priority' => 163
8329 ]
8330 )
8331 );
8332 }
8333
8334 public function betterdocs_doc_single_related_docs_label_padding_layout_8_9() {
8335 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_layout_8_9', [
8336 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_layout_8_9'],
8337 'capability' => 'edit_theme_options',
8338 'transport' => 'postMessage',
8339 'sanitize_callback' => [$this->sanitizer, 'integer']
8340
8341 ] );
8342
8343 $this->customizer->add_control( new TitleControl(
8344 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_layout_8_9', [
8345 'type' => 'betterdocs-title',
8346 'section' => 'betterdocs_single_docs_settings',
8347 'settings' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
8348 'label' => __( 'Label Padding', 'betterdocs' ),
8349 'priority' => 163,
8350 'input_attrs' => [
8351 'id' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
8352 'class' => 'betterdocs-dimension'
8353 ]
8354 ] )
8355 );
8356
8357 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9', [
8358 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_top_layout_8_9'],
8359 'capability' => 'edit_theme_options',
8360 'transport' => 'postMessage',
8361 'sanitize_callback' => [$this->sanitizer, 'integer']
8362 ] );
8363
8364 $this->customizer->add_control( new DimensionControl(
8365 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9', [
8366 'type' => 'betterdocs-dimension',
8367 'section' => 'betterdocs_single_docs_settings',
8368 'settings' => 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9',
8369 'label' => __( 'Top', 'betterdocs' ),
8370 'priority' => 163,
8371 'input_attrs' => [
8372 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
8373 ]
8374 ] )
8375 );
8376
8377 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9', [
8378 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_right_layout_8_9'],
8379 'capability' => 'edit_theme_options',
8380 'transport' => 'postMessage',
8381 'sanitize_callback' => [$this->sanitizer, 'integer']
8382
8383 ] );
8384
8385 $this->customizer->add_control( new DimensionControl(
8386 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9', [
8387 'type' => 'betterdocs-dimension',
8388 'section' => 'betterdocs_single_docs_settings',
8389 'settings' => 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9',
8390 'label' => __( 'Right', 'betterdocs' ),
8391 'priority' => 163,
8392 'input_attrs' => [
8393 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
8394 ]
8395 ] )
8396 );
8397
8398 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9', [
8399 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9'],
8400 'capability' => 'edit_theme_options',
8401 'transport' => 'postMessage',
8402 'sanitize_callback' => [$this->sanitizer, 'integer']
8403
8404 ] );
8405
8406 $this->customizer->add_control( new DimensionControl(
8407 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9', [
8408 'type' => 'betterdocs-dimension',
8409 'section' => 'betterdocs_single_docs_settings',
8410 'settings' => 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9',
8411 'label' => __( 'Bottom', 'betterdocs' ),
8412 'priority' => 163,
8413 'input_attrs' => [
8414 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
8415 ]
8416 ] )
8417 );
8418
8419 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9', [
8420 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_left_layout_8_9'],
8421 'capability' => 'edit_theme_options',
8422 'transport' => 'postMessage',
8423 'sanitize_callback' => [$this->sanitizer, 'integer']
8424
8425 ] );
8426
8427 $this->customizer->add_control( new DimensionControl(
8428 $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9', [
8429 'type' => 'betterdocs-dimension',
8430 'section' => 'betterdocs_single_docs_settings',
8431 'settings' => 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9',
8432 'label' => __( 'Left', 'betterdocs' ),
8433 'priority' => 163,
8434 'input_attrs' => [
8435 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
8436 ]
8437 ] )
8438 );
8439 }
8440
8441 public function betterdocs_doc_single_related_docs_label_margin_layout_8_9() {
8442 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_layout_8_9', [
8443 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_layout_8_9'],
8444 'capability' => 'edit_theme_options',
8445 'transport' => 'postMessage',
8446 'sanitize_callback' => [$this->sanitizer, 'integer']
8447
8448 ] );
8449
8450 $this->customizer->add_control( new TitleControl(
8451 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_layout_8_9', [
8452 'type' => 'betterdocs-title',
8453 'section' => 'betterdocs_single_docs_settings',
8454 'settings' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
8455 'label' => __( 'Label Margin', 'betterdocs' ),
8456 'priority' => 163,
8457 'input_attrs' => [
8458 'id' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
8459 'class' => 'betterdocs-dimension'
8460 ]
8461 ] )
8462 );
8463
8464 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9', [
8465 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_top_layout_8_9'],
8466 'capability' => 'edit_theme_options',
8467 'transport' => 'postMessage',
8468 'sanitize_callback' => [$this->sanitizer, 'integer']
8469 ] );
8470
8471 $this->customizer->add_control( new DimensionControl(
8472 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9', [
8473 'type' => 'betterdocs-dimension',
8474 'section' => 'betterdocs_single_docs_settings',
8475 'settings' => 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9',
8476 'label' => __( 'Top', 'betterdocs' ),
8477 'priority' => 163,
8478 'input_attrs' => [
8479 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
8480 ]
8481 ] )
8482 );
8483
8484 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9', [
8485 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_right_layout_8_9'],
8486 'capability' => 'edit_theme_options',
8487 'transport' => 'postMessage',
8488 'sanitize_callback' => [$this->sanitizer, 'integer']
8489
8490 ] );
8491
8492 $this->customizer->add_control( new DimensionControl(
8493 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9', [
8494 'type' => 'betterdocs-dimension',
8495 'section' => 'betterdocs_single_docs_settings',
8496 'settings' => 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9',
8497 'label' => __( 'Right', 'betterdocs' ),
8498 'priority' => 163,
8499 'input_attrs' => [
8500 'class' => 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9 betterdocs-dimension'
8501 ]
8502 ] )
8503 );
8504
8505 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9', [
8506 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9'],
8507 'capability' => 'edit_theme_options',
8508 'transport' => 'postMessage',
8509 'sanitize_callback' => [$this->sanitizer, 'integer']
8510 ] );
8511
8512 $this->customizer->add_control( new DimensionControl(
8513 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9', [
8514 'type' => 'betterdocs-dimension',
8515 'section' => 'betterdocs_single_docs_settings',
8516 'settings' => 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9',
8517 'label' => __( 'Bottom', 'betterdocs' ),
8518 'priority' => 163,
8519 'input_attrs' => [
8520 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
8521 ]
8522 ] )
8523 );
8524
8525 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9', [
8526 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_left_layout_8_9'],
8527 'capability' => 'edit_theme_options',
8528 'transport' => 'postMessage',
8529 'sanitize_callback' => [$this->sanitizer, 'integer']
8530 ] );
8531
8532 $this->customizer->add_control( new DimensionControl(
8533 $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9', [
8534 'type' => 'betterdocs-dimension',
8535 'section' => 'betterdocs_single_docs_settings',
8536 'settings' => 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9',
8537 'label' => __( 'Left', 'betterdocs' ),
8538 'priority' => 163,
8539 'input_attrs' => [
8540 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
8541 ]
8542 ] )
8543 );
8544 }
8545
8546 public function betterdocs_doc_related_docs_list_font_size_layout_8_9() {
8547 $this->customizer->add_setting( 'betterdocs_doc_related_docs_list_font_size_layout_8_9', [
8548 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_size_layout_8_9'],
8549 'capability' => 'edit_theme_options',
8550 'transport' => 'postMessage',
8551 'sanitize_callback' => [$this->sanitizer, 'integer']
8552
8553 ] );
8554
8555 $this->customizer->add_control( new RangeValueControl(
8556 $this->customizer, 'betterdocs_doc_related_docs_list_font_size_layout_8_9', [
8557 'type' => 'betterdocs-range-value',
8558 'section' => 'betterdocs_single_docs_settings',
8559 'settings' => 'betterdocs_doc_related_docs_list_font_size_layout_8_9',
8560 'label' => __( 'List Font Size', 'betterdocs' ),
8561 'priority' => 163,
8562 'input_attrs' => [
8563 'min' => 0,
8564 'max' => 50,
8565 'step' => 1,
8566 'suffix' => 'px' //optional suffix
8567 ]
8568 ] )
8569 );
8570 }
8571
8572 public function betterdocs_doc_related_docs_list_font_weight_layout_8_9() {
8573 $this->customizer->add_setting( 'betterdocs_doc_related_docs_list_font_weight_layout_8_9', [
8574 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_weight_layout_8_9'],
8575 'capability' => 'edit_theme_options',
8576 'sanitize_callback' => [$this->sanitizer, 'choices']
8577 ] );
8578
8579 $this->customizer->add_control(
8580 new WP_Customize_Control(
8581 $this->customizer,
8582 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
8583 [
8584 'label' => __( 'List Font Weight', 'betterdocs-pro' ),
8585 'section' => 'betterdocs_single_docs_settings',
8586 'settings' => 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
8587 'type' => 'select',
8588 'choices' => [
8589 'normal' => 'Normal',
8590 '100' => '100',
8591 '200' => '200',
8592 '300' => '300',
8593 '400' => '400',
8594 '500' => '500',
8595 '600' => '600',
8596 '700' => '700',
8597 '800' => '800',
8598 '900' => '900'
8599 ],
8600 'priority' => 163
8601 ]
8602 )
8603 );
8604 }
8605
8606
8607 public function betterdocs_doc_single_related_docs_list_color_layout_8_9() {
8608 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_color_layout_8_9', [
8609 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_color_layout_8_9'],
8610 'capability' => 'edit_theme_options',
8611 'transport' => 'postMessage',
8612 'sanitize_callback' => [$this->sanitizer, 'rgba']
8613 ] );
8614
8615 $this->customizer->add_control(
8616 new AlphaColorControl(
8617 $this->customizer,
8618 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
8619 [
8620 'label' => __( 'List Color', 'betterdocs' ),
8621 'section' => 'betterdocs_single_docs_settings',
8622 'settings' => 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
8623 'priority' => 163
8624 ]
8625 )
8626 );
8627 }
8628
8629 public function betterdocs_doc_single_related_docs_list_background_color_layout_8_9() {
8630 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9', [
8631 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_background_color_layout_8_9'],
8632 'capability' => 'edit_theme_options',
8633 'transport' => 'postMessage',
8634 'sanitize_callback' => [$this->sanitizer, 'rgba']
8635 ] );
8636
8637 $this->customizer->add_control(
8638 new AlphaColorControl(
8639 $this->customizer,
8640 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
8641 [
8642 'label' => __( 'List Background Color', 'betterdocs' ),
8643 'section' => 'betterdocs_single_docs_settings',
8644 'settings' => 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
8645 'priority' => 163
8646 ]
8647 )
8648 );
8649 }
8650
8651 public function betterdocs_doc_single_related_docs_list_padding_layout_8_9() {
8652 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_layout_8_9', [
8653 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_layout_8_9'],
8654 'capability' => 'edit_theme_options',
8655 'transport' => 'postMessage',
8656 'sanitize_callback' => [$this->sanitizer, 'integer']
8657
8658 ] );
8659
8660 $this->customizer->add_control( new TitleControl(
8661 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_layout_8_9', [
8662 'type' => 'betterdocs-title',
8663 'section' => 'betterdocs_single_docs_settings',
8664 'settings' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
8665 'label' => __( 'List Padding', 'betterdocs' ),
8666 'priority' => 163,
8667 'input_attrs' => [
8668 'id' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
8669 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
8670 ]
8671 ] )
8672 );
8673
8674 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9', [
8675 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_top_layout_8_9'],
8676 'capability' => 'edit_theme_options',
8677 'transport' => 'postMessage',
8678 'sanitize_callback' => [$this->sanitizer, 'integer']
8679 ] );
8680
8681 $this->customizer->add_control( new DimensionControl(
8682 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9', [
8683 'type' => 'betterdocs-dimension',
8684 'section' => 'betterdocs_single_docs_settings',
8685 'settings' => 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9',
8686 'label' => __( 'Top', 'betterdocs' ),
8687 'priority' => 163,
8688 'input_attrs' => [
8689 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
8690 ]
8691 ] )
8692 );
8693
8694 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9', [
8695 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_right_layout_8_9'],
8696 'capability' => 'edit_theme_options',
8697 'transport' => 'postMessage',
8698 'sanitize_callback' => [$this->sanitizer, 'integer']
8699
8700 ] );
8701
8702 $this->customizer->add_control( new DimensionControl(
8703 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9', [
8704 'type' => 'betterdocs-dimension',
8705 'section' => 'betterdocs_single_docs_settings',
8706 'settings' => 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9',
8707 'label' => __( 'Right', 'betterdocs' ),
8708 'priority' => 163,
8709 'input_attrs' => [
8710 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
8711 ]
8712 ] )
8713 );
8714
8715 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9', [
8716 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9'],
8717 'capability' => 'edit_theme_options',
8718 'transport' => 'postMessage',
8719 'sanitize_callback' => [$this->sanitizer, 'integer']
8720 ] );
8721
8722 $this->customizer->add_control( new DimensionControl(
8723 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9', [
8724 'type' => 'betterdocs-dimension',
8725 'section' => 'betterdocs_single_docs_settings',
8726 'settings' => 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9',
8727 'label' => __( 'Bottom', 'betterdocs' ),
8728 'priority' => 163,
8729 'input_attrs' => [
8730 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
8731 ]
8732 ] )
8733 );
8734
8735 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9', [
8736 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_left_layout_8_9'],
8737 'capability' => 'edit_theme_options',
8738 'transport' => 'postMessage',
8739 'sanitize_callback' => [$this->sanitizer, 'integer']
8740 ] );
8741
8742 $this->customizer->add_control( new DimensionControl(
8743 $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9', [
8744 'type' => 'betterdocs-dimension',
8745 'section' => 'betterdocs_single_docs_settings',
8746 'settings' => 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9',
8747 'label' => __( 'Left', 'betterdocs' ),
8748 'priority' => 163,
8749 'input_attrs' => [
8750 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
8751 ]
8752 ] )
8753 );
8754 }
8755
8756 public function betterdocs_doc_single_related_docs_list_margin_layout_8_9() {
8757 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_layout_8_9', [
8758 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_layout_8_9'],
8759 'capability' => 'edit_theme_options',
8760 'transport' => 'postMessage',
8761 'sanitize_callback' => [$this->sanitizer, 'integer']
8762
8763 ] );
8764
8765 $this->customizer->add_control( new TitleControl(
8766 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_layout_8_9', [
8767 'type' => 'betterdocs-title',
8768 'section' => 'betterdocs_single_docs_settings',
8769 'settings' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
8770 'label' => __( 'List Margin', 'betterdocs' ),
8771 'priority' => 163,
8772 'input_attrs' => [
8773 'id' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
8774 'class' => 'betterdocs-dimension'
8775 ]
8776 ] )
8777 );
8778
8779 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9', [
8780 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_top_layout_8_9'],
8781 'capability' => 'edit_theme_options',
8782 'transport' => 'postMessage',
8783 'sanitize_callback' => [$this->sanitizer, 'integer']
8784 ] );
8785
8786 $this->customizer->add_control( new DimensionControl(
8787 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9', [
8788 'type' => 'betterdocs-dimension',
8789 'section' => 'betterdocs_single_docs_settings',
8790 'settings' => 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9',
8791 'label' => __( 'Top', 'betterdocs' ),
8792 'priority' => 163,
8793 'input_attrs' => [
8794 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
8795 ]
8796 ] )
8797 );
8798
8799 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9', [
8800 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_right_layout_8_9'],
8801 'capability' => 'edit_theme_options',
8802 'transport' => 'postMessage',
8803 'sanitize_callback' => [$this->sanitizer, 'integer']
8804
8805 ] );
8806
8807 $this->customizer->add_control( new DimensionControl(
8808 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9', [
8809 'type' => 'betterdocs-dimension',
8810 'section' => 'betterdocs_single_docs_settings',
8811 'settings' => 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9',
8812 'label' => __( 'Right', 'betterdocs' ),
8813 'priority' => 163,
8814 'input_attrs' => [
8815 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
8816 ]
8817 ] )
8818 );
8819
8820 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9', [
8821 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9'],
8822 'capability' => 'edit_theme_options',
8823 'transport' => 'postMessage',
8824 'sanitize_callback' => [$this->sanitizer, 'integer']
8825 ] );
8826
8827 $this->customizer->add_control( new DimensionControl(
8828 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9', [
8829 'type' => 'betterdocs-dimension',
8830 'section' => 'betterdocs_single_docs_settings',
8831 'settings' => 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9',
8832 'label' => __( 'Bottom', 'betterdocs' ),
8833 'priority' => 163,
8834 'input_attrs' => [
8835 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
8836 ]
8837 ] )
8838 );
8839
8840 $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9', [
8841 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_left_layout_8_9'],
8842 'capability' => 'edit_theme_options',
8843 'transport' => 'postMessage',
8844 'sanitize_callback' => [$this->sanitizer, 'integer']
8845 ] );
8846
8847 $this->customizer->add_control( new DimensionControl(
8848 $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9', [
8849 'type' => 'betterdocs-dimension',
8850 'section' => 'betterdocs_single_docs_settings',
8851 'settings' => 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9',
8852 'label' => __( 'Left', 'betterdocs' ),
8853 'priority' => 163,
8854 'input_attrs' => [
8855 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
8856 ]
8857 ] )
8858 );
8859 }
8860 }
8861