PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.3
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.3
4.9.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 All 201 releases
← All changes | includes/Admin/Customizer/Sections/FaqBuilder.php +2065 -669 3.4.0 → 4.9.3 View file →
@@ -11,737 +11,2133 @@
11 11 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\RangeValueControl;
12 12 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\MultiDimensionControl;
13 13
14 14 class FaqBuilder extends Section {
15 - /**
16 - * Section Priority
17 - * @var int
18 - */
19 - protected $priority = 600;
15 + /**
16 + * Section Priority
17 + * @var int
18 + */
19 + protected $priority = 600;
20 20
21 - /**
22 - * Get the section id.
23 - * @return string
24 - */
25 - public function get_id() {
26 - return 'betterdocs_faq_section';
27 - }
21 + /**
22 + * Get the section id.
23 + * @return string
24 + */
25 + public function get_id() {
26 + return 'betterdocs_faq_section';
27 + }
28 28
29 - /**
30 - * Get the title of the section.
31 - * @return string
32 - */
33 - public function get_title() {
34 - return __( 'FAQ', 'betterdocs' );
35 - }
29 + /**
30 + * Get the title of the section.
31 + * @return string
32 + */
33 + public function get_title() {
34 + return __( 'FAQ', 'betterdocs' );
35 + }
36 36
37 - public function section_seperator() {
38 - $this->customizer->add_setting( 'betterdocs_faq_section_seperator', [
39 - 'default' => $this->defaults['betterdocs_faq_section_seperator'],
40 - 'sanitize_callback' => 'esc_html'
41 - ] );
37 + public function section_seperator() {
38 + $this->customizer->add_setting(
39 + 'betterdocs_faq_section_seperator',
40 + [
41 + 'default' => $this->defaults['betterdocs_faq_section_seperator'],
42 + 'sanitize_callback' => 'esc_html'
43 + ]
44 + );
42 45
43 - $this->customizer->add_control( new SeparatorControl(
44 - $this->customizer, 'betterdocs_faq_section_seperator', [
45 - 'label' => __( 'Docs Page FAQ', 'betterdocs' ),
46 - 'settings' => 'betterdocs_faq_section_seperator',
47 - 'section' => 'betterdocs_faq_section',
48 - 'priority' => 624
49 - ] )
50 - );
51 - }
46 + $this->customizer->add_control(
47 + new SeparatorControl(
48 + $this->customizer,
49 + 'betterdocs_faq_section_seperator',
50 + [
51 + 'label' => __( 'Docs Page FAQ', 'betterdocs' ),
52 + 'settings' => 'betterdocs_faq_section_seperator',
53 + 'section' => 'betterdocs_faq_section',
54 + 'priority' => 624
55 + ]
56 + )
57 + );
58 + }
52 59
53 - public function faq_switch() {
54 - $this->customizer->add_setting( 'betterdocs_faq_switch', [
55 - 'default' => $this->defaults['betterdocs_faq_switch'],
56 - 'capability' => 'edit_theme_options'
57 - ] );
60 + public function faq_switch() {
61 + $this->customizer->add_setting(
62 + 'betterdocs_faq_switch',
63 + [
64 + 'default' => $this->defaults['betterdocs_faq_switch'],
65 + 'capability' => 'edit_theme_options'
66 + ]
67 + );
58 68
59 - $this->customizer->add_control( new ToggleControl(
60 - $this->customizer,
61 - 'betterdocs_faq_switch', [
62 - 'label' => __( 'Enable FAQ', 'betterdocs' ),
63 - 'section' => 'betterdocs_faq_section',
64 - 'settings' => 'betterdocs_faq_switch',
65 - 'type' => 'light', // light, ios, flat
66 - 'priority' => 625
67 - ] )
68 - );
69 - }
69 + $this->customizer->add_control(
70 + new ToggleControl(
71 + $this->customizer,
72 + 'betterdocs_faq_switch',
73 + [
74 + 'label' => __( 'Enable FAQ', 'betterdocs' ),
75 + 'section' => 'betterdocs_faq_section',
76 + 'settings' => 'betterdocs_faq_switch',
77 + 'type' => 'light', // light, ios, flat
78 + 'priority' => 625
79 + ]
80 + )
81 + );
82 + }
70 83
71 - public function select_specific_faq() {
72 - $this->customizer->add_setting( 'betterdocs_select_specific_faq', [
73 - 'default' => $this->defaults['betterdocs_select_specific_faq'],
74 - 'capability' => 'edit_theme_options'
75 - ] );
84 + public function select_specific_faq() {
85 + $this->customizer->add_setting(
86 + 'betterdocs_select_specific_faq',
87 + [
88 + 'default' => $this->defaults['betterdocs_select_specific_faq'],
89 + 'capability' => 'edit_theme_options'
90 + ]
91 + );
76 92
77 - $this->customizer->add_control(
78 - new WP_Customize_Control(
79 - $this->customizer,
80 - 'betterdocs_select_specific_faq',
81 - [
82 - 'label' => __( 'Select FAQ Groups', 'betterdocs' ),
83 - 'section' => 'betterdocs_faq_section',
84 - 'settings' => 'betterdocs_select_specific_faq',
85 - 'type' => 'select',
86 - 'choices' => betterdocs()->query->get_faq_terms( [
87 - 'all' => __( 'Show All', 'betterdocs' )
88 - ] ),
89 - 'priority' => 626
90 - ]
91 - )
92 - );
93 - }
93 + $this->customizer->add_control(
94 + new WP_Customize_Control(
95 + $this->customizer,
96 + 'betterdocs_select_specific_faq',
97 + [
98 + 'label' => __( 'Select FAQ Groups', 'betterdocs' ),
99 + 'section' => 'betterdocs_faq_section',
100 + 'settings' => 'betterdocs_select_specific_faq',
101 + 'type' => 'select',
102 + 'choices' => betterdocs()->query->get_faq_terms(
103 + [
104 + 'all' => __( 'Show All', 'betterdocs' )
105 + ]
106 + ),
107 + 'priority' => 626
108 + ]
109 + )
110 + );
111 + }
94 112
95 - public function select_faq_template() {
96 - $this->customizer->add_setting( 'betterdocs_select_faq_template', [
97 - 'default' => $this->defaults['betterdocs_select_faq_template'],
98 - 'capability' => 'edit_theme_options',
99 - 'sanitize_callback' => [$this->sanitizer, 'select']
100 - ] );
113 + public function select_faq_template() {
114 + $this->customizer->add_setting(
115 + 'betterdocs_select_faq_template',
116 + [
117 + 'default' => $this->defaults['betterdocs_select_faq_template'],
118 + 'capability' => 'edit_theme_options',
119 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
120 + ]
121 + );
101 122
102 - $this->customizer->add_control(
103 - new RadioImageControl(
104 - $this->customizer,
105 - 'betterdocs_select_faq_template',
106 - [
107 - 'type' => 'betterdocs-radio-image',
108 - 'settings' => 'betterdocs_select_faq_template',
109 - 'section' => 'betterdocs_faq_section',
110 - 'label' => __( 'Select FAQ Layout', 'betterdocs' ),
111 - 'priority' => 627,
112 - 'choices' => [
113 - 'layout-1' => [
114 - 'label' => __( 'Modern Layout', 'betterdocs' ),
115 - 'image' => $this->assets->icon( 'customizer/faq/layout-1.png', true )
116 - ],
117 - 'layout-2' => [
118 - 'label' => __( 'Classic Layout', 'betterdocs' ),
119 - 'image' => $this->assets->icon( 'customizer/faq/layout-2.png', true )
120 - ]
121 - ]
122 - ]
123 - )
124 - );
125 - }
123 + $this->customizer->add_control(
124 + new RadioImageControl(
125 + $this->customizer,
126 + 'betterdocs_select_faq_template',
127 + [
128 + 'type' => 'betterdocs-radio-image',
129 + 'settings' => 'betterdocs_select_faq_template',
130 + 'section' => 'betterdocs_faq_section',
131 + 'label' => __( 'Select FAQ Layout', 'betterdocs' ),
132 + 'priority' => 627,
133 + 'choices' => [
134 + 'layout-3' => [
135 + 'label' => __( 'Abstract Layout', 'betterdocs' ),
136 + 'image' => $this->assets->icon( 'customizer/faq/layout-3.png', true )
137 + ],
138 + 'layout-1' => [
139 + 'label' => __( 'Modern Layout', 'betterdocs' ),
140 + 'image' => $this->assets->icon( 'customizer/faq/layout-1.png', true )
141 + ],
142 + 'layout-2' => [
143 + 'label' => __( 'Classic Layout', 'betterdocs' ),
144 + 'image' => $this->assets->icon( 'customizer/faq/layout-2.png', true )
145 + ],
146 + 'layout-4' => [
147 + 'label' => __( 'Retro Layout', 'betterdocs' ),
148 + 'image' => $this->assets->icon( 'customizer/faq/layout-4.png', true )
149 + ],
150 + ]
151 + ]
152 + )
153 + );
154 + }
126 155
127 - public function faq_title_text() {
128 - $this->customizer->add_setting( 'betterdocs_faq_title_text', [
129 - 'default' => $this->defaults['betterdocs_faq_title_text'],
130 - 'capability' => 'edit_theme_options',
131 - 'sanitize_callback' => 'esc_html'
132 - ] );
156 + public function faq_title_text() {
157 + $this->customizer->add_setting(
158 + 'betterdocs_faq_title_text',
159 + [
160 + 'default' => $this->defaults['betterdocs_faq_title_text'],
161 + 'capability' => 'edit_theme_options',
162 + 'sanitize_callback' => 'esc_html'
163 + ]
164 + );
133 165
134 - $this->customizer->add_control(
135 - new SelectControl(
136 - $this->customizer,
137 - 'betterdocs_faq_title_text',
138 - [
139 - 'label' => __( 'Section Title Text', 'betterdocs' ),
140 - 'section' => 'betterdocs_faq_section',
141 - 'priority' => 628,
142 - 'settings' => 'betterdocs_faq_title_text',
143 - 'type' => 'text'
144 - ]
145 - )
146 - );
147 - }
166 + $this->customizer->add_control(
167 + new SelectControl(
168 + $this->customizer,
169 + 'betterdocs_faq_title_text',
170 + [
171 + 'label' => __( 'Section Title Text', 'betterdocs' ),
172 + 'section' => 'betterdocs_faq_section',
173 + 'priority' => 628,
174 + 'settings' => 'betterdocs_faq_title_text',
175 + 'type' => 'text'
176 + ]
177 + )
178 + );
179 + }
148 180
149 - public function faq_title_margin() {
150 - $this->customizer->add_setting( 'betterdocs_faq_title_margin', [
151 - 'default' => $this->defaults['betterdocs_faq_title_margin'],
152 - 'transport' => 'postMessage',
153 - 'capability' => 'edit_theme_options'
154 - ] );
181 + public function faq_section_title_tag() {
182 + $this->customizer->add_setting(
183 + 'betterdocs_faq_section_title_tag',
184 + [
185 + 'default' => $this->defaults['betterdocs_faq_section_title_tag'],
186 + 'capability' => 'edit_theme_options',
187 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
188 + ]
189 + );
155 190
156 - $this->customizer->add_control(
157 - new MultiDimensionControl(
158 - $this->customizer,
159 - 'betterdocs_faq_title_margin',
160 - [
161 - 'label' => __( 'FAQ Section Title Margin (PX)', 'betterdocs' ),
162 - 'section' => 'betterdocs_faq_section',
163 - 'settings' => 'betterdocs_faq_title_margin',
164 - 'priority' => 629,
165 - 'input_fields' => [
166 - 'input1' => __( 'top', 'betterdocs' ),
167 - 'input2' => __( 'right', 'betterdocs' ),
168 - 'input3' => __( 'bottom', 'betterdocs' ),
169 - 'input4' => __( 'left', 'betterdocs' )
170 - ],
171 - 'defaults' => [
172 - 'input1' => 0,
173 - 'input2' => 0,
174 - 'input3' => 0,
175 - 'input4' => 0
176 - ]
177 - ]
178 - )
179 - );
180 - }
191 + $this->customizer->add_control(
192 + new WP_Customize_Control(
193 + $this->customizer,
194 + 'betterdocs_faq_section_title_tag',
195 + [
196 + 'label' => __( 'Section Title Tag', 'betterdocs' ),
197 + 'section' => 'betterdocs_faq_section',
198 + 'settings' => 'betterdocs_faq_section_title_tag',
199 + 'type' => 'select',
200 + 'choices' => [
201 + 'h1' => 'h1',
202 + 'h2' => 'h2',
203 + 'h3' => 'h3',
204 + 'h4' => 'h4',
205 + 'h5' => 'h5',
206 + 'h6' => 'h6'
207 + ],
208 + 'priority' => 629
209 + ]
210 + )
211 + );
212 + }
181 213
182 - public function faq_title_color() {
183 - $this->customizer->add_setting( 'betterdocs_faq_title_color', [
184 - 'default' => $this->defaults['betterdocs_faq_title_color'],
185 - 'capability' => 'edit_theme_options',
186 - 'transport' => 'postMessage',
187 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
188 - ] );
214 + public function faq_title_margin() {
215 + $this->customizer->add_setting(
216 + 'betterdocs_faq_title_margin',
217 + [
218 + 'default' => $this->defaults['betterdocs_faq_title_margin'],
219 + 'transport' => 'postMessage',
220 + 'capability' => 'edit_theme_options'
221 + ]
222 + );
189 223
190 - $this->customizer->add_control(
191 - new AlphaColorControl(
192 - $this->customizer,
193 - 'betterdocs_faq_title_color',
194 - [
195 - 'label' => __( 'Section Title Color', 'betterdocs' ),
196 - 'section' => 'betterdocs_faq_section',
197 - 'settings' => 'betterdocs_faq_title_color',
198 - 'priority' => 630
199 - ]
200 - )
201 - );
202 - }
224 + $this->customizer->add_control(
225 + new MultiDimensionControl(
226 + $this->customizer,
227 + 'betterdocs_faq_title_margin',
228 + [
229 + 'label' => __( 'FAQ Section Title Margin (PX)', 'betterdocs' ),
230 + 'section' => 'betterdocs_faq_section',
231 + 'settings' => 'betterdocs_faq_title_margin',
232 + 'priority' => 629,
233 + 'input_fields' => [
234 + 'input1' => __( 'top', 'betterdocs' ),
235 + 'input2' => __( 'right', 'betterdocs' ),
236 + 'input3' => __( 'bottom', 'betterdocs' ),
237 + 'input4' => __( 'left', 'betterdocs' )
238 + ],
239 + 'defaults' => [
240 + 'input1' => 0,
241 + 'input2' => 0,
242 + 'input3' => 0,
243 + 'input4' => 0
244 + ]
245 + ]
246 + )
247 + );
248 + }
203 249
204 - public function faq_title_font_size() {
205 - $this->customizer->add_setting( 'betterdocs_faq_title_font_size', [
206 - 'default' => $this->defaults['betterdocs_faq_title_font_size'],
207 - 'capability' => 'edit_theme_options',
208 - 'transport' => 'postMessage',
209 - 'sanitize_callback' => [$this->sanitizer, 'integer']
210 - ] );
250 + public function faq_title_color() {
251 + $this->customizer->add_setting(
252 + 'betterdocs_faq_title_color',
253 + [
254 + 'default' => $this->defaults['betterdocs_faq_title_color'],
255 + 'capability' => 'edit_theme_options',
256 + 'transport' => 'postMessage',
257 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
258 + ]
259 + );
211 260
212 - $this->customizer->add_control( new RangeValueControl(
213 - $this->customizer, 'betterdocs_faq_title_font_size', [
214 - 'type' => 'betterdocs-range-value',
215 - 'section' => 'betterdocs_faq_section',
216 - 'settings' => 'betterdocs_faq_title_font_size',
217 - 'label' => __( 'Section Title Font Size', 'betterdocs' ),
218 - 'priority' => 631,
219 - 'input_attrs' => [
220 - 'class' => '',
221 - 'min' => 0,
222 - 'max' => 50,
223 - 'step' => 1,
224 - 'suffix' => 'px' // optional suffix
225 - ]
226 - ] )
227 - );
228 - }
261 + $this->customizer->add_control(
262 + new AlphaColorControl(
263 + $this->customizer,
264 + 'betterdocs_faq_title_color',
265 + [
266 + 'label' => __( 'Section Title Color', 'betterdocs' ),
267 + 'section' => 'betterdocs_faq_section',
268 + 'settings' => 'betterdocs_faq_title_color',
269 + 'priority' => 630
270 + ]
271 + )
272 + );
273 + }
229 274
230 - public function faq_category_title_color() {
231 - $this->customizer->add_setting( 'betterdocs_faq_category_title_color', [
232 - 'default' => $this->defaults['betterdocs_faq_category_title_color'],
233 - 'capability' => 'edit_theme_options',
234 - 'transport' => 'postMessage',
235 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
236 - ] );
275 + public function faq_title_font_size() {
276 + $this->customizer->add_setting(
277 + 'betterdocs_faq_title_font_size',
278 + [
279 + 'default' => $this->defaults['betterdocs_faq_title_font_size'],
280 + 'capability' => 'edit_theme_options',
281 + 'transport' => 'postMessage',
282 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
283 + ]
284 + );
237 285
238 - $this->customizer->add_control(
239 - new AlphaColorControl(
240 - $this->customizer,
241 - 'betterdocs_faq_category_title_color',
242 - [
243 - 'label' => __( 'Group Title Color', 'betterdocs' ),
244 - 'section' => 'betterdocs_faq_section',
245 - 'priority' => 632,
246 - 'settings' => 'betterdocs_faq_category_title_color'
247 - ]
248 - )
249 - );
250 - }
286 + $this->customizer->add_control(
287 + new RangeValueControl(
288 + $this->customizer,
289 + 'betterdocs_faq_title_font_size',
290 + [
291 + 'type' => 'betterdocs-range-value',
292 + 'section' => 'betterdocs_faq_section',
293 + 'settings' => 'betterdocs_faq_title_font_size',
294 + 'label' => __( 'Section Title Font Size', 'betterdocs' ),
295 + 'priority' => 631,
296 + 'input_attrs' => [
297 + 'class' => '',
298 + 'min' => 0,
299 + 'max' => 50,
300 + 'step' => 1,
301 + 'suffix' => 'px' // optional suffix
302 + ]
303 + ]
304 + )
305 + );
306 + }
251 307
252 - public function faq_category_name_font_size() {
253 - $this->customizer->add_setting( 'betterdocs_faq_category_name_font_size', [
254 - 'default' => $this->defaults['betterdocs_faq_category_name_font_size'],
255 - 'capability' => 'edit_theme_options',
256 - 'transport' => 'postMessage',
257 - 'sanitize_callback' => [$this->sanitizer, 'integer']
308 + public function faq_group_title_tag() {
309 + $this->customizer->add_setting(
310 + 'betterdocs_faq_group_title_tag',
311 + [
312 + 'default' => $this->defaults['betterdocs_faq_group_title_tag'],
313 + 'capability' => 'edit_theme_options',
314 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
315 + ]
316 + );
258 317
259 - ] );
318 + $this->customizer->add_control(
319 + new WP_Customize_Control(
320 + $this->customizer,
321 + 'betterdocs_faq_group_title_tag',
322 + [
323 + 'label' => __( 'Group Title Tag', 'betterdocs' ),
324 + 'section' => 'betterdocs_faq_section',
325 + 'settings' => 'betterdocs_faq_group_title_tag',
326 + 'type' => 'select',
327 + 'choices' => [
328 + 'h1' => 'h1',
329 + 'h2' => 'h2',
330 + 'h3' => 'h3',
331 + 'h4' => 'h4',
332 + 'h5' => 'h5',
333 + 'h6' => 'h6'
334 + ],
335 + 'priority' => 631
336 + ]
337 + )
338 + );
339 + }
260 340
261 - $this->customizer->add_control( new RangeValueControl(
262 - $this->customizer, 'betterdocs_faq_category_name_font_size', [
263 - 'type' => 'betterdocs-range-value',
264 - 'section' => 'betterdocs_faq_section',
265 - 'settings' => 'betterdocs_faq_category_name_font_size',
266 - 'label' => __( 'Group Title Font Size', 'betterdocs' ),
267 - 'priority' => 633,
268 - 'input_attrs' => [
269 - 'class' => '',
270 - 'min' => 0,
271 - 'max' => 50,
272 - 'step' => 1,
273 - 'suffix' => 'px' // optional suffix
274 - ]
275 - ] )
276 - );
277 - }
341 + public function faq_category_title_color() {
342 + $this->customizer->add_setting(
343 + 'betterdocs_faq_category_title_color',
344 + [
345 + 'default' => $this->defaults['betterdocs_faq_category_title_color'],
346 + 'capability' => 'edit_theme_options',
347 + 'transport' => 'postMessage',
348 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
349 + ]
350 + );
278 351
279 - public function faq_category_name_padding() {
280 - $this->customizer->add_setting( 'betterdocs_faq_category_name_padding', [
281 - 'default' => $this->defaults['betterdocs_faq_category_name_padding'],
282 - 'transport' => 'postMessage',
283 - 'capability' => 'edit_theme_options'
284 - ] );
352 + $this->customizer->add_control(
353 + new AlphaColorControl(
354 + $this->customizer,
355 + 'betterdocs_faq_category_title_color',
356 + [
357 + 'label' => __( 'Group Title Color', 'betterdocs' ),
358 + 'section' => 'betterdocs_faq_section',
359 + 'priority' => 632,
360 + 'settings' => 'betterdocs_faq_category_title_color'
361 + ]
362 + )
363 + );
364 + }
285 365
286 - $this->customizer->add_control(
287 - new MultiDimensionControl(
288 - $this->customizer,
289 - 'betterdocs_faq_category_name_padding',
290 - [
291 - 'label' => __( 'Group Title Padding (PX)', 'betterdocs' ),
292 - 'section' => 'betterdocs_faq_section',
293 - 'settings' => 'betterdocs_faq_category_name_padding',
294 - 'priority' => 634,
295 - 'input_fields' => [
296 - 'input1' => __( 'top', 'betterdocs' ),
297 - 'input2' => __( 'right', 'betterdocs' ),
298 - 'input3' => __( 'bottom', 'betterdocs' ),
299 - 'input4' => __( 'left', 'betterdocs' )
300 - ],
301 - 'defaults' => [
302 - 'input1' => 20,
303 - 'input2' => 20,
304 - 'input3' => 20,
305 - 'input4' => 20
306 - ]
307 - ]
308 - )
309 - );
310 - }
366 + public function faq_category_name_font_size() {
367 + $this->customizer->add_setting(
368 + 'betterdocs_faq_category_name_font_size',
369 + [
370 + 'default' => $this->defaults['betterdocs_faq_category_name_font_size'],
371 + 'capability' => 'edit_theme_options',
372 + 'transport' => 'postMessage',
373 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
311 374
312 - public function faq_list_color() {
313 - $this->customizer->add_setting( 'betterdocs_faq_list_color', [
314 - 'default' => $this->defaults['betterdocs_faq_list_color'],
315 - 'capability' => 'edit_theme_options',
316 - 'transport' => 'postMessage',
317 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
318 - ] );
375 + ]
376 + );
319 377
320 - $this->customizer->add_control(
321 - new AlphaColorControl(
322 - $this->customizer,
323 - 'betterdocs_faq_list_color',
324 - [
325 - 'label' => __( 'FAQ List Color', 'betterdocs' ),
326 - 'section' => 'betterdocs_faq_section',
327 - 'settings' => 'betterdocs_faq_list_color',
328 - 'priority' => 635
329 - ]
330 - )
331 - );
332 - }
378 + $this->customizer->add_control(
379 + new RangeValueControl(
380 + $this->customizer,
381 + 'betterdocs_faq_category_name_font_size',
382 + [
383 + 'type' => 'betterdocs-range-value',
384 + 'section' => 'betterdocs_faq_section',
385 + 'settings' => 'betterdocs_faq_category_name_font_size',
386 + 'label' => __( 'Group Title Font Size', 'betterdocs' ),
387 + 'priority' => 633,
388 + 'input_attrs' => [
389 + 'class' => '',
390 + 'min' => 0,
391 + 'max' => 50,
392 + 'step' => 1,
393 + 'suffix' => 'px' // optional suffix
394 + ]
395 + ]
396 + )
397 + );
398 + }
333 399
334 - public function faq_list_background_color() {
335 - $this->customizer->add_setting( 'betterdocs_faq_list_background_color', [
336 - 'default' => $this->defaults['betterdocs_faq_list_background_color'],
337 - 'capability' => 'edit_theme_options',
338 - 'transport' => 'postMessage',
339 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
340 - ] );
400 + public function faq_category_name_padding() {
401 + $this->customizer->add_setting(
402 + 'betterdocs_faq_category_name_padding',
403 + [
404 + 'default' => $this->defaults['betterdocs_faq_category_name_padding'],
405 + 'transport' => 'postMessage',
406 + 'capability' => 'edit_theme_options'
407 + ]
408 + );
341 409
342 - $this->customizer->add_control(
343 - new AlphaColorControl(
344 - $this->customizer,
345 - 'betterdocs_faq_list_background_color',
346 - [
347 - 'label' => __( 'FAQ List Background Color', 'betterdocs' ),
348 - 'section' => 'betterdocs_faq_section',
349 - 'settings' => 'betterdocs_faq_list_background_color',
350 - 'priority' => 636
351 - ]
352 - )
353 - );
354 - }
410 + $this->customizer->add_control(
411 + new MultiDimensionControl(
412 + $this->customizer,
413 + 'betterdocs_faq_category_name_padding',
414 + [
415 + 'label' => __( 'Group Title Padding (PX)', 'betterdocs' ),
416 + 'section' => 'betterdocs_faq_section',
417 + 'settings' => 'betterdocs_faq_category_name_padding',
418 + 'priority' => 634,
419 + 'input_fields' => [
420 + 'input1' => __( 'top', 'betterdocs' ),
421 + 'input2' => __( 'right', 'betterdocs' ),
422 + 'input3' => __( 'bottom', 'betterdocs' ),
423 + 'input4' => __( 'left', 'betterdocs' )
424 + ],
425 + 'defaults' => [
426 + 'input1' => 20,
427 + 'input2' => 20,
428 + 'input3' => 20,
429 + 'input4' => 20
430 + ]
431 + ]
432 + )
433 + );
434 + }
355 435
356 - public function faq_list_content_background_color() {
357 - $this->customizer->add_setting( 'betterdocs_faq_list_content_background_color', [
358 - 'default' => $this->defaults['betterdocs_faq_list_content_background_color'],
359 - 'capability' => 'edit_theme_options',
360 - 'transport' => 'postMessage',
361 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
362 - ] );
436 + public function faq_list_color() {
437 + $this->customizer->add_setting(
438 + 'betterdocs_faq_list_color',
439 + [
440 + 'default' => $this->defaults['betterdocs_faq_list_color'],
441 + 'capability' => 'edit_theme_options',
442 + 'transport' => 'postMessage',
443 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
444 + ]
445 + );
363 446
364 - $this->customizer->add_control(
365 - new AlphaColorControl(
366 - $this->customizer,
367 - 'betterdocs_faq_list_content_background_color',
368 - [
369 - 'label' => __( 'FAQ List Content Background Color', 'betterdocs' ),
370 - 'section' => 'betterdocs_faq_section',
371 - 'settings' => 'betterdocs_faq_list_content_background_color',
372 - 'priority' => 637
373 - ]
374 - )
375 - );
376 - }
447 + $this->customizer->add_control(
448 + new AlphaColorControl(
449 + $this->customizer,
450 + 'betterdocs_faq_list_color',
451 + [
452 + 'label' => __( 'FAQ List Color', 'betterdocs' ),
453 + 'section' => 'betterdocs_faq_section',
454 + 'settings' => 'betterdocs_faq_list_color',
455 + 'priority' => 635
456 + ]
457 + )
458 + );
459 + }
377 460
378 - public function faq_list_content_color() {
379 - $this->customizer->add_setting( 'betterdocs_faq_list_content_color', [
380 - 'default' => $this->defaults['betterdocs_faq_list_content_color'],
381 - 'capability' => 'edit_theme_options',
382 - 'transport' => 'postMessage',
383 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
384 - ] );
461 + public function faq_list_background_color() {
462 + $this->customizer->add_setting(
463 + 'betterdocs_faq_list_background_color',
464 + [
465 + 'default' => $this->defaults['betterdocs_faq_list_background_color'],
466 + 'capability' => 'edit_theme_options',
467 + 'transport' => 'postMessage',
468 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
469 + ]
470 + );
385 471
386 - $this->customizer->add_control(
387 - new AlphaColorControl(
388 - $this->customizer,
389 - 'betterdocs_faq_list_content_color',
390 - [
391 - 'label' => __( 'FAQ List Content Color', 'betterdocs' ),
392 - 'section' => 'betterdocs_faq_section',
393 - 'settings' => 'betterdocs_faq_list_content_color',
394 - 'priority' => 638
395 - ]
396 - )
397 - );
398 - }
472 + $this->customizer->add_control(
473 + new AlphaColorControl(
474 + $this->customizer,
475 + 'betterdocs_faq_list_background_color',
476 + [
477 + 'label' => __( 'FAQ List Background Color', 'betterdocs' ),
478 + 'section' => 'betterdocs_faq_section',
479 + 'settings' => 'betterdocs_faq_list_background_color',
480 + 'priority' => 638
481 + ]
482 + )
483 + );
484 + }
399 485
400 - public function faq_list_content_font_size() {
401 - $this->customizer->add_setting( 'betterdocs_faq_list_content_font_size', [
402 - 'default' => $this->defaults['betterdocs_faq_list_content_font_size'],
403 - 'capability' => 'edit_theme_options',
404 - 'transport' => 'postMessage',
405 - 'sanitize_callback' => [$this->sanitizer, 'integer']
486 + public function faq_list_content_background_color() {
487 + $this->customizer->add_setting(
488 + 'betterdocs_faq_list_content_background_color',
489 + [
490 + 'default' => $this->defaults['betterdocs_faq_list_content_background_color'],
491 + 'capability' => 'edit_theme_options',
492 + 'transport' => 'postMessage',
493 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
494 + ]
495 + );
406 496
407 - ] );
497 + $this->customizer->add_control(
498 + new AlphaColorControl(
499 + $this->customizer,
500 + 'betterdocs_faq_list_content_background_color',
501 + [
502 + 'label' => __( 'FAQ List Content Background Color', 'betterdocs' ),
503 + 'section' => 'betterdocs_faq_section',
504 + 'settings' => 'betterdocs_faq_list_content_background_color',
505 + 'priority' => 639
506 + ]
507 + )
508 + );
509 + }
408 510
409 - $this->customizer->add_control( new RangeValueControl(
410 - $this->customizer, 'betterdocs_faq_list_content_font_size', [
411 - 'type' => 'betterdocs-range-value',
412 - 'section' => 'betterdocs_faq_section',
413 - 'settings' => 'betterdocs_faq_list_content_font_size',
414 - 'label' => __( 'FAQ Content Font Size', 'betterdocs' ),
415 - 'priority' => 639,
416 - 'input_attrs' => [
417 - 'class' => '',
418 - 'min' => 0,
419 - 'max' => 50,
420 - 'step' => 1,
421 - 'suffix' => 'px' //optional suffix
422 - ]
423 - ] )
424 - );
425 - }
511 + public function faq_list_content_color() {
512 + $this->customizer->add_setting(
513 + 'betterdocs_faq_list_content_color',
514 + [
515 + 'default' => $this->defaults['betterdocs_faq_list_content_color'],
516 + 'capability' => 'edit_theme_options',
517 + 'transport' => 'postMessage',
518 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
519 + ]
520 + );
426 521
427 - public function faq_list_font_size() {
428 - $this->customizer->add_setting( 'betterdocs_faq_list_font_size', [
429 - 'default' => $this->defaults['betterdocs_faq_list_font_size'],
430 - 'capability' => 'edit_theme_options',
431 - 'transport' => 'postMessage',
432 - 'sanitize_callback' => [$this->sanitizer, 'integer']
522 + $this->customizer->add_control(
523 + new AlphaColorControl(
524 + $this->customizer,
525 + 'betterdocs_faq_list_content_color',
526 + [
527 + 'label' => __( 'FAQ List Content Color', 'betterdocs' ),
528 + 'section' => 'betterdocs_faq_section',
529 + 'settings' => 'betterdocs_faq_list_content_color',
530 + 'priority' => 640
531 + ]
532 + )
533 + );
534 + }
433 535
434 - ] );
536 + public function faq_list_content_font_size() {
537 + $this->customizer->add_setting(
538 + 'betterdocs_faq_list_content_font_size',
539 + [
540 + 'default' => $this->defaults['betterdocs_faq_list_content_font_size'],
541 + 'capability' => 'edit_theme_options',
542 + 'transport' => 'postMessage',
543 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
435 544
436 - $this->customizer->add_control( new RangeValueControl(
437 - $this->customizer, 'betterdocs_faq_list_font_size', [
438 - 'type' => 'betterdocs-range-value',
439 - 'section' => 'betterdocs_faq_section',
440 - 'settings' => 'betterdocs_faq_list_font_size',
441 - 'label' => __( 'FAQ List Font Size', 'betterdocs' ),
442 - 'priority' => 640,
443 - 'input_attrs' => [
444 - 'class' => '',
445 - 'min' => 0,
446 - 'max' => 50,
447 - 'step' => 1,
448 - 'suffix' => 'px' // optional suffix
449 - ]
450 - ] )
451 - );
452 - }
545 + ]
546 + );
453 547
454 - public function faq_list_padding() {
455 - $this->customizer->add_setting( 'betterdocs_faq_list_padding', [
456 - 'default' => $this->defaults['betterdocs_faq_list_padding'],
457 - 'transport' => 'postMessage',
458 - 'capability' => 'edit_theme_options'
459 - ] );
548 + $this->customizer->add_control(
549 + new RangeValueControl(
550 + $this->customizer,
551 + 'betterdocs_faq_list_content_font_size',
552 + [
553 + 'type' => 'betterdocs-range-value',
554 + 'section' => 'betterdocs_faq_section',
555 + 'settings' => 'betterdocs_faq_list_content_font_size',
556 + 'label' => __( 'FAQ List Content Font Size', 'betterdocs' ),
557 + 'priority' => 641,
558 + 'input_attrs' => [
559 + 'class' => '',
560 + 'min' => 0,
561 + 'max' => 50,
562 + 'step' => 1,
563 + 'suffix' => 'px' //optional suffix
564 + ]
565 + ]
566 + )
567 + );
568 + }
460 569
461 - $this->customizer->add_control(
462 - new MultiDimensionControl(
463 - $this->customizer,
464 - 'betterdocs_faq_list_padding',
465 - [
466 - 'label' => __( 'FAQ List Padding (PX)', 'betterdocs' ),
467 - 'section' => 'betterdocs_faq_section',
468 - 'settings' => 'betterdocs_faq_list_padding',
469 - 'priority' => 641,
470 - 'input_fields' => [
471 - 'input1' => __( 'top', 'betterdocs' ),
472 - 'input2' => __( 'right', 'betterdocs' ),
473 - 'input3' => __( 'bottom', 'betterdocs' ),
474 - 'input4' => __( 'left', 'betterdocs' )
475 - ],
476 - 'defaults' => [
477 - 'input1' => 20,
478 - 'input2' => 20,
479 - 'input3' => 20,
480 - 'input4' => 20
481 - ]
482 - ]
483 - )
484 - );
485 - }
570 + public function faq_list_font_size() {
571 + $this->customizer->add_setting(
572 + 'betterdocs_faq_list_font_size',
573 + [
574 + 'default' => $this->defaults['betterdocs_faq_list_font_size'],
575 + 'capability' => 'edit_theme_options',
576 + 'transport' => 'postMessage',
577 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
486 578
487 - public function faq_category_title_color_layout_2() {
488 - $this->customizer->add_setting( 'betterdocs_faq_category_title_color_layout_2', [
489 - 'default' => $this->defaults['betterdocs_faq_category_title_color_layout_2'],
490 - 'capability' => 'edit_theme_options',
491 - 'transport' => 'postMessage',
492 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
493 - ] );
579 + ]
580 + );
494 581
495 - $this->customizer->add_control(
496 - new AlphaColorControl(
497 - $this->customizer,
498 - 'betterdocs_faq_category_title_color_layout_2',
499 - [
500 - 'label' => __( 'Group Title Color', 'betterdocs' ),
501 - 'section' => 'betterdocs_faq_section',
502 - 'priority' => 642,
503 - 'settings' => 'betterdocs_faq_category_title_color_layout_2'
504 - ]
505 - )
506 - );
507 - }
582 + $this->customizer->add_control(
583 + new RangeValueControl(
584 + $this->customizer,
585 + 'betterdocs_faq_list_font_size',
586 + [
587 + 'type' => 'betterdocs-range-value',
588 + 'section' => 'betterdocs_faq_section',
589 + 'settings' => 'betterdocs_faq_list_font_size',
590 + 'label' => __( 'FAQ List Font Size', 'betterdocs' ),
591 + 'priority' => 636,
592 + 'input_attrs' => [
593 + 'class' => '',
594 + 'min' => 0,
595 + 'max' => 50,
596 + 'step' => 1,
597 + 'suffix' => 'px' // optional suffix
598 + ]
599 + ]
600 + )
601 + );
602 + }
508 603
509 - public function faq_category_name_font_size_layout_2() {
510 - $this->customizer->add_setting( 'betterdocs_faq_category_name_font_size_layout_2', [
511 - 'default' => $this->defaults['betterdocs_faq_category_name_font_size_layout_2'],
512 - 'capability' => 'edit_theme_options',
513 - 'transport' => 'postMessage',
514 - 'sanitize_callback' => [$this->sanitizer, 'integer']
604 + public function faq_list_padding() {
605 + $this->customizer->add_setting(
606 + 'betterdocs_faq_list_padding',
607 + [
608 + 'default' => $this->defaults['betterdocs_faq_list_padding'],
609 + 'transport' => 'postMessage',
610 + 'capability' => 'edit_theme_options'
611 + ]
612 + );
515 613
516 - ] );
614 + $this->customizer->add_control(
615 + new MultiDimensionControl(
616 + $this->customizer,
617 + 'betterdocs_faq_list_padding',
618 + [
619 + 'label' => __( 'FAQ List Padding (PX)', 'betterdocs' ),
620 + 'section' => 'betterdocs_faq_section',
621 + 'settings' => 'betterdocs_faq_list_padding',
622 + 'priority' => 637,
623 + 'input_fields' => [
624 + 'input1' => __( 'top', 'betterdocs' ),
625 + 'input2' => __( 'right', 'betterdocs' ),
626 + 'input3' => __( 'bottom', 'betterdocs' ),
627 + 'input4' => __( 'left', 'betterdocs' )
628 + ],
629 + 'defaults' => [
630 + 'input1' => 20,
631 + 'input2' => 20,
632 + 'input3' => 20,
633 + 'input4' => 20
634 + ]
635 + ]
636 + )
637 + );
638 + }
517 639
518 - $this->customizer->add_control( new RangeValueControl(
519 - $this->customizer, 'betterdocs_faq_category_name_font_size_layout_2', [
520 - 'type' => 'betterdocs-range-value',
521 - 'section' => 'betterdocs_faq_section',
522 - 'settings' => 'betterdocs_faq_category_name_font_size_layout_2',
523 - 'label' => __( 'Group Title Font Size', 'betterdocs' ),
524 - 'priority' => 643,
525 - 'input_attrs' => [
526 - 'class' => '',
527 - 'min' => 0,
528 - 'max' => 50,
529 - 'step' => 1,
530 - 'suffix' => 'px' // optional suffix
531 - ]
532 - ] )
533 - );
534 - }
640 + /**
641 + * ----------------------------------------------------------------------
642 + * Product FAQ for WooCommerce controls.
643 + *
644 + * Styles the FAQ rendered on single WooCommerce product pages
645 + * (`.betterdocs-woo-product-faq`). Only the Group Title + FAQ List
646 + * controls are offered — the product FAQ has no section title, layout
647 + * picker or active-group-title state, so those controls are intentionally
648 + * omitted. Registered only when WooCommerce is active.
649 + * ----------------------------------------------------------------------
650 + */
651 + public function section_woo_seperator() {
652 + if ( ! class_exists( 'WooCommerce' ) ) {
653 + return;
654 + }
535 655
536 - public function faq_category_name_padding_layout_2() {
537 - $this->customizer->add_setting( 'betterdocs_faq_category_name_padding_layout_2', [
538 - 'default' => $this->defaults['betterdocs_faq_category_name_padding_layout_2'],
539 - 'transport' => 'postMessage',
540 - 'capability' => 'edit_theme_options'
541 - ] );
656 + $this->customizer->add_setting(
657 + 'betterdocs_faq_section_woo_seperator',
658 + [
659 + 'default' => $this->defaults['betterdocs_faq_section_woo_seperator'],
660 + 'sanitize_callback' => 'esc_html'
661 + ]
662 + );
542 663
543 - $this->customizer->add_control(
544 - new MultiDimensionControl(
545 - $this->customizer,
546 - 'betterdocs_faq_category_name_padding_layout_2',
547 - [
548 - 'label' => __( 'Group Title Padding (PX)', 'betterdocs' ),
549 - 'section' => 'betterdocs_faq_section',
550 - 'settings' => 'betterdocs_faq_category_name_padding_layout_2',
551 - 'priority' => 644,
552 - 'input_fields' => [
553 - 'input1' => __( 'top', 'betterdocs' ),
554 - 'input2' => __( 'right', 'betterdocs' ),
555 - 'input3' => __( 'bottom', 'betterdocs' ),
556 - 'input4' => __( 'left', 'betterdocs' )
557 - ],
558 - 'defaults' => [
559 - 'input1' => 20,
560 - 'input2' => 20,
561 - 'input3' => 20,
562 - 'input4' => 20
563 - ]
564 - ]
565 - )
566 - );
567 - }
664 + $this->customizer->add_control(
665 + new SeparatorControl(
666 + $this->customizer,
667 + 'betterdocs_faq_section_woo_seperator',
668 + [
669 + 'label' => __( 'Product FAQ for WooCommerce', 'betterdocs' ),
670 + 'settings' => 'betterdocs_faq_section_woo_seperator',
671 + 'section' => 'betterdocs_faq_section',
672 + 'priority' => 675
673 + ]
674 + )
675 + );
676 + }
568 677
569 - public function faq_list_color_layout_2() {
570 - $this->customizer->add_setting( 'betterdocs_faq_list_color_layout_2', [
571 - 'default' => $this->defaults['betterdocs_faq_list_color_layout_2'],
572 - 'capability' => 'edit_theme_options',
573 - 'transport' => 'postMessage',
574 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
575 - ] );
678 + public function faq_group_title_tag_woo() {
679 + if ( ! class_exists( 'WooCommerce' ) ) {
680 + return;
681 + }
576 682
577 - $this->customizer->add_control(
578 - new AlphaColorControl(
579 - $this->customizer,
580 - 'betterdocs_faq_list_color_layout_2',
581 - [
582 - 'label' => __( 'FAQ List Color', 'betterdocs' ),
583 - 'section' => 'betterdocs_faq_section',
584 - 'settings' => 'betterdocs_faq_list_color_layout_2',
585 - 'priority' => 645
586 - ]
587 - )
588 - );
589 - }
683 + $this->customizer->add_setting(
684 + 'betterdocs_faq_group_title_tag_woo',
685 + [
686 + 'default' => $this->defaults['betterdocs_faq_group_title_tag_woo'],
687 + 'capability' => 'edit_theme_options',
688 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
689 + ]
690 + );
590 691
591 - public function faq_list_background_color_layout_2() {
592 - $this->customizer->add_setting( 'betterdocs_faq_list_background_color_layout_2', [
593 - 'default' => $this->defaults['betterdocs_faq_list_background_color_layout_2'],
594 - 'capability' => 'edit_theme_options',
595 - 'transport' => 'postMessage',
596 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
597 - ] );
692 + $this->customizer->add_control(
693 + new WP_Customize_Control(
694 + $this->customizer,
695 + 'betterdocs_faq_group_title_tag_woo',
696 + [
697 + 'label' => __( 'Group Title Tag', 'betterdocs' ),
698 + 'section' => 'betterdocs_faq_section',
699 + 'settings' => 'betterdocs_faq_group_title_tag_woo',
700 + 'type' => 'select',
701 + 'choices' => [
702 + 'h1' => 'h1',
703 + 'h2' => 'h2',
704 + 'h3' => 'h3',
705 + 'h4' => 'h4',
706 + 'h5' => 'h5',
707 + 'h6' => 'h6'
708 + ],
709 + 'priority' => 680
710 + ]
711 + )
712 + );
713 + }
598 714
599 - $this->customizer->add_control(
600 - new AlphaColorControl(
601 - $this->customizer,
602 - 'betterdocs_faq_list_background_color_layout_2',
603 - [
604 - 'label' => __( 'FAQ List Background Color', 'betterdocs' ),
605 - 'section' => 'betterdocs_faq_section',
606 - 'settings' => 'betterdocs_faq_list_background_color_layout_2',
607 - 'priority' => 646
608 - ]
609 - )
610 - );
611 - }
715 + public function faq_category_title_color_woo() {
716 + if ( ! class_exists( 'WooCommerce' ) ) {
717 + return;
718 + }
612 719
613 - public function faq_list_content_background_color_layout_2() {
614 - $this->customizer->add_setting( 'betterdocs_faq_list_content_background_color_layout_2', [
615 - 'default' => $this->defaults['betterdocs_faq_list_content_background_color_layout_2'],
616 - 'capability' => 'edit_theme_options',
617 - 'transport' => 'postMessage',
618 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
619 - ] );
720 + $this->customizer->add_setting(
721 + 'betterdocs_faq_category_title_color_woo',
722 + [
723 + 'default' => $this->defaults['betterdocs_faq_category_title_color_woo'],
724 + 'capability' => 'edit_theme_options',
725 + 'transport' => 'postMessage',
726 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
727 + ]
728 + );
620 729
621 - $this->customizer->add_control(
622 - new AlphaColorControl(
623 - $this->customizer,
624 - 'betterdocs_faq_list_content_background_color_layout_2',
625 - [
626 - 'label' => __( 'FAQ List Content Background Color', 'betterdocs' ),
627 - 'section' => 'betterdocs_faq_section',
628 - 'settings' => 'betterdocs_faq_list_content_background_color_layout_2',
629 - 'priority' => 647
630 - ]
631 - )
632 - );
633 - }
730 + $this->customizer->add_control(
731 + new AlphaColorControl(
732 + $this->customizer,
733 + 'betterdocs_faq_category_title_color_woo',
734 + [
735 + 'label' => __( 'Group Title Color', 'betterdocs' ),
736 + 'section' => 'betterdocs_faq_section',
737 + 'priority' => 681,
738 + 'settings' => 'betterdocs_faq_category_title_color_woo'
739 + ]
740 + )
741 + );
742 + }
634 743
635 - public function faq_list_content_color_layout_2() {
636 - $this->customizer->add_setting( 'betterdocs_faq_list_content_color_layout_2', [
637 - 'default' => $this->defaults['betterdocs_faq_list_content_color_layout_2'],
638 - 'capability' => 'edit_theme_options',
639 - 'transport' => 'postMessage',
640 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
641 - ] );
744 + public function faq_category_name_font_size_woo() {
745 + if ( ! class_exists( 'WooCommerce' ) ) {
746 + return;
747 + }
642 748
643 - $this->customizer->add_control(
644 - new AlphaColorControl(
645 - $this->customizer,
646 - 'betterdocs_faq_list_content_color_layout_2',
647 - [
648 - 'label' => __( 'FAQ List Content Color', 'betterdocs' ),
649 - 'section' => 'betterdocs_faq_section',
650 - 'settings' => 'betterdocs_faq_list_content_color_layout_2',
651 - 'priority' => 648
652 - ]
653 - )
654 - );
655 - }
749 + $this->customizer->add_setting(
750 + 'betterdocs_faq_category_name_font_size_woo',
751 + [
752 + 'default' => $this->defaults['betterdocs_faq_category_name_font_size_woo'],
753 + 'capability' => 'edit_theme_options',
754 + 'transport' => 'postMessage',
755 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
756 + ]
757 + );
656 758
657 - public function faq_list_content_font_size_layout_2() {
658 - $this->customizer->add_setting( 'betterdocs_faq_list_content_font_size_layout_2', [
659 - 'default' => $this->defaults['betterdocs_faq_list_content_font_size_layout_2'],
660 - 'capability' => 'edit_theme_options',
661 - 'transport' => 'postMessage',
662 - 'sanitize_callback' => [$this->sanitizer, 'integer']
663 - ] );
759 + $this->customizer->add_control(
760 + new RangeValueControl(
761 + $this->customizer,
762 + 'betterdocs_faq_category_name_font_size_woo',
763 + [
764 + 'type' => 'betterdocs-range-value',
765 + 'section' => 'betterdocs_faq_section',
766 + 'settings' => 'betterdocs_faq_category_name_font_size_woo',
767 + 'label' => __( 'Group Title Font Size', 'betterdocs' ),
768 + 'priority' => 682,
769 + 'input_attrs' => [
770 + 'class' => '',
771 + 'min' => 0,
772 + 'max' => 50,
773 + 'step' => 1,
774 + 'suffix' => 'px'
775 + ]
776 + ]
777 + )
778 + );
779 + }
664 780
665 - $this->customizer->add_control( new RangeValueControl(
666 - $this->customizer, 'betterdocs_faq_list_content_font_size_layout_2', [
667 - 'type' => 'betterdocs-range-value',
668 - 'section' => 'betterdocs_faq_section',
669 - 'settings' => 'betterdocs_faq_list_content_font_size_layout_2',
670 - 'label' => __( 'FAQ Content Font Size', 'betterdocs' ),
671 - 'priority' => 649,
672 - 'input_attrs' => [
673 - 'class' => '',
674 - 'min' => 0,
675 - 'max' => 50,
676 - 'step' => 1,
677 - 'suffix' => 'px' //optional suffix
678 - ]
679 - ]
680 - ) );
681 - }
781 + public function faq_category_name_padding_woo() {
782 + if ( ! class_exists( 'WooCommerce' ) ) {
783 + return;
784 + }
682 785
683 - public function faq_list_font_size_layout_2() {
684 - $this->customizer->add_setting( 'betterdocs_faq_list_font_size_layout_2', [
685 - 'default' => $this->defaults['betterdocs_faq_list_font_size_layout_2'],
686 - 'capability' => 'edit_theme_options',
687 - 'transport' => 'postMessage',
688 - 'sanitize_callback' => [$this->sanitizer, 'integer']
786 + $this->customizer->add_setting(
787 + 'betterdocs_faq_category_name_padding_woo',
788 + [
789 + 'default' => $this->defaults['betterdocs_faq_category_name_padding_woo'],
790 + 'transport' => 'postMessage',
791 + 'capability' => 'edit_theme_options'
792 + ]
793 + );
689 794
690 - ] );
795 + $this->customizer->add_control(
796 + new MultiDimensionControl(
797 + $this->customizer,
798 + 'betterdocs_faq_category_name_padding_woo',
799 + [
800 + 'label' => __( 'Group Title Padding (PX)', 'betterdocs' ),
801 + 'section' => 'betterdocs_faq_section',
802 + 'settings' => 'betterdocs_faq_category_name_padding_woo',
803 + 'priority' => 683,
804 + 'input_fields' => [
805 + 'input1' => __( 'top', 'betterdocs' ),
806 + 'input2' => __( 'right', 'betterdocs' ),
807 + 'input3' => __( 'bottom', 'betterdocs' ),
808 + 'input4' => __( 'left', 'betterdocs' )
809 + ],
810 + 'defaults' => [
811 + 'input1' => 20,
812 + 'input2' => 0,
813 + 'input3' => 20,
814 + 'input4' => 0
815 + ]
816 + ]
817 + )
818 + );
819 + }
691 820
692 - $this->customizer->add_control(
693 - new RangeValueControl(
694 - $this->customizer,
695 - 'betterdocs_faq_list_font_size_layout_2',
696 - [
697 - 'type' => 'betterdocs-range-value',
698 - 'section' => 'betterdocs_faq_section',
699 - 'settings' => 'betterdocs_faq_list_font_size_layout_2',
700 - 'label' => __( 'FAQ List Font Size', 'betterdocs' ),
701 - 'priority' => 650,
702 - 'input_attrs' => [
703 - 'class' => '',
704 - 'min' => 0,
705 - 'max' => 50,
706 - 'step' => 1,
707 - 'suffix' => 'px'
708 - // optional suffix
709 - ]
710 - ]
711 - )
712 - );
713 - }
821 + public function faq_list_color_woo() {
822 + if ( ! class_exists( 'WooCommerce' ) ) {
823 + return;
824 + }
714 825
715 - public function faq_list_padding_layout_2() {
716 - $this->customizer->add_setting( 'betterdocs_faq_list_padding_layout_2', [
717 - 'default' => $this->defaults['betterdocs_faq_list_padding_layout_2'],
718 - 'transport' => 'postMessage',
719 - 'capability' => 'edit_theme_options'
720 - ] );
826 + $this->customizer->add_setting(
827 + 'betterdocs_faq_list_color_woo',
828 + [
829 + 'default' => $this->defaults['betterdocs_faq_list_color_woo'],
830 + 'capability' => 'edit_theme_options',
831 + 'transport' => 'postMessage',
832 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
833 + ]
834 + );
721 835
722 - $this->customizer->add_control(
723 - new MultiDimensionControl(
724 - $this->customizer,
725 - 'betterdocs_faq_list_padding_layout_2',
726 - [
727 - 'label' => __( 'FAQ List Padding (PX)', 'betterdocs' ),
728 - 'section' => 'betterdocs_faq_section',
729 - 'settings' => 'betterdocs_faq_list_padding_layout_2',
730 - 'priority' => 651,
731 - 'input_fields' => [
732 - 'input1' => __( 'top', 'betterdocs' ),
733 - 'input2' => __( 'right', 'betterdocs' ),
734 - 'input3' => __( 'bottom', 'betterdocs' ),
735 - 'input4' => __( 'left', 'betterdocs' )
736 - ],
737 - 'defaults' => [
738 - 'input1' => 20,
739 - 'input2' => 20,
740 - 'input3' => 20,
741 - 'input4' => 20
742 - ]
743 - ]
744 - )
745 - );
746 - }
836 + $this->customizer->add_control(
837 + new AlphaColorControl(
838 + $this->customizer,
839 + 'betterdocs_faq_list_color_woo',
840 + [
841 + 'label' => __( 'FAQ List Color', 'betterdocs' ),
842 + 'section' => 'betterdocs_faq_section',
843 + 'settings' => 'betterdocs_faq_list_color_woo',
844 + 'priority' => 684
845 + ]
846 + )
847 + );
848 + }
849 +
850 + public function faq_list_background_color_woo() {
851 + if ( ! class_exists( 'WooCommerce' ) ) {
852 + return;
853 + }
854 +
855 + $this->customizer->add_setting(
856 + 'betterdocs_faq_list_background_color_woo',
857 + [
858 + 'default' => $this->defaults['betterdocs_faq_list_background_color_woo'],
859 + 'capability' => 'edit_theme_options',
860 + 'transport' => 'postMessage',
861 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
862 + ]
863 + );
864 +
865 + $this->customizer->add_control(
866 + new AlphaColorControl(
867 + $this->customizer,
868 + 'betterdocs_faq_list_background_color_woo',
869 + [
870 + 'label' => __( 'FAQ List Background Color', 'betterdocs' ),
871 + 'section' => 'betterdocs_faq_section',
872 + 'settings' => 'betterdocs_faq_list_background_color_woo',
873 + 'priority' => 687
874 + ]
875 + )
876 + );
877 + }
878 +
879 + public function faq_list_content_background_color_woo() {
880 + if ( ! class_exists( 'WooCommerce' ) ) {
881 + return;
882 + }
883 +
884 + $this->customizer->add_setting(
885 + 'betterdocs_faq_list_content_background_color_woo',
886 + [
887 + 'default' => $this->defaults['betterdocs_faq_list_content_background_color_woo'],
888 + 'capability' => 'edit_theme_options',
889 + 'transport' => 'postMessage',
890 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
891 + ]
892 + );
893 +
894 + $this->customizer->add_control(
895 + new AlphaColorControl(
896 + $this->customizer,
897 + 'betterdocs_faq_list_content_background_color_woo',
898 + [
899 + 'label' => __( 'FAQ List Content Background Color', 'betterdocs' ),
900 + 'section' => 'betterdocs_faq_section',
901 + 'settings' => 'betterdocs_faq_list_content_background_color_woo',
902 + 'priority' => 688
903 + ]
904 + )
905 + );
906 + }
907 +
908 + public function faq_list_content_color_woo() {
909 + if ( ! class_exists( 'WooCommerce' ) ) {
910 + return;
911 + }
912 +
913 + $this->customizer->add_setting(
914 + 'betterdocs_faq_list_content_color_woo',
915 + [
916 + 'default' => $this->defaults['betterdocs_faq_list_content_color_woo'],
917 + 'capability' => 'edit_theme_options',
918 + 'transport' => 'postMessage',
919 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
920 + ]
921 + );
922 +
923 + $this->customizer->add_control(
924 + new AlphaColorControl(
925 + $this->customizer,
926 + 'betterdocs_faq_list_content_color_woo',
927 + [
928 + 'label' => __( 'FAQ List Content Color', 'betterdocs' ),
929 + 'section' => 'betterdocs_faq_section',
930 + 'settings' => 'betterdocs_faq_list_content_color_woo',
931 + 'priority' => 689
932 + ]
933 + )
934 + );
935 + }
936 +
937 + public function faq_list_content_font_size_woo() {
938 + if ( ! class_exists( 'WooCommerce' ) ) {
939 + return;
940 + }
941 +
942 + $this->customizer->add_setting(
943 + 'betterdocs_faq_list_content_font_size_woo',
944 + [
945 + 'default' => $this->defaults['betterdocs_faq_list_content_font_size_woo'],
946 + 'capability' => 'edit_theme_options',
947 + 'transport' => 'postMessage',
948 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
949 + ]
950 + );
951 +
952 + $this->customizer->add_control(
953 + new RangeValueControl(
954 + $this->customizer,
955 + 'betterdocs_faq_list_content_font_size_woo',
956 + [
957 + 'type' => 'betterdocs-range-value',
958 + 'section' => 'betterdocs_faq_section',
959 + 'settings' => 'betterdocs_faq_list_content_font_size_woo',
960 + 'label' => __( 'FAQ List Content Font Size', 'betterdocs' ),
961 + 'priority' => 690,
962 + 'input_attrs' => [
963 + 'class' => '',
964 + 'min' => 0,
965 + 'max' => 50,
966 + 'step' => 1,
967 + 'suffix' => 'px'
968 + ]
969 + ]
970 + )
971 + );
972 + }
973 +
974 + public function faq_list_font_size_woo() {
975 + if ( ! class_exists( 'WooCommerce' ) ) {
976 + return;
977 + }
978 +
979 + $this->customizer->add_setting(
980 + 'betterdocs_faq_list_font_size_woo',
981 + [
982 + 'default' => $this->defaults['betterdocs_faq_list_font_size_woo'],
983 + 'capability' => 'edit_theme_options',
984 + 'transport' => 'postMessage',
985 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
986 + ]
987 + );
988 +
989 + $this->customizer->add_control(
990 + new RangeValueControl(
991 + $this->customizer,
992 + 'betterdocs_faq_list_font_size_woo',
993 + [
994 + 'type' => 'betterdocs-range-value',
995 + 'section' => 'betterdocs_faq_section',
996 + 'settings' => 'betterdocs_faq_list_font_size_woo',
997 + 'label' => __( 'FAQ List Font Size', 'betterdocs' ),
998 + 'priority' => 685,
999 + 'input_attrs' => [
1000 + 'class' => '',
1001 + 'min' => 0,
1002 + 'max' => 50,
1003 + 'step' => 1,
1004 + 'suffix' => 'px'
1005 + ]
1006 + ]
1007 + )
1008 + );
1009 + }
1010 +
1011 + public function faq_list_padding_woo() {
1012 + if ( ! class_exists( 'WooCommerce' ) ) {
1013 + return;
1014 + }
1015 +
1016 + $this->customizer->add_setting(
1017 + 'betterdocs_faq_list_padding_woo',
1018 + [
1019 + 'default' => $this->defaults['betterdocs_faq_list_padding_woo'],
1020 + 'transport' => 'postMessage',
1021 + 'capability' => 'edit_theme_options'
1022 + ]
1023 + );
1024 +
1025 + $this->customizer->add_control(
1026 + new MultiDimensionControl(
1027 + $this->customizer,
1028 + 'betterdocs_faq_list_padding_woo',
1029 + [
1030 + 'label' => __( 'FAQ List Padding (PX)', 'betterdocs' ),
1031 + 'section' => 'betterdocs_faq_section',
1032 + 'settings' => 'betterdocs_faq_list_padding_woo',
1033 + 'priority' => 686,
1034 + 'input_fields' => [
1035 + 'input1' => __( 'top', 'betterdocs' ),
1036 + 'input2' => __( 'right', 'betterdocs' ),
1037 + 'input3' => __( 'bottom', 'betterdocs' ),
1038 + 'input4' => __( 'left', 'betterdocs' )
1039 + ],
1040 + 'defaults' => [
1041 + 'input1' => 20,
1042 + 'input2' => 20,
1043 + 'input3' => 20,
1044 + 'input4' => 20
1045 + ]
1046 + ]
1047 + )
1048 + );
1049 + }
1050 +
1051 + public function faq_group_border_width_woo() {
1052 + if ( ! class_exists( 'WooCommerce' ) ) {
1053 + return;
1054 + }
1055 +
1056 + $this->customizer->add_setting(
1057 + 'betterdocs_faq_group_border_width_woo',
1058 + [
1059 + 'default' => $this->defaults['betterdocs_faq_group_border_width_woo'],
1060 + 'capability' => 'edit_theme_options',
1061 + 'transport' => 'postMessage',
1062 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1063 + ]
1064 + );
1065 +
1066 + $this->customizer->add_control(
1067 + new RangeValueControl(
1068 + $this->customizer,
1069 + 'betterdocs_faq_group_border_width_woo',
1070 + [
1071 + 'type' => 'betterdocs-range-value',
1072 + 'section' => 'betterdocs_faq_section',
1073 + 'settings' => 'betterdocs_faq_group_border_width_woo',
1074 + 'label' => __( 'FAQ Group Border Width', 'betterdocs' ),
1075 + 'priority' => 676,
1076 + 'input_attrs' => [
1077 + 'class' => '',
1078 + 'min' => 0,
1079 + 'max' => 20,
1080 + 'step' => 1,
1081 + 'suffix' => 'px'
1082 + ]
1083 + ]
1084 + )
1085 + );
1086 + }
1087 +
1088 + public function faq_group_border_color_woo() {
1089 + if ( ! class_exists( 'WooCommerce' ) ) {
1090 + return;
1091 + }
1092 +
1093 + $this->customizer->add_setting(
1094 + 'betterdocs_faq_group_border_color_woo',
1095 + [
1096 + 'default' => $this->defaults['betterdocs_faq_group_border_color_woo'],
1097 + 'capability' => 'edit_theme_options',
1098 + 'transport' => 'postMessage',
1099 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1100 + ]
1101 + );
1102 +
1103 + $this->customizer->add_control(
1104 + new AlphaColorControl(
1105 + $this->customizer,
1106 + 'betterdocs_faq_group_border_color_woo',
1107 + [
1108 + 'label' => __( 'FAQ Group Border Color', 'betterdocs' ),
1109 + 'section' => 'betterdocs_faq_section',
1110 + 'settings' => 'betterdocs_faq_group_border_color_woo',
1111 + 'priority' => 677
1112 + ]
1113 + )
1114 + );
1115 + }
1116 +
1117 + public function faq_group_padding_woo() {
1118 + if ( ! class_exists( 'WooCommerce' ) ) {
1119 + return;
1120 + }
1121 +
1122 + $this->customizer->add_setting(
1123 + 'betterdocs_faq_group_padding_woo',
1124 + [
1125 + 'default' => $this->defaults['betterdocs_faq_group_padding_woo'],
1126 + 'transport' => 'postMessage',
1127 + 'capability' => 'edit_theme_options'
1128 + ]
1129 + );
1130 +
1131 + $this->customizer->add_control(
1132 + new MultiDimensionControl(
1133 + $this->customizer,
1134 + 'betterdocs_faq_group_padding_woo',
1135 + [
1136 + 'label' => __( 'FAQ Group Padding (PX)', 'betterdocs' ),
1137 + 'section' => 'betterdocs_faq_section',
1138 + 'settings' => 'betterdocs_faq_group_padding_woo',
1139 + 'priority' => 678,
1140 + 'input_fields' => [
1141 + 'input1' => __( 'top', 'betterdocs' ),
1142 + 'input2' => __( 'right', 'betterdocs' ),
1143 + 'input3' => __( 'bottom', 'betterdocs' ),
1144 + 'input4' => __( 'left', 'betterdocs' )
1145 + ],
1146 + 'defaults' => [
1147 + 'input1' => 0,
1148 + 'input2' => 0,
1149 + 'input3' => 0,
1150 + 'input4' => 0
1151 + ]
1152 + ]
1153 + )
1154 + );
1155 + }
1156 +
1157 + public function faq_group_margin_woo() {
1158 + if ( ! class_exists( 'WooCommerce' ) ) {
1159 + return;
1160 + }
1161 +
1162 + $this->customizer->add_setting(
1163 + 'betterdocs_faq_group_margin_woo',
1164 + [
1165 + 'default' => $this->defaults['betterdocs_faq_group_margin_woo'],
1166 + 'transport' => 'postMessage',
1167 + 'capability' => 'edit_theme_options'
1168 + ]
1169 + );
1170 +
1171 + $this->customizer->add_control(
1172 + new MultiDimensionControl(
1173 + $this->customizer,
1174 + 'betterdocs_faq_group_margin_woo',
1175 + [
1176 + 'label' => __( 'FAQ Group Margin (PX)', 'betterdocs' ),
1177 + 'section' => 'betterdocs_faq_section',
1178 + 'settings' => 'betterdocs_faq_group_margin_woo',
1179 + 'priority' => 679,
1180 + 'input_fields' => [
1181 + 'input1' => __( 'top', 'betterdocs' ),
1182 + 'input2' => __( 'right', 'betterdocs' ),
1183 + 'input3' => __( 'bottom', 'betterdocs' ),
1184 + 'input4' => __( 'left', 'betterdocs' )
1185 + ],
1186 + 'defaults' => [
1187 + 'input1' => 0,
1188 + 'input2' => 0,
1189 + 'input3' => 20,
1190 + 'input4' => 0
1191 + ]
1192 + ]
1193 + )
1194 + );
1195 + }
1196 +
1197 + public function faq_category_title_color_layout_2() {
1198 + $this->customizer->add_setting(
1199 + 'betterdocs_faq_category_title_color_layout_2',
1200 + [
1201 + 'default' => $this->defaults['betterdocs_faq_category_title_color_layout_2'],
1202 + 'capability' => 'edit_theme_options',
1203 + 'transport' => 'postMessage',
1204 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1205 + ]
1206 + );
1207 +
1208 + $this->customizer->add_control(
1209 + new AlphaColorControl(
1210 + $this->customizer,
1211 + 'betterdocs_faq_category_title_color_layout_2',
1212 + [
1213 + 'label' => __( 'Group Title Color', 'betterdocs' ),
1214 + 'section' => 'betterdocs_faq_section',
1215 + 'priority' => 642,
1216 + 'settings' => 'betterdocs_faq_category_title_color_layout_2'
1217 + ]
1218 + )
1219 + );
1220 + }
1221 +
1222 + public function faq_category_name_font_size_layout_2() {
1223 + $this->customizer->add_setting(
1224 + 'betterdocs_faq_category_name_font_size_layout_2',
1225 + [
1226 + 'default' => $this->defaults['betterdocs_faq_category_name_font_size_layout_2'],
1227 + 'capability' => 'edit_theme_options',
1228 + 'transport' => 'postMessage',
1229 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1230 +
1231 + ]
1232 + );
1233 +
1234 + $this->customizer->add_control(
1235 + new RangeValueControl(
1236 + $this->customizer,
1237 + 'betterdocs_faq_category_name_font_size_layout_2',
1238 + [
1239 + 'type' => 'betterdocs-range-value',
1240 + 'section' => 'betterdocs_faq_section',
1241 + 'settings' => 'betterdocs_faq_category_name_font_size_layout_2',
1242 + 'label' => __( 'Group Title Font Size', 'betterdocs' ),
1243 + 'priority' => 643,
1244 + 'input_attrs' => [
1245 + 'class' => '',
1246 + 'min' => 0,
1247 + 'max' => 50,
1248 + 'step' => 1,
1249 + 'suffix' => 'px' // optional suffix
1250 + ]
1251 + ]
1252 + )
1253 + );
1254 + }
1255 +
1256 + public function faq_category_name_padding_layout_2() {
1257 + $this->customizer->add_setting(
1258 + 'betterdocs_faq_category_name_padding_layout_2',
1259 + [
1260 + 'default' => $this->defaults['betterdocs_faq_category_name_padding_layout_2'],
1261 + 'transport' => 'postMessage',
1262 + 'capability' => 'edit_theme_options'
1263 + ]
1264 + );
1265 +
1266 + $this->customizer->add_control(
1267 + new MultiDimensionControl(
1268 + $this->customizer,
1269 + 'betterdocs_faq_category_name_padding_layout_2',
1270 + [
1271 + 'label' => __( 'Group Title Padding (PX)', 'betterdocs' ),
1272 + 'section' => 'betterdocs_faq_section',
1273 + 'settings' => 'betterdocs_faq_category_name_padding_layout_2',
1274 + 'priority' => 644,
1275 + 'input_fields' => [
1276 + 'input1' => __( 'top', 'betterdocs' ),
1277 + 'input2' => __( 'right', 'betterdocs' ),
1278 + 'input3' => __( 'bottom', 'betterdocs' ),
1279 + 'input4' => __( 'left', 'betterdocs' )
1280 + ],
1281 + 'defaults' => [
1282 + 'input1' => 20,
1283 + 'input2' => 20,
1284 + 'input3' => 20,
1285 + 'input4' => 20
1286 + ]
1287 + ]
1288 + )
1289 + );
1290 + }
1291 +
1292 + public function faq_list_color_layout_2() {
1293 + $this->customizer->add_setting(
1294 + 'betterdocs_faq_list_color_layout_2',
1295 + [
1296 + 'default' => $this->defaults['betterdocs_faq_list_color_layout_2'],
1297 + 'capability' => 'edit_theme_options',
1298 + 'transport' => 'postMessage',
1299 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1300 + ]
1301 + );
1302 +
1303 + $this->customizer->add_control(
1304 + new AlphaColorControl(
1305 + $this->customizer,
1306 + 'betterdocs_faq_list_color_layout_2',
1307 + [
1308 + 'label' => __( 'FAQ List Color', 'betterdocs' ),
1309 + 'section' => 'betterdocs_faq_section',
1310 + 'settings' => 'betterdocs_faq_list_color_layout_2',
1311 + 'priority' => 645
1312 + ]
1313 + )
1314 + );
1315 + }
1316 +
1317 + public function faq_list_background_color_layout_2() {
1318 + $this->customizer->add_setting(
1319 + 'betterdocs_faq_list_background_color_layout_2',
1320 + [
1321 + 'default' => $this->defaults['betterdocs_faq_list_background_color_layout_2'],
1322 + 'capability' => 'edit_theme_options',
1323 + 'transport' => 'postMessage',
1324 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1325 + ]
1326 + );
1327 +
1328 + $this->customizer->add_control(
1329 + new AlphaColorControl(
1330 + $this->customizer,
1331 + 'betterdocs_faq_list_background_color_layout_2',
1332 + [
1333 + 'label' => __( 'FAQ List Background Color', 'betterdocs' ),
1334 + 'section' => 'betterdocs_faq_section',
1335 + 'settings' => 'betterdocs_faq_list_background_color_layout_2',
1336 + 'priority' => 648
1337 + ]
1338 + )
1339 + );
1340 + }
1341 +
1342 + public function faq_list_content_background_color_layout_2() {
1343 + $this->customizer->add_setting(
1344 + 'betterdocs_faq_list_content_background_color_layout_2',
1345 + [
1346 + 'default' => $this->defaults['betterdocs_faq_list_content_background_color_layout_2'],
1347 + 'capability' => 'edit_theme_options',
1348 + 'transport' => 'postMessage',
1349 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1350 + ]
1351 + );
1352 +
1353 + $this->customizer->add_control(
1354 + new AlphaColorControl(
1355 + $this->customizer,
1356 + 'betterdocs_faq_list_content_background_color_layout_2',
1357 + [
1358 + 'label' => __( 'FAQ List Content Background Color', 'betterdocs' ),
1359 + 'section' => 'betterdocs_faq_section',
1360 + 'settings' => 'betterdocs_faq_list_content_background_color_layout_2',
1361 + 'priority' => 649
1362 + ]
1363 + )
1364 + );
1365 + }
1366 +
1367 + public function faq_list_content_color_layout_2() {
1368 + $this->customizer->add_setting(
1369 + 'betterdocs_faq_list_content_color_layout_2',
1370 + [
1371 + 'default' => $this->defaults['betterdocs_faq_list_content_color_layout_2'],
1372 + 'capability' => 'edit_theme_options',
1373 + 'transport' => 'postMessage',
1374 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1375 + ]
1376 + );
1377 +
1378 + $this->customizer->add_control(
1379 + new AlphaColorControl(
1380 + $this->customizer,
1381 + 'betterdocs_faq_list_content_color_layout_2',
1382 + [
1383 + 'label' => __( 'FAQ List Content Color', 'betterdocs' ),
1384 + 'section' => 'betterdocs_faq_section',
1385 + 'settings' => 'betterdocs_faq_list_content_color_layout_2',
1386 + 'priority' => 650
1387 + ]
1388 + )
1389 + );
1390 + }
1391 +
1392 + public function faq_list_content_font_size_layout_2() {
1393 + $this->customizer->add_setting(
1394 + 'betterdocs_faq_list_content_font_size_layout_2',
1395 + [
1396 + 'default' => $this->defaults['betterdocs_faq_list_content_font_size_layout_2'],
1397 + 'capability' => 'edit_theme_options',
1398 + 'transport' => 'postMessage',
1399 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1400 + ]
1401 + );
1402 +
1403 + $this->customizer->add_control(
1404 + new RangeValueControl(
1405 + $this->customizer,
1406 + 'betterdocs_faq_list_content_font_size_layout_2',
1407 + [
1408 + 'type' => 'betterdocs-range-value',
1409 + 'section' => 'betterdocs_faq_section',
1410 + 'settings' => 'betterdocs_faq_list_content_font_size_layout_2',
1411 + 'label' => __( 'FAQ List Content Font Size', 'betterdocs' ),
1412 + 'priority' => 651,
1413 + 'input_attrs' => [
1414 + 'class' => '',
1415 + 'min' => 0,
1416 + 'max' => 50,
1417 + 'step' => 1,
1418 + 'suffix' => 'px' //optional suffix
1419 + ]
1420 + ]
1421 + )
1422 + );
1423 + }
1424 +
1425 + public function faq_list_font_size_layout_2() {
1426 + $this->customizer->add_setting(
1427 + 'betterdocs_faq_list_font_size_layout_2',
1428 + [
1429 + 'default' => $this->defaults['betterdocs_faq_list_font_size_layout_2'],
1430 + 'capability' => 'edit_theme_options',
1431 + 'transport' => 'postMessage',
1432 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1433 +
1434 + ]
1435 + );
1436 +
1437 + $this->customizer->add_control(
1438 + new RangeValueControl(
1439 + $this->customizer,
1440 + 'betterdocs_faq_list_font_size_layout_2',
1441 + [
1442 + 'type' => 'betterdocs-range-value',
1443 + 'section' => 'betterdocs_faq_section',
1444 + 'settings' => 'betterdocs_faq_list_font_size_layout_2',
1445 + 'label' => __( 'FAQ List Font Size', 'betterdocs' ),
1446 + 'priority' => 646,
1447 + 'input_attrs' => [
1448 + 'class' => '',
1449 + 'min' => 0,
1450 + 'max' => 50,
1451 + 'step' => 1,
1452 + 'suffix' => 'px'
1453 + // optional suffix
1454 + ]
1455 + ]
1456 + )
1457 + );
1458 + }
1459 +
1460 + public function faq_list_padding_layout_2() {
1461 + $this->customizer->add_setting(
1462 + 'betterdocs_faq_list_padding_layout_2',
1463 + [
1464 + 'default' => $this->defaults['betterdocs_faq_list_padding_layout_2'],
1465 + 'transport' => 'postMessage',
1466 + 'capability' => 'edit_theme_options'
1467 + ]
1468 + );
1469 +
1470 + $this->customizer->add_control(
1471 + new MultiDimensionControl(
1472 + $this->customizer,
1473 + 'betterdocs_faq_list_padding_layout_2',
1474 + [
1475 + 'label' => __( 'FAQ List Padding (PX)', 'betterdocs' ),
1476 + 'section' => 'betterdocs_faq_section',
1477 + 'settings' => 'betterdocs_faq_list_padding_layout_2',
1478 + 'priority' => 647,
1479 + 'input_fields' => [
1480 + 'input1' => __( 'top', 'betterdocs' ),
1481 + 'input2' => __( 'right', 'betterdocs' ),
1482 + 'input3' => __( 'bottom', 'betterdocs' ),
1483 + 'input4' => __( 'left', 'betterdocs' )
1484 + ],
1485 + 'defaults' => [
1486 + 'input1' => 20,
1487 + 'input2' => 20,
1488 + 'input3' => 20,
1489 + 'input4' => 20
1490 + ]
1491 + ]
1492 + )
1493 + );
1494 + }
1495 +
1496 + public function faq_category_title_color_layout_3() {
1497 + $this->customizer->add_setting(
1498 + 'betterdocs_faq_category_title_color_layout_3',
1499 + [
1500 + 'default' => $this->defaults['betterdocs_faq_category_title_color_layout_3'],
1501 + 'capability' => 'edit_theme_options',
1502 + 'transport' => 'postMessage',
1503 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1504 + ]
1505 + );
1506 +
1507 + $this->customizer->add_control(
1508 + new AlphaColorControl(
1509 + $this->customizer,
1510 + 'betterdocs_faq_category_title_color_layout_3',
1511 + [
1512 + 'label' => __( 'Group Title Color', 'betterdocs' ),
1513 + 'section' => 'betterdocs_faq_section',
1514 + 'priority' => 652,
1515 + 'settings' => 'betterdocs_faq_category_title_color_layout_3'
1516 + ]
1517 + )
1518 + );
1519 + }
1520 +
1521 + public function faq_category_name_font_size_layout_3() {
1522 + $this->customizer->add_setting(
1523 + 'betterdocs_faq_category_name_font_size_layout_3',
1524 + [
1525 + 'default' => $this->defaults['betterdocs_faq_category_name_font_size_layout_3'],
1526 + 'capability' => 'edit_theme_options',
1527 + 'transport' => 'postMessage',
1528 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1529 +
1530 + ]
1531 + );
1532 +
1533 + $this->customizer->add_control(
1534 + new RangeValueControl(
1535 + $this->customizer,
1536 + 'betterdocs_faq_category_name_font_size_layout_3',
1537 + [
1538 + 'type' => 'betterdocs-range-value',
1539 + 'section' => 'betterdocs_faq_section',
1540 + 'settings' => 'betterdocs_faq_category_name_font_size_layout_3',
1541 + 'label' => __( 'Group Title Font Size', 'betterdocs' ),
1542 + 'priority' => 653,
1543 + 'input_attrs' => [
1544 + 'class' => '',
1545 + 'min' => 0,
1546 + 'max' => 50,
1547 + 'step' => 1,
1548 + 'suffix' => 'px' // optional suffix
1549 + ]
1550 + ]
1551 + )
1552 + );
1553 + }
1554 +
1555 + public function faq_category_name_padding_layout_3() {
1556 + $this->customizer->add_setting(
1557 + 'betterdocs_faq_category_name_padding_layout_3',
1558 + [
1559 + 'default' => $this->defaults['betterdocs_faq_category_name_padding_layout_3'],
1560 + 'transport' => 'postMessage',
1561 + 'capability' => 'edit_theme_options'
1562 + ]
1563 + );
1564 +
1565 + $this->customizer->add_control(
1566 + new MultiDimensionControl(
1567 + $this->customizer,
1568 + 'betterdocs_faq_category_name_padding_layout_3',
1569 + [
1570 + 'label' => __( 'Group Title Padding (PX)', 'betterdocs' ),
1571 + 'section' => 'betterdocs_faq_section',
1572 + 'settings' => 'betterdocs_faq_category_name_padding_layout_3',
1573 + 'priority' => 654,
1574 + 'input_fields' => [
1575 + 'input1' => __( 'top', 'betterdocs' ),
1576 + 'input2' => __( 'right', 'betterdocs' ),
1577 + 'input3' => __( 'bottom', 'betterdocs' ),
1578 + 'input4' => __( 'left', 'betterdocs' )
1579 + ],
1580 + 'defaults' => [
1581 + 'input1' => 20,
1582 + 'input2' => 20,
1583 + 'input3' => 20,
1584 + 'input4' => 20
1585 + ]
1586 + ]
1587 + )
1588 + );
1589 + }
1590 +
1591 + public function faq_list_color_layout_3() {
1592 + $this->customizer->add_setting(
1593 + 'betterdocs_faq_list_color_layout_3',
1594 + [
1595 + 'default' => $this->defaults['betterdocs_faq_list_color_layout_3'],
1596 + 'capability' => 'edit_theme_options',
1597 + 'transport' => 'postMessage',
1598 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1599 + ]
1600 + );
1601 +
1602 + $this->customizer->add_control(
1603 + new AlphaColorControl(
1604 + $this->customizer,
1605 + 'betterdocs_faq_list_color_layout_3',
1606 + [
1607 + 'label' => __( 'FAQ List Color', 'betterdocs' ),
1608 + 'section' => 'betterdocs_faq_section',
1609 + 'settings' => 'betterdocs_faq_list_color_layout_3',
1610 + 'priority' => 655
1611 + ]
1612 + )
1613 + );
1614 + }
1615 +
1616 + public function faq_list_background_color_layout_3() {
1617 + $this->customizer->add_setting(
1618 + 'betterdocs_faq_list_background_color_layout_3',
1619 + [
1620 + 'default' => $this->defaults['betterdocs_faq_list_background_color_layout_3'],
1621 + 'capability' => 'edit_theme_options',
1622 + 'transport' => 'postMessage',
1623 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1624 + ]
1625 + );
1626 +
1627 + $this->customizer->add_control(
1628 + new AlphaColorControl(
1629 + $this->customizer,
1630 + 'betterdocs_faq_list_background_color_layout_3',
1631 + [
1632 + 'label' => __( 'FAQ List Background Color', 'betterdocs' ),
1633 + 'section' => 'betterdocs_faq_section',
1634 + 'settings' => 'betterdocs_faq_list_background_color_layout_3',
1635 + 'priority' => 658
1636 + ]
1637 + )
1638 + );
1639 + }
1640 +
1641 + public function faq_list_content_background_color_layout_3() {
1642 + $this->customizer->add_setting(
1643 + 'betterdocs_faq_list_content_background_color_layout_3',
1644 + [
1645 + 'default' => $this->defaults['betterdocs_faq_list_content_background_color_layout_3'],
1646 + 'capability' => 'edit_theme_options',
1647 + 'transport' => 'postMessage',
1648 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1649 + ]
1650 + );
1651 +
1652 + $this->customizer->add_control(
1653 + new AlphaColorControl(
1654 + $this->customizer,
1655 + 'betterdocs_faq_list_content_background_color_layout_3',
1656 + [
1657 + 'label' => __( 'FAQ List Content Background Color', 'betterdocs' ),
1658 + 'section' => 'betterdocs_faq_section',
1659 + 'settings' => 'betterdocs_faq_list_content_background_color_layout_3',
1660 + 'priority' => 659
1661 + ]
1662 + )
1663 + );
1664 + }
1665 +
1666 + public function faq_list_content_color_layout_3() {
1667 + $this->customizer->add_setting(
1668 + 'betterdocs_faq_list_content_color_layout_3',
1669 + [
1670 + 'default' => $this->defaults['betterdocs_faq_list_content_color_layout_3'],
1671 + 'capability' => 'edit_theme_options',
1672 + 'transport' => 'postMessage',
1673 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1674 + ]
1675 + );
1676 +
1677 + $this->customizer->add_control(
1678 + new AlphaColorControl(
1679 + $this->customizer,
1680 + 'betterdocs_faq_list_content_color_layout_3',
1681 + [
1682 + 'label' => __( 'FAQ List Content Color', 'betterdocs' ),
1683 + 'section' => 'betterdocs_faq_section',
1684 + 'settings' => 'betterdocs_faq_list_content_color_layout_3',
1685 + 'priority' => 660
1686 + ]
1687 + )
1688 + );
1689 + }
1690 +
1691 + public function faq_list_content_font_size_layout_3() {
1692 + $this->customizer->add_setting(
1693 + 'betterdocs_faq_list_content_font_size_layout_3',
1694 + [
1695 + 'default' => $this->defaults['betterdocs_faq_list_content_font_size_layout_3'],
1696 + 'capability' => 'edit_theme_options',
1697 + 'transport' => 'postMessage',
1698 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1699 +
1700 + ]
1701 + );
1702 +
1703 + $this->customizer->add_control(
1704 + new RangeValueControl(
1705 + $this->customizer,
1706 + 'betterdocs_faq_list_content_font_size_layout_3',
1707 + [
1708 + 'type' => 'betterdocs-range-value',
1709 + 'section' => 'betterdocs_faq_section',
1710 + 'settings' => 'betterdocs_faq_list_content_font_size_layout_3',
1711 + 'label' => __( 'FAQ List Content Font Size', 'betterdocs' ),
1712 + 'priority' => 661,
1713 + 'input_attrs' => [
1714 + 'class' => '',
1715 + 'min' => 0,
1716 + 'max' => 50,
1717 + 'step' => 1,
1718 + 'suffix' => 'px' //optional suffix
1719 + ]
1720 + ]
1721 + )
1722 + );
1723 + }
1724 +
1725 + public function faq_list_font_size_layout_3() {
1726 + $this->customizer->add_setting(
1727 + 'betterdocs_faq_list_font_size_layout_3',
1728 + [
1729 + 'default' => $this->defaults['betterdocs_faq_list_font_size_layout_3'],
1730 + 'capability' => 'edit_theme_options',
1731 + 'transport' => 'postMessage',
1732 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1733 +
1734 + ]
1735 + );
1736 +
1737 + $this->customizer->add_control(
1738 + new RangeValueControl(
1739 + $this->customizer,
1740 + 'betterdocs_faq_list_font_size_layout_3',
1741 + [
1742 + 'type' => 'betterdocs-range-value',
1743 + 'section' => 'betterdocs_faq_section',
1744 + 'settings' => 'betterdocs_faq_list_font_size_layout_3',
1745 + 'label' => __( 'FAQ List Font Size', 'betterdocs' ),
1746 + 'priority' => 656,
1747 + 'input_attrs' => [
1748 + 'class' => '',
1749 + 'min' => 0,
1750 + 'max' => 50,
1751 + 'step' => 1,
1752 + 'suffix' => 'px' // optional suffix
1753 + ]
1754 + ]
1755 + )
1756 + );
1757 + }
1758 +
1759 + public function faq_list_padding_layout_3() {
1760 + $this->customizer->add_setting(
1761 + 'betterdocs_faq_list_padding_layout_3',
1762 + [
1763 + 'default' => $this->defaults['betterdocs_faq_list_padding_layout_3'],
1764 + 'transport' => 'postMessage',
1765 + 'capability' => 'edit_theme_options'
1766 + ]
1767 + );
1768 +
1769 + $this->customizer->add_control(
1770 + new MultiDimensionControl(
1771 + $this->customizer,
1772 + 'betterdocs_faq_list_padding_layout_3',
1773 + [
1774 + 'label' => __( 'FAQ List Padding (PX)', 'betterdocs' ),
1775 + 'section' => 'betterdocs_faq_section',
1776 + 'settings' => 'betterdocs_faq_list_padding_layout_3',
1777 + 'priority' => 657,
1778 + 'input_fields' => [
1779 + 'input1' => __( 'top', 'betterdocs' ),
1780 + 'input2' => __( 'right', 'betterdocs' ),
1781 + 'input3' => __( 'bottom', 'betterdocs' ),
1782 + 'input4' => __( 'left', 'betterdocs' )
1783 + ],
1784 + 'defaults' => [
1785 + 'input1' => 24,
1786 + 'input2' => 14,
1787 + 'input3' => 24,
1788 + 'input4' => 14
1789 + ]
1790 + ]
1791 + )
1792 + );
1793 + }
1794 +
1795 + public function faq_category_title_color_layout_4() {
1796 + $this->customizer->add_setting(
1797 + 'betterdocs_faq_category_title_color_layout_4',
1798 + [
1799 + 'default' => $this->defaults['betterdocs_faq_category_title_color_layout_4'],
1800 + 'capability' => 'edit_theme_options',
1801 + 'transport' => 'postMessage',
1802 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1803 + ]
1804 + );
1805 +
1806 + $this->customizer->add_control(
1807 + new AlphaColorControl(
1808 + $this->customizer,
1809 + 'betterdocs_faq_category_title_color_layout_4',
1810 + [
1811 + 'label' => __( 'Group Title Color', 'betterdocs' ),
1812 + 'section' => 'betterdocs_faq_section',
1813 + 'priority' => 662,
1814 + 'settings' => 'betterdocs_faq_category_title_color_layout_4'
1815 + ]
1816 + )
1817 + );
1818 + }
1819 +
1820 + public function faq_category_title_background_color_layout_4() {
1821 + $this->customizer->add_setting(
1822 + 'betterdocs_faq_category_active_title_background_color_layout_4',
1823 + [
1824 + 'default' => $this->defaults['betterdocs_faq_category_active_title_background_color_layout_4'],
1825 + 'capability' => 'edit_theme_options',
1826 + 'transport' => 'postMessage',
1827 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1828 + ]
1829 + );
1830 +
1831 + $this->customizer->add_control(
1832 + new AlphaColorControl(
1833 + $this->customizer,
1834 + 'betterdocs_faq_category_active_title_background_color_layout_4',
1835 + [
1836 + 'label' => __( 'Group Title Active Background Color', 'betterdocs' ),
1837 + 'section' => 'betterdocs_faq_section',
1838 + 'priority' => 662,
1839 + 'settings' => 'betterdocs_faq_category_active_title_background_color_layout_4'
1840 + ]
1841 + )
1842 + );
1843 + }
1844 +
1845 + public function faq_category_title_active_color_layout_4() {
1846 + $this->customizer->add_setting(
1847 + 'betterdocs_faq_category_title_active_color_layout_4',
1848 + [
1849 + 'default' => $this->defaults['betterdocs_faq_category_title_active_color_layout_4'],
1850 + 'capability' => 'edit_theme_options',
1851 + 'transport' => 'postMessage',
1852 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1853 + ]
1854 + );
1855 +
1856 + $this->customizer->add_control(
1857 + new AlphaColorControl(
1858 + $this->customizer,
1859 + 'betterdocs_faq_category_title_active_color_layout_4',
1860 + [
1861 + 'label' => __( 'Group Active Title Color', 'betterdocs' ),
1862 + 'section' => 'betterdocs_faq_section',
1863 + 'priority' => 662,
1864 + 'settings' => 'betterdocs_faq_category_title_active_color_layout_4'
1865 + ]
1866 + )
1867 + );
1868 + }
1869 +
1870 + public function faq_category_name_font_size_layout_4() {
1871 + $this->customizer->add_setting(
1872 + 'betterdocs_faq_category_name_font_size_layout_4',
1873 + [
1874 + 'default' => $this->defaults['betterdocs_faq_category_name_font_size_layout_4'],
1875 + 'capability' => 'edit_theme_options',
1876 + 'transport' => 'postMessage',
1877 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1878 +
1879 + ]
1880 + );
1881 +
1882 + $this->customizer->add_control(
1883 + new RangeValueControl(
1884 + $this->customizer,
1885 + 'betterdocs_faq_category_name_font_size_layout_4',
1886 + [
1887 + 'type' => 'betterdocs-range-value',
1888 + 'section' => 'betterdocs_faq_section',
1889 + 'settings' => 'betterdocs_faq_category_name_font_size_layout_4',
1890 + 'label' => __( 'Group Title Font Size', 'betterdocs' ),
1891 + 'priority' => 663,
1892 + 'input_attrs' => [
1893 + 'class' => '',
1894 + 'min' => 0,
1895 + 'max' => 50,
1896 + 'step' => 1,
1897 + 'suffix' => 'px' // optional suffix
1898 + ]
1899 + ]
1900 + )
1901 + );
1902 + }
1903 +
1904 + public function faq_category_name_padding_layout_4() {
1905 + $this->customizer->add_setting(
1906 + 'betterdocs_faq_category_name_padding_layout_4',
1907 + [
1908 + 'default' => $this->defaults['betterdocs_faq_category_name_padding_layout_4'],
1909 + 'transport' => 'postMessage',
1910 + 'capability' => 'edit_theme_options'
1911 + ]
1912 + );
1913 +
1914 + $this->customizer->add_control(
1915 + new MultiDimensionControl(
1916 + $this->customizer,
1917 + 'betterdocs_faq_category_name_padding_layout_4',
1918 + [
1919 + 'label' => __( 'Group Title Padding (PX)', 'betterdocs' ),
1920 + 'section' => 'betterdocs_faq_section',
1921 + 'settings' => 'betterdocs_faq_category_name_padding_layout_3',
1922 + 'priority' => 664,
1923 + 'input_fields' => [
1924 + 'input1' => __( 'top', 'betterdocs' ),
1925 + 'input2' => __( 'right', 'betterdocs' ),
1926 + 'input3' => __( 'bottom', 'betterdocs' ),
1927 + 'input4' => __( 'left', 'betterdocs' )
1928 + ],
1929 + 'defaults' => [
1930 + 'input1' => 20,
1931 + 'input2' => 20,
1932 + 'input3' => 20,
1933 + 'input4' => 20
1934 + ]
1935 + ]
1936 + )
1937 + );
1938 + }
1939 +
1940 + public function faq_list_color_layout_4() {
1941 + $this->customizer->add_setting(
1942 + 'betterdocs_faq_list_color_layout_4',
1943 + [
1944 + 'default' => $this->defaults['betterdocs_faq_list_color_layout_4'],
1945 + 'capability' => 'edit_theme_options',
1946 + 'transport' => 'postMessage',
1947 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1948 + ]
1949 + );
1950 +
1951 + $this->customizer->add_control(
1952 + new AlphaColorControl(
1953 + $this->customizer,
1954 + 'betterdocs_faq_list_color_layout_4',
1955 + [
1956 + 'label' => __( 'FAQ List Color', 'betterdocs' ),
1957 + 'section' => 'betterdocs_faq_section',
1958 + 'settings' => 'betterdocs_faq_list_color_layout_4',
1959 + 'priority' => 665
1960 + ]
1961 + )
1962 + );
1963 + }
1964 +
1965 + public function faq_list_background_color_layout_4() {
1966 + $this->customizer->add_setting(
1967 + 'betterdocs_faq_list_background_color_layout_4',
1968 + [
1969 + 'default' => $this->defaults['betterdocs_faq_list_background_color_layout_4'],
1970 + 'capability' => 'edit_theme_options',
1971 + 'transport' => 'postMessage',
1972 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1973 + ]
1974 + );
1975 +
1976 + $this->customizer->add_control(
1977 + new AlphaColorControl(
1978 + $this->customizer,
1979 + 'betterdocs_faq_list_background_color_layout_4',
1980 + [
1981 + 'label' => __( 'FAQ List Background Color', 'betterdocs' ),
1982 + 'section' => 'betterdocs_faq_section',
1983 + 'settings' => 'betterdocs_faq_list_background_color_layout_4',
1984 + 'priority' => 668
1985 + ]
1986 + )
1987 + );
1988 + }
1989 +
1990 + public function faq_list_content_background_color_layout_4() {
1991 + $this->customizer->add_setting(
1992 + 'betterdocs_faq_list_content_background_color_layout_4',
1993 + [
1994 + 'default' => $this->defaults['betterdocs_faq_list_content_background_color_layout_4'],
1995 + 'capability' => 'edit_theme_options',
1996 + 'transport' => 'postMessage',
1997 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1998 + ]
1999 + );
2000 +
2001 + $this->customizer->add_control(
2002 + new AlphaColorControl(
2003 + $this->customizer,
2004 + 'betterdocs_faq_list_content_background_color_layout_4',
2005 + [
2006 + 'label' => __( 'FAQ List Content Background Color', 'betterdocs' ),
2007 + 'section' => 'betterdocs_faq_section',
2008 + 'settings' => 'betterdocs_faq_list_content_background_color_layout_4',
2009 + 'priority' => 669
2010 + ]
2011 + )
2012 + );
2013 + }
2014 +
2015 + public function faq_list_content_color_layout_4() {
2016 + $this->customizer->add_setting(
2017 + 'betterdocs_faq_list_content_color_layout_4',
2018 + [
2019 + 'default' => $this->defaults['betterdocs_faq_list_content_color_layout_4'],
2020 + 'capability' => 'edit_theme_options',
2021 + 'transport' => 'postMessage',
2022 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2023 + ]
2024 + );
2025 +
2026 + $this->customizer->add_control(
2027 + new AlphaColorControl(
2028 + $this->customizer,
2029 + 'betterdocs_faq_list_content_color_layout_4',
2030 + [
2031 + 'label' => __( 'FAQ List Content Color', 'betterdocs' ),
2032 + 'section' => 'betterdocs_faq_section',
2033 + 'settings' => 'betterdocs_faq_list_content_color_layout_4',
2034 + 'priority' => 670
2035 + ]
2036 + )
2037 + );
2038 + }
2039 +
2040 + public function faq_list_content_font_size_layout_4() {
2041 + $this->customizer->add_setting(
2042 + 'betterdocs_faq_list_content_font_size_layout_4',
2043 + [
2044 + 'default' => $this->defaults['betterdocs_faq_list_content_font_size_layout_4'],
2045 + 'capability' => 'edit_theme_options',
2046 + 'transport' => 'postMessage',
2047 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2048 +
2049 + ]
2050 + );
2051 +
2052 + $this->customizer->add_control(
2053 + new RangeValueControl(
2054 + $this->customizer,
2055 + 'betterdocs_faq_list_content_font_size_layout_4',
2056 + [
2057 + 'type' => 'betterdocs-range-value',
2058 + 'section' => 'betterdocs_faq_section',
2059 + 'settings' => 'betterdocs_faq_list_content_font_size_layout_4',
2060 + 'label' => __( 'FAQ List Content Font Size', 'betterdocs' ),
2061 + 'priority' => 671,
2062 + 'input_attrs' => [
2063 + 'class' => '',
2064 + 'min' => 0,
2065 + 'max' => 50,
2066 + 'step' => 1,
2067 + 'suffix' => 'px' //optional suffix
2068 + ]
2069 + ]
2070 + )
2071 + );
2072 + }
2073 +
2074 + public function faq_list_font_size_layout_4() {
2075 + $this->customizer->add_setting(
2076 + 'betterdocs_faq_list_font_size_layout_4',
2077 + [
2078 + 'default' => $this->defaults['betterdocs_faq_list_font_size_layout_4'],
2079 + 'capability' => 'edit_theme_options',
2080 + 'transport' => 'postMessage',
2081 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2082 +
2083 + ]
2084 + );
2085 +
2086 + $this->customizer->add_control(
2087 + new RangeValueControl(
2088 + $this->customizer,
2089 + 'betterdocs_faq_list_font_size_layout_4',
2090 + [
2091 + 'type' => 'betterdocs-range-value',
2092 + 'section' => 'betterdocs_faq_section',
2093 + 'settings' => 'betterdocs_faq_list_font_size_layout_4',
2094 + 'label' => __( 'FAQ List Font Size', 'betterdocs' ),
2095 + 'priority' => 666,
2096 + 'input_attrs' => [
2097 + 'class' => '',
2098 + 'min' => 0,
2099 + 'max' => 50,
2100 + 'step' => 1,
2101 + 'suffix' => 'px' // optional suffix
2102 + ]
2103 + ]
2104 + )
2105 + );
2106 + }
2107 +
2108 + public function faq_list_padding_layout_4() {
2109 + $this->customizer->add_setting(
2110 + 'betterdocs_faq_list_padding_layout_4',
2111 + [
2112 + 'default' => $this->defaults['betterdocs_faq_list_padding_layout_4'],
2113 + 'transport' => 'postMessage',
2114 + 'capability' => 'edit_theme_options'
2115 + ]
2116 + );
2117 +
2118 + $this->customizer->add_control(
2119 + new MultiDimensionControl(
2120 + $this->customizer,
2121 + 'betterdocs_faq_list_padding_layout_4',
2122 + [
2123 + 'label' => __( 'FAQ List Padding (PX)', 'betterdocs' ),
2124 + 'section' => 'betterdocs_faq_section',
2125 + 'settings' => 'betterdocs_faq_list_padding_layout_3',
2126 + 'priority' => 667,
2127 + 'input_fields' => [
2128 + 'input1' => __( 'top', 'betterdocs' ),
2129 + 'input2' => __( 'right', 'betterdocs' ),
2130 + 'input3' => __( 'bottom', 'betterdocs' ),
2131 + 'input4' => __( 'left', 'betterdocs' )
2132 + ],
2133 + 'defaults' => [
2134 + 'input1' => 24,
2135 + 'input2' => 14,
2136 + 'input3' => 24,
2137 + 'input4' => 14
2138 + ]
2139 + ]
2140 + )
2141 + );
2142 + }
747 2143 }