PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 2.5.2
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v2.5.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 3.5.2 All 199 releases
betterdocs / includes / Admin / Customizer / Sections / SingleDoc.php

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

2,407 lines 103.9 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 $this->customizer->add_setting( 'betterdocs_single_layout_select', [
42 'default' => $this->defaults['betterdocs_single_layout_select'],
43 'capability' => 'edit_theme_options',
44 'sanitize_callback' => [$this->sanitizer, 'select']
45 ] );
46
47 $this->customizer->add_control(
48 new RadioImageControl(
49 $this->customizer,
50 'betterdocs_single_layout_select',
51 [
52 'type' => 'betterdocs-radio-image',
53 'settings' => 'betterdocs_single_layout_select',
54 'section' => 'betterdocs_single_docs_settings',
55 'label' => __( 'Select Layout', 'betterdocs' ),
56 'priority' => 102,
57 'choices' => apply_filters( 'betterdocs_single_layout_select_choices', [
58 'layout-1' => [
59 'label' => __( 'Classic Layout', 'betterdocs' ),
60 'image' => $this->assets->icon( 'customizer/single/layout-1.png', true )
61 ],
62 'layout-4' => [
63 'label' => __( 'Abstract Layout', 'betterdocs' ),
64 'image' => $this->assets->icon( 'customizer/single/layout-4.png', true ),
65 'pro' => false
66 ],
67 'layout-5' => [
68 'label' => __( 'Modern Layout', 'betterdocs' ),
69 'image' => $this->assets->icon( 'customizer/single/layout-5.png', true ),
70 'pro' => false
71 ],
72 'layout-2' => [
73 'label' => __( 'Minimalist Layout', 'betterdocs' ),
74 'image' => $this->assets->icon( 'customizer/single/layout-2.png', true ),
75 'pro' => true,
76 'url' => 'https://betterdocs.co/upgrade'
77 ],
78 'layout-3' => [
79 'label' => __( 'Artisan Layout', 'betterdocs' ),
80 'image' => $this->assets->icon( 'customizer/single/layout-3.png', true ),
81 'pro' => true,
82 'url' => 'https://betterdocs.co/upgrade'
83 ],
84 'layout-6' => [
85 'label' => __( 'Bohemian Layout', 'betterdocs' ),
86 'image' => $this->assets->icon( 'customizer/single/layout-6.png', true ),
87 'pro' => true,
88 'url' => 'https://betterdocs.co/upgrade'
89 ]
90 ] )
91 ]
92 )
93 );
94 }
95
96 public function doc_single_content_area_bg_color() {
97 $this->customizer->add_setting( 'betterdocs_doc_single_content_area_bg_color', [
98 'default' => $this->defaults['betterdocs_doc_single_content_area_bg_color'],
99 'capability' => 'edit_theme_options',
100 'transport' => 'postMessage',
101 'sanitize_callback' => [$this->sanitizer, 'rgba']
102 ] );
103
104 $this->customizer->add_control(
105 new AlphaColorControl(
106 $this->customizer,
107 'betterdocs_doc_single_content_area_bg_color',
108 [
109 'label' => __( 'Content Area Background Color', 'betterdocs' ),
110 'section' => 'betterdocs_single_docs_settings',
111 'settings' => 'betterdocs_doc_single_content_area_bg_color',
112 'priority' => 103
113 ]
114 )
115 );
116 }
117
118 public function doc_single_content_area_bg_image() {
119 $this->customizer->add_setting( 'betterdocs_doc_single_content_area_bg_image', [
120 'default' => $this->defaults['betterdocs_doc_single_content_area_bg_image'],
121 'capability' => 'edit_theme_options',
122 'transport' => 'postMessage'
123 ] );
124
125 $this->customizer->add_control(
126 new WP_Customize_Image_Control(
127 $this->customizer,
128 'betterdocs_doc_single_content_area_bg_image',
129 [
130 'label' => __( 'Background Image', 'betterdocs' ),
131 'section' => 'betterdocs_single_docs_settings',
132 'settings' => 'betterdocs_doc_single_content_area_bg_image',
133 'priority' => 103
134 ] )
135 );
136 }
137
138 public function doc_single_content_bg_property() {
139 $this->customizer->add_setting( 'betterdocs_doc_single_content_bg_property', [
140 'default' => $this->defaults['betterdocs_doc_single_content_bg_property'],
141 'capability' => 'edit_theme_options',
142 'transport' => 'postMessage',
143 'sanitize_callback' => [$this->sanitizer, 'select']
144
145 ] );
146
147 $this->customizer->add_control( new TitleControl(
148 $this->customizer, 'betterdocs_doc_single_content_bg_property', [
149 'type' => 'betterdocs-title',
150 'section' => 'betterdocs_single_docs_settings',
151 'settings' => 'betterdocs_doc_single_content_bg_property',
152 'priority' => 103,
153 'label' => __( 'Background Property', 'betterdocs' ),
154 'input_attrs' => [
155 'id' => 'betterdocs_doc_single_content_bg_property',
156 'class' => 'betterdocs-select'
157 ]
158 ] )
159 );
160 }
161
162 public function doc_single_content_bg_property_size() {
163 $this->customizer->add_setting( 'betterdocs_doc_single_content_bg_property_size', [
164 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_size'],
165 'capability' => 'edit_theme_options',
166 'transport' => 'postMessage',
167 'sanitize_callback' => [$this->sanitizer, 'select']
168
169 ] );
170
171 $this->customizer->add_control( new SelectControl(
172 $this->customizer, 'betterdocs_doc_single_content_bg_property_size', [
173 'type' => 'betterdocs-select',
174 'section' => 'betterdocs_single_docs_settings',
175 'settings' => 'betterdocs_doc_single_content_bg_property_size',
176 'priority' => 103,
177 'label' => __( 'Size', 'betterdocs' ),
178 'input_attrs' => [
179 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
180 ],
181 'choices' => [
182 'auto' => __( 'auto', 'betterdocs' ),
183 'length' => __( 'length', 'betterdocs' ),
184 'cover' => __( 'cover', 'betterdocs' ),
185 'contain' => __( 'contain', 'betterdocs' ),
186 'initial' => __( 'initial', 'betterdocs' ),
187 'inherit' => __( 'inherit', 'betterdocs' )
188 ]
189 ] )
190 );
191 }
192
193 public function doc_single_content_bg_property_repeat() {
194 $this->customizer->add_setting( 'betterdocs_doc_single_content_bg_property_repeat', [
195 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_repeat'],
196 'capability' => 'edit_theme_options',
197 'transport' => 'postMessage',
198 'sanitize_callback' => [$this->sanitizer, 'select']
199 ] );
200
201 $this->customizer->add_control( new SelectControl(
202 $this->customizer, 'betterdocs_doc_single_content_bg_property_repeat', [
203 'type' => 'betterdocs-select',
204 'section' => 'betterdocs_single_docs_settings',
205 'settings' => 'betterdocs_doc_single_content_bg_property_repeat',
206 'priority' => 103,
207 'label' => __( 'Repeat', 'betterdocs' ),
208 'input_attrs' => [
209 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
210 ],
211 'choices' => [
212 'no-repeat' => __( 'no-repeat', 'betterdocs' ),
213 'initial' => __( 'initial', 'betterdocs' ),
214 'inherit' => __( 'inherit', 'betterdocs' ),
215 'repeat' => __( 'repeat', 'betterdocs' ),
216 'repeat-x' => __( 'repeat-x', 'betterdocs' ),
217 'repeat-y' => __( 'repeat-y', 'betterdocs' )
218 ]
219 ] )
220 );
221 }
222
223 public function doc_single_content_bg_property_attachment() {
224 $this->customizer->add_setting( 'betterdocs_doc_single_content_bg_property_attachment', [
225 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_attachment'],
226 'capability' => 'edit_theme_options',
227 'transport' => 'postMessage',
228 'sanitize_callback' => [$this->sanitizer, 'select']
229
230 ] );
231
232 $this->customizer->add_control( new SelectControl(
233 $this->customizer, 'betterdocs_doc_single_content_bg_property_attachment', [
234 'type' => 'betterdocs-select',
235 'section' => 'betterdocs_single_docs_settings',
236 'settings' => 'betterdocs_doc_single_content_bg_property_attachment',
237 'priority' => 103,
238 'label' => __( 'Attachment', 'betterdocs' ),
239 'input_attrs' => [
240 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
241 ],
242 'choices' => [
243 'initial' => __( 'initial', 'betterdocs' ),
244 'inherit' => __( 'inherit', 'betterdocs' ),
245 'scroll' => __( 'scroll', 'betterdocs' ),
246 'fixed' => __( 'fixed', 'betterdocs' ),
247 'local' => __( 'local', 'betterdocs' )
248 ]
249 ] )
250 );
251 }
252
253 public function doc_single_content_bg_property_position() {
254 $this->customizer->add_setting( 'betterdocs_doc_single_content_bg_property_position', [
255 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_position'],
256 'capability' => 'edit_theme_options',
257 'transport' => 'postMessage',
258 'sanitize_callback' => 'esc_html'
259
260 ] );
261
262 $this->customizer->add_control( new SelectControl(
263 $this->customizer, 'betterdocs_doc_single_content_bg_property_position', [
264 'type' => 'betterdocs-select',
265 'section' => 'betterdocs_single_docs_settings',
266 'settings' => 'betterdocs_doc_single_content_bg_property_position',
267 'priority' => 103,
268 'label' => __( 'Position', 'betterdocs' ),
269 'input_attrs' => [
270 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
271 ],
272 'choices' => [
273 'left top' => __( 'left top', 'betterdocs' ),
274 'left center' => __( 'left center', 'betterdocs' ),
275 'left bottom' => __( 'left bottom', 'betterdocs' ),
276 'right top' => __( 'right top', 'betterdocs' ),
277 'right center' => __( 'right center', 'betterdocs' ),
278 'right bottom' => __( 'right bottom', 'betterdocs' ),
279 'center top' => __( 'center top', 'betterdocs' ),
280 'center center' => __( 'center center', 'betterdocs' ),
281 'center bottom' => __( 'center bottom', 'betterdocs' )
282 ]
283 ] )
284 );
285 }
286
287 public function doc_single_content_area_padding() {
288 $this->customizer->add_setting( 'betterdocs_doc_single_content_area_padding', [
289 'default' => $this->defaults['betterdocs_doc_single_content_area_padding'],
290 'capability' => 'edit_theme_options',
291 'transport' => 'postMessage',
292 'sanitize_callback' => [$this->sanitizer, 'integer']
293
294 ] );
295
296 $this->customizer->add_control( new TitleControl(
297 $this->customizer, 'betterdocs_doc_single_content_area_padding', [
298 'type' => 'betterdocs-title',
299 'section' => 'betterdocs_single_docs_settings',
300 'settings' => 'betterdocs_doc_single_content_area_padding',
301 'label' => __( 'Content Area Padding', 'betterdocs' ),
302 'priority' => 104,
303 'input_attrs' => [
304 'id' => 'betterdocs_doc_single_content_area_padding',
305 'class' => 'betterdocs-dimension'
306 ]
307 ] )
308 );
309
310 $this->customizer->add_setting( 'betterdocs_doc_single_content_area_padding_top', [
311 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_top'],
312 'capability' => 'edit_theme_options',
313 'transport' => 'postMessage',
314 'sanitize_callback' => [$this->sanitizer, 'integer']
315 ] );
316
317 $this->customizer->add_control( new DimensionControl(
318 $this->customizer, 'betterdocs_doc_single_content_area_padding_top', [
319 'type' => 'betterdocs-dimension',
320 'section' => 'betterdocs_single_docs_settings',
321 'settings' => 'betterdocs_doc_single_content_area_padding_top',
322 'label' => __( 'Top', 'betterdocs' ),
323 'priority' => 104,
324 'input_attrs' => [
325 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
326 ]
327 ] )
328 );
329
330 $this->customizer->add_setting( 'betterdocs_doc_single_content_area_padding_right', [
331 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_right'],
332 'capability' => 'edit_theme_options',
333 'transport' => 'postMessage',
334 'sanitize_callback' => [$this->sanitizer, 'integer']
335
336 ] );
337
338 $this->customizer->add_control( new DimensionControl(
339 $this->customizer, 'betterdocs_doc_single_content_area_padding_right', [
340 'type' => 'betterdocs-dimension',
341 'section' => 'betterdocs_single_docs_settings',
342 'settings' => 'betterdocs_doc_single_content_area_padding_right',
343 'label' => __( 'Right', 'betterdocs' ),
344 'priority' => 104,
345 'input_attrs' => [
346 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
347 ]
348 ] )
349 );
350
351 $this->customizer->add_setting( 'betterdocs_doc_single_content_area_padding_bottom', [
352 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_bottom'],
353 'capability' => 'edit_theme_options',
354 'transport' => 'postMessage',
355 'sanitize_callback' => [$this->sanitizer, 'integer']
356
357 ] );
358
359 $this->customizer->add_control( new DimensionControl(
360 $this->customizer, 'betterdocs_doc_single_content_area_padding_bottom', [
361 'type' => 'betterdocs-dimension',
362 'section' => 'betterdocs_single_docs_settings',
363 'settings' => 'betterdocs_doc_single_content_area_padding_bottom',
364 'label' => __( 'Bottom', 'betterdocs' ),
365 'priority' => 104,
366 'input_attrs' => [
367 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
368 ]
369 ] )
370 );
371
372 $this->customizer->add_setting( 'betterdocs_doc_single_content_area_padding_left', [
373 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_left'],
374 'capability' => 'edit_theme_options',
375 'transport' => 'postMessage',
376 'sanitize_callback' => [$this->sanitizer, 'integer']
377
378 ] );
379
380 $this->customizer->add_control( new DimensionControl(
381 $this->customizer, 'betterdocs_doc_single_content_area_padding_left', [
382 'type' => 'betterdocs-dimension',
383 'section' => 'betterdocs_single_docs_settings',
384 'settings' => 'betterdocs_doc_single_content_area_padding_left',
385 'label' => __( 'Left', 'betterdocs' ),
386 'priority' => 104,
387 'input_attrs' => [
388 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
389 ]
390 ] )
391 );
392 }
393
394 public function doc_single_post_content_padding() {
395 $this->customizer->add_setting( 'betterdocs_doc_single_post_content_padding', [
396 'default' => $this->defaults['betterdocs_doc_single_post_content_padding'],
397 'capability' => 'edit_theme_options',
398 'transport' => 'postMessage',
399 'sanitize_callback' => [$this->sanitizer, 'integer']
400
401 ] );
402
403 $this->customizer->add_control( new TitleControl(
404 $this->customizer, 'betterdocs_doc_single_post_content_padding', [
405 'type' => 'betterdocs-title',
406 'section' => 'betterdocs_single_docs_settings',
407 'settings' => 'betterdocs_doc_single_post_content_padding',
408 'label' => __( 'Doc Content Padding', 'betterdocs' ),
409 'priority' => 109,
410 'input_attrs' => [
411 'id' => 'betterdocs_doc_single_post_content_padding',
412 'class' => 'betterdocs-dimension'
413 ]
414 ] )
415 );
416
417 $this->customizer->add_setting( 'betterdocs_doc_single_post_content_padding_top', [
418 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_top'],
419 'capability' => 'edit_theme_options',
420 'transport' => 'postMessage',
421 'sanitize_callback' => [$this->sanitizer, 'integer']
422 ] );
423
424 $this->customizer->add_control( new DimensionControl(
425 $this->customizer, 'betterdocs_doc_single_post_content_padding_top', [
426 'type' => 'betterdocs-dimension',
427 'section' => 'betterdocs_single_docs_settings',
428 'settings' => 'betterdocs_doc_single_post_content_padding_top',
429 'label' => __( 'Top', 'betterdocs' ),
430 'priority' => 109,
431 'input_attrs' => [
432 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
433 ]
434 ] )
435 );
436
437 $this->customizer->add_setting( 'betterdocs_doc_single_post_content_padding_right', [
438 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_right'],
439 'capability' => 'edit_theme_options',
440 'transport' => 'postMessage',
441 'sanitize_callback' => [$this->sanitizer, 'integer']
442
443 ] );
444
445 $this->customizer->add_control( new DimensionControl(
446 $this->customizer, 'betterdocs_doc_single_post_content_padding_right', [
447 'type' => 'betterdocs-dimension',
448 'section' => 'betterdocs_single_docs_settings',
449 'settings' => 'betterdocs_doc_single_post_content_padding_right',
450 'label' => __( 'Right', 'betterdocs' ),
451 'priority' => 109,
452 'input_attrs' => [
453 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
454 ]
455 ] )
456 );
457
458 $this->customizer->add_setting( 'betterdocs_doc_single_post_content_padding_bottom', [
459 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_bottom'],
460 'capability' => 'edit_theme_options',
461 'transport' => 'postMessage',
462 'sanitize_callback' => [$this->sanitizer, 'integer']
463
464 ] );
465
466 $this->customizer->add_control( new DimensionControl(
467 $this->customizer, 'betterdocs_doc_single_post_content_padding_bottom', [
468 'type' => 'betterdocs-dimension',
469 'section' => 'betterdocs_single_docs_settings',
470 'settings' => 'betterdocs_doc_single_post_content_padding_bottom',
471 'label' => __( 'Bottom', 'betterdocs' ),
472 'priority' => 109,
473 'input_attrs' => [
474 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
475 ]
476 ] )
477 );
478
479 $this->customizer->add_setting( 'betterdocs_doc_single_post_content_padding_left', [
480 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_left'],
481 'capability' => 'edit_theme_options',
482 'transport' => 'postMessage',
483 'sanitize_callback' => [$this->sanitizer, 'integer']
484
485 ] );
486
487 $this->customizer->add_control( new DimensionControl(
488 $this->customizer, 'betterdocs_doc_single_post_content_padding_left', [
489 'type' => 'betterdocs-dimension',
490 'section' => 'betterdocs_single_docs_settings',
491 'settings' => 'betterdocs_doc_single_post_content_padding_left',
492 'label' => __( 'Left', 'betterdocs' ),
493 'priority' => 109,
494 'input_attrs' => [
495 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
496 ]
497 ] )
498 );
499 }
500
501 public function doc_single_2_post_content_padding() {
502 $this->customizer->add_setting( 'betterdocs_doc_single_2_post_content_padding', [
503 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding'],
504 'capability' => 'edit_theme_options',
505 'transport' => 'postMessage',
506 'sanitize_callback' => [$this->sanitizer, 'integer']
507
508 ] );
509
510 $this->customizer->add_control( new TitleControl(
511 $this->customizer, 'betterdocs_doc_single_2_post_content_padding', [
512 'type' => 'betterdocs-title',
513 'section' => 'betterdocs_single_docs_settings',
514 'settings' => 'betterdocs_doc_single_2_post_content_padding',
515 'label' => __( 'Post Content Padding', 'betterdocs' ),
516 'priority' => 114,
517 'input_attrs' => [
518 'id' => 'betterdocs_doc_single_2_post_content_padding',
519 'class' => 'betterdocs-dimension'
520 ]
521 ] )
522 );
523
524 $this->customizer->add_setting( 'betterdocs_doc_single_2_post_content_padding_top', [
525 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_top'],
526 'capability' => 'edit_theme_options',
527 'transport' => 'postMessage',
528 'sanitize_callback' => [$this->sanitizer, 'integer']
529 ] );
530
531 $this->customizer->add_control( new DimensionControl(
532 $this->customizer, 'betterdocs_doc_single_2_post_content_padding_top', [
533 'type' => 'betterdocs-dimension',
534 'section' => 'betterdocs_single_docs_settings',
535 'settings' => 'betterdocs_doc_single_2_post_content_padding_top',
536 'label' => __( 'Top', 'betterdocs' ),
537 'priority' => 114,
538 'input_attrs' => [
539 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
540 ]
541 ] )
542 );
543
544 $this->customizer->add_setting( 'betterdocs_doc_single_2_post_content_padding_right', [
545 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_right'],
546 'capability' => 'edit_theme_options',
547 'transport' => 'postMessage',
548 'sanitize_callback' => [$this->sanitizer, 'integer']
549
550 ] );
551
552 $this->customizer->add_control( new DimensionControl(
553 $this->customizer, 'betterdocs_doc_single_2_post_content_padding_right', [
554 'type' => 'betterdocs-dimension',
555 'section' => 'betterdocs_single_docs_settings',
556 'settings' => 'betterdocs_doc_single_2_post_content_padding_right',
557 'label' => __( 'Right', 'betterdocs' ),
558 'priority' => 114,
559 'input_attrs' => [
560 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
561 ]
562 ] )
563 );
564
565 $this->customizer->add_setting( 'betterdocs_doc_single_2_post_content_padding_bottom', [
566 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_bottom'],
567 'capability' => 'edit_theme_options',
568 'transport' => 'postMessage',
569 'sanitize_callback' => [$this->sanitizer, 'integer']
570
571 ] );
572
573 $this->customizer->add_control( new DimensionControl(
574 $this->customizer, 'betterdocs_doc_single_2_post_content_padding_bottom', [
575 'type' => 'betterdocs-dimension',
576 'section' => 'betterdocs_single_docs_settings',
577 'settings' => 'betterdocs_doc_single_2_post_content_padding_bottom',
578 'label' => __( 'Bottom', 'betterdocs' ),
579 'priority' => 114,
580 'input_attrs' => [
581 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
582 ]
583 ] )
584 );
585
586 $this->customizer->add_setting( 'betterdocs_doc_single_2_post_content_padding_left', [
587 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_left'],
588 'capability' => 'edit_theme_options',
589 'transport' => 'postMessage',
590 'sanitize_callback' => [$this->sanitizer, 'integer']
591
592 ] );
593
594 $this->customizer->add_control( new DimensionControl(
595 $this->customizer, 'betterdocs_doc_single_2_post_content_padding_left', [
596 'type' => 'betterdocs-dimension',
597 'section' => 'betterdocs_single_docs_settings',
598 'settings' => 'betterdocs_doc_single_2_post_content_padding_left',
599 'label' => __( 'Left', 'betterdocs' ),
600 'priority' => 114,
601 'input_attrs' => [
602 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
603 ]
604 ] )
605 );
606 }
607
608 public function doc_single_3_post_content_padding() {
609 $this->customizer->add_setting( 'betterdocs_doc_single_3_post_content_padding', [
610 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding'],
611 'capability' => 'edit_theme_options',
612 'transport' => 'postMessage',
613 'sanitize_callback' => [$this->sanitizer, 'integer']
614
615 ] );
616
617 $this->customizer->add_control( new TitleControl(
618 $this->customizer, 'betterdocs_doc_single_3_post_content_padding', [
619 'type' => 'betterdocs-title',
620 'section' => 'betterdocs_single_docs_settings',
621 'settings' => 'betterdocs_doc_single_3_post_content_padding',
622 'label' => __( 'Content Area Inner Padding', 'betterdocs' ),
623 'priority' => 119,
624 'input_attrs' => [
625 'id' => 'betterdocs_doc_single_3_post_content_padding',
626 'class' => 'betterdocs-dimension'
627 ]
628 ] )
629 );
630
631 $this->customizer->add_setting( 'betterdocs_doc_single_3_post_content_padding_top', [
632 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_top'],
633 'capability' => 'edit_theme_options',
634 'transport' => 'postMessage',
635 'sanitize_callback' => [$this->sanitizer, 'integer']
636 ] );
637
638 $this->customizer->add_control( new DimensionControl(
639 $this->customizer, 'betterdocs_doc_single_3_post_content_padding_top', [
640 'type' => 'betterdocs-dimension',
641 'section' => 'betterdocs_single_docs_settings',
642 'settings' => 'betterdocs_doc_single_3_post_content_padding_top',
643 'label' => __( 'Top', 'betterdocs' ),
644 'priority' => 119,
645 'input_attrs' => [
646 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
647 ]
648 ] )
649 );
650
651 $this->customizer->add_setting( 'betterdocs_doc_single_3_post_content_padding_right', [
652 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_right'],
653 'capability' => 'edit_theme_options',
654 'transport' => 'postMessage',
655 'sanitize_callback' => [$this->sanitizer, 'integer']
656
657 ] );
658
659 $this->customizer->add_control( new DimensionControl(
660 $this->customizer, 'betterdocs_doc_single_3_post_content_padding_right', [
661 'type' => 'betterdocs-dimension',
662 'section' => 'betterdocs_single_docs_settings',
663 'settings' => 'betterdocs_doc_single_3_post_content_padding_right',
664 'label' => __( 'Right', 'betterdocs' ),
665 'priority' => 119,
666 'input_attrs' => [
667 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
668 ]
669 ] )
670 );
671
672 $this->customizer->add_setting( 'betterdocs_doc_single_3_post_content_padding_bottom', [
673 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_bottom'],
674 'capability' => 'edit_theme_options',
675 'transport' => 'postMessage',
676 'sanitize_callback' => [$this->sanitizer, 'integer']
677
678 ] );
679
680 $this->customizer->add_control( new DimensionControl(
681 $this->customizer, 'betterdocs_doc_single_3_post_content_padding_bottom', [
682 'type' => 'betterdocs-dimension',
683 'section' => 'betterdocs_single_docs_settings',
684 'settings' => 'betterdocs_doc_single_3_post_content_padding_bottom',
685 'label' => __( 'Bottom', 'betterdocs' ),
686 'priority' => 119,
687 'input_attrs' => [
688 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
689 ]
690 ] )
691 );
692
693 $this->customizer->add_setting( 'betterdocs_doc_single_3_post_content_padding_left', [
694 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_left'],
695 'capability' => 'edit_theme_options',
696 'transport' => 'postMessage',
697 'sanitize_callback' => [$this->sanitizer, 'integer']
698
699 ] );
700
701 $this->customizer->add_control( new DimensionControl(
702 $this->customizer, 'betterdocs_doc_single_3_post_content_padding_left', [
703 'type' => 'betterdocs-dimension',
704 'section' => 'betterdocs_single_docs_settings',
705 'settings' => 'betterdocs_doc_single_3_post_content_padding_left',
706 'label' => __( 'Left', 'betterdocs' ),
707 'priority' => 119,
708 'input_attrs' => [
709 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
710 ]
711 ] )
712 );
713 }
714
715 public function single_doc_title() {
716 $this->customizer->add_setting( 'betterdocs_single_doc_title', [
717 'default' => $this->defaults['betterdocs_single_doc_title'],
718 'sanitize_callback' => 'esc_html'
719 ] );
720
721 $this->customizer->add_control( new SeparatorControl(
722 $this->customizer, 'betterdocs_single_doc_title', [
723 'label' => __( 'Post Title', 'betterdocs' ),
724 'priority' => 124,
725 'settings' => 'betterdocs_single_doc_title',
726 'section' => 'betterdocs_single_docs_settings'
727 ] )
728 );
729 }
730
731 public function post_title_tag() {
732 $this->customizer->add_setting( 'betterdocs_post_title_tag', [
733 'default' => $this->defaults['betterdocs_post_title_tag'],
734 'capability' => 'edit_theme_options',
735 'sanitize_callback' => [$this->sanitizer, 'select']
736 ] );
737
738 $this->customizer->add_control(
739 new WP_Customize_Control(
740 $this->customizer,
741 'betterdocs_post_title_tag',
742 [
743 'label' => __( 'Title Tag', 'betterdocs' ),
744 'section' => 'betterdocs_single_docs_settings',
745 'settings' => 'betterdocs_post_title_tag',
746 'type' => 'select',
747 'choices' => [
748 'h1' => 'h1',
749 'h2' => 'h2',
750 'h3' => 'h3',
751 'h4' => 'h4',
752 'h5' => 'h5',
753 'h6' => 'h6'
754 ],
755 'priority' => 124
756 ]
757 )
758 );
759 }
760
761 public function single_doc_title_font_size() {
762 $this->customizer->add_setting( 'betterdocs_single_doc_title_font_size', [
763 'default' => $this->defaults['betterdocs_single_doc_title_font_size'],
764 'capability' => 'edit_theme_options',
765 'transport' => 'postMessage',
766 'sanitize_callback' => [$this->sanitizer, 'integer']
767
768 ] );
769
770 $this->customizer->add_control( new RangeValueControl(
771 $this->customizer, 'betterdocs_single_doc_title_font_size', [
772 'type' => 'betterdocs-range-value',
773 'section' => 'betterdocs_single_docs_settings',
774 'settings' => 'betterdocs_single_doc_title_font_size',
775 'label' => __( 'Font Size', 'betterdocs' ),
776 'priority' => 125,
777 'input_attrs' => [
778 'min' => 0,
779 'max' => 50,
780 'step' => 1,
781 'suffix' => 'px' //optional suffix
782 ]
783 ] )
784 );
785 }
786
787 public function single_doc_title_color() {
788 $this->customizer->add_setting( 'betterdocs_single_doc_title_color', [
789 'capability' => 'edit_theme_options',
790 'default' => $this->defaults['betterdocs_single_doc_title_color'],
791 'transport' => 'postMessage',
792 'sanitize_callback' => [$this->sanitizer, 'rgba']
793 ] );
794
795 $this->customizer->add_control(
796 new AlphaColorControl(
797 $this->customizer,
798 'betterdocs_single_doc_title_color',
799 [
800 'label' => __( 'Color', 'betterdocs' ),
801 'priority' => 126,
802 'section' => 'betterdocs_single_docs_settings',
803 'settings' => 'betterdocs_single_doc_title_color'
804 ]
805 )
806 );
807 }
808
809 public function single_doc_breadcrumb() {
810 $this->customizer->add_setting( 'betterdocs_single_doc_breadcrumb', [
811 'default' => $this->defaults['betterdocs_single_doc_breadcrumb'],
812 'sanitize_callback' => 'esc_html'
813 ] );
814
815 $this->customizer->add_control( new SeparatorControl(
816 $this->customizer, 'betterdocs_single_doc_breadcrumb', [
817 'label' => __( 'Breadcrumb', 'betterdocs' ),
818 'priority' => 127,
819 'settings' => 'betterdocs_single_doc_breadcrumb',
820 'section' => 'betterdocs_single_docs_settings'
821 ] )
822 );
823 }
824
825 public function single_doc_breadcrumbs_font_size() {
826 $this->customizer->add_setting( 'betterdocs_single_doc_breadcrumbs_font_size', [
827 'default' => $this->defaults['betterdocs_single_doc_breadcrumbs_font_size'],
828 'capability' => 'edit_theme_options',
829 'transport' => 'postMessage',
830 'sanitize_callback' => [$this->sanitizer, 'integer']
831
832 ] );
833
834 $this->customizer->add_control( new RangeValueControl(
835 $this->customizer, 'betterdocs_single_doc_breadcrumbs_font_size', [
836 'type' => 'betterdocs-range-value',
837 'section' => 'betterdocs_single_docs_settings',
838 'settings' => 'betterdocs_single_doc_breadcrumbs_font_size',
839 'label' => __( 'Font Size', 'betterdocs' ),
840 'priority' => 128,
841 'input_attrs' => [
842 'class' => '',
843 'min' => 0,
844 'max' => 50,
845 'step' => 1,
846 'suffix' => 'px' //optional suffix
847 ]
848 ] )
849 );
850 }
851
852 public function single_doc_breadcrumb_color() {
853 $this->customizer->add_setting( 'betterdocs_single_doc_breadcrumb_color', [
854 'capability' => 'edit_theme_options',
855 'default' => $this->defaults['betterdocs_single_doc_breadcrumb_color'],
856 'transport' => 'postMessage',
857 'sanitize_callback' => [$this->sanitizer, 'rgba']
858 ] );
859
860 $this->customizer->add_control(
861 new AlphaColorControl(
862 $this->customizer,
863 'betterdocs_single_doc_breadcrumb_color',
864 [
865 'label' => __( 'Color', 'betterdocs' ),
866 'priority' => 129,
867 'section' => 'betterdocs_single_docs_settings',
868 'settings' => 'betterdocs_single_doc_breadcrumb_color'
869 ]
870 )
871 );
872 }
873
874 public function single_doc_breadcrumb_hover_color() {
875 $this->customizer->add_setting( 'betterdocs_single_doc_breadcrumb_hover_color', [
876 'capability' => 'edit_theme_options',
877 'default' => $this->defaults['betterdocs_single_doc_breadcrumb_hover_color'],
878 'sanitize_callback' => [$this->sanitizer, 'rgba']
879 ] );
880
881 $this->customizer->add_control(
882 new AlphaColorControl(
883 $this->customizer,
884 'betterdocs_single_doc_breadcrumb_hover_color',
885 [
886 'label' => __( 'Hover Color', 'betterdocs' ),
887 'priority' => 129,
888 'section' => 'betterdocs_single_docs_settings',
889 'settings' => 'betterdocs_single_doc_breadcrumb_hover_color'
890 ]
891 )
892 );
893 }
894
895 public function single_doc_breadcrumb_speretor_color() {
896 $this->customizer->add_setting( 'betterdocs_single_doc_breadcrumb_speretor_color', [
897 'capability' => 'edit_theme_options',
898 'default' => $this->defaults['betterdocs_single_doc_breadcrumb_speretor_color'],
899 'transport' => 'postMessage',
900 'sanitize_callback' => [$this->sanitizer, 'rgba']
901 ] );
902
903 $this->customizer->add_control(
904 new AlphaColorControl(
905 $this->customizer,
906 'betterdocs_single_doc_breadcrumb_speretor_color',
907 [
908 'label' => __( 'Seperator Color', 'betterdocs' ),
909 'priority' => 130,
910 'section' => 'betterdocs_single_docs_settings',
911 'settings' => 'betterdocs_single_doc_breadcrumb_speretor_color'
912 ]
913 )
914 );
915 }
916
917 public function single_doc_breadcrumb_active_item_color() {
918 $this->customizer->add_setting( 'betterdocs_single_doc_breadcrumb_active_item_color', [
919 'capability' => 'edit_theme_options',
920 'default' => $this->defaults['betterdocs_single_doc_breadcrumb_active_item_color'],
921 'transport' => 'postMessage',
922 'sanitize_callback' => [$this->sanitizer, 'rgba']
923 ] );
924
925 $this->customizer->add_control(
926 new AlphaColorControl(
927 $this->customizer,
928 'betterdocs_single_doc_breadcrumb_active_item_color',
929 [
930 'label' => __( 'Active Item Color', 'betterdocs' ),
931 'priority' => 131,
932 'section' => 'betterdocs_single_docs_settings',
933 'settings' => 'betterdocs_single_doc_breadcrumb_active_item_color'
934 ]
935 )
936 );
937 }
938
939 public function doc_single_toc_title() {
940 $this->customizer->add_setting( 'betterdocs_doc_single_toc_title', [
941 'default' => $this->defaults['betterdocs_doc_single_toc_title'],
942 'sanitize_callback' => 'esc_html'
943 ] );
944
945 $this->customizer->add_control( new SeparatorControl(
946 $this->customizer, 'betterdocs_doc_single_toc_title', [
947 'label' => __( 'Table of Contents', 'betterdocs' ),
948 'priority' => 132,
949 'settings' => 'betterdocs_doc_single_toc_title',
950 'section' => 'betterdocs_single_docs_settings'
951 ] )
952 );
953 }
954
955 public function sticky_toc_width() {
956 $this->customizer->add_setting( 'betterdocs_sticky_toc_width', [
957 'default' => $this->defaults['betterdocs_sticky_toc_width'],
958 'capability' => 'edit_theme_options',
959 'transport' => 'postMessage',
960 'sanitize_callback' => [$this->sanitizer, 'integer']
961
962 ] );
963
964 $this->customizer->add_control( new RangeValueControl(
965 $this->customizer, 'betterdocs_sticky_toc_width', [
966 'type' => 'betterdocs-range-value',
967 'section' => 'betterdocs_single_docs_settings',
968 'settings' => 'betterdocs_sticky_toc_width',
969 'label' => __( 'Sticky Toc Width', 'betterdocs' ),
970 'priority' => 133,
971 'input_attrs' => [
972 'class' => '',
973 'min' => 100,
974 'max' => 500,
975 'step' => 1,
976 'suffix' => 'px' //optional suffix
977 ]
978 ] )
979 );
980 }
981
982 public function sticky_toc_zindex() {
983 $this->customizer->add_setting( 'betterdocs_sticky_toc_zindex', [
984 'default' => $this->defaults['betterdocs_sticky_toc_zindex'],
985 'capability' => 'edit_theme_options',
986 'transport' => 'postMessage',
987 'sanitize_callback' => [$this->sanitizer, 'integer']
988 ] );
989
990 $this->customizer->add_control( new NumberControl(
991 $this->customizer, 'betterdocs_sticky_toc_zindex', [
992 'type' => 'betterdocs-number',
993 'section' => 'betterdocs_single_docs_settings',
994 'settings' => 'betterdocs_sticky_toc_zindex',
995 'label' => __( 'Sticky Toc z-index', 'betterdocs' ),
996 'priority' => 134
997 ] )
998 );
999 }
1000
1001 public function sticky_toc_margin_top() {
1002 $this->customizer->add_setting( 'betterdocs_sticky_toc_margin_top', [
1003 'default' => $this->defaults['betterdocs_sticky_toc_margin_top'],
1004 'capability' => 'edit_theme_options',
1005 'transport' => 'postMessage',
1006 'sanitize_callback' => [$this->sanitizer, 'integer']
1007
1008 ] );
1009
1010 $this->customizer->add_control( new RangeValueControl(
1011 $this->customizer, 'betterdocs_sticky_toc_margin_top', [
1012 'type' => 'betterdocs-range-value',
1013 'section' => 'betterdocs_single_docs_settings',
1014 'settings' => 'betterdocs_sticky_toc_margin_top',
1015 'label' => __( 'Sticky Toc Margin Top', 'betterdocs' ),
1016 'priority' => 135,
1017 'input_attrs' => [
1018 'class' => '',
1019 'min' => 0,
1020 'max' => 500,
1021 'step' => 1,
1022 'suffix' => 'px' //optional suffix
1023 ]
1024 ] )
1025 );
1026 }
1027
1028 public function toc_bg_color() {
1029 $this->customizer->add_setting( 'betterdocs_toc_bg_color', [
1030 'capability' => 'edit_theme_options',
1031 'default' => $this->defaults['betterdocs_toc_bg_color'],
1032 'transport' => 'postMessage',
1033 'sanitize_callback' => [$this->sanitizer, 'rgba']
1034 ] );
1035
1036 $this->customizer->add_control(
1037 new AlphaColorControl(
1038 $this->customizer,
1039 'betterdocs_toc_bg_color',
1040 [
1041 'label' => __( 'Background Color', 'betterdocs' ),
1042 'priority' => 136,
1043 'section' => 'betterdocs_single_docs_settings',
1044 'settings' => 'betterdocs_toc_bg_color'
1045 ]
1046 )
1047 );
1048 }
1049
1050 public function doc_single_toc_padding() {
1051 $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding', [
1052 'default' => $this->defaults['betterdocs_doc_single_toc_padding'],
1053 'capability' => 'edit_theme_options',
1054 'transport' => 'postMessage',
1055 'sanitize_callback' => [$this->sanitizer, 'integer']
1056
1057 ] );
1058
1059 $this->customizer->add_control( new TitleControl(
1060 $this->customizer, 'betterdocs_doc_single_toc_padding', [
1061 'type' => 'betterdocs-title',
1062 'section' => 'betterdocs_single_docs_settings',
1063 'settings' => 'betterdocs_doc_single_toc_padding',
1064 'label' => __( 'Content Area Padding', 'betterdocs' ),
1065 'priority' => 137,
1066 'input_attrs' => [
1067 'id' => 'betterdocs_doc_single_toc_padding',
1068 'class' => 'betterdocs-dimension'
1069 ]
1070 ] )
1071 );
1072
1073 $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_top', [
1074 'default' => $this->defaults['betterdocs_doc_single_toc_padding_top'],
1075 'capability' => 'edit_theme_options',
1076 'transport' => 'postMessage',
1077 'sanitize_callback' => [$this->sanitizer, 'integer']
1078 ] );
1079
1080 $this->customizer->add_control( new DimensionControl(
1081 $this->customizer, 'betterdocs_doc_single_toc_padding_top', [
1082 'type' => 'betterdocs-dimension',
1083 'section' => 'betterdocs_single_docs_settings',
1084 'settings' => 'betterdocs_doc_single_toc_padding_top',
1085 'label' => __( 'Top', 'betterdocs' ),
1086 'priority' => 137,
1087 'input_attrs' => [
1088 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
1089 ]
1090 ] )
1091 );
1092
1093 $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_right', [
1094 'default' => $this->defaults['betterdocs_doc_single_toc_padding_right'],
1095 'capability' => 'edit_theme_options',
1096 'transport' => 'postMessage',
1097 'sanitize_callback' => [$this->sanitizer, 'integer']
1098
1099 ] );
1100
1101 $this->customizer->add_control( new DimensionControl(
1102 $this->customizer, 'betterdocs_doc_single_toc_padding_right', [
1103 'type' => 'betterdocs-dimension',
1104 'section' => 'betterdocs_single_docs_settings',
1105 'settings' => 'betterdocs_doc_single_toc_padding_right',
1106 'label' => __( 'Right', 'betterdocs' ),
1107 'priority' => 137,
1108 'input_attrs' => [
1109 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
1110 ]
1111 ] )
1112 );
1113
1114 $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_bottom', [
1115 'default' => $this->defaults['betterdocs_doc_single_toc_padding_bottom'],
1116 'capability' => 'edit_theme_options',
1117 'transport' => 'postMessage',
1118 'sanitize_callback' => [$this->sanitizer, 'integer']
1119
1120 ] );
1121
1122 $this->customizer->add_control( new DimensionControl(
1123 $this->customizer, 'betterdocs_doc_single_toc_padding_bottom', [
1124 'type' => 'betterdocs-dimension',
1125 'section' => 'betterdocs_single_docs_settings',
1126 'settings' => 'betterdocs_doc_single_toc_padding_bottom',
1127 'label' => __( 'Bottom', 'betterdocs' ),
1128 'priority' => 137,
1129 'input_attrs' => [
1130 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
1131 ]
1132 ] )
1133 );
1134
1135 $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_left', [
1136 'default' => $this->defaults['betterdocs_doc_single_toc_padding_left'],
1137 'capability' => 'edit_theme_options',
1138 'transport' => 'postMessage',
1139 'sanitize_callback' => [$this->sanitizer, 'integer']
1140
1141 ] );
1142
1143 $this->customizer->add_control( new DimensionControl(
1144 $this->customizer, 'betterdocs_doc_single_toc_padding_left', [
1145 'type' => 'betterdocs-dimension',
1146 'section' => 'betterdocs_single_docs_settings',
1147 'settings' => 'betterdocs_doc_single_toc_padding_left',
1148 'label' => __( 'Left', 'betterdocs' ),
1149 'priority' => 137,
1150 'input_attrs' => [
1151 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
1152 ]
1153 ] )
1154 );
1155 }
1156
1157 public function doc_single_toc_margin() {
1158 $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin', [
1159 'default' => $this->defaults['betterdocs_doc_single_toc_margin'],
1160 'capability' => 'edit_theme_options',
1161 'transport' => 'postMessage',
1162 'sanitize_callback' => [$this->sanitizer, 'integer']
1163 ] );
1164
1165 $this->customizer->add_control( new TitleControl(
1166 $this->customizer, 'betterdocs_doc_single_toc_margin', [
1167 'type' => 'betterdocs-title',
1168 'section' => 'betterdocs_single_docs_settings',
1169 'settings' => 'betterdocs_doc_single_toc_margin',
1170 'label' => __( 'Content Area Margin', 'betterdocs' ),
1171 'priority' => 141,
1172 'input_attrs' => [
1173 'id' => 'betterdocs_doc_single_toc_margin',
1174 'class' => 'betterdocs-dimension'
1175 ]
1176 ] )
1177 );
1178
1179 $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_top', [
1180 'default' => $this->defaults['betterdocs_doc_single_toc_margin_top'],
1181 'capability' => 'edit_theme_options',
1182 'transport' => 'postMessage',
1183 'sanitize_callback' => [$this->sanitizer, 'integer']
1184 ] );
1185
1186 $this->customizer->add_control( new DimensionControl(
1187 $this->customizer, 'betterdocs_doc_single_toc_margin_top', [
1188 'type' => 'betterdocs-dimension',
1189 'section' => 'betterdocs_single_docs_settings',
1190 'settings' => 'betterdocs_doc_single_toc_margin_top',
1191 'label' => __( 'Top', 'betterdocs' ),
1192 'priority' => 141,
1193 'input_attrs' => [
1194 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
1195 ]
1196 ] )
1197 );
1198
1199 $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_right', [
1200 'default' => $this->defaults['betterdocs_doc_single_toc_margin_right'],
1201 'capability' => 'edit_theme_options',
1202 'transport' => 'postMessage',
1203 'sanitize_callback' => [$this->sanitizer, 'integer']
1204 ] );
1205
1206 $this->customizer->add_control( new DimensionControl(
1207 $this->customizer, 'betterdocs_doc_single_toc_margin_right', [
1208 'type' => 'betterdocs-dimension',
1209 'section' => 'betterdocs_single_docs_settings',
1210 'settings' => 'betterdocs_doc_single_toc_margin_right',
1211 'label' => __( 'Right', 'betterdocs' ),
1212 'priority' => 141,
1213 'input_attrs' => [
1214 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
1215 ]
1216 ] )
1217 );
1218
1219 $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_bottom', [
1220 'default' => $this->defaults['betterdocs_doc_single_toc_margin_bottom'],
1221 'capability' => 'edit_theme_options',
1222 'transport' => 'postMessage',
1223 'sanitize_callback' => [$this->sanitizer, 'integer']
1224 ] );
1225
1226 $this->customizer->add_control( new DimensionControl(
1227 $this->customizer, 'betterdocs_doc_single_toc_margin_bottom', [
1228 'type' => 'betterdocs-dimension',
1229 'section' => 'betterdocs_single_docs_settings',
1230 'settings' => 'betterdocs_doc_single_toc_margin_bottom',
1231 'label' => __( 'Bottom', 'betterdocs' ),
1232 'priority' => 141,
1233 'input_attrs' => [
1234 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
1235 ]
1236 ] )
1237 );
1238
1239 $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_left', [
1240 'default' => $this->defaults['betterdocs_doc_single_toc_margin_left'],
1241 'capability' => 'edit_theme_options',
1242 'transport' => 'postMessage',
1243 'sanitize_callback' => [$this->sanitizer, 'integer']
1244 ] );
1245
1246 $this->customizer->add_control( new DimensionControl(
1247 $this->customizer, 'betterdocs_doc_single_toc_margin_left', [
1248 'type' => 'betterdocs-dimension',
1249 'section' => 'betterdocs_single_docs_settings',
1250 'settings' => 'betterdocs_doc_single_toc_margin_left',
1251 'label' => __( 'Left', 'betterdocs' ),
1252 'priority' => 141,
1253 'input_attrs' => [
1254 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
1255 ]
1256 ] )
1257 );
1258 }
1259
1260 public function toc_title_color() {
1261 $this->customizer->add_setting( 'betterdocs_toc_title_color', [
1262 'capability' => 'edit_theme_options',
1263 'default' => $this->defaults['betterdocs_toc_title_color'],
1264 'transport' => 'postMessage',
1265 'sanitize_callback' => [$this->sanitizer, 'rgba']
1266 ] );
1267
1268 $this->customizer->add_control(
1269 new AlphaColorControl(
1270 $this->customizer,
1271 'betterdocs_toc_title_color',
1272 [
1273 'label' => __( 'Title Color', 'betterdocs' ),
1274 'priority' => 142,
1275 'section' => 'betterdocs_single_docs_settings',
1276 'settings' => 'betterdocs_toc_title_color'
1277 ]
1278 )
1279 );
1280 }
1281
1282 public function toc_title_font_size() {
1283 $this->customizer->add_setting( 'betterdocs_toc_title_font_size', [
1284 'default' => $this->defaults['betterdocs_toc_title_font_size'],
1285 'capability' => 'edit_theme_options',
1286 'transport' => 'postMessage',
1287 'sanitize_callback' => [$this->sanitizer, 'integer']
1288
1289 ] );
1290
1291 $this->customizer->add_control( new RangeValueControl(
1292 $this->customizer, 'betterdocs_toc_title_font_size', [
1293 'type' => 'betterdocs-range-value',
1294 'section' => 'betterdocs_single_docs_settings',
1295 'settings' => 'betterdocs_toc_title_font_size',
1296 'label' => __( 'Title Font Size', 'betterdocs' ),
1297 'priority' => 143,
1298 'input_attrs' => [
1299 'class' => '',
1300 'min' => 0,
1301 'max' => 50,
1302 'step' => 1,
1303 'suffix' => 'px' //optional suffix
1304 ]
1305 ] )
1306 );
1307 }
1308
1309 public function toc_list_item_color() {
1310 $this->customizer->add_setting( 'betterdocs_toc_list_item_color', [
1311 'default' => $this->defaults['betterdocs_toc_list_item_color'],
1312 'transport' => 'postMessage',
1313 'sanitize_callback' => [$this->sanitizer, 'rgba']
1314 ] );
1315
1316 $this->customizer->add_control(
1317 new AlphaColorControl(
1318 $this->customizer,
1319 'betterdocs_toc_list_item_color',
1320 [
1321 'label' => __( 'List Item Color', 'betterdocs' ),
1322 'priority' => 144,
1323 'section' => 'betterdocs_single_docs_settings',
1324 'settings' => 'betterdocs_toc_list_item_color'
1325 ]
1326 )
1327 );
1328 }
1329
1330 public function toc_list_item_hover_color() {
1331 $this->customizer->add_setting( 'betterdocs_toc_list_item_hover_color', [
1332 'capability' => 'edit_theme_options',
1333 'default' => $this->defaults['betterdocs_toc_list_item_hover_color'],
1334 'sanitize_callback' => [$this->sanitizer, 'rgba']
1335 ] );
1336
1337 $this->customizer->add_control(
1338 new AlphaColorControl(
1339 $this->customizer,
1340 'betterdocs_toc_list_item_hover_color',
1341 [
1342 'label' => __( 'List Item Hover Color', 'betterdocs' ),
1343 'priority' => 145,
1344 'section' => 'betterdocs_single_docs_settings',
1345 'settings' => 'betterdocs_toc_list_item_hover_color'
1346 ]
1347 )
1348 );
1349 }
1350
1351 public function toc_active_item_color() {
1352 $this->customizer->add_setting( 'betterdocs_toc_active_item_color', [
1353 'capability' => 'edit_theme_options',
1354 'default' => $this->defaults['betterdocs_toc_active_item_color'],
1355 'sanitize_callback' => [$this->sanitizer, 'rgba']
1356 ] );
1357
1358 $this->customizer->add_control(
1359 new AlphaColorControl(
1360 $this->customizer,
1361 'betterdocs_toc_active_item_color',
1362 [
1363 'label' => __( 'Active Item Color', 'betterdocs' ),
1364 'priority' => 146,
1365 'section' => 'betterdocs_single_docs_settings',
1366 'settings' => 'betterdocs_toc_active_item_color'
1367 ]
1368 )
1369 );
1370 }
1371
1372 public function toc_list_item_font_size() {
1373 $this->customizer->add_setting( 'betterdocs_toc_list_item_font_size', [
1374 'default' => $this->defaults['betterdocs_toc_list_item_font_size'],
1375 'capability' => 'edit_theme_options',
1376 'transport' => 'postMessage',
1377 'sanitize_callback' => [$this->sanitizer, 'integer']
1378
1379 ] );
1380
1381 $this->customizer->add_control( new RangeValueControl(
1382 $this->customizer, 'betterdocs_toc_list_item_font_size', [
1383 'type' => 'betterdocs-range-value',
1384 'section' => 'betterdocs_single_docs_settings',
1385 'settings' => 'betterdocs_toc_list_item_font_size',
1386 'label' => __( 'List Item Font Size', 'betterdocs' ),
1387 'priority' => 147,
1388 'input_attrs' => [
1389 'class' => '',
1390 'min' => 0,
1391 'max' => 50,
1392 'step' => 1,
1393 'suffix' => 'px' //optional suffix
1394 ]
1395 ] )
1396 );
1397 }
1398
1399 public function doc_single_toc_list_margin() {
1400 $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin', [
1401 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin'],
1402 'capability' => 'edit_theme_options',
1403 'transport' => 'postMessage',
1404 'sanitize_callback' => [$this->sanitizer, 'integer']
1405
1406 ] );
1407
1408 $this->customizer->add_control( new TitleControl(
1409 $this->customizer, 'betterdocs_doc_single_toc_list_margin', [
1410 'type' => 'betterdocs-title',
1411 'section' => 'betterdocs_single_docs_settings',
1412 'settings' => 'betterdocs_doc_single_toc_list_margin',
1413 'label' => __( 'TOC List Margin', 'betterdocs' ),
1414 'priority' => 148,
1415 'input_attrs' => [
1416 'id' => 'betterdocs_doc_single_toc_list_margin',
1417 'class' => 'betterdocs-dimension'
1418 ]
1419 ] )
1420 );
1421
1422 $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_top', [
1423 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_top'],
1424 'capability' => 'edit_theme_options',
1425 'transport' => 'postMessage',
1426 'sanitize_callback' => [$this->sanitizer, 'integer']
1427 ] );
1428
1429 $this->customizer->add_control( new DimensionControl(
1430 $this->customizer, 'betterdocs_doc_single_toc_list_margin_top', [
1431 'type' => 'betterdocs-dimension',
1432 'section' => 'betterdocs_single_docs_settings',
1433 'settings' => 'betterdocs_doc_single_toc_list_margin_top',
1434 'label' => __( 'Top', 'betterdocs' ),
1435 'priority' => 148,
1436 'input_attrs' => [
1437 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
1438 ]
1439 ] )
1440 );
1441
1442 $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_right', [
1443 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_right'],
1444 'capability' => 'edit_theme_options',
1445 'transport' => 'postMessage',
1446 'sanitize_callback' => [$this->sanitizer, 'integer']
1447
1448 ] );
1449
1450 $this->customizer->add_control( new DimensionControl(
1451 $this->customizer, 'betterdocs_doc_single_toc_list_margin_right', [
1452 'type' => 'betterdocs-dimension',
1453 'section' => 'betterdocs_single_docs_settings',
1454 'settings' => 'betterdocs_doc_single_toc_list_margin_right',
1455 'label' => __( 'Right', 'betterdocs' ),
1456 'priority' => 148,
1457 'input_attrs' => [
1458 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
1459 ]
1460 ] )
1461 );
1462
1463 $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_bottom', [
1464 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_bottom'],
1465 'capability' => 'edit_theme_options',
1466 'transport' => 'postMessage',
1467 'sanitize_callback' => [$this->sanitizer, 'integer']
1468
1469 ] );
1470
1471 $this->customizer->add_control( new DimensionControl(
1472 $this->customizer, 'betterdocs_doc_single_toc_list_margin_bottom', [
1473 'type' => 'betterdocs-dimension',
1474 'section' => 'betterdocs_single_docs_settings',
1475 'settings' => 'betterdocs_doc_single_toc_list_margin_bottom',
1476 'label' => __( 'Bottom', 'betterdocs' ),
1477 'priority' => 148,
1478 'input_attrs' => [
1479 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
1480 ]
1481 ] )
1482 );
1483
1484 $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_left', [
1485 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_left'],
1486 'capability' => 'edit_theme_options',
1487 'transport' => 'postMessage',
1488 'sanitize_callback' => [$this->sanitizer, 'integer']
1489
1490 ] );
1491
1492 $this->customizer->add_control( new DimensionControl(
1493 $this->customizer, 'betterdocs_doc_single_toc_list_margin_left', [
1494 'type' => 'betterdocs-dimension',
1495 'section' => 'betterdocs_single_docs_settings',
1496 'settings' => 'betterdocs_doc_single_toc_list_margin_left',
1497 'label' => __( 'Left', 'betterdocs' ),
1498 'priority' => 148,
1499 'input_attrs' => [
1500 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
1501 ]
1502 ] )
1503 );
1504 }
1505
1506 public function toc_list_number_color() {
1507 $this->customizer->add_setting( 'betterdocs_toc_list_number_color', [
1508 'default' => $this->defaults['betterdocs_toc_list_number_color'],
1509 'capability' => 'edit_theme_options',
1510 'sanitize_callback' => [$this->sanitizer, 'rgba']
1511 ] );
1512
1513 $this->customizer->add_control(
1514 new AlphaColorControl(
1515 $this->customizer,
1516 'betterdocs_toc_list_number_color',
1517 [
1518 'label' => __( 'List Number Color', 'betterdocs' ),
1519 'priority' => 153,
1520 'section' => 'betterdocs_single_docs_settings',
1521 'settings' => 'betterdocs_toc_list_number_color'
1522 ]
1523 )
1524 );
1525 }
1526
1527 public function toc_list_number_font_size() {
1528 $this->customizer->add_setting( 'betterdocs_toc_list_number_font_size', [
1529 'default' => $this->defaults['betterdocs_toc_list_number_font_size'],
1530 'capability' => 'edit_theme_options',
1531 'sanitize_callback' => [$this->sanitizer, 'integer']
1532
1533 ] );
1534
1535 $this->customizer->add_control( new RangeValueControl(
1536 $this->customizer, 'betterdocs_toc_list_number_font_size', [
1537 'type' => 'betterdocs-range-value',
1538 'section' => 'betterdocs_single_docs_settings',
1539 'settings' => 'betterdocs_toc_list_number_font_size',
1540 'label' => __( 'List Number Font Size', 'betterdocs' ),
1541 'priority' => 154,
1542 'input_attrs' => [
1543 'class' => '',
1544 'min' => 0,
1545 'max' => 50,
1546 'step' => 1,
1547 'suffix' => 'px' //optional suffix
1548 ]
1549 ] )
1550 );
1551 }
1552
1553 public function toc_margin_bottom() {
1554 $this->customizer->add_setting( 'betterdocs_toc_margin_bottom', [
1555 'default' => $this->defaults['betterdocs_toc_margin_bottom'],
1556 'capability' => 'edit_theme_options',
1557 'transport' => 'postMessage',
1558 'sanitize_callback' => [$this->sanitizer, 'integer']
1559
1560 ] );
1561
1562 $this->customizer->add_control( new RangeValueControl(
1563 $this->customizer, 'betterdocs_toc_margin_bottom', [
1564 'type' => 'betterdocs-range-value',
1565 'section' => 'betterdocs_single_docs_settings',
1566 'settings' => 'betterdocs_toc_margin_bottom',
1567 'label' => __( 'TOC Margin Bottom', 'betterdocs' ),
1568 'priority' => 155,
1569 'input_attrs' => [
1570 'class' => '',
1571 'min' => 0,
1572 'max' => 500,
1573 'step' => 1,
1574 'suffix' => 'px' // optional suffix
1575 ]
1576 ] )
1577 );
1578 }
1579
1580 public function doc_single_entry_content() {
1581 $this->customizer->add_setting( 'betterdocs_doc_single_entry_content', [
1582 'default' => $this->defaults['betterdocs_doc_single_entry_content'],
1583 'sanitize_callback' => 'esc_html'
1584 ] );
1585
1586 $this->customizer->add_control( new SeparatorControl(
1587 $this->customizer, 'betterdocs_doc_single_entry_content', [
1588 'label' => __( 'Entry Content', 'betterdocs' ),
1589 'priority' => 156,
1590 'settings' => 'betterdocs_doc_single_entry_content',
1591 'section' => 'betterdocs_single_docs_settings'
1592 ] )
1593 );
1594 }
1595
1596 public function single_content_font_size() {
1597 $this->customizer->add_setting( 'betterdocs_single_content_font_size', [
1598 'default' => $this->defaults['betterdocs_single_content_font_size'],
1599 'capability' => 'edit_theme_options',
1600 'transport' => 'postMessage',
1601 'sanitize_callback' => [$this->sanitizer, 'integer']
1602
1603 ] );
1604
1605 $this->customizer->add_control( new RangeValueControl(
1606 $this->customizer, 'betterdocs_single_content_font_size', [
1607 'type' => 'betterdocs-range-value',
1608 'section' => 'betterdocs_single_docs_settings',
1609 'settings' => 'betterdocs_single_content_font_size',
1610 'label' => __( 'Font Size', 'betterdocs' ),
1611 'priority' => 157,
1612 'input_attrs' => [
1613 'class' => '',
1614 'min' => 0,
1615 'max' => 50,
1616 'step' => 1,
1617 'suffix' => 'px' // optional suffix
1618 ]
1619 ] )
1620 );
1621 }
1622
1623 public function single_content_font_color() {
1624 $this->customizer->add_setting( 'betterdocs_single_content_font_color', [
1625 'default' => $this->defaults['betterdocs_single_content_font_color'],
1626 'capability' => 'edit_theme_options',
1627 'transport' => 'postMessage',
1628 'sanitize_callback' => [$this->sanitizer, 'rgba']
1629 ] );
1630
1631 $this->customizer->add_control(
1632 new AlphaColorControl(
1633 $this->customizer,
1634 'betterdocs_single_content_font_color',
1635 [
1636 'label' => __( 'Font Color', 'betterdocs' ),
1637 'priority' => 158,
1638 'section' => 'betterdocs_single_docs_settings',
1639 'settings' => 'betterdocs_single_content_font_color'
1640 ]
1641 )
1642 );
1643 }
1644
1645 public function social_share_title() {
1646 $this->customizer->add_setting( 'betterdocs_social_share_title', [
1647 'default' => '',
1648 'sanitize_callback' => 'esc_html'
1649 ] );
1650
1651 $this->customizer->add_control(
1652 new SeparatorControl(
1653 $this->customizer, 'betterdocs_social_share_title', [
1654 'label' => __( 'Social Share', 'betterdocs' ),
1655 'priority' => 164,
1656 'settings' => 'betterdocs_social_share_title',
1657 'section' => 'betterdocs_single_docs_settings'
1658 ]
1659 )
1660 );
1661 }
1662
1663 public function post_social_share() {
1664 $this->customizer->add_setting( 'betterdocs_post_social_share', [
1665 'default' => $this->defaults['betterdocs_post_social_share'],
1666 'capability' => 'edit_theme_options',
1667 'sanitize_callback' => [$this->sanitizer, 'checkbox']
1668 ] );
1669
1670 $this->customizer->add_control(
1671 new ToggleControl(
1672 $this->customizer, 'betterdocs_post_social_share', [
1673 'label' => __( 'Enable Social Sharing?', 'betterdocs' ),
1674 'priority' => 165,
1675 'section' => 'betterdocs_single_docs_settings',
1676 'settings' => 'betterdocs_post_social_share',
1677 'type' => 'light' // light, ios, flat
1678 ]
1679 )
1680 );
1681 }
1682
1683 public function social_sharing_text() {
1684 $this->customizer->add_setting( 'betterdocs_social_sharing_text', [
1685 'default' => $this->defaults['betterdocs_social_sharing_text'],
1686 'capability' => 'edit_theme_options',
1687 'sanitize_callback' => 'esc_html'
1688 ] );
1689
1690 $this->customizer->add_control(
1691 new SelectControl(
1692 $this->customizer,
1693 'betterdocs_social_sharing_text',
1694 [
1695 'label' => __( 'Social Sharing Title', 'betterdocs' ),
1696 'priority' => 166,
1697 'section' => 'betterdocs_single_docs_settings',
1698 'settings' => 'betterdocs_social_sharing_text',
1699 'type' => 'text'
1700 ]
1701 )
1702 );
1703 }
1704
1705 public function post_social_share_text_color() {
1706 $this->customizer->add_setting( 'betterdocs_post_social_share_text_color', [
1707 'default' => $this->defaults['betterdocs_post_social_share_text_color'],
1708 'capability' => 'edit_theme_options',
1709 'transport' => 'postMessage',
1710 'sanitize_callback' => [$this->sanitizer, 'rgba']
1711 ] );
1712
1713 $this->customizer->add_control(
1714 new AlphaColorControl(
1715 $this->customizer,
1716 'betterdocs_post_social_share_text_color',
1717 [
1718 'label' => __( 'Title Text Color', 'betterdocs' ),
1719 'priority' => 167,
1720 'section' => 'betterdocs_single_docs_settings',
1721 'settings' => 'betterdocs_post_social_share_text_color'
1722 ]
1723 )
1724 );
1725 }
1726
1727 public function post_social_share_facebook() {
1728 $this->customizer->add_setting( 'betterdocs_post_social_share_facebook', [
1729 'default' => $this->defaults['betterdocs_post_social_share_facebook'],
1730 'capability' => 'edit_theme_options',
1731 'sanitize_callback' => [$this->sanitizer, 'checkbox']
1732 ] );
1733
1734 $this->customizer->add_control( new ToggleControl(
1735 $this->customizer, 'betterdocs_post_social_share_facebook', [
1736 'label' => __( 'Facebook Sharing', 'betterdocs' ),
1737 'priority' => 168,
1738 'section' => 'betterdocs_single_docs_settings',
1739 'settings' => 'betterdocs_post_social_share_facebook',
1740 'type' => 'light' // light, ios, flat
1741 ] )
1742 );
1743 }
1744
1745 public function post_social_share_twitter() {
1746 $this->customizer->add_setting( 'betterdocs_post_social_share_twitter', [
1747 'default' => $this->defaults['betterdocs_post_social_share_twitter'],
1748 'capability' => 'edit_theme_options',
1749 'sanitize_callback' => [$this->sanitizer, 'checkbox']
1750 ] );
1751
1752 $this->customizer->add_control( new ToggleControl(
1753 $this->customizer, 'betterdocs_post_social_share_twitter', [
1754 'label' => __( 'Twitter Sharing', 'betterdocs' ),
1755 'priority' => 169,
1756 'section' => 'betterdocs_single_docs_settings',
1757 'settings' => 'betterdocs_post_social_share_twitter',
1758 'type' => 'light' // light, ios, flat
1759 ] )
1760 );
1761 }
1762
1763 public function post_social_share_linkedin() {
1764 $this->customizer->add_setting( 'betterdocs_post_social_share_linkedin', [
1765 'default' => $this->defaults['betterdocs_post_social_share_linkedin'],
1766 'capability' => 'edit_theme_options',
1767 'sanitize_callback' => [$this->sanitizer, 'checkbox']
1768 ] );
1769
1770 $this->customizer->add_control( new ToggleControl( $this->customizer, 'betterdocs_post_social_share_linkedin', [
1771 'label' => __( 'Linkedin Sharing', 'betterdocs' ),
1772 'priority' => 170,
1773 'section' => 'betterdocs_single_docs_settings',
1774 'settings' => 'betterdocs_post_social_share_linkedin',
1775 'type' => 'light' // light, ios, flat
1776 ] ) );
1777 }
1778
1779 public function post_social_share_pinterest() {
1780 $this->customizer->add_setting( 'betterdocs_post_social_share_pinterest', [
1781 'default' => $this->defaults['betterdocs_post_social_share_pinterest'],
1782 'capability' => 'edit_theme_options',
1783 'sanitize_callback' => [$this->sanitizer, 'checkbox']
1784 ] );
1785
1786 $this->customizer->add_control( new ToggleControl( $this->customizer, 'betterdocs_post_social_share_pinterest', [
1787 'label' => __( 'Pinterest Sharing', 'betterdocs' ),
1788 'priority' => 171,
1789 'section' => 'betterdocs_single_docs_settings',
1790 'settings' => 'betterdocs_post_social_share_pinterest',
1791 'type' => 'light' // light, ios, flat
1792 ] ) );
1793 }
1794
1795 public function doc_single_entry_footer() {
1796 $this->customizer->add_setting( 'betterdocs_doc_single_entry_footer', [
1797 'default' => $this->defaults['betterdocs_doc_single_entry_footer'],
1798 'sanitize_callback' => 'esc_html'
1799 ] );
1800
1801 $this->customizer->add_control( new SeparatorControl(
1802 $this->customizer, 'betterdocs_doc_single_entry_footer', [
1803 'label' => __( 'Entry Footer', 'betterdocs' ),
1804 'priority' => 172,
1805 'settings' => 'betterdocs_doc_single_entry_footer',
1806 'section' => 'betterdocs_single_docs_settings'
1807 ] )
1808 );
1809 }
1810
1811 public function single_doc_feedback_icon_font_size() {
1812 $this->customizer->add_setting( 'betterdocs_single_doc_feedback_icon_font_size', [
1813 'default' => $this->defaults['betterdocs_single_doc_feedback_icon_font_size'],
1814 'capability' => 'edit_theme_options',
1815 'transport' => 'postMessage',
1816 'sanitize_callback' => [$this->sanitizer, 'integer']
1817
1818 ] );
1819
1820 $this->customizer->add_control( new RangeValueControl(
1821 $this->customizer, 'betterdocs_single_doc_feedback_icon_font_size', [
1822 'type' => 'betterdocs-range-value',
1823 'section' => 'betterdocs_single_docs_settings',
1824 'settings' => 'betterdocs_single_doc_feedback_icon_font_size',
1825 'label' => __( 'Feedback Icon Size', 'betterdocs' ),
1826 'priority' => 173,
1827 'input_attrs' => [
1828 'class' => '',
1829 'min' => 0,
1830 'max' => 100,
1831 'step' => 1,
1832 'suffix' => 'px' //optional suffix
1833 ]
1834 ] )
1835 );
1836 }
1837
1838 public function single_doc_feedback_icon() {
1839 $this->customizer->add_setting( 'betterdocs_single_doc_feedback_icon', [
1840 'default' => $this->defaults['betterdocs_single_doc_feedback_icon'],
1841 'capability' => 'edit_theme_options'
1842 ] );
1843
1844 $this->customizer->add_control( new WP_Customize_Image_Control(
1845 $this->customizer, 'betterdocs_single_doc_feedback_icon', [
1846 'section' => 'betterdocs_single_docs_settings',
1847 'settings' => 'betterdocs_single_doc_feedback_icon',
1848 'label' => __( 'Feedback Icon', 'betterdocs' ),
1849 'priority' => 173
1850 ] )
1851 );
1852 }
1853
1854 public function single_doc_feedback_link_color() {
1855 $this->customizer->add_setting( 'betterdocs_single_doc_feedback_link_color', [
1856 'default' => $this->defaults['betterdocs_single_doc_feedback_link_color'],
1857 'capability' => 'edit_theme_options',
1858 'transport' => 'postMessage',
1859 'sanitize_callback' => [$this->sanitizer, 'rgba']
1860 ] );
1861
1862 $this->customizer->add_control(
1863 new AlphaColorControl(
1864 $this->customizer,
1865 'betterdocs_single_doc_feedback_link_color',
1866 [
1867 'label' => __( 'Feedback Link Color', 'betterdocs' ),
1868 'priority' => 174,
1869 'section' => 'betterdocs_single_docs_settings',
1870 'settings' => 'betterdocs_single_doc_feedback_link_color'
1871 ]
1872 )
1873 );
1874 }
1875
1876 public function single_doc_feedback_link_hover_color() {
1877 $this->customizer->add_setting( 'betterdocs_single_doc_feedback_link_hover_color', [
1878 'default' => $this->defaults['betterdocs_single_doc_feedback_link_hover_color'],
1879 'capability' => 'edit_theme_options',
1880 'sanitize_callback' => [$this->sanitizer, 'rgba']
1881 ] );
1882
1883 $this->customizer->add_control(
1884 new AlphaColorControl(
1885 $this->customizer,
1886 'betterdocs_single_doc_feedback_link_hover_color',
1887 [
1888 'label' => __( 'Feedback Link Hover Color', 'betterdocs' ),
1889 'priority' => 175,
1890 'section' => 'betterdocs_single_docs_settings',
1891 'settings' => 'betterdocs_single_doc_feedback_link_hover_color'
1892 ]
1893 )
1894 );
1895 }
1896
1897 public function single_doc_feedback_link_font_size() {
1898 $this->customizer->add_setting( 'betterdocs_single_doc_feedback_link_font_size', [
1899 'default' => $this->defaults['betterdocs_single_doc_feedback_link_font_size'],
1900 'capability' => 'edit_theme_options',
1901 'transport' => 'postMessage',
1902 'sanitize_callback' => [$this->sanitizer, 'integer']
1903
1904 ] );
1905
1906 $this->customizer->add_control( new RangeValueControl(
1907 $this->customizer, 'betterdocs_single_doc_feedback_link_font_size', [
1908 'type' => 'betterdocs-range-value',
1909 'section' => 'betterdocs_single_docs_settings',
1910 'settings' => 'betterdocs_single_doc_feedback_link_font_size',
1911 'label' => __( 'Feedback Link Font Size', 'betterdocs' ),
1912 'priority' => 175,
1913 'input_attrs' => [
1914 'class' => '',
1915 'min' => 0,
1916 'max' => 50,
1917 'step' => 1,
1918 'suffix' => 'px' //optional suffix
1919 ]
1920 ] )
1921 );
1922 }
1923
1924 public function feedback_form_title_tag() {
1925 $this->customizer->add_setting( 'betterdocs_feedback_form_title_tag', [
1926 'default' => $this->defaults['betterdocs_feedback_form_title_tag'],
1927 'capability' => 'edit_theme_options',
1928 'sanitize_callback' => [$this->sanitizer, 'select']
1929 ] );
1930
1931 $this->customizer->add_control(
1932 new WP_Customize_Control(
1933 $this->customizer,
1934 'betterdocs_feedback_form_title_tag',
1935 [
1936 'label' => __( 'Feedback Form Title Tag', 'betterdocs' ),
1937 'section' => 'betterdocs_single_docs_settings',
1938 'settings' => 'betterdocs_feedback_form_title_tag',
1939 'priority' => 175,
1940 'type' => 'select',
1941 'choices' => [
1942 'h1' => 'h1',
1943 'h2' => 'h2',
1944 'h3' => 'h3',
1945 'h4' => 'h4',
1946 'h5' => 'h5',
1947 'h6' => 'h6'
1948 ]
1949 ]
1950 )
1951 );
1952 }
1953
1954 public function single_doc_feedback_title_font_size() {
1955 $this->customizer->add_setting( 'betterdocs_single_doc_feedback_title_font_size', [
1956 'default' => $this->defaults['betterdocs_single_doc_feedback_title_font_size'],
1957 'capability' => 'edit_theme_options',
1958 'transport' => 'postMessage',
1959 'sanitize_callback' => [$this->sanitizer, 'integer']
1960
1961 ] );
1962
1963 $this->customizer->add_control( new RangeValueControl(
1964 $this->customizer, 'betterdocs_single_doc_feedback_title_font_size', [
1965 'type' => 'betterdocs-range-value',
1966 'section' => 'betterdocs_single_docs_settings',
1967 'settings' => 'betterdocs_single_doc_feedback_title_font_size',
1968 'label' => __( 'Feedback Form Title Font Size', 'betterdocs' ),
1969 'priority' => 175,
1970 'input_attrs' => [
1971 'class' => '',
1972 'min' => 0,
1973 'max' => 100,
1974 'step' => 1,
1975 'suffix' => 'px' //optional suffix
1976 ]
1977 ] )
1978 );
1979 }
1980
1981 public function single_doc_feedback_title_color() {
1982 $this->customizer->add_setting( 'betterdocs_single_doc_feedback_title_color', [
1983 'default' => $this->defaults['betterdocs_single_doc_feedback_title_color'],
1984 'capability' => 'edit_theme_options',
1985 'transport' => 'postMessage',
1986 'sanitize_callback' => [$this->sanitizer, 'rgba']
1987 ] );
1988
1989 $this->customizer->add_control(
1990 new AlphaColorControl(
1991 $this->customizer,
1992 'betterdocs_single_doc_feedback_title_color',
1993 [
1994 'label' => __( 'Feedback Form Title Color', 'betterdocs' ),
1995 'priority' => 175,
1996 'section' => 'betterdocs_single_docs_settings',
1997 'settings' => 'betterdocs_single_doc_feedback_title_color'
1998 ]
1999 )
2000 );
2001 }
2002
2003 public function single_doc_navigation_color() {
2004 $this->customizer->add_setting( 'betterdocs_single_doc_navigation_color', [
2005 'default' => $this->defaults['betterdocs_single_doc_navigation_color'],
2006 'capability' => 'edit_theme_options',
2007 'transport' => 'postMessage',
2008 'sanitize_callback' => [$this->sanitizer, 'rgba']
2009 ] );
2010
2011 $this->customizer->add_control(
2012 new AlphaColorControl(
2013 $this->customizer,
2014 'betterdocs_single_doc_navigation_color',
2015 [
2016 'label' => __( 'Navigation Color', 'betterdocs' ),
2017 'priority' => 177,
2018 'section' => 'betterdocs_single_docs_settings',
2019 'settings' => 'betterdocs_single_doc_navigation_color'
2020 ]
2021 )
2022 );
2023 }
2024
2025 public function single_doc_navigation_font_size() {
2026 $this->customizer->add_setting( 'betterdocs_single_doc_navigation_font_size', [
2027 'default' => $this->defaults['betterdocs_single_doc_navigation_font_size'],
2028 'capability' => 'edit_theme_options',
2029 'transport' => 'postMessage',
2030 'sanitize_callback' => [$this->sanitizer, 'integer']
2031
2032 ] );
2033
2034 $this->customizer->add_control( new RangeValueControl(
2035 $this->customizer, 'betterdocs_single_doc_navigation_font_size', [
2036 'type' => 'betterdocs-range-value',
2037 'section' => 'betterdocs_single_docs_settings',
2038 'settings' => 'betterdocs_single_doc_navigation_font_size',
2039 'label' => __( 'Navigation Font Size', 'betterdocs' ),
2040 'priority' => 178,
2041 'input_attrs' => [
2042 'class' => '',
2043 'min' => 0,
2044 'max' => 50,
2045 'step' => 1,
2046 'suffix' => 'px' //optional suffix
2047 ]
2048 ] )
2049 );
2050 }
2051
2052 public function single_doc_navigation_hover_color() {
2053 $this->customizer->add_setting( 'betterdocs_single_doc_navigation_hover_color', [
2054 'default' => $this->defaults['betterdocs_single_doc_navigation_hover_color'],
2055 'capability' => 'edit_theme_options',
2056 'sanitize_callback' => [$this->sanitizer, 'rgba']
2057 ] );
2058
2059 $this->customizer->add_control(
2060 new AlphaColorControl(
2061 $this->customizer,
2062 'betterdocs_single_doc_navigation_hover_color',
2063 [
2064 'label' => __( 'Navigation Hover Color', 'betterdocs' ),
2065 'priority' => 179,
2066 'section' => 'betterdocs_single_docs_settings',
2067 'settings' => 'betterdocs_single_doc_navigation_hover_color'
2068 ]
2069 )
2070 );
2071 }
2072
2073 public function single_doc_navigation_arrow_color() {
2074 $this->customizer->add_setting( 'betterdocs_single_doc_navigation_arrow_color', [
2075 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_color'],
2076 'capability' => 'edit_theme_options',
2077 'transport' => 'postMessage',
2078 'sanitize_callback' => [$this->sanitizer, 'rgba']
2079 ] );
2080
2081 $this->customizer->add_control(
2082 new AlphaColorControl(
2083 $this->customizer,
2084 'betterdocs_single_doc_navigation_arrow_color',
2085 [
2086 'label' => __( 'Navigation Arrow Color', 'betterdocs' ),
2087 'priority' => 180,
2088 'section' => 'betterdocs_single_docs_settings',
2089 'settings' => 'betterdocs_single_doc_navigation_arrow_color'
2090 ]
2091 )
2092 );
2093 }
2094
2095 public function single_doc_navigation_arrow_font_size() {
2096 $this->customizer->add_setting( 'betterdocs_single_doc_navigation_arrow_font_size', [
2097 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_font_size'],
2098 'capability' => 'edit_theme_options',
2099 'transport' => 'postMessage',
2100 'sanitize_callback' => [$this->sanitizer, 'integer']
2101
2102 ] );
2103
2104 $this->customizer->add_control( new RangeValueControl(
2105 $this->customizer, 'betterdocs_single_doc_navigation_arrow_font_size', [
2106 'type' => 'betterdocs-range-value',
2107 'section' => 'betterdocs_single_docs_settings',
2108 'settings' => 'betterdocs_single_doc_navigation_arrow_font_size',
2109 'label' => __( 'Navigation Arrow Font Size', 'betterdocs' ),
2110 'priority' => 181,
2111 'input_attrs' => [
2112 'class' => '',
2113 'min' => 0,
2114 'max' => 50,
2115 'step' => 1,
2116 'suffix' => 'px' //optional suffix
2117 ]
2118 ] )
2119 );
2120 }
2121
2122 public function betterdocs_single_doc_lu_time_color() {
2123 $this->customizer->add_setting( 'betterdocs_single_doc_lu_time_color', [
2124 'default' => $this->defaults['betterdocs_single_doc_lu_time_color'],
2125 'capability' => 'edit_theme_options',
2126 'transport' => 'postMessage',
2127 'sanitize_callback' => [$this->sanitizer, 'rgba']
2128 ] );
2129
2130 $this->customizer->add_control(
2131 new AlphaColorControl(
2132 $this->customizer,
2133 'betterdocs_single_doc_lu_time_color',
2134 [
2135 'label' => __( 'Last Updated Time Color', 'betterdocs' ),
2136 'priority' => 182,
2137 'section' => 'betterdocs_single_docs_settings',
2138 'settings' => 'betterdocs_single_doc_lu_time_color'
2139 ]
2140 )
2141 );
2142 }
2143
2144 public function single_doc_lu_time_font_size() {
2145 $this->customizer->add_setting( 'betterdocs_single_doc_lu_time_font_size', [
2146 'default' => $this->defaults['betterdocs_single_doc_lu_time_font_size'],
2147 'capability' => 'edit_theme_options',
2148 'transport' => 'postMessage',
2149 'sanitize_callback' => [$this->sanitizer, 'integer']
2150
2151 ] );
2152
2153 $this->customizer->add_control( new RangeValueControl(
2154 $this->customizer, 'betterdocs_single_doc_lu_time_font_size', [
2155 'type' => 'betterdocs-range-value',
2156 'section' => 'betterdocs_single_docs_settings',
2157 'settings' => 'betterdocs_single_doc_lu_time_font_size',
2158 'label' => __( 'Last Updated Time Font Size', 'betterdocs' ),
2159 'priority' => 183,
2160 'input_attrs' => [
2161 'class' => '',
2162 'min' => 0,
2163 'max' => 50,
2164 'step' => 1,
2165 'suffix' => 'px' //optional suffix
2166 ]
2167 ] )
2168 );
2169 }
2170
2171 public function single_doc_powered_by_color() {
2172 $this->customizer->add_setting( 'betterdocs_single_doc_powered_by_color', [
2173 'default' => $this->defaults['betterdocs_single_doc_powered_by_color'],
2174 'capability' => 'edit_theme_options',
2175 'transport' => 'postMessage',
2176 'sanitize_callback' => [$this->sanitizer, 'rgba']
2177 ] );
2178
2179 $this->customizer->add_control(
2180 new AlphaColorControl(
2181 $this->customizer,
2182 'betterdocs_single_doc_powered_by_color',
2183 [
2184 'label' => __( 'Powered by Color', 'betterdocs' ),
2185 'priority' => 184,
2186 'section' => 'betterdocs_single_docs_settings',
2187 'settings' => 'betterdocs_single_doc_powered_by_color'
2188 ]
2189 )
2190 );
2191 }
2192
2193 public function single_doc_powered_by_font_size() {
2194 $this->customizer->add_setting( 'betterdocs_single_doc_powered_by_font_size', [
2195 'default' => $this->defaults['betterdocs_single_doc_powered_by_font_size'],
2196 'capability' => 'edit_theme_options',
2197 'transport' => 'postMessage',
2198 'sanitize_callback' => [$this->sanitizer, 'integer']
2199
2200 ] );
2201
2202 $this->customizer->add_control( new RangeValueControl(
2203 $this->customizer, 'betterdocs_single_doc_powered_by_font_size', [
2204 'type' => 'betterdocs-range-value',
2205 'section' => 'betterdocs_single_docs_settings',
2206 'settings' => 'betterdocs_single_doc_powered_by_font_size',
2207 'label' => __( 'Powered By Font Size', 'betterdocs' ),
2208 'priority' => 185,
2209 'input_attrs' => [
2210 'class' => '',
2211 'min' => 0,
2212 'max' => 50,
2213 'step' => 1,
2214 'suffix' => 'px' //optional suffix
2215 ]
2216 ] )
2217 );
2218 }
2219
2220 public function single_doc_powered_by_link_color() {
2221 $this->customizer->add_setting( 'betterdocs_single_doc_powered_by_link_color', [
2222 'default' => $this->defaults['betterdocs_single_doc_powered_by_link_color'],
2223 'capability' => 'edit_theme_options',
2224 'transport' => 'postMessage',
2225 'sanitize_callback' => [$this->sanitizer, 'rgba']
2226 ] );
2227
2228 $this->customizer->add_control(
2229 new AlphaColorControl(
2230 $this->customizer,
2231 'betterdocs_single_doc_powered_by_link_color',
2232 [
2233 'label' => __( 'Powered By Link Color', 'betterdocs' ),
2234 'priority' => 186,
2235 'section' => 'betterdocs_single_docs_settings',
2236 'settings' => 'betterdocs_single_doc_powered_by_link_color'
2237 ]
2238 )
2239 );
2240 }
2241
2242 public function reactions_title() {
2243 $this->customizer->add_setting( 'betterdocs_reactions_title', [
2244 'default' => '',
2245 'sanitize_callback' => 'esc_html'
2246 ] );
2247
2248 $this->customizer->add_control( new SeparatorControl(
2249 $this->customizer, 'betterdocs_reactions_title', [
2250 'label' => __( 'Reactions', 'betterdocs' ),
2251 'priority' => 159,
2252 'settings' => 'betterdocs_reactions_title',
2253 'section' => 'betterdocs_single_docs_settings'
2254 ] )
2255 );
2256 }
2257
2258 public function post_reactions() {
2259 $this->customizer->add_setting( 'betterdocs_post_reactions', [
2260 'default' => $this->defaults['betterdocs_post_reactions'],
2261 'capability' => 'edit_theme_options',
2262 'sanitize_callback' => [$this->sanitizer, 'checkbox']
2263 ] );
2264
2265 $this->customizer->add_control( new ToggleControl(
2266 $this->customizer, 'betterdocs_post_reactions', [
2267 'label' => __( 'Enable Reactions?', 'betterdocs' ),
2268 'priority' => 160,
2269 'section' => 'betterdocs_single_docs_settings',
2270 'settings' => 'betterdocs_post_reactions',
2271 'type' => 'light' // light, ios, flat
2272 ] )
2273 );
2274 }
2275
2276 public function post_reactions_text() {
2277 $this->customizer->add_setting( 'betterdocs_post_reactions_text', [
2278 'default' => $this->defaults['betterdocs_post_reactions_text'],
2279 'capability' => 'edit_theme_options',
2280 'sanitize_callback' => 'esc_html'
2281 ] );
2282
2283 $this->customizer->add_control(
2284 new SelectControl(
2285 $this->customizer,
2286 'betterdocs_post_reactions_text',
2287 [
2288 'label' => __( 'Reactions Title', 'betterdocs' ),
2289 'priority' => 161,
2290 'section' => 'betterdocs_single_docs_settings',
2291 'settings' => 'betterdocs_post_reactions_text',
2292 'type' => 'text'
2293 ]
2294 )
2295 );
2296 }
2297
2298 public function post_reactions_text_color() {
2299 $this->customizer->add_setting( 'betterdocs_post_reactions_text_color', [
2300 'default' => $this->defaults['betterdocs_post_reactions_text_color'],
2301 'capability' => 'edit_theme_options',
2302 'transport' => 'postMessage',
2303 'sanitize_callback' => [$this->sanitizer, 'rgba']
2304 ] );
2305
2306 $this->customizer->add_control(
2307 new AlphaColorControl(
2308 $this->customizer,
2309 'betterdocs_post_reactions_text_color',
2310 [
2311 'label' => __( 'Reactions Text Color', 'betterdocs' ),
2312 'priority' => 162,
2313 'section' => 'betterdocs_single_docs_settings',
2314 'settings' => 'betterdocs_post_reactions_text_color'
2315 ]
2316 )
2317 );
2318 }
2319
2320 public function post_reactions_icon_color() {
2321 $this->customizer->add_setting( 'betterdocs_post_reactions_icon_color', [
2322 'default' => $this->defaults['betterdocs_post_reactions_icon_color'],
2323 'capability' => 'edit_theme_options',
2324 'transport' => 'postMessage',
2325 'sanitize_callback' => [$this->sanitizer, 'rgba']
2326 ] );
2327
2328 $this->customizer->add_control(
2329 new AlphaColorControl(
2330 $this->customizer,
2331 'betterdocs_post_reactions_icon_color',
2332 [
2333 'label' => __( 'Reactions Icon Background Color', 'betterdocs' ),
2334 'priority' => 163,
2335 'section' => 'betterdocs_single_docs_settings',
2336 'settings' => 'betterdocs_post_reactions_icon_color'
2337 ]
2338 )
2339 );
2340 }
2341
2342 public function post_reactions_icon_svg_color() {
2343 $this->customizer->add_setting( 'betterdocs_post_reactions_icon_svg_color', [
2344 'default' => $this->defaults['betterdocs_post_reactions_icon_svg_color'],
2345 'capability' => 'edit_theme_options',
2346 'transport' => 'postMessage',
2347 'sanitize_callback' => [$this->sanitizer, 'rgba']
2348 ] );
2349
2350 $this->customizer->add_control(
2351 new AlphaColorControl(
2352 $this->customizer,
2353 'betterdocs_post_reactions_icon_svg_color',
2354 [
2355 'label' => __( 'Reactions Icon Color', 'betterdocs' ),
2356 'priority' => 163,
2357 'section' => 'betterdocs_single_docs_settings',
2358 'settings' => 'betterdocs_post_reactions_icon_svg_color'
2359 ]
2360 )
2361 );
2362 }
2363
2364 public function post_reactions_icon_hover_bg_color() {
2365 $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_bg_color', [
2366 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_bg_color'],
2367 'capability' => 'edit_theme_options',
2368 'sanitize_callback' => [$this->sanitizer, 'rgba']
2369 ] );
2370
2371 $this->customizer->add_control(
2372 new AlphaColorControl(
2373 $this->customizer,
2374 'betterdocs_post_reactions_icon_hover_bg_color',
2375 [
2376 'label' => __( 'Reactions Icon Hover Background Color', 'betterdocs' ),
2377 'priority' => 163,
2378 'section' => 'betterdocs_single_docs_settings',
2379 'settings' => 'betterdocs_post_reactions_icon_hover_bg_color'
2380 ]
2381 )
2382 );
2383 }
2384
2385 public function post_reactions_icon_hover_svg_color() {
2386 $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_svg_color', [
2387 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_svg_color'],
2388 'capability' => 'edit_theme_options',
2389 'sanitize_callback' => [$this->sanitizer, 'rgba']
2390 ] );
2391
2392 $this->customizer->add_control(
2393 new AlphaColorControl(
2394 $this->customizer,
2395 'betterdocs_post_reactions_icon_hover_svg_color',
2396 [
2397 'label' => __( 'Reactions Icon Hover Color', 'betterdocs' ),
2398 'priority' => 163,
2399 'section' => 'betterdocs_single_docs_settings',
2400 'settings' => 'betterdocs_post_reactions_icon_hover_svg_color'
2401 ]
2402 )
2403 );
2404 }
2405
2406 }
2407