PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.4
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.4
4.9.4 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 All 202 releases
← All changes | includes/Admin/Customizer/Sections/SingleDoc.php +12481 -3529 3.4.0 → 4.9.4 View file →
@@ -14,3972 +14,12924 @@
14 14 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\RadioImageControl;
15 15 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\RangeValueControl;
16 16
17 17 class SingleDoc extends Section {
18 - /**
19 - * Section Priority
20 - * @var int
21 - */
22 - protected $priority = 101;
18 + /**
19 + * Section Priority
20 + * @var int
21 + */
22 + protected $priority = 101;
23 23
24 - /**
25 - * Get the section id.
26 - * @return string
27 - */
28 - public function get_id() {
29 - return 'betterdocs_single_docs_settings';
30 - }
24 + /**
25 + * Get the section id.
26 + * @return string
27 + */
28 + public function get_id() {
29 + return 'betterdocs_single_docs_settings';
30 + }
31 31
32 - /**
33 - * Get the title of the section.
34 - * @return string
35 - */
36 - public function get_title() {
37 - return __( 'Single Doc', 'betterdocs' );
38 - }
32 + /**
33 + * Get the title of the section.
34 + * @return string
35 + */
36 + public function get_title() {
37 + return __( 'Single Doc', 'betterdocs' );
38 + }
39 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 - ] );
40 + public function single_layout_select() {
46 41
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 - }
42 + $encyclopeia_suorce = betterdocs()->settings->get( 'encyclopedia_source', 'docs' );
95 43
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 - ] );
44 + $this->customizer->add_setting(
45 + 'betterdocs_single_layout_select',
46 + [
47 + 'default' => $this->defaults['betterdocs_single_layout_select'],
48 + 'capability' => 'edit_theme_options',
49 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
50 + ]
51 + );
103 52
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 - }
53 + $choices = [
54 + 'layout-8' => [
55 + 'label' => __( 'Essence Layout', 'betterdocs' ),
56 + 'image' => $this->assets->icon( 'customizer/single/layout-8.png', true ),
57 + ],
58 + 'layout-9' => [
59 + 'label' => __( 'Rustic Layout', 'betterdocs' ),
60 + 'image' => $this->assets->icon( 'customizer/single/layout-9.png', true ),
61 + ],
62 + 'layout-10' => [
63 + 'label' => __( 'Slate Layout', 'betterdocs' ),
64 + 'image' => $this->assets->icon( 'customizer/single/layout-10.png', true ),
65 + ],
66 + 'layout-1' => [
67 + 'label' => __( 'Classic Layout', 'betterdocs' ),
68 + 'image' => $this->assets->icon( 'customizer/single/layout-1.png', true )
69 + ],
70 + 'layout-4' => [
71 + 'label' => __( 'Abstract Layout', 'betterdocs' ),
72 + 'image' => $this->assets->icon( 'customizer/single/layout-4.png', true ),
73 + 'pro' => false
74 + ],
75 + 'layout-5' => [
76 + 'label' => __( 'Modern Layout', 'betterdocs' ),
77 + 'image' => $this->assets->icon( 'customizer/single/layout-5.png', true ),
78 + 'pro' => false
79 + ],
80 + 'layout-2' => [
81 + 'label' => __( 'Minimalist Layout', 'betterdocs' ),
82 + 'image' => $this->assets->icon( 'customizer/single/layout-2.png', true ),
83 + 'pro' => true,
84 + 'url' => 'https://betterdocs.co/upgrade'
85 + ],
86 + 'layout-3' => [
87 + 'label' => __( 'Artisan Layout', 'betterdocs' ),
88 + 'image' => $this->assets->icon( 'customizer/single/layout-3.png', true ),
89 + 'pro' => true,
90 + 'url' => 'https://betterdocs.co/upgrade'
91 + ],
92 + 'layout-6' => [
93 + 'label' => __( 'Bohemian Layout', 'betterdocs' ),
94 + 'image' => $this->assets->icon( 'customizer/single/layout-6.png', true ),
95 + 'pro' => true,
96 + 'url' => 'https://betterdocs.co/upgrade'
97 + ],
98 + ];
117 99
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 - ] );
100 + if ( $encyclopeia_suorce == 'docs' ) {
101 + $choices['layout-7'] = [
102 + 'label' => __( 'Encyclopedia Layout', 'betterdocs' ),
103 + 'image' => $this->assets->icon( 'customizer/encyclopedia/layout-7.png', true ),
104 + 'pro' => true,
105 + 'url' => 'https://betterdocs.co/upgrade'
106 + ];
107 + }
124 108
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 - }
109 + $this->customizer->add_control(
110 + new RadioImageControl(
111 + $this->customizer,
112 + 'betterdocs_single_layout_select',
113 + [
114 + 'type' => 'betterdocs-radio-image',
115 + 'settings' => 'betterdocs_single_layout_select',
116 + 'section' => 'betterdocs_single_docs_settings',
117 + 'label' => __( 'Select Layout', 'betterdocs' ),
118 + 'priority' => 102,
119 + 'choices' => apply_filters( 'betterdocs_single_layout_select_choices', $choices )
120 + ]
121 + )
122 + );
123 + }
137 124
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']
125 + /**
126 + * Content area width for the single doc, mirroring the Docs Page pair.
127 + *
128 + * Only meaningful on the layouts whose content wrapper is actually capped
129 + * by the stylesheet — 1, 5, 6, 8, 9 and 10. Layouts 2, 3 and 4 are
130 + * full-bleed by design and have no width to constrain, so both controls are
131 + * hidden for them in customizer-condition.js (the codebase drives control
132 + * visibility from JS bound to the layout setting, not active_callback).
133 + */
134 + public function single_doc_content_area_width() {
135 + $this->customizer->add_setting(
136 + 'betterdocs_single_doc_content_width',
137 + apply_filters(
138 + 'betterdocs_single_doc_content_width',
139 + [
140 + 'default' => $this->defaults['betterdocs_single_doc_content_width'],
141 + 'capability' => 'edit_theme_options',
142 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
143 + ]
144 + )
145 + );
144 146
145 - ] );
147 + $this->customizer->add_control(
148 + new RangeValueControl(
149 + $this->customizer,
150 + 'betterdocs_single_doc_content_width',
151 + [
152 + 'type' => 'betterdocs-range-value',
153 + 'section' => 'betterdocs_single_docs_settings',
154 + 'settings' => 'betterdocs_single_doc_content_width',
155 + 'label' => __( 'Content Area Width', 'betterdocs' ),
156 + 'priority' => 103,
157 + 'input_attrs' => [
158 + 'class' => 'betterdocs-range-value',
159 + 'min' => 0,
160 + 'max' => 100,
161 + 'step' => 1,
162 + 'suffix' => '%' //optional suffix
163 + ]
164 + ]
165 + )
166 + );
167 + }
146 168
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 - }
169 + public function single_doc_content_area_max_width() {
170 + $this->customizer->add_setting(
171 + 'betterdocs_single_doc_content_max_width',
172 + apply_filters(
173 + 'betterdocs_single_doc_content_max_width',
174 + [
175 + 'default' => $this->defaults['betterdocs_single_doc_content_max_width'],
176 + 'capability' => 'edit_theme_options',
177 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
178 + ]
179 + )
180 + );
161 181
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']
182 + $this->customizer->add_control(
183 + new RangeValueControl(
184 + $this->customizer,
185 + 'betterdocs_single_doc_content_max_width',
186 + [
187 + 'type' => 'betterdocs-range-value',
188 + 'section' => 'betterdocs_single_docs_settings',
189 + 'settings' => 'betterdocs_single_doc_content_max_width',
190 + 'label' => __( 'Content Area Maximum Width', 'betterdocs' ),
191 + 'priority' => 103,
192 + 'input_attrs' => [
193 + 'class' => 'betterdocs-range-value',
194 + 'min' => 100,
195 + 'max' => 1600,
196 + 'step' => 1,
197 + 'suffix' => 'px' //optional suffix
198 + ]
199 + ]
200 + )
201 + );
202 + }
168 203
169 - ] );
204 + public function doc_single_content_area_bg_color() {
205 + $this->customizer->add_setting(
206 + 'betterdocs_doc_single_content_area_bg_color',
207 + [
208 + 'default' => $this->defaults['betterdocs_doc_single_content_area_bg_color'],
209 + 'capability' => 'edit_theme_options',
210 + 'transport' => 'postMessage',
211 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
212 + ]
213 + );
170 214
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 - }
215 + $this->customizer->add_control(
216 + new AlphaColorControl(
217 + $this->customizer,
218 + 'betterdocs_doc_single_content_area_bg_color',
219 + [
220 + 'label' => __( 'Content Area Background Color', 'betterdocs' ),
221 + 'section' => 'betterdocs_single_docs_settings',
222 + 'settings' => 'betterdocs_doc_single_content_area_bg_color',
223 + 'priority' => 103
224 + ]
225 + )
226 + );
227 + }
192 228
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 - ] );
229 + public function doc_single_content_area_bg_image() {
230 + $this->customizer->add_setting(
231 + 'betterdocs_doc_single_content_area_bg_image',
232 + [
233 + 'default' => $this->defaults['betterdocs_doc_single_content_area_bg_image'],
234 + 'capability' => 'edit_theme_options',
235 + 'transport' => 'postMessage'
236 + ]
237 + );
200 238
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 - }
239 + $this->customizer->add_control(
240 + new WP_Customize_Image_Control(
241 + $this->customizer,
242 + 'betterdocs_doc_single_content_area_bg_image',
243 + [
244 + 'label' => __( 'Background Image', 'betterdocs' ),
245 + 'section' => 'betterdocs_single_docs_settings',
246 + 'settings' => 'betterdocs_doc_single_content_area_bg_image',
247 + 'priority' => 103
248 + ]
249 + )
250 + );
251 + }
222 252
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']
253 + public function doc_single_content_bg_property() {
254 + $this->customizer->add_setting(
255 + 'betterdocs_doc_single_content_bg_property',
256 + [
257 + 'default' => $this->defaults['betterdocs_doc_single_content_bg_property'],
258 + 'capability' => 'edit_theme_options',
259 + 'transport' => 'postMessage',
260 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
229 261
230 - ] );
262 + ]
263 + );
231 264
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 - }
265 + $this->customizer->add_control(
266 + new TitleControl(
267 + $this->customizer,
268 + 'betterdocs_doc_single_content_bg_property',
269 + [
270 + 'type' => 'betterdocs-title',
271 + 'section' => 'betterdocs_single_docs_settings',
272 + 'settings' => 'betterdocs_doc_single_content_bg_property',
273 + 'priority' => 103,
274 + 'label' => __( 'Background Property', 'betterdocs' ),
275 + 'input_attrs' => [
276 + 'id' => 'betterdocs_doc_single_content_bg_property',
277 + 'class' => 'betterdocs-select'
278 + ]
279 + ]
280 + )
281 + );
282 + }
252 283
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'
284 + public function doc_single_content_bg_property_size() {
285 + $this->customizer->add_setting(
286 + 'betterdocs_doc_single_content_bg_property_size',
287 + [
288 + 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_size'],
289 + 'capability' => 'edit_theme_options',
290 + 'transport' => 'postMessage',
291 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
259 292
260 - ] );
293 + ]
294 + );
261 295
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 - }
296 + $this->customizer->add_control(
297 + new SelectControl(
298 + $this->customizer,
299 + 'betterdocs_doc_single_content_bg_property_size',
300 + [
301 + 'type' => 'betterdocs-select',
302 + 'section' => 'betterdocs_single_docs_settings',
303 + 'settings' => 'betterdocs_doc_single_content_bg_property_size',
304 + 'priority' => 103,
305 + 'label' => __( 'Size', 'betterdocs' ),
306 + 'input_attrs' => [
307 + 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
308 + ],
309 + 'choices' => [
310 + 'auto' => __( 'auto', 'betterdocs' ),
311 + 'length' => __( 'length', 'betterdocs' ),
312 + 'cover' => __( 'cover', 'betterdocs' ),
313 + 'contain' => __( 'contain', 'betterdocs' ),
314 + 'initial' => __( 'initial', 'betterdocs' ),
315 + 'inherit' => __( 'inherit', 'betterdocs' )
316 + ]
317 + ]
318 + )
319 + );
320 + }
286 321
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']
322 + public function doc_single_content_bg_property_repeat() {
323 + $this->customizer->add_setting(
324 + 'betterdocs_doc_single_content_bg_property_repeat',
325 + [
326 + 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_repeat'],
327 + 'capability' => 'edit_theme_options',
328 + 'transport' => 'postMessage',
329 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
330 + ]
331 + );
293 332
294 - ] );
333 + $this->customizer->add_control(
334 + new SelectControl(
335 + $this->customizer,
336 + 'betterdocs_doc_single_content_bg_property_repeat',
337 + [
338 + 'type' => 'betterdocs-select',
339 + 'section' => 'betterdocs_single_docs_settings',
340 + 'settings' => 'betterdocs_doc_single_content_bg_property_repeat',
341 + 'priority' => 103,
342 + 'label' => __( 'Repeat', 'betterdocs' ),
343 + 'input_attrs' => [
344 + 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
345 + ],
346 + 'choices' => [
347 + 'no-repeat' => __( 'no-repeat', 'betterdocs' ),
348 + 'initial' => __( 'initial', 'betterdocs' ),
349 + 'inherit' => __( 'inherit', 'betterdocs' ),
350 + 'repeat' => __( 'repeat', 'betterdocs' ),
351 + 'repeat-x' => __( 'repeat-x', 'betterdocs' ),
352 + 'repeat-y' => __( 'repeat-y', 'betterdocs' )
353 + ]
354 + ]
355 + )
356 + );
357 + }
295 358
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 - );
359 + public function doc_single_content_bg_property_attachment() {
360 + $this->customizer->add_setting(
361 + 'betterdocs_doc_single_content_bg_property_attachment',
362 + [
363 + 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_attachment'],
364 + 'capability' => 'edit_theme_options',
365 + 'transport' => 'postMessage',
366 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
309 367
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 - ] );
368 + ]
369 + );
316 370
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 - );
371 + $this->customizer->add_control(
372 + new SelectControl(
373 + $this->customizer,
374 + 'betterdocs_doc_single_content_bg_property_attachment',
375 + [
376 + 'type' => 'betterdocs-select',
377 + 'section' => 'betterdocs_single_docs_settings',
378 + 'settings' => 'betterdocs_doc_single_content_bg_property_attachment',
379 + 'priority' => 103,
380 + 'label' => __( 'Attachment', 'betterdocs' ),
381 + 'input_attrs' => [
382 + 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
383 + ],
384 + 'choices' => [
385 + 'initial' => __( 'initial', 'betterdocs' ),
386 + 'inherit' => __( 'inherit', 'betterdocs' ),
387 + 'scroll' => __( 'scroll', 'betterdocs' ),
388 + 'fixed' => __( 'fixed', 'betterdocs' ),
389 + 'local' => __( 'local', 'betterdocs' )
390 + ]
391 + ]
392 + )
393 + );
394 + }
329 395
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']
396 + public function doc_single_content_bg_property_position() {
397 + $this->customizer->add_setting(
398 + 'betterdocs_doc_single_content_bg_property_position',
399 + [
400 + 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_position'],
401 + 'capability' => 'edit_theme_options',
402 + 'transport' => 'postMessage',
403 + 'sanitize_callback' => 'esc_html'
335 404
336 - ] );
405 + ]
406 + );
337 407
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 - );
408 + $this->customizer->add_control(
409 + new SelectControl(
410 + $this->customizer,
411 + 'betterdocs_doc_single_content_bg_property_position',
412 + [
413 + 'type' => 'betterdocs-select',
414 + 'section' => 'betterdocs_single_docs_settings',
415 + 'settings' => 'betterdocs_doc_single_content_bg_property_position',
416 + 'priority' => 103,
417 + 'label' => __( 'Position', 'betterdocs' ),
418 + 'input_attrs' => [
419 + 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
420 + ],
421 + 'choices' => [
422 + 'left top' => __( 'left top', 'betterdocs' ),
423 + 'left center' => __( 'left center', 'betterdocs' ),
424 + 'left bottom' => __( 'left bottom', 'betterdocs' ),
425 + 'right top' => __( 'right top', 'betterdocs' ),
426 + 'right center' => __( 'right center', 'betterdocs' ),
427 + 'right bottom' => __( 'right bottom', 'betterdocs' ),
428 + 'center top' => __( 'center top', 'betterdocs' ),
429 + 'center center' => __( 'center center', 'betterdocs' ),
430 + 'center bottom' => __( 'center bottom', 'betterdocs' )
431 + ]
432 + ]
433 + )
434 + );
435 + }
350 436
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']
437 + public function doc_single_content_area_padding() {
438 + $this->customizer->add_setting(
439 + 'betterdocs_doc_single_content_area_padding',
440 + [
441 + 'default' => $this->defaults['betterdocs_doc_single_content_area_padding'],
442 + 'capability' => 'edit_theme_options',
443 + 'transport' => 'postMessage',
444 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
356 445
357 - ] );
446 + ]
447 + );
358 448
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 - );
449 + $this->customizer->add_control(
450 + new TitleControl(
451 + $this->customizer,
452 + 'betterdocs_doc_single_content_area_padding',
453 + [
454 + 'type' => 'betterdocs-title',
455 + 'section' => 'betterdocs_single_docs_settings',
456 + 'settings' => 'betterdocs_doc_single_content_area_padding',
457 + 'label' => __( 'Content Area Padding', 'betterdocs' ),
458 + 'priority' => 104,
459 + 'input_attrs' => [
460 + 'id' => 'betterdocs_doc_single_content_area_padding',
461 + 'class' => 'betterdocs-dimension'
462 + ]
463 + ]
464 + )
465 + );
371 466
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']
467 + $this->customizer->add_setting(
468 + 'betterdocs_doc_single_content_area_padding_top',
469 + [
470 + 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_top'],
471 + 'capability' => 'edit_theme_options',
472 + 'transport' => 'postMessage',
473 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
474 + ]
475 + );
377 476
378 - ] );
477 + $this->customizer->add_control(
478 + new DimensionControl(
479 + $this->customizer,
480 + 'betterdocs_doc_single_content_area_padding_top',
481 + [
482 + 'type' => 'betterdocs-dimension',
483 + 'section' => 'betterdocs_single_docs_settings',
484 + 'settings' => 'betterdocs_doc_single_content_area_padding_top',
485 + 'label' => __( 'Top', 'betterdocs' ),
486 + 'priority' => 104,
487 + 'input_attrs' => [
488 + 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
489 + ]
490 + ]
491 + )
492 + );
379 493
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 - }
494 + $this->customizer->add_setting(
495 + 'betterdocs_doc_single_content_area_padding_right',
496 + [
497 + 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_right'],
498 + 'capability' => 'edit_theme_options',
499 + 'transport' => 'postMessage',
500 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
393 501
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']
502 + ]
503 + );
400 504
401 - ] );
505 + $this->customizer->add_control(
506 + new DimensionControl(
507 + $this->customizer,
508 + 'betterdocs_doc_single_content_area_padding_right',
509 + [
510 + 'type' => 'betterdocs-dimension',
511 + 'section' => 'betterdocs_single_docs_settings',
512 + 'settings' => 'betterdocs_doc_single_content_area_padding_right',
513 + 'label' => __( 'Right', 'betterdocs' ),
514 + 'priority' => 104,
515 + 'input_attrs' => [
516 + 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
517 + ]
518 + ]
519 + )
520 + );
402 521
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 - );
522 + $this->customizer->add_setting(
523 + 'betterdocs_doc_single_content_area_padding_bottom',
524 + [
525 + 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_bottom'],
526 + 'capability' => 'edit_theme_options',
527 + 'transport' => 'postMessage',
528 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
416 529
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 - ] );
530 + ]
531 + );
423 532
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 - );
533 + $this->customizer->add_control(
534 + new DimensionControl(
535 + $this->customizer,
536 + 'betterdocs_doc_single_content_area_padding_bottom',
537 + [
538 + 'type' => 'betterdocs-dimension',
539 + 'section' => 'betterdocs_single_docs_settings',
540 + 'settings' => 'betterdocs_doc_single_content_area_padding_bottom',
541 + 'label' => __( 'Bottom', 'betterdocs' ),
542 + 'priority' => 104,
543 + 'input_attrs' => [
544 + 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
545 + ]
546 + ]
547 + )
548 + );
436 549
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']
550 + $this->customizer->add_setting(
551 + 'betterdocs_doc_single_content_area_padding_left',
552 + [
553 + 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_left'],
554 + 'capability' => 'edit_theme_options',
555 + 'transport' => 'postMessage',
556 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
442 557
443 - ] );
558 + ]
559 + );
444 560
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 - );
561 + $this->customizer->add_control(
562 + new DimensionControl(
563 + $this->customizer,
564 + 'betterdocs_doc_single_content_area_padding_left',
565 + [
566 + 'type' => 'betterdocs-dimension',
567 + 'section' => 'betterdocs_single_docs_settings',
568 + 'settings' => 'betterdocs_doc_single_content_area_padding_left',
569 + 'label' => __( 'Left', 'betterdocs' ),
570 + 'priority' => 104,
571 + 'input_attrs' => [
572 + 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
573 + ]
574 + ]
575 + )
576 + );
577 + }
457 578
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']
579 + public function doc_single_post_content_padding() {
580 + $this->customizer->add_setting(
581 + 'betterdocs_doc_single_post_content_padding',
582 + [
583 + 'default' => $this->defaults['betterdocs_doc_single_post_content_padding'],
584 + 'capability' => 'edit_theme_options',
585 + 'transport' => 'postMessage',
586 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
463 587
464 - ] );
588 + ]
589 + );
465 590
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 - );
591 + $this->customizer->add_control(
592 + new TitleControl(
593 + $this->customizer,
594 + 'betterdocs_doc_single_post_content_padding',
595 + [
596 + 'type' => 'betterdocs-title',
597 + 'section' => 'betterdocs_single_docs_settings',
598 + 'settings' => 'betterdocs_doc_single_post_content_padding',
599 + 'label' => __( 'Doc Content Padding', 'betterdocs' ),
600 + 'priority' => 109,
601 + 'input_attrs' => [
602 + 'id' => 'betterdocs_doc_single_post_content_padding',
603 + 'class' => 'betterdocs-dimension'
604 + ]
605 + ]
606 + )
607 + );
478 608
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']
609 + $this->customizer->add_setting(
610 + 'betterdocs_doc_single_post_content_padding_top',
611 + [
612 + 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_top'],
613 + 'capability' => 'edit_theme_options',
614 + 'transport' => 'postMessage',
615 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
616 + ]
617 + );
484 618
485 - ] );
619 + $this->customizer->add_control(
620 + new DimensionControl(
621 + $this->customizer,
622 + 'betterdocs_doc_single_post_content_padding_top',
623 + [
624 + 'type' => 'betterdocs-dimension',
625 + 'section' => 'betterdocs_single_docs_settings',
626 + 'settings' => 'betterdocs_doc_single_post_content_padding_top',
627 + 'label' => __( 'Top', 'betterdocs' ),
628 + 'priority' => 109,
629 + 'input_attrs' => [
630 + 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
631 + ]
632 + ]
633 + )
634 + );
486 635
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 - }
636 + $this->customizer->add_setting(
637 + 'betterdocs_doc_single_post_content_padding_right',
638 + [
639 + 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_right'],
640 + 'capability' => 'edit_theme_options',
641 + 'transport' => 'postMessage',
642 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
500 643
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']
644 + ]
645 + );
507 646
508 - ] );
647 + $this->customizer->add_control(
648 + new DimensionControl(
649 + $this->customizer,
650 + 'betterdocs_doc_single_post_content_padding_right',
651 + [
652 + 'type' => 'betterdocs-dimension',
653 + 'section' => 'betterdocs_single_docs_settings',
654 + 'settings' => 'betterdocs_doc_single_post_content_padding_right',
655 + 'label' => __( 'Right', 'betterdocs' ),
656 + 'priority' => 109,
657 + 'input_attrs' => [
658 + 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
659 + ]
660 + ]
661 + )
662 + );
509 663
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 - );
664 + $this->customizer->add_setting(
665 + 'betterdocs_doc_single_post_content_padding_bottom',
666 + [
667 + 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_bottom'],
668 + 'capability' => 'edit_theme_options',
669 + 'transport' => 'postMessage',
670 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
523 671
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 - ] );
672 + ]
673 + );
530 674
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 - );
675 + $this->customizer->add_control(
676 + new DimensionControl(
677 + $this->customizer,
678 + 'betterdocs_doc_single_post_content_padding_bottom',
679 + [
680 + 'type' => 'betterdocs-dimension',
681 + 'section' => 'betterdocs_single_docs_settings',
682 + 'settings' => 'betterdocs_doc_single_post_content_padding_bottom',
683 + 'label' => __( 'Bottom', 'betterdocs' ),
684 + 'priority' => 109,
685 + 'input_attrs' => [
686 + 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
687 + ]
688 + ]
689 + )
690 + );
543 691
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']
692 + $this->customizer->add_setting(
693 + 'betterdocs_doc_single_post_content_padding_left',
694 + [
695 + 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_left'],
696 + 'capability' => 'edit_theme_options',
697 + 'transport' => 'postMessage',
698 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
549 699
550 - ] );
700 + ]
701 + );
551 702
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 - );
703 + $this->customizer->add_control(
704 + new DimensionControl(
705 + $this->customizer,
706 + 'betterdocs_doc_single_post_content_padding_left',
707 + [
708 + 'type' => 'betterdocs-dimension',
709 + 'section' => 'betterdocs_single_docs_settings',
710 + 'settings' => 'betterdocs_doc_single_post_content_padding_left',
711 + 'label' => __( 'Left', 'betterdocs' ),
712 + 'priority' => 109,
713 + 'input_attrs' => [
714 + 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
715 + ]
716 + ]
717 + )
718 + );
719 + }
564 720
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']
721 + public function doc_single_2_post_content_padding() {
722 + $this->customizer->add_setting(
723 + 'betterdocs_doc_single_2_post_content_padding',
724 + [
725 + 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding'],
726 + 'capability' => 'edit_theme_options',
727 + 'transport' => 'postMessage',
728 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
570 729
571 - ] );
730 + ]
731 + );
572 732
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 - );
733 + $this->customizer->add_control(
734 + new TitleControl(
735 + $this->customizer,
736 + 'betterdocs_doc_single_2_post_content_padding',
737 + [
738 + 'type' => 'betterdocs-title',
739 + 'section' => 'betterdocs_single_docs_settings',
740 + 'settings' => 'betterdocs_doc_single_2_post_content_padding',
741 + 'label' => __( 'Post Content Padding', 'betterdocs' ),
742 + 'priority' => 114,
743 + 'input_attrs' => [
744 + 'id' => 'betterdocs_doc_single_2_post_content_padding',
745 + 'class' => 'betterdocs-dimension'
746 + ]
747 + ]
748 + )
749 + );
585 750
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']
751 + $this->customizer->add_setting(
752 + 'betterdocs_doc_single_2_post_content_padding_top',
753 + [
754 + 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_top'],
755 + 'capability' => 'edit_theme_options',
756 + 'transport' => 'postMessage',
757 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
758 + ]
759 + );
591 760
592 - ] );
761 + $this->customizer->add_control(
762 + new DimensionControl(
763 + $this->customizer,
764 + 'betterdocs_doc_single_2_post_content_padding_top',
765 + [
766 + 'type' => 'betterdocs-dimension',
767 + 'section' => 'betterdocs_single_docs_settings',
768 + 'settings' => 'betterdocs_doc_single_2_post_content_padding_top',
769 + 'label' => __( 'Top', 'betterdocs' ),
770 + 'priority' => 114,
771 + 'input_attrs' => [
772 + 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
773 + ]
774 + ]
775 + )
776 + );
593 777
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 - }
778 + $this->customizer->add_setting(
779 + 'betterdocs_doc_single_2_post_content_padding_right',
780 + [
781 + 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_right'],
782 + 'capability' => 'edit_theme_options',
783 + 'transport' => 'postMessage',
784 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
607 785
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']
786 + ]
787 + );
614 788
615 - ] );
789 + $this->customizer->add_control(
790 + new DimensionControl(
791 + $this->customizer,
792 + 'betterdocs_doc_single_2_post_content_padding_right',
793 + [
794 + 'type' => 'betterdocs-dimension',
795 + 'section' => 'betterdocs_single_docs_settings',
796 + 'settings' => 'betterdocs_doc_single_2_post_content_padding_right',
797 + 'label' => __( 'Right', 'betterdocs' ),
798 + 'priority' => 114,
799 + 'input_attrs' => [
800 + 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
801 + ]
802 + ]
803 + )
804 + );
616 805
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 - );
806 + $this->customizer->add_setting(
807 + 'betterdocs_doc_single_2_post_content_padding_bottom',
808 + [
809 + 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_bottom'],
810 + 'capability' => 'edit_theme_options',
811 + 'transport' => 'postMessage',
812 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
630 813
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 - ] );
814 + ]
815 + );
637 816
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 - );
817 + $this->customizer->add_control(
818 + new DimensionControl(
819 + $this->customizer,
820 + 'betterdocs_doc_single_2_post_content_padding_bottom',
821 + [
822 + 'type' => 'betterdocs-dimension',
823 + 'section' => 'betterdocs_single_docs_settings',
824 + 'settings' => 'betterdocs_doc_single_2_post_content_padding_bottom',
825 + 'label' => __( 'Bottom', 'betterdocs' ),
826 + 'priority' => 114,
827 + 'input_attrs' => [
828 + 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
829 + ]
830 + ]
831 + )
832 + );
650 833
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']
834 + $this->customizer->add_setting(
835 + 'betterdocs_doc_single_2_post_content_padding_left',
836 + [
837 + 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_left'],
838 + 'capability' => 'edit_theme_options',
839 + 'transport' => 'postMessage',
840 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
656 841
657 - ] );
842 + ]
843 + );
658 844
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 - );
845 + $this->customizer->add_control(
846 + new DimensionControl(
847 + $this->customizer,
848 + 'betterdocs_doc_single_2_post_content_padding_left',
849 + [
850 + 'type' => 'betterdocs-dimension',
851 + 'section' => 'betterdocs_single_docs_settings',
852 + 'settings' => 'betterdocs_doc_single_2_post_content_padding_left',
853 + 'label' => __( 'Left', 'betterdocs' ),
854 + 'priority' => 114,
855 + 'input_attrs' => [
856 + 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
857 + ]
858 + ]
859 + )
860 + );
861 + }
671 862
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']
863 + public function doc_single_3_post_content_padding() {
864 + $this->customizer->add_setting(
865 + 'betterdocs_doc_single_3_post_content_padding',
866 + [
867 + 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding'],
868 + 'capability' => 'edit_theme_options',
869 + 'transport' => 'postMessage',
870 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
677 871
678 - ] );
872 + ]
873 + );
679 874
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 - );
875 + $this->customizer->add_control(
876 + new TitleControl(
877 + $this->customizer,
878 + 'betterdocs_doc_single_3_post_content_padding',
879 + [
880 + 'type' => 'betterdocs-title',
881 + 'section' => 'betterdocs_single_docs_settings',
882 + 'settings' => 'betterdocs_doc_single_3_post_content_padding',
883 + 'label' => __( 'Content Area Inner Padding', 'betterdocs' ),
884 + 'priority' => 119,
885 + 'input_attrs' => [
886 + 'id' => 'betterdocs_doc_single_3_post_content_padding',
887 + 'class' => 'betterdocs-dimension'
888 + ]
889 + ]
890 + )
891 + );
692 892
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']
893 + $this->customizer->add_setting(
894 + 'betterdocs_doc_single_3_post_content_padding_top',
895 + [
896 + 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_top'],
897 + 'capability' => 'edit_theme_options',
898 + 'transport' => 'postMessage',
899 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
900 + ]
901 + );
698 902
699 - ] );
903 + $this->customizer->add_control(
904 + new DimensionControl(
905 + $this->customizer,
906 + 'betterdocs_doc_single_3_post_content_padding_top',
907 + [
908 + 'type' => 'betterdocs-dimension',
909 + 'section' => 'betterdocs_single_docs_settings',
910 + 'settings' => 'betterdocs_doc_single_3_post_content_padding_top',
911 + 'label' => __( 'Top', 'betterdocs' ),
912 + 'priority' => 119,
913 + 'input_attrs' => [
914 + 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
915 + ]
916 + ]
917 + )
918 + );
700 919
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 - }
920 + $this->customizer->add_setting(
921 + 'betterdocs_doc_single_3_post_content_padding_right',
922 + [
923 + 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_right'],
924 + 'capability' => 'edit_theme_options',
925 + 'transport' => 'postMessage',
926 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
714 927
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 - ] );
928 + ]
929 + );
720 930
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 - }
931 + $this->customizer->add_control(
932 + new DimensionControl(
933 + $this->customizer,
934 + 'betterdocs_doc_single_3_post_content_padding_right',
935 + [
936 + 'type' => 'betterdocs-dimension',
937 + 'section' => 'betterdocs_single_docs_settings',
938 + 'settings' => 'betterdocs_doc_single_3_post_content_padding_right',
939 + 'label' => __( 'Right', 'betterdocs' ),
940 + 'priority' => 119,
941 + 'input_attrs' => [
942 + 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
943 + ]
944 + ]
945 + )
946 + );
730 947
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 - ] );
948 + $this->customizer->add_setting(
949 + 'betterdocs_doc_single_3_post_content_padding_bottom',
950 + [
951 + 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_bottom'],
952 + 'capability' => 'edit_theme_options',
953 + 'transport' => 'postMessage',
954 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
737 955
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 - }
956 + ]
957 + );
760 958
761 - public function post_title_text_transform() {
762 - $this->customizer->add_setting( 'betterdocs_post_title_text_transform', [
763 - 'default' => $this->defaults['betterdocs_post_title_text_transform'],
764 - 'capability' => 'edit_theme_options',
765 - 'sanitize_callback' => [$this->sanitizer, 'select']
766 - ] );
959 + $this->customizer->add_control(
960 + new DimensionControl(
961 + $this->customizer,
962 + 'betterdocs_doc_single_3_post_content_padding_bottom',
963 + [
964 + 'type' => 'betterdocs-dimension',
965 + 'section' => 'betterdocs_single_docs_settings',
966 + 'settings' => 'betterdocs_doc_single_3_post_content_padding_bottom',
967 + 'label' => __( 'Bottom', 'betterdocs' ),
968 + 'priority' => 119,
969 + 'input_attrs' => [
970 + 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
971 + ]
972 + ]
973 + )
974 + );
767 975
768 - $this->customizer->add_control(
769 - new WP_Customize_Control(
770 - $this->customizer,
771 - 'betterdocs_post_title_text_transform',
772 - [
773 - 'label' => __( 'Text Transform', 'betterdocs' ),
774 - 'section' => 'betterdocs_single_docs_settings',
775 - 'settings' => 'betterdocs_post_title_text_transform',
776 - 'type' => 'select',
777 - 'choices' => [
778 - 'uppercase' => 'Uppercase',
779 - 'lowercase' => 'Lowercase',
780 - 'capitalize' => 'Capitalize',
781 - 'none' => 'Normal'
782 - ],
783 - 'priority' => 124
784 - ]
785 - )
786 - );
787 - }
976 + $this->customizer->add_setting(
977 + 'betterdocs_doc_single_3_post_content_padding_left',
978 + [
979 + 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_left'],
980 + 'capability' => 'edit_theme_options',
981 + 'transport' => 'postMessage',
982 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
788 983
789 - public function single_doc_title_font_size() {
790 - $this->customizer->add_setting( 'betterdocs_single_doc_title_font_size', [
791 - 'default' => $this->defaults['betterdocs_single_doc_title_font_size'],
792 - 'capability' => 'edit_theme_options',
793 - 'transport' => 'postMessage',
794 - 'sanitize_callback' => [$this->sanitizer, 'integer']
984 + ]
985 + );
795 986
796 - ] );
987 + $this->customizer->add_control(
988 + new DimensionControl(
989 + $this->customizer,
990 + 'betterdocs_doc_single_3_post_content_padding_left',
991 + [
992 + 'type' => 'betterdocs-dimension',
993 + 'section' => 'betterdocs_single_docs_settings',
994 + 'settings' => 'betterdocs_doc_single_3_post_content_padding_left',
995 + 'label' => __( 'Left', 'betterdocs' ),
996 + 'priority' => 119,
997 + 'input_attrs' => [
998 + 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
999 + ]
1000 + ]
1001 + )
1002 + );
1003 + }
797 1004
798 - $this->customizer->add_control( new RangeValueControl(
799 - $this->customizer, 'betterdocs_single_doc_title_font_size', [
800 - 'type' => 'betterdocs-range-value',
801 - 'section' => 'betterdocs_single_docs_settings',
802 - 'settings' => 'betterdocs_single_doc_title_font_size',
803 - 'label' => __( 'Font Size', 'betterdocs' ),
804 - 'priority' => 125,
805 - 'input_attrs' => [
806 - 'min' => 0,
807 - 'max' => 50,
808 - 'step' => 1,
809 - 'suffix' => 'px' //optional suffix
810 - ]
811 - ] )
812 - );
813 - }
1005 + public function single_doc_layout_8_9_search_wrapper() {
1006 + $this->customizer->add_setting(
1007 + 'single_doc_layout_8_9_search_wrapper',
1008 + [
1009 + 'default' => $this->defaults['single_doc_layout_8_9_search_wrapper'],
1010 + 'sanitize_callback' => 'esc_html'
1011 + ]
1012 + );
814 1013
815 - public function single_doc_title_color() {
816 - $this->customizer->add_setting( 'betterdocs_single_doc_title_color', [
817 - 'capability' => 'edit_theme_options',
818 - 'default' => $this->defaults['betterdocs_single_doc_title_color'],
819 - 'transport' => 'postMessage',
820 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
821 - ] );
1014 + $this->customizer->add_control(
1015 + new SeparatorControl(
1016 + $this->customizer,
1017 + 'single_doc_layout_8_9_search_wrapper',
1018 + [
1019 + 'label' => __( 'Search', 'betterdocs' ),
1020 + 'settings' => 'single_doc_layout_8_9_search_wrapper',
1021 + 'section' => 'betterdocs_single_docs_settings',
1022 + 'priority' => 124
1023 + ]
1024 + )
1025 + );
1026 + }
822 1027
823 - $this->customizer->add_control(
824 - new AlphaColorControl(
825 - $this->customizer,
826 - 'betterdocs_single_doc_title_color',
827 - [
828 - 'label' => __( 'Color', 'betterdocs' ),
829 - 'priority' => 126,
830 - 'section' => 'betterdocs_single_docs_settings',
831 - 'settings' => 'betterdocs_single_doc_title_color'
832 - ]
833 - )
834 - );
835 - }
1028 + public function single_doc_layout_8_9_search_toogle() {
1029 + $this->customizer->add_setting(
1030 + 'single_doc_layout_8_9_search_toogle',
1031 + [
1032 + 'default' => $this->defaults['single_doc_layout_8_9_search_toogle'],
1033 + 'capability' => 'edit_theme_options',
1034 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
1035 + ]
1036 + );
836 1037
837 - public function doc_single_toc_title() {
838 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_title', [
839 - 'default' => $this->defaults['betterdocs_doc_single_toc_title'],
840 - 'sanitize_callback' => 'esc_html'
841 - ] );
1038 + $this->customizer->add_control(
1039 + new ToggleControl(
1040 + $this->customizer,
1041 + 'single_doc_layout_8_9_search_toogle',
1042 + [
1043 + 'label' => __( 'Enable', 'betterdocs' ),
1044 + 'section' => 'betterdocs_single_docs_settings',
1045 + 'settings' => 'single_doc_layout_8_9_search_toogle',
1046 + 'type' => 'light', // light, ios, flat,
1047 + 'priority' => 124
1048 + ]
1049 + )
1050 + );
1051 + }
842 1052
843 - $this->customizer->add_control( new SeparatorControl(
844 - $this->customizer, 'betterdocs_doc_single_toc_title', [
845 - 'label' => __( 'Table of Contents', 'betterdocs' ),
846 - 'priority' => 132,
847 - 'settings' => 'betterdocs_doc_single_toc_title',
848 - 'section' => 'betterdocs_single_docs_settings'
849 - ] )
850 - );
851 - }
1053 + public function single_doc_layout_8_9_search_width() {
1054 + $this->customizer->add_setting(
1055 + 'single_doc_layout_8_9_search_width',
1056 + [
1057 + 'default' => $this->defaults['single_doc_layout_8_9_search_width'],
1058 + 'capability' => 'edit_theme_options',
1059 + 'transport' => 'postMessage',
1060 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1061 + ]
1062 + );
852 1063
853 - public function sticky_toc_width() {
854 - $this->customizer->add_setting( 'betterdocs_sticky_toc_width', [
855 - 'default' => $this->defaults['betterdocs_sticky_toc_width'],
856 - 'capability' => 'edit_theme_options',
857 - 'transport' => 'postMessage',
858 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1064 + $this->customizer->add_control(
1065 + new RangeValueControl(
1066 + $this->customizer,
1067 + 'single_doc_layout_8_9_search_width',
1068 + [
1069 + 'type' => 'betterdocs-range-value',
1070 + 'section' => 'betterdocs_single_docs_settings',
1071 + 'settings' => 'single_doc_layout_8_9_search_width',
1072 + 'label' => __( 'Search Width', 'betterdocs' ),
1073 + 'input_attrs' => [
1074 + 'min' => 0,
1075 + 'max' => 100,
1076 + 'step' => 1,
1077 + 'suffix' => '%' //optional suffix
1078 + ],
1079 + 'priority' => 124
1080 + ]
1081 + )
1082 + );
1083 + }
859 1084
860 - ] );
1085 + public function single_doc_layout_8_9_search_max_width() {
1086 + $this->customizer->add_setting(
1087 + 'single_doc_layout_8_9_search_max_width',
1088 + [
1089 + 'default' => $this->defaults['single_doc_layout_8_9_search_max_width'],
1090 + 'capability' => 'edit_theme_options',
1091 + 'transport' => 'postMessage',
1092 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1093 + ]
1094 + );
861 1095
862 - $this->customizer->add_control( new RangeValueControl(
863 - $this->customizer, 'betterdocs_sticky_toc_width', [
864 - 'type' => 'betterdocs-range-value',
865 - 'section' => 'betterdocs_single_docs_settings',
866 - 'settings' => 'betterdocs_sticky_toc_width',
867 - 'label' => __( 'Sticky Toc Width', 'betterdocs' ),
868 - 'priority' => 133,
869 - 'input_attrs' => [
870 - 'class' => '',
871 - 'min' => 100,
872 - 'max' => 500,
873 - 'step' => 1,
874 - 'suffix' => 'px' //optional suffix
875 - ]
876 - ] )
877 - );
878 - }
1096 + $this->customizer->add_control(
1097 + new RangeValueControl(
1098 + $this->customizer,
1099 + 'single_doc_layout_8_9_search_max_width',
1100 + [
1101 + 'type' => 'betterdocs-range-value',
1102 + 'section' => 'betterdocs_single_docs_settings',
1103 + 'settings' => 'single_doc_layout_8_9_search_max_width',
1104 + 'label' => __( 'Search Max Width', 'betterdocs' ), //Renamed From 'Content Area Width' to 'Category Archive Width' @since betterdocs revamp version
1105 + 'input_attrs' => [
1106 + 'min' => 0,
1107 + 'max' => 3000,
1108 + 'step' => 1,
1109 + 'suffix' => 'px' //optional suffix
1110 + ],
1111 + 'priority' => 124
1112 + ]
1113 + )
1114 + );
1115 + }
879 1116
880 - public function sticky_toc_zindex() {
881 - $this->customizer->add_setting( 'betterdocs_sticky_toc_zindex', [
882 - 'default' => $this->defaults['betterdocs_sticky_toc_zindex'],
883 - 'capability' => 'edit_theme_options',
884 - 'transport' => 'postMessage',
885 - 'sanitize_callback' => [$this->sanitizer, 'integer']
886 - ] );
887 1117
888 - $this->customizer->add_control( new NumberControl(
889 - $this->customizer, 'betterdocs_sticky_toc_zindex', [
890 - 'type' => 'betterdocs-number',
891 - 'section' => 'betterdocs_single_docs_settings',
892 - 'settings' => 'betterdocs_sticky_toc_zindex',
893 - 'label' => __( 'Sticky Toc z-index', 'betterdocs' ),
894 - 'priority' => 134
895 - ] )
896 - );
897 - }
1118 + public function single_doc_layout_8_9_search_margin() {
1119 + $this->customizer->add_setting(
1120 + 'single_doc_layout_8_9_search_margin',
1121 + [
1122 + 'default' => $this->defaults['single_doc_layout_8_9_search_margin'],
1123 + 'capability' => 'edit_theme_options',
1124 + 'transport' => 'postMessage',
1125 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
898 1126
899 - public function sticky_toc_margin_top() {
900 - $this->customizer->add_setting( 'betterdocs_sticky_toc_margin_top', [
901 - 'default' => $this->defaults['betterdocs_sticky_toc_margin_top'],
902 - 'capability' => 'edit_theme_options',
903 - 'transport' => 'postMessage',
904 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1127 + ]
1128 + );
905 1129
906 - ] );
1130 + $this->customizer->add_control(
1131 + new TitleControl(
1132 + $this->customizer,
1133 + 'single_doc_layout_8_9_search_margin',
1134 + [
1135 + 'type' => 'betterdocs-title',
1136 + 'section' => 'betterdocs_single_docs_settings',
1137 + 'settings' => 'single_doc_layout_8_9_search_margin',
1138 + 'label' => __( 'Margin', 'betterdocs' ),
1139 + 'input_attrs' => [
1140 + 'id' => 'single_doc_layout_8_9_search_margin',
1141 + 'class' => 'betterdocs-dimension'
1142 + ],
1143 + 'priority' => 124
1144 + ]
1145 + )
1146 + );
907 1147
908 - $this->customizer->add_control( new RangeValueControl(
909 - $this->customizer, 'betterdocs_sticky_toc_margin_top', [
910 - 'type' => 'betterdocs-range-value',
911 - 'section' => 'betterdocs_single_docs_settings',
912 - 'settings' => 'betterdocs_sticky_toc_margin_top',
913 - 'label' => __( 'Sticky Toc Margin Top', 'betterdocs' ),
914 - 'priority' => 135,
915 - 'input_attrs' => [
916 - 'class' => '',
917 - 'min' => 0,
918 - 'max' => 500,
919 - 'step' => 1,
920 - 'suffix' => 'px' //optional suffix
921 - ]
922 - ] )
923 - );
924 - }
1148 + $this->customizer->add_setting(
1149 + 'single_doc_layout_8_9_search_margin_top',
1150 + [
1151 + 'default' => $this->defaults['single_doc_layout_8_9_search_margin_top'],
1152 + 'capability' => 'edit_theme_options',
1153 + 'transport' => 'postMessage',
1154 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1155 + ]
1156 + );
925 1157
926 - public function toc_bg_color() {
927 - $this->customizer->add_setting( 'betterdocs_toc_bg_color', [
928 - 'capability' => 'edit_theme_options',
929 - 'default' => $this->defaults['betterdocs_toc_bg_color'],
930 - 'transport' => 'postMessage',
931 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
932 - ] );
1158 + $this->customizer->add_control(
1159 + new DimensionControl(
1160 + $this->customizer,
1161 + 'single_doc_layout_8_9_search_margin_top',
1162 + [
1163 + 'type' => 'betterdocs-dimension',
1164 + 'section' => 'betterdocs_single_docs_settings',
1165 + 'settings' => 'single_doc_layout_8_9_search_margin_top',
1166 + 'label' => __( 'Top', 'betterdocs' ),
1167 + 'input_attrs' => [
1168 + 'class' => 'single_doc_layout_8_9_search_margin betterdocs-dimension'
1169 + ],
1170 + 'priority' => 124
1171 + ]
1172 + )
1173 + );
933 1174
934 - $this->customizer->add_control(
935 - new AlphaColorControl(
936 - $this->customizer,
937 - 'betterdocs_toc_bg_color',
938 - [
939 - 'label' => __( 'Background Color', 'betterdocs' ),
940 - 'priority' => 136,
941 - 'section' => 'betterdocs_single_docs_settings',
942 - 'settings' => 'betterdocs_toc_bg_color'
943 - ]
944 - )
945 - );
946 - }
1175 + $this->customizer->add_setting(
1176 + 'single_doc_layout_8_9_search_margin_bottom',
1177 + [
1178 + 'default' => $this->defaults['single_doc_layout_8_9_search_margin_bottom'],
1179 + 'capability' => 'edit_theme_options',
1180 + 'transport' => 'postMessage',
1181 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
947 1182
948 - public function doc_single_toc_padding() {
949 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding', [
950 - 'default' => $this->defaults['betterdocs_doc_single_toc_padding'],
951 - 'capability' => 'edit_theme_options',
952 - 'transport' => 'postMessage',
953 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1183 + ]
1184 + );
954 1185
955 - ] );
1186 + $this->customizer->add_control(
1187 + new DimensionControl(
1188 + $this->customizer,
1189 + 'single_doc_layout_8_9_search_margin_bottom',
1190 + [
1191 + 'type' => 'betterdocs-dimension',
1192 + 'section' => 'betterdocs_single_docs_settings',
1193 + 'settings' => 'single_doc_layout_8_9_search_margin_bottom',
1194 + 'label' => __( 'Bottom', 'betterdocs' ),
1195 + 'input_attrs' => [
1196 + 'class' => 'single_doc_layout_8_9_search_margin betterdocs-dimension'
1197 + ],
1198 + 'priority' => 124
1199 + ]
1200 + )
1201 + );
1202 + }
956 1203
957 - $this->customizer->add_control( new TitleControl(
958 - $this->customizer, 'betterdocs_doc_single_toc_padding', [
959 - 'type' => 'betterdocs-title',
960 - 'section' => 'betterdocs_single_docs_settings',
961 - 'settings' => 'betterdocs_doc_single_toc_padding',
962 - 'label' => __( 'Content Area Padding', 'betterdocs' ),
963 - 'priority' => 137,
964 - 'input_attrs' => [
965 - 'id' => 'betterdocs_doc_single_toc_padding',
966 - 'class' => 'betterdocs-dimension'
967 - ]
968 - ] )
969 - );
1204 + public function single_doc_layout_8_9_search_padding() {
1205 + $this->customizer->add_setting(
1206 + 'single_doc_layout_8_9_search_padding',
1207 + [
1208 + 'default' => $this->defaults['single_doc_layout_8_9_search_padding'],
1209 + 'capability' => 'edit_theme_options',
1210 + 'transport' => 'postMessage',
1211 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1212 + ]
1213 + );
970 1214
971 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_top', [
972 - 'default' => $this->defaults['betterdocs_doc_single_toc_padding_top'],
973 - 'capability' => 'edit_theme_options',
974 - 'transport' => 'postMessage',
975 - 'sanitize_callback' => [$this->sanitizer, 'integer']
976 - ] );
1215 + $this->customizer->add_control(
1216 + new TitleControl(
1217 + $this->customizer,
1218 + 'single_doc_layout_8_9_search_padding',
1219 + [
1220 + 'type' => 'betterdocs-title',
1221 + 'section' => 'betterdocs_single_docs_settings',
1222 + 'settings' => 'single_doc_layout_8_9_search_padding',
1223 + 'label' => __( 'Padding', 'betterdocs' ),
1224 + 'input_attrs' => [
1225 + 'id' => 'single_doc_layout_8_9_search_padding',
1226 + 'class' => 'betterdocs-dimension'
1227 + ],
1228 + 'priority' => 124
1229 + ]
1230 + )
1231 + );
977 1232
978 - $this->customizer->add_control( new DimensionControl(
979 - $this->customizer, 'betterdocs_doc_single_toc_padding_top', [
980 - 'type' => 'betterdocs-dimension',
981 - 'section' => 'betterdocs_single_docs_settings',
982 - 'settings' => 'betterdocs_doc_single_toc_padding_top',
983 - 'label' => __( 'Top', 'betterdocs' ),
984 - 'priority' => 137,
985 - 'input_attrs' => [
986 - 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
987 - ]
988 - ] )
989 - );
1233 + $this->customizer->add_setting(
1234 + 'single_doc_layout_8_9_search_padding_top',
1235 + [
1236 + 'default' => $this->defaults['single_doc_layout_8_9_search_padding_top'],
1237 + 'capability' => 'edit_theme_options',
1238 + 'transport' => 'postMessage',
1239 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1240 + ]
1241 + );
990 1242
991 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_right', [
992 - 'default' => $this->defaults['betterdocs_doc_single_toc_padding_right'],
993 - 'capability' => 'edit_theme_options',
994 - 'transport' => 'postMessage',
995 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1243 + $this->customizer->add_control(
1244 + new DimensionControl(
1245 + $this->customizer,
1246 + 'single_doc_layout_8_9_search_padding_top',
1247 + [
1248 + 'type' => 'betterdocs-dimension',
1249 + 'section' => 'betterdocs_single_docs_settings',
1250 + 'settings' => 'single_doc_layout_8_9_search_padding_top',
1251 + 'label' => __( 'Top', 'betterdocs' ),
1252 + 'input_attrs' => [
1253 + 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
1254 + ],
1255 + 'priority' => 124
1256 + ]
1257 + )
1258 + );
996 1259
997 - ] );
1260 + $this->customizer->add_setting(
1261 + 'single_doc_layout_8_9_search_padding_right',
1262 + [
1263 + 'default' => $this->defaults['single_doc_layout_8_9_search_padding_right'],
1264 + 'capability' => 'edit_theme_options',
1265 + 'transport' => 'postMessage',
1266 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
998 1267
999 - $this->customizer->add_control( new DimensionControl(
1000 - $this->customizer, 'betterdocs_doc_single_toc_padding_right', [
1001 - 'type' => 'betterdocs-dimension',
1002 - 'section' => 'betterdocs_single_docs_settings',
1003 - 'settings' => 'betterdocs_doc_single_toc_padding_right',
1004 - 'label' => __( 'Right', 'betterdocs' ),
1005 - 'priority' => 137,
1006 - 'input_attrs' => [
1007 - 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
1008 - ]
1009 - ] )
1010 - );
1268 + ]
1269 + );
1011 1270
1012 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_bottom', [
1013 - 'default' => $this->defaults['betterdocs_doc_single_toc_padding_bottom'],
1014 - 'capability' => 'edit_theme_options',
1015 - 'transport' => 'postMessage',
1016 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1271 + $this->customizer->add_control(
1272 + new DimensionControl(
1273 + $this->customizer,
1274 + 'single_doc_layout_8_9_search_padding_right',
1275 + [
1276 + 'type' => 'betterdocs-dimension',
1277 + 'section' => 'betterdocs_single_docs_settings',
1278 + 'settings' => 'single_doc_layout_8_9_search_padding_right',
1279 + 'label' => __( 'Right', 'betterdocs' ),
1280 + 'input_attrs' => [
1281 + 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
1282 + ],
1283 + 'priority' => 124
1284 + ]
1285 + )
1286 + );
1017 1287
1018 - ] );
1288 + $this->customizer->add_setting(
1289 + 'single_doc_layout_8_9_search_padding_bottom',
1290 + [
1291 + 'default' => $this->defaults['single_doc_layout_8_9_search_padding_bottom'],
1292 + 'capability' => 'edit_theme_options',
1293 + 'transport' => 'postMessage',
1294 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1295 + ]
1296 + );
1019 1297
1020 - $this->customizer->add_control( new DimensionControl(
1021 - $this->customizer, 'betterdocs_doc_single_toc_padding_bottom', [
1022 - 'type' => 'betterdocs-dimension',
1023 - 'section' => 'betterdocs_single_docs_settings',
1024 - 'settings' => 'betterdocs_doc_single_toc_padding_bottom',
1025 - 'label' => __( 'Bottom', 'betterdocs' ),
1026 - 'priority' => 137,
1027 - 'input_attrs' => [
1028 - 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
1029 - ]
1030 - ] )
1031 - );
1298 + $this->customizer->add_control(
1299 + new DimensionControl(
1300 + $this->customizer,
1301 + 'single_doc_layout_8_9_search_padding_bottom',
1302 + [
1303 + 'type' => 'betterdocs-dimension',
1304 + 'section' => 'betterdocs_single_docs_settings',
1305 + 'settings' => 'single_doc_layout_8_9_search_padding_bottom',
1306 + 'label' => __( 'Bottom', 'betterdocs' ),
1307 + 'input_attrs' => [
1308 + 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
1309 + ],
1310 + 'priority' => 124
1311 + ]
1312 + )
1313 + );
1032 1314
1033 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_padding_left', [
1034 - 'default' => $this->defaults['betterdocs_doc_single_toc_padding_left'],
1035 - 'capability' => 'edit_theme_options',
1036 - 'transport' => 'postMessage',
1037 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1315 + $this->customizer->add_setting(
1316 + 'single_doc_layout_8_9_search_padding_left',
1317 + [
1318 + 'default' => $this->defaults['single_doc_layout_8_9_search_padding_left'],
1319 + 'capability' => 'edit_theme_options',
1320 + 'transport' => 'postMessage',
1321 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1322 + ]
1323 + );
1038 1324
1039 - ] );
1325 + $this->customizer->add_control(
1326 + new DimensionControl(
1327 + $this->customizer,
1328 + 'single_doc_layout_8_9_search_padding_left',
1329 + [
1330 + 'type' => 'betterdocs-dimension',
1331 + 'section' => 'betterdocs_single_docs_settings',
1332 + 'settings' => 'single_doc_layout_8_9_search_padding_left',
1333 + 'label' => __( 'Left', 'betterdocs' ),
1334 + 'input_attrs' => [
1335 + 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
1336 + ],
1337 + 'priority' => 124
1338 + ]
1339 + )
1340 + );
1341 + }
1040 1342
1041 - $this->customizer->add_control( new DimensionControl(
1042 - $this->customizer, 'betterdocs_doc_single_toc_padding_left', [
1043 - 'type' => 'betterdocs-dimension',
1044 - 'section' => 'betterdocs_single_docs_settings',
1045 - 'settings' => 'betterdocs_doc_single_toc_padding_left',
1046 - 'label' => __( 'Left', 'betterdocs' ),
1047 - 'priority' => 137,
1048 - 'input_attrs' => [
1049 - 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
1050 - ]
1051 - ] )
1052 - );
1053 - }
1343 + public function single_doc_title() {
1344 + $this->customizer->add_setting(
1345 + 'betterdocs_single_doc_title',
1346 + [
1347 + 'default' => $this->defaults['betterdocs_single_doc_title'],
1348 + 'sanitize_callback' => 'esc_html'
1349 + ]
1350 + );
1054 1351
1055 - public function doc_single_toc_margin() {
1056 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin', [
1057 - 'default' => $this->defaults['betterdocs_doc_single_toc_margin'],
1058 - 'capability' => 'edit_theme_options',
1059 - 'transport' => 'postMessage',
1060 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1061 - ] );
1352 + $this->customizer->add_control(
1353 + new SeparatorControl(
1354 + $this->customizer,
1355 + 'betterdocs_single_doc_title',
1356 + [
1357 + 'label' => __( 'Post Title', 'betterdocs' ),
1358 + 'priority' => 124,
1359 + 'settings' => 'betterdocs_single_doc_title',
1360 + 'section' => 'betterdocs_single_docs_settings'
1361 + ]
1362 + )
1363 + );
1364 + }
1062 1365
1063 - $this->customizer->add_control( new TitleControl(
1064 - $this->customizer, 'betterdocs_doc_single_toc_margin', [
1065 - 'type' => 'betterdocs-title',
1066 - 'section' => 'betterdocs_single_docs_settings',
1067 - 'settings' => 'betterdocs_doc_single_toc_margin',
1068 - 'label' => __( 'Content Area Margin', 'betterdocs' ),
1069 - 'priority' => 141,
1070 - 'input_attrs' => [
1071 - 'id' => 'betterdocs_doc_single_toc_margin',
1072 - 'class' => 'betterdocs-dimension'
1073 - ]
1074 - ] )
1075 - );
1366 + public function post_title_tag() {
1367 + $this->customizer->add_setting(
1368 + 'betterdocs_post_title_tag',
1369 + [
1370 + 'default' => $this->defaults['betterdocs_post_title_tag'],
1371 + 'capability' => 'edit_theme_options',
1372 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
1373 + ]
1374 + );
1076 1375
1077 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_top', [
1078 - 'default' => $this->defaults['betterdocs_doc_single_toc_margin_top'],
1079 - 'capability' => 'edit_theme_options',
1080 - 'transport' => 'postMessage',
1081 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1082 - ] );
1376 + $this->customizer->add_control(
1377 + new WP_Customize_Control(
1378 + $this->customizer,
1379 + 'betterdocs_post_title_tag',
1380 + [
1381 + 'label' => __( 'Title Tag', 'betterdocs' ),
1382 + 'section' => 'betterdocs_single_docs_settings',
1383 + 'settings' => 'betterdocs_post_title_tag',
1384 + 'type' => 'select',
1385 + 'choices' => [
1386 + 'h1' => 'h1',
1387 + 'h2' => 'h2',
1388 + 'h3' => 'h3',
1389 + 'h4' => 'h4',
1390 + 'h5' => 'h5',
1391 + 'h6' => 'h6',
1392 + 'p' => 'p'
1393 + ],
1394 + 'priority' => 124
1395 + ]
1396 + )
1397 + );
1398 + }
1083 1399
1084 - $this->customizer->add_control( new DimensionControl(
1085 - $this->customizer, 'betterdocs_doc_single_toc_margin_top', [
1086 - 'type' => 'betterdocs-dimension',
1087 - 'section' => 'betterdocs_single_docs_settings',
1088 - 'settings' => 'betterdocs_doc_single_toc_margin_top',
1089 - 'label' => __( 'Top', 'betterdocs' ),
1090 - 'priority' => 141,
1091 - 'input_attrs' => [
1092 - 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
1093 - ]
1094 - ] )
1095 - );
1400 + public function post_title_text_transform() {
1401 + $this->customizer->add_setting(
1402 + 'betterdocs_post_title_text_transform',
1403 + [
1404 + 'default' => $this->defaults['betterdocs_post_title_text_transform'],
1405 + 'capability' => 'edit_theme_options',
1406 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
1407 + ]
1408 + );
1096 1409
1097 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_right', [
1098 - 'default' => $this->defaults['betterdocs_doc_single_toc_margin_right'],
1099 - 'capability' => 'edit_theme_options',
1100 - 'transport' => 'postMessage',
1101 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1102 - ] );
1410 + $this->customizer->add_control(
1411 + new WP_Customize_Control(
1412 + $this->customizer,
1413 + 'betterdocs_post_title_text_transform',
1414 + [
1415 + 'label' => __( 'Text Transform', 'betterdocs' ),
1416 + 'section' => 'betterdocs_single_docs_settings',
1417 + 'settings' => 'betterdocs_post_title_text_transform',
1418 + 'type' => 'select',
1419 + 'choices' => [
1420 + 'uppercase' => 'Uppercase',
1421 + 'lowercase' => 'Lowercase',
1422 + 'capitalize' => 'Capitalize',
1423 + 'none' => 'Normal'
1424 + ],
1425 + 'priority' => 124
1426 + ]
1427 + )
1428 + );
1429 + }
1103 1430
1104 - $this->customizer->add_control( new DimensionControl(
1105 - $this->customizer, 'betterdocs_doc_single_toc_margin_right', [
1106 - 'type' => 'betterdocs-dimension',
1107 - 'section' => 'betterdocs_single_docs_settings',
1108 - 'settings' => 'betterdocs_doc_single_toc_margin_right',
1109 - 'label' => __( 'Right', 'betterdocs' ),
1110 - 'priority' => 141,
1111 - 'input_attrs' => [
1112 - 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
1113 - ]
1114 - ] )
1115 - );
1431 + public function single_doc_title_font_size() {
1432 + $this->customizer->add_setting(
1433 + 'betterdocs_single_doc_title_font_size',
1434 + [
1435 + 'default' => $this->defaults['betterdocs_single_doc_title_font_size'],
1436 + 'capability' => 'edit_theme_options',
1437 + 'transport' => 'postMessage',
1438 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1116 1439
1117 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_bottom', [
1118 - 'default' => $this->defaults['betterdocs_doc_single_toc_margin_bottom'],
1119 - 'capability' => 'edit_theme_options',
1120 - 'transport' => 'postMessage',
1121 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1122 - ] );
1440 + ]
1441 + );
1123 1442
1124 - $this->customizer->add_control( new DimensionControl(
1125 - $this->customizer, 'betterdocs_doc_single_toc_margin_bottom', [
1126 - 'type' => 'betterdocs-dimension',
1127 - 'section' => 'betterdocs_single_docs_settings',
1128 - 'settings' => 'betterdocs_doc_single_toc_margin_bottom',
1129 - 'label' => __( 'Bottom', 'betterdocs' ),
1130 - 'priority' => 141,
1131 - 'input_attrs' => [
1132 - 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
1133 - ]
1134 - ] )
1135 - );
1443 + $this->customizer->add_control(
1444 + new RangeValueControl(
1445 + $this->customizer,
1446 + 'betterdocs_single_doc_title_font_size',
1447 + [
1448 + 'type' => 'betterdocs-range-value',
1449 + 'section' => 'betterdocs_single_docs_settings',
1450 + 'settings' => 'betterdocs_single_doc_title_font_size',
1451 + 'label' => __( 'Font Size', 'betterdocs' ),
1452 + 'priority' => 125,
1453 + 'input_attrs' => [
1454 + 'min' => 0,
1455 + 'max' => 50,
1456 + 'step' => 1,
1457 + 'suffix' => 'px' //optional suffix
1458 + ]
1459 + ]
1460 + )
1461 + );
1462 + }
1136 1463
1137 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_margin_left', [
1138 - 'default' => $this->defaults['betterdocs_doc_single_toc_margin_left'],
1139 - 'capability' => 'edit_theme_options',
1140 - 'transport' => 'postMessage',
1141 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1142 - ] );
1464 + public function single_doc_title_color() {
1465 + $this->customizer->add_setting(
1466 + 'betterdocs_single_doc_title_color',
1467 + [
1468 + 'capability' => 'edit_theme_options',
1469 + 'default' => $this->defaults['betterdocs_single_doc_title_color'],
1470 + 'transport' => 'postMessage',
1471 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1472 + ]
1473 + );
1143 1474
1144 - $this->customizer->add_control( new DimensionControl(
1145 - $this->customizer, 'betterdocs_doc_single_toc_margin_left', [
1146 - 'type' => 'betterdocs-dimension',
1147 - 'section' => 'betterdocs_single_docs_settings',
1148 - 'settings' => 'betterdocs_doc_single_toc_margin_left',
1149 - 'label' => __( 'Left', 'betterdocs' ),
1150 - 'priority' => 141,
1151 - 'input_attrs' => [
1152 - 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
1153 - ]
1154 - ] )
1155 - );
1156 - }
1475 + $this->customizer->add_control(
1476 + new AlphaColorControl(
1477 + $this->customizer,
1478 + 'betterdocs_single_doc_title_color',
1479 + [
1480 + 'label' => __( 'Color', 'betterdocs' ),
1481 + 'priority' => 126,
1482 + 'section' => 'betterdocs_single_docs_settings',
1483 + 'settings' => 'betterdocs_single_doc_title_color'
1484 + ]
1485 + )
1486 + );
1487 + }
1157 1488
1158 - public function toc_title_color() {
1159 - $this->customizer->add_setting( 'betterdocs_toc_title_color', [
1160 - 'capability' => 'edit_theme_options',
1161 - 'default' => $this->defaults['betterdocs_toc_title_color'],
1162 - 'transport' => 'postMessage',
1163 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1164 - ] );
1489 + public function post_title_text_transform_layout_8_9() {
1490 + $this->customizer->add_setting(
1491 + 'betterdocs_post_title_text_transform_layout_8_9',
1492 + [
1493 + 'default' => $this->defaults['betterdocs_post_title_text_transform_layout_8_9'],
1494 + 'capability' => 'edit_theme_options',
1495 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
1496 + ]
1497 + );
1165 1498
1166 - $this->customizer->add_control(
1167 - new AlphaColorControl(
1168 - $this->customizer,
1169 - 'betterdocs_toc_title_color',
1170 - [
1171 - 'label' => __( 'Title Color', 'betterdocs' ),
1172 - 'priority' => 142,
1173 - 'section' => 'betterdocs_single_docs_settings',
1174 - 'settings' => 'betterdocs_toc_title_color'
1175 - ]
1176 - )
1177 - );
1178 - }
1499 + $this->customizer->add_control(
1500 + new WP_Customize_Control(
1501 + $this->customizer,
1502 + 'betterdocs_post_title_text_transform_layout_8_9',
1503 + [
1504 + 'label' => __( 'Text Transform', 'betterdocs' ),
1505 + 'section' => 'betterdocs_single_docs_settings',
1506 + 'settings' => 'betterdocs_post_title_text_transform_layout_8_9',
1507 + 'type' => 'select',
1508 + 'choices' => [
1509 + 'uppercase' => 'Uppercase',
1510 + 'lowercase' => 'Lowercase',
1511 + 'capitalize' => 'Capitalize',
1512 + 'none' => 'Normal'
1513 + ],
1514 + 'priority' => 124
1515 + ]
1516 + )
1517 + );
1518 + }
1179 1519
1180 - public function toc_title_font_size() {
1181 - $this->customizer->add_setting( 'betterdocs_toc_title_font_size', [
1182 - 'default' => $this->defaults['betterdocs_toc_title_font_size'],
1183 - 'capability' => 'edit_theme_options',
1184 - 'transport' => 'postMessage',
1185 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1520 + public function single_doc_title_font_size_layout_8_9() {
1521 + $this->customizer->add_setting(
1522 + 'betterdocs_single_doc_title_font_size_layout_8_9',
1523 + [
1524 + 'default' => $this->defaults['betterdocs_single_doc_title_font_size_layout_8_9'],
1525 + 'capability' => 'edit_theme_options',
1526 + 'transport' => 'postMessage',
1527 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1186 1528
1187 - ] );
1529 + ]
1530 + );
1188 1531
1189 - $this->customizer->add_control( new RangeValueControl(
1190 - $this->customizer, 'betterdocs_toc_title_font_size', [
1191 - 'type' => 'betterdocs-range-value',
1192 - 'section' => 'betterdocs_single_docs_settings',
1193 - 'settings' => 'betterdocs_toc_title_font_size',
1194 - 'label' => __( 'Title Font Size', 'betterdocs' ),
1195 - 'priority' => 143,
1196 - 'input_attrs' => [
1197 - 'class' => '',
1198 - 'min' => 0,
1199 - 'max' => 50,
1200 - 'step' => 1,
1201 - 'suffix' => 'px' //optional suffix
1202 - ]
1203 - ] )
1204 - );
1205 - }
1532 + $this->customizer->add_control(
1533 + new RangeValueControl(
1534 + $this->customizer,
1535 + 'betterdocs_single_doc_title_font_size_layout_8_9',
1536 + [
1537 + 'type' => 'betterdocs-range-value',
1538 + 'section' => 'betterdocs_single_docs_settings',
1539 + 'settings' => 'betterdocs_single_doc_title_font_size_layout_8_9',
1540 + 'label' => __( 'Font Size', 'betterdocs' ),
1541 + 'priority' => 125,
1542 + 'input_attrs' => [
1543 + 'min' => 0,
1544 + 'max' => 50,
1545 + 'step' => 1,
1546 + 'suffix' => 'px' //optional suffix
1547 + ]
1548 + ]
1549 + )
1550 + );
1551 + }
1206 1552
1207 - public function toc_list_item_color() {
1208 - $this->customizer->add_setting( 'betterdocs_toc_list_item_color', [
1209 - 'default' => $this->defaults['betterdocs_toc_list_item_color'],
1210 - 'transport' => 'postMessage',
1211 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1212 - ] );
1553 + public function single_doc_title_color_layout_8_9() {
1554 + $this->customizer->add_setting(
1555 + 'betterdocs_single_doc_title_color_layout_8_9',
1556 + [
1557 + 'capability' => 'edit_theme_options',
1558 + 'default' => $this->defaults['betterdocs_single_doc_title_color_layout_8_9'],
1559 + 'transport' => 'postMessage',
1560 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1561 + ]
1562 + );
1213 1563
1214 - $this->customizer->add_control(
1215 - new AlphaColorControl(
1216 - $this->customizer,
1217 - 'betterdocs_toc_list_item_color',
1218 - [
1219 - 'label' => __( 'List Item Color', 'betterdocs' ),
1220 - 'priority' => 144,
1221 - 'section' => 'betterdocs_single_docs_settings',
1222 - 'settings' => 'betterdocs_toc_list_item_color'
1223 - ]
1224 - )
1225 - );
1226 - }
1564 + $this->customizer->add_control(
1565 + new AlphaColorControl(
1566 + $this->customizer,
1567 + 'betterdocs_single_doc_title_color_layout_8_9',
1568 + [
1569 + 'label' => __( 'Color', 'betterdocs' ),
1570 + 'priority' => 126,
1571 + 'section' => 'betterdocs_single_docs_settings',
1572 + 'settings' => 'betterdocs_single_doc_title_color_layout_8_9'
1573 + ]
1574 + )
1575 + );
1576 + }
1227 1577
1228 - public function toc_list_item_hover_color() {
1229 - $this->customizer->add_setting( 'betterdocs_toc_list_item_hover_color', [
1230 - 'capability' => 'edit_theme_options',
1231 - 'default' => $this->defaults['betterdocs_toc_list_item_hover_color'],
1232 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1233 - ] );
1578 + public function single_doc_title_margin_layout_8_9() {
1579 + $this->customizer->add_setting(
1580 + 'single_doc_title_margin_layout_8_9',
1581 + [
1582 + 'default' => $this->defaults['single_doc_title_margin_layout_8_9'],
1583 + 'capability' => 'edit_theme_options',
1584 + 'transport' => 'postMessage',
1585 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1586 + ]
1587 + );
1234 1588
1235 - $this->customizer->add_control(
1236 - new AlphaColorControl(
1237 - $this->customizer,
1238 - 'betterdocs_toc_list_item_hover_color',
1239 - [
1240 - 'label' => __( 'List Item Hover Color', 'betterdocs' ),
1241 - 'priority' => 145,
1242 - 'section' => 'betterdocs_single_docs_settings',
1243 - 'settings' => 'betterdocs_toc_list_item_hover_color'
1244 - ]
1245 - )
1246 - );
1247 - }
1589 + $this->customizer->add_control(
1590 + new TitleControl(
1591 + $this->customizer,
1592 + 'single_doc_title_margin_layout_8_9',
1593 + [
1594 + 'type' => 'betterdocs-title',
1595 + 'section' => 'betterdocs_single_docs_settings',
1596 + 'settings' => 'single_doc_title_margin_layout_8_9',
1597 + 'label' => __( 'Title Margin', 'betterdocs' ),
1598 + 'priority' => 126,
1599 + 'input_attrs' => [
1600 + 'id' => 'single_doc_title_margin_layout_8_9',
1601 + 'class' => 'betterdocs-dimension'
1602 + ]
1603 + ]
1604 + )
1605 + );
1248 1606
1249 - public function toc_active_item_color() {
1250 - $this->customizer->add_setting( 'betterdocs_toc_active_item_color', [
1251 - 'capability' => 'edit_theme_options',
1252 - 'default' => $this->defaults['betterdocs_toc_active_item_color'],
1253 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1254 - ] );
1607 + $this->customizer->add_setting(
1608 + 'single_doc_title_margin_top_layout_8_9',
1609 + [
1610 + 'default' => $this->defaults['single_doc_title_margin_top_layout_8_9'],
1611 + 'capability' => 'edit_theme_options',
1612 + 'transport' => 'postMessage',
1613 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1614 + ]
1615 + );
1255 1616
1256 - $this->customizer->add_control(
1257 - new AlphaColorControl(
1258 - $this->customizer,
1259 - 'betterdocs_toc_active_item_color',
1260 - [
1261 - 'label' => __( 'Active Item Color', 'betterdocs' ),
1262 - 'priority' => 146,
1263 - 'section' => 'betterdocs_single_docs_settings',
1264 - 'settings' => 'betterdocs_toc_active_item_color'
1265 - ]
1266 - )
1267 - );
1268 - }
1617 + $this->customizer->add_control(
1618 + new DimensionControl(
1619 + $this->customizer,
1620 + 'single_doc_title_margin_top_layout_8_9',
1621 + [
1622 + 'type' => 'betterdocs-dimension',
1623 + 'section' => 'betterdocs_single_docs_settings',
1624 + 'settings' => 'single_doc_title_margin_top_layout_8_9',
1625 + 'label' => __( 'Top', 'betterdocs' ),
1626 + 'priority' => 126,
1627 + 'input_attrs' => [
1628 + 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1629 + ]
1630 + ]
1631 + )
1632 + );
1269 1633
1270 - public function toc_list_item_font_size() {
1271 - $this->customizer->add_setting( 'betterdocs_toc_list_item_font_size', [
1272 - 'default' => $this->defaults['betterdocs_toc_list_item_font_size'],
1273 - 'capability' => 'edit_theme_options',
1274 - 'transport' => 'postMessage',
1275 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1634 + $this->customizer->add_setting(
1635 + 'single_doc_title_margin_right_layout_8_9',
1636 + [
1637 + 'default' => $this->defaults['single_doc_title_margin_right_layout_8_9'],
1638 + 'capability' => 'edit_theme_options',
1639 + 'transport' => 'postMessage',
1640 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1641 + ]
1642 + );
1276 1643
1277 - ] );
1644 + $this->customizer->add_control(
1645 + new DimensionControl(
1646 + $this->customizer,
1647 + 'single_doc_title_margin_right_layout_8_9',
1648 + [
1649 + 'type' => 'betterdocs-dimension',
1650 + 'section' => 'betterdocs_single_docs_settings',
1651 + 'settings' => 'single_doc_title_margin_right_layout_8_9',
1652 + 'label' => __( 'Right', 'betterdocs' ),
1653 + 'priority' => 126,
1654 + 'input_attrs' => [
1655 + 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1656 + ]
1657 + ]
1658 + )
1659 + );
1278 1660
1279 - $this->customizer->add_control( new RangeValueControl(
1280 - $this->customizer, 'betterdocs_toc_list_item_font_size', [
1281 - 'type' => 'betterdocs-range-value',
1282 - 'section' => 'betterdocs_single_docs_settings',
1283 - 'settings' => 'betterdocs_toc_list_item_font_size',
1284 - 'label' => __( 'List Item Font Size', 'betterdocs' ),
1285 - 'priority' => 147,
1286 - 'input_attrs' => [
1287 - 'class' => '',
1288 - 'min' => 0,
1289 - 'max' => 50,
1290 - 'step' => 1,
1291 - 'suffix' => 'px' //optional suffix
1292 - ]
1293 - ] )
1294 - );
1295 - }
1661 + $this->customizer->add_setting(
1662 + 'single_doc_title_margin_bottom_layout_8_9',
1663 + [
1664 + 'default' => $this->defaults['single_doc_title_margin_bottom_layout_8_9'],
1665 + 'capability' => 'edit_theme_options',
1666 + 'transport' => 'postMessage',
1667 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1668 + ]
1669 + );
1296 1670
1297 - public function doc_single_toc_list_margin() {
1298 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin', [
1299 - 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin'],
1300 - 'capability' => 'edit_theme_options',
1301 - 'transport' => 'postMessage',
1302 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1671 + $this->customizer->add_control(
1672 + new DimensionControl(
1673 + $this->customizer,
1674 + 'single_doc_title_margin_bottom_layout_8_9',
1675 + [
1676 + 'type' => 'betterdocs-dimension',
1677 + 'section' => 'betterdocs_single_docs_settings',
1678 + 'settings' => 'single_doc_title_margin_bottom_layout_8_9',
1679 + 'label' => __( 'Bottom', 'betterdocs' ),
1680 + 'priority' => 126,
1681 + 'input_attrs' => [
1682 + 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1683 + ]
1684 + ]
1685 + )
1686 + );
1303 1687
1304 - ] );
1688 + $this->customizer->add_setting(
1689 + 'single_doc_title_margin_left_layout_8_9',
1690 + [
1691 + 'default' => $this->defaults['single_doc_title_margin_left_layout_8_9'],
1692 + 'capability' => 'edit_theme_options',
1693 + 'transport' => 'postMessage',
1694 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1695 + ]
1696 + );
1305 1697
1306 - $this->customizer->add_control( new TitleControl(
1307 - $this->customizer, 'betterdocs_doc_single_toc_list_margin', [
1308 - 'type' => 'betterdocs-title',
1309 - 'section' => 'betterdocs_single_docs_settings',
1310 - 'settings' => 'betterdocs_doc_single_toc_list_margin',
1311 - 'label' => __( 'TOC List Margin', 'betterdocs' ),
1312 - 'priority' => 148,
1313 - 'input_attrs' => [
1314 - 'id' => 'betterdocs_doc_single_toc_list_margin',
1315 - 'class' => 'betterdocs-dimension'
1316 - ]
1317 - ] )
1318 - );
1698 + $this->customizer->add_control(
1699 + new DimensionControl(
1700 + $this->customizer,
1701 + 'single_doc_title_margin_left_layout_8_9',
1702 + [
1703 + 'type' => 'betterdocs-dimension',
1704 + 'section' => 'betterdocs_single_docs_settings',
1705 + 'settings' => 'single_doc_title_margin_left_layout_8_9',
1706 + 'label' => __( 'Left', 'betterdocs' ),
1707 + 'priority' => 126,
1708 + 'input_attrs' => [
1709 + 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1710 + ]
1711 + ]
1712 + )
1713 + );
1714 + }
1319 1715
1320 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_top', [
1321 - 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_top'],
1322 - 'capability' => 'edit_theme_options',
1323 - 'transport' => 'postMessage',
1324 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1325 - ] );
1716 + public function doc_single_article_summary_title() {
1717 + $this->customizer->add_setting(
1718 + 'betterdocs_doc_single_article_summary_title',
1719 + [
1720 + 'default' => $this->defaults['betterdocs_doc_single_article_summary_title'],
1721 + 'sanitize_callback' => 'esc_html'
1722 + ]
1723 + );
1326 1724
1327 - $this->customizer->add_control( new DimensionControl(
1328 - $this->customizer, 'betterdocs_doc_single_toc_list_margin_top', [
1329 - 'type' => 'betterdocs-dimension',
1330 - 'section' => 'betterdocs_single_docs_settings',
1331 - 'settings' => 'betterdocs_doc_single_toc_list_margin_top',
1332 - 'label' => __( 'Top', 'betterdocs' ),
1333 - 'priority' => 148,
1334 - 'input_attrs' => [
1335 - 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
1336 - ]
1337 - ] )
1338 - );
1725 + $this->customizer->add_control(
1726 + new SeparatorControl(
1727 + $this->customizer,
1728 + 'betterdocs_doc_single_article_summary_title',
1729 + [
1730 + 'label' => __( 'Doc Summary', 'betterdocs' ),
1731 + 'priority' => 130,
1732 + 'settings' => 'betterdocs_doc_single_article_summary_title',
1733 + 'section' => 'betterdocs_single_docs_settings'
1734 + ]
1735 + )
1736 + );
1737 + }
1339 1738
1340 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_right', [
1341 - 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_right'],
1342 - 'capability' => 'edit_theme_options',
1343 - 'transport' => 'postMessage',
1344 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1739 + public function article_summary_bg_color() {
1740 + $this->customizer->add_setting(
1741 + 'betterdocs_article_summary_bg_color',
1742 + [
1743 + 'capability' => 'edit_theme_options',
1744 + 'default' => $this->defaults['betterdocs_article_summary_bg_color'],
1745 + 'transport' => 'postMessage',
1746 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1747 + ]
1748 + );
1345 1749
1346 - ] );
1750 + $this->customizer->add_control(
1751 + new AlphaColorControl(
1752 + $this->customizer,
1753 + 'betterdocs_article_summary_bg_color',
1754 + [
1755 + 'label' => __( 'Background Color', 'betterdocs' ),
1756 + 'priority' => 130,
1757 + 'section' => 'betterdocs_single_docs_settings',
1758 + 'settings' => 'betterdocs_article_summary_bg_color'
1759 + ]
1760 + )
1761 + );
1762 + }
1347 1763
1348 - $this->customizer->add_control( new DimensionControl(
1349 - $this->customizer, 'betterdocs_doc_single_toc_list_margin_right', [
1350 - 'type' => 'betterdocs-dimension',
1351 - 'section' => 'betterdocs_single_docs_settings',
1352 - 'settings' => 'betterdocs_doc_single_toc_list_margin_right',
1353 - 'label' => __( 'Right', 'betterdocs' ),
1354 - 'priority' => 148,
1355 - 'input_attrs' => [
1356 - 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
1357 - ]
1358 - ] )
1359 - );
1764 + public function article_summary_border_color() {
1765 + $this->customizer->add_setting(
1766 + 'betterdocs_article_summary_border_color',
1767 + [
1768 + 'capability' => 'edit_theme_options',
1769 + 'default' => $this->defaults['betterdocs_article_summary_border_color'],
1770 + 'transport' => 'postMessage',
1771 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1772 + ]
1773 + );
1360 1774
1361 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_bottom', [
1362 - 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_bottom'],
1363 - 'capability' => 'edit_theme_options',
1364 - 'transport' => 'postMessage',
1365 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1775 + $this->customizer->add_control(
1776 + new AlphaColorControl(
1777 + $this->customizer,
1778 + 'betterdocs_article_summary_border_color',
1779 + [
1780 + 'label' => __( 'Border Color', 'betterdocs' ),
1781 + 'priority' => 130,
1782 + 'section' => 'betterdocs_single_docs_settings',
1783 + 'settings' => 'betterdocs_article_summary_border_color'
1784 + ]
1785 + )
1786 + );
1787 + }
1366 1788
1367 - ] );
1789 + public function article_summary_border_width() {
1790 + $this->customizer->add_setting(
1791 + 'betterdocs_article_summary_border_width',
1792 + [
1793 + 'default' => $this->defaults['betterdocs_article_summary_border_width'],
1794 + 'capability' => 'edit_theme_options',
1795 + 'transport' => 'postMessage',
1796 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1797 + ]
1798 + );
1368 1799
1369 - $this->customizer->add_control( new DimensionControl(
1370 - $this->customizer, 'betterdocs_doc_single_toc_list_margin_bottom', [
1371 - 'type' => 'betterdocs-dimension',
1372 - 'section' => 'betterdocs_single_docs_settings',
1373 - 'settings' => 'betterdocs_doc_single_toc_list_margin_bottom',
1374 - 'label' => __( 'Bottom', 'betterdocs' ),
1375 - 'priority' => 148,
1376 - 'input_attrs' => [
1377 - 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
1378 - ]
1379 - ] )
1380 - );
1800 + $this->customizer->add_control(
1801 + new RangeValueControl(
1802 + $this->customizer,
1803 + 'betterdocs_article_summary_border_width',
1804 + [
1805 + 'type' => 'betterdocs-range-value',
1806 + 'section' => 'betterdocs_single_docs_settings',
1807 + 'settings' => 'betterdocs_article_summary_border_width',
1808 + 'label' => __( 'Border Width', 'betterdocs' ),
1809 + 'priority' => 130,
1810 + 'input_attrs' => [
1811 + 'class' => '',
1812 + 'min' => 0,
1813 + 'max' => 10,
1814 + 'step' => 1,
1815 + 'suffix' => 'px'
1816 + ]
1817 + ]
1818 + )
1819 + );
1820 + }
1381 1821
1382 - $this->customizer->add_setting( 'betterdocs_doc_single_toc_list_margin_left', [
1383 - 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_left'],
1384 - 'capability' => 'edit_theme_options',
1385 - 'transport' => 'postMessage',
1386 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1822 + public function article_summary_border_radius() {
1823 + $this->customizer->add_setting(
1824 + 'betterdocs_article_summary_border_radius',
1825 + [
1826 + 'default' => $this->defaults['betterdocs_article_summary_border_radius'],
1827 + 'capability' => 'edit_theme_options',
1828 + 'transport' => 'postMessage',
1829 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1830 + ]
1831 + );
1387 1832
1388 - ] );
1833 + $this->customizer->add_control(
1834 + new RangeValueControl(
1835 + $this->customizer,
1836 + 'betterdocs_article_summary_border_radius',
1837 + [
1838 + 'type' => 'betterdocs-range-value',
1839 + 'section' => 'betterdocs_single_docs_settings',
1840 + 'settings' => 'betterdocs_article_summary_border_radius',
1841 + 'label' => __( 'Border Radius', 'betterdocs' ),
1842 + 'priority' => 130,
1843 + 'input_attrs' => [
1844 + 'class' => '',
1845 + 'min' => 0,
1846 + 'max' => 50,
1847 + 'step' => 1,
1848 + 'suffix' => 'px'
1849 + ]
1850 + ]
1851 + )
1852 + );
1853 + }
1389 1854
1390 - $this->customizer->add_control( new DimensionControl(
1391 - $this->customizer, 'betterdocs_doc_single_toc_list_margin_left', [
1392 - 'type' => 'betterdocs-dimension',
1393 - 'section' => 'betterdocs_single_docs_settings',
1394 - 'settings' => 'betterdocs_doc_single_toc_list_margin_left',
1395 - 'label' => __( 'Left', 'betterdocs' ),
1396 - 'priority' => 148,
1397 - 'input_attrs' => [
1398 - 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
1399 - ]
1400 - ] )
1401 - );
1402 - }
1855 + public function article_summary_title_bg_color() {
1856 + $this->customizer->add_setting(
1857 + 'betterdocs_article_summary_title_bg_color',
1858 + [
1859 + 'capability' => 'edit_theme_options',
1860 + 'default' => $this->defaults['betterdocs_article_summary_title_bg_color'],
1861 + 'transport' => 'postMessage',
1862 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1863 + ]
1864 + );
1403 1865
1404 - public function toc_list_number_color() {
1405 - $this->customizer->add_setting( 'betterdocs_toc_list_number_color', [
1406 - 'default' => $this->defaults['betterdocs_toc_list_number_color'],
1407 - 'capability' => 'edit_theme_options',
1408 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1409 - ] );
1866 + $this->customizer->add_control(
1867 + new AlphaColorControl(
1868 + $this->customizer,
1869 + 'betterdocs_article_summary_title_bg_color',
1870 + [
1871 + 'label' => __( 'Title Background Color', 'betterdocs' ),
1872 + 'priority' => 130,
1873 + 'section' => 'betterdocs_single_docs_settings',
1874 + 'settings' => 'betterdocs_article_summary_title_bg_color'
1875 + ]
1876 + )
1877 + );
1878 + }
1410 1879
1411 - $this->customizer->add_control(
1412 - new AlphaColorControl(
1413 - $this->customizer,
1414 - 'betterdocs_toc_list_number_color',
1415 - [
1416 - 'label' => __( 'List Number Color', 'betterdocs' ),
1417 - 'priority' => 153,
1418 - 'section' => 'betterdocs_single_docs_settings',
1419 - 'settings' => 'betterdocs_toc_list_number_color'
1420 - ]
1421 - )
1422 - );
1423 - }
1880 + public function article_summary_title_color() {
1881 + $this->customizer->add_setting(
1882 + 'betterdocs_article_summary_title_color',
1883 + [
1884 + 'capability' => 'edit_theme_options',
1885 + 'default' => $this->defaults['betterdocs_article_summary_title_color'],
1886 + 'transport' => 'postMessage',
1887 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1888 + ]
1889 + );
1424 1890
1425 - public function toc_list_number_font_size() {
1426 - $this->customizer->add_setting( 'betterdocs_toc_list_number_font_size', [
1427 - 'default' => $this->defaults['betterdocs_toc_list_number_font_size'],
1428 - 'capability' => 'edit_theme_options',
1429 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1891 + $this->customizer->add_control(
1892 + new AlphaColorControl(
1893 + $this->customizer,
1894 + 'betterdocs_article_summary_title_color',
1895 + [
1896 + 'label' => __( 'Title Color', 'betterdocs' ),
1897 + 'priority' => 130,
1898 + 'section' => 'betterdocs_single_docs_settings',
1899 + 'settings' => 'betterdocs_article_summary_title_color'
1900 + ]
1901 + )
1902 + );
1903 + }
1430 1904
1431 - ] );
1905 + public function article_summary_title_font_size() {
1906 + $this->customizer->add_setting(
1907 + 'betterdocs_article_summary_title_font_size',
1908 + [
1909 + 'default' => $this->defaults['betterdocs_article_summary_title_font_size'],
1910 + 'capability' => 'edit_theme_options',
1911 + 'transport' => 'postMessage',
1912 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1913 + ]
1914 + );
1432 1915
1433 - $this->customizer->add_control( new RangeValueControl(
1434 - $this->customizer, 'betterdocs_toc_list_number_font_size', [
1435 - 'type' => 'betterdocs-range-value',
1436 - 'section' => 'betterdocs_single_docs_settings',
1437 - 'settings' => 'betterdocs_toc_list_number_font_size',
1438 - 'label' => __( 'List Number Font Size', 'betterdocs' ),
1439 - 'priority' => 154,
1440 - 'input_attrs' => [
1441 - 'class' => '',
1442 - 'min' => 0,
1443 - 'max' => 50,
1444 - 'step' => 1,
1445 - 'suffix' => 'px' //optional suffix
1446 - ]
1447 - ] )
1448 - );
1449 - }
1916 + $this->customizer->add_control(
1917 + new RangeValueControl(
1918 + $this->customizer,
1919 + 'betterdocs_article_summary_title_font_size',
1920 + [
1921 + 'type' => 'betterdocs-range-value',
1922 + 'section' => 'betterdocs_single_docs_settings',
1923 + 'settings' => 'betterdocs_article_summary_title_font_size',
1924 + 'label' => __( 'Title Font Size', 'betterdocs' ),
1925 + 'priority' => 130,
1926 + 'input_attrs' => [
1927 + 'class' => '',
1928 + 'min' => 12,
1929 + 'max' => 32,
1930 + 'step' => 1,
1931 + 'suffix' => 'px'
1932 + ]
1933 + ]
1934 + )
1935 + );
1936 + }
1450 1937
1451 - public function toc_margin_bottom() {
1452 - $this->customizer->add_setting( 'betterdocs_toc_margin_bottom', [
1453 - 'default' => $this->defaults['betterdocs_toc_margin_bottom'],
1454 - 'capability' => 'edit_theme_options',
1455 - 'transport' => 'postMessage',
1456 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1938 + public function article_summary_content_color() {
1939 + $this->customizer->add_setting(
1940 + 'betterdocs_article_summary_content_color',
1941 + [
1942 + 'default' => $this->defaults['betterdocs_article_summary_content_color'],
1943 + 'transport' => 'postMessage',
1944 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1945 + ]
1946 + );
1457 1947
1458 - ] );
1948 + $this->customizer->add_control(
1949 + new AlphaColorControl(
1950 + $this->customizer,
1951 + 'betterdocs_article_summary_content_color',
1952 + [
1953 + 'label' => __( 'Content Color', 'betterdocs' ),
1954 + 'priority' => 130,
1955 + 'section' => 'betterdocs_single_docs_settings',
1956 + 'settings' => 'betterdocs_article_summary_content_color'
1957 + ]
1958 + )
1959 + );
1960 + }
1459 1961
1460 - $this->customizer->add_control( new RangeValueControl(
1461 - $this->customizer, 'betterdocs_toc_margin_bottom', [
1462 - 'type' => 'betterdocs-range-value',
1463 - 'section' => 'betterdocs_single_docs_settings',
1464 - 'settings' => 'betterdocs_toc_margin_bottom',
1465 - 'label' => __( 'TOC Margin Bottom', 'betterdocs' ),
1466 - 'priority' => 155,
1467 - 'input_attrs' => [
1468 - 'class' => '',
1469 - 'min' => 0,
1470 - 'max' => 500,
1471 - 'step' => 1,
1472 - 'suffix' => 'px' // optional suffix
1473 - ]
1474 - ] )
1475 - );
1476 - }
1962 + public function article_summary_content_font_size() {
1963 + $this->customizer->add_setting(
1964 + 'betterdocs_article_summary_content_font_size',
1965 + [
1966 + 'default' => $this->defaults['betterdocs_article_summary_content_font_size'],
1967 + 'capability' => 'edit_theme_options',
1968 + 'transport' => 'postMessage',
1969 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1970 + ]
1971 + );
1477 1972
1478 - public function doc_single_entry_content() {
1479 - $this->customizer->add_setting( 'betterdocs_doc_single_entry_content', [
1480 - 'default' => $this->defaults['betterdocs_doc_single_entry_content'],
1481 - 'sanitize_callback' => 'esc_html'
1482 - ] );
1973 + $this->customizer->add_control(
1974 + new RangeValueControl(
1975 + $this->customizer,
1976 + 'betterdocs_article_summary_content_font_size',
1977 + [
1978 + 'type' => 'betterdocs-range-value',
1979 + 'section' => 'betterdocs_single_docs_settings',
1980 + 'settings' => 'betterdocs_article_summary_content_font_size',
1981 + 'label' => __( 'Content Font Size', 'betterdocs' ),
1982 + 'priority' => 130,
1983 + 'input_attrs' => [
1984 + 'class' => '',
1985 + 'min' => 10,
1986 + 'max' => 24,
1987 + 'step' => 1,
1988 + 'suffix' => 'px'
1989 + ]
1990 + ]
1991 + )
1992 + );
1993 + }
1483 1994
1484 - $this->customizer->add_control( new SeparatorControl(
1485 - $this->customizer, 'betterdocs_doc_single_entry_content', [
1486 - 'label' => __( 'Entry Content', 'betterdocs' ),
1487 - 'priority' => 156,
1488 - 'settings' => 'betterdocs_doc_single_entry_content',
1489 - 'section' => 'betterdocs_single_docs_settings'
1490 - ] )
1491 - );
1492 - }
1995 + public function doc_single_toc_title() {
1996 + $this->customizer->add_setting(
1997 + 'betterdocs_doc_single_toc_title',
1998 + [
1999 + 'default' => $this->defaults['betterdocs_doc_single_toc_title'],
2000 + 'sanitize_callback' => 'esc_html'
2001 + ]
2002 + );
1493 2003
1494 - public function single_content_font_size() {
1495 - $this->customizer->add_setting( 'betterdocs_single_content_font_size', [
1496 - 'default' => $this->defaults['betterdocs_single_content_font_size'],
1497 - 'capability' => 'edit_theme_options',
1498 - 'transport' => 'postMessage',
1499 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2004 + $this->customizer->add_control(
2005 + new SeparatorControl(
2006 + $this->customizer,
2007 + 'betterdocs_doc_single_toc_title',
2008 + [
2009 + 'label' => __( 'Table of Contents', 'betterdocs' ),
2010 + 'priority' => 132,
2011 + 'settings' => 'betterdocs_doc_single_toc_title',
2012 + 'section' => 'betterdocs_single_docs_settings'
2013 + ]
2014 + )
2015 + );
2016 + }
1500 2017
1501 - ] );
2018 + public function sticky_toc_width() {
2019 + $this->customizer->add_setting(
2020 + 'betterdocs_sticky_toc_width',
2021 + [
2022 + 'default' => $this->defaults['betterdocs_sticky_toc_width'],
2023 + 'capability' => 'edit_theme_options',
2024 + 'transport' => 'postMessage',
2025 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1502 2026
1503 - $this->customizer->add_control( new RangeValueControl(
1504 - $this->customizer, 'betterdocs_single_content_font_size', [
1505 - 'type' => 'betterdocs-range-value',
1506 - 'section' => 'betterdocs_single_docs_settings',
1507 - 'settings' => 'betterdocs_single_content_font_size',
1508 - 'label' => __( 'Font Size', 'betterdocs' ),
1509 - 'priority' => 157,
1510 - 'input_attrs' => [
1511 - 'class' => '',
1512 - 'min' => 0,
1513 - 'max' => 50,
1514 - 'step' => 1,
1515 - 'suffix' => 'px' // optional suffix
1516 - ]
1517 - ] )
1518 - );
1519 - }
2027 + ]
2028 + );
1520 2029
1521 - public function single_content_font_color() {
1522 - $this->customizer->add_setting( 'betterdocs_single_content_font_color', [
1523 - 'default' => $this->defaults['betterdocs_single_content_font_color'],
1524 - 'capability' => 'edit_theme_options',
1525 - 'transport' => 'postMessage',
1526 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1527 - ] );
2030 + $this->customizer->add_control(
2031 + new RangeValueControl(
2032 + $this->customizer,
2033 + 'betterdocs_sticky_toc_width',
2034 + [
2035 + 'type' => 'betterdocs-range-value',
2036 + 'section' => 'betterdocs_single_docs_settings',
2037 + 'settings' => 'betterdocs_sticky_toc_width',
2038 + 'label' => __( 'Sticky Toc Width', 'betterdocs' ),
2039 + 'priority' => 133,
2040 + 'input_attrs' => [
2041 + 'class' => '',
2042 + 'min' => 100,
2043 + 'max' => 500,
2044 + 'step' => 1,
2045 + 'suffix' => 'px' //optional suffix
2046 + ]
2047 + ]
2048 + )
2049 + );
2050 + }
1528 2051
1529 - $this->customizer->add_control(
1530 - new AlphaColorControl(
1531 - $this->customizer,
1532 - 'betterdocs_single_content_font_color',
1533 - [
1534 - 'label' => __( 'Font Color', 'betterdocs' ),
1535 - 'priority' => 158,
1536 - 'section' => 'betterdocs_single_docs_settings',
1537 - 'settings' => 'betterdocs_single_content_font_color'
1538 - ]
1539 - )
1540 - );
1541 - }
2052 + public function sticky_toc_zindex() {
2053 + $this->customizer->add_setting(
2054 + 'betterdocs_sticky_toc_zindex',
2055 + [
2056 + 'default' => $this->defaults['betterdocs_sticky_toc_zindex'],
2057 + 'capability' => 'edit_theme_options',
2058 + 'transport' => 'postMessage',
2059 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2060 + ]
2061 + );
1542 2062
1543 - public function social_share_title() {
1544 - $this->customizer->add_setting( 'betterdocs_social_share_title', [
1545 - 'default' => '',
1546 - 'sanitize_callback' => 'esc_html'
1547 - ] );
2063 + $this->customizer->add_control(
2064 + new NumberControl(
2065 + $this->customizer,
2066 + 'betterdocs_sticky_toc_zindex',
2067 + [
2068 + 'type' => 'betterdocs-number',
2069 + 'section' => 'betterdocs_single_docs_settings',
2070 + 'settings' => 'betterdocs_sticky_toc_zindex',
2071 + 'label' => __( 'Sticky Toc z-index', 'betterdocs' ),
2072 + 'priority' => 134
2073 + ]
2074 + )
2075 + );
2076 + }
1548 2077
1549 - $this->customizer->add_control(
1550 - new SeparatorControl(
1551 - $this->customizer, 'betterdocs_social_share_title', [
1552 - 'label' => __( 'Social Share', 'betterdocs' ),
1553 - 'priority' => 164,
1554 - 'settings' => 'betterdocs_social_share_title',
1555 - 'section' => 'betterdocs_single_docs_settings'
1556 - ]
1557 - )
1558 - );
1559 - }
2078 + public function sticky_toc_margin_top() {
2079 + $this->customizer->add_setting(
2080 + 'betterdocs_sticky_toc_margin_top',
2081 + [
2082 + 'default' => $this->defaults['betterdocs_sticky_toc_margin_top'],
2083 + 'capability' => 'edit_theme_options',
2084 + 'transport' => 'postMessage',
2085 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1560 2086
1561 - public function post_social_share() {
1562 - $this->customizer->add_setting( 'betterdocs_post_social_share', [
1563 - 'default' => $this->defaults['betterdocs_post_social_share'],
1564 - 'capability' => 'edit_theme_options',
1565 - 'sanitize_callback' => [$this->sanitizer, 'checkbox']
1566 - ] );
2087 + ]
2088 + );
1567 2089
1568 - $this->customizer->add_control(
1569 - new ToggleControl(
1570 - $this->customizer, 'betterdocs_post_social_share', [
1571 - 'label' => __( 'Enable Social Sharing?', 'betterdocs' ),
1572 - 'priority' => 165,
1573 - 'section' => 'betterdocs_single_docs_settings',
1574 - 'settings' => 'betterdocs_post_social_share',
1575 - 'type' => 'light' // light, ios, flat
1576 - ]
1577 - )
1578 - );
1579 - }
2090 + $this->customizer->add_control(
2091 + new RangeValueControl(
2092 + $this->customizer,
2093 + 'betterdocs_sticky_toc_margin_top',
2094 + [
2095 + 'type' => 'betterdocs-range-value',
2096 + 'section' => 'betterdocs_single_docs_settings',
2097 + 'settings' => 'betterdocs_sticky_toc_margin_top',
2098 + 'label' => __( 'Sticky Toc Margin Top', 'betterdocs' ),
2099 + 'priority' => 135,
2100 + 'input_attrs' => [
2101 + 'class' => '',
2102 + 'min' => 0,
2103 + 'max' => 500,
2104 + 'step' => 1,
2105 + 'suffix' => 'px' //optional suffix
2106 + ]
2107 + ]
2108 + )
2109 + );
2110 + }
1580 2111
1581 - public function social_sharing_text() {
1582 - $this->customizer->add_setting( 'betterdocs_social_sharing_text', [
1583 - 'default' => $this->defaults['betterdocs_social_sharing_text'],
1584 - 'capability' => 'edit_theme_options',
1585 - 'sanitize_callback' => 'esc_html'
1586 - ] );
2112 + public function toc_bg_color() {
2113 + $this->customizer->add_setting(
2114 + 'betterdocs_toc_bg_color',
2115 + [
2116 + 'capability' => 'edit_theme_options',
2117 + 'default' => $this->defaults['betterdocs_toc_bg_color'],
2118 + 'transport' => 'postMessage',
2119 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2120 + ]
2121 + );
1587 2122
1588 - $this->customizer->add_control(
1589 - new SelectControl(
1590 - $this->customizer,
1591 - 'betterdocs_social_sharing_text',
1592 - [
1593 - 'label' => __( 'Social Sharing Title', 'betterdocs' ),
1594 - 'priority' => 166,
1595 - 'section' => 'betterdocs_single_docs_settings',
1596 - 'settings' => 'betterdocs_social_sharing_text',
1597 - 'type' => 'text'
1598 - ]
1599 - )
1600 - );
1601 - }
2123 + $this->customizer->add_control(
2124 + new AlphaColorControl(
2125 + $this->customizer,
2126 + 'betterdocs_toc_bg_color',
2127 + [
2128 + 'label' => __( 'Background Color', 'betterdocs' ),
2129 + 'priority' => 136,
2130 + 'section' => 'betterdocs_single_docs_settings',
2131 + 'settings' => 'betterdocs_toc_bg_color'
2132 + ]
2133 + )
2134 + );
2135 + }
1602 2136
1603 - public function post_social_share_text_color() {
1604 - $this->customizer->add_setting( 'betterdocs_post_social_share_text_color', [
1605 - 'default' => $this->defaults['betterdocs_post_social_share_text_color'],
1606 - 'capability' => 'edit_theme_options',
1607 - 'transport' => 'postMessage',
1608 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1609 - ] );
2137 + public function doc_single_toc_padding() {
2138 + $this->customizer->add_setting(
2139 + 'betterdocs_doc_single_toc_padding',
2140 + [
2141 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding'],
2142 + 'capability' => 'edit_theme_options',
2143 + 'transport' => 'postMessage',
2144 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1610 2145
1611 - $this->customizer->add_control(
1612 - new AlphaColorControl(
1613 - $this->customizer,
1614 - 'betterdocs_post_social_share_text_color',
1615 - [
1616 - 'label' => __( 'Title Text Color', 'betterdocs' ),
1617 - 'priority' => 167,
1618 - 'section' => 'betterdocs_single_docs_settings',
1619 - 'settings' => 'betterdocs_post_social_share_text_color'
1620 - ]
1621 - )
1622 - );
1623 - }
2146 + ]
2147 + );
1624 2148
1625 - public function post_social_share_facebook() {
1626 - $this->customizer->add_setting( 'betterdocs_post_social_share_facebook', [
1627 - 'default' => $this->defaults['betterdocs_post_social_share_facebook'],
1628 - 'capability' => 'edit_theme_options',
1629 - 'sanitize_callback' => [$this->sanitizer, 'checkbox']
1630 - ] );
2149 + $this->customizer->add_control(
2150 + new TitleControl(
2151 + $this->customizer,
2152 + 'betterdocs_doc_single_toc_padding',
2153 + [
2154 + 'type' => 'betterdocs-title',
2155 + 'section' => 'betterdocs_single_docs_settings',
2156 + 'settings' => 'betterdocs_doc_single_toc_padding',
2157 + 'label' => __( 'Content Area Padding', 'betterdocs' ),
2158 + 'priority' => 137,
2159 + 'input_attrs' => [
2160 + 'id' => 'betterdocs_doc_single_toc_padding',
2161 + 'class' => 'betterdocs-dimension'
2162 + ]
2163 + ]
2164 + )
2165 + );
1631 2166
1632 - $this->customizer->add_control( new ToggleControl(
1633 - $this->customizer, 'betterdocs_post_social_share_facebook', [
1634 - 'label' => __( 'Facebook Sharing', 'betterdocs' ),
1635 - 'priority' => 168,
1636 - 'section' => 'betterdocs_single_docs_settings',
1637 - 'settings' => 'betterdocs_post_social_share_facebook',
1638 - 'type' => 'light' // light, ios, flat
1639 - ] )
1640 - );
1641 - }
2167 + $this->customizer->add_setting(
2168 + 'betterdocs_doc_single_toc_padding_top',
2169 + [
2170 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_top'],
2171 + 'capability' => 'edit_theme_options',
2172 + 'transport' => 'postMessage',
2173 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2174 + ]
2175 + );
1642 2176
1643 - public function post_social_share_twitter() {
1644 - $this->customizer->add_setting( 'betterdocs_post_social_share_twitter', [
1645 - 'default' => $this->defaults['betterdocs_post_social_share_twitter'],
1646 - 'capability' => 'edit_theme_options',
1647 - 'sanitize_callback' => [$this->sanitizer, 'checkbox']
1648 - ] );
2177 + $this->customizer->add_control(
2178 + new DimensionControl(
2179 + $this->customizer,
2180 + 'betterdocs_doc_single_toc_padding_top',
2181 + [
2182 + 'type' => 'betterdocs-dimension',
2183 + 'section' => 'betterdocs_single_docs_settings',
2184 + 'settings' => 'betterdocs_doc_single_toc_padding_top',
2185 + 'label' => __( 'Top', 'betterdocs' ),
2186 + 'priority' => 137,
2187 + 'input_attrs' => [
2188 + 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
2189 + ]
2190 + ]
2191 + )
2192 + );
1649 2193
1650 - $this->customizer->add_control( new ToggleControl(
1651 - $this->customizer, 'betterdocs_post_social_share_twitter', [
1652 - 'label' => __( 'Twitter Sharing', 'betterdocs' ),
1653 - 'priority' => 169,
1654 - 'section' => 'betterdocs_single_docs_settings',
1655 - 'settings' => 'betterdocs_post_social_share_twitter',
1656 - 'type' => 'light' // light, ios, flat
1657 - ] )
1658 - );
1659 - }
2194 + $this->customizer->add_setting(
2195 + 'betterdocs_doc_single_toc_padding_right',
2196 + [
2197 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_right'],
2198 + 'capability' => 'edit_theme_options',
2199 + 'transport' => 'postMessage',
2200 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1660 2201
1661 - public function post_social_share_linkedin() {
1662 - $this->customizer->add_setting( 'betterdocs_post_social_share_linkedin', [
1663 - 'default' => $this->defaults['betterdocs_post_social_share_linkedin'],
1664 - 'capability' => 'edit_theme_options',
1665 - 'sanitize_callback' => [$this->sanitizer, 'checkbox']
1666 - ] );
2202 + ]
2203 + );
1667 2204
1668 - $this->customizer->add_control( new ToggleControl( $this->customizer, 'betterdocs_post_social_share_linkedin', [
1669 - 'label' => __( 'Linkedin Sharing', 'betterdocs' ),
1670 - 'priority' => 170,
1671 - 'section' => 'betterdocs_single_docs_settings',
1672 - 'settings' => 'betterdocs_post_social_share_linkedin',
1673 - 'type' => 'light' // light, ios, flat
1674 - ] ) );
1675 - }
2205 + $this->customizer->add_control(
2206 + new DimensionControl(
2207 + $this->customizer,
2208 + 'betterdocs_doc_single_toc_padding_right',
2209 + [
2210 + 'type' => 'betterdocs-dimension',
2211 + 'section' => 'betterdocs_single_docs_settings',
2212 + 'settings' => 'betterdocs_doc_single_toc_padding_right',
2213 + 'label' => __( 'Right', 'betterdocs' ),
2214 + 'priority' => 137,
2215 + 'input_attrs' => [
2216 + 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
2217 + ]
2218 + ]
2219 + )
2220 + );
1676 2221
1677 - public function post_social_share_pinterest() {
1678 - $this->customizer->add_setting( 'betterdocs_post_social_share_pinterest', [
1679 - 'default' => $this->defaults['betterdocs_post_social_share_pinterest'],
1680 - 'capability' => 'edit_theme_options',
1681 - 'sanitize_callback' => [$this->sanitizer, 'checkbox']
1682 - ] );
2222 + $this->customizer->add_setting(
2223 + 'betterdocs_doc_single_toc_padding_bottom',
2224 + [
2225 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_bottom'],
2226 + 'capability' => 'edit_theme_options',
2227 + 'transport' => 'postMessage',
2228 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1683 2229
1684 - $this->customizer->add_control( new ToggleControl( $this->customizer, 'betterdocs_post_social_share_pinterest', [
1685 - 'label' => __( 'Pinterest Sharing', 'betterdocs' ),
1686 - 'priority' => 171,
1687 - 'section' => 'betterdocs_single_docs_settings',
1688 - 'settings' => 'betterdocs_post_social_share_pinterest',
1689 - 'type' => 'light' // light, ios, flat
1690 - ] ) );
1691 - }
2230 + ]
2231 + );
1692 2232
1693 - public function doc_single_entry_footer() {
1694 - $this->customizer->add_setting( 'betterdocs_doc_single_entry_footer', [
1695 - 'default' => $this->defaults['betterdocs_doc_single_entry_footer'],
1696 - 'sanitize_callback' => 'esc_html'
1697 - ] );
2233 + $this->customizer->add_control(
2234 + new DimensionControl(
2235 + $this->customizer,
2236 + 'betterdocs_doc_single_toc_padding_bottom',
2237 + [
2238 + 'type' => 'betterdocs-dimension',
2239 + 'section' => 'betterdocs_single_docs_settings',
2240 + 'settings' => 'betterdocs_doc_single_toc_padding_bottom',
2241 + 'label' => __( 'Bottom', 'betterdocs' ),
2242 + 'priority' => 137,
2243 + 'input_attrs' => [
2244 + 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
2245 + ]
2246 + ]
2247 + )
2248 + );
1698 2249
1699 - $this->customizer->add_control( new SeparatorControl(
1700 - $this->customizer, 'betterdocs_doc_single_entry_footer', [
1701 - 'label' => __( 'Entry Footer', 'betterdocs' ),
1702 - 'priority' => 172,
1703 - 'settings' => 'betterdocs_doc_single_entry_footer',
1704 - 'section' => 'betterdocs_single_docs_settings'
1705 - ] )
1706 - );
1707 - }
2250 + $this->customizer->add_setting(
2251 + 'betterdocs_doc_single_toc_padding_left',
2252 + [
2253 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_left'],
2254 + 'capability' => 'edit_theme_options',
2255 + 'transport' => 'postMessage',
2256 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1708 2257
1709 - public function single_doc_feedback_icon_font_size() {
1710 - $this->customizer->add_setting( 'betterdocs_single_doc_feedback_icon_font_size', [
1711 - 'default' => $this->defaults['betterdocs_single_doc_feedback_icon_font_size'],
1712 - 'capability' => 'edit_theme_options',
1713 - 'transport' => 'postMessage',
1714 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2258 + ]
2259 + );
1715 2260
1716 - ] );
2261 + $this->customizer->add_control(
2262 + new DimensionControl(
2263 + $this->customizer,
2264 + 'betterdocs_doc_single_toc_padding_left',
2265 + [
2266 + 'type' => 'betterdocs-dimension',
2267 + 'section' => 'betterdocs_single_docs_settings',
2268 + 'settings' => 'betterdocs_doc_single_toc_padding_left',
2269 + 'label' => __( 'Left', 'betterdocs' ),
2270 + 'priority' => 137,
2271 + 'input_attrs' => [
2272 + 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
2273 + ]
2274 + ]
2275 + )
2276 + );
2277 + }
1717 2278
1718 - $this->customizer->add_control( new RangeValueControl(
1719 - $this->customizer, 'betterdocs_single_doc_feedback_icon_font_size', [
1720 - 'type' => 'betterdocs-range-value',
1721 - 'section' => 'betterdocs_single_docs_settings',
1722 - 'settings' => 'betterdocs_single_doc_feedback_icon_font_size',
1723 - 'label' => __( 'Feedback Icon Size', 'betterdocs' ),
1724 - 'priority' => 173,
1725 - 'input_attrs' => [
1726 - 'class' => '',
1727 - 'min' => 0,
1728 - 'max' => 100,
1729 - 'step' => 1,
1730 - 'suffix' => 'px' //optional suffix
1731 - ]
1732 - ] )
1733 - );
1734 - }
2279 + public function doc_single_toc_margin() {
2280 + $this->customizer->add_setting(
2281 + 'betterdocs_doc_single_toc_margin',
2282 + [
2283 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin'],
2284 + 'capability' => 'edit_theme_options',
2285 + 'transport' => 'postMessage',
2286 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2287 + ]
2288 + );
1735 2289
1736 - public function single_doc_feedback_icon() {
1737 - $this->customizer->add_setting( 'betterdocs_single_doc_feedback_icon', [
1738 - 'default' => $this->defaults['betterdocs_single_doc_feedback_icon'],
1739 - 'capability' => 'edit_theme_options'
1740 - ] );
2290 + $this->customizer->add_control(
2291 + new TitleControl(
2292 + $this->customizer,
2293 + 'betterdocs_doc_single_toc_margin',
2294 + [
2295 + 'type' => 'betterdocs-title',
2296 + 'section' => 'betterdocs_single_docs_settings',
2297 + 'settings' => 'betterdocs_doc_single_toc_margin',
2298 + 'label' => __( 'Content Area Margin', 'betterdocs' ),
2299 + 'priority' => 141,
2300 + 'input_attrs' => [
2301 + 'id' => 'betterdocs_doc_single_toc_margin',
2302 + 'class' => 'betterdocs-dimension'
2303 + ]
2304 + ]
2305 + )
2306 + );
1741 2307
1742 - $this->customizer->add_control( new WP_Customize_Image_Control(
1743 - $this->customizer, 'betterdocs_single_doc_feedback_icon', [
1744 - 'section' => 'betterdocs_single_docs_settings',
1745 - 'settings' => 'betterdocs_single_doc_feedback_icon',
1746 - 'label' => __( 'Feedback Icon', 'betterdocs' ),
1747 - 'priority' => 173
1748 - ] )
1749 - );
1750 - }
2308 + $this->customizer->add_setting(
2309 + 'betterdocs_doc_single_toc_margin_top',
2310 + [
2311 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_top'],
2312 + 'capability' => 'edit_theme_options',
2313 + 'transport' => 'postMessage',
2314 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2315 + ]
2316 + );
1751 2317
1752 - public function single_doc_feedback_link_color() {
1753 - $this->customizer->add_setting( 'betterdocs_single_doc_feedback_link_color', [
1754 - 'default' => $this->defaults['betterdocs_single_doc_feedback_link_color'],
1755 - 'capability' => 'edit_theme_options',
1756 - 'transport' => 'postMessage',
1757 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1758 - ] );
2318 + $this->customizer->add_control(
2319 + new DimensionControl(
2320 + $this->customizer,
2321 + 'betterdocs_doc_single_toc_margin_top',
2322 + [
2323 + 'type' => 'betterdocs-dimension',
2324 + 'section' => 'betterdocs_single_docs_settings',
2325 + 'settings' => 'betterdocs_doc_single_toc_margin_top',
2326 + 'label' => __( 'Top', 'betterdocs' ),
2327 + 'priority' => 141,
2328 + 'input_attrs' => [
2329 + 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
2330 + ]
2331 + ]
2332 + )
2333 + );
1759 2334
1760 - $this->customizer->add_control(
1761 - new AlphaColorControl(
1762 - $this->customizer,
1763 - 'betterdocs_single_doc_feedback_link_color',
1764 - [
1765 - 'label' => __( 'Feedback Link Color', 'betterdocs' ),
1766 - 'priority' => 174,
1767 - 'section' => 'betterdocs_single_docs_settings',
1768 - 'settings' => 'betterdocs_single_doc_feedback_link_color'
1769 - ]
1770 - )
1771 - );
1772 - }
2335 + $this->customizer->add_setting(
2336 + 'betterdocs_doc_single_toc_margin_right',
2337 + [
2338 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_right'],
2339 + 'capability' => 'edit_theme_options',
2340 + 'transport' => 'postMessage',
2341 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2342 + ]
2343 + );
1773 2344
1774 - public function single_doc_feedback_link_hover_color() {
1775 - $this->customizer->add_setting( 'betterdocs_single_doc_feedback_link_hover_color', [
1776 - 'default' => $this->defaults['betterdocs_single_doc_feedback_link_hover_color'],
1777 - 'capability' => 'edit_theme_options',
1778 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1779 - ] );
2345 + $this->customizer->add_control(
2346 + new DimensionControl(
2347 + $this->customizer,
2348 + 'betterdocs_doc_single_toc_margin_right',
2349 + [
2350 + 'type' => 'betterdocs-dimension',
2351 + 'section' => 'betterdocs_single_docs_settings',
2352 + 'settings' => 'betterdocs_doc_single_toc_margin_right',
2353 + 'label' => __( 'Right', 'betterdocs' ),
2354 + 'priority' => 141,
2355 + 'input_attrs' => [
2356 + 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
2357 + ]
2358 + ]
2359 + )
2360 + );
1780 2361
1781 - $this->customizer->add_control(
1782 - new AlphaColorControl(
1783 - $this->customizer,
1784 - 'betterdocs_single_doc_feedback_link_hover_color',
1785 - [
1786 - 'label' => __( 'Feedback Link Hover Color', 'betterdocs' ),
1787 - 'priority' => 175,
1788 - 'section' => 'betterdocs_single_docs_settings',
1789 - 'settings' => 'betterdocs_single_doc_feedback_link_hover_color'
1790 - ]
1791 - )
1792 - );
1793 - }
2362 + $this->customizer->add_setting(
2363 + 'betterdocs_doc_single_toc_margin_bottom',
2364 + [
2365 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_bottom'],
2366 + 'capability' => 'edit_theme_options',
2367 + 'transport' => 'postMessage',
2368 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2369 + ]
2370 + );
1794 2371
1795 - public function single_doc_feedback_link_font_size() {
1796 - $this->customizer->add_setting( 'betterdocs_single_doc_feedback_link_font_size', [
1797 - 'default' => $this->defaults['betterdocs_single_doc_feedback_link_font_size'],
1798 - 'capability' => 'edit_theme_options',
1799 - 'transport' => 'postMessage',
1800 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2372 + $this->customizer->add_control(
2373 + new DimensionControl(
2374 + $this->customizer,
2375 + 'betterdocs_doc_single_toc_margin_bottom',
2376 + [
2377 + 'type' => 'betterdocs-dimension',
2378 + 'section' => 'betterdocs_single_docs_settings',
2379 + 'settings' => 'betterdocs_doc_single_toc_margin_bottom',
2380 + 'label' => __( 'Bottom', 'betterdocs' ),
2381 + 'priority' => 141,
2382 + 'input_attrs' => [
2383 + 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
2384 + ]
2385 + ]
2386 + )
2387 + );
1801 2388
1802 - ] );
2389 + $this->customizer->add_setting(
2390 + 'betterdocs_doc_single_toc_margin_left',
2391 + [
2392 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_left'],
2393 + 'capability' => 'edit_theme_options',
2394 + 'transport' => 'postMessage',
2395 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2396 + ]
2397 + );
1803 2398
1804 - $this->customizer->add_control( new RangeValueControl(
1805 - $this->customizer, 'betterdocs_single_doc_feedback_link_font_size', [
1806 - 'type' => 'betterdocs-range-value',
1807 - 'section' => 'betterdocs_single_docs_settings',
1808 - 'settings' => 'betterdocs_single_doc_feedback_link_font_size',
1809 - 'label' => __( 'Feedback Link Font Size', 'betterdocs' ),
1810 - 'priority' => 175,
1811 - 'input_attrs' => [
1812 - 'class' => '',
1813 - 'min' => 0,
1814 - 'max' => 50,
1815 - 'step' => 1,
1816 - 'suffix' => 'px' //optional suffix
1817 - ]
1818 - ] )
1819 - );
1820 - }
2399 + $this->customizer->add_control(
2400 + new DimensionControl(
2401 + $this->customizer,
2402 + 'betterdocs_doc_single_toc_margin_left',
2403 + [
2404 + 'type' => 'betterdocs-dimension',
2405 + 'section' => 'betterdocs_single_docs_settings',
2406 + 'settings' => 'betterdocs_doc_single_toc_margin_left',
2407 + 'label' => __( 'Left', 'betterdocs' ),
2408 + 'priority' => 141,
2409 + 'input_attrs' => [
2410 + 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
2411 + ]
2412 + ]
2413 + )
2414 + );
2415 + }
1821 2416
1822 - public function feedback_form_title_tag() {
1823 - $this->customizer->add_setting( 'betterdocs_feedback_form_title_tag', [
1824 - 'default' => $this->defaults['betterdocs_feedback_form_title_tag'],
1825 - 'capability' => 'edit_theme_options',
1826 - 'sanitize_callback' => [$this->sanitizer, 'select']
1827 - ] );
2417 + public function toc_title_color() {
2418 + $this->customizer->add_setting(
2419 + 'betterdocs_toc_title_color',
2420 + [
2421 + 'capability' => 'edit_theme_options',
2422 + 'default' => $this->defaults['betterdocs_toc_title_color'],
2423 + 'transport' => 'postMessage',
2424 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2425 + ]
2426 + );
1828 2427
1829 - $this->customizer->add_control(
1830 - new WP_Customize_Control(
1831 - $this->customizer,
1832 - 'betterdocs_feedback_form_title_tag',
1833 - [
1834 - 'label' => __( 'Feedback Form Title Tag', 'betterdocs' ),
1835 - 'section' => 'betterdocs_single_docs_settings',
1836 - 'settings' => 'betterdocs_feedback_form_title_tag',
1837 - 'priority' => 175,
1838 - 'type' => 'select',
1839 - 'choices' => [
1840 - 'h1' => 'h1',
1841 - 'h2' => 'h2',
1842 - 'h3' => 'h3',
1843 - 'h4' => 'h4',
1844 - 'h5' => 'h5',
1845 - 'h6' => 'h6'
1846 - ]
1847 - ]
1848 - )
1849 - );
1850 - }
2428 + $this->customizer->add_control(
2429 + new AlphaColorControl(
2430 + $this->customizer,
2431 + 'betterdocs_toc_title_color',
2432 + [
2433 + 'label' => __( 'Title Color', 'betterdocs' ),
2434 + 'priority' => 142,
2435 + 'section' => 'betterdocs_single_docs_settings',
2436 + 'settings' => 'betterdocs_toc_title_color'
2437 + ]
2438 + )
2439 + );
2440 + }
1851 2441
1852 - public function single_doc_feedback_title_font_size() {
1853 - $this->customizer->add_setting( 'betterdocs_single_doc_feedback_title_font_size', [
1854 - 'default' => $this->defaults['betterdocs_single_doc_feedback_title_font_size'],
1855 - 'capability' => 'edit_theme_options',
1856 - 'transport' => 'postMessage',
1857 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2442 + public function toc_title_font_size() {
2443 + $this->customizer->add_setting(
2444 + 'betterdocs_toc_title_font_size',
2445 + [
2446 + 'default' => $this->defaults['betterdocs_toc_title_font_size'],
2447 + 'capability' => 'edit_theme_options',
2448 + 'transport' => 'postMessage',
2449 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1858 2450
1859 - ] );
2451 + ]
2452 + );
1860 2453
1861 - $this->customizer->add_control( new RangeValueControl(
1862 - $this->customizer, 'betterdocs_single_doc_feedback_title_font_size', [
1863 - 'type' => 'betterdocs-range-value',
1864 - 'section' => 'betterdocs_single_docs_settings',
1865 - 'settings' => 'betterdocs_single_doc_feedback_title_font_size',
1866 - 'label' => __( 'Feedback Form Title Font Size', 'betterdocs' ),
1867 - 'priority' => 175,
1868 - 'input_attrs' => [
1869 - 'class' => '',
1870 - 'min' => 0,
1871 - 'max' => 100,
1872 - 'step' => 1,
1873 - 'suffix' => 'px' //optional suffix
1874 - ]
1875 - ] )
1876 - );
1877 - }
2454 + $this->customizer->add_control(
2455 + new RangeValueControl(
2456 + $this->customizer,
2457 + 'betterdocs_toc_title_font_size',
2458 + [
2459 + 'type' => 'betterdocs-range-value',
2460 + 'section' => 'betterdocs_single_docs_settings',
2461 + 'settings' => 'betterdocs_toc_title_font_size',
2462 + 'label' => __( 'Title Font Size', 'betterdocs' ),
2463 + 'priority' => 143,
2464 + 'input_attrs' => [
2465 + 'class' => '',
2466 + 'min' => 0,
2467 + 'max' => 50,
2468 + 'step' => 1,
2469 + 'suffix' => 'px' //optional suffix
2470 + ]
2471 + ]
2472 + )
2473 + );
2474 + }
1878 2475
1879 - public function single_doc_feedback_title_color() {
1880 - $this->customizer->add_setting( 'betterdocs_single_doc_feedback_title_color', [
1881 - 'default' => $this->defaults['betterdocs_single_doc_feedback_title_color'],
1882 - 'capability' => 'edit_theme_options',
1883 - 'transport' => 'postMessage',
1884 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1885 - ] );
2476 + public function toc_list_item_color() {
2477 + $this->customizer->add_setting(
2478 + 'betterdocs_toc_list_item_color',
2479 + [
2480 + 'default' => $this->defaults['betterdocs_toc_list_item_color'],
2481 + 'transport' => 'postMessage',
2482 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2483 + ]
2484 + );
1886 2485
1887 - $this->customizer->add_control(
1888 - new AlphaColorControl(
1889 - $this->customizer,
1890 - 'betterdocs_single_doc_feedback_title_color',
1891 - [
1892 - 'label' => __( 'Feedback Form Title Color', 'betterdocs' ),
1893 - 'priority' => 175,
1894 - 'section' => 'betterdocs_single_docs_settings',
1895 - 'settings' => 'betterdocs_single_doc_feedback_title_color'
1896 - ]
1897 - )
1898 - );
1899 - }
2486 + $this->customizer->add_control(
2487 + new AlphaColorControl(
2488 + $this->customizer,
2489 + 'betterdocs_toc_list_item_color',
2490 + [
2491 + 'label' => __( 'List Item Color', 'betterdocs' ),
2492 + 'priority' => 144,
2493 + 'section' => 'betterdocs_single_docs_settings',
2494 + 'settings' => 'betterdocs_toc_list_item_color'
2495 + ]
2496 + )
2497 + );
2498 + }
1900 2499
1901 - public function single_doc_navigation_color() {
1902 - $this->customizer->add_setting( 'betterdocs_single_doc_navigation_color', [
1903 - 'default' => $this->defaults['betterdocs_single_doc_navigation_color'],
1904 - 'capability' => 'edit_theme_options',
1905 - 'transport' => 'postMessage',
1906 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1907 - ] );
2500 + public function toc_list_item_hover_color() {
2501 + $this->customizer->add_setting(
2502 + 'betterdocs_toc_list_item_hover_color',
2503 + [
2504 + 'capability' => 'edit_theme_options',
2505 + 'default' => $this->defaults['betterdocs_toc_list_item_hover_color'],
2506 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2507 + ]
2508 + );
1908 2509
1909 - $this->customizer->add_control(
1910 - new AlphaColorControl(
1911 - $this->customizer,
1912 - 'betterdocs_single_doc_navigation_color',
1913 - [
1914 - 'label' => __( 'Navigation Color', 'betterdocs' ),
1915 - 'priority' => 177,
1916 - 'section' => 'betterdocs_single_docs_settings',
1917 - 'settings' => 'betterdocs_single_doc_navigation_color'
1918 - ]
1919 - )
1920 - );
1921 - }
2510 + $this->customizer->add_control(
2511 + new AlphaColorControl(
2512 + $this->customizer,
2513 + 'betterdocs_toc_list_item_hover_color',
2514 + [
2515 + 'label' => __( 'List Item Hover Color', 'betterdocs' ),
2516 + 'priority' => 145,
2517 + 'section' => 'betterdocs_single_docs_settings',
2518 + 'settings' => 'betterdocs_toc_list_item_hover_color'
2519 + ]
2520 + )
2521 + );
2522 + }
1922 2523
1923 - public function single_doc_navigation_font_size() {
1924 - $this->customizer->add_setting( 'betterdocs_single_doc_navigation_font_size', [
1925 - 'default' => $this->defaults['betterdocs_single_doc_navigation_font_size'],
1926 - 'capability' => 'edit_theme_options',
1927 - 'transport' => 'postMessage',
1928 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2524 + public function toc_active_item_color() {
2525 + $this->customizer->add_setting(
2526 + 'betterdocs_toc_active_item_color',
2527 + [
2528 + 'capability' => 'edit_theme_options',
2529 + 'default' => $this->defaults['betterdocs_toc_active_item_color'],
2530 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2531 + ]
2532 + );
1929 2533
1930 - ] );
2534 + $this->customizer->add_control(
2535 + new AlphaColorControl(
2536 + $this->customizer,
2537 + 'betterdocs_toc_active_item_color',
2538 + [
2539 + 'label' => __( 'Active Item Color', 'betterdocs' ),
2540 + 'priority' => 146,
2541 + 'section' => 'betterdocs_single_docs_settings',
2542 + 'settings' => 'betterdocs_toc_active_item_color'
2543 + ]
2544 + )
2545 + );
2546 + }
1931 2547
1932 - $this->customizer->add_control( new RangeValueControl(
1933 - $this->customizer, 'betterdocs_single_doc_navigation_font_size', [
1934 - 'type' => 'betterdocs-range-value',
1935 - 'section' => 'betterdocs_single_docs_settings',
1936 - 'settings' => 'betterdocs_single_doc_navigation_font_size',
1937 - 'label' => __( 'Navigation Font Size', 'betterdocs' ),
1938 - 'priority' => 178,
1939 - 'input_attrs' => [
1940 - 'class' => '',
1941 - 'min' => 0,
1942 - 'max' => 50,
1943 - 'step' => 1,
1944 - 'suffix' => 'px' //optional suffix
1945 - ]
1946 - ] )
1947 - );
1948 - }
2548 + public function toc_list_item_font_size() {
2549 + $this->customizer->add_setting(
2550 + 'betterdocs_toc_list_item_font_size',
2551 + [
2552 + 'default' => $this->defaults['betterdocs_toc_list_item_font_size'],
2553 + 'capability' => 'edit_theme_options',
2554 + 'transport' => 'postMessage',
2555 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1949 2556
1950 - public function single_doc_navigation_hover_color() {
1951 - $this->customizer->add_setting( 'betterdocs_single_doc_navigation_hover_color', [
1952 - 'default' => $this->defaults['betterdocs_single_doc_navigation_hover_color'],
1953 - 'capability' => 'edit_theme_options',
1954 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1955 - ] );
2557 + ]
2558 + );
1956 2559
1957 - $this->customizer->add_control(
1958 - new AlphaColorControl(
1959 - $this->customizer,
1960 - 'betterdocs_single_doc_navigation_hover_color',
1961 - [
1962 - 'label' => __( 'Navigation Hover Color', 'betterdocs' ),
1963 - 'priority' => 179,
1964 - 'section' => 'betterdocs_single_docs_settings',
1965 - 'settings' => 'betterdocs_single_doc_navigation_hover_color'
1966 - ]
1967 - )
1968 - );
1969 - }
2560 + $this->customizer->add_control(
2561 + new RangeValueControl(
2562 + $this->customizer,
2563 + 'betterdocs_toc_list_item_font_size',
2564 + [
2565 + 'type' => 'betterdocs-range-value',
2566 + 'section' => 'betterdocs_single_docs_settings',
2567 + 'settings' => 'betterdocs_toc_list_item_font_size',
2568 + 'label' => __( 'List Item Font Size', 'betterdocs' ),
2569 + 'priority' => 147,
2570 + 'input_attrs' => [
2571 + 'class' => '',
2572 + 'min' => 0,
2573 + 'max' => 50,
2574 + 'step' => 1,
2575 + 'suffix' => 'px' //optional suffix
2576 + ]
2577 + ]
2578 + )
2579 + );
2580 + }
1970 2581
1971 - public function single_doc_navigation_arrow_color() {
1972 - $this->customizer->add_setting( 'betterdocs_single_doc_navigation_arrow_color', [
1973 - 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_color'],
1974 - 'capability' => 'edit_theme_options',
1975 - 'transport' => 'postMessage',
1976 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1977 - ] );
2582 + public function doc_single_toc_list_margin() {
2583 + $this->customizer->add_setting(
2584 + 'betterdocs_doc_single_toc_list_margin',
2585 + [
2586 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin'],
2587 + 'capability' => 'edit_theme_options',
2588 + 'transport' => 'postMessage',
2589 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1978 2590
1979 - $this->customizer->add_control(
1980 - new AlphaColorControl(
1981 - $this->customizer,
1982 - 'betterdocs_single_doc_navigation_arrow_color',
1983 - [
1984 - 'label' => __( 'Navigation Arrow Color', 'betterdocs' ),
1985 - 'priority' => 180,
1986 - 'section' => 'betterdocs_single_docs_settings',
1987 - 'settings' => 'betterdocs_single_doc_navigation_arrow_color'
1988 - ]
1989 - )
1990 - );
1991 - }
2591 + ]
2592 + );
1992 2593
1993 - public function single_doc_navigation_arrow_font_size() {
1994 - $this->customizer->add_setting( 'betterdocs_single_doc_navigation_arrow_font_size', [
1995 - 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_font_size'],
1996 - 'capability' => 'edit_theme_options',
1997 - 'transport' => 'postMessage',
1998 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2594 + $this->customizer->add_control(
2595 + new TitleControl(
2596 + $this->customizer,
2597 + 'betterdocs_doc_single_toc_list_margin',
2598 + [
2599 + 'type' => 'betterdocs-title',
2600 + 'section' => 'betterdocs_single_docs_settings',
2601 + 'settings' => 'betterdocs_doc_single_toc_list_margin',
2602 + 'label' => __( 'TOC List Margin', 'betterdocs' ),
2603 + 'priority' => 148,
2604 + 'input_attrs' => [
2605 + 'id' => 'betterdocs_doc_single_toc_list_margin',
2606 + 'class' => 'betterdocs-dimension'
2607 + ]
2608 + ]
2609 + )
2610 + );
1999 2611
2000 - ] );
2612 + $this->customizer->add_setting(
2613 + 'betterdocs_doc_single_toc_list_margin_top',
2614 + [
2615 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_top'],
2616 + 'capability' => 'edit_theme_options',
2617 + 'transport' => 'postMessage',
2618 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2619 + ]
2620 + );
2001 2621
2002 - $this->customizer->add_control( new RangeValueControl(
2003 - $this->customizer, 'betterdocs_single_doc_navigation_arrow_font_size', [
2004 - 'type' => 'betterdocs-range-value',
2005 - 'section' => 'betterdocs_single_docs_settings',
2006 - 'settings' => 'betterdocs_single_doc_navigation_arrow_font_size',
2007 - 'label' => __( 'Navigation Arrow Font Size', 'betterdocs' ),
2008 - 'priority' => 181,
2009 - 'input_attrs' => [
2010 - 'class' => '',
2011 - 'min' => 0,
2012 - 'max' => 50,
2013 - 'step' => 1,
2014 - 'suffix' => 'px' //optional suffix
2015 - ]
2016 - ] )
2017 - );
2018 - }
2622 + $this->customizer->add_control(
2623 + new DimensionControl(
2624 + $this->customizer,
2625 + 'betterdocs_doc_single_toc_list_margin_top',
2626 + [
2627 + 'type' => 'betterdocs-dimension',
2628 + 'section' => 'betterdocs_single_docs_settings',
2629 + 'settings' => 'betterdocs_doc_single_toc_list_margin_top',
2630 + 'label' => __( 'Top', 'betterdocs' ),
2631 + 'priority' => 148,
2632 + 'input_attrs' => [
2633 + 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
2634 + ]
2635 + ]
2636 + )
2637 + );
2019 2638
2020 - public function betterdocs_single_doc_lu_time_color() {
2021 - $this->customizer->add_setting( 'betterdocs_single_doc_lu_time_color', [
2022 - 'default' => $this->defaults['betterdocs_single_doc_lu_time_color'],
2023 - 'capability' => 'edit_theme_options',
2024 - 'transport' => 'postMessage',
2025 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
2026 - ] );
2639 + $this->customizer->add_setting(
2640 + 'betterdocs_doc_single_toc_list_margin_right',
2641 + [
2642 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_right'],
2643 + 'capability' => 'edit_theme_options',
2644 + 'transport' => 'postMessage',
2645 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2027 2646
2028 - $this->customizer->add_control(
2029 - new AlphaColorControl(
2030 - $this->customizer,
2031 - 'betterdocs_single_doc_lu_time_color',
2032 - [
2033 - 'label' => __( 'Last Updated Time Color', 'betterdocs' ),
2034 - 'priority' => 182,
2035 - 'section' => 'betterdocs_single_docs_settings',
2036 - 'settings' => 'betterdocs_single_doc_lu_time_color'
2037 - ]
2038 - )
2039 - );
2040 - }
2647 + ]
2648 + );
2041 2649
2042 - public function single_doc_lu_time_font_size() {
2043 - $this->customizer->add_setting( 'betterdocs_single_doc_lu_time_font_size', [
2044 - 'default' => $this->defaults['betterdocs_single_doc_lu_time_font_size'],
2045 - 'capability' => 'edit_theme_options',
2046 - 'transport' => 'postMessage',
2047 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2650 + $this->customizer->add_control(
2651 + new DimensionControl(
2652 + $this->customizer,
2653 + 'betterdocs_doc_single_toc_list_margin_right',
2654 + [
2655 + 'type' => 'betterdocs-dimension',
2656 + 'section' => 'betterdocs_single_docs_settings',
2657 + 'settings' => 'betterdocs_doc_single_toc_list_margin_right',
2658 + 'label' => __( 'Right', 'betterdocs' ),
2659 + 'priority' => 148,
2660 + 'input_attrs' => [
2661 + 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
2662 + ]
2663 + ]
2664 + )
2665 + );
2048 2666
2049 - ] );
2667 + $this->customizer->add_setting(
2668 + 'betterdocs_doc_single_toc_list_margin_bottom',
2669 + [
2670 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_bottom'],
2671 + 'capability' => 'edit_theme_options',
2672 + 'transport' => 'postMessage',
2673 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2050 2674
2051 - $this->customizer->add_control( new RangeValueControl(
2052 - $this->customizer, 'betterdocs_single_doc_lu_time_font_size', [
2053 - 'type' => 'betterdocs-range-value',
2054 - 'section' => 'betterdocs_single_docs_settings',
2055 - 'settings' => 'betterdocs_single_doc_lu_time_font_size',
2056 - 'label' => __( 'Last Updated Time Font Size', 'betterdocs' ),
2057 - 'priority' => 183,
2058 - 'input_attrs' => [
2059 - 'class' => '',
2060 - 'min' => 0,
2061 - 'max' => 50,
2062 - 'step' => 1,
2063 - 'suffix' => 'px' //optional suffix
2064 - ]
2065 - ] )
2066 - );
2067 - }
2675 + ]
2676 + );
2068 2677
2069 - public function single_doc_powered_by_color() {
2070 - $this->customizer->add_setting( 'betterdocs_single_doc_powered_by_color', [
2071 - 'default' => $this->defaults['betterdocs_single_doc_powered_by_color'],
2072 - 'capability' => 'edit_theme_options',
2073 - 'transport' => 'postMessage',
2074 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
2075 - ] );
2678 + $this->customizer->add_control(
2679 + new DimensionControl(
2680 + $this->customizer,
2681 + 'betterdocs_doc_single_toc_list_margin_bottom',
2682 + [
2683 + 'type' => 'betterdocs-dimension',
2684 + 'section' => 'betterdocs_single_docs_settings',
2685 + 'settings' => 'betterdocs_doc_single_toc_list_margin_bottom',
2686 + 'label' => __( 'Bottom', 'betterdocs' ),
2687 + 'priority' => 148,
2688 + 'input_attrs' => [
2689 + 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
2690 + ]
2691 + ]
2692 + )
2693 + );
2076 2694
2077 - $this->customizer->add_control(
2078 - new AlphaColorControl(
2079 - $this->customizer,
2080 - 'betterdocs_single_doc_powered_by_color',
2081 - [
2082 - 'label' => __( 'Powered by Color', 'betterdocs' ),
2083 - 'priority' => 184,
2084 - 'section' => 'betterdocs_single_docs_settings',
2085 - 'settings' => 'betterdocs_single_doc_powered_by_color'
2086 - ]
2087 - )
2088 - );
2089 - }
2695 + $this->customizer->add_setting(
2696 + 'betterdocs_doc_single_toc_list_margin_left',
2697 + [
2698 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_left'],
2699 + 'capability' => 'edit_theme_options',
2700 + 'transport' => 'postMessage',
2701 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2090 2702
2091 - public function single_doc_powered_by_font_size() {
2092 - $this->customizer->add_setting( 'betterdocs_single_doc_powered_by_font_size', [
2093 - 'default' => $this->defaults['betterdocs_single_doc_powered_by_font_size'],
2094 - 'capability' => 'edit_theme_options',
2095 - 'transport' => 'postMessage',
2096 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2703 + ]
2704 + );
2097 2705
2098 - ] );
2706 + $this->customizer->add_control(
2707 + new DimensionControl(
2708 + $this->customizer,
2709 + 'betterdocs_doc_single_toc_list_margin_left',
2710 + [
2711 + 'type' => 'betterdocs-dimension',
2712 + 'section' => 'betterdocs_single_docs_settings',
2713 + 'settings' => 'betterdocs_doc_single_toc_list_margin_left',
2714 + 'label' => __( 'Left', 'betterdocs' ),
2715 + 'priority' => 148,
2716 + 'input_attrs' => [
2717 + 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
2718 + ]
2719 + ]
2720 + )
2721 + );
2722 + }
2099 2723
2100 - $this->customizer->add_control( new RangeValueControl(
2101 - $this->customizer, 'betterdocs_single_doc_powered_by_font_size', [
2102 - 'type' => 'betterdocs-range-value',
2103 - 'section' => 'betterdocs_single_docs_settings',
2104 - 'settings' => 'betterdocs_single_doc_powered_by_font_size',
2105 - 'label' => __( 'Powered By Font Size', 'betterdocs' ),
2106 - 'priority' => 185,
2107 - 'input_attrs' => [
2108 - 'class' => '',
2109 - 'min' => 0,
2110 - 'max' => 50,
2111 - 'step' => 1,
2112 - 'suffix' => 'px' //optional suffix
2113 - ]
2114 - ] )
2115 - );
2116 - }
2724 + public function toc_list_number_color() {
2725 + $this->customizer->add_setting(
2726 + 'betterdocs_toc_list_number_color',
2727 + [
2728 + 'default' => $this->defaults['betterdocs_toc_list_number_color'],
2729 + 'capability' => 'edit_theme_options',
2730 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2731 + ]
2732 + );
2117 2733
2118 - public function single_doc_powered_by_link_color() {
2119 - $this->customizer->add_setting( 'betterdocs_single_doc_powered_by_link_color', [
2120 - 'default' => $this->defaults['betterdocs_single_doc_powered_by_link_color'],
2121 - 'capability' => 'edit_theme_options',
2122 - 'transport' => 'postMessage',
2123 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
2124 - ] );
2734 + $this->customizer->add_control(
2735 + new AlphaColorControl(
2736 + $this->customizer,
2737 + 'betterdocs_toc_list_number_color',
2738 + [
2739 + 'label' => __( 'List Number Color', 'betterdocs' ),
2740 + 'priority' => 153,
2741 + 'section' => 'betterdocs_single_docs_settings',
2742 + 'settings' => 'betterdocs_toc_list_number_color'
2743 + ]
2744 + )
2745 + );
2746 + }
2125 2747
2126 - $this->customizer->add_control(
2127 - new AlphaColorControl(
2128 - $this->customizer,
2129 - 'betterdocs_single_doc_powered_by_link_color',
2130 - [
2131 - 'label' => __( 'Powered By Link Color', 'betterdocs' ),
2132 - 'priority' => 186,
2133 - 'section' => 'betterdocs_single_docs_settings',
2134 - 'settings' => 'betterdocs_single_doc_powered_by_link_color'
2135 - ]
2136 - )
2137 - );
2138 - }
2748 + public function toc_list_number_font_size() {
2749 + $this->customizer->add_setting(
2750 + 'betterdocs_toc_list_number_font_size',
2751 + [
2752 + 'default' => $this->defaults['betterdocs_toc_list_number_font_size'],
2753 + 'capability' => 'edit_theme_options',
2754 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2139 2755
2140 - public function reactions_title() {
2141 - $this->customizer->add_setting( 'betterdocs_reactions_title', [
2142 - 'default' => '',
2143 - 'sanitize_callback' => 'esc_html'
2144 - ] );
2756 + ]
2757 + );
2145 2758
2146 - $this->customizer->add_control( new SeparatorControl(
2147 - $this->customizer, 'betterdocs_reactions_title', [
2148 - 'label' => __( 'Reactions', 'betterdocs' ),
2149 - 'priority' => 159,
2150 - 'settings' => 'betterdocs_reactions_title',
2151 - 'section' => 'betterdocs_single_docs_settings'
2152 - ] )
2153 - );
2154 - }
2759 + $this->customizer->add_control(
2760 + new RangeValueControl(
2761 + $this->customizer,
2762 + 'betterdocs_toc_list_number_font_size',
2763 + [
2764 + 'type' => 'betterdocs-range-value',
2765 + 'section' => 'betterdocs_single_docs_settings',
2766 + 'settings' => 'betterdocs_toc_list_number_font_size',
2767 + 'label' => __( 'List Number Font Size', 'betterdocs' ),
2768 + 'priority' => 154,
2769 + 'input_attrs' => [
2770 + 'class' => '',
2771 + 'min' => 0,
2772 + 'max' => 50,
2773 + 'step' => 1,
2774 + 'suffix' => 'px' //optional suffix
2775 + ]
2776 + ]
2777 + )
2778 + );
2779 + }
2155 2780
2156 - public function post_reactions() {
2157 - $this->customizer->add_setting( 'betterdocs_post_reactions', [
2158 - 'default' => $this->defaults['betterdocs_post_reactions'],
2159 - 'capability' => 'edit_theme_options',
2160 - 'sanitize_callback' => [$this->sanitizer, 'checkbox']
2161 - ] );
2781 + public function toc_margin_bottom() {
2782 + $this->customizer->add_setting(
2783 + 'betterdocs_toc_margin_bottom',
2784 + [
2785 + 'default' => $this->defaults['betterdocs_toc_margin_bottom'],
2786 + 'capability' => 'edit_theme_options',
2787 + 'transport' => 'postMessage',
2788 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2162 2789
2163 - $this->customizer->add_control( new ToggleControl(
2164 - $this->customizer, 'betterdocs_post_reactions', [
2165 - 'label' => __( 'Enable Reactions?', 'betterdocs' ),
2166 - 'priority' => 160,
2167 - 'section' => 'betterdocs_single_docs_settings',
2168 - 'settings' => 'betterdocs_post_reactions',
2169 - 'type' => 'light' // light, ios, flat
2170 - ] )
2171 - );
2172 - }
2790 + ]
2791 + );
2173 2792
2174 - public function post_reactions_text() {
2175 - $this->customizer->add_setting( 'betterdocs_post_reactions_text', [
2176 - 'default' => $this->defaults['betterdocs_post_reactions_text'],
2177 - 'capability' => 'edit_theme_options',
2178 - 'sanitize_callback' => 'esc_html'
2179 - ] );
2793 + $this->customizer->add_control(
2794 + new RangeValueControl(
2795 + $this->customizer,
2796 + 'betterdocs_toc_margin_bottom',
2797 + [
2798 + 'type' => 'betterdocs-range-value',
2799 + 'section' => 'betterdocs_single_docs_settings',
2800 + 'settings' => 'betterdocs_toc_margin_bottom',
2801 + 'label' => __( 'TOC Margin Bottom', 'betterdocs' ),
2802 + 'priority' => 155,
2803 + 'input_attrs' => [
2804 + 'class' => '',
2805 + 'min' => 0,
2806 + 'max' => 500,
2807 + 'step' => 1,
2808 + 'suffix' => 'px' // optional suffix
2809 + ]
2810 + ]
2811 + )
2812 + );
2813 + }
2180 2814
2181 - $this->customizer->add_control(
2182 - new SelectControl(
2183 - $this->customizer,
2184 - 'betterdocs_post_reactions_text',
2185 - [
2186 - 'label' => __( 'Reactions Title', 'betterdocs' ),
2187 - 'priority' => 161,
2188 - 'section' => 'betterdocs_single_docs_settings',
2189 - 'settings' => 'betterdocs_post_reactions_text',
2190 - 'type' => 'text'
2191 - ]
2192 - )
2193 - );
2194 - }
2815 + public function doc_single_toc_title_layout_8_9() {
2816 + $this->customizer->add_setting(
2817 + 'betterdocs_doc_single_toc_title_layout_8_9',
2818 + [
2819 + 'default' => $this->defaults['betterdocs_doc_single_toc_title_layout_8_9'],
2820 + 'sanitize_callback' => 'esc_html'
2821 + ]
2822 + );
2195 2823
2196 - public function post_reactions_text_color() {
2197 - $this->customizer->add_setting( 'betterdocs_post_reactions_text_color', [
2198 - 'default' => $this->defaults['betterdocs_post_reactions_text_color'],
2199 - 'capability' => 'edit_theme_options',
2200 - 'transport' => 'postMessage',
2201 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
2202 - ] );
2824 + $this->customizer->add_control(
2825 + new SeparatorControl(
2826 + $this->customizer,
2827 + 'betterdocs_doc_single_toc_title_layout_8_9',
2828 + [
2829 + 'label' => __( 'Table of Contents', 'betterdocs' ),
2830 + 'priority' => 132,
2831 + 'settings' => 'betterdocs_doc_single_toc_title_layout_8_9',
2832 + 'section' => 'betterdocs_single_docs_settings'
2833 + ]
2834 + )
2835 + );
2836 + }
2203 2837
2204 - $this->customizer->add_control(
2205 - new AlphaColorControl(
2206 - $this->customizer,
2207 - 'betterdocs_post_reactions_text_color',
2208 - [
2209 - 'label' => __( 'Reactions Text Color', 'betterdocs' ),
2210 - 'priority' => 162,
2211 - 'section' => 'betterdocs_single_docs_settings',
2212 - 'settings' => 'betterdocs_post_reactions_text_color'
2213 - ]
2214 - )
2215 - );
2216 - }
2838 + // public function sticky_toc_width_layout_8_9() {
2839 + // $this->customizer->add_setting( 'betterdocs_sticky_toc_width_layout_8_9', [
2840 + // 'default' => $this->defaults['betterdocs_sticky_toc_width_layout_8_9'],
2841 + // 'capability' => 'edit_theme_options',
2842 + // 'transport' => 'postMessage',
2843 + // 'sanitize_callback' => [$this->sanitizer, 'integer']
2217 2844
2218 - public function post_reactions_icon_color() {
2219 - $this->customizer->add_setting( 'betterdocs_post_reactions_icon_color', [
2220 - 'default' => $this->defaults['betterdocs_post_reactions_icon_color'],
2221 - 'capability' => 'edit_theme_options',
2222 - 'transport' => 'postMessage',
2223 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
2224 - ] );
2845 + // ] );
2225 2846
2226 - $this->customizer->add_control(
2227 - new AlphaColorControl(
2228 - $this->customizer,
2229 - 'betterdocs_post_reactions_icon_color',
2230 - [
2231 - 'label' => __( 'Reactions Icon Background Color', 'betterdocs' ),
2232 - 'priority' => 163,
2233 - 'section' => 'betterdocs_single_docs_settings',
2234 - 'settings' => 'betterdocs_post_reactions_icon_color'
2235 - ]
2236 - )
2237 - );
2238 - }
2847 + // $this->customizer->add_control( new RangeValueControl(
2848 + // $this->customizer, 'betterdocs_sticky_toc_width_layout_8_9', [
2849 + // 'type' => 'betterdocs-range-value',
2850 + // 'section' => 'betterdocs_single_docs_settings',
2851 + // 'settings' => 'betterdocs_sticky_toc_width_layout_8_9',
2852 + // 'label' => __( 'Sticky Toc Width', 'betterdocs' ),
2853 + // 'priority' => 133,
2854 + // 'input_attrs' => [
2855 + // 'class' => '',
2856 + // 'min' => 100,
2857 + // 'max' => 500,
2858 + // 'step' => 1,
2859 + // 'suffix' => 'px' //optional suffix
2860 + // ]
2861 + // ] )
2862 + // );
2863 + // }
2239 2864
2240 - public function post_reactions_icon_svg_color() {
2241 - $this->customizer->add_setting( 'betterdocs_post_reactions_icon_svg_color', [
2242 - 'default' => $this->defaults['betterdocs_post_reactions_icon_svg_color'],
2243 - 'capability' => 'edit_theme_options',
2244 - 'transport' => 'postMessage',
2245 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
2246 - ] );
2865 + // public function sticky_toc_zindex_layout_8_9() {
2866 + // $this->customizer->add_setting( 'betterdocs_sticky_toc_zindex_layout_8_9', [
2867 + // 'default' => $this->defaults['betterdocs_sticky_toc_zindex_layout_8_9'],
2868 + // 'capability' => 'edit_theme_options',
2869 + // 'transport' => 'postMessage',
2870 + // 'sanitize_callback' => [$this->sanitizer, 'integer']
2871 + // ] );
2247 2872
2248 - $this->customizer->add_control(
2249 - new AlphaColorControl(
2250 - $this->customizer,
2251 - 'betterdocs_post_reactions_icon_svg_color',
2252 - [
2253 - 'label' => __( 'Reactions Icon Color', 'betterdocs' ),
2254 - 'priority' => 163,
2255 - 'section' => 'betterdocs_single_docs_settings',
2256 - 'settings' => 'betterdocs_post_reactions_icon_svg_color'
2257 - ]
2258 - )
2259 - );
2260 - }
2873 + // $this->customizer->add_control( new NumberControl(
2874 + // $this->customizer, 'betterdocs_sticky_toc_zindex_layout_8_9', [
2875 + // 'type' => 'betterdocs-number',
2876 + // 'section' => 'betterdocs_single_docs_settings',
2877 + // 'settings' => 'betterdocs_sticky_toc_zindex_layout_8_9',
2878 + // 'label' => __( 'Sticky Toc z-index', 'betterdocs' ),
2879 + // 'priority' => 134
2880 + // ] )
2881 + // );
2882 + // }
2261 2883
2262 - public function post_reactions_icon_hover_bg_color() {
2263 - $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_bg_color', [
2264 - 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_bg_color'],
2265 - 'capability' => 'edit_theme_options',
2266 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
2267 - ] );
2884 + // public function sticky_toc_margin_top_layout_8_9() {
2885 + // $this->customizer->add_setting( 'betterdocs_sticky_toc_margin_top_layout_8_9', [
2886 + // 'default' => $this->defaults['betterdocs_sticky_toc_margin_top_layout_8_9'],
2887 + // 'capability' => 'edit_theme_options',
2888 + // 'transport' => 'postMessage',
2889 + // 'sanitize_callback' => [$this->sanitizer, 'integer']
2268 2890
2269 - $this->customizer->add_control(
2270 - new AlphaColorControl(
2271 - $this->customizer,
2272 - 'betterdocs_post_reactions_icon_hover_bg_color',
2273 - [
2274 - 'label' => __( 'Reactions Icon Hover Background Color', 'betterdocs' ),
2275 - 'priority' => 163,
2276 - 'section' => 'betterdocs_single_docs_settings',
2277 - 'settings' => 'betterdocs_post_reactions_icon_hover_bg_color'
2278 - ]
2279 - )
2280 - );
2281 - }
2891 + // ] );
2282 2892
2283 - public function post_reactions_icon_hover_svg_color() {
2284 - $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_svg_color', [
2285 - 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_svg_color'],
2286 - 'capability' => 'edit_theme_options',
2287 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
2288 - ] );
2893 + // $this->customizer->add_control( new RangeValueControl(
2894 + // $this->customizer, 'betterdocs_sticky_toc_margin_top_layout_8_9', [
2895 + // 'type' => 'betterdocs-range-value',
2896 + // 'section' => 'betterdocs_single_docs_settings',
2897 + // 'settings' => 'betterdocs_sticky_toc_margin_top_layout_8_9',
2898 + // 'label' => __( 'Sticky Toc Margin Top', 'betterdocs' ),
2899 + // 'priority' => 135,
2900 + // 'input_attrs' => [
2901 + // 'class' => '',
2902 + // 'min' => 0,
2903 + // 'max' => 500,
2904 + // 'step' => 1,
2905 + // 'suffix' => 'px' //optional suffix
2906 + // ]
2907 + // ] )
2908 + // );
2909 + // }
2289 2910
2290 - $this->customizer->add_control(
2291 - new AlphaColorControl(
2292 - $this->customizer,
2293 - 'betterdocs_post_reactions_icon_hover_svg_color',
2294 - [
2295 - 'label' => __( 'Reactions Icon Hover Color', 'betterdocs' ),
2296 - 'priority' => 163,
2297 - 'section' => 'betterdocs_single_docs_settings',
2298 - 'settings' => 'betterdocs_post_reactions_icon_hover_svg_color'
2299 - ]
2300 - )
2301 - );
2302 - }
2911 + public function toc_bg_color_layout_8_9() {
2912 + $this->customizer->add_setting(
2913 + 'betterdocs_toc_bg_color_layout_8_9',
2914 + [
2915 + 'capability' => 'edit_theme_options',
2916 + 'default' => $this->defaults['betterdocs_toc_bg_color_layout_8_9'],
2917 + 'transport' => 'postMessage',
2918 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2919 + ]
2920 + );
2303 2921
2304 - public function attachments_heading() {
2305 - $this->customizer->add_setting( 'betterdocs_single_doc_attachment_heading', [
2306 - 'default' => '',
2307 - 'sanitize_callback' => 'esc_html'
2308 - ] );
2922 + $this->customizer->add_control(
2923 + new AlphaColorControl(
2924 + $this->customizer,
2925 + 'betterdocs_toc_bg_color_layout_8_9',
2926 + [
2927 + 'label' => __( 'Background Color', 'betterdocs' ),
2928 + 'priority' => 136,
2929 + 'section' => 'betterdocs_single_docs_settings',
2930 + 'settings' => 'betterdocs_toc_bg_color_layout_8_9'
2931 + ]
2932 + )
2933 + );
2934 + }
2309 2935
2310 - $this->customizer->add_control( new SeparatorControl(
2311 - $this->customizer, 'betterdocs_single_doc_attachment_heading', [
2312 - 'label' => __( 'Attachments', 'betterdocs' ),
2313 - 'priority' => 163,
2314 - 'settings' => 'betterdocs_single_doc_attachment_heading',
2315 - 'section' => 'betterdocs_single_docs_settings'
2316 - ] )
2317 - );
2318 - }
2936 + public function doc_single_toc_padding_layout_8_9() {
2937 + $this->customizer->add_setting(
2938 + 'betterdocs_doc_single_toc_padding_layout_8_9',
2939 + [
2940 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_layout_8_9'],
2941 + 'capability' => 'edit_theme_options',
2942 + 'transport' => 'postMessage',
2943 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2319 2944
2320 - public function betterdocs_doc_single_attachment_content_bg_color() {
2321 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_bg_color', [
2322 - 'default' => $this->defaults['betterdocs_doc_single_attachment_content_bg_color'],
2323 - 'capability' => 'edit_theme_options',
2324 - 'transport' => 'postMessage',
2325 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
2326 - ] );
2945 + ]
2946 + );
2327 2947
2328 - $this->customizer->add_control(
2329 - new AlphaColorControl(
2330 - $this->customizer,
2331 - 'betterdocs_doc_single_attachment_content_bg_color',
2332 - [
2333 - 'label' => __( 'Content Background Color', 'betterdocs' ),
2334 - 'section' => 'betterdocs_single_docs_settings',
2335 - 'settings' => 'betterdocs_doc_single_attachment_content_bg_color',
2336 - 'priority' => 163
2337 - ]
2338 - )
2339 - );
2340 - }
2948 + $this->customizer->add_control(
2949 + new TitleControl(
2950 + $this->customizer,
2951 + 'betterdocs_doc_single_toc_padding_layout_8_9',
2952 + [
2953 + 'type' => 'betterdocs-title',
2954 + 'section' => 'betterdocs_single_docs_settings',
2955 + 'settings' => 'betterdocs_doc_single_toc_padding_layout_8_9',
2956 + 'label' => __( 'Content Area Padding', 'betterdocs' ),
2957 + 'priority' => 137,
2958 + 'input_attrs' => [
2959 + 'id' => 'betterdocs_doc_single_toc_padding_layout_8_9',
2960 + 'class' => 'betterdocs-dimension'
2961 + ]
2962 + ]
2963 + )
2964 + );
2341 2965
2342 - public function betterdocs_doc_single_attachment_content_padding() {
2343 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding', [
2344 - 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding'],
2345 - 'capability' => 'edit_theme_options',
2346 - 'transport' => 'postMessage',
2347 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2966 + $this->customizer->add_setting(
2967 + 'betterdocs_doc_single_toc_padding_top_layout_8_9',
2968 + [
2969 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_top_layout_8_9'],
2970 + 'capability' => 'edit_theme_options',
2971 + 'transport' => 'postMessage',
2972 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2973 + ]
2974 + );
2348 2975
2349 - ] );
2976 + $this->customizer->add_control(
2977 + new DimensionControl(
2978 + $this->customizer,
2979 + 'betterdocs_doc_single_toc_padding_top_layout_8_9',
2980 + [
2981 + 'type' => 'betterdocs-dimension',
2982 + 'section' => 'betterdocs_single_docs_settings',
2983 + 'settings' => 'betterdocs_doc_single_toc_padding_top_layout_8_9',
2984 + 'label' => __( 'Top', 'betterdocs' ),
2985 + 'priority' => 137,
2986 + 'input_attrs' => [
2987 + 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
2988 + ]
2989 + ]
2990 + )
2991 + );
2350 2992
2351 - $this->customizer->add_control( new TitleControl(
2352 - $this->customizer, 'betterdocs_doc_single_attachment_content_padding', [
2353 - 'type' => 'betterdocs-title',
2354 - 'section' => 'betterdocs_single_docs_settings',
2355 - 'settings' => 'betterdocs_doc_single_attachment_content_padding',
2356 - 'label' => __( 'Content Padding', 'betterdocs' ),
2357 - 'priority' => 163,
2358 - 'input_attrs' => [
2359 - 'id' => 'betterdocs_doc_single_attachment_content_padding',
2360 - 'class' => 'betterdocs-dimension'
2361 - ]
2362 - ] )
2363 - );
2993 + $this->customizer->add_setting(
2994 + 'betterdocs_doc_single_toc_padding_right_layout_8_9',
2995 + [
2996 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_right_layout_8_9'],
2997 + 'capability' => 'edit_theme_options',
2998 + 'transport' => 'postMessage',
2999 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2364 3000
2365 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_top', [
2366 - 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_top'],
2367 - 'capability' => 'edit_theme_options',
2368 - 'transport' => 'postMessage',
2369 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2370 - ] );
3001 + ]
3002 + );
2371 3003
2372 - $this->customizer->add_control( new DimensionControl(
2373 - $this->customizer, 'betterdocs_doc_single_attachment_content_padding_top', [
2374 - 'type' => 'betterdocs-dimension',
2375 - 'section' => 'betterdocs_single_docs_settings',
2376 - 'settings' => 'betterdocs_doc_single_attachment_content_padding_top',
2377 - 'label' => __( 'Top', 'betterdocs' ),
2378 - 'priority' => 163,
2379 - 'input_attrs' => [
2380 - 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
2381 - ]
2382 - ] )
2383 - );
3004 + $this->customizer->add_control(
3005 + new DimensionControl(
3006 + $this->customizer,
3007 + 'betterdocs_doc_single_toc_padding_right_layout_8_9',
3008 + [
3009 + 'type' => 'betterdocs-dimension',
3010 + 'section' => 'betterdocs_single_docs_settings',
3011 + 'settings' => 'betterdocs_doc_single_toc_padding_right_layout_8_9',
3012 + 'label' => __( 'Right', 'betterdocs' ),
3013 + 'priority' => 137,
3014 + 'input_attrs' => [
3015 + 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
3016 + ]
3017 + ]
3018 + )
3019 + );
2384 3020
2385 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_right', [
2386 - 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_right'],
2387 - 'capability' => 'edit_theme_options',
2388 - 'transport' => 'postMessage',
2389 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3021 + $this->customizer->add_setting(
3022 + 'betterdocs_doc_single_toc_padding_bottom_layout_8_9',
3023 + [
3024 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_bottom_layout_8_9'],
3025 + 'capability' => 'edit_theme_options',
3026 + 'transport' => 'postMessage',
3027 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2390 3028
2391 - ] );
3029 + ]
3030 + );
2392 3031
2393 - $this->customizer->add_control( new DimensionControl(
2394 - $this->customizer, 'betterdocs_doc_single_attachment_content_padding_right', [
2395 - 'type' => 'betterdocs-dimension',
2396 - 'section' => 'betterdocs_single_docs_settings',
2397 - 'settings' => 'betterdocs_doc_single_attachment_content_padding_right',
2398 - 'label' => __( 'Right', 'betterdocs' ),
2399 - 'priority' => 163,
2400 - 'input_attrs' => [
2401 - 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
2402 - ]
2403 - ] )
2404 - );
3032 + $this->customizer->add_control(
3033 + new DimensionControl(
3034 + $this->customizer,
3035 + 'betterdocs_doc_single_toc_padding_bottom_layout_8_9',
3036 + [
3037 + 'type' => 'betterdocs-dimension',
3038 + 'section' => 'betterdocs_single_docs_settings',
3039 + 'settings' => 'betterdocs_doc_single_toc_padding_bottom_layout_8_9',
3040 + 'label' => __( 'Bottom', 'betterdocs' ),
3041 + 'priority' => 137,
3042 + 'input_attrs' => [
3043 + 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
3044 + ]
3045 + ]
3046 + )
3047 + );
2405 3048
2406 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_bottom', [
2407 - 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_bottom'],
2408 - 'capability' => 'edit_theme_options',
2409 - 'transport' => 'postMessage',
2410 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3049 + $this->customizer->add_setting(
3050 + 'betterdocs_doc_single_toc_padding_left_layout_8_9',
3051 + [
3052 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_left_layout_8_9'],
3053 + 'capability' => 'edit_theme_options',
3054 + 'transport' => 'postMessage',
3055 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2411 3056
2412 - ] );
3057 + ]
3058 + );
2413 3059
2414 - $this->customizer->add_control( new DimensionControl(
2415 - $this->customizer, 'betterdocs_doc_single_attachment_content_padding_bottom', [
2416 - 'type' => 'betterdocs-dimension',
2417 - 'section' => 'betterdocs_single_docs_settings',
2418 - 'settings' => 'betterdocs_doc_single_attachment_content_padding_bottom',
2419 - 'label' => __( 'Bottom', 'betterdocs' ),
2420 - 'priority' => 163,
2421 - 'input_attrs' => [
2422 - 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
2423 - ]
2424 - ] )
2425 - );
3060 + $this->customizer->add_control(
3061 + new DimensionControl(
3062 + $this->customizer,
3063 + 'betterdocs_doc_single_toc_padding_left_layout_8_9',
3064 + [
3065 + 'type' => 'betterdocs-dimension',
3066 + 'section' => 'betterdocs_single_docs_settings',
3067 + 'settings' => 'betterdocs_doc_single_toc_padding_left_layout_8_9',
3068 + 'label' => __( 'Left', 'betterdocs' ),
3069 + 'priority' => 137,
3070 + 'input_attrs' => [
3071 + 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
3072 + ]
3073 + ]
3074 + )
3075 + );
3076 + }
2426 3077
2427 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_padding_left', [
2428 - 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_left'],
2429 - 'capability' => 'edit_theme_options',
2430 - 'transport' => 'postMessage',
2431 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3078 + public function doc_single_toc_margin_layout_8_9() {
3079 + $this->customizer->add_setting(
3080 + 'betterdocs_doc_single_toc_margin_layout_8_9',
3081 + [
3082 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_layout_8_9'],
3083 + 'capability' => 'edit_theme_options',
3084 + 'transport' => 'postMessage',
3085 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3086 + ]
3087 + );
2432 3088
2433 - ] );
3089 + $this->customizer->add_control(
3090 + new TitleControl(
3091 + $this->customizer,
3092 + 'betterdocs_doc_single_toc_margin_layout_8_9',
3093 + [
3094 + 'type' => 'betterdocs-title',
3095 + 'section' => 'betterdocs_single_docs_settings',
3096 + 'settings' => 'betterdocs_doc_single_toc_margin_layout_8_9',
3097 + 'label' => __( 'Content Area Margin', 'betterdocs' ),
3098 + 'priority' => 141,
3099 + 'input_attrs' => [
3100 + 'id' => 'betterdocs_doc_single_toc_margin_layout_8_9',
3101 + 'class' => 'betterdocs-dimension'
3102 + ]
3103 + ]
3104 + )
3105 + );
2434 3106
2435 - $this->customizer->add_control( new DimensionControl(
2436 - $this->customizer, 'betterdocs_doc_single_attachment_content_padding_left', [
2437 - 'type' => 'betterdocs-dimension',
2438 - 'section' => 'betterdocs_single_docs_settings',
2439 - 'settings' => 'betterdocs_doc_single_attachment_content_padding_left',
2440 - 'label' => __( 'Left', 'betterdocs' ),
2441 - 'priority' => 163,
2442 - 'input_attrs' => [
2443 - 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
2444 - ]
2445 - ] )
2446 - );
2447 - }
3107 + $this->customizer->add_setting(
3108 + 'betterdocs_doc_single_toc_margin_top_layout_8_9',
3109 + [
3110 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_top_layout_8_9'],
3111 + 'capability' => 'edit_theme_options',
3112 + 'transport' => 'postMessage',
3113 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3114 + ]
3115 + );
2448 3116
2449 - public function betterdocs_doc_single_attachment_content_margin() {
2450 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin', [
2451 - 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin'],
2452 - 'capability' => 'edit_theme_options',
2453 - 'transport' => 'postMessage',
2454 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3117 + $this->customizer->add_control(
3118 + new DimensionControl(
3119 + $this->customizer,
3120 + 'betterdocs_doc_single_toc_margin_top_layout_8_9',
3121 + [
3122 + 'type' => 'betterdocs-dimension',
3123 + 'section' => 'betterdocs_single_docs_settings',
3124 + 'settings' => 'betterdocs_doc_single_toc_margin_top_layout_8_9',
3125 + 'label' => __( 'Top', 'betterdocs' ),
3126 + 'priority' => 141,
3127 + 'input_attrs' => [
3128 + 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
3129 + ]
3130 + ]
3131 + )
3132 + );
2455 3133
2456 - ] );
3134 + $this->customizer->add_setting(
3135 + 'betterdocs_doc_single_toc_margin_right_layout_8_9',
3136 + [
3137 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_right_layout_8_9'],
3138 + 'capability' => 'edit_theme_options',
3139 + 'transport' => 'postMessage',
3140 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3141 + ]
3142 + );
2457 3143
2458 - $this->customizer->add_control( new TitleControl(
2459 - $this->customizer, 'betterdocs_doc_single_attachment_content_margin', [
2460 - 'type' => 'betterdocs-title',
2461 - 'section' => 'betterdocs_single_docs_settings',
2462 - 'settings' => 'betterdocs_doc_single_attachment_content_margin',
2463 - 'label' => __( 'Content Margin', 'betterdocs' ),
2464 - 'priority' => 163,
2465 - 'input_attrs' => [
2466 - 'id' => 'betterdocs_doc_single_attachment_content_margin',
2467 - 'class' => 'betterdocs-dimension'
2468 - ]
2469 - ] )
2470 - );
3144 + $this->customizer->add_control(
3145 + new DimensionControl(
3146 + $this->customizer,
3147 + 'betterdocs_doc_single_toc_margin_right_layout_8_9',
3148 + [
3149 + 'type' => 'betterdocs-dimension',
3150 + 'section' => 'betterdocs_single_docs_settings',
3151 + 'settings' => 'betterdocs_doc_single_toc_margin_right_layout_8_9',
3152 + 'label' => __( 'Right', 'betterdocs' ),
3153 + 'priority' => 141,
3154 + 'input_attrs' => [
3155 + 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
3156 + ]
3157 + ]
3158 + )
3159 + );
2471 3160
2472 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_top', [
2473 - 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_top'],
2474 - 'capability' => 'edit_theme_options',
2475 - 'transport' => 'postMessage',
2476 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2477 - ] );
3161 + $this->customizer->add_setting(
3162 + 'betterdocs_doc_single_toc_margin_bottom_layout_8_9',
3163 + [
3164 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_bottom_layout_8_9'],
3165 + 'capability' => 'edit_theme_options',
3166 + 'transport' => 'postMessage',
3167 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3168 + ]
3169 + );
2478 3170
2479 - $this->customizer->add_control( new DimensionControl(
2480 - $this->customizer, 'betterdocs_doc_single_attachment_content_margin_top', [
2481 - 'type' => 'betterdocs-dimension',
2482 - 'section' => 'betterdocs_single_docs_settings',
2483 - 'settings' => 'betterdocs_doc_single_attachment_content_margin_top',
2484 - 'label' => __( 'Top', 'betterdocs' ),
2485 - 'priority' => 163,
2486 - 'input_attrs' => [
2487 - 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
2488 - ]
2489 - ] )
2490 - );
3171 + $this->customizer->add_control(
3172 + new DimensionControl(
3173 + $this->customizer,
3174 + 'betterdocs_doc_single_toc_margin_bottom_layout_8_9',
3175 + [
3176 + 'type' => 'betterdocs-dimension',
3177 + 'section' => 'betterdocs_single_docs_settings',
3178 + 'settings' => 'betterdocs_doc_single_toc_margin_bottom_layout_8_9',
3179 + 'label' => __( 'Bottom', 'betterdocs' ),
3180 + 'priority' => 141,
3181 + 'input_attrs' => [
3182 + 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
3183 + ]
3184 + ]
3185 + )
3186 + );
2491 3187
2492 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_right', [
2493 - 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_right'],
2494 - 'capability' => 'edit_theme_options',
2495 - 'transport' => 'postMessage',
2496 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3188 + $this->customizer->add_setting(
3189 + 'betterdocs_doc_single_toc_margin_left_layout_8_9',
3190 + [
3191 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_left_layout_8_9'],
3192 + 'capability' => 'edit_theme_options',
3193 + 'transport' => 'postMessage',
3194 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3195 + ]
3196 + );
2497 3197
2498 - ] );
3198 + $this->customizer->add_control(
3199 + new DimensionControl(
3200 + $this->customizer,
3201 + 'betterdocs_doc_single_toc_margin_left_layout_8_9',
3202 + [
3203 + 'type' => 'betterdocs-dimension',
3204 + 'section' => 'betterdocs_single_docs_settings',
3205 + 'settings' => 'betterdocs_doc_single_toc_margin_left_layout_8_9',
3206 + 'label' => __( 'Left', 'betterdocs' ),
3207 + 'priority' => 141,
3208 + 'input_attrs' => [
3209 + 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
3210 + ]
3211 + ]
3212 + )
3213 + );
3214 + }
2499 3215
2500 - $this->customizer->add_control( new DimensionControl(
2501 - $this->customizer, 'betterdocs_doc_single_attachment_content_margin_right', [
2502 - 'type' => 'betterdocs-dimension',
2503 - 'section' => 'betterdocs_single_docs_settings',
2504 - 'settings' => 'betterdocs_doc_single_attachment_content_margin_right',
2505 - 'label' => __( 'Right', 'betterdocs' ),
2506 - 'priority' => 163,
2507 - 'input_attrs' => [
2508 - 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
2509 - ]
2510 - ] )
2511 - );
3216 + public function toc_title_color_layout_8_9() {
3217 + $this->customizer->add_setting(
3218 + 'betterdocs_toc_title_color_layout_8_9',
3219 + [
3220 + 'capability' => 'edit_theme_options',
3221 + 'default' => $this->defaults['betterdocs_toc_title_color_layout_8_9'],
3222 + 'transport' => 'postMessage',
3223 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3224 + ]
3225 + );
2512 3226
2513 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_bottom', [
2514 - 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_bottom'],
2515 - 'capability' => 'edit_theme_options',
2516 - 'transport' => 'postMessage',
2517 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3227 + $this->customizer->add_control(
3228 + new AlphaColorControl(
3229 + $this->customizer,
3230 + 'betterdocs_toc_title_color_layout_8_9',
3231 + [
3232 + 'label' => __( 'Title Color', 'betterdocs' ),
3233 + 'priority' => 142,
3234 + 'section' => 'betterdocs_single_docs_settings',
3235 + 'settings' => 'betterdocs_toc_title_color_layout_8_9'
3236 + ]
3237 + )
3238 + );
3239 + }
2518 3240
2519 - ] );
3241 + public function toc_title_margin_layout_8_9() {
3242 + $this->customizer->add_setting(
3243 + 'toc_title_margin_layout_8_9',
3244 + [
3245 + 'default' => $this->defaults['toc_title_margin_layout_8_9'],
3246 + 'capability' => 'edit_theme_options',
3247 + 'transport' => 'postMessage',
3248 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3249 + ]
3250 + );
2520 3251
2521 - $this->customizer->add_control( new DimensionControl(
2522 - $this->customizer, 'betterdocs_doc_single_attachment_content_margin_bottom', [
2523 - 'type' => 'betterdocs-dimension',
2524 - 'section' => 'betterdocs_single_docs_settings',
2525 - 'settings' => 'betterdocs_doc_single_attachment_content_margin_bottom',
2526 - 'label' => __( 'Bottom', 'betterdocs' ),
2527 - 'priority' => 163,
2528 - 'input_attrs' => [
2529 - 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
2530 - ]
2531 - ] )
2532 - );
3252 + $this->customizer->add_control(
3253 + new TitleControl(
3254 + $this->customizer,
3255 + 'toc_title_margin_layout_8_9',
3256 + [
3257 + 'type' => 'betterdocs-title',
3258 + 'section' => 'betterdocs_single_docs_settings',
3259 + 'settings' => 'toc_title_margin_layout_8_9',
3260 + 'label' => __( 'Margin', 'betterdocs' ),
3261 + 'priority' => 142,
3262 + 'input_attrs' => [
3263 + 'id' => 'toc_title_margin_layout_8_9',
3264 + 'class' => 'betterdocs-dimension'
3265 + ]
3266 + ]
3267 + )
3268 + );
2533 3269
2534 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_content_margin_left', [
2535 - 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_left'],
2536 - 'capability' => 'edit_theme_options',
2537 - 'transport' => 'postMessage',
2538 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3270 + $this->customizer->add_setting(
3271 + 'toc_title_margin_top_layout_8_9',
3272 + [
3273 + 'default' => $this->defaults['toc_title_margin_top_layout_8_9'],
3274 + 'capability' => 'edit_theme_options',
3275 + 'transport' => 'postMessage',
3276 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3277 + ]
3278 + );
2539 3279
2540 - ] );
3280 + $this->customizer->add_control(
3281 + new DimensionControl(
3282 + $this->customizer,
3283 + 'toc_title_margin_top_layout_8_9',
3284 + [
3285 + 'type' => 'betterdocs-dimension',
3286 + 'section' => 'betterdocs_single_docs_settings',
3287 + 'settings' => 'toc_title_margin_top_layout_8_9',
3288 + 'label' => __( 'Top', 'betterdocs' ),
3289 + 'priority' => 142,
3290 + 'input_attrs' => [
3291 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
3292 + ]
3293 + ]
3294 + )
3295 + );
2541 3296
2542 - $this->customizer->add_control( new DimensionControl(
2543 - $this->customizer, 'betterdocs_doc_single_attachment_content_margin_left', [
2544 - 'type' => 'betterdocs-dimension',
2545 - 'section' => 'betterdocs_single_docs_settings',
2546 - 'settings' => 'betterdocs_doc_single_attachment_content_margin_left',
2547 - 'label' => __( 'Left', 'betterdocs' ),
2548 - 'priority' => 163,
2549 - 'input_attrs' => [
2550 - 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
2551 - ]
2552 - ] )
2553 - );
2554 - }
3297 + $this->customizer->add_setting(
3298 + 'toc_title_margin_right_layout_8_9',
3299 + [
3300 + 'default' => $this->defaults['toc_title_margin_right_layout_8_9'],
3301 + 'capability' => 'edit_theme_options',
3302 + 'transport' => 'postMessage',
3303 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3304 + ]
3305 + );
2555 3306
2556 - public function betterdocs_doc_single_attachment_label_color() {
2557 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_color', [
2558 - 'default' => $this->defaults['betterdocs_doc_single_attachment_label_color'],
2559 - 'capability' => 'edit_theme_options',
2560 - 'transport' => 'postMessage',
2561 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
2562 - ] );
3307 + $this->customizer->add_control(
3308 + new DimensionControl(
3309 + $this->customizer,
3310 + 'toc_title_margin_right_layout_8_9',
3311 + [
3312 + 'type' => 'betterdocs-dimension',
3313 + 'section' => 'betterdocs_single_docs_settings',
3314 + 'settings' => 'toc_title_margin_right_layout_8_9',
3315 + 'label' => __( 'Right', 'betterdocs' ),
3316 + 'priority' => 142,
3317 + 'input_attrs' => [
3318 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
3319 + ]
3320 + ]
3321 + )
3322 + );
2563 3323
2564 - $this->customizer->add_control(
2565 - new AlphaColorControl(
2566 - $this->customizer,
2567 - 'betterdocs_doc_single_attachment_label_color',
2568 - [
2569 - 'label' => __( 'Label Color', 'betterdocs' ),
2570 - 'section' => 'betterdocs_single_docs_settings',
2571 - 'settings' => 'betterdocs_doc_single_attachment_label_color',
2572 - 'priority' => 163
2573 - ]
2574 - )
2575 - );
2576 - }
3324 + $this->customizer->add_setting(
3325 + 'toc_title_margin_bottom_layout_8_9',
3326 + [
3327 + 'default' => $this->defaults['toc_title_margin_bottom_layout_8_9'],
3328 + 'capability' => 'edit_theme_options',
3329 + 'transport' => 'postMessage',
3330 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3331 + ]
3332 + );
2577 3333
2578 - public function betterdocs_doc_single_attachment_label_padding() {
2579 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding', [
2580 - 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding'],
2581 - 'capability' => 'edit_theme_options',
2582 - 'transport' => 'postMessage',
2583 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3334 + $this->customizer->add_control(
3335 + new DimensionControl(
3336 + $this->customizer,
3337 + 'toc_title_margin_bottom_layout_8_9',
3338 + [
3339 + 'type' => 'betterdocs-dimension',
3340 + 'section' => 'betterdocs_single_docs_settings',
3341 + 'settings' => 'toc_title_margin_bottom_layout_8_9',
3342 + 'label' => __( 'Bottom', 'betterdocs' ),
3343 + 'priority' => 142,
3344 + 'input_attrs' => [
3345 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
3346 + ]
3347 + ]
3348 + )
3349 + );
2584 3350
2585 - ] );
3351 + $this->customizer->add_setting(
3352 + 'toc_title_margin_left_layout_8_9',
3353 + [
3354 + 'default' => $this->defaults['toc_title_margin_left_layout_8_9'],
3355 + 'capability' => 'edit_theme_options',
3356 + 'transport' => 'postMessage',
3357 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3358 + ]
3359 + );
2586 3360
2587 - $this->customizer->add_control( new TitleControl(
2588 - $this->customizer, 'betterdocs_doc_single_attachment_label_padding', [
2589 - 'type' => 'betterdocs-title',
2590 - 'section' => 'betterdocs_single_docs_settings',
2591 - 'settings' => 'betterdocs_doc_single_attachment_label_padding',
2592 - 'label' => __( 'Label Padding', 'betterdocs' ),
2593 - 'priority' => 163,
2594 - 'input_attrs' => [
2595 - 'id' => 'betterdocs_doc_single_attachment_label_padding',
2596 - 'class' => 'betterdocs-dimension'
2597 - ]
2598 - ] )
2599 - );
3361 + $this->customizer->add_control(
3362 + new DimensionControl(
3363 + $this->customizer,
3364 + 'toc_title_margin_left_layout_8_9',
3365 + [
3366 + 'type' => 'betterdocs-dimension',
3367 + 'section' => 'betterdocs_single_docs_settings',
3368 + 'settings' => 'toc_title_margin_left_layout_8_9',
3369 + 'label' => __( 'Left', 'betterdocs' ),
3370 + 'priority' => 142,
3371 + 'input_attrs' => [
3372 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
3373 + ]
3374 + ]
3375 + )
3376 + );
3377 + }
2600 3378
2601 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_top', [
2602 - 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_top'],
2603 - 'capability' => 'edit_theme_options',
2604 - 'transport' => 'postMessage',
2605 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2606 - ] );
3379 + public function toc_title_font_size_layout_8_9() {
3380 + $this->customizer->add_setting(
3381 + 'betterdocs_toc_title_font_size_layout_8_9',
3382 + [
3383 + 'default' => $this->defaults['betterdocs_toc_title_font_size_layout_8_9'],
3384 + 'capability' => 'edit_theme_options',
3385 + 'transport' => 'postMessage',
3386 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2607 3387
2608 - $this->customizer->add_control( new DimensionControl(
2609 - $this->customizer, 'betterdocs_doc_single_attachment_label_padding_top', [
2610 - 'type' => 'betterdocs-dimension',
2611 - 'section' => 'betterdocs_single_docs_settings',
2612 - 'settings' => 'betterdocs_doc_single_attachment_label_padding_top',
2613 - 'label' => __( 'Top', 'betterdocs' ),
2614 - 'priority' => 163,
2615 - 'input_attrs' => [
2616 - 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
2617 - ]
2618 - ] )
2619 - );
3388 + ]
3389 + );
2620 3390
2621 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_right', [
2622 - 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_right'],
2623 - 'capability' => 'edit_theme_options',
2624 - 'transport' => 'postMessage',
2625 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3391 + $this->customizer->add_control(
3392 + new RangeValueControl(
3393 + $this->customizer,
3394 + 'betterdocs_toc_title_font_size_layout_8_9',
3395 + [
3396 + 'type' => 'betterdocs-range-value',
3397 + 'section' => 'betterdocs_single_docs_settings',
3398 + 'settings' => 'betterdocs_toc_title_font_size_layout_8_9',
3399 + 'label' => __( 'Title Font Size', 'betterdocs' ),
3400 + 'priority' => 143,
3401 + 'input_attrs' => [
3402 + 'class' => '',
3403 + 'min' => 0,
3404 + 'max' => 50,
3405 + 'step' => 1,
3406 + 'suffix' => 'px' //optional suffix
3407 + ]
3408 + ]
3409 + )
3410 + );
3411 + }
2626 3412
2627 - ] );
3413 + public function toc_list_item_color_layout_8_9() {
3414 + $this->customizer->add_setting(
3415 + 'betterdocs_toc_list_item_color_layout_8_9',
3416 + [
3417 + 'default' => $this->defaults['betterdocs_toc_list_item_color_layout_8_9'],
3418 + 'transport' => 'postMessage',
3419 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3420 + ]
3421 + );
2628 3422
2629 - $this->customizer->add_control( new DimensionControl(
2630 - $this->customizer, 'betterdocs_doc_single_attachment_label_padding_right', [
2631 - 'type' => 'betterdocs-dimension',
2632 - 'section' => 'betterdocs_single_docs_settings',
2633 - 'settings' => 'betterdocs_doc_single_attachment_label_padding_right',
2634 - 'label' => __( 'Right', 'betterdocs' ),
2635 - 'priority' => 163,
2636 - 'input_attrs' => [
2637 - 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
2638 - ]
2639 - ] )
2640 - );
3423 + $this->customizer->add_control(
3424 + new AlphaColorControl(
3425 + $this->customizer,
3426 + 'betterdocs_toc_list_item_color_layout_8_9',
3427 + [
3428 + 'label' => __( 'List Item Color', 'betterdocs' ),
3429 + 'priority' => 144,
3430 + 'section' => 'betterdocs_single_docs_settings',
3431 + 'settings' => 'betterdocs_toc_list_item_color_layout_8_9'
3432 + ]
3433 + )
3434 + );
3435 + }
2641 3436
2642 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_bottom', [
2643 - 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_bottom'],
2644 - 'capability' => 'edit_theme_options',
2645 - 'transport' => 'postMessage',
2646 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3437 + public function toc_list_item_hover_color_layout_8_9() {
3438 + $this->customizer->add_setting(
3439 + 'betterdocs_toc_list_item_hover_color_layout_8_9',
3440 + [
3441 + 'capability' => 'edit_theme_options',
3442 + 'default' => $this->defaults['betterdocs_toc_list_item_hover_color_layout_8_9'],
3443 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3444 + ]
3445 + );
2647 3446
2648 - ] );
3447 + $this->customizer->add_control(
3448 + new AlphaColorControl(
3449 + $this->customizer,
3450 + 'betterdocs_toc_list_item_hover_color_layout_8_9',
3451 + [
3452 + 'label' => __( 'List Item Hover Color', 'betterdocs' ),
3453 + 'priority' => 145,
3454 + 'section' => 'betterdocs_single_docs_settings',
3455 + 'settings' => 'betterdocs_toc_list_item_hover_color_layout_8_9'
3456 + ]
3457 + )
3458 + );
3459 + }
2649 3460
2650 - $this->customizer->add_control( new DimensionControl(
2651 - $this->customizer, 'betterdocs_doc_single_attachment_label_padding_bottom', [
2652 - 'type' => 'betterdocs-dimension',
2653 - 'section' => 'betterdocs_single_docs_settings',
2654 - 'settings' => 'betterdocs_doc_single_attachment_label_padding_bottom',
2655 - 'label' => __( 'Bottom', 'betterdocs' ),
2656 - 'priority' => 163,
2657 - 'input_attrs' => [
2658 - 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
2659 - ]
2660 - ] )
2661 - );
3461 + public function toc_active_item_color_layout_8_9() {
3462 + $this->customizer->add_setting(
3463 + 'betterdocs_toc_active_item_color_layout_8_9',
3464 + [
3465 + 'capability' => 'edit_theme_options',
3466 + 'default' => $this->defaults['betterdocs_toc_active_item_color_layout_8_9'],
3467 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3468 + ]
3469 + );
2662 3470
2663 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_padding_left', [
2664 - 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_left'],
2665 - 'capability' => 'edit_theme_options',
2666 - 'transport' => 'postMessage',
2667 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3471 + $this->customizer->add_control(
3472 + new AlphaColorControl(
3473 + $this->customizer,
3474 + 'betterdocs_toc_active_item_color_layout_8_9',
3475 + [
3476 + 'label' => __( 'Active Item Color', 'betterdocs' ),
3477 + 'priority' => 146,
3478 + 'section' => 'betterdocs_single_docs_settings',
3479 + 'settings' => 'betterdocs_toc_active_item_color_layout_8_9'
3480 + ]
3481 + )
3482 + );
3483 + }
2668 3484
2669 - ] );
3485 + public function toc_active_item_border_color_layout_8_9() {
3486 + $this->customizer->add_setting(
3487 + 'toc_active_item_border_color_layout_8_9',
3488 + [
3489 + 'capability' => 'edit_theme_options',
3490 + 'default' => $this->defaults['toc_active_item_border_color_layout_8_9'],
3491 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3492 + ]
3493 + );
2670 3494
2671 - $this->customizer->add_control( new DimensionControl(
2672 - $this->customizer, 'betterdocs_doc_single_attachment_label_padding_left', [
2673 - 'type' => 'betterdocs-dimension',
2674 - 'section' => 'betterdocs_single_docs_settings',
2675 - 'settings' => 'betterdocs_doc_single_attachment_label_padding_left',
2676 - 'label' => __( 'Left', 'betterdocs' ),
2677 - 'priority' => 163,
2678 - 'input_attrs' => [
2679 - 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
2680 - ]
2681 - ] )
2682 - );
2683 - }
3495 + $this->customizer->add_control(
3496 + new AlphaColorControl(
3497 + $this->customizer,
3498 + 'toc_active_item_border_color_layout_8_9',
3499 + [
3500 + 'label' => __( 'Active Item Border Color', 'betterdocs' ),
3501 + 'priority' => 146,
3502 + 'section' => 'betterdocs_single_docs_settings',
3503 + 'settings' => 'toc_active_item_border_color_layout_8_9'
3504 + ]
3505 + )
3506 + );
3507 + }
2684 3508
2685 - public function betterdocs_doc_single_attachment_label_margin() {
2686 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin', [
2687 - 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin'],
2688 - 'capability' => 'edit_theme_options',
2689 - 'transport' => 'postMessage',
2690 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3509 + public function toc_item_hover_bg_color_layout_10() {
3510 + $this->customizer->add_setting(
3511 + 'toc_item_hover_bg_color_layout_10',
3512 + [
3513 + 'capability' => 'edit_theme_options',
3514 + 'default' => $this->defaults['toc_item_hover_bg_color_layout_10'],
3515 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3516 + ]
3517 + );
2691 3518
2692 - ] );
3519 + $this->customizer->add_control(
3520 + new AlphaColorControl(
3521 + $this->customizer,
3522 + 'toc_item_hover_bg_color_layout_10',
3523 + [
3524 + 'label' => __( 'Active Item Background Color', 'betterdocs' ),
3525 + 'priority' => 146,
3526 + 'section' => 'betterdocs_single_docs_settings',
3527 + 'settings' => 'toc_item_hover_bg_color_layout_10'
3528 + ]
3529 + )
3530 + );
3531 + }
2693 3532
2694 - $this->customizer->add_control( new TitleControl(
2695 - $this->customizer, 'betterdocs_doc_single_attachment_label_margin', [
2696 - 'type' => 'betterdocs-title',
2697 - 'section' => 'betterdocs_single_docs_settings',
2698 - 'settings' => 'betterdocs_doc_single_attachment_label_margin',
2699 - 'label' => __( 'Label Margin', 'betterdocs' ),
2700 - 'priority' => 163,
2701 - 'input_attrs' => [
2702 - 'id' => 'betterdocs_doc_single_attachment_label_margin',
2703 - 'class' => 'betterdocs-dimension'
2704 - ]
2705 - ] )
2706 - );
3533 + public function toc_list_item_font_size_layout_8_9() {
3534 + $this->customizer->add_setting(
3535 + 'betterdocs_toc_list_item_font_size_layout_8_9',
3536 + [
3537 + 'default' => $this->defaults['betterdocs_toc_list_item_font_size_layout_8_9'],
3538 + 'capability' => 'edit_theme_options',
3539 + 'transport' => 'postMessage',
3540 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2707 3541
2708 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_top', [
2709 - 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_top'],
2710 - 'capability' => 'edit_theme_options',
2711 - 'transport' => 'postMessage',
2712 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2713 - ] );
3542 + ]
3543 + );
2714 3544
2715 - $this->customizer->add_control( new DimensionControl(
2716 - $this->customizer, 'betterdocs_doc_single_attachment_label_margin_top', [
2717 - 'type' => 'betterdocs-dimension',
2718 - 'section' => 'betterdocs_single_docs_settings',
2719 - 'settings' => 'betterdocs_doc_single_attachment_label_margin_top',
2720 - 'label' => __( 'Top', 'betterdocs' ),
2721 - 'priority' => 163,
2722 - 'input_attrs' => [
2723 - 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
2724 - ]
2725 - ] )
2726 - );
3545 + $this->customizer->add_control(
3546 + new RangeValueControl(
3547 + $this->customizer,
3548 + 'betterdocs_toc_list_item_font_size_layout_8_9',
3549 + [
3550 + 'type' => 'betterdocs-range-value',
3551 + 'section' => 'betterdocs_single_docs_settings',
3552 + 'settings' => 'betterdocs_toc_list_item_font_size_layout_8_9',
3553 + 'label' => __( 'List Item Font Size', 'betterdocs' ),
3554 + 'priority' => 147,
3555 + 'input_attrs' => [
3556 + 'class' => '',
3557 + 'min' => 0,
3558 + 'max' => 50,
3559 + 'step' => 1,
3560 + 'suffix' => 'px' //optional suffix
3561 + ]
3562 + ]
3563 + )
3564 + );
3565 + }
2727 3566
2728 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_right', [
2729 - 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_right'],
2730 - 'capability' => 'edit_theme_options',
2731 - 'transport' => 'postMessage',
2732 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3567 + public function doc_single_toc_list_margin_layout_8_9() {
3568 + $this->customizer->add_setting(
3569 + 'betterdocs_doc_single_toc_list_margin_layout_8_9',
3570 + [
3571 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_layout_8_9'],
3572 + 'capability' => 'edit_theme_options',
3573 + 'transport' => 'postMessage',
3574 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2733 3575
2734 - ] );
3576 + ]
3577 + );
2735 3578
2736 - $this->customizer->add_control( new DimensionControl(
2737 - $this->customizer, 'betterdocs_doc_single_attachment_label_margin_right', [
2738 - 'type' => 'betterdocs-dimension',
2739 - 'section' => 'betterdocs_single_docs_settings',
2740 - 'settings' => 'betterdocs_doc_single_attachment_label_margin_right',
2741 - 'label' => __( 'Right', 'betterdocs' ),
2742 - 'priority' => 163,
2743 - 'input_attrs' => [
2744 - 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
2745 - ]
2746 - ] )
2747 - );
3579 + $this->customizer->add_control(
3580 + new TitleControl(
3581 + $this->customizer,
3582 + 'betterdocs_doc_single_toc_list_margin_layout_8_9',
3583 + [
3584 + 'type' => 'betterdocs-title',
3585 + 'section' => 'betterdocs_single_docs_settings',
3586 + 'settings' => 'betterdocs_doc_single_toc_list_margin_layout_8_9',
3587 + 'label' => __( 'TOC List Margin', 'betterdocs' ),
3588 + 'priority' => 148,
3589 + 'input_attrs' => [
3590 + 'id' => 'betterdocs_doc_single_toc_list_margin_layout_8_9',
3591 + 'class' => 'betterdocs-dimension'
3592 + ]
3593 + ]
3594 + )
3595 + );
2748 3596
2749 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_bottom', [
2750 - 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_bottom'],
2751 - 'capability' => 'edit_theme_options',
2752 - 'transport' => 'postMessage',
2753 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2754 - ] );
3597 + $this->customizer->add_setting(
3598 + 'betterdocs_doc_single_toc_list_margin_top_layout_8_9',
3599 + [
3600 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_top_layout_8_9'],
3601 + 'capability' => 'edit_theme_options',
3602 + 'transport' => 'postMessage',
3603 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3604 + ]
3605 + );
2755 3606
2756 - $this->customizer->add_control( new DimensionControl(
2757 - $this->customizer, 'betterdocs_doc_single_attachment_label_margin_bottom', [
2758 - 'type' => 'betterdocs-dimension',
2759 - 'section' => 'betterdocs_single_docs_settings',
2760 - 'settings' => 'betterdocs_doc_single_attachment_label_margin_bottom',
2761 - 'label' => __( 'Bottom', 'betterdocs' ),
2762 - 'priority' => 163,
2763 - 'input_attrs' => [
2764 - 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
2765 - ]
2766 - ] )
2767 - );
3607 + $this->customizer->add_control(
3608 + new DimensionControl(
3609 + $this->customizer,
3610 + 'betterdocs_doc_single_toc_list_margin_top_layout_8_9',
3611 + [
3612 + 'type' => 'betterdocs-dimension',
3613 + 'section' => 'betterdocs_single_docs_settings',
3614 + 'settings' => 'betterdocs_doc_single_toc_list_margin_top_layout_8_9',
3615 + 'label' => __( 'Top', 'betterdocs' ),
3616 + 'priority' => 148,
3617 + 'input_attrs' => [
3618 + 'class' => 'betterdocs_doc_single_toc_list_margin_layout_8_9 betterdocs-dimension'
3619 + ]
3620 + ]
3621 + )
3622 + );
2768 3623
2769 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_label_margin_left', [
2770 - 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_left'],
2771 - 'capability' => 'edit_theme_options',
2772 - 'transport' => 'postMessage',
2773 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2774 - ] );
3624 + $this->customizer->add_setting(
3625 + 'betterdocs_doc_single_toc_list_margin_right_layout_8_9',
3626 + [
3627 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_right_layout_8_9'],
3628 + 'capability' => 'edit_theme_options',
3629 + 'transport' => 'postMessage',
3630 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2775 3631
2776 - $this->customizer->add_control( new DimensionControl(
2777 - $this->customizer, 'betterdocs_doc_single_attachment_label_margin_left', [
2778 - 'type' => 'betterdocs-dimension',
2779 - 'section' => 'betterdocs_single_docs_settings',
2780 - 'settings' => 'betterdocs_doc_single_attachment_label_margin_left',
2781 - 'label' => __( 'Left', 'betterdocs' ),
2782 - 'priority' => 163,
2783 - 'input_attrs' => [
2784 - 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
2785 - ]
2786 - ] )
2787 - );
2788 - }
3632 + ]
3633 + );
2789 3634
2790 - public function betterdocs_doc_single_attachment_list_font_size() {
2791 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_font_size', [
2792 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_size'],
2793 - 'capability' => 'edit_theme_options',
2794 - 'transport' => 'postMessage',
2795 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3635 + $this->customizer->add_control(
3636 + new DimensionControl(
3637 + $this->customizer,
3638 + 'betterdocs_doc_single_toc_list_margin_right_layout_8_9',
3639 + [
3640 + 'type' => 'betterdocs-dimension',
3641 + 'section' => 'betterdocs_single_docs_settings',
3642 + 'settings' => 'betterdocs_doc_single_toc_list_margin_right_layout_8_9',
3643 + 'label' => __( 'Right', 'betterdocs' ),
3644 + 'priority' => 148,
3645 + 'input_attrs' => [
3646 + 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
3647 + ]
3648 + ]
3649 + )
3650 + );
2796 3651
2797 - ] );
3652 + $this->customizer->add_setting(
3653 + 'betterdocs_doc_single_toc_list_margin_bottom_layout_8_9',
3654 + [
3655 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_bottom_layout_8_9'],
3656 + 'capability' => 'edit_theme_options',
3657 + 'transport' => 'postMessage',
3658 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2798 3659
2799 - $this->customizer->add_control( new RangeValueControl(
2800 - $this->customizer, 'betterdocs_doc_single_attachment_list_font_size', [
2801 - 'type' => 'betterdocs-range-value',
2802 - 'section' => 'betterdocs_single_docs_settings',
2803 - 'settings' => 'betterdocs_doc_single_attachment_list_font_size',
2804 - 'label' => __( 'List Font Size', 'betterdocs' ),
2805 - 'priority' => 163,
2806 - 'input_attrs' => [
2807 - 'min' => 0,
2808 - 'max' => 50,
2809 - 'step' => 1,
2810 - 'suffix' => 'px' //optional suffix
2811 - ]
2812 - ] )
2813 - );
2814 - }
3660 + ]
3661 + );
2815 3662
2816 - public function betterdocs_doc_single_attachment_list_font_weight() {
2817 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_font_weight', [
2818 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_weight'],
2819 - 'capability' => 'edit_theme_options',
2820 - 'sanitize_callback' => [$this->sanitizer, 'choices']
2821 - ] );
3663 + $this->customizer->add_control(
3664 + new DimensionControl(
3665 + $this->customizer,
3666 + 'betterdocs_doc_single_toc_list_margin_bottom_layout_8_9',
3667 + [
3668 + 'type' => 'betterdocs-dimension',
3669 + 'section' => 'betterdocs_single_docs_settings',
3670 + 'settings' => 'betterdocs_doc_single_toc_list_margin_bottom_layout_8_9',
3671 + 'label' => __( 'Bottom', 'betterdocs' ),
3672 + 'priority' => 148,
3673 + 'input_attrs' => [
3674 + 'class' => 'betterdocs_doc_single_toc_list_margin_layout_8_9 betterdocs-dimension'
3675 + ]
3676 + ]
3677 + )
3678 + );
2822 3679
2823 - $this->customizer->add_control(
2824 - new WP_Customize_Control(
2825 - $this->customizer,
2826 - 'betterdocs_doc_single_attachment_list_font_weight',
2827 - [
2828 - 'label' => __( 'List Font Weight', 'betterdocs-pro' ),
2829 - 'section' => 'betterdocs_single_docs_settings',
2830 - 'settings' => 'betterdocs_doc_single_attachment_list_font_weight',
2831 - 'type' => 'select',
2832 - 'choices' => [
2833 - 'normal' => 'Normal',
2834 - '100' => '100',
2835 - '200' => '200',
2836 - '300' => '300',
2837 - '400' => '400',
2838 - '500' => '500',
2839 - '600' => '600',
2840 - '700' => '700',
2841 - '800' => '800',
2842 - '900' => '900'
2843 - ],
2844 - 'priority' => 163
2845 - ]
2846 - )
2847 - );
2848 - }
3680 + $this->customizer->add_setting(
3681 + 'betterdocs_doc_single_toc_list_margin_left_layout_8_9',
3682 + [
3683 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_left_layout_8_9'],
3684 + 'capability' => 'edit_theme_options',
3685 + 'transport' => 'postMessage',
3686 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2849 3687
2850 - public function betterdocs_doc_single_attachment_list_extension_color() {
2851 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_extension_color', [
2852 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_color'],
2853 - 'capability' => 'edit_theme_options',
2854 - 'transport' => 'postMessage',
2855 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
2856 - ] );
3688 + ]
3689 + );
2857 3690
2858 - $this->customizer->add_control(
2859 - new AlphaColorControl(
2860 - $this->customizer,
2861 - 'betterdocs_doc_single_attachment_list_extension_color',
2862 - [
2863 - 'label' => __( 'Extension Color', 'betterdocs' ),
2864 - 'section' => 'betterdocs_single_docs_settings',
2865 - 'settings' => 'betterdocs_doc_single_attachment_list_extension_color',
2866 - 'priority' => 163
2867 - ]
2868 - )
2869 - );
2870 - }
2871 - public function betterdocs_doc_single_attachment_list_extension_font_size() {
2872 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_extension_font_size', [
2873 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_size'],
2874 - 'capability' => 'edit_theme_options',
2875 - 'transport' => 'postMessage',
2876 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3691 + $this->customizer->add_control(
3692 + new DimensionControl(
3693 + $this->customizer,
3694 + 'betterdocs_doc_single_toc_list_margin_left_layout_8_9',
3695 + [
3696 + 'type' => 'betterdocs-dimension',
3697 + 'section' => 'betterdocs_single_docs_settings',
3698 + 'settings' => 'betterdocs_doc_single_toc_list_margin_left_layout_8_9',
3699 + 'label' => __( 'Left', 'betterdocs' ),
3700 + 'priority' => 148,
3701 + 'input_attrs' => [
3702 + 'class' => 'betterdocs_doc_single_toc_list_margin_layout_8_9 betterdocs-dimension'
3703 + ]
3704 + ]
3705 + )
3706 + );
3707 + }
2877 3708
2878 - ] );
3709 + public function doc_author_section() {
3710 + $this->customizer->add_setting(
3711 + 'betterdocs_doc_author_section',
3712 + [
3713 + 'default' => $this->defaults['betterdocs_doc_author_section'],
3714 + 'sanitize_callback' => 'esc_html'
3715 + ]
3716 + );
2879 3717
2880 - $this->customizer->add_control( new RangeValueControl(
2881 - $this->customizer, 'betterdocs_doc_single_attachment_list_extension_font_size', [
2882 - 'type' => 'betterdocs-range-value',
2883 - 'section' => 'betterdocs_single_docs_settings',
2884 - 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_size',
2885 - 'label' => __( 'Extension Font Size', 'betterdocs' ),
2886 - 'priority' => 163,
2887 - 'input_attrs' => [
2888 - 'min' => 0,
2889 - 'max' => 50,
2890 - 'step' => 1,
2891 - 'suffix' => 'px' //optional suffix
2892 - ]
2893 - ] )
2894 - );
2895 - }
3718 + $this->customizer->add_control(
3719 + new SeparatorControl(
3720 + $this->customizer,
3721 + 'betterdocs_doc_author_section',
3722 + [
3723 + 'label' => __( 'Author', 'betterdocs' ),
3724 + 'priority' => 155,
3725 + 'settings' => 'betterdocs_doc_author_section',
3726 + 'section' => 'betterdocs_single_docs_settings'
3727 + ]
3728 + )
3729 + );
3730 + }
2896 3731
2897 - public function betterdocs_doc_single_attachment_list_extension_font_weight() {
2898 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_extension_font_weight', [
2899 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_weight'],
2900 - 'capability' => 'edit_theme_options',
2901 - 'sanitize_callback' => [$this->sanitizer, 'choices']
2902 - ] );
3732 + public function doc_author_enable() {
3733 + $this->customizer->add_setting(
3734 + 'betterdocs_doc_author_enable',
3735 + [
3736 + 'default' => $this->defaults['betterdocs_doc_author_enable'],
3737 + 'capability' => 'edit_theme_options',
3738 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
3739 + ]
3740 + );
2903 3741
2904 - $this->customizer->add_control(
2905 - new WP_Customize_Control(
2906 - $this->customizer,
2907 - 'betterdocs_doc_single_attachment_list_extension_font_weight',
2908 - [
2909 - 'label' => __( 'Extension Font Weight', 'betterdocs-pro' ),
2910 - 'section' => 'betterdocs_single_docs_settings',
2911 - 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_weight',
2912 - 'type' => 'select',
2913 - 'choices' => [
2914 - 'normal' => 'Normal',
2915 - '100' => '100',
2916 - '200' => '200',
2917 - '300' => '300',
2918 - '400' => '400',
2919 - '500' => '500',
2920 - '600' => '600',
2921 - '700' => '700',
2922 - '800' => '800',
2923 - '900' => '900'
2924 - ],
2925 - 'priority' => 163
2926 - ]
2927 - )
2928 - );
2929 - }
3742 + $this->customizer->add_control(
3743 + new ToggleControl(
3744 + $this->customizer,
3745 + 'betterdocs_doc_author_enable',
3746 + [
3747 + 'label' => __( 'Enable Author Info', 'betterdocs' ),
3748 + 'priority' => 155,
3749 + 'section' => 'betterdocs_single_docs_settings',
3750 + 'settings' => 'betterdocs_doc_author_enable',
3751 + 'type' => 'light' // light, ios, flat
3752 + ]
3753 + )
3754 + );
3755 + }
2930 3756
2931 - public function betterdocs_doc_single_attachment_list_color() {
2932 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_color', [
2933 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_color'],
2934 - 'capability' => 'edit_theme_options',
2935 - 'transport' => 'postMessage',
2936 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
2937 - ] );
3757 + public function doc_author_enable_layout_9() {
3758 + $this->customizer->add_setting(
3759 + 'betterdocs_doc_author_enable_layout_9',
3760 + [
3761 + 'default' => $this->defaults['betterdocs_doc_author_enable_layout_9'],
3762 + 'capability' => 'edit_theme_options',
3763 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
3764 + ]
3765 + );
2938 3766
2939 - $this->customizer->add_control(
2940 - new AlphaColorControl(
2941 - $this->customizer,
2942 - 'betterdocs_doc_single_attachment_list_color',
2943 - [
2944 - 'label' => __( 'List Color', 'betterdocs' ),
2945 - 'section' => 'betterdocs_single_docs_settings',
2946 - 'settings' => 'betterdocs_doc_single_attachment_list_color',
2947 - 'priority' => 163
2948 - ]
2949 - )
2950 - );
2951 - }
3767 + $this->customizer->add_control(
3768 + new ToggleControl(
3769 + $this->customizer,
3770 + 'betterdocs_doc_author_enable_layout_9',
3771 + [
3772 + 'label' => __( 'Enable Author Info', 'betterdocs' ),
3773 + 'priority' => 155,
3774 + 'section' => 'betterdocs_single_docs_settings',
3775 + 'settings' => 'betterdocs_doc_author_enable_layout_9',
3776 + 'type' => 'light' // light, ios, flat
3777 + ]
3778 + )
3779 + );
3780 + }
2952 3781
2953 - public function betterdocs_doc_single_attachment_list_background_color() {
2954 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_background_color', [
2955 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_background_color'],
2956 - 'capability' => 'edit_theme_options',
2957 - 'transport' => 'postMessage',
2958 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
2959 - ] );
3782 + public function doc_author_date() {
3783 + $this->customizer->add_setting(
3784 + 'betterdocs_doc_author_date',
3785 + [
3786 + 'default' => $this->defaults['betterdocs_doc_author_date'],
3787 + 'capability' => 'edit_theme_options',
3788 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
3789 + ]
3790 + );
2960 3791
2961 - $this->customizer->add_control(
2962 - new AlphaColorControl(
2963 - $this->customizer,
2964 - 'betterdocs_doc_single_attachment_list_background_color',
2965 - [
2966 - 'label' => __( 'List Background Color', 'betterdocs' ),
2967 - 'section' => 'betterdocs_single_docs_settings',
2968 - 'settings' => 'betterdocs_doc_single_attachment_list_background_color',
2969 - 'priority' => 163
2970 - ]
2971 - )
2972 - );
2973 - }
3792 + $this->customizer->add_control(
3793 + new ToggleControl(
3794 + $this->customizer,
3795 + 'betterdocs_doc_author_date',
3796 + [
3797 + 'label' => __( 'Updated Date', 'betterdocs' ),
3798 + 'priority' => 155,
3799 + 'section' => 'betterdocs_single_docs_settings',
3800 + 'settings' => 'betterdocs_doc_author_date',
3801 + 'type' => 'light' // light, ios, flat
3802 + ]
3803 + )
3804 + );
3805 + }
2974 3806
2975 - public function betterdocs_doc_single_attachment_list_padding() {
2976 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding', [
2977 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding'],
2978 - 'capability' => 'edit_theme_options',
2979 - 'transport' => 'postMessage',
2980 - 'sanitize_callback' => [$this->sanitizer, 'integer']
2981 3807
2982 - ] );
3808 + public function doc_estimate_reading_time_section() {
3809 + $this->customizer->add_setting(
3810 + 'betterdocs_doc_estimate_reading_time_section',
3811 + [
3812 + 'default' => $this->defaults['betterdocs_doc_estimate_reading_time_section'],
3813 + 'sanitize_callback' => 'esc_html'
3814 + ]
3815 + );
2983 3816
2984 - $this->customizer->add_control( new TitleControl(
2985 - $this->customizer, 'betterdocs_doc_single_attachment_list_padding', [
2986 - 'type' => 'betterdocs-title',
2987 - 'section' => 'betterdocs_single_docs_settings',
2988 - 'settings' => 'betterdocs_doc_single_attachment_list_padding',
2989 - 'label' => __( 'List Padding', 'betterdocs' ),
2990 - 'priority' => 163,
2991 - 'input_attrs' => [
2992 - 'id' => 'betterdocs_doc_single_attachment_list_padding',
2993 - 'class' => 'betterdocs-dimension'
2994 - ]
2995 - ] )
2996 - );
3817 + $this->customizer->add_control(
3818 + new SeparatorControl(
3819 + $this->customizer,
3820 + 'betterdocs_doc_estimate_reading_time_section',
3821 + [
3822 + 'label' => __( 'Estimated Reading Time', 'betterdocs' ),
3823 + 'priority' => 155,
3824 + 'settings' => 'betterdocs_doc_estimate_reading_time_section',
3825 + 'section' => 'betterdocs_single_docs_settings'
3826 + ]
3827 + )
3828 + );
3829 + }
2997 3830
2998 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_top', [
2999 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_top'],
3000 - 'capability' => 'edit_theme_options',
3001 - 'transport' => 'postMessage',
3002 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3003 - ] );
3831 + public function doc_erstimate_reading_time_bg_color() {
3832 + $this->customizer->add_setting(
3833 + 'betterdocs_doc_single_content_est_reading_bg_color',
3834 + [
3835 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_bg_color'],
3836 + 'capability' => 'edit_theme_options',
3837 + 'transport' => 'postMessage',
3838 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3839 + ]
3840 + );
3004 3841
3005 - $this->customizer->add_control( new DimensionControl(
3006 - $this->customizer, 'betterdocs_doc_single_attachment_list_padding_top', [
3007 - 'type' => 'betterdocs-dimension',
3008 - 'section' => 'betterdocs_single_docs_settings',
3009 - 'settings' => 'betterdocs_doc_single_attachment_list_padding_top',
3010 - 'label' => __( 'Top', 'betterdocs' ),
3011 - 'priority' => 163,
3012 - 'input_attrs' => [
3013 - 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
3014 - ]
3015 - ] )
3016 - );
3842 + $this->customizer->add_control(
3843 + new AlphaColorControl(
3844 + $this->customizer,
3845 + 'betterdocs_doc_single_content_est_reading_bg_color',
3846 + [
3847 + 'label' => __( 'Background Color', 'betterdocs' ),
3848 + 'priority' => 155,
3849 + 'section' => 'betterdocs_single_docs_settings',
3850 + 'settings' => 'betterdocs_doc_single_content_est_reading_bg_color'
3851 + ]
3852 + )
3853 + );
3854 + }
3017 3855
3018 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_right', [
3019 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_right'],
3020 - 'capability' => 'edit_theme_options',
3021 - 'transport' => 'postMessage',
3022 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3856 + public function doc_erstimate_reading_time_bg_color_layout_8_9() {
3857 + $this->customizer->add_setting(
3858 + 'betterdocs_doc_single_content_est_reading_bg_color_layout_8_9',
3859 + [
3860 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_bg_color_layout_8_9'],
3861 + 'capability' => 'edit_theme_options',
3862 + 'transport' => 'postMessage',
3863 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3864 + ]
3865 + );
3023 3866
3024 - ] );
3867 + $this->customizer->add_control(
3868 + new AlphaColorControl(
3869 + $this->customizer,
3870 + 'betterdocs_doc_single_content_est_reading_bg_color_layout_8_9',
3871 + [
3872 + 'label' => __( 'Background Color', 'betterdocs' ),
3873 + 'priority' => 155,
3874 + 'section' => 'betterdocs_single_docs_settings',
3875 + 'settings' => 'betterdocs_doc_single_content_est_reading_bg_color_layout_8_9'
3876 + ]
3877 + )
3878 + );
3879 + }
3025 3880
3026 - $this->customizer->add_control( new DimensionControl(
3027 - $this->customizer, 'betterdocs_doc_single_attachment_list_padding_right', [
3028 - 'type' => 'betterdocs-dimension',
3029 - 'section' => 'betterdocs_single_docs_settings',
3030 - 'settings' => 'betterdocs_doc_single_attachment_list_padding_right',
3031 - 'label' => __( 'Right', 'betterdocs' ),
3032 - 'priority' => 163,
3033 - 'input_attrs' => [
3034 - 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
3035 - ]
3036 - ] )
3037 - );
3881 + public function doc_estimate_reading_time_icon_color() {
3882 + $this->customizer->add_setting(
3883 + 'betterdocs_doc_single_content_est_reading_icon_color',
3884 + [
3885 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_icon_color'],
3886 + 'capability' => 'edit_theme_options',
3887 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3888 + ]
3889 + );
3038 3890
3039 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_bottom', [
3040 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_bottom'],
3041 - 'capability' => 'edit_theme_options',
3042 - 'transport' => 'postMessage',
3043 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3044 - ] );
3891 + $this->customizer->add_control(
3892 + new AlphaColorControl(
3893 + $this->customizer,
3894 + 'betterdocs_doc_single_content_est_reading_icon_color',
3895 + [
3896 + 'label' => __( 'Clock Icon Color', 'betterdocs' ),
3897 + 'priority' => 155,
3898 + 'section' => 'betterdocs_single_docs_settings',
3899 + 'settings' => 'betterdocs_doc_single_content_est_reading_icon_color'
3900 + ]
3901 + )
3902 + );
3903 + }
3045 3904
3046 - $this->customizer->add_control( new DimensionControl(
3047 - $this->customizer, 'betterdocs_doc_single_attachment_list_padding_bottom', [
3048 - 'type' => 'betterdocs-dimension',
3049 - 'section' => 'betterdocs_single_docs_settings',
3050 - 'settings' => 'betterdocs_doc_single_attachment_list_padding_bottom',
3051 - 'label' => __( 'Bottom', 'betterdocs' ),
3052 - 'priority' => 163,
3053 - 'input_attrs' => [
3054 - 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
3055 - ]
3056 - ] )
3057 - );
3905 + public function betterdocs_doc_single_content_est_reading_icon_font_size() {
3906 + $this->customizer->add_setting(
3907 + 'betterdocs_doc_single_content_est_reading_icon_font_size',
3908 + [
3909 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_icon_font_size'],
3910 + 'capability' => 'edit_theme_options',
3911 + 'transport' => 'postMessage',
3912 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3058 3913
3059 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_padding_left', [
3060 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_left'],
3061 - 'capability' => 'edit_theme_options',
3062 - 'transport' => 'postMessage',
3063 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3064 - ] );
3914 + ]
3915 + );
3065 3916
3066 - $this->customizer->add_control( new DimensionControl(
3067 - $this->customizer, 'betterdocs_doc_single_attachment_list_padding_left', [
3068 - 'type' => 'betterdocs-dimension',
3069 - 'section' => 'betterdocs_single_docs_settings',
3070 - 'settings' => 'betterdocs_doc_single_attachment_list_padding_left',
3071 - 'label' => __( 'Left', 'betterdocs' ),
3072 - 'priority' => 163,
3073 - 'input_attrs' => [
3074 - 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
3075 - ]
3076 - ] )
3077 - );
3078 - }
3917 + $this->customizer->add_control(
3918 + new RangeValueControl(
3919 + $this->customizer,
3920 + 'betterdocs_doc_single_content_est_reading_icon_font_size',
3921 + [
3922 + 'type' => 'betterdocs-range-value',
3923 + 'section' => 'betterdocs_single_docs_settings',
3924 + 'settings' => 'betterdocs_doc_single_content_est_reading_icon_font_size',
3925 + 'label' => __( 'Clock Icon Size', 'betterdocs' ),
3926 + 'priority' => 155,
3927 + 'input_attrs' => [
3928 + 'min' => 0,
3929 + 'max' => 50,
3930 + 'step' => 1,
3931 + 'suffix' => 'px' //optional suffix
3932 + ]
3933 + ]
3934 + )
3935 + );
3936 + }
3079 3937
3080 - public function betterdocs_doc_single_attachment_list_margin() {
3081 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin', [
3082 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin'],
3083 - 'capability' => 'edit_theme_options',
3084 - 'transport' => 'postMessage',
3085 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3938 + public function doc_estimate_reading_time_color() {
3939 + $this->customizer->add_setting(
3940 + 'betterdocs_doc_single_content_est_reading_color',
3941 + [
3942 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_color'],
3943 + 'capability' => 'edit_theme_options',
3944 + 'transport' => 'postMessage',
3945 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3946 + ]
3947 + );
3086 3948
3087 - ] );
3949 + $this->customizer->add_control(
3950 + new AlphaColorControl(
3951 + $this->customizer,
3952 + 'betterdocs_doc_single_content_est_reading_color',
3953 + [
3954 + 'label' => __( 'Font Color', 'betterdocs' ),
3955 + 'priority' => 155,
3956 + 'section' => 'betterdocs_single_docs_settings',
3957 + 'settings' => 'betterdocs_doc_single_content_est_reading_color'
3958 + ]
3959 + )
3960 + );
3961 + }
3088 3962
3089 - $this->customizer->add_control( new TitleControl(
3090 - $this->customizer, 'betterdocs_doc_single_attachment_list_margin', [
3091 - 'type' => 'betterdocs-title',
3092 - 'section' => 'betterdocs_single_docs_settings',
3093 - 'settings' => 'betterdocs_doc_single_attachment_list_margin',
3094 - 'label' => __( 'List Margin', 'betterdocs' ),
3095 - 'priority' => 163,
3096 - 'input_attrs' => [
3097 - 'id' => 'betterdocs_doc_single_attachment_list_margin',
3098 - 'class' => 'betterdocs-dimension'
3099 - ]
3100 - ] )
3101 - );
3963 + public function betterdocs_doc_single_content_est_reading_font_size() {
3964 + $this->customizer->add_setting(
3965 + 'betterdocs_doc_single_content_est_reading_font_size',
3966 + [
3967 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_font_size'],
3968 + 'capability' => 'edit_theme_options',
3969 + 'transport' => 'postMessage',
3970 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3102 3971
3103 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_top', [
3104 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_top'],
3105 - 'capability' => 'edit_theme_options',
3106 - 'transport' => 'postMessage',
3107 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3108 - ] );
3972 + ]
3973 + );
3109 3974
3110 - $this->customizer->add_control( new DimensionControl(
3111 - $this->customizer, 'betterdocs_doc_single_attachment_list_margin_top', [
3112 - 'type' => 'betterdocs-dimension',
3113 - 'section' => 'betterdocs_single_docs_settings',
3114 - 'settings' => 'betterdocs_doc_single_attachment_list_margin_top',
3115 - 'label' => __( 'Top', 'betterdocs' ),
3116 - 'priority' => 163,
3117 - 'input_attrs' => [
3118 - 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
3119 - ]
3120 - ] )
3121 - );
3975 + $this->customizer->add_control(
3976 + new RangeValueControl(
3977 + $this->customizer,
3978 + 'betterdocs_doc_single_content_est_reading_font_size',
3979 + [
3980 + 'type' => 'betterdocs-range-value',
3981 + 'section' => 'betterdocs_single_docs_settings',
3982 + 'settings' => 'betterdocs_doc_single_content_est_reading_font_size',
3983 + 'label' => __( 'Font Size', 'betterdocs' ),
3984 + 'priority' => 155,
3985 + 'input_attrs' => [
3986 + 'min' => 0,
3987 + 'max' => 50,
3988 + 'step' => 1,
3989 + 'suffix' => 'px' //optional suffix
3990 + ]
3991 + ]
3992 + )
3993 + );
3994 + }
3122 3995
3123 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_right', [
3124 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_right'],
3125 - 'capability' => 'edit_theme_options',
3126 - 'transport' => 'postMessage',
3127 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3996 + public function betterdocs_doc_single_content_est_reading_border_radius() {
3997 + $this->customizer->add_setting(
3998 + 'betterdocs_doc_single_content_est_reading_border_radius',
3999 + [
4000 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_border_radius'],
4001 + 'capability' => 'edit_theme_options',
4002 + 'transport' => 'postMessage',
4003 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3128 4004
3129 - ] );
4005 + ]
4006 + );
3130 4007
3131 - $this->customizer->add_control( new DimensionControl(
3132 - $this->customizer, 'betterdocs_doc_single_attachment_list_margin_right', [
3133 - 'type' => 'betterdocs-dimension',
3134 - 'section' => 'betterdocs_single_docs_settings',
3135 - 'settings' => 'betterdocs_doc_single_attachment_list_margin_right',
3136 - 'label' => __( 'Right', 'betterdocs' ),
3137 - 'priority' => 163,
3138 - 'input_attrs' => [
3139 - 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
3140 - ]
3141 - ] )
3142 - );
4008 + $this->customizer->add_control(
4009 + new RangeValueControl(
4010 + $this->customizer,
4011 + 'betterdocs_doc_single_content_est_reading_border_radius',
4012 + [
4013 + 'type' => 'betterdocs-range-value',
4014 + 'section' => 'betterdocs_single_docs_settings',
4015 + 'settings' => 'betterdocs_doc_single_content_est_reading_border_radius',
4016 + 'label' => __( 'Border Radius', 'betterdocs' ),
4017 + 'input_attrs' => [
4018 + 'class' => '',
4019 + 'min' => 0,
4020 + 'max' => 100,
4021 + 'step' => 1,
4022 + 'suffix' => 'px' //optional suffix
4023 + ],
4024 + 'priority' => 155
4025 + ]
4026 + )
4027 + );
4028 + }
3143 4029
3144 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_bottom', [
3145 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_bottom'],
3146 - 'capability' => 'edit_theme_options',
3147 - 'transport' => 'postMessage',
3148 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3149 - ] );
4030 + public function betterdocs_doc_single_content_est_reading_font_weight() {
4031 + $this->customizer->add_setting(
4032 + 'betterdocs_doc_single_content_est_reading_font_weight',
4033 + [
4034 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_font_weight'],
4035 + 'capability' => 'edit_theme_options',
4036 + 'transport' => 'postMessage',
4037 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
4038 + ]
4039 + );
3150 4040
3151 - $this->customizer->add_control( new DimensionControl(
3152 - $this->customizer, 'betterdocs_doc_single_attachment_list_margin_bottom', [
3153 - 'type' => 'betterdocs-dimension',
3154 - 'section' => 'betterdocs_single_docs_settings',
3155 - 'settings' => 'betterdocs_doc_single_attachment_list_margin_bottom',
3156 - 'label' => __( 'Bottom', 'betterdocs' ),
3157 - 'priority' => 163,
3158 - 'input_attrs' => [
3159 - 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
3160 - ]
3161 - ] )
3162 - );
4041 + $this->customizer->add_control(
4042 + new WP_Customize_Control(
4043 + $this->customizer,
4044 + 'betterdocs_doc_single_content_est_reading_font_weight',
4045 + [
4046 + 'label' => __( 'Font Weight', 'betterdocs' ),
4047 + 'section' => 'betterdocs_single_docs_settings',
4048 + 'settings' => 'betterdocs_doc_single_content_est_reading_font_weight',
4049 + 'type' => 'select',
4050 + 'choices' => [
4051 + 'normal' => 'Normal',
4052 + '100' => '100',
4053 + '200' => '200',
4054 + '300' => '300',
4055 + '400' => '400',
4056 + '500' => '500',
4057 + '600' => '600',
4058 + '700' => '700',
4059 + '800' => '800',
4060 + '900' => '900'
4061 + ],
4062 + 'priority' => 155
4063 + ]
4064 + )
4065 + );
4066 + }
3163 4067
3164 - $this->customizer->add_setting( 'betterdocs_doc_single_attachment_list_margin_left', [
3165 - 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_left'],
3166 - 'capability' => 'edit_theme_options',
3167 - 'transport' => 'postMessage',
3168 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3169 - ] );
4068 + public function betterdocs_doc_single_content_est_reading_margin() {
4069 + $this->customizer->add_setting(
4070 + 'betterdocs_doc_single_content_est_reading_margin',
4071 + [
4072 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin'],
4073 + 'capability' => 'edit_theme_options',
4074 + 'transport' => 'postMessage',
4075 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4076 + ]
4077 + );
3170 4078
3171 - $this->customizer->add_control( new DimensionControl(
3172 - $this->customizer, 'betterdocs_doc_single_attachment_list_margin_left', [
3173 - 'type' => 'betterdocs-dimension',
3174 - 'section' => 'betterdocs_single_docs_settings',
3175 - 'settings' => 'betterdocs_doc_single_attachment_list_margin_left',
3176 - 'label' => __( 'Left', 'betterdocs' ),
3177 - 'priority' => 163,
3178 - 'input_attrs' => [
3179 - 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
3180 - ]
3181 - ] )
3182 - );
3183 - }
4079 + $this->customizer->add_control(
4080 + new TitleControl(
4081 + $this->customizer,
4082 + 'betterdocs_doc_single_content_est_reading_margin',
4083 + [
4084 + 'type' => 'betterdocs-title',
4085 + 'section' => 'betterdocs_single_docs_settings',
4086 + 'settings' => 'betterdocs_doc_single_content_est_reading_margin',
4087 + 'label' => __( 'Margin', 'betterdocs' ),
4088 + 'priority' => 155,
4089 + 'input_attrs' => [
4090 + 'id' => 'betterdocs_doc_single_content_est_reading_margin',
4091 + 'class' => 'betterdocs-dimension'
4092 + ]
4093 + ]
4094 + )
4095 + );
3184 4096
3185 - public function betterdocs_doc_single_related_docs_heading() {
3186 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_heading', [
3187 - 'default' => 'betterdocs_doc_single_related_docs_heading',
3188 - 'sanitize_callback' => 'esc_html'
3189 - ] );
4097 + $this->customizer->add_setting(
4098 + 'betterdocs_doc_single_content_est_reading_margin_top',
4099 + [
4100 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_top'],
4101 + 'capability' => 'edit_theme_options',
4102 + 'transport' => 'postMessage',
4103 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4104 + ]
4105 + );
3190 4106
3191 - $this->customizer->add_control( new SeparatorControl(
3192 - $this->customizer, 'betterdocs_doc_single_related_docs_heading', [
3193 - 'label' => __( 'Related Docs', 'betterdocs' ),
3194 - 'priority' => 163,
3195 - 'settings' => 'betterdocs_doc_single_related_docs_heading',
3196 - 'section' => 'betterdocs_single_docs_settings'
3197 - ] )
3198 - );
3199 - }
4107 + $this->customizer->add_control(
4108 + new DimensionControl(
4109 + $this->customizer,
4110 + 'betterdocs_doc_single_content_est_reading_margin_top',
4111 + [
4112 + 'type' => 'betterdocs-dimension',
4113 + 'section' => 'betterdocs_single_docs_settings',
4114 + 'settings' => 'betterdocs_doc_single_content_est_reading_margin_top',
4115 + 'label' => __( 'Top', 'betterdocs' ),
4116 + 'priority' => 155,
4117 + 'input_attrs' => [
4118 + 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
4119 + ]
4120 + ]
4121 + )
4122 + );
3200 4123
3201 - public function betterdocs_doc_single_related_docs_content_bg_color() {
3202 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_bg_color', [
3203 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_bg_color'],
3204 - 'capability' => 'edit_theme_options',
3205 - 'transport' => 'postMessage',
3206 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
3207 - ] );
4124 + $this->customizer->add_setting(
4125 + 'betterdocs_doc_single_content_est_reading_margin_right',
4126 + [
4127 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_right'],
4128 + 'capability' => 'edit_theme_options',
4129 + 'transport' => 'postMessage',
4130 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4131 + ]
4132 + );
3208 4133
3209 - $this->customizer->add_control(
3210 - new AlphaColorControl(
3211 - $this->customizer,
3212 - 'betterdocs_doc_single_related_docs_content_bg_color',
3213 - [
3214 - 'label' => __( 'Content Background Color', 'betterdocs' ),
3215 - 'section' => 'betterdocs_single_docs_settings',
3216 - 'settings' => 'betterdocs_doc_single_related_docs_content_bg_color',
3217 - 'priority' => 163
3218 - ]
3219 - )
3220 - );
3221 - }
4134 + $this->customizer->add_control(
4135 + new DimensionControl(
4136 + $this->customizer,
4137 + 'betterdocs_doc_single_content_est_reading_margin_right',
4138 + [
4139 + 'type' => 'betterdocs-dimension',
4140 + 'section' => 'betterdocs_single_docs_settings',
4141 + 'settings' => 'betterdocs_doc_single_content_est_reading_margin_right',
4142 + 'label' => __( 'Right', 'betterdocs' ),
4143 + 'priority' => 155,
4144 + 'input_attrs' => [
4145 + 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
4146 + ]
4147 + ]
4148 + )
4149 + );
3222 4150
3223 - public function betterdocs_doc_single_related_docs_content_padding() {
3224 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding', [
3225 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding'],
3226 - 'capability' => 'edit_theme_options',
3227 - 'transport' => 'postMessage',
3228 - 'sanitize_callback' => [$this->sanitizer, 'integer']
4151 + $this->customizer->add_setting(
4152 + 'betterdocs_doc_single_content_est_reading_margin_bottom',
4153 + [
4154 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_bottom'],
4155 + 'capability' => 'edit_theme_options',
4156 + 'transport' => 'postMessage',
4157 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4158 + ]
4159 + );
3229 4160
3230 - ] );
4161 + $this->customizer->add_control(
4162 + new DimensionControl(
4163 + $this->customizer,
4164 + 'betterdocs_doc_single_content_est_reading_margin_bottom',
4165 + [
4166 + 'type' => 'betterdocs-dimension',
4167 + 'section' => 'betterdocs_single_docs_settings',
4168 + 'settings' => 'betterdocs_doc_single_content_est_reading_margin_bottom',
4169 + 'label' => __( 'Bottom', 'betterdocs' ),
4170 + 'priority' => 155,
4171 + 'input_attrs' => [
4172 + 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
4173 + ]
4174 + ]
4175 + )
4176 + );
3231 4177
3232 - $this->customizer->add_control( new TitleControl(
3233 - $this->customizer, 'betterdocs_doc_single_related_docs_content_padding', [
3234 - 'type' => 'betterdocs-title',
3235 - 'section' => 'betterdocs_single_docs_settings',
3236 - 'settings' => 'betterdocs_doc_single_related_docs_content_padding',
3237 - 'label' => __( 'Content Padding', 'betterdocs' ),
3238 - 'priority' => 163,
3239 - 'input_attrs' => [
3240 - 'id' => 'betterdocs_doc_single_related_docs_content_padding',
3241 - 'class' => 'betterdocs-dimension'
3242 - ]
3243 - ] )
3244 - );
4178 + $this->customizer->add_setting(
4179 + 'betterdocs_doc_single_content_est_reading_margin_left',
4180 + [
4181 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_left'],
4182 + 'capability' => 'edit_theme_options',
4183 + 'transport' => 'postMessage',
4184 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4185 + ]
4186 + );
3245 4187
3246 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_top', [
3247 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_top'],
3248 - 'capability' => 'edit_theme_options',
3249 - 'transport' => 'postMessage',
3250 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3251 - ] );
4188 + $this->customizer->add_control(
4189 + new DimensionControl(
4190 + $this->customizer,
4191 + 'betterdocs_doc_single_content_est_reading_margin_left',
4192 + [
4193 + 'type' => 'betterdocs-dimension',
4194 + 'section' => 'betterdocs_single_docs_settings',
4195 + 'settings' => 'betterdocs_doc_single_content_est_reading_margin_left',
4196 + 'label' => __( 'Left', 'betterdocs' ),
4197 + 'priority' => 155,
4198 + 'input_attrs' => [
4199 + 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
4200 + ]
4201 + ]
4202 + )
4203 + );
4204 + }
3252 4205
3253 - $this->customizer->add_control( new DimensionControl(
3254 - $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_top', [
3255 - 'type' => 'betterdocs-dimension',
3256 - 'section' => 'betterdocs_single_docs_settings',
3257 - 'settings' => 'betterdocs_doc_single_related_docs_content_padding_top',
3258 - 'label' => __( 'Top', 'betterdocs' ),
3259 - 'priority' => 163,
3260 - 'input_attrs' => [
3261 - 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
3262 - ]
3263 - ] )
3264 - );
4206 + public function betterdocs_doc_single_content_est_reading_padding() {
4207 + $this->customizer->add_setting(
4208 + 'betterdocs_doc_single_content_est_reading_padding',
4209 + [
4210 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding'],
4211 + 'capability' => 'edit_theme_options',
4212 + 'transport' => 'postMessage',
4213 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3265 4214
3266 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_right', [
3267 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_right'],
3268 - 'capability' => 'edit_theme_options',
3269 - 'transport' => 'postMessage',
3270 - 'sanitize_callback' => [$this->sanitizer, 'integer']
4215 + ]
4216 + );
3271 4217
3272 - ] );
4218 + $this->customizer->add_control(
4219 + new TitleControl(
4220 + $this->customizer,
4221 + 'betterdocs_doc_single_content_est_reading_padding',
4222 + [
4223 + 'type' => 'betterdocs-title',
4224 + 'section' => 'betterdocs_single_docs_settings',
4225 + 'settings' => 'betterdocs_doc_single_content_est_reading_padding',
4226 + 'label' => __( 'Padding', 'betterdocs' ),
4227 + 'priority' => 155,
4228 + 'input_attrs' => [
4229 + 'id' => 'betterdocs_doc_single_content_est_reading_padding',
4230 + 'class' => 'betterdocs-dimension'
4231 + ]
4232 + ]
4233 + )
4234 + );
3273 4235
3274 - $this->customizer->add_control( new DimensionControl(
3275 - $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_right', [
3276 - 'type' => 'betterdocs-dimension',
3277 - 'section' => 'betterdocs_single_docs_settings',
3278 - 'settings' => 'betterdocs_doc_single_related_docs_content_padding_right',
3279 - 'label' => __( 'Right', 'betterdocs' ),
3280 - 'priority' => 163,
3281 - 'input_attrs' => [
3282 - 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
3283 - ]
3284 - ] )
3285 - );
4236 + $this->customizer->add_setting(
4237 + 'betterdocs_doc_single_content_est_reading_padding_top',
4238 + [
4239 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_top'],
4240 + 'capability' => 'edit_theme_options',
4241 + 'transport' => 'postMessage',
4242 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4243 + ]
4244 + );
3286 4245
3287 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_bottom', [
3288 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_bottom'],
3289 - 'capability' => 'edit_theme_options',
3290 - 'transport' => 'postMessage',
3291 - 'sanitize_callback' => [$this->sanitizer, 'integer']
4246 + $this->customizer->add_control(
4247 + new DimensionControl(
4248 + $this->customizer,
4249 + 'betterdocs_doc_single_content_est_reading_padding_top',
4250 + [
4251 + 'type' => 'betterdocs-dimension',
4252 + 'section' => 'betterdocs_single_docs_settings',
4253 + 'settings' => 'betterdocs_doc_single_content_est_reading_padding_top',
4254 + 'label' => __( 'Top', 'betterdocs' ),
4255 + 'priority' => 155,
4256 + 'input_attrs' => [
4257 + 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
4258 + ]
4259 + ]
4260 + )
4261 + );
3292 4262
3293 - ] );
4263 + $this->customizer->add_setting(
4264 + 'betterdocs_doc_single_content_est_reading_padding_right',
4265 + [
4266 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_right'],
4267 + 'capability' => 'edit_theme_options',
4268 + 'transport' => 'postMessage',
4269 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3294 4270
3295 - $this->customizer->add_control( new DimensionControl(
3296 - $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_bottom', [
3297 - 'type' => 'betterdocs-dimension',
3298 - 'section' => 'betterdocs_single_docs_settings',
3299 - 'settings' => 'betterdocs_doc_single_related_docs_content_padding_bottom',
3300 - 'label' => __( 'Bottom', 'betterdocs' ),
3301 - 'priority' => 163,
3302 - 'input_attrs' => [
3303 - 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
3304 - ]
3305 - ] )
3306 - );
4271 + ]
4272 + );
3307 4273
3308 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_padding_left', [
3309 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_left'],
3310 - 'capability' => 'edit_theme_options',
3311 - 'transport' => 'postMessage',
3312 - 'sanitize_callback' => [$this->sanitizer, 'integer']
4274 + $this->customizer->add_control(
4275 + new DimensionControl(
4276 + $this->customizer,
4277 + 'betterdocs_doc_single_content_est_reading_padding_right',
4278 + [
4279 + 'type' => 'betterdocs-dimension',
4280 + 'section' => 'betterdocs_single_docs_settings',
4281 + 'settings' => 'betterdocs_doc_single_content_est_reading_padding_right',
4282 + 'label' => __( 'Right', 'betterdocs' ),
4283 + 'priority' => 155,
4284 + 'input_attrs' => [
4285 + 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
4286 + ]
4287 + ]
4288 + )
4289 + );
3313 4290
3314 - ] );
4291 + $this->customizer->add_setting(
4292 + 'betterdocs_doc_single_content_est_reading_padding_bottom',
4293 + [
4294 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_bottom'],
4295 + 'capability' => 'edit_theme_options',
4296 + 'transport' => 'postMessage',
4297 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3315 4298
3316 - $this->customizer->add_control( new DimensionControl(
3317 - $this->customizer, 'betterdocs_doc_single_related_docs_content_padding_left', [
3318 - 'type' => 'betterdocs-dimension',
3319 - 'section' => 'betterdocs_single_docs_settings',
3320 - 'settings' => 'betterdocs_doc_single_related_docs_content_padding_left',
3321 - 'label' => __( 'Left', 'betterdocs' ),
3322 - 'priority' => 163,
3323 - 'input_attrs' => [
3324 - 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
3325 - ]
3326 - ] )
3327 - );
3328 - }
4299 + ]
4300 + );
3329 4301
3330 - public function betterdocs_doc_single_related_docs_content_margin() {
3331 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin', [
3332 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin'],
3333 - 'capability' => 'edit_theme_options',
3334 - 'transport' => 'postMessage',
3335 - 'sanitize_callback' => [$this->sanitizer, 'integer']
4302 + $this->customizer->add_control(
4303 + new DimensionControl(
4304 + $this->customizer,
4305 + 'betterdocs_doc_single_content_est_reading_padding_bottom',
4306 + [
4307 + 'type' => 'betterdocs-dimension',
4308 + 'section' => 'betterdocs_single_docs_settings',
4309 + 'settings' => 'betterdocs_doc_single_content_est_reading_padding_bottom',
4310 + 'label' => __( 'Bottom', 'betterdocs' ),
4311 + 'priority' => 155,
4312 + 'input_attrs' => [
4313 + 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
4314 + ]
4315 + ]
4316 + )
4317 + );
3336 4318
3337 - ] );
4319 + $this->customizer->add_setting(
4320 + 'betterdocs_doc_single_content_est_reading_padding_left',
4321 + [
4322 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_left'],
4323 + 'capability' => 'edit_theme_options',
4324 + 'transport' => 'postMessage',
4325 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3338 4326
3339 - $this->customizer->add_control( new TitleControl(
3340 - $this->customizer, 'betterdocs_doc_single_related_docs_content_margin', [
3341 - 'type' => 'betterdocs-title',
3342 - 'section' => 'betterdocs_single_docs_settings',
3343 - 'settings' => 'betterdocs_doc_single_related_docs_content_margin',
3344 - 'label' => __( 'Content Margin', 'betterdocs' ),
3345 - 'priority' => 163,
3346 - 'input_attrs' => [
3347 - 'id' => 'betterdocs_doc_single_related_docs_content_margin',
3348 - 'class' => 'betterdocs-dimension'
3349 - ]
3350 - ] )
3351 - );
4327 + ]
4328 + );
3352 4329
3353 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_top', [
3354 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_top'],
3355 - 'capability' => 'edit_theme_options',
3356 - 'transport' => 'postMessage',
3357 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3358 - ] );
4330 + $this->customizer->add_control(
4331 + new DimensionControl(
4332 + $this->customizer,
4333 + 'betterdocs_doc_single_content_est_reading_padding_left',
4334 + [
4335 + 'type' => 'betterdocs-dimension',
4336 + 'section' => 'betterdocs_single_docs_settings',
4337 + 'settings' => 'betterdocs_doc_single_content_est_reading_padding_left',
4338 + 'label' => __( 'Left', 'betterdocs' ),
4339 + 'priority' => 155,
4340 + 'input_attrs' => [
4341 + 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
4342 + ]
4343 + ]
4344 + )
4345 + );
4346 + }
3359 4347
3360 - $this->customizer->add_control( new DimensionControl(
3361 - $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_top', [
3362 - 'type' => 'betterdocs-dimension',
3363 - 'section' => 'betterdocs_single_docs_settings',
3364 - 'settings' => 'betterdocs_doc_single_related_docs_content_margin_top',
3365 - 'label' => __( 'Top', 'betterdocs' ),
3366 - 'priority' => 163,
3367 - 'input_attrs' => [
3368 - 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
3369 - ]
3370 - ] )
3371 - );
4348 + /**
4349 + * AI Actions split button.
4350 + *
4351 + * Mirrors the style controls the Gutenberg block and the Elementor widget
4352 + * already expose (see Editors/Elementor/Widget/ReadingTime.php:377-471), so the
4353 + * three surfaces stay in step. Declared physically after the reading-time group
4354 + * and sharing its priority of 155: WP_Customize_Manager::prepare_controls()
4355 + * sorts by priority then instance_number, and instance_number follows
4356 + * registration order, which Section::register() takes from get_class_methods()
4357 + * — i.e. source order. There is no free integer between 155 and the 156 "Entry
4358 + * Content" separator, and this is the same mechanism that already keeps the
4359 + * Author group above Estimated Reading Time.
4360 + */
4361 + public function doc_ai_actions_section() {
4362 + $this->customizer->add_setting(
4363 + 'betterdocs_doc_ai_actions_section',
4364 + [
4365 + 'default' => $this->defaults['betterdocs_doc_ai_actions_section'],
4366 + 'sanitize_callback' => 'esc_html'
4367 + ]
4368 + );
3372 4369
3373 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_right', [
3374 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_right'],
3375 - 'capability' => 'edit_theme_options',
3376 - 'transport' => 'postMessage',
3377 - 'sanitize_callback' => [$this->sanitizer, 'integer']
4370 + $this->customizer->add_control(
4371 + new SeparatorControl(
4372 + $this->customizer,
4373 + 'betterdocs_doc_ai_actions_section',
4374 + [
4375 + 'label' => __( 'AI Actions', 'betterdocs' ),
4376 + 'priority' => 155,
4377 + 'settings' => 'betterdocs_doc_ai_actions_section',
4378 + 'section' => 'betterdocs_single_docs_settings'
4379 + ]
4380 + )
4381 + );
4382 + }
3378 4383
3379 - ] );
4384 + public function betterdocs_doc_single_content_ai_actions_bg_color() {
4385 + $this->customizer->add_setting(
4386 + 'betterdocs_doc_single_content_ai_actions_bg_color',
4387 + [
4388 + 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_bg_color'],
4389 + 'capability' => 'edit_theme_options',
4390 + 'transport' => 'postMessage',
4391 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4392 + ]
4393 + );
3380 4394
3381 - $this->customizer->add_control( new DimensionControl(
3382 - $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_right', [
3383 - 'type' => 'betterdocs-dimension',
3384 - 'section' => 'betterdocs_single_docs_settings',
3385 - 'settings' => 'betterdocs_doc_single_related_docs_content_margin_right',
3386 - 'label' => __( 'Right', 'betterdocs' ),
3387 - 'priority' => 163,
3388 - 'input_attrs' => [
3389 - 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
3390 - ]
3391 - ] )
3392 - );
4395 + $this->customizer->add_control(
4396 + new AlphaColorControl(
4397 + $this->customizer,
4398 + 'betterdocs_doc_single_content_ai_actions_bg_color',
4399 + [
4400 + 'label' => __( 'Background Color', 'betterdocs' ),
4401 + 'priority' => 155,
4402 + 'section' => 'betterdocs_single_docs_settings',
4403 + 'settings' => 'betterdocs_doc_single_content_ai_actions_bg_color'
4404 + ]
4405 + )
4406 + );
4407 + }
3393 4408
3394 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_bottom', [
3395 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_bottom'],
3396 - 'capability' => 'edit_theme_options',
3397 - 'transport' => 'postMessage',
3398 - 'sanitize_callback' => [$this->sanitizer, 'integer']
4409 + public function betterdocs_doc_single_content_ai_actions_color() {
4410 + $this->customizer->add_setting(
4411 + 'betterdocs_doc_single_content_ai_actions_color',
4412 + [
4413 + 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_color'],
4414 + 'capability' => 'edit_theme_options',
4415 + 'transport' => 'postMessage',
4416 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4417 + ]
4418 + );
3399 4419
3400 - ] );
4420 + $this->customizer->add_control(
4421 + new AlphaColorControl(
4422 + $this->customizer,
4423 + 'betterdocs_doc_single_content_ai_actions_color',
4424 + [
4425 + 'label' => __( 'Font Color', 'betterdocs' ),
4426 + 'priority' => 155,
4427 + 'section' => 'betterdocs_single_docs_settings',
4428 + 'settings' => 'betterdocs_doc_single_content_ai_actions_color'
4429 + ]
4430 + )
4431 + );
4432 + }
3401 4433
3402 - $this->customizer->add_control( new DimensionControl(
3403 - $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_bottom', [
3404 - 'type' => 'betterdocs-dimension',
3405 - 'section' => 'betterdocs_single_docs_settings',
3406 - 'settings' => 'betterdocs_doc_single_related_docs_content_margin_bottom',
3407 - 'label' => __( 'Bottom', 'betterdocs' ),
3408 - 'priority' => 163,
3409 - 'input_attrs' => [
3410 - 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
3411 - ]
3412 - ] )
3413 - );
4434 + public function betterdocs_doc_single_content_ai_actions_font_size() {
4435 + $this->customizer->add_setting(
4436 + 'betterdocs_doc_single_content_ai_actions_font_size',
4437 + [
4438 + 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_font_size'],
4439 + 'capability' => 'edit_theme_options',
4440 + 'transport' => 'postMessage',
4441 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4442 + ]
4443 + );
3414 4444
3415 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_content_margin_left', [
3416 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_left'],
3417 - 'capability' => 'edit_theme_options',
3418 - 'transport' => 'postMessage',
3419 - 'sanitize_callback' => [$this->sanitizer, 'integer']
4445 + $this->customizer->add_control(
4446 + new RangeValueControl(
4447 + $this->customizer,
4448 + 'betterdocs_doc_single_content_ai_actions_font_size',
4449 + [
4450 + 'type' => 'betterdocs-range-value',
4451 + 'section' => 'betterdocs_single_docs_settings',
4452 + 'settings' => 'betterdocs_doc_single_content_ai_actions_font_size',
4453 + 'label' => __( 'Font Size', 'betterdocs' ),
4454 + 'priority' => 155,
4455 + 'input_attrs' => [
4456 + 'min' => 0,
4457 + 'max' => 40,
4458 + 'step' => 1,
4459 + 'suffix' => 'px',
4460 + // The setting defaults to '' so nothing is emitted until the
4461 + // user opts in, but '' is not representable in an
4462 + // <input type="range"> — the browser coerces it to the
4463 + // min/max midpoint. This is the value ai-actions.scss actually
4464 + // paints, so the thumb starts on the truth. Read by
4465 + // customizer-range-value-control.js; never written to the setting.
4466 + 'data-unset-val' => 14
4467 + ]
4468 + ]
4469 + )
4470 + );
4471 + }
3420 4472
3421 - ] );
4473 + public function betterdocs_doc_single_content_ai_actions_font_weight() {
4474 + $this->customizer->add_setting(
4475 + 'betterdocs_doc_single_content_ai_actions_font_weight',
4476 + [
4477 + 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_font_weight'],
4478 + 'capability' => 'edit_theme_options',
4479 + 'transport' => 'postMessage',
4480 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
4481 + ]
4482 + );
3422 4483
3423 - $this->customizer->add_control( new DimensionControl(
3424 - $this->customizer, 'betterdocs_doc_single_related_docs_content_margin_left', [
3425 - 'type' => 'betterdocs-dimension',
3426 - 'section' => 'betterdocs_single_docs_settings',
3427 - 'settings' => 'betterdocs_doc_single_related_docs_content_margin_left',
3428 - 'label' => __( 'Left', 'betterdocs' ),
3429 - 'priority' => 163,
3430 - 'input_attrs' => [
3431 - 'class' => 'betterdocs_doc_single_related_docs_content_margin_left betterdocs-dimension'
3432 - ]
3433 - ] )
3434 - );
3435 - }
4484 + $this->customizer->add_control(
4485 + new WP_Customize_Control(
4486 + $this->customizer,
4487 + 'betterdocs_doc_single_content_ai_actions_font_weight',
4488 + [
4489 + 'label' => __( 'Font Weight', 'betterdocs' ),
4490 + 'section' => 'betterdocs_single_docs_settings',
4491 + 'settings' => 'betterdocs_doc_single_content_ai_actions_font_weight',
4492 + 'type' => 'select',
4493 + // The empty option has to be a real choice: Sanitizer::select()
4494 + // falls back to the setting default unless the input is a key of
4495 + // $control->choices, and '' is the default that emits nothing.
4496 + 'choices' => [
4497 + '' => __( 'Default', 'betterdocs' ),
4498 + 'normal' => 'Normal',
4499 + '100' => '100',
4500 + '200' => '200',
4501 + '300' => '300',
4502 + '400' => '400',
4503 + '500' => '500',
4504 + '600' => '600',
4505 + '700' => '700',
4506 + '800' => '800',
4507 + '900' => '900'
4508 + ],
4509 + 'priority' => 155
4510 + ]
4511 + )
4512 + );
4513 + }
3436 4514
3437 - public function betterdocs_doc_single_related_docs_label_color() {
3438 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_color', [
3439 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_color'],
3440 - 'capability' => 'edit_theme_options',
3441 - 'transport' => 'postMessage',
3442 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
3443 - ] );
4515 + public function betterdocs_doc_single_content_ai_actions_icon_size() {
4516 + $this->customizer->add_setting(
4517 + 'betterdocs_doc_single_content_ai_actions_icon_size',
4518 + [
4519 + 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_icon_size'],
4520 + 'capability' => 'edit_theme_options',
4521 + 'transport' => 'postMessage',
4522 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4523 + ]
4524 + );
3444 4525
3445 - $this->customizer->add_control(
3446 - new AlphaColorControl(
3447 - $this->customizer,
3448 - 'betterdocs_doc_single_related_docs_label_color',
3449 - [
3450 - 'label' => __( 'Label Color', 'betterdocs' ),
3451 - 'section' => 'betterdocs_single_docs_settings',
3452 - 'settings' => 'betterdocs_doc_single_related_docs_label_color',
3453 - 'priority' => 163
3454 - ]
3455 - )
3456 - );
3457 - }
4526 + $this->customizer->add_control(
4527 + new RangeValueControl(
4528 + $this->customizer,
4529 + 'betterdocs_doc_single_content_ai_actions_icon_size',
4530 + [
4531 + 'type' => 'betterdocs-range-value',
4532 + 'section' => 'betterdocs_single_docs_settings',
4533 + 'settings' => 'betterdocs_doc_single_content_ai_actions_icon_size',
4534 + 'label' => __( 'Icon Size', 'betterdocs' ),
4535 + 'priority' => 155,
4536 + 'input_attrs' => [
4537 + 'min' => 10,
4538 + 'max' => 40,
4539 + 'step' => 1,
4540 + 'suffix' => 'px',
4541 + // Reset target, so it has to be the shipped default.
4542 + 'data-unset-val' => 14
4543 + ]
4544 + ]
4545 + )
4546 + );
4547 + }
3458 4548
3459 - public function betterdocs_doc_single_related_docs_label_padding() {
3460 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding', [
3461 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding'],
3462 - 'capability' => 'edit_theme_options',
3463 - 'transport' => 'postMessage',
3464 - 'sanitize_callback' => [$this->sanitizer, 'integer']
4549 + /**
4550 + * Icon colour. Separate from the label colour above: the copy glyph and the
4551 + * caret are the only part of the control that can carry a tint without
4552 + * turning the label into a link-coloured word, and every icon in the button
4553 + * is stroked with `currentColor`, so one `color` declaration does both.
4554 + */
4555 + public function betterdocs_doc_single_content_ai_actions_icon_color() {
4556 + $this->customizer->add_setting(
4557 + 'betterdocs_doc_single_content_ai_actions_icon_color',
4558 + [
4559 + 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_icon_color'],
4560 + 'capability' => 'edit_theme_options',
4561 + 'transport' => 'postMessage',
4562 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4563 + ]
4564 + );
3465 4565
3466 - ] );
4566 + $this->customizer->add_control(
4567 + new AlphaColorControl(
4568 + $this->customizer,
4569 + 'betterdocs_doc_single_content_ai_actions_icon_color',
4570 + [
4571 + 'label' => __( 'Icon Color', 'betterdocs' ),
4572 + 'priority' => 155,
4573 + 'section' => 'betterdocs_single_docs_settings',
4574 + 'settings' => 'betterdocs_doc_single_content_ai_actions_icon_color'
4575 + ]
4576 + )
4577 + );
4578 + }
3467 4579
3468 - $this->customizer->add_control( new TitleControl(
3469 - $this->customizer, 'betterdocs_doc_single_related_docs_label_padding', [
3470 - 'type' => 'betterdocs-title',
3471 - 'section' => 'betterdocs_single_docs_settings',
3472 - 'settings' => 'betterdocs_doc_single_related_docs_label_padding',
3473 - 'label' => __( 'Label Padding', 'betterdocs' ),
3474 - 'priority' => 163,
3475 - 'input_attrs' => [
3476 - 'id' => 'betterdocs_doc_single_related_docs_label_padding',
3477 - 'class' => 'betterdocs-dimension'
3478 - ]
3479 - ] )
3480 - );
4580 + public function betterdocs_doc_single_content_ai_actions_border_color() {
4581 + $this->customizer->add_setting(
4582 + 'betterdocs_doc_single_content_ai_actions_border_color',
4583 + [
4584 + 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_border_color'],
4585 + 'capability' => 'edit_theme_options',
4586 + 'transport' => 'postMessage',
4587 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4588 + ]
4589 + );
3481 4590
3482 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_top', [
3483 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_top'],
3484 - 'capability' => 'edit_theme_options',
3485 - 'transport' => 'postMessage',
3486 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3487 - ] );
4591 + $this->customizer->add_control(
4592 + new AlphaColorControl(
4593 + $this->customizer,
4594 + 'betterdocs_doc_single_content_ai_actions_border_color',
4595 + [
4596 + 'label' => __( 'Border Color', 'betterdocs' ),
4597 + 'priority' => 155,
4598 + 'section' => 'betterdocs_single_docs_settings',
4599 + 'settings' => 'betterdocs_doc_single_content_ai_actions_border_color'
4600 + ]
4601 + )
4602 + );
4603 + }
3488 4604
3489 - $this->customizer->add_control( new DimensionControl(
3490 - $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_top', [
3491 - 'type' => 'betterdocs-dimension',
3492 - 'section' => 'betterdocs_single_docs_settings',
3493 - 'settings' => 'betterdocs_doc_single_related_docs_label_padding_top',
3494 - 'label' => __( 'Top', 'betterdocs' ),
3495 - 'priority' => 163,
3496 - 'input_attrs' => [
3497 - 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
3498 - ]
3499 - ] )
3500 - );
4605 + public function betterdocs_doc_single_content_ai_actions_border_width() {
4606 + $this->customizer->add_setting(
4607 + 'betterdocs_doc_single_content_ai_actions_border_width',
4608 + [
4609 + 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_border_width'],
4610 + 'capability' => 'edit_theme_options',
4611 + 'transport' => 'postMessage',
4612 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4613 + ]
4614 + );
3501 4615
3502 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_right', [
3503 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_right'],
3504 - 'capability' => 'edit_theme_options',
3505 - 'transport' => 'postMessage',
3506 - 'sanitize_callback' => [$this->sanitizer, 'integer']
4616 + $this->customizer->add_control(
4617 + new RangeValueControl(
4618 + $this->customizer,
4619 + 'betterdocs_doc_single_content_ai_actions_border_width',
4620 + [
4621 + 'type' => 'betterdocs-range-value',
4622 + 'section' => 'betterdocs_single_docs_settings',
4623 + 'settings' => 'betterdocs_doc_single_content_ai_actions_border_width',
4624 + 'label' => __( 'Border Width', 'betterdocs' ),
4625 + 'priority' => 155,
4626 + 'input_attrs' => [
4627 + 'min' => 0,
4628 + 'max' => 10,
4629 + 'step' => 1,
4630 + 'suffix' => 'px',
4631 + // The button ships borderless, so 0 is both the default and
4632 + // what "reset" has to return to.
4633 + 'data-unset-val' => 0
4634 + ]
4635 + ]
4636 + )
4637 + );
4638 + }
3507 4639
3508 - ] );
4640 + public function betterdocs_doc_single_content_ai_actions_border_radius() {
4641 + $this->customizer->add_setting(
4642 + 'betterdocs_doc_single_content_ai_actions_border_radius',
4643 + [
4644 + 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_border_radius'],
4645 + 'capability' => 'edit_theme_options',
4646 + 'transport' => 'postMessage',
4647 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4648 + ]
4649 + );
3509 4650
3510 - $this->customizer->add_control( new DimensionControl(
3511 - $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_right', [
3512 - 'type' => 'betterdocs-dimension',
3513 - 'section' => 'betterdocs_single_docs_settings',
3514 - 'settings' => 'betterdocs_doc_single_related_docs_label_padding_right',
3515 - 'label' => __( 'Right', 'betterdocs' ),
3516 - 'priority' => 163,
3517 - 'input_attrs' => [
3518 - 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
3519 - ]
3520 - ] )
3521 - );
4651 + $this->customizer->add_control(
4652 + new RangeValueControl(
4653 + $this->customizer,
4654 + 'betterdocs_doc_single_content_ai_actions_border_radius',
4655 + [
4656 + 'type' => 'betterdocs-range-value',
4657 + 'section' => 'betterdocs_single_docs_settings',
4658 + 'settings' => 'betterdocs_doc_single_content_ai_actions_border_radius',
4659 + 'label' => __( 'Border Radius', 'betterdocs' ),
4660 + 'priority' => 155,
4661 + 'input_attrs' => [
4662 + 'min' => 0,
4663 + 'max' => 100,
4664 + 'step' => 1,
4665 + 'suffix' => 'px',
4666 + // The shipped corner, shared with the reading-time pill.
4667 + 'data-unset-val' => 16
4668 + ]
4669 + ]
4670 + )
4671 + );
4672 + }
3522 4673
3523 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_bottom', [
3524 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_bottom'],
3525 - 'capability' => 'edit_theme_options',
3526 - 'transport' => 'postMessage',
3527 - 'sanitize_callback' => [$this->sanitizer, 'integer']
4674 + public function betterdocs_doc_single_content_ai_actions_padding() {
4675 + $this->customizer->add_setting(
4676 + 'betterdocs_doc_single_content_ai_actions_padding',
4677 + [
4678 + 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_padding'],
4679 + 'capability' => 'edit_theme_options',
4680 + 'transport' => 'postMessage',
4681 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4682 + ]
4683 + );
3528 4684
3529 - ] );
4685 + $this->customizer->add_control(
4686 + new TitleControl(
4687 + $this->customizer,
4688 + 'betterdocs_doc_single_content_ai_actions_padding',
4689 + [
4690 + 'type' => 'betterdocs-title',
4691 + 'section' => 'betterdocs_single_docs_settings',
4692 + 'settings' => 'betterdocs_doc_single_content_ai_actions_padding',
4693 + 'label' => __( 'Padding', 'betterdocs' ),
4694 + 'priority' => 155,
4695 + 'input_attrs' => [
4696 + 'id' => 'betterdocs_doc_single_content_ai_actions_padding',
4697 + 'class' => 'betterdocs-dimension'
4698 + ]
4699 + ]
4700 + )
4701 + );
3530 4702
3531 - $this->customizer->add_control( new DimensionControl(
3532 - $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_bottom', [
3533 - 'type' => 'betterdocs-dimension',
3534 - 'section' => 'betterdocs_single_docs_settings',
3535 - 'settings' => 'betterdocs_doc_single_related_docs_label_padding_bottom',
3536 - 'label' => __( 'Bottom', 'betterdocs' ),
3537 - 'priority' => 163,
3538 - 'input_attrs' => [
3539 - 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
3540 - ]
3541 - ] )
3542 - );
4703 + $this->customizer->add_setting(
4704 + 'betterdocs_doc_single_content_ai_actions_padding_top',
4705 + [
4706 + 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_padding_top'],
4707 + 'capability' => 'edit_theme_options',
4708 + 'transport' => 'postMessage',
4709 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4710 + ]
4711 + );
3543 4712
3544 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_padding_left', [
3545 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_left'],
3546 - 'capability' => 'edit_theme_options',
3547 - 'transport' => 'postMessage',
3548 - 'sanitize_callback' => [$this->sanitizer, 'integer']
4713 + $this->customizer->add_control(
4714 + new DimensionControl(
4715 + $this->customizer,
4716 + 'betterdocs_doc_single_content_ai_actions_padding_top',
4717 + [
4718 + 'type' => 'betterdocs-dimension',
4719 + 'section' => 'betterdocs_single_docs_settings',
4720 + 'settings' => 'betterdocs_doc_single_content_ai_actions_padding_top',
4721 + 'label' => __( 'Top', 'betterdocs' ),
4722 + 'priority' => 155,
4723 + 'input_attrs' => [
4724 + 'class' => 'betterdocs_doc_single_content_ai_actions_padding betterdocs-dimension'
4725 + ]
4726 + ]
4727 + )
4728 + );
3549 4729
3550 - ] );
4730 + $this->customizer->add_setting(
4731 + 'betterdocs_doc_single_content_ai_actions_padding_right',
4732 + [
4733 + 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_padding_right'],
4734 + 'capability' => 'edit_theme_options',
4735 + 'transport' => 'postMessage',
4736 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4737 + ]
4738 + );
3551 4739
3552 - $this->customizer->add_control( new DimensionControl(
3553 - $this->customizer, 'betterdocs_doc_single_related_docs_label_padding_left', [
3554 - 'type' => 'betterdocs-dimension',
3555 - 'section' => 'betterdocs_single_docs_settings',
3556 - 'settings' => 'betterdocs_doc_single_related_docs_label_padding_left',
3557 - 'label' => __( 'Left', 'betterdocs' ),
3558 - 'priority' => 163,
3559 - 'input_attrs' => [
3560 - 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
3561 - ]
3562 - ] )
3563 - );
3564 - }
4740 + $this->customizer->add_control(
4741 + new DimensionControl(
4742 + $this->customizer,
4743 + 'betterdocs_doc_single_content_ai_actions_padding_right',
4744 + [
4745 + 'type' => 'betterdocs-dimension',
4746 + 'section' => 'betterdocs_single_docs_settings',
4747 + 'settings' => 'betterdocs_doc_single_content_ai_actions_padding_right',
4748 + 'label' => __( 'Right', 'betterdocs' ),
4749 + 'priority' => 155,
4750 + 'input_attrs' => [
4751 + 'class' => 'betterdocs_doc_single_content_ai_actions_padding betterdocs-dimension'
4752 + ]
4753 + ]
4754 + )
4755 + );
3565 4756
3566 - public function betterdocs_doc_single_related_docs_label_margin() {
3567 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin', [
3568 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin'],
3569 - 'capability' => 'edit_theme_options',
3570 - 'transport' => 'postMessage',
3571 - 'sanitize_callback' => [$this->sanitizer, 'integer']
4757 + $this->customizer->add_setting(
4758 + 'betterdocs_doc_single_content_ai_actions_padding_bottom',
4759 + [
4760 + 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_padding_bottom'],
4761 + 'capability' => 'edit_theme_options',
4762 + 'transport' => 'postMessage',
4763 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4764 + ]
4765 + );
3572 4766
3573 - ] );
4767 + $this->customizer->add_control(
4768 + new DimensionControl(
4769 + $this->customizer,
4770 + 'betterdocs_doc_single_content_ai_actions_padding_bottom',
4771 + [
4772 + 'type' => 'betterdocs-dimension',
4773 + 'section' => 'betterdocs_single_docs_settings',
4774 + 'settings' => 'betterdocs_doc_single_content_ai_actions_padding_bottom',
4775 + 'label' => __( 'Bottom', 'betterdocs' ),
4776 + 'priority' => 155,
4777 + 'input_attrs' => [
4778 + 'class' => 'betterdocs_doc_single_content_ai_actions_padding betterdocs-dimension'
4779 + ]
4780 + ]
4781 + )
4782 + );
3574 4783
3575 - $this->customizer->add_control( new TitleControl(
3576 - $this->customizer, 'betterdocs_doc_single_related_docs_label_margin', [
3577 - 'type' => 'betterdocs-title',
3578 - 'section' => 'betterdocs_single_docs_settings',
3579 - 'settings' => 'betterdocs_doc_single_related_docs_label_margin',
3580 - 'label' => __( 'Label Margin', 'betterdocs' ),
3581 - 'priority' => 163,
3582 - 'input_attrs' => [
3583 - 'id' => 'betterdocs_doc_single_related_docs_label_margin',
3584 - 'class' => 'betterdocs-dimension'
3585 - ]
3586 - ] )
3587 - );
4784 + $this->customizer->add_setting(
4785 + 'betterdocs_doc_single_content_ai_actions_padding_left',
4786 + [
4787 + 'default' => $this->defaults['betterdocs_doc_single_content_ai_actions_padding_left'],
4788 + 'capability' => 'edit_theme_options',
4789 + 'transport' => 'postMessage',
4790 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4791 + ]
4792 + );
3588 4793
3589 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_top', [
3590 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_top'],
3591 - 'capability' => 'edit_theme_options',
3592 - 'transport' => 'postMessage',
3593 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3594 - ] );
4794 + $this->customizer->add_control(
4795 + new DimensionControl(
4796 + $this->customizer,
4797 + 'betterdocs_doc_single_content_ai_actions_padding_left',
4798 + [
4799 + 'type' => 'betterdocs-dimension',
4800 + 'section' => 'betterdocs_single_docs_settings',
4801 + 'settings' => 'betterdocs_doc_single_content_ai_actions_padding_left',
4802 + 'label' => __( 'Left', 'betterdocs' ),
4803 + 'priority' => 155,
4804 + 'input_attrs' => [
4805 + 'class' => 'betterdocs_doc_single_content_ai_actions_padding betterdocs-dimension'
4806 + ]
4807 + ]
4808 + )
4809 + );
4810 + }
3595 4811
3596 - $this->customizer->add_control( new DimensionControl(
3597 - $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_top', [
3598 - 'type' => 'betterdocs-dimension',
3599 - 'section' => 'betterdocs_single_docs_settings',
3600 - 'settings' => 'betterdocs_doc_single_related_docs_label_margin_top',
3601 - 'label' => __( 'Top', 'betterdocs' ),
3602 - 'priority' => 163,
3603 - 'input_attrs' => [
3604 - 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
3605 - ]
3606 - ] )
3607 - );
3608 4812
3609 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_right', [
3610 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_right'],
3611 - 'capability' => 'edit_theme_options',
3612 - 'transport' => 'postMessage',
3613 - 'sanitize_callback' => [$this->sanitizer, 'integer']
4813 + /**
4814 + * Listen — the pill that morphs into an audio player.
4815 + *
4816 + * Mirrors the AI Actions group directly above, control for control, plus one
4817 + * of its own: Accent Color, for the player's chrome. Declared physically after
4818 + * that group and sharing its priority of 155, which is how
4819 + * WP_Customize_Manager::prepare_controls() is made to order them —
4820 + * `instance_number` follows registration order, which Section::register() takes
4821 + * from get_class_methods(), i.e. source order. There is no free integer between
4822 + * 155 and the 156 "Entry Content" separator, and this is the same mechanism that
4823 + * already keeps the Author group above Estimated Reading Time.
4824 + */
4825 + public function doc_listen_section() {
4826 + $this->customizer->add_setting(
4827 + 'betterdocs_doc_listen_section',
4828 + [
4829 + 'default' => $this->defaults['betterdocs_doc_listen_section'],
4830 + 'sanitize_callback' => 'esc_html'
4831 + ]
4832 + );
3614 4833
3615 - ] );
4834 + $this->customizer->add_control(
4835 + new SeparatorControl(
4836 + $this->customizer,
4837 + 'betterdocs_doc_listen_section',
4838 + [
4839 + 'label' => __( 'Listen', 'betterdocs' ),
4840 + 'priority' => 155,
4841 + 'settings' => 'betterdocs_doc_listen_section',
4842 + 'section' => 'betterdocs_single_docs_settings'
4843 + ]
4844 + )
4845 + );
4846 + }
3616 4847
3617 - $this->customizer->add_control( new DimensionControl(
3618 - $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_right', [
3619 - 'type' => 'betterdocs-dimension',
3620 - 'section' => 'betterdocs_single_docs_settings',
3621 - 'settings' => 'betterdocs_doc_single_related_docs_label_margin_right',
3622 - 'label' => __( 'Right', 'betterdocs' ),
3623 - 'priority' => 163,
3624 - 'input_attrs' => [
3625 - 'class' => 'betterdocs_doc_single_related_docs_label_margin_right betterdocs-dimension'
3626 - ]
3627 - ] )
3628 - );
4848 + public function betterdocs_doc_single_content_listen_bg_color() {
4849 + $this->customizer->add_setting(
4850 + 'betterdocs_doc_single_content_listen_bg_color',
4851 + [
4852 + 'default' => $this->defaults['betterdocs_doc_single_content_listen_bg_color'],
4853 + 'capability' => 'edit_theme_options',
4854 + 'transport' => 'postMessage',
4855 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4856 + ]
4857 + );
3629 4858
3630 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_bottom', [
3631 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_bottom'],
3632 - 'capability' => 'edit_theme_options',
3633 - 'transport' => 'postMessage',
3634 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3635 - ] );
4859 + $this->customizer->add_control(
4860 + new AlphaColorControl(
4861 + $this->customizer,
4862 + 'betterdocs_doc_single_content_listen_bg_color',
4863 + [
4864 + 'label' => __( 'Background Color', 'betterdocs' ),
4865 + 'priority' => 155,
4866 + 'section' => 'betterdocs_single_docs_settings',
4867 + 'settings' => 'betterdocs_doc_single_content_listen_bg_color'
4868 + ]
4869 + )
4870 + );
4871 + }
3636 4872
3637 - $this->customizer->add_control( new DimensionControl(
3638 - $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_bottom', [
3639 - 'type' => 'betterdocs-dimension',
3640 - 'section' => 'betterdocs_single_docs_settings',
3641 - 'settings' => 'betterdocs_doc_single_related_docs_label_margin_bottom',
3642 - 'label' => __( 'Bottom', 'betterdocs' ),
3643 - 'priority' => 163,
3644 - 'input_attrs' => [
3645 - 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
3646 - ]
3647 - ] )
3648 - );
4873 + public function betterdocs_doc_single_content_listen_color() {
4874 + $this->customizer->add_setting(
4875 + 'betterdocs_doc_single_content_listen_color',
4876 + [
4877 + 'default' => $this->defaults['betterdocs_doc_single_content_listen_color'],
4878 + 'capability' => 'edit_theme_options',
4879 + 'transport' => 'postMessage',
4880 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4881 + ]
4882 + );
3649 4883
3650 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_label_margin_left', [
3651 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_left'],
3652 - 'capability' => 'edit_theme_options',
3653 - 'transport' => 'postMessage',
3654 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3655 - ] );
4884 + $this->customizer->add_control(
4885 + new AlphaColorControl(
4886 + $this->customizer,
4887 + 'betterdocs_doc_single_content_listen_color',
4888 + [
4889 + 'label' => __( 'Font Color', 'betterdocs' ),
4890 + 'priority' => 155,
4891 + 'section' => 'betterdocs_single_docs_settings',
4892 + 'settings' => 'betterdocs_doc_single_content_listen_color'
4893 + ]
4894 + )
4895 + );
4896 + }
3656 4897
3657 - $this->customizer->add_control( new DimensionControl(
3658 - $this->customizer, 'betterdocs_doc_single_related_docs_label_margin_left', [
3659 - 'type' => 'betterdocs-dimension',
3660 - 'section' => 'betterdocs_single_docs_settings',
3661 - 'settings' => 'betterdocs_doc_single_related_docs_label_margin_left',
3662 - 'label' => __( 'Left', 'betterdocs' ),
3663 - 'priority' => 163,
3664 - 'input_attrs' => [
3665 - 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
3666 - ]
3667 - ] )
3668 - );
3669 - }
4898 + /**
4899 + * The player's chrome: the play button's fill, the progress bar's fill and the
4900 + * scrubber's ring.
4901 + *
4902 + * One control for all three because listen.scss publishes them as a single
4903 + * custom property, `--bd-listen-accent`, on `.betterdocs-listen-player`. Three
4904 + * separate controls would be three chances for a site to end up with a play
4905 + * button that does not match its own progress bar.
4906 + */
4907 + public function betterdocs_doc_single_content_listen_accent_color() {
4908 + $this->customizer->add_setting(
4909 + 'betterdocs_doc_single_content_listen_accent_color',
4910 + [
4911 + 'default' => $this->defaults['betterdocs_doc_single_content_listen_accent_color'],
4912 + 'capability' => 'edit_theme_options',
4913 + 'transport' => 'postMessage',
4914 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4915 + ]
4916 + );
3670 4917
3671 - public function betterdocs_doc_related_docs_list_font_size() {
3672 - $this->customizer->add_setting( 'betterdocs_doc_related_docs_list_font_size', [
3673 - 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_size'],
3674 - 'capability' => 'edit_theme_options',
3675 - 'transport' => 'postMessage',
3676 - 'sanitize_callback' => [$this->sanitizer, 'integer']
4918 + $this->customizer->add_control(
4919 + new AlphaColorControl(
4920 + $this->customizer,
4921 + 'betterdocs_doc_single_content_listen_accent_color',
4922 + [
4923 + 'label' => __( 'Player Accent Color', 'betterdocs' ),
4924 + 'description' => __( 'Used for the play button, the progress bar and its handle.', 'betterdocs' ),
4925 + 'priority' => 155,
4926 + 'section' => 'betterdocs_single_docs_settings',
4927 + 'settings' => 'betterdocs_doc_single_content_listen_accent_color'
4928 + ]
4929 + )
4930 + );
4931 + }
3677 4932
3678 - ] );
4933 + public function betterdocs_doc_single_content_listen_font_size() {
4934 + $this->customizer->add_setting(
4935 + 'betterdocs_doc_single_content_listen_font_size',
4936 + [
4937 + 'default' => $this->defaults['betterdocs_doc_single_content_listen_font_size'],
4938 + 'capability' => 'edit_theme_options',
4939 + 'transport' => 'postMessage',
4940 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4941 + ]
4942 + );
3679 4943
3680 - $this->customizer->add_control( new RangeValueControl(
3681 - $this->customizer, 'betterdocs_doc_related_docs_list_font_size', [
3682 - 'type' => 'betterdocs-range-value',
3683 - 'section' => 'betterdocs_single_docs_settings',
3684 - 'settings' => 'betterdocs_doc_related_docs_list_font_size',
3685 - 'label' => __( 'List Font Size', 'betterdocs' ),
3686 - 'priority' => 163,
3687 - 'input_attrs' => [
3688 - 'min' => 0,
3689 - 'max' => 50,
3690 - 'step' => 1,
3691 - 'suffix' => 'px' //optional suffix
3692 - ]
3693 - ] )
3694 - );
3695 - }
4944 + $this->customizer->add_control(
4945 + new RangeValueControl(
4946 + $this->customizer,
4947 + 'betterdocs_doc_single_content_listen_font_size',
4948 + [
4949 + 'type' => 'betterdocs-range-value',
4950 + 'section' => 'betterdocs_single_docs_settings',
4951 + 'settings' => 'betterdocs_doc_single_content_listen_font_size',
4952 + 'label' => __( 'Font Size', 'betterdocs' ),
4953 + 'priority' => 155,
4954 + 'input_attrs' => [
4955 + 'min' => 0,
4956 + 'max' => 40,
4957 + 'step' => 1,
4958 + 'suffix' => 'px',
4959 + // Reset target, so it has to be the value listen.scss paints.
4960 + // The player's own readout is sized in `em`, so this scales
4961 + // that with the label rather than leaving it behind.
4962 + 'data-unset-val' => 14
4963 + ]
4964 + ]
4965 + )
4966 + );
4967 + }
3696 4968
3697 - public function betterdocs_doc_related_docs_list_font_weight() {
3698 - $this->customizer->add_setting( 'betterdocs_doc_related_docs_list_font_weight', [
3699 - 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_weight'],
3700 - 'capability' => 'edit_theme_options',
3701 - 'sanitize_callback' => [$this->sanitizer, 'choices']
3702 - ] );
4969 + public function betterdocs_doc_single_content_listen_font_weight() {
4970 + $this->customizer->add_setting(
4971 + 'betterdocs_doc_single_content_listen_font_weight',
4972 + [
4973 + 'default' => $this->defaults['betterdocs_doc_single_content_listen_font_weight'],
4974 + 'capability' => 'edit_theme_options',
4975 + 'transport' => 'postMessage',
4976 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
4977 + ]
4978 + );
3703 4979
3704 - $this->customizer->add_control(
3705 - new WP_Customize_Control(
3706 - $this->customizer,
3707 - 'betterdocs_doc_related_docs_list_font_weight',
3708 - [
3709 - 'label' => __( 'List Font Weight', 'betterdocs-pro' ),
3710 - 'section' => 'betterdocs_single_docs_settings',
3711 - 'settings' => 'betterdocs_doc_related_docs_list_font_weight',
3712 - 'type' => 'select',
3713 - 'choices' => [
3714 - 'normal' => 'Normal',
3715 - '100' => '100',
3716 - '200' => '200',
3717 - '300' => '300',
3718 - '400' => '400',
3719 - '500' => '500',
3720 - '600' => '600',
3721 - '700' => '700',
3722 - '800' => '800',
3723 - '900' => '900'
3724 - ],
3725 - 'priority' => 163
3726 - ]
3727 - )
3728 - );
3729 - }
4980 + $this->customizer->add_control(
4981 + new WP_Customize_Control(
4982 + $this->customizer,
4983 + 'betterdocs_doc_single_content_listen_font_weight',
4984 + [
4985 + 'label' => __( 'Font Weight', 'betterdocs' ),
4986 + 'section' => 'betterdocs_single_docs_settings',
4987 + 'settings' => 'betterdocs_doc_single_content_listen_font_weight',
4988 + 'type' => 'select',
4989 + // The empty option has to be a real choice: Sanitizer::select()
4990 + // falls back to the setting default unless the input is a key of
4991 + // $control->choices, and '' is the default that emits nothing.
4992 + 'choices' => [
4993 + '' => __( 'Default', 'betterdocs' ),
4994 + 'normal' => 'Normal',
4995 + '100' => '100',
4996 + '200' => '200',
4997 + '300' => '300',
4998 + '400' => '400',
4999 + '500' => '500',
5000 + '600' => '600',
5001 + '700' => '700',
5002 + '800' => '800',
5003 + '900' => '900'
5004 + ],
5005 + 'priority' => 155
5006 + ]
5007 + )
5008 + );
5009 + }
3730 5010
5011 + public function betterdocs_doc_single_content_listen_icon_size() {
5012 + $this->customizer->add_setting(
5013 + 'betterdocs_doc_single_content_listen_icon_size',
5014 + [
5015 + 'default' => $this->defaults['betterdocs_doc_single_content_listen_icon_size'],
5016 + 'capability' => 'edit_theme_options',
5017 + 'transport' => 'postMessage',
5018 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5019 + ]
5020 + );
3731 5021
3732 - public function betterdocs_doc_single_related_docs_list_color() {
3733 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_color', [
3734 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_color'],
3735 - 'capability' => 'edit_theme_options',
3736 - 'transport' => 'postMessage',
3737 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
3738 - ] );
5022 + $this->customizer->add_control(
5023 + new RangeValueControl(
5024 + $this->customizer,
5025 + 'betterdocs_doc_single_content_listen_icon_size',
5026 + [
5027 + 'type' => 'betterdocs-range-value',
5028 + 'section' => 'betterdocs_single_docs_settings',
5029 + 'settings' => 'betterdocs_doc_single_content_listen_icon_size',
5030 + 'label' => __( 'Icon Size', 'betterdocs' ),
5031 + 'priority' => 155,
5032 + 'input_attrs' => [
5033 + 'min' => 10,
5034 + 'max' => 40,
5035 + 'step' => 1,
5036 + 'suffix' => 'px',
5037 + // The headset glyph on the collapsed pill only. The player's
5038 + // own glyphs are 9px and 11px by design and stay that way —
5039 + // they have to fit inside 20px circles.
5040 + 'data-unset-val' => 14
5041 + ]
5042 + ]
5043 + )
5044 + );
5045 + }
3739 5046
3740 - $this->customizer->add_control(
3741 - new AlphaColorControl(
3742 - $this->customizer,
3743 - 'betterdocs_doc_single_related_docs_list_color',
3744 - [
3745 - 'label' => __( 'List Color', 'betterdocs' ),
3746 - 'section' => 'betterdocs_single_docs_settings',
3747 - 'settings' => 'betterdocs_doc_single_related_docs_list_color',
3748 - 'priority' => 163
3749 - ]
3750 - )
3751 - );
3752 - }
5047 + public function betterdocs_doc_single_content_listen_icon_color() {
5048 + $this->customizer->add_setting(
5049 + 'betterdocs_doc_single_content_listen_icon_color',
5050 + [
5051 + 'default' => $this->defaults['betterdocs_doc_single_content_listen_icon_color'],
5052 + 'capability' => 'edit_theme_options',
5053 + 'transport' => 'postMessage',
5054 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5055 + ]
5056 + );
3753 5057
3754 - public function betterdocs_doc_single_related_docs_list_background_color() {
3755 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_background_color', [
3756 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_background_color'],
3757 - 'capability' => 'edit_theme_options',
3758 - 'transport' => 'postMessage',
3759 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
3760 - ] );
5058 + $this->customizer->add_control(
5059 + new AlphaColorControl(
5060 + $this->customizer,
5061 + 'betterdocs_doc_single_content_listen_icon_color',
5062 + [
5063 + 'label' => __( 'Icon Color', 'betterdocs' ),
5064 + 'priority' => 155,
5065 + 'section' => 'betterdocs_single_docs_settings',
5066 + 'settings' => 'betterdocs_doc_single_content_listen_icon_color'
5067 + ]
5068 + )
5069 + );
5070 + }
3761 5071
3762 - $this->customizer->add_control(
3763 - new AlphaColorControl(
3764 - $this->customizer,
3765 - 'betterdocs_doc_single_related_docs_list_background_color',
3766 - [
3767 - 'label' => __( 'List Background Color', 'betterdocs' ),
3768 - 'section' => 'betterdocs_single_docs_settings',
3769 - 'settings' => 'betterdocs_doc_single_related_docs_list_background_color',
3770 - 'priority' => 163
3771 - ]
3772 - )
3773 - );
3774 - }
5072 + public function betterdocs_doc_single_content_listen_border_color() {
5073 + $this->customizer->add_setting(
5074 + 'betterdocs_doc_single_content_listen_border_color',
5075 + [
5076 + 'default' => $this->defaults['betterdocs_doc_single_content_listen_border_color'],
5077 + 'capability' => 'edit_theme_options',
5078 + 'transport' => 'postMessage',
5079 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5080 + ]
5081 + );
3775 5082
3776 - public function betterdocs_doc_single_related_docs_list_padding() {
3777 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding', [
3778 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding'],
3779 - 'capability' => 'edit_theme_options',
3780 - 'transport' => 'postMessage',
3781 - 'sanitize_callback' => [$this->sanitizer, 'integer']
5083 + $this->customizer->add_control(
5084 + new AlphaColorControl(
5085 + $this->customizer,
5086 + 'betterdocs_doc_single_content_listen_border_color',
5087 + [
5088 + 'label' => __( 'Border Color', 'betterdocs' ),
5089 + 'priority' => 155,
5090 + 'section' => 'betterdocs_single_docs_settings',
5091 + 'settings' => 'betterdocs_doc_single_content_listen_border_color'
5092 + ]
5093 + )
5094 + );
5095 + }
3782 5096
3783 - ] );
5097 + public function betterdocs_doc_single_content_listen_border_width() {
5098 + $this->customizer->add_setting(
5099 + 'betterdocs_doc_single_content_listen_border_width',
5100 + [
5101 + 'default' => $this->defaults['betterdocs_doc_single_content_listen_border_width'],
5102 + 'capability' => 'edit_theme_options',
5103 + 'transport' => 'postMessage',
5104 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5105 + ]
5106 + );
3784 5107
3785 - $this->customizer->add_control( new TitleControl(
3786 - $this->customizer, 'betterdocs_doc_single_related_docs_list_padding', [
3787 - 'type' => 'betterdocs-title',
3788 - 'section' => 'betterdocs_single_docs_settings',
3789 - 'settings' => 'betterdocs_doc_single_related_docs_list_padding',
3790 - 'label' => __( 'List Padding', 'betterdocs' ),
3791 - 'priority' => 163,
3792 - 'input_attrs' => [
3793 - 'id' => 'betterdocs_doc_single_related_docs_list_padding',
3794 - 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
3795 - ]
3796 - ] )
3797 - );
5108 + $this->customizer->add_control(
5109 + new RangeValueControl(
5110 + $this->customizer,
5111 + 'betterdocs_doc_single_content_listen_border_width',
5112 + [
5113 + 'type' => 'betterdocs-range-value',
5114 + 'section' => 'betterdocs_single_docs_settings',
5115 + 'settings' => 'betterdocs_doc_single_content_listen_border_width',
5116 + 'label' => __( 'Border Width', 'betterdocs' ),
5117 + 'priority' => 155,
5118 + 'input_attrs' => [
5119 + 'min' => 0,
5120 + 'max' => 10,
5121 + 'step' => 1,
5122 + 'suffix' => 'px',
5123 + 'data-unset-val' => 0
5124 + ]
5125 + ]
5126 + )
5127 + );
5128 + }
3798 5129
3799 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_top', [
3800 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_top'],
3801 - 'capability' => 'edit_theme_options',
3802 - 'transport' => 'postMessage',
3803 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3804 - ] );
5130 + public function betterdocs_doc_single_content_listen_border_radius() {
5131 + $this->customizer->add_setting(
5132 + 'betterdocs_doc_single_content_listen_border_radius',
5133 + [
5134 + 'default' => $this->defaults['betterdocs_doc_single_content_listen_border_radius'],
5135 + 'capability' => 'edit_theme_options',
5136 + 'transport' => 'postMessage',
5137 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5138 + ]
5139 + );
3805 5140
3806 - $this->customizer->add_control( new DimensionControl(
3807 - $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_top', [
3808 - 'type' => 'betterdocs-dimension',
3809 - 'section' => 'betterdocs_single_docs_settings',
3810 - 'settings' => 'betterdocs_doc_single_related_docs_list_padding_top',
3811 - 'label' => __( 'Top', 'betterdocs' ),
3812 - 'priority' => 163,
3813 - 'input_attrs' => [
3814 - 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
3815 - ]
3816 - ] )
3817 - );
5141 + $this->customizer->add_control(
5142 + new RangeValueControl(
5143 + $this->customizer,
5144 + 'betterdocs_doc_single_content_listen_border_radius',
5145 + [
5146 + 'type' => 'betterdocs-range-value',
5147 + 'section' => 'betterdocs_single_docs_settings',
5148 + 'settings' => 'betterdocs_doc_single_content_listen_border_radius',
5149 + 'label' => __( 'Border Radius', 'betterdocs' ),
5150 + 'priority' => 155,
5151 + 'input_attrs' => [
5152 + 'min' => 0,
5153 + 'max' => 100,
5154 + 'step' => 1,
5155 + 'suffix' => 'px',
5156 + 'data-unset-val' => 16
5157 + ]
5158 + ]
5159 + )
5160 + );
5161 + }
3818 5162
3819 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_right', [
3820 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_right'],
3821 - 'capability' => 'edit_theme_options',
3822 - 'transport' => 'postMessage',
3823 - 'sanitize_callback' => [$this->sanitizer, 'integer']
5163 + public function betterdocs_doc_single_content_listen_padding() {
5164 + $this->customizer->add_setting(
5165 + 'betterdocs_doc_single_content_listen_padding',
5166 + [
5167 + 'default' => $this->defaults['betterdocs_doc_single_content_listen_padding'],
5168 + 'capability' => 'edit_theme_options',
5169 + 'transport' => 'postMessage',
5170 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5171 + ]
5172 + );
3824 5173
3825 - ] );
5174 + $this->customizer->add_control(
5175 + new TitleControl(
5176 + $this->customizer,
5177 + 'betterdocs_doc_single_content_listen_padding',
5178 + [
5179 + 'type' => 'betterdocs-title',
5180 + 'section' => 'betterdocs_single_docs_settings',
5181 + 'settings' => 'betterdocs_doc_single_content_listen_padding',
5182 + 'label' => __( 'Padding', 'betterdocs' ),
5183 + 'priority' => 155,
5184 + 'input_attrs' => [
5185 + 'id' => 'betterdocs_doc_single_content_listen_padding',
5186 + 'class' => 'betterdocs-dimension'
5187 + ]
5188 + ]
5189 + )
5190 + );
3826 5191
3827 - $this->customizer->add_control( new DimensionControl(
3828 - $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_right', [
3829 - 'type' => 'betterdocs-dimension',
3830 - 'section' => 'betterdocs_single_docs_settings',
3831 - 'settings' => 'betterdocs_doc_single_related_docs_list_padding_right',
3832 - 'label' => __( 'Right', 'betterdocs' ),
3833 - 'priority' => 163,
3834 - 'input_attrs' => [
3835 - 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
3836 - ]
3837 - ] )
3838 - );
5192 + $this->customizer->add_setting(
5193 + 'betterdocs_doc_single_content_listen_padding_top',
5194 + [
5195 + 'default' => $this->defaults['betterdocs_doc_single_content_listen_padding_top'],
5196 + 'capability' => 'edit_theme_options',
5197 + 'transport' => 'postMessage',
5198 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5199 + ]
5200 + );
3839 5201
3840 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_bottom', [
3841 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_bottom'],
3842 - 'capability' => 'edit_theme_options',
3843 - 'transport' => 'postMessage',
3844 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3845 - ] );
5202 + $this->customizer->add_control(
5203 + new DimensionControl(
5204 + $this->customizer,
5205 + 'betterdocs_doc_single_content_listen_padding_top',
5206 + [
5207 + 'type' => 'betterdocs-dimension',
5208 + 'section' => 'betterdocs_single_docs_settings',
5209 + 'settings' => 'betterdocs_doc_single_content_listen_padding_top',
5210 + 'label' => __( 'Top', 'betterdocs' ),
5211 + 'priority' => 155,
5212 + 'input_attrs' => [
5213 + 'class' => 'betterdocs_doc_single_content_listen_padding betterdocs-dimension'
5214 + ]
5215 + ]
5216 + )
5217 + );
3846 5218
3847 - $this->customizer->add_control( new DimensionControl(
3848 - $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_bottom', [
3849 - 'type' => 'betterdocs-dimension',
3850 - 'section' => 'betterdocs_single_docs_settings',
3851 - 'settings' => 'betterdocs_doc_single_related_docs_list_padding_bottom',
3852 - 'label' => __( 'Bottom', 'betterdocs' ),
3853 - 'priority' => 163,
3854 - 'input_attrs' => [
3855 - 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
3856 - ]
3857 - ] )
3858 - );
5219 + $this->customizer->add_setting(
5220 + 'betterdocs_doc_single_content_listen_padding_right',
5221 + [
5222 + 'default' => $this->defaults['betterdocs_doc_single_content_listen_padding_right'],
5223 + 'capability' => 'edit_theme_options',
5224 + 'transport' => 'postMessage',
5225 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5226 + ]
5227 + );
3859 5228
3860 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_padding_left', [
3861 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_left'],
3862 - 'capability' => 'edit_theme_options',
3863 - 'transport' => 'postMessage',
3864 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3865 - ] );
5229 + $this->customizer->add_control(
5230 + new DimensionControl(
5231 + $this->customizer,
5232 + 'betterdocs_doc_single_content_listen_padding_right',
5233 + [
5234 + 'type' => 'betterdocs-dimension',
5235 + 'section' => 'betterdocs_single_docs_settings',
5236 + 'settings' => 'betterdocs_doc_single_content_listen_padding_right',
5237 + 'label' => __( 'Right', 'betterdocs' ),
5238 + 'priority' => 155,
5239 + 'input_attrs' => [
5240 + 'class' => 'betterdocs_doc_single_content_listen_padding betterdocs-dimension'
5241 + ]
5242 + ]
5243 + )
5244 + );
3866 5245
3867 - $this->customizer->add_control( new DimensionControl(
3868 - $this->customizer, 'betterdocs_doc_single_related_docs_list_padding_left', [
3869 - 'type' => 'betterdocs-dimension',
3870 - 'section' => 'betterdocs_single_docs_settings',
3871 - 'settings' => 'betterdocs_doc_single_related_docs_list_padding_left',
3872 - 'label' => __( 'Left', 'betterdocs' ),
3873 - 'priority' => 163,
3874 - 'input_attrs' => [
3875 - 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
3876 - ]
3877 - ] )
3878 - );
3879 - }
5246 + $this->customizer->add_setting(
5247 + 'betterdocs_doc_single_content_listen_padding_bottom',
5248 + [
5249 + 'default' => $this->defaults['betterdocs_doc_single_content_listen_padding_bottom'],
5250 + 'capability' => 'edit_theme_options',
5251 + 'transport' => 'postMessage',
5252 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5253 + ]
5254 + );
3880 5255
3881 - public function betterdocs_doc_single_related_docs_list_margin() {
3882 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin', [
3883 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin'],
3884 - 'capability' => 'edit_theme_options',
3885 - 'transport' => 'postMessage',
3886 - 'sanitize_callback' => [$this->sanitizer, 'integer']
5256 + $this->customizer->add_control(
5257 + new DimensionControl(
5258 + $this->customizer,
5259 + 'betterdocs_doc_single_content_listen_padding_bottom',
5260 + [
5261 + 'type' => 'betterdocs-dimension',
5262 + 'section' => 'betterdocs_single_docs_settings',
5263 + 'settings' => 'betterdocs_doc_single_content_listen_padding_bottom',
5264 + 'label' => __( 'Bottom', 'betterdocs' ),
5265 + 'priority' => 155,
5266 + 'input_attrs' => [
5267 + 'class' => 'betterdocs_doc_single_content_listen_padding betterdocs-dimension'
5268 + ]
5269 + ]
5270 + )
5271 + );
3887 5272
3888 - ] );
5273 + $this->customizer->add_setting(
5274 + 'betterdocs_doc_single_content_listen_padding_left',
5275 + [
5276 + 'default' => $this->defaults['betterdocs_doc_single_content_listen_padding_left'],
5277 + 'capability' => 'edit_theme_options',
5278 + 'transport' => 'postMessage',
5279 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5280 + ]
5281 + );
3889 5282
3890 - $this->customizer->add_control( new TitleControl(
3891 - $this->customizer, 'betterdocs_doc_single_related_docs_list_margin', [
3892 - 'type' => 'betterdocs-title',
3893 - 'section' => 'betterdocs_single_docs_settings',
3894 - 'settings' => 'betterdocs_doc_single_related_docs_list_margin',
3895 - 'label' => __( 'List Margin', 'betterdocs' ),
3896 - 'priority' => 163,
3897 - 'input_attrs' => [
3898 - 'id' => 'betterdocs_doc_single_related_docs_list_margin',
3899 - 'class' => 'betterdocs-dimension'
3900 - ]
3901 - ] )
3902 - );
5283 + $this->customizer->add_control(
5284 + new DimensionControl(
5285 + $this->customizer,
5286 + 'betterdocs_doc_single_content_listen_padding_left',
5287 + [
5288 + 'type' => 'betterdocs-dimension',
5289 + 'section' => 'betterdocs_single_docs_settings',
5290 + 'settings' => 'betterdocs_doc_single_content_listen_padding_left',
5291 + 'label' => __( 'Left', 'betterdocs' ),
5292 + 'priority' => 155,
5293 + 'input_attrs' => [
5294 + 'class' => 'betterdocs_doc_single_content_listen_padding betterdocs-dimension'
5295 + ]
5296 + ]
5297 + )
5298 + );
5299 + }
3903 5300
3904 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_top', [
3905 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_top'],
3906 - 'capability' => 'edit_theme_options',
3907 - 'transport' => 'postMessage',
3908 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3909 - ] );
5301 + public function doc_single_entry_content() {
5302 + $this->customizer->add_setting(
5303 + 'betterdocs_doc_single_entry_content',
5304 + [
5305 + 'default' => $this->defaults['betterdocs_doc_single_entry_content'],
5306 + 'sanitize_callback' => 'esc_html'
5307 + ]
5308 + );
3910 5309
3911 - $this->customizer->add_control( new DimensionControl(
3912 - $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_top', [
3913 - 'type' => 'betterdocs-dimension',
3914 - 'section' => 'betterdocs_single_docs_settings',
3915 - 'settings' => 'betterdocs_doc_single_related_docs_list_margin_top',
3916 - 'label' => __( 'Top', 'betterdocs' ),
3917 - 'priority' => 163,
3918 - 'input_attrs' => [
3919 - 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
3920 - ]
3921 - ] )
3922 - );
5310 + $this->customizer->add_control(
5311 + new SeparatorControl(
5312 + $this->customizer,
5313 + 'betterdocs_doc_single_entry_content',
5314 + [
5315 + 'label' => __( 'Entry Content', 'betterdocs' ),
5316 + 'priority' => 156,
5317 + 'settings' => 'betterdocs_doc_single_entry_content',
5318 + 'section' => 'betterdocs_single_docs_settings'
5319 + ]
5320 + )
5321 + );
5322 + }
3923 5323
3924 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_right', [
3925 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_right'],
3926 - 'capability' => 'edit_theme_options',
3927 - 'transport' => 'postMessage',
3928 - 'sanitize_callback' => [$this->sanitizer, 'integer']
5324 + public function single_content_font_size() {
5325 + $this->customizer->add_setting(
5326 + 'betterdocs_single_content_font_size',
5327 + [
5328 + 'default' => $this->defaults['betterdocs_single_content_font_size'],
5329 + 'capability' => 'edit_theme_options',
5330 + 'transport' => 'postMessage',
5331 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3929 5332
3930 - ] );
5333 + ]
5334 + );
3931 5335
3932 - $this->customizer->add_control( new DimensionControl(
3933 - $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_right', [
3934 - 'type' => 'betterdocs-dimension',
3935 - 'section' => 'betterdocs_single_docs_settings',
3936 - 'settings' => 'betterdocs_doc_single_related_docs_list_margin_right',
3937 - 'label' => __( 'Right', 'betterdocs' ),
3938 - 'priority' => 163,
3939 - 'input_attrs' => [
3940 - 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
3941 - ]
3942 - ] )
3943 - );
5336 + $this->customizer->add_control(
5337 + new RangeValueControl(
5338 + $this->customizer,
5339 + 'betterdocs_single_content_font_size',
5340 + [
5341 + 'type' => 'betterdocs-range-value',
5342 + 'section' => 'betterdocs_single_docs_settings',
5343 + 'settings' => 'betterdocs_single_content_font_size',
5344 + 'label' => __( 'Font Size', 'betterdocs' ),
5345 + 'priority' => 157,
5346 + 'input_attrs' => [
5347 + 'class' => '',
5348 + 'min' => 0,
5349 + 'max' => 50,
5350 + 'step' => 1,
5351 + 'suffix' => 'px' // optional suffix
5352 + ]
5353 + ]
5354 + )
5355 + );
5356 + }
3944 5357
3945 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_bottom', [
3946 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_bottom'],
3947 - 'capability' => 'edit_theme_options',
3948 - 'transport' => 'postMessage',
3949 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3950 - ] );
5358 + public function single_content_font_color() {
5359 + $this->customizer->add_setting(
5360 + 'betterdocs_single_content_font_color',
5361 + [
5362 + 'default' => $this->defaults['betterdocs_single_content_font_color'],
5363 + 'capability' => 'edit_theme_options',
5364 + 'transport' => 'postMessage',
5365 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5366 + ]
5367 + );
3951 5368
3952 - $this->customizer->add_control( new DimensionControl(
3953 - $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_bottom', [
3954 - 'type' => 'betterdocs-dimension',
3955 - 'section' => 'betterdocs_single_docs_settings',
3956 - 'settings' => 'betterdocs_doc_single_related_docs_list_margin_bottom',
3957 - 'label' => __( 'Bottom', 'betterdocs' ),
3958 - 'priority' => 163,
3959 - 'input_attrs' => [
3960 - 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
3961 - ]
3962 - ] )
3963 - );
5369 + $this->customizer->add_control(
5370 + new AlphaColorControl(
5371 + $this->customizer,
5372 + 'betterdocs_single_content_font_color',
5373 + [
5374 + 'label' => __( 'Font Color', 'betterdocs' ),
5375 + 'priority' => 158,
5376 + 'section' => 'betterdocs_single_docs_settings',
5377 + 'settings' => 'betterdocs_single_content_font_color'
5378 + ]
5379 + )
5380 + );
5381 + }
3964 5382
3965 - $this->customizer->add_setting( 'betterdocs_doc_single_related_docs_list_margin_left', [
3966 - 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_left'],
3967 - 'capability' => 'edit_theme_options',
3968 - 'transport' => 'postMessage',
3969 - 'sanitize_callback' => [$this->sanitizer, 'integer']
3970 - ] );
5383 + public function doc_single_entry_content_layout_8_9() {
5384 + $this->customizer->add_setting(
5385 + 'betterdocs_doc_single_entry_content_layout_8_9',
5386 + [
5387 + 'default' => $this->defaults['betterdocs_doc_single_entry_content_layout_8_9'],
5388 + 'sanitize_callback' => 'esc_html'
5389 + ]
5390 + );
3971 5391
3972 - $this->customizer->add_control( new DimensionControl(
3973 - $this->customizer, 'betterdocs_doc_single_related_docs_list_margin_left', [
3974 - 'type' => 'betterdocs-dimension',
3975 - 'section' => 'betterdocs_single_docs_settings',
3976 - 'settings' => 'betterdocs_doc_single_related_docs_list_margin_left',
3977 - 'label' => __( 'Left', 'betterdocs' ),
3978 - 'priority' => 163,
3979 - 'input_attrs' => [
3980 - 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
3981 - ]
3982 - ] )
3983 - );
3984 - }
5392 + $this->customizer->add_control(
5393 + new SeparatorControl(
5394 + $this->customizer,
5395 + 'betterdocs_doc_single_entry_content_layout_8_9',
5396 + [
5397 + 'label' => __( 'Entry Content', 'betterdocs' ),
5398 + 'priority' => 156,
5399 + 'settings' => 'betterdocs_doc_single_entry_content_layout_8_9',
5400 + 'section' => 'betterdocs_single_docs_settings'
5401 + ]
5402 + )
5403 + );
5404 + }
5405 +
5406 + public function single_content_font_size_layout_8_9() {
5407 + $this->customizer->add_setting(
5408 + 'betterdocs_single_content_font_size_layout_8_9',
5409 + [
5410 + 'default' => $this->defaults['betterdocs_single_content_font_size_layout_8_9'],
5411 + 'capability' => 'edit_theme_options',
5412 + 'transport' => 'postMessage',
5413 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5414 +
5415 + ]
5416 + );
5417 +
5418 + $this->customizer->add_control(
5419 + new RangeValueControl(
5420 + $this->customizer,
5421 + 'betterdocs_single_content_font_size_layout_8_9',
5422 + [
5423 + 'type' => 'betterdocs-range-value',
5424 + 'section' => 'betterdocs_single_docs_settings',
5425 + 'settings' => 'betterdocs_single_content_font_size_layout_8_9',
5426 + 'label' => __( 'Font Size', 'betterdocs' ),
5427 + 'priority' => 157,
5428 + 'input_attrs' => [
5429 + 'class' => '',
5430 + 'min' => 0,
5431 + 'max' => 50,
5432 + 'step' => 1,
5433 + 'suffix' => 'px' // optional suffix
5434 + ]
5435 + ]
5436 + )
5437 + );
5438 + }
5439 +
5440 + public function single_content_font_color_layout_8_9() {
5441 + $this->customizer->add_setting(
5442 + 'betterdocs_single_content_font_color_layout_8_9',
5443 + [
5444 + 'default' => $this->defaults['betterdocs_single_content_font_color_layout_8_9'],
5445 + 'capability' => 'edit_theme_options',
5446 + 'transport' => 'postMessage',
5447 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5448 + ]
5449 + );
5450 +
5451 + $this->customizer->add_control(
5452 + new AlphaColorControl(
5453 + $this->customizer,
5454 + 'betterdocs_single_content_font_color_layout_8_9',
5455 + [
5456 + 'label' => __( 'Font Color', 'betterdocs' ),
5457 + 'priority' => 158,
5458 + 'section' => 'betterdocs_single_docs_settings',
5459 + 'settings' => 'betterdocs_single_content_font_color_layout_8_9'
5460 + ]
5461 + )
5462 + );
5463 + }
5464 +
5465 + public function single_content_padding_layout_8_9() {
5466 + $this->customizer->add_setting(
5467 + 'single_content_padding_layout_8_9',
5468 + [
5469 + 'default' => $this->defaults['single_content_padding_layout_8_9'],
5470 + 'capability' => 'edit_theme_options',
5471 + 'transport' => 'postMessage',
5472 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5473 + ]
5474 + );
5475 +
5476 + $this->customizer->add_control(
5477 + new TitleControl(
5478 + $this->customizer,
5479 + 'single_content_padding_layout_8_9',
5480 + [
5481 + 'type' => 'betterdocs-title',
5482 + 'section' => 'betterdocs_single_docs_settings',
5483 + 'settings' => 'single_content_padding_layout_8_9',
5484 + 'label' => __( 'Padding', 'betterdocs' ),
5485 + 'priority' => 158,
5486 + 'input_attrs' => [
5487 + 'id' => 'single_content_padding_layout_8_9',
5488 + 'class' => 'betterdocs-dimension'
5489 + ]
5490 + ]
5491 + )
5492 + );
5493 +
5494 + $this->customizer->add_setting(
5495 + 'single_content_padding_top_layout_8_9',
5496 + [
5497 + 'default' => $this->defaults['single_content_padding_top_layout_8_9'],
5498 + 'capability' => 'edit_theme_options',
5499 + 'transport' => 'postMessage',
5500 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5501 + ]
5502 + );
5503 +
5504 + $this->customizer->add_control(
5505 + new DimensionControl(
5506 + $this->customizer,
5507 + 'single_content_padding_top_layout_8_9',
5508 + [
5509 + 'type' => 'betterdocs-dimension',
5510 + 'section' => 'betterdocs_single_docs_settings',
5511 + 'settings' => 'single_content_padding_top_layout_8_9',
5512 + 'label' => __( 'Top', 'betterdocs' ),
5513 + 'priority' => 158,
5514 + 'input_attrs' => [
5515 + 'class' => 'single_content_padding_layout_8_9 betterdocs-dimension'
5516 + ]
5517 + ]
5518 + )
5519 + );
5520 +
5521 + $this->customizer->add_setting(
5522 + 'single_content_padding_right_layout_8_9',
5523 + [
5524 + 'default' => $this->defaults['single_content_padding_right_layout_8_9'],
5525 + 'capability' => 'edit_theme_options',
5526 + 'transport' => 'postMessage',
5527 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5528 + ]
5529 + );
5530 +
5531 + $this->customizer->add_control(
5532 + new DimensionControl(
5533 + $this->customizer,
5534 + 'single_content_padding_right_layout_8_9',
5535 + [
5536 + 'type' => 'betterdocs-dimension',
5537 + 'section' => 'betterdocs_single_docs_settings',
5538 + 'settings' => 'single_content_padding_right_layout_8_9',
5539 + 'label' => __( 'Right', 'betterdocs' ),
5540 + 'priority' => 158,
5541 + 'input_attrs' => [
5542 + 'class' => 'single_content_padding_layout_8_9 betterdocs-dimension'
5543 + ]
5544 + ]
5545 + )
5546 + );
5547 +
5548 + $this->customizer->add_setting(
5549 + 'single_content_padding_bottom_layout_8_9',
5550 + [
5551 + 'default' => $this->defaults['single_content_padding_bottom_layout_8_9'],
5552 + 'capability' => 'edit_theme_options',
5553 + 'transport' => 'postMessage',
5554 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5555 + ]
5556 + );
5557 +
5558 + $this->customizer->add_control(
5559 + new DimensionControl(
5560 + $this->customizer,
5561 + 'single_content_padding_bottom_layout_8_9',
5562 + [
5563 + 'type' => 'betterdocs-dimension',
5564 + 'section' => 'betterdocs_single_docs_settings',
5565 + 'settings' => 'single_content_padding_bottom_layout_8_9',
5566 + 'label' => __( 'Bottom', 'betterdocs' ),
5567 + 'priority' => 158,
5568 + 'input_attrs' => [
5569 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
5570 + ]
5571 + ]
5572 + )
5573 + );
5574 +
5575 + $this->customizer->add_setting(
5576 + 'single_content_padding_left_layout_8_9',
5577 + [
5578 + 'default' => $this->defaults['single_content_padding_left_layout_8_9'],
5579 + 'capability' => 'edit_theme_options',
5580 + 'transport' => 'postMessage',
5581 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5582 + ]
5583 + );
5584 +
5585 + $this->customizer->add_control(
5586 + new DimensionControl(
5587 + $this->customizer,
5588 + 'single_content_padding_left_layout_8_9',
5589 + [
5590 + 'type' => 'betterdocs-dimension',
5591 + 'section' => 'betterdocs_single_docs_settings',
5592 + 'settings' => 'single_content_padding_left_layout_8_9',
5593 + 'label' => __( 'Left', 'betterdocs' ),
5594 + 'priority' => 158,
5595 + 'input_attrs' => [
5596 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
5597 + ]
5598 + ]
5599 + )
5600 + );
5601 + }
5602 +
5603 + public function single_content_margin_layout_8_9() {
5604 + $this->customizer->add_setting(
5605 + 'single_content_margin_layout_8_9',
5606 + [
5607 + 'default' => $this->defaults['single_content_margin_layout_8_9'],
5608 + 'capability' => 'edit_theme_options',
5609 + 'transport' => 'postMessage',
5610 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5611 + ]
5612 + );
5613 +
5614 + $this->customizer->add_control(
5615 + new TitleControl(
5616 + $this->customizer,
5617 + 'single_content_margin_layout_8_9',
5618 + [
5619 + 'type' => 'betterdocs-title',
5620 + 'section' => 'betterdocs_single_docs_settings',
5621 + 'settings' => 'single_content_margin_layout_8_9',
5622 + 'label' => __( 'Margin', 'betterdocs' ),
5623 + 'priority' => 158,
5624 + 'input_attrs' => [
5625 + 'id' => 'single_content_margin_layout_8_9',
5626 + 'class' => 'betterdocs-dimension'
5627 + ]
5628 + ]
5629 + )
5630 + );
5631 +
5632 + $this->customizer->add_setting(
5633 + 'single_content_margin_top_layout_8_9',
5634 + [
5635 + 'default' => $this->defaults['single_content_margin_top_layout_8_9'],
5636 + 'capability' => 'edit_theme_options',
5637 + 'transport' => 'postMessage',
5638 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5639 + ]
5640 + );
5641 +
5642 + $this->customizer->add_control(
5643 + new DimensionControl(
5644 + $this->customizer,
5645 + 'single_content_margin_top_layout_8_9',
5646 + [
5647 + 'type' => 'betterdocs-dimension',
5648 + 'section' => 'betterdocs_single_docs_settings',
5649 + 'settings' => 'single_content_margin_top_layout_8_9',
5650 + 'label' => __( 'Top', 'betterdocs' ),
5651 + 'priority' => 158,
5652 + 'input_attrs' => [
5653 + 'class' => 'single_content_margin_layout_8_9 betterdocs-dimension'
5654 + ]
5655 + ]
5656 + )
5657 + );
5658 +
5659 + $this->customizer->add_setting(
5660 + 'single_content_margin_right_layout_8_9',
5661 + [
5662 + 'default' => $this->defaults['single_content_margin_right_layout_8_9'],
5663 + 'capability' => 'edit_theme_options',
5664 + 'transport' => 'postMessage',
5665 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5666 + ]
5667 + );
5668 +
5669 + $this->customizer->add_control(
5670 + new DimensionControl(
5671 + $this->customizer,
5672 + 'single_content_margin_right_layout_8_9',
5673 + [
5674 + 'type' => 'betterdocs-dimension',
5675 + 'section' => 'betterdocs_single_docs_settings',
5676 + 'settings' => 'single_content_margin_right_layout_8_9',
5677 + 'label' => __( 'Right', 'betterdocs' ),
5678 + 'priority' => 158,
5679 + 'input_attrs' => [
5680 + 'class' => 'single_content_margin_layout_8_9 betterdocs-dimension'
5681 + ]
5682 + ]
5683 + )
5684 + );
5685 +
5686 + $this->customizer->add_setting(
5687 + 'single_content_margin_bottom_layout_8_9',
5688 + [
5689 + 'default' => $this->defaults['single_content_margin_bottom_layout_8_9'],
5690 + 'capability' => 'edit_theme_options',
5691 + 'transport' => 'postMessage',
5692 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5693 + ]
5694 + );
5695 +
5696 + $this->customizer->add_control(
5697 + new DimensionControl(
5698 + $this->customizer,
5699 + 'single_content_margin_bottom_layout_8_9',
5700 + [
5701 + 'type' => 'betterdocs-dimension',
5702 + 'section' => 'betterdocs_single_docs_settings',
5703 + 'settings' => 'single_content_margin_bottom_layout_8_9',
5704 + 'label' => __( 'Bottom', 'betterdocs' ),
5705 + 'priority' => 158,
5706 + 'input_attrs' => [
5707 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
5708 + ]
5709 + ]
5710 + )
5711 + );
5712 +
5713 + $this->customizer->add_setting(
5714 + 'single_content_margin_left_layout_8_9',
5715 + [
5716 + 'default' => $this->defaults['single_content_margin_left_layout_8_9'],
5717 + 'capability' => 'edit_theme_options',
5718 + 'transport' => 'postMessage',
5719 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5720 + ]
5721 + );
5722 +
5723 + $this->customizer->add_control(
5724 + new DimensionControl(
5725 + $this->customizer,
5726 + 'single_content_margin_left_layout_8_9',
5727 + [
5728 + 'type' => 'betterdocs-dimension',
5729 + 'section' => 'betterdocs_single_docs_settings',
5730 + 'settings' => 'single_content_margin_left_layout_8_9',
5731 + 'label' => __( 'Left', 'betterdocs' ),
5732 + 'priority' => 158,
5733 + 'input_attrs' => [
5734 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
5735 + ]
5736 + ]
5737 + )
5738 + );
5739 + }
5740 +
5741 + public function social_share_title() {
5742 + $this->customizer->add_setting(
5743 + 'betterdocs_social_share_title',
5744 + [
5745 + 'default' => '',
5746 + 'sanitize_callback' => 'esc_html'
5747 + ]
5748 + );
5749 +
5750 + $this->customizer->add_control(
5751 + new SeparatorControl(
5752 + $this->customizer,
5753 + 'betterdocs_social_share_title',
5754 + [
5755 + 'label' => __( 'Social Share', 'betterdocs' ),
5756 + 'priority' => 164,
5757 + 'settings' => 'betterdocs_social_share_title',
5758 + 'section' => 'betterdocs_single_docs_settings'
5759 + ]
5760 + )
5761 + );
5762 + }
5763 +
5764 + public function social_share_title_tag() {
5765 + $this->customizer->add_setting(
5766 + 'betterdocs_social_share_title_tag',
5767 + [
5768 + 'default' => $this->defaults['betterdocs_social_share_title_tag'],
5769 + 'capability' => 'edit_theme_options',
5770 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
5771 + ]
5772 + );
5773 +
5774 + $this->customizer->add_control(
5775 + new WP_Customize_Control(
5776 + $this->customizer,
5777 + 'betterdocs_social_share_title_tag',
5778 + [
5779 + 'label' => __( 'Social Share Title Tag', 'betterdocs' ),
5780 + 'section' => 'betterdocs_single_docs_settings',
5781 + 'settings' => 'betterdocs_social_share_title_tag',
5782 + 'type' => 'select',
5783 + 'choices' => [
5784 + 'h1' => 'h1',
5785 + 'h2' => 'h2',
5786 + 'h3' => 'h3',
5787 + 'h4' => 'h4',
5788 + 'h5' => 'h5',
5789 + 'h6' => 'h6'
5790 + ],
5791 + 'priority' => 165
5792 + ]
5793 + )
5794 + );
5795 + }
5796 +
5797 + public function post_social_share() {
5798 + $this->customizer->add_setting(
5799 + 'betterdocs_post_social_share',
5800 + [
5801 + 'default' => $this->defaults['betterdocs_post_social_share'],
5802 + 'capability' => 'edit_theme_options',
5803 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
5804 + ]
5805 + );
5806 +
5807 + $this->customizer->add_control(
5808 + new ToggleControl(
5809 + $this->customizer,
5810 + 'betterdocs_post_social_share',
5811 + [
5812 + 'label' => __( 'Enable Social Sharing?', 'betterdocs' ),
5813 + 'priority' => 165,
5814 + 'section' => 'betterdocs_single_docs_settings',
5815 + 'settings' => 'betterdocs_post_social_share',
5816 + 'type' => 'light' // light, ios, flat
5817 + ]
5818 + )
5819 + );
5820 + }
5821 +
5822 + public function social_sharing_text() {
5823 + $this->customizer->add_setting(
5824 + 'betterdocs_social_sharing_text',
5825 + [
5826 + 'default' => $this->defaults['betterdocs_social_sharing_text'],
5827 + 'capability' => 'edit_theme_options',
5828 + 'sanitize_callback' => 'esc_html'
5829 + ]
5830 + );
5831 +
5832 + $this->customizer->add_control(
5833 + new SelectControl(
5834 + $this->customizer,
5835 + 'betterdocs_social_sharing_text',
5836 + [
5837 + 'label' => __( 'Social Sharing Title', 'betterdocs' ),
5838 + 'priority' => 166,
5839 + 'section' => 'betterdocs_single_docs_settings',
5840 + 'settings' => 'betterdocs_social_sharing_text',
5841 + 'type' => 'text'
5842 + ]
5843 + )
5844 + );
5845 + }
5846 +
5847 + public function post_social_share_text_color() {
5848 + $this->customizer->add_setting(
5849 + 'betterdocs_post_social_share_text_color',
5850 + [
5851 + 'default' => $this->defaults['betterdocs_post_social_share_text_color'],
5852 + 'capability' => 'edit_theme_options',
5853 + 'transport' => 'postMessage',
5854 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5855 + ]
5856 + );
5857 +
5858 + $this->customizer->add_control(
5859 + new AlphaColorControl(
5860 + $this->customizer,
5861 + 'betterdocs_post_social_share_text_color',
5862 + [
5863 + 'label' => __( 'Title Text Color', 'betterdocs' ),
5864 + 'priority' => 167,
5865 + 'section' => 'betterdocs_single_docs_settings',
5866 + 'settings' => 'betterdocs_post_social_share_text_color'
5867 + ]
5868 + )
5869 + );
5870 + }
5871 +
5872 + public function post_social_share_text_color_layout_8_9() {
5873 + $this->customizer->add_setting(
5874 + 'betterdocs_post_social_share_text_color_color_layout_8_9',
5875 + [
5876 + 'default' => $this->defaults['betterdocs_post_social_share_text_color_color_layout_8_9'],
5877 + 'capability' => 'edit_theme_options',
5878 + 'transport' => 'postMessage',
5879 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5880 + ]
5881 + );
5882 +
5883 + $this->customizer->add_control(
5884 + new AlphaColorControl(
5885 + $this->customizer,
5886 + 'betterdocs_post_social_share_text_color_color_layout_8_9',
5887 + [
5888 + 'label' => __( 'Title Text Color', 'betterdocs' ),
5889 + 'priority' => 167,
5890 + 'section' => 'betterdocs_single_docs_settings',
5891 + 'settings' => 'betterdocs_post_social_share_text_color_color_layout_8_9'
5892 + ]
5893 + )
5894 + );
5895 + }
5896 +
5897 + public function post_social_share_margin_layout_8() {
5898 + $this->customizer->add_setting(
5899 + 'post_social_share_margin_layout_8',
5900 + [
5901 + 'default' => $this->defaults['post_social_share_margin_layout_8'],
5902 + 'capability' => 'edit_theme_options',
5903 + 'transport' => 'postMessage',
5904 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5905 + ]
5906 + );
5907 +
5908 + $this->customizer->add_control(
5909 + new TitleControl(
5910 + $this->customizer,
5911 + 'post_social_share_margin_layout_8',
5912 + [
5913 + 'type' => 'betterdocs-title',
5914 + 'section' => 'betterdocs_single_docs_settings',
5915 + 'settings' => 'post_social_share_margin_layout_8',
5916 + 'label' => __( 'Margin', 'betterdocs' ),
5917 + 'priority' => 167,
5918 + 'input_attrs' => [
5919 + 'id' => 'post_social_share_margin_layout_8',
5920 + 'class' => 'betterdocs-dimension'
5921 + ]
5922 + ]
5923 + )
5924 + );
5925 +
5926 + $this->customizer->add_setting(
5927 + 'post_social_share_margin_top_layout_8',
5928 + [
5929 + 'default' => $this->defaults['post_social_share_margin_top_layout_8'],
5930 + 'capability' => 'edit_theme_options',
5931 + 'transport' => 'postMessage',
5932 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5933 + ]
5934 + );
5935 +
5936 + $this->customizer->add_control(
5937 + new DimensionControl(
5938 + $this->customizer,
5939 + 'post_social_share_margin_top_layout_8',
5940 + [
5941 + 'type' => 'betterdocs-dimension',
5942 + 'section' => 'betterdocs_single_docs_settings',
5943 + 'settings' => 'post_social_share_margin_top_layout_8',
5944 + 'label' => __( 'Top', 'betterdocs' ),
5945 + 'priority' => 167,
5946 + 'input_attrs' => [
5947 + 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
5948 + ]
5949 + ]
5950 + )
5951 + );
5952 +
5953 + $this->customizer->add_setting(
5954 + 'post_social_share_margin_right_layout_8',
5955 + [
5956 + 'default' => $this->defaults['post_social_share_margin_right_layout_8'],
5957 + 'capability' => 'edit_theme_options',
5958 + 'transport' => 'postMessage',
5959 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5960 + ]
5961 + );
5962 +
5963 + $this->customizer->add_control(
5964 + new DimensionControl(
5965 + $this->customizer,
5966 + 'post_social_share_margin_right_layout_8',
5967 + [
5968 + 'type' => 'betterdocs-dimension',
5969 + 'section' => 'betterdocs_single_docs_settings',
5970 + 'settings' => 'post_social_share_margin_right_layout_8',
5971 + 'label' => __( 'Right', 'betterdocs' ),
5972 + 'priority' => 167,
5973 + 'input_attrs' => [
5974 + 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
5975 + ]
5976 + ]
5977 + )
5978 + );
5979 +
5980 + $this->customizer->add_setting(
5981 + 'post_social_share_margin_bottom_layout_8',
5982 + [
5983 + 'default' => $this->defaults['post_social_share_margin_bottom_layout_8'],
5984 + 'capability' => 'edit_theme_options',
5985 + 'transport' => 'postMessage',
5986 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5987 + ]
5988 + );
5989 +
5990 + $this->customizer->add_control(
5991 + new DimensionControl(
5992 + $this->customizer,
5993 + 'post_social_share_margin_bottom_layout_8',
5994 + [
5995 + 'type' => 'betterdocs-dimension',
5996 + 'section' => 'betterdocs_single_docs_settings',
5997 + 'settings' => 'post_social_share_margin_bottom_layout_8',
5998 + 'label' => __( 'Bottom', 'betterdocs' ),
5999 + 'priority' => 167,
6000 + 'input_attrs' => [
6001 + 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
6002 + ]
6003 + ]
6004 + )
6005 + );
6006 +
6007 + $this->customizer->add_setting(
6008 + 'post_social_share_margin_left_layout_8',
6009 + [
6010 + 'default' => $this->defaults['post_social_share_margin_left_layout_8'],
6011 + 'capability' => 'edit_theme_options',
6012 + 'transport' => 'postMessage',
6013 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6014 + ]
6015 + );
6016 +
6017 + $this->customizer->add_control(
6018 + new DimensionControl(
6019 + $this->customizer,
6020 + 'post_social_share_margin_left_layout_8',
6021 + [
6022 + 'type' => 'betterdocs-dimension',
6023 + 'section' => 'betterdocs_single_docs_settings',
6024 + 'settings' => 'post_social_share_margin_left_layout_8',
6025 + 'label' => __( 'Left', 'betterdocs' ),
6026 + 'priority' => 167,
6027 + 'input_attrs' => [
6028 + 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
6029 + ]
6030 + ]
6031 + )
6032 + );
6033 + }
6034 +
6035 + public function post_social_share_margin_layout_9() {
6036 + $this->customizer->add_setting(
6037 + 'post_social_share_margin_layout_9',
6038 + [
6039 + 'default' => $this->defaults['post_social_share_margin_layout_9'],
6040 + 'capability' => 'edit_theme_options',
6041 + 'transport' => 'postMessage',
6042 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6043 + ]
6044 + );
6045 +
6046 + $this->customizer->add_control(
6047 + new TitleControl(
6048 + $this->customizer,
6049 + 'post_social_share_margin_layout_9',
6050 + [
6051 + 'type' => 'betterdocs-title',
6052 + 'section' => 'betterdocs_single_docs_settings',
6053 + 'settings' => 'post_social_share_margin_layout_9',
6054 + 'label' => __( 'Margin', 'betterdocs' ),
6055 + 'priority' => 167,
6056 + 'input_attrs' => [
6057 + 'id' => 'post_social_share_margin_layout_9',
6058 + 'class' => 'betterdocs-dimension'
6059 + ]
6060 + ]
6061 + )
6062 + );
6063 +
6064 + $this->customizer->add_setting(
6065 + 'post_social_share_margin_top_layout_9',
6066 + [
6067 + 'default' => $this->defaults['post_social_share_margin_top_layout_9'],
6068 + 'capability' => 'edit_theme_options',
6069 + 'transport' => 'postMessage',
6070 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6071 + ]
6072 + );
6073 +
6074 + $this->customizer->add_control(
6075 + new DimensionControl(
6076 + $this->customizer,
6077 + 'post_social_share_margin_top_layout_9',
6078 + [
6079 + 'type' => 'betterdocs-dimension',
6080 + 'section' => 'betterdocs_single_docs_settings',
6081 + 'settings' => 'post_social_share_margin_top_layout_9',
6082 + 'label' => __( 'Top', 'betterdocs' ),
6083 + 'priority' => 167,
6084 + 'input_attrs' => [
6085 + 'class' => 'post_social_share_margin_layout_9 betterdocs-dimension'
6086 + ]
6087 + ]
6088 + )
6089 + );
6090 +
6091 + $this->customizer->add_setting(
6092 + 'post_social_share_margin_right_layout_9',
6093 + [
6094 + 'default' => $this->defaults['post_social_share_margin_right_layout_9'],
6095 + 'capability' => 'edit_theme_options',
6096 + 'transport' => 'postMessage',
6097 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6098 + ]
6099 + );
6100 +
6101 + $this->customizer->add_control(
6102 + new DimensionControl(
6103 + $this->customizer,
6104 + 'post_social_share_margin_right_layout_9',
6105 + [
6106 + 'type' => 'betterdocs-dimension',
6107 + 'section' => 'betterdocs_single_docs_settings',
6108 + 'settings' => 'post_social_share_margin_right_layout_9',
6109 + 'label' => __( 'Right', 'betterdocs' ),
6110 + 'priority' => 167,
6111 + 'input_attrs' => [
6112 + 'class' => 'post_social_share_margin_layout_9 betterdocs-dimension'
6113 + ]
6114 + ]
6115 + )
6116 + );
6117 +
6118 + $this->customizer->add_setting(
6119 + 'post_social_share_margin_bottom_layout_9',
6120 + [
6121 + 'default' => $this->defaults['post_social_share_margin_bottom_layout_9'],
6122 + 'capability' => 'edit_theme_options',
6123 + 'transport' => 'postMessage',
6124 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6125 + ]
6126 + );
6127 +
6128 + $this->customizer->add_control(
6129 + new DimensionControl(
6130 + $this->customizer,
6131 + 'post_social_share_margin_bottom_layout_9',
6132 + [
6133 + 'type' => 'betterdocs-dimension',
6134 + 'section' => 'betterdocs_single_docs_settings',
6135 + 'settings' => 'post_social_share_margin_bottom_layout_9',
6136 + 'label' => __( 'Bottom', 'betterdocs' ),
6137 + 'priority' => 167,
6138 + 'input_attrs' => [
6139 + 'class' => 'post_social_share_margin_layout_9 betterdocs-dimension'
6140 + ]
6141 + ]
6142 + )
6143 + );
6144 +
6145 + $this->customizer->add_setting(
6146 + 'post_social_share_margin_left_layout_9',
6147 + [
6148 + 'default' => $this->defaults['post_social_share_margin_left_layout_9'],
6149 + 'capability' => 'edit_theme_options',
6150 + 'transport' => 'postMessage',
6151 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6152 + ]
6153 + );
6154 +
6155 + $this->customizer->add_control(
6156 + new DimensionControl(
6157 + $this->customizer,
6158 + 'post_social_share_margin_left_layout_9',
6159 + [
6160 + 'type' => 'betterdocs-dimension',
6161 + 'section' => 'betterdocs_single_docs_settings',
6162 + 'settings' => 'post_social_share_margin_left_layout_9',
6163 + 'label' => __( 'Left', 'betterdocs' ),
6164 + 'priority' => 167,
6165 + 'input_attrs' => [
6166 + 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
6167 + ]
6168 + ]
6169 + )
6170 + );
6171 + }
6172 +
6173 +
6174 + public function post_social_share_padding_layout_8() {
6175 + $this->customizer->add_setting(
6176 + 'post_social_share_padding_layout_8',
6177 + [
6178 + 'default' => $this->defaults['post_social_share_padding_layout_8'],
6179 + 'capability' => 'edit_theme_options',
6180 + 'transport' => 'postMessage',
6181 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6182 + ]
6183 + );
6184 +
6185 + $this->customizer->add_control(
6186 + new TitleControl(
6187 + $this->customizer,
6188 + 'post_social_share_padding_layout_8',
6189 + [
6190 + 'type' => 'betterdocs-title',
6191 + 'section' => 'betterdocs_single_docs_settings',
6192 + 'settings' => 'post_social_share_padding_layout_8',
6193 + 'label' => __( 'Padding', 'betterdocs' ),
6194 + 'priority' => 167,
6195 + 'input_attrs' => [
6196 + 'id' => 'post_social_share_padding_layout_8',
6197 + 'class' => 'betterdocs-dimension'
6198 + ]
6199 + ]
6200 + )
6201 + );
6202 +
6203 + $this->customizer->add_setting(
6204 + 'post_social_share_padding_top_layout_8',
6205 + [
6206 + 'default' => $this->defaults['post_social_share_padding_top_layout_8'],
6207 + 'capability' => 'edit_theme_options',
6208 + 'transport' => 'postMessage',
6209 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6210 + ]
6211 + );
6212 +
6213 + $this->customizer->add_control(
6214 + new DimensionControl(
6215 + $this->customizer,
6216 + 'post_social_share_padding_top_layout_8',
6217 + [
6218 + 'type' => 'betterdocs-dimension',
6219 + 'section' => 'betterdocs_single_docs_settings',
6220 + 'settings' => 'post_social_share_padding_top_layout_8',
6221 + 'label' => __( 'Top', 'betterdocs' ),
6222 + 'priority' => 167,
6223 + 'input_attrs' => [
6224 + 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
6225 + ]
6226 + ]
6227 + )
6228 + );
6229 +
6230 + $this->customizer->add_setting(
6231 + 'post_social_share_padding_right_layout_8',
6232 + [
6233 + 'default' => $this->defaults['post_social_share_padding_right_layout_8'],
6234 + 'capability' => 'edit_theme_options',
6235 + 'transport' => 'postMessage',
6236 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6237 + ]
6238 + );
6239 +
6240 + $this->customizer->add_control(
6241 + new DimensionControl(
6242 + $this->customizer,
6243 + 'post_social_share_padding_right_layout_8',
6244 + [
6245 + 'type' => 'betterdocs-dimension',
6246 + 'section' => 'betterdocs_single_docs_settings',
6247 + 'settings' => 'post_social_share_padding_right_layout_8',
6248 + 'label' => __( 'Right', 'betterdocs' ),
6249 + 'priority' => 167,
6250 + 'input_attrs' => [
6251 + 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
6252 + ]
6253 + ]
6254 + )
6255 + );
6256 +
6257 + $this->customizer->add_setting(
6258 + 'post_social_share_padding_bottom_layout_8',
6259 + [
6260 + 'default' => $this->defaults['post_social_share_padding_bottom_layout_8'],
6261 + 'capability' => 'edit_theme_options',
6262 + 'transport' => 'postMessage',
6263 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6264 + ]
6265 + );
6266 +
6267 + $this->customizer->add_control(
6268 + new DimensionControl(
6269 + $this->customizer,
6270 + 'post_social_share_padding_bottom_layout_8',
6271 + [
6272 + 'type' => 'betterdocs-dimension',
6273 + 'section' => 'betterdocs_single_docs_settings',
6274 + 'settings' => 'post_social_share_padding_bottom_layout_8',
6275 + 'label' => __( 'Bottom', 'betterdocs' ),
6276 + 'priority' => 167,
6277 + 'input_attrs' => [
6278 + 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
6279 + ]
6280 + ]
6281 + )
6282 + );
6283 +
6284 + $this->customizer->add_setting(
6285 + 'post_social_share_padding_left_layout_8',
6286 + [
6287 + 'default' => $this->defaults['post_social_share_padding_left_layout_8'],
6288 + 'capability' => 'edit_theme_options',
6289 + 'transport' => 'postMessage',
6290 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6291 + ]
6292 + );
6293 +
6294 + $this->customizer->add_control(
6295 + new DimensionControl(
6296 + $this->customizer,
6297 + 'post_social_share_padding_left_layout_8',
6298 + [
6299 + 'type' => 'betterdocs-dimension',
6300 + 'section' => 'betterdocs_single_docs_settings',
6301 + 'settings' => 'post_social_share_padding_left_layout_8',
6302 + 'label' => __( 'Left', 'betterdocs' ),
6303 + 'priority' => 167,
6304 + 'input_attrs' => [
6305 + 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
6306 + ]
6307 + ]
6308 + )
6309 + );
6310 + }
6311 +
6312 + public function post_social_share_padding_layout_9() {
6313 + $this->customizer->add_setting(
6314 + 'post_social_share_padding_layout_9',
6315 + [
6316 + 'default' => $this->defaults['post_social_share_padding_layout_9'],
6317 + 'capability' => 'edit_theme_options',
6318 + 'transport' => 'postMessage',
6319 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6320 + ]
6321 + );
6322 +
6323 + $this->customizer->add_control(
6324 + new TitleControl(
6325 + $this->customizer,
6326 + 'post_social_share_padding_layout_9',
6327 + [
6328 + 'type' => 'betterdocs-title',
6329 + 'section' => 'betterdocs_single_docs_settings',
6330 + 'settings' => 'post_social_share_padding_layout_9',
6331 + 'label' => __( 'Padding', 'betterdocs' ),
6332 + 'priority' => 167,
6333 + 'input_attrs' => [
6334 + 'id' => 'post_social_share_padding_layout_9',
6335 + 'class' => 'betterdocs-dimension'
6336 + ]
6337 + ]
6338 + )
6339 + );
6340 +
6341 + $this->customizer->add_setting(
6342 + 'post_social_share_padding_top_layout_9',
6343 + [
6344 + 'default' => $this->defaults['post_social_share_padding_top_layout_9'],
6345 + 'capability' => 'edit_theme_options',
6346 + 'transport' => 'postMessage',
6347 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6348 + ]
6349 + );
6350 +
6351 + $this->customizer->add_control(
6352 + new DimensionControl(
6353 + $this->customizer,
6354 + 'post_social_share_padding_top_layout_9',
6355 + [
6356 + 'type' => 'betterdocs-dimension',
6357 + 'section' => 'betterdocs_single_docs_settings',
6358 + 'settings' => 'post_social_share_padding_top_layout_9',
6359 + 'label' => __( 'Top', 'betterdocs' ),
6360 + 'priority' => 167,
6361 + 'input_attrs' => [
6362 + 'class' => 'post_social_share_padding_layout_9 betterdocs-dimension'
6363 + ]
6364 + ]
6365 + )
6366 + );
6367 +
6368 + $this->customizer->add_setting(
6369 + 'post_social_share_padding_right_layout_9',
6370 + [
6371 + 'default' => $this->defaults['post_social_share_padding_right_layout_9'],
6372 + 'capability' => 'edit_theme_options',
6373 + 'transport' => 'postMessage',
6374 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6375 + ]
6376 + );
6377 +
6378 + $this->customizer->add_control(
6379 + new DimensionControl(
6380 + $this->customizer,
6381 + 'post_social_share_padding_right_layout_9',
6382 + [
6383 + 'type' => 'betterdocs-dimension',
6384 + 'section' => 'betterdocs_single_docs_settings',
6385 + 'settings' => 'post_social_share_padding_right_layout_9',
6386 + 'label' => __( 'Right', 'betterdocs' ),
6387 + 'priority' => 167,
6388 + 'input_attrs' => [
6389 + 'class' => 'post_social_share_padding_layout_9 betterdocs-dimension'
6390 + ]
6391 + ]
6392 + )
6393 + );
6394 +
6395 + $this->customizer->add_setting(
6396 + 'post_social_share_padding_bottom_layout_9',
6397 + [
6398 + 'default' => $this->defaults['post_social_share_padding_bottom_layout_9'],
6399 + 'capability' => 'edit_theme_options',
6400 + 'transport' => 'postMessage',
6401 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6402 + ]
6403 + );
6404 +
6405 + $this->customizer->add_control(
6406 + new DimensionControl(
6407 + $this->customizer,
6408 + 'post_social_share_padding_bottom_layout_9',
6409 + [
6410 + 'type' => 'betterdocs-dimension',
6411 + 'section' => 'betterdocs_single_docs_settings',
6412 + 'settings' => 'post_social_share_padding_bottom_layout_9',
6413 + 'label' => __( 'Bottom', 'betterdocs' ),
6414 + 'priority' => 167,
6415 + 'input_attrs' => [
6416 + 'class' => 'post_social_share_padding_layout_9 betterdocs-dimension'
6417 + ]
6418 + ]
6419 + )
6420 + );
6421 +
6422 + $this->customizer->add_setting(
6423 + 'post_social_share_padding_left_layout_9',
6424 + [
6425 + 'default' => $this->defaults['post_social_share_padding_left_layout_9'],
6426 + 'capability' => 'edit_theme_options',
6427 + 'transport' => 'postMessage',
6428 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6429 + ]
6430 + );
6431 +
6432 + $this->customizer->add_control(
6433 + new DimensionControl(
6434 + $this->customizer,
6435 + 'post_social_share_padding_left_layout_9',
6436 + [
6437 + 'type' => 'betterdocs-dimension',
6438 + 'section' => 'betterdocs_single_docs_settings',
6439 + 'settings' => 'post_social_share_padding_left_layout_9',
6440 + 'label' => __( 'Left', 'betterdocs' ),
6441 + 'priority' => 167,
6442 + 'input_attrs' => [
6443 + 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
6444 + ]
6445 + ]
6446 + )
6447 + );
6448 + }
6449 +
6450 + public function post_social_share_facebook() {
6451 + $this->customizer->add_setting(
6452 + 'betterdocs_post_social_share_facebook',
6453 + [
6454 + 'default' => $this->defaults['betterdocs_post_social_share_facebook'],
6455 + 'capability' => 'edit_theme_options',
6456 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
6457 + ]
6458 + );
6459 +
6460 + $this->customizer->add_control(
6461 + new ToggleControl(
6462 + $this->customizer,
6463 + 'betterdocs_post_social_share_facebook',
6464 + [
6465 + 'label' => __( 'Facebook Sharing', 'betterdocs' ),
6466 + 'priority' => 168,
6467 + 'section' => 'betterdocs_single_docs_settings',
6468 + 'settings' => 'betterdocs_post_social_share_facebook',
6469 + 'type' => 'light' // light, ios, flat
6470 + ]
6471 + )
6472 + );
6473 + }
6474 +
6475 + public function post_social_share_twitter() {
6476 + $this->customizer->add_setting(
6477 + 'betterdocs_post_social_share_twitter',
6478 + [
6479 + 'default' => $this->defaults['betterdocs_post_social_share_twitter'],
6480 + 'capability' => 'edit_theme_options',
6481 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
6482 + ]
6483 + );
6484 +
6485 + $this->customizer->add_control(
6486 + new ToggleControl(
6487 + $this->customizer,
6488 + 'betterdocs_post_social_share_twitter',
6489 + [
6490 + 'label' => __( 'Twitter Sharing', 'betterdocs' ),
6491 + 'priority' => 169,
6492 + 'section' => 'betterdocs_single_docs_settings',
6493 + 'settings' => 'betterdocs_post_social_share_twitter',
6494 + 'type' => 'light' // light, ios, flat
6495 + ]
6496 + )
6497 + );
6498 + }
6499 +
6500 + public function post_social_share_linkedin() {
6501 + $this->customizer->add_setting(
6502 + 'betterdocs_post_social_share_linkedin',
6503 + [
6504 + 'default' => $this->defaults['betterdocs_post_social_share_linkedin'],
6505 + 'capability' => 'edit_theme_options',
6506 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
6507 + ]
6508 + );
6509 +
6510 + $this->customizer->add_control(
6511 + new ToggleControl(
6512 + $this->customizer,
6513 + 'betterdocs_post_social_share_linkedin',
6514 + [
6515 + 'label' => __( 'Linkedin Sharing', 'betterdocs' ),
6516 + 'priority' => 170,
6517 + 'section' => 'betterdocs_single_docs_settings',
6518 + 'settings' => 'betterdocs_post_social_share_linkedin',
6519 + 'type' => 'light' // light, ios, flat
6520 + ]
6521 + )
6522 + );
6523 + }
6524 +
6525 + public function post_social_share_pinterest() {
6526 + $this->customizer->add_setting(
6527 + 'betterdocs_post_social_share_pinterest',
6528 + [
6529 + 'default' => $this->defaults['betterdocs_post_social_share_pinterest'],
6530 + 'capability' => 'edit_theme_options',
6531 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
6532 + ]
6533 + );
6534 +
6535 + $this->customizer->add_control(
6536 + new ToggleControl(
6537 + $this->customizer,
6538 + 'betterdocs_post_social_share_pinterest',
6539 + [
6540 + 'label' => __( 'Pinterest Sharing', 'betterdocs' ),
6541 + 'priority' => 171,
6542 + 'section' => 'betterdocs_single_docs_settings',
6543 + 'settings' => 'betterdocs_post_social_share_pinterest',
6544 + 'type' => 'light' // light, ios, flat
6545 + ]
6546 + )
6547 + );
6548 + }
6549 +
6550 + public function doc_single_entry_footer() {
6551 + $this->customizer->add_setting(
6552 + 'betterdocs_doc_single_entry_footer',
6553 + [
6554 + 'default' => $this->defaults['betterdocs_doc_single_entry_footer'],
6555 + 'sanitize_callback' => 'esc_html'
6556 + ]
6557 + );
6558 +
6559 + $this->customizer->add_control(
6560 + new SeparatorControl(
6561 + $this->customizer,
6562 + 'betterdocs_doc_single_entry_footer',
6563 + [
6564 + 'label' => __( 'Entry Footer', 'betterdocs' ),
6565 + 'priority' => 172,
6566 + 'settings' => 'betterdocs_doc_single_entry_footer',
6567 + 'section' => 'betterdocs_single_docs_settings'
6568 + ]
6569 + )
6570 + );
6571 + }
6572 +
6573 + public function single_doc_feedback_label_name_text(){
6574 + $this->customizer->add_setting(
6575 + 'single_doc_feedback_label_name_text',
6576 + [
6577 + 'default' => $this->defaults['single_doc_feedback_label_name_text'],
6578 + 'capability' => 'edit_theme_options',
6579 + 'sanitize_callback' => 'esc_html'
6580 + ]
6581 + );
6582 +
6583 + $this->customizer->add_control(
6584 + new SelectControl(
6585 + $this->customizer,
6586 + 'single_doc_feedback_label_name_text',
6587 + [
6588 + 'label' => __( 'Label Name Text', 'betterdocs' ),
6589 + 'priority' => 173,
6590 + 'section' => 'betterdocs_single_docs_settings',
6591 + 'settings' => 'single_doc_feedback_label_name_text',
6592 + 'type' => 'text'
6593 + ]
6594 + )
6595 + );
6596 + }
6597 +
6598 + public function single_doc_feedback_label_email_text(){
6599 + $this->customizer->add_setting(
6600 + 'single_doc_feedback_label_email_text',
6601 + [
6602 + 'default' => $this->defaults['single_doc_feedback_label_email_text'],
6603 + 'capability' => 'edit_theme_options',
6604 + 'sanitize_callback' => 'esc_html'
6605 + ]
6606 + );
6607 +
6608 + $this->customizer->add_control(
6609 + new SelectControl(
6610 + $this->customizer,
6611 + 'single_doc_feedback_label_email_text',
6612 + [
6613 + 'label' => __( 'Label Email Text', 'betterdocs' ),
6614 + 'priority' => 173,
6615 + 'section' => 'betterdocs_single_docs_settings',
6616 + 'settings' => 'single_doc_feedback_label_email_text',
6617 + 'type' => 'text'
6618 + ]
6619 + )
6620 + );
6621 + }
6622 +
6623 + public function single_doc_feedback_label_message_text(){
6624 + $this->customizer->add_setting(
6625 + 'single_doc_feedback_label_message_text',
6626 + [
6627 + 'default' => $this->defaults['single_doc_feedback_label_message_text'],
6628 + 'capability' => 'edit_theme_options',
6629 + 'sanitize_callback' => 'esc_html'
6630 + ]
6631 + );
6632 +
6633 + $this->customizer->add_control(
6634 + new SelectControl(
6635 + $this->customizer,
6636 + 'single_doc_feedback_label_message_text',
6637 + [
6638 + 'label' => __( 'Label Message Text', 'betterdocs' ),
6639 + 'priority' => 173,
6640 + 'section' => 'betterdocs_single_docs_settings',
6641 + 'settings' => 'single_doc_feedback_label_message_text',
6642 + 'type' => 'text'
6643 + ]
6644 + )
6645 + );
6646 + }
6647 +
6648 + public function single_doc_feedback_icon_font_size() {
6649 + $this->customizer->add_setting(
6650 + 'betterdocs_single_doc_feedback_icon_font_size',
6651 + [
6652 + 'default' => $this->defaults['betterdocs_single_doc_feedback_icon_font_size'],
6653 + 'capability' => 'edit_theme_options',
6654 + 'transport' => 'postMessage',
6655 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6656 +
6657 + ]
6658 + );
6659 +
6660 + $this->customizer->add_control(
6661 + new RangeValueControl(
6662 + $this->customizer,
6663 + 'betterdocs_single_doc_feedback_icon_font_size',
6664 + [
6665 + 'type' => 'betterdocs-range-value',
6666 + 'section' => 'betterdocs_single_docs_settings',
6667 + 'settings' => 'betterdocs_single_doc_feedback_icon_font_size',
6668 + 'label' => __( 'Feedback Icon Size', 'betterdocs' ),
6669 + 'priority' => 173,
6670 + 'input_attrs' => [
6671 + 'class' => '',
6672 + 'min' => 0,
6673 + 'max' => 100,
6674 + 'step' => 1,
6675 + 'suffix' => 'px' //optional suffix
6676 + ]
6677 + ]
6678 + )
6679 + );
6680 + }
6681 +
6682 + public function single_doc_feedback_icon() {
6683 + $this->customizer->add_setting(
6684 + 'betterdocs_single_doc_feedback_icon',
6685 + [
6686 + 'default' => $this->defaults['betterdocs_single_doc_feedback_icon'],
6687 + 'capability' => 'edit_theme_options'
6688 + ]
6689 + );
6690 +
6691 + $this->customizer->add_control(
6692 + new WP_Customize_Image_Control(
6693 + $this->customizer,
6694 + 'betterdocs_single_doc_feedback_icon',
6695 + [
6696 + 'section' => 'betterdocs_single_docs_settings',
6697 + 'settings' => 'betterdocs_single_doc_feedback_icon',
6698 + 'label' => __( 'Feedback Icon', 'betterdocs' ),
6699 + 'priority' => 173
6700 + ]
6701 + )
6702 + );
6703 + }
6704 +
6705 + public function single_doc_feedback_link_color() {
6706 + $this->customizer->add_setting(
6707 + 'betterdocs_single_doc_feedback_link_color',
6708 + [
6709 + 'default' => $this->defaults['betterdocs_single_doc_feedback_link_color'],
6710 + 'capability' => 'edit_theme_options',
6711 + 'transport' => 'postMessage',
6712 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6713 + ]
6714 + );
6715 +
6716 + $this->customizer->add_control(
6717 + new AlphaColorControl(
6718 + $this->customizer,
6719 + 'betterdocs_single_doc_feedback_link_color',
6720 + [
6721 + 'label' => __( 'Feedback Link Color', 'betterdocs' ),
6722 + 'priority' => 174,
6723 + 'section' => 'betterdocs_single_docs_settings',
6724 + 'settings' => 'betterdocs_single_doc_feedback_link_color'
6725 + ]
6726 + )
6727 + );
6728 + }
6729 +
6730 + public function single_doc_feedback_link_hover_color() {
6731 + $this->customizer->add_setting(
6732 + 'betterdocs_single_doc_feedback_link_hover_color',
6733 + [
6734 + 'default' => $this->defaults['betterdocs_single_doc_feedback_link_hover_color'],
6735 + 'capability' => 'edit_theme_options',
6736 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6737 + ]
6738 + );
6739 +
6740 + $this->customizer->add_control(
6741 + new AlphaColorControl(
6742 + $this->customizer,
6743 + 'betterdocs_single_doc_feedback_link_hover_color',
6744 + [
6745 + 'label' => __( 'Feedback Link Hover Color', 'betterdocs' ),
6746 + 'priority' => 175,
6747 + 'section' => 'betterdocs_single_docs_settings',
6748 + 'settings' => 'betterdocs_single_doc_feedback_link_hover_color'
6749 + ]
6750 + )
6751 + );
6752 + }
6753 +
6754 + public function single_doc_feedback_link_font_size() {
6755 + $this->customizer->add_setting(
6756 + 'betterdocs_single_doc_feedback_link_font_size',
6757 + [
6758 + 'default' => $this->defaults['betterdocs_single_doc_feedback_link_font_size'],
6759 + 'capability' => 'edit_theme_options',
6760 + 'transport' => 'postMessage',
6761 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6762 +
6763 + ]
6764 + );
6765 +
6766 + $this->customizer->add_control(
6767 + new RangeValueControl(
6768 + $this->customizer,
6769 + 'betterdocs_single_doc_feedback_link_font_size',
6770 + [
6771 + 'type' => 'betterdocs-range-value',
6772 + 'section' => 'betterdocs_single_docs_settings',
6773 + 'settings' => 'betterdocs_single_doc_feedback_link_font_size',
6774 + 'label' => __( 'Feedback Link Font Size', 'betterdocs' ),
6775 + 'priority' => 175,
6776 + 'input_attrs' => [
6777 + 'class' => '',
6778 + 'min' => 0,
6779 + 'max' => 50,
6780 + 'step' => 1,
6781 + 'suffix' => 'px' //optional suffix
6782 + ]
6783 + ]
6784 + )
6785 + );
6786 + }
6787 +
6788 + public function feedback_form_title_tag() {
6789 + $this->customizer->add_setting(
6790 + 'betterdocs_feedback_form_title_tag',
6791 + [
6792 + 'default' => $this->defaults['betterdocs_feedback_form_title_tag'],
6793 + 'capability' => 'edit_theme_options',
6794 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
6795 + ]
6796 + );
6797 +
6798 + $this->customizer->add_control(
6799 + new WP_Customize_Control(
6800 + $this->customizer,
6801 + 'betterdocs_feedback_form_title_tag',
6802 + [
6803 + 'label' => __( 'Feedback Form Title Tag', 'betterdocs' ),
6804 + 'section' => 'betterdocs_single_docs_settings',
6805 + 'settings' => 'betterdocs_feedback_form_title_tag',
6806 + 'priority' => 175,
6807 + 'type' => 'select',
6808 + 'choices' => [
6809 + 'h1' => 'h1',
6810 + 'h2' => 'h2',
6811 + 'h3' => 'h3',
6812 + 'h4' => 'h4',
6813 + 'h5' => 'h5',
6814 + 'h6' => 'h6',
6815 + 'p' => 'p'
6816 + ]
6817 + ]
6818 + )
6819 + );
6820 + }
6821 +
6822 + public function single_doc_feedback_title_font_size() {
6823 + $this->customizer->add_setting(
6824 + 'betterdocs_single_doc_feedback_title_font_size',
6825 + [
6826 + 'default' => $this->defaults['betterdocs_single_doc_feedback_title_font_size'],
6827 + 'capability' => 'edit_theme_options',
6828 + 'transport' => 'postMessage',
6829 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6830 +
6831 + ]
6832 + );
6833 +
6834 + $this->customizer->add_control(
6835 + new RangeValueControl(
6836 + $this->customizer,
6837 + 'betterdocs_single_doc_feedback_title_font_size',
6838 + [
6839 + 'type' => 'betterdocs-range-value',
6840 + 'section' => 'betterdocs_single_docs_settings',
6841 + 'settings' => 'betterdocs_single_doc_feedback_title_font_size',
6842 + 'label' => __( 'Feedback Form Title Font Size', 'betterdocs' ),
6843 + 'priority' => 175,
6844 + 'input_attrs' => [
6845 + 'class' => '',
6846 + 'min' => 0,
6847 + 'max' => 100,
6848 + 'step' => 1,
6849 + 'suffix' => 'px' //optional suffix
6850 + ]
6851 + ]
6852 + )
6853 + );
6854 + }
6855 +
6856 + public function single_doc_feedback_title_color() {
6857 + $this->customizer->add_setting(
6858 + 'betterdocs_single_doc_feedback_title_color',
6859 + [
6860 + 'default' => $this->defaults['betterdocs_single_doc_feedback_title_color'],
6861 + 'capability' => 'edit_theme_options',
6862 + 'transport' => 'postMessage',
6863 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6864 + ]
6865 + );
6866 +
6867 + $this->customizer->add_control(
6868 + new AlphaColorControl(
6869 + $this->customizer,
6870 + 'betterdocs_single_doc_feedback_title_color',
6871 + [
6872 + 'label' => __( 'Feedback Form Title Color', 'betterdocs' ),
6873 + 'priority' => 175,
6874 + 'section' => 'betterdocs_single_docs_settings',
6875 + 'settings' => 'betterdocs_single_doc_feedback_title_color'
6876 + ]
6877 + )
6878 + );
6879 + }
6880 +
6881 + public function single_doc_navigation_color() {
6882 + $this->customizer->add_setting(
6883 + 'betterdocs_single_doc_navigation_color',
6884 + [
6885 + 'default' => $this->defaults['betterdocs_single_doc_navigation_color'],
6886 + 'capability' => 'edit_theme_options',
6887 + 'transport' => 'postMessage',
6888 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6889 + ]
6890 + );
6891 +
6892 + $this->customizer->add_control(
6893 + new AlphaColorControl(
6894 + $this->customizer,
6895 + 'betterdocs_single_doc_navigation_color',
6896 + [
6897 + 'label' => __( 'Navigation Color', 'betterdocs' ),
6898 + 'priority' => 177,
6899 + 'section' => 'betterdocs_single_docs_settings',
6900 + 'settings' => 'betterdocs_single_doc_navigation_color'
6901 + ]
6902 + )
6903 + );
6904 + }
6905 +
6906 + public function single_doc_navigation_font_size() {
6907 + $this->customizer->add_setting(
6908 + 'betterdocs_single_doc_navigation_font_size',
6909 + [
6910 + 'default' => $this->defaults['betterdocs_single_doc_navigation_font_size'],
6911 + 'capability' => 'edit_theme_options',
6912 + 'transport' => 'postMessage',
6913 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6914 +
6915 + ]
6916 + );
6917 +
6918 + $this->customizer->add_control(
6919 + new RangeValueControl(
6920 + $this->customizer,
6921 + 'betterdocs_single_doc_navigation_font_size',
6922 + [
6923 + 'type' => 'betterdocs-range-value',
6924 + 'section' => 'betterdocs_single_docs_settings',
6925 + 'settings' => 'betterdocs_single_doc_navigation_font_size',
6926 + 'label' => __( 'Navigation Font Size', 'betterdocs' ),
6927 + 'priority' => 178,
6928 + 'input_attrs' => [
6929 + 'class' => '',
6930 + 'min' => 0,
6931 + 'max' => 50,
6932 + 'step' => 1,
6933 + 'suffix' => 'px' //optional suffix
6934 + ]
6935 + ]
6936 + )
6937 + );
6938 + }
6939 +
6940 + public function single_doc_navigation_hover_color() {
6941 + $this->customizer->add_setting(
6942 + 'betterdocs_single_doc_navigation_hover_color',
6943 + [
6944 + 'default' => $this->defaults['betterdocs_single_doc_navigation_hover_color'],
6945 + 'capability' => 'edit_theme_options',
6946 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6947 + ]
6948 + );
6949 +
6950 + $this->customizer->add_control(
6951 + new AlphaColorControl(
6952 + $this->customizer,
6953 + 'betterdocs_single_doc_navigation_hover_color',
6954 + [
6955 + 'label' => __( 'Navigation Hover Color', 'betterdocs' ),
6956 + 'priority' => 179,
6957 + 'section' => 'betterdocs_single_docs_settings',
6958 + 'settings' => 'betterdocs_single_doc_navigation_hover_color'
6959 + ]
6960 + )
6961 + );
6962 + }
6963 +
6964 + public function single_doc_navigation_arrow_color() {
6965 + $this->customizer->add_setting(
6966 + 'betterdocs_single_doc_navigation_arrow_color',
6967 + [
6968 + 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_color'],
6969 + 'capability' => 'edit_theme_options',
6970 + 'transport' => 'postMessage',
6971 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6972 + ]
6973 + );
6974 +
6975 + $this->customizer->add_control(
6976 + new AlphaColorControl(
6977 + $this->customizer,
6978 + 'betterdocs_single_doc_navigation_arrow_color',
6979 + [
6980 + 'label' => __( 'Navigation Arrow Color', 'betterdocs' ),
6981 + 'priority' => 180,
6982 + 'section' => 'betterdocs_single_docs_settings',
6983 + 'settings' => 'betterdocs_single_doc_navigation_arrow_color'
6984 + ]
6985 + )
6986 + );
6987 + }
6988 +
6989 + public function single_doc_navigation_arrow_font_size() {
6990 + $this->customizer->add_setting(
6991 + 'betterdocs_single_doc_navigation_arrow_font_size',
6992 + [
6993 + 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_font_size'],
6994 + 'capability' => 'edit_theme_options',
6995 + 'transport' => 'postMessage',
6996 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6997 +
6998 + ]
6999 + );
7000 +
7001 + $this->customizer->add_control(
7002 + new RangeValueControl(
7003 + $this->customizer,
7004 + 'betterdocs_single_doc_navigation_arrow_font_size',
7005 + [
7006 + 'type' => 'betterdocs-range-value',
7007 + 'section' => 'betterdocs_single_docs_settings',
7008 + 'settings' => 'betterdocs_single_doc_navigation_arrow_font_size',
7009 + 'label' => __( 'Navigation Arrow Font Size', 'betterdocs' ),
7010 + 'priority' => 181,
7011 + 'input_attrs' => [
7012 + 'class' => '',
7013 + 'min' => 0,
7014 + 'max' => 50,
7015 + 'step' => 1,
7016 + 'suffix' => 'px' //optional suffix
7017 + ]
7018 + ]
7019 + )
7020 + );
7021 + }
7022 +
7023 + public function single_doc_navigation_color_layout_8_9() {
7024 + $this->customizer->add_setting(
7025 + 'betterdocs_single_doc_navigation_color_layout_8_9',
7026 + [
7027 + 'default' => $this->defaults['betterdocs_single_doc_navigation_color_layout_8_9'],
7028 + 'capability' => 'edit_theme_options',
7029 + 'transport' => 'postMessage',
7030 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7031 + ]
7032 + );
7033 +
7034 + $this->customizer->add_control(
7035 + new AlphaColorControl(
7036 + $this->customizer,
7037 + 'betterdocs_single_doc_navigation_color_layout_8_9',
7038 + [
7039 + 'label' => __( 'Navigation Color', 'betterdocs' ),
7040 + 'priority' => 177,
7041 + 'section' => 'betterdocs_single_docs_settings',
7042 + 'settings' => 'betterdocs_single_doc_navigation_color_layout_8_9'
7043 + ]
7044 + )
7045 + );
7046 + }
7047 +
7048 + public function single_doc_navigation_font_size_layout_8_9() {
7049 + $this->customizer->add_setting(
7050 + 'betterdocs_single_doc_navigation_font_size_layout_8_9',
7051 + [
7052 + 'default' => $this->defaults['betterdocs_single_doc_navigation_font_size_layout_8_9'],
7053 + 'capability' => 'edit_theme_options',
7054 + 'transport' => 'postMessage',
7055 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7056 +
7057 + ]
7058 + );
7059 +
7060 + $this->customizer->add_control(
7061 + new RangeValueControl(
7062 + $this->customizer,
7063 + 'betterdocs_single_doc_navigation_font_size_layout_8_9',
7064 + [
7065 + 'type' => 'betterdocs-range-value',
7066 + 'section' => 'betterdocs_single_docs_settings',
7067 + 'settings' => 'betterdocs_single_doc_navigation_font_size_layout_8_9',
7068 + 'label' => __( 'Navigation Font Size', 'betterdocs' ),
7069 + 'priority' => 178,
7070 + 'input_attrs' => [
7071 + 'class' => '',
7072 + 'min' => 0,
7073 + 'max' => 50,
7074 + 'step' => 1,
7075 + 'suffix' => 'px' //optional suffix
7076 + ]
7077 + ]
7078 + )
7079 + );
7080 + }
7081 +
7082 + public function single_doc_navigation_hover_color_layout_8_9() {
7083 + $this->customizer->add_setting(
7084 + 'betterdocs_single_doc_navigation_hover_color_layout_8_9',
7085 + [
7086 + 'default' => $this->defaults['betterdocs_single_doc_navigation_hover_color_layout_8_9'],
7087 + 'capability' => 'edit_theme_options',
7088 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7089 + ]
7090 + );
7091 +
7092 + $this->customizer->add_control(
7093 + new AlphaColorControl(
7094 + $this->customizer,
7095 + 'betterdocs_single_doc_navigation_hover_color_layout_8_9',
7096 + [
7097 + 'label' => __( 'Navigation Hover Color', 'betterdocs' ),
7098 + 'priority' => 179,
7099 + 'section' => 'betterdocs_single_docs_settings',
7100 + 'settings' => 'betterdocs_single_doc_navigation_hover_color_layout_8_9'
7101 + ]
7102 + )
7103 + );
7104 + }
7105 +
7106 + public function single_doc_navigation_arrow_color_layout_8_9() {
7107 + $this->customizer->add_setting(
7108 + 'betterdocs_single_doc_navigation_arrow_color_layout_8_9',
7109 + [
7110 + 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_color_layout_8_9'],
7111 + 'capability' => 'edit_theme_options',
7112 + 'transport' => 'postMessage',
7113 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7114 + ]
7115 + );
7116 +
7117 + $this->customizer->add_control(
7118 + new AlphaColorControl(
7119 + $this->customizer,
7120 + 'betterdocs_single_doc_navigation_arrow_color_layout_8_9',
7121 + [
7122 + 'label' => __( 'Navigation Arrow Color', 'betterdocs' ),
7123 + 'priority' => 180,
7124 + 'section' => 'betterdocs_single_docs_settings',
7125 + 'settings' => 'betterdocs_single_doc_navigation_arrow_color_layout_8_9'
7126 + ]
7127 + )
7128 + );
7129 + }
7130 +
7131 + public function single_doc_navigation_arrow_font_size_layout_8_9() {
7132 + $this->customizer->add_setting(
7133 + 'betterdocs_single_doc_navigation_arrow_font_size_layout_8_9',
7134 + [
7135 + 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_font_size_layout_8_9'],
7136 + 'capability' => 'edit_theme_options',
7137 + 'transport' => 'postMessage',
7138 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7139 +
7140 + ]
7141 + );
7142 +
7143 + $this->customizer->add_control(
7144 + new RangeValueControl(
7145 + $this->customizer,
7146 + 'betterdocs_single_doc_navigation_arrow_font_size_layout_8_9',
7147 + [
7148 + 'type' => 'betterdocs-range-value',
7149 + 'section' => 'betterdocs_single_docs_settings',
7150 + 'settings' => 'betterdocs_single_doc_navigation_arrow_font_size_layout_8_9',
7151 + 'label' => __( 'Navigation Arrow Font Size', 'betterdocs' ),
7152 + 'priority' => 181,
7153 + 'input_attrs' => [
7154 + 'class' => '',
7155 + 'min' => 0,
7156 + 'max' => 50,
7157 + 'step' => 1,
7158 + 'suffix' => 'px' //optional suffix
7159 + ]
7160 + ]
7161 + )
7162 + );
7163 + }
7164 +
7165 + public function betterdocs_single_doc_lu_time_color() {
7166 + $this->customizer->add_setting(
7167 + 'betterdocs_single_doc_lu_time_color',
7168 + [
7169 + 'default' => $this->defaults['betterdocs_single_doc_lu_time_color'],
7170 + 'capability' => 'edit_theme_options',
7171 + 'transport' => 'postMessage',
7172 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7173 + ]
7174 + );
7175 +
7176 + $this->customizer->add_control(
7177 + new AlphaColorControl(
7178 + $this->customizer,
7179 + 'betterdocs_single_doc_lu_time_color',
7180 + [
7181 + 'label' => __( 'Last Updated Time Color', 'betterdocs' ),
7182 + 'priority' => 182,
7183 + 'section' => 'betterdocs_single_docs_settings',
7184 + 'settings' => 'betterdocs_single_doc_lu_time_color'
7185 + ]
7186 + )
7187 + );
7188 + }
7189 +
7190 + public function single_doc_lu_time_font_size() {
7191 + $this->customizer->add_setting(
7192 + 'betterdocs_single_doc_lu_time_font_size',
7193 + [
7194 + 'default' => $this->defaults['betterdocs_single_doc_lu_time_font_size'],
7195 + 'capability' => 'edit_theme_options',
7196 + 'transport' => 'postMessage',
7197 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7198 +
7199 + ]
7200 + );
7201 +
7202 + $this->customizer->add_control(
7203 + new RangeValueControl(
7204 + $this->customizer,
7205 + 'betterdocs_single_doc_lu_time_font_size',
7206 + [
7207 + 'type' => 'betterdocs-range-value',
7208 + 'section' => 'betterdocs_single_docs_settings',
7209 + 'settings' => 'betterdocs_single_doc_lu_time_font_size',
7210 + 'label' => __( 'Last Updated Time Font Size', 'betterdocs' ),
7211 + 'priority' => 183,
7212 + 'input_attrs' => [
7213 + 'class' => '',
7214 + 'min' => 0,
7215 + 'max' => 50,
7216 + 'step' => 1,
7217 + 'suffix' => 'px' //optional suffix
7218 + ]
7219 + ]
7220 + )
7221 + );
7222 + }
7223 +
7224 +
7225 +
7226 + public function single_doc_powered_by_color() {
7227 + $this->customizer->add_setting(
7228 + 'betterdocs_single_doc_powered_by_color',
7229 + [
7230 + 'default' => $this->defaults['betterdocs_single_doc_powered_by_color'],
7231 + 'capability' => 'edit_theme_options',
7232 + 'transport' => 'postMessage',
7233 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7234 + ]
7235 + );
7236 +
7237 + $this->customizer->add_control(
7238 + new AlphaColorControl(
7239 + $this->customizer,
7240 + 'betterdocs_single_doc_powered_by_color',
7241 + [
7242 + 'label' => __( 'Powered by Color', 'betterdocs' ),
7243 + 'priority' => 184,
7244 + 'section' => 'betterdocs_single_docs_settings',
7245 + 'settings' => 'betterdocs_single_doc_powered_by_color'
7246 + ]
7247 + )
7248 + );
7249 + }
7250 +
7251 + public function single_doc_powered_by_font_size() {
7252 + $this->customizer->add_setting(
7253 + 'betterdocs_single_doc_powered_by_font_size',
7254 + [
7255 + 'default' => $this->defaults['betterdocs_single_doc_powered_by_font_size'],
7256 + 'capability' => 'edit_theme_options',
7257 + 'transport' => 'postMessage',
7258 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7259 +
7260 + ]
7261 + );
7262 +
7263 + $this->customizer->add_control(
7264 + new RangeValueControl(
7265 + $this->customizer,
7266 + 'betterdocs_single_doc_powered_by_font_size',
7267 + [
7268 + 'type' => 'betterdocs-range-value',
7269 + 'section' => 'betterdocs_single_docs_settings',
7270 + 'settings' => 'betterdocs_single_doc_powered_by_font_size',
7271 + 'label' => __( 'Powered By Font Size', 'betterdocs' ),
7272 + 'priority' => 185,
7273 + 'input_attrs' => [
7274 + 'class' => '',
7275 + 'min' => 0,
7276 + 'max' => 50,
7277 + 'step' => 1,
7278 + 'suffix' => 'px' //optional suffix
7279 + ]
7280 + ]
7281 + )
7282 + );
7283 + }
7284 +
7285 + public function single_doc_powered_by_link_color() {
7286 + $this->customizer->add_setting(
7287 + 'betterdocs_single_doc_powered_by_link_color',
7288 + [
7289 + 'default' => $this->defaults['betterdocs_single_doc_powered_by_link_color'],
7290 + 'capability' => 'edit_theme_options',
7291 + 'transport' => 'postMessage',
7292 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7293 + ]
7294 + );
7295 +
7296 + $this->customizer->add_control(
7297 + new AlphaColorControl(
7298 + $this->customizer,
7299 + 'betterdocs_single_doc_powered_by_link_color',
7300 + [
7301 + 'label' => __( 'Powered By Link Color', 'betterdocs' ),
7302 + 'priority' => 186,
7303 + 'section' => 'betterdocs_single_docs_settings',
7304 + 'settings' => 'betterdocs_single_doc_powered_by_link_color'
7305 + ]
7306 + )
7307 + );
7308 + }
7309 +
7310 + public function reactions_title() {
7311 + $this->customizer->add_setting(
7312 + 'betterdocs_reactions_title',
7313 + [
7314 + 'default' => '',
7315 + 'sanitize_callback' => 'esc_html'
7316 + ]
7317 + );
7318 +
7319 + $this->customizer->add_control(
7320 + new SeparatorControl(
7321 + $this->customizer,
7322 + 'betterdocs_reactions_title',
7323 + [
7324 + 'label' => __( 'Reactions', 'betterdocs' ),
7325 + 'priority' => 159,
7326 + 'settings' => 'betterdocs_reactions_title',
7327 + 'section' => 'betterdocs_single_docs_settings'
7328 + ]
7329 + )
7330 + );
7331 + }
7332 +
7333 + public function reactions_title_tag() {
7334 + $this->customizer->add_setting(
7335 + 'betterdocs_reactions_title_tag',
7336 + [
7337 + 'default' => $this->defaults['betterdocs_reactions_title_tag'],
7338 + 'capability' => 'edit_theme_options',
7339 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
7340 + ]
7341 + );
7342 +
7343 + $this->customizer->add_control(
7344 + new WP_Customize_Control(
7345 + $this->customizer,
7346 + 'betterdocs_reactions_title_tag',
7347 + [
7348 + 'label' => __( 'Reactions Title Tag', 'betterdocs' ),
7349 + 'section' => 'betterdocs_single_docs_settings',
7350 + 'settings' => 'betterdocs_reactions_title_tag',
7351 + 'type' => 'select',
7352 + 'choices' => [
7353 + 'h1' => 'h1',
7354 + 'h2' => 'h2',
7355 + 'h3' => 'h3',
7356 + 'h4' => 'h4',
7357 + 'h5' => 'h5',
7358 + 'h6' => 'h6'
7359 + ],
7360 + 'priority' => 160
7361 + ]
7362 + )
7363 + );
7364 + }
7365 +
7366 + public function post_reactions() {
7367 + $this->customizer->add_setting(
7368 + 'betterdocs_post_reactions',
7369 + [
7370 + 'default' => $this->defaults['betterdocs_post_reactions'],
7371 + 'capability' => 'edit_theme_options',
7372 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
7373 + ]
7374 + );
7375 +
7376 + $this->customizer->add_control(
7377 + new ToggleControl(
7378 + $this->customizer,
7379 + 'betterdocs_post_reactions',
7380 + [
7381 + 'label' => __( 'Enable Reactions?', 'betterdocs' ),
7382 + 'priority' => 160,
7383 + 'section' => 'betterdocs_single_docs_settings',
7384 + 'settings' => 'betterdocs_post_reactions',
7385 + 'type' => 'light' // light, ios, flat
7386 + ]
7387 + )
7388 + );
7389 + }
7390 +
7391 + public function post_reactions_happy() {
7392 + $this->customizer->add_setting(
7393 + 'betterdocs_post_reactions_happy',
7394 + [
7395 + 'default' => $this->defaults['betterdocs_post_reactions_happy'],
7396 + 'capability' => 'edit_theme_options',
7397 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
7398 + ]
7399 + );
7400 +
7401 + $this->customizer->add_control(
7402 + new ToggleControl(
7403 + $this->customizer,
7404 + 'betterdocs_post_reactions_happy',
7405 + [
7406 + 'label' => __( 'Enable Happy?', 'betterdocs' ),
7407 + 'priority' => 160,
7408 + 'section' => 'betterdocs_single_docs_settings',
7409 + 'settings' => 'betterdocs_post_reactions_happy',
7410 + 'type' => 'light' // light, ios, flat
7411 + ]
7412 + )
7413 + );
7414 + }
7415 +
7416 + public function post_reactions_happy_icon() {
7417 + $this->customizer->add_setting(
7418 + 'betterdocs_post_reactions_happy_icon',
7419 + [
7420 + 'default' => $this->defaults['betterdocs_post_reactions_happy_icon'],
7421 + 'capability' => 'edit_theme_options'
7422 +
7423 + ]
7424 + );
7425 +
7426 + $this->customizer->add_control(
7427 + new WP_Customize_Image_Control(
7428 + $this->customizer,
7429 + 'betterdocs_post_reactions_happy_icon',
7430 + [
7431 + 'section' => 'betterdocs_single_docs_settings',
7432 + 'settings' => 'betterdocs_post_reactions_happy_icon',
7433 + 'label' => __( 'Happy Icon', 'betterdocs' ),
7434 + 'priority' => 160
7435 + ]
7436 + )
7437 + );
7438 + }
7439 +
7440 + public function post_reactions_normal() {
7441 + $this->customizer->add_setting(
7442 + 'betterdocs_post_reactions_normal',
7443 + [
7444 + 'default' => $this->defaults['betterdocs_post_reactions_normal'],
7445 + 'capability' => 'edit_theme_options',
7446 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
7447 + ]
7448 + );
7449 +
7450 + $this->customizer->add_control(
7451 + new ToggleControl(
7452 + $this->customizer,
7453 + 'betterdocs_post_reactions_normal',
7454 + [
7455 + 'label' => __( 'Enable Normal?', 'betterdocs' ),
7456 + 'priority' => 160,
7457 + 'section' => 'betterdocs_single_docs_settings',
7458 + 'settings' => 'betterdocs_post_reactions_normal',
7459 + 'type' => 'light' // light, ios, flat
7460 + ]
7461 + )
7462 + );
7463 + }
7464 +
7465 + public function post_reactions_normal_icon() {
7466 + $this->customizer->add_setting(
7467 + 'betterdocs_post_reactions_normal_icon',
7468 + [
7469 + 'default' => $this->defaults['betterdocs_post_reactions_normal_icon'],
7470 + 'capability' => 'edit_theme_options'
7471 +
7472 + ]
7473 + );
7474 +
7475 + $this->customizer->add_control(
7476 + new WP_Customize_Image_Control(
7477 + $this->customizer,
7478 + 'betterdocs_post_reactions_normal_icon',
7479 + [
7480 + 'section' => 'betterdocs_single_docs_settings',
7481 + 'settings' => 'betterdocs_post_reactions_normal_icon',
7482 + 'label' => __( 'Normal Icon', 'betterdocs' ),
7483 + 'priority' => 160
7484 + ]
7485 + )
7486 + );
7487 + }
7488 +
7489 + public function post_reactions_sad() {
7490 + $this->customizer->add_setting(
7491 + 'betterdocs_post_reactions_sad',
7492 + [
7493 + 'default' => $this->defaults['betterdocs_post_reactions_sad'],
7494 + 'capability' => 'edit_theme_options',
7495 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
7496 + ]
7497 + );
7498 +
7499 + $this->customizer->add_control(
7500 + new ToggleControl(
7501 + $this->customizer,
7502 + 'betterdocs_post_reactions_sad',
7503 + [
7504 + 'label' => __( 'Enable Sad?', 'betterdocs' ),
7505 + 'priority' => 160,
7506 + 'section' => 'betterdocs_single_docs_settings',
7507 + 'settings' => 'betterdocs_post_reactions_sad',
7508 + 'type' => 'light' // light, ios, flat
7509 + ]
7510 + )
7511 + );
7512 + }
7513 +
7514 + public function post_reactions_sad_icon() {
7515 + $this->customizer->add_setting(
7516 + 'betterdocs_post_reactions_sad_icon',
7517 + [
7518 + 'default' => $this->defaults['betterdocs_post_reactions_sad_icon'],
7519 + 'capability' => 'edit_theme_options'
7520 +
7521 + ]
7522 + );
7523 +
7524 + $this->customizer->add_control(
7525 + new WP_Customize_Image_Control(
7526 + $this->customizer,
7527 + 'betterdocs_post_reactions_sad_icon',
7528 + [
7529 + 'section' => 'betterdocs_single_docs_settings',
7530 + 'settings' => 'betterdocs_post_reactions_sad_icon',
7531 + 'label' => __( 'Sad Icon', 'betterdocs' ),
7532 + 'priority' => 160
7533 + ]
7534 + )
7535 + );
7536 + }
7537 +
7538 + public function post_reactions_text() {
7539 + $this->customizer->add_setting(
7540 + 'betterdocs_post_reactions_text',
7541 + [
7542 + 'default' => $this->defaults['betterdocs_post_reactions_text'],
7543 + 'capability' => 'edit_theme_options',
7544 + 'sanitize_callback' => 'esc_html'
7545 + ]
7546 + );
7547 +
7548 + $this->customizer->add_control(
7549 + new SelectControl(
7550 + $this->customizer,
7551 + 'betterdocs_post_reactions_text',
7552 + [
7553 + 'label' => __( 'Reactions Title', 'betterdocs' ),
7554 + 'priority' => 161,
7555 + 'section' => 'betterdocs_single_docs_settings',
7556 + 'settings' => 'betterdocs_post_reactions_text',
7557 + 'type' => 'text'
7558 + ]
7559 + )
7560 + );
7561 + }
7562 +
7563 + public function post_reactions_text_2() {
7564 + $this->customizer->add_setting(
7565 + 'betterdocs_post_reactions_text_2',
7566 + [
7567 + 'default' => $this->defaults['betterdocs_post_reactions_text_2'],
7568 + 'capability' => 'edit_theme_options',
7569 + 'sanitize_callback' => 'esc_html'
7570 + ]
7571 + );
7572 +
7573 + $this->customizer->add_control(
7574 + new SelectControl(
7575 + $this->customizer,
7576 + 'betterdocs_post_reactions_text_2',
7577 + [
7578 + 'label' => __( 'Reactions Title', 'betterdocs' ),
7579 + 'priority' => 161,
7580 + 'section' => 'betterdocs_single_docs_settings',
7581 + 'settings' => 'betterdocs_post_reactions_text_2',
7582 + 'type' => 'text'
7583 + ]
7584 + )
7585 + );
7586 + }
7587 +
7588 + public function reactions_background_color() {
7589 + $this->customizer->add_setting(
7590 + 'reactions_background_color',
7591 + [
7592 + 'default' => $this->defaults['reactions_background_color'],
7593 + 'capability' => 'edit_theme_options',
7594 + 'transport' => 'postMessage',
7595 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7596 + ]
7597 + );
7598 +
7599 + $this->customizer->add_control(
7600 + new AlphaColorControl(
7601 + $this->customizer,
7602 + 'reactions_background_color',
7603 + [
7604 + 'label' => __( 'Reactions Background Color', 'betterdocs' ),
7605 + 'priority' => 162,
7606 + 'section' => 'betterdocs_single_docs_settings',
7607 + 'settings' => 'reactions_background_color'
7608 + ]
7609 + )
7610 + );
7611 + }
7612 +
7613 + public function post_reactions_text_color() {
7614 + $this->customizer->add_setting(
7615 + 'betterdocs_post_reactions_text_color',
7616 + [
7617 + 'default' => $this->defaults['betterdocs_post_reactions_text_color'],
7618 + 'capability' => 'edit_theme_options',
7619 + 'transport' => 'postMessage',
7620 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7621 + ]
7622 + );
7623 +
7624 + $this->customizer->add_control(
7625 + new AlphaColorControl(
7626 + $this->customizer,
7627 + 'betterdocs_post_reactions_text_color',
7628 + [
7629 + 'label' => __( 'Reactions Text Color', 'betterdocs' ),
7630 + 'priority' => 162,
7631 + 'section' => 'betterdocs_single_docs_settings',
7632 + 'settings' => 'betterdocs_post_reactions_text_color'
7633 + ]
7634 + )
7635 + );
7636 + }
7637 +
7638 + public function post_reactions_icon_color() {
7639 + $this->customizer->add_setting(
7640 + 'betterdocs_post_reactions_icon_color',
7641 + [
7642 + 'default' => $this->defaults['betterdocs_post_reactions_icon_color'],
7643 + 'capability' => 'edit_theme_options',
7644 + 'transport' => 'postMessage',
7645 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7646 + ]
7647 + );
7648 +
7649 + $this->customizer->add_control(
7650 + new AlphaColorControl(
7651 + $this->customizer,
7652 + 'betterdocs_post_reactions_icon_color',
7653 + [
7654 + 'label' => __( 'Reactions Icon Background Color', 'betterdocs' ),
7655 + 'priority' => 163,
7656 + 'section' => 'betterdocs_single_docs_settings',
7657 + 'settings' => 'betterdocs_post_reactions_icon_color'
7658 + ]
7659 + )
7660 + );
7661 + }
7662 +
7663 + public function post_reactions_icon_svg_color() {
7664 + $this->customizer->add_setting(
7665 + 'betterdocs_post_reactions_icon_svg_color',
7666 + [
7667 + 'default' => $this->defaults['betterdocs_post_reactions_icon_svg_color'],
7668 + 'capability' => 'edit_theme_options',
7669 + 'transport' => 'postMessage',
7670 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7671 + ]
7672 + );
7673 +
7674 + $this->customizer->add_control(
7675 + new AlphaColorControl(
7676 + $this->customizer,
7677 + 'betterdocs_post_reactions_icon_svg_color',
7678 + [
7679 + 'label' => __( 'Reactions Icon Color', 'betterdocs' ),
7680 + 'priority' => 163,
7681 + 'section' => 'betterdocs_single_docs_settings',
7682 + 'settings' => 'betterdocs_post_reactions_icon_svg_color'
7683 + ]
7684 + )
7685 + );
7686 + }
7687 +
7688 + public function post_reactions_icon_hover_bg_color() {
7689 + $this->customizer->add_setting(
7690 + 'betterdocs_post_reactions_icon_hover_bg_color',
7691 + [
7692 + 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_bg_color'],
7693 + 'capability' => 'edit_theme_options',
7694 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7695 + ]
7696 + );
7697 +
7698 + $this->customizer->add_control(
7699 + new AlphaColorControl(
7700 + $this->customizer,
7701 + 'betterdocs_post_reactions_icon_hover_bg_color',
7702 + [
7703 + 'label' => __( 'Reactions Icon Hover Background Color', 'betterdocs' ),
7704 + 'priority' => 163,
7705 + 'section' => 'betterdocs_single_docs_settings',
7706 + 'settings' => 'betterdocs_post_reactions_icon_hover_bg_color'
7707 + ]
7708 + )
7709 + );
7710 + }
7711 +
7712 + public function post_reactions_icon_hover_svg_color() {
7713 + $this->customizer->add_setting(
7714 + 'betterdocs_post_reactions_icon_hover_svg_color',
7715 + [
7716 + 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_svg_color'],
7717 + 'capability' => 'edit_theme_options',
7718 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7719 + ]
7720 + );
7721 +
7722 + $this->customizer->add_control(
7723 + new AlphaColorControl(
7724 + $this->customizer,
7725 + 'betterdocs_post_reactions_icon_hover_svg_color',
7726 + [
7727 + 'label' => __( 'Reactions Icon Hover Color', 'betterdocs' ),
7728 + 'priority' => 163,
7729 + 'section' => 'betterdocs_single_docs_settings',
7730 + 'settings' => 'betterdocs_post_reactions_icon_hover_svg_color'
7731 + ]
7732 + )
7733 + );
7734 + }
7735 +
7736 + public function reactions_background_color_layout_8() {
7737 + $this->customizer->add_setting(
7738 + 'reactions_background_color_layout_8',
7739 + [
7740 + 'default' => $this->defaults['reactions_background_color_layout_8'],
7741 + 'capability' => 'edit_theme_options',
7742 + 'transport' => 'postMessage',
7743 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7744 + ]
7745 + );
7746 +
7747 + $this->customizer->add_control(
7748 + new AlphaColorControl(
7749 + $this->customizer,
7750 + 'reactions_background_color_layout_8',
7751 + [
7752 + 'label' => __( 'Reactions Background Color', 'betterdocs' ),
7753 + 'priority' => 162,
7754 + 'section' => 'betterdocs_single_docs_settings',
7755 + 'settings' => 'reactions_background_color_layout_8'
7756 + ]
7757 + )
7758 + );
7759 + }
7760 +
7761 + public function reactions_background_color_layout_9() {
7762 + $this->customizer->add_setting(
7763 + 'reactions_background_color_layout_9',
7764 + [
7765 + 'default' => $this->defaults['reactions_background_color_layout_9'],
7766 + 'capability' => 'edit_theme_options',
7767 + 'transport' => 'postMessage',
7768 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7769 + ]
7770 + );
7771 +
7772 + $this->customizer->add_control(
7773 + new AlphaColorControl(
7774 + $this->customizer,
7775 + 'reactions_background_color_layout_9',
7776 + [
7777 + 'label' => __( 'Reactions Background Color', 'betterdocs' ),
7778 + 'priority' => 162,
7779 + 'section' => 'betterdocs_single_docs_settings',
7780 + 'settings' => 'reactions_background_color_layout_9'
7781 + ]
7782 + )
7783 + );
7784 + }
7785 +
7786 + public function post_reactions_text_color_layout_8_9() {
7787 + $this->customizer->add_setting(
7788 + 'betterdocs_post_reactions_text_color_layout_8_9',
7789 + [
7790 + 'default' => $this->defaults['betterdocs_post_reactions_text_color_layout_8_9'],
7791 + 'capability' => 'edit_theme_options',
7792 + 'transport' => 'postMessage',
7793 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7794 + ]
7795 + );
7796 +
7797 + $this->customizer->add_control(
7798 + new AlphaColorControl(
7799 + $this->customizer,
7800 + 'betterdocs_post_reactions_text_color_layout_8_9',
7801 + [
7802 + 'label' => __( 'Reactions Text Color', 'betterdocs' ),
7803 + 'priority' => 162,
7804 + 'section' => 'betterdocs_single_docs_settings',
7805 + 'settings' => 'betterdocs_post_reactions_text_color_layout_8_9'
7806 + ]
7807 + )
7808 + );
7809 + }
7810 +
7811 + public function post_reactions_icon_color_layout_8_9() {
7812 + $this->customizer->add_setting(
7813 + 'betterdocs_post_reactions_icon_color_layout_8_9',
7814 + [
7815 + 'default' => $this->defaults['betterdocs_post_reactions_icon_color_layout_8_9'],
7816 + 'capability' => 'edit_theme_options',
7817 + 'transport' => 'postMessage',
7818 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7819 + ]
7820 + );
7821 +
7822 + $this->customizer->add_control(
7823 + new AlphaColorControl(
7824 + $this->customizer,
7825 + 'betterdocs_post_reactions_icon_color_layout_8_9',
7826 + [
7827 + 'label' => __( 'Reactions Icon Background Color', 'betterdocs' ),
7828 + 'priority' => 163,
7829 + 'section' => 'betterdocs_single_docs_settings',
7830 + 'settings' => 'betterdocs_post_reactions_icon_color_layout_8_9'
7831 + ]
7832 + )
7833 + );
7834 + }
7835 +
7836 + public function post_reactions_margin_layout_8() {
7837 + $this->customizer->add_setting(
7838 + 'post_reactions_margin_layout_8',
7839 + [
7840 + 'default' => $this->defaults['post_reactions_margin_layout_8'],
7841 + 'capability' => 'edit_theme_options',
7842 + 'transport' => 'postMessage',
7843 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7844 + ]
7845 + );
7846 +
7847 + $this->customizer->add_control(
7848 + new TitleControl(
7849 + $this->customizer,
7850 + 'post_reactions_margin_layout_8',
7851 + [
7852 + 'type' => 'betterdocs-title',
7853 + 'section' => 'betterdocs_single_docs_settings',
7854 + 'settings' => 'post_reactions_margin_layout_8',
7855 + 'label' => __( 'Margin', 'betterdocs' ),
7856 + 'priority' => 163,
7857 + 'input_attrs' => [
7858 + 'id' => 'post_reactions_margin_layout_8',
7859 + 'class' => 'betterdocs-dimension'
7860 + ]
7861 + ]
7862 + )
7863 + );
7864 +
7865 + $this->customizer->add_setting(
7866 + 'post_reactions_margin_top_layout_8',
7867 + [
7868 + 'default' => $this->defaults['post_reactions_margin_top_layout_8'],
7869 + 'capability' => 'edit_theme_options',
7870 + 'transport' => 'postMessage',
7871 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7872 + ]
7873 + );
7874 +
7875 + $this->customizer->add_control(
7876 + new DimensionControl(
7877 + $this->customizer,
7878 + 'post_reactions_margin_top_layout_8',
7879 + [
7880 + 'type' => 'betterdocs-dimension',
7881 + 'section' => 'betterdocs_single_docs_settings',
7882 + 'settings' => 'post_reactions_margin_top_layout_8',
7883 + 'label' => __( 'Top', 'betterdocs' ),
7884 + 'priority' => 163,
7885 + 'input_attrs' => [
7886 + 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
7887 + ]
7888 + ]
7889 + )
7890 + );
7891 +
7892 + $this->customizer->add_setting(
7893 + 'post_reactions_margin_right_layout_8',
7894 + [
7895 + 'default' => $this->defaults['post_reactions_margin_right_layout_8'],
7896 + 'capability' => 'edit_theme_options',
7897 + 'transport' => 'postMessage',
7898 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7899 + ]
7900 + );
7901 +
7902 + $this->customizer->add_control(
7903 + new DimensionControl(
7904 + $this->customizer,
7905 + 'post_reactions_margin_right_layout_8',
7906 + [
7907 + 'type' => 'betterdocs-dimension',
7908 + 'section' => 'betterdocs_single_docs_settings',
7909 + 'settings' => 'post_reactions_margin_right_layout_8',
7910 + 'label' => __( 'Right', 'betterdocs' ),
7911 + 'priority' => 163,
7912 + 'input_attrs' => [
7913 + 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
7914 + ]
7915 + ]
7916 + )
7917 + );
7918 +
7919 + $this->customizer->add_setting(
7920 + 'post_reactions_margin_bottom_layout_8',
7921 + [
7922 + 'default' => $this->defaults['post_reactions_margin_bottom_layout_8'],
7923 + 'capability' => 'edit_theme_options',
7924 + 'transport' => 'postMessage',
7925 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7926 + ]
7927 + );
7928 +
7929 + $this->customizer->add_control(
7930 + new DimensionControl(
7931 + $this->customizer,
7932 + 'post_reactions_margin_bottom_layout_8',
7933 + [
7934 + 'type' => 'betterdocs-dimension',
7935 + 'section' => 'betterdocs_single_docs_settings',
7936 + 'settings' => 'post_reactions_margin_bottom_layout_8',
7937 + 'label' => __( 'Bottom', 'betterdocs' ),
7938 + 'priority' => 163,
7939 + 'input_attrs' => [
7940 + 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
7941 + ]
7942 + ]
7943 + )
7944 + );
7945 +
7946 + $this->customizer->add_setting(
7947 + 'post_reactions_margin_left_layout_8',
7948 + [
7949 + 'default' => $this->defaults['post_reactions_margin_left_layout_8'],
7950 + 'capability' => 'edit_theme_options',
7951 + 'transport' => 'postMessage',
7952 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7953 + ]
7954 + );
7955 +
7956 + $this->customizer->add_control(
7957 + new DimensionControl(
7958 + $this->customizer,
7959 + 'post_reactions_margin_left_layout_8',
7960 + [
7961 + 'type' => 'betterdocs-dimension',
7962 + 'section' => 'betterdocs_single_docs_settings',
7963 + 'settings' => 'post_reactions_margin_left_layout_8',
7964 + 'label' => __( 'Left', 'betterdocs' ),
7965 + 'priority' => 163,
7966 + 'input_attrs' => [
7967 + 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
7968 + ]
7969 + ]
7970 + )
7971 + );
7972 + }
7973 +
7974 + public function post_reactions_margin_layout_9() {
7975 + $this->customizer->add_setting(
7976 + 'post_reactions_margin_layout_9',
7977 + [
7978 + 'default' => $this->defaults['post_reactions_margin_layout_9'],
7979 + 'capability' => 'edit_theme_options',
7980 + 'transport' => 'postMessage',
7981 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7982 + ]
7983 + );
7984 +
7985 + $this->customizer->add_control(
7986 + new TitleControl(
7987 + $this->customizer,
7988 + 'post_reactions_margin_layout_9',
7989 + [
7990 + 'type' => 'betterdocs-title',
7991 + 'section' => 'betterdocs_single_docs_settings',
7992 + 'settings' => 'post_reactions_margin_layout_9',
7993 + 'label' => __( 'Margin', 'betterdocs' ),
7994 + 'priority' => 163,
7995 + 'input_attrs' => [
7996 + 'id' => 'post_reactions_margin_layout_9',
7997 + 'class' => 'betterdocs-dimension'
7998 + ]
7999 + ]
8000 + )
8001 + );
8002 +
8003 + $this->customizer->add_setting(
8004 + 'post_reactions_margin_top_layout_9',
8005 + [
8006 + 'default' => $this->defaults['post_reactions_margin_top_layout_9'],
8007 + 'capability' => 'edit_theme_options',
8008 + 'transport' => 'postMessage',
8009 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8010 + ]
8011 + );
8012 +
8013 + $this->customizer->add_control(
8014 + new DimensionControl(
8015 + $this->customizer,
8016 + 'post_reactions_margin_top_layout_9',
8017 + [
8018 + 'type' => 'betterdocs-dimension',
8019 + 'section' => 'betterdocs_single_docs_settings',
8020 + 'settings' => 'post_reactions_margin_top_layout_9',
8021 + 'label' => __( 'Top', 'betterdocs' ),
8022 + 'priority' => 163,
8023 + 'input_attrs' => [
8024 + 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
8025 + ]
8026 + ]
8027 + )
8028 + );
8029 +
8030 + $this->customizer->add_setting(
8031 + 'post_reactions_margin_right_layout_9',
8032 + [
8033 + 'default' => $this->defaults['post_reactions_margin_right_layout_9'],
8034 + 'capability' => 'edit_theme_options',
8035 + 'transport' => 'postMessage',
8036 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8037 + ]
8038 + );
8039 +
8040 + $this->customizer->add_control(
8041 + new DimensionControl(
8042 + $this->customizer,
8043 + 'post_reactions_margin_right_layout_9',
8044 + [
8045 + 'type' => 'betterdocs-dimension',
8046 + 'section' => 'betterdocs_single_docs_settings',
8047 + 'settings' => 'post_reactions_margin_right_layout_9',
8048 + 'label' => __( 'Right', 'betterdocs' ),
8049 + 'priority' => 163,
8050 + 'input_attrs' => [
8051 + 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
8052 + ]
8053 + ]
8054 + )
8055 + );
8056 +
8057 + $this->customizer->add_setting(
8058 + 'post_reactions_margin_bottom_layout_9',
8059 + [
8060 + 'default' => $this->defaults['post_reactions_margin_bottom_layout_9'],
8061 + 'capability' => 'edit_theme_options',
8062 + 'transport' => 'postMessage',
8063 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8064 + ]
8065 + );
8066 +
8067 + $this->customizer->add_control(
8068 + new DimensionControl(
8069 + $this->customizer,
8070 + 'post_reactions_margin_bottom_layout_9',
8071 + [
8072 + 'type' => 'betterdocs-dimension',
8073 + 'section' => 'betterdocs_single_docs_settings',
8074 + 'settings' => 'post_reactions_margin_bottom_layout_9',
8075 + 'label' => __( 'Bottom', 'betterdocs' ),
8076 + 'priority' => 163,
8077 + 'input_attrs' => [
8078 + 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
8079 + ]
8080 + ]
8081 + )
8082 + );
8083 +
8084 + $this->customizer->add_setting(
8085 + 'post_reactions_margin_left_layout_9',
8086 + [
8087 + 'default' => $this->defaults['post_reactions_margin_left_layout_9'],
8088 + 'capability' => 'edit_theme_options',
8089 + 'transport' => 'postMessage',
8090 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8091 + ]
8092 + );
8093 +
8094 + $this->customizer->add_control(
8095 + new DimensionControl(
8096 + $this->customizer,
8097 + 'post_reactions_margin_left_layout_9',
8098 + [
8099 + 'type' => 'betterdocs-dimension',
8100 + 'section' => 'betterdocs_single_docs_settings',
8101 + 'settings' => 'post_reactions_margin_left_layout_9',
8102 + 'label' => __( 'Left', 'betterdocs' ),
8103 + 'priority' => 163,
8104 + 'input_attrs' => [
8105 + 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
8106 + ]
8107 + ]
8108 + )
8109 + );
8110 + }
8111 +
8112 +
8113 + public function post_reactions_padding_layout_8() {
8114 + $this->customizer->add_setting(
8115 + 'post_reactions_padding_layout_8',
8116 + [
8117 + 'default' => $this->defaults['post_reactions_padding_layout_8'],
8118 + 'capability' => 'edit_theme_options',
8119 + 'transport' => 'postMessage',
8120 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8121 + ]
8122 + );
8123 +
8124 + $this->customizer->add_control(
8125 + new TitleControl(
8126 + $this->customizer,
8127 + 'post_reactions_padding_layout_8',
8128 + [
8129 + 'type' => 'betterdocs-title',
8130 + 'section' => 'betterdocs_single_docs_settings',
8131 + 'settings' => 'post_reactions_padding_layout_8',
8132 + 'label' => __( 'Padding', 'betterdocs' ),
8133 + 'priority' => 163,
8134 + 'input_attrs' => [
8135 + 'id' => 'post_reactions_padding_layout_8',
8136 + 'class' => 'betterdocs-dimension'
8137 + ]
8138 + ]
8139 + )
8140 + );
8141 +
8142 + $this->customizer->add_setting(
8143 + 'post_reactions_padding_top_layout_8',
8144 + [
8145 + 'default' => $this->defaults['post_reactions_padding_top_layout_8'],
8146 + 'capability' => 'edit_theme_options',
8147 + 'transport' => 'postMessage',
8148 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8149 + ]
8150 + );
8151 +
8152 + $this->customizer->add_control(
8153 + new DimensionControl(
8154 + $this->customizer,
8155 + 'post_reactions_padding_top_layout_8',
8156 + [
8157 + 'type' => 'betterdocs-dimension',
8158 + 'section' => 'betterdocs_single_docs_settings',
8159 + 'settings' => 'post_reactions_padding_top_layout_8',
8160 + 'label' => __( 'Top', 'betterdocs' ),
8161 + 'priority' => 163,
8162 + 'input_attrs' => [
8163 + 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
8164 + ]
8165 + ]
8166 + )
8167 + );
8168 +
8169 + $this->customizer->add_setting(
8170 + 'post_reactions_padding_right_layout_8',
8171 + [
8172 + 'default' => $this->defaults['post_reactions_padding_right_layout_8'],
8173 + 'capability' => 'edit_theme_options',
8174 + 'transport' => 'postMessage',
8175 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8176 + ]
8177 + );
8178 +
8179 + $this->customizer->add_control(
8180 + new DimensionControl(
8181 + $this->customizer,
8182 + 'post_reactions_padding_right_layout_8',
8183 + [
8184 + 'type' => 'betterdocs-dimension',
8185 + 'section' => 'betterdocs_single_docs_settings',
8186 + 'settings' => 'post_reactions_padding_right_layout_8',
8187 + 'label' => __( 'Right', 'betterdocs' ),
8188 + 'priority' => 163,
8189 + 'input_attrs' => [
8190 + 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
8191 + ]
8192 + ]
8193 + )
8194 + );
8195 +
8196 + $this->customizer->add_setting(
8197 + 'post_reactions_padding_bottom_layout_8',
8198 + [
8199 + 'default' => $this->defaults['post_reactions_padding_bottom_layout_8'],
8200 + 'capability' => 'edit_theme_options',
8201 + 'transport' => 'postMessage',
8202 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8203 + ]
8204 + );
8205 +
8206 + $this->customizer->add_control(
8207 + new DimensionControl(
8208 + $this->customizer,
8209 + 'post_reactions_padding_bottom_layout_8',
8210 + [
8211 + 'type' => 'betterdocs-dimension',
8212 + 'section' => 'betterdocs_single_docs_settings',
8213 + 'settings' => 'post_reactions_padding_bottom_layout_8',
8214 + 'label' => __( 'Bottom', 'betterdocs' ),
8215 + 'priority' => 163,
8216 + 'input_attrs' => [
8217 + 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
8218 + ]
8219 + ]
8220 + )
8221 + );
8222 +
8223 + $this->customizer->add_setting(
8224 + 'post_reactions_padding_left_layout_8',
8225 + [
8226 + 'default' => $this->defaults['post_reactions_padding_left_layout_8'],
8227 + 'capability' => 'edit_theme_options',
8228 + 'transport' => 'postMessage',
8229 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8230 + ]
8231 + );
8232 +
8233 + $this->customizer->add_control(
8234 + new DimensionControl(
8235 + $this->customizer,
8236 + 'post_reactions_padding_left_layout_8',
8237 + [
8238 + 'type' => 'betterdocs-dimension',
8239 + 'section' => 'betterdocs_single_docs_settings',
8240 + 'settings' => 'post_reactions_padding_left_layout_8',
8241 + 'label' => __( 'Left', 'betterdocs' ),
8242 + 'priority' => 163,
8243 + 'input_attrs' => [
8244 + 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
8245 + ]
8246 + ]
8247 + )
8248 + );
8249 + }
8250 +
8251 + public function post_reactions_padding_layout_9() {
8252 + $this->customizer->add_setting(
8253 + 'post_reactions_padding_layout_9',
8254 + [
8255 + 'default' => $this->defaults['post_reactions_padding_layout_9'],
8256 + 'capability' => 'edit_theme_options',
8257 + 'transport' => 'postMessage',
8258 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8259 + ]
8260 + );
8261 +
8262 + $this->customizer->add_control(
8263 + new TitleControl(
8264 + $this->customizer,
8265 + 'post_reactions_padding_layout_9',
8266 + [
8267 + 'type' => 'betterdocs-title',
8268 + 'section' => 'betterdocs_single_docs_settings',
8269 + 'settings' => 'post_reactions_padding_layout_9',
8270 + 'label' => __( 'Padding', 'betterdocs' ),
8271 + 'priority' => 163,
8272 + 'input_attrs' => [
8273 + 'id' => 'post_reactions_padding_layout_9',
8274 + 'class' => 'betterdocs-dimension'
8275 + ]
8276 + ]
8277 + )
8278 + );
8279 +
8280 + $this->customizer->add_setting(
8281 + 'post_reactions_padding_top_layout_9',
8282 + [
8283 + 'default' => $this->defaults['post_reactions_padding_top_layout_9'],
8284 + 'capability' => 'edit_theme_options',
8285 + 'transport' => 'postMessage',
8286 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8287 + ]
8288 + );
8289 +
8290 + $this->customizer->add_control(
8291 + new DimensionControl(
8292 + $this->customizer,
8293 + 'post_reactions_padding_top_layout_9',
8294 + [
8295 + 'type' => 'betterdocs-dimension',
8296 + 'section' => 'betterdocs_single_docs_settings',
8297 + 'settings' => 'post_reactions_padding_top_layout_9',
8298 + 'label' => __( 'Top', 'betterdocs' ),
8299 + 'priority' => 163,
8300 + 'input_attrs' => [
8301 + 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
8302 + ]
8303 + ]
8304 + )
8305 + );
8306 +
8307 + $this->customizer->add_setting(
8308 + 'post_reactions_padding_right_layout_9',
8309 + [
8310 + 'default' => $this->defaults['post_reactions_padding_right_layout_9'],
8311 + 'capability' => 'edit_theme_options',
8312 + 'transport' => 'postMessage',
8313 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8314 + ]
8315 + );
8316 +
8317 + $this->customizer->add_control(
8318 + new DimensionControl(
8319 + $this->customizer,
8320 + 'post_reactions_padding_right_layout_9',
8321 + [
8322 + 'type' => 'betterdocs-dimension',
8323 + 'section' => 'betterdocs_single_docs_settings',
8324 + 'settings' => 'post_reactions_padding_right_layout_9',
8325 + 'label' => __( 'Right', 'betterdocs' ),
8326 + 'priority' => 163,
8327 + 'input_attrs' => [
8328 + 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
8329 + ]
8330 + ]
8331 + )
8332 + );
8333 +
8334 + $this->customizer->add_setting(
8335 + 'post_reactions_padding_bottom_layout_9',
8336 + [
8337 + 'default' => $this->defaults['post_reactions_padding_bottom_layout_9'],
8338 + 'capability' => 'edit_theme_options',
8339 + 'transport' => 'postMessage',
8340 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8341 + ]
8342 + );
8343 +
8344 + $this->customizer->add_control(
8345 + new DimensionControl(
8346 + $this->customizer,
8347 + 'post_reactions_padding_bottom_layout_9',
8348 + [
8349 + 'type' => 'betterdocs-dimension',
8350 + 'section' => 'betterdocs_single_docs_settings',
8351 + 'settings' => 'post_reactions_padding_bottom_layout_8',
8352 + 'label' => __( 'Bottom', 'betterdocs' ),
8353 + 'priority' => 163,
8354 + 'input_attrs' => [
8355 + 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
8356 + ]
8357 + ]
8358 + )
8359 + );
8360 +
8361 + $this->customizer->add_setting(
8362 + 'post_reactions_padding_left_layout_9',
8363 + [
8364 + 'default' => $this->defaults['post_reactions_padding_left_layout_9'],
8365 + 'capability' => 'edit_theme_options',
8366 + 'transport' => 'postMessage',
8367 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8368 + ]
8369 + );
8370 +
8371 + $this->customizer->add_control(
8372 + new DimensionControl(
8373 + $this->customizer,
8374 + 'post_reactions_padding_left_layout_9',
8375 + [
8376 + 'type' => 'betterdocs-dimension',
8377 + 'section' => 'betterdocs_single_docs_settings',
8378 + 'settings' => 'post_reactions_padding_left_layout_8',
8379 + 'label' => __( 'Left', 'betterdocs' ),
8380 + 'priority' => 163,
8381 + 'input_attrs' => [
8382 + 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
8383 + ]
8384 + ]
8385 + )
8386 + );
8387 + }
8388 +
8389 + public function post_reactions_border_layout_8() {
8390 + $this->customizer->add_setting(
8391 + 'post_reactions_border_layout_8',
8392 + [
8393 + 'default' => $this->defaults['post_reactions_border_layout_8'],
8394 + 'capability' => 'edit_theme_options',
8395 + 'transport' => 'postMessage',
8396 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8397 + ]
8398 + );
8399 +
8400 + $this->customizer->add_control(
8401 + new TitleControl(
8402 + $this->customizer,
8403 + 'post_reactions_border_layout_8',
8404 + [
8405 + 'type' => 'betterdocs-title',
8406 + 'section' => 'betterdocs_single_docs_settings',
8407 + 'settings' => 'post_reactions_border_layout_8',
8408 + 'label' => __( 'Border', 'betterdocs' ),
8409 + 'priority' => 163,
8410 + 'input_attrs' => [
8411 + 'id' => 'post_reactions_border_layout_8',
8412 + 'class' => 'betterdocs-dimension'
8413 + ]
8414 + ]
8415 + )
8416 + );
8417 +
8418 + $this->customizer->add_setting(
8419 + 'post_reactions_border_top_layout_8',
8420 + [
8421 + 'default' => $this->defaults['post_reactions_border_top_layout_8'],
8422 + 'capability' => 'edit_theme_options',
8423 + 'transport' => 'postMessage',
8424 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8425 + ]
8426 + );
8427 +
8428 + $this->customizer->add_control(
8429 + new DimensionControl(
8430 + $this->customizer,
8431 + 'post_reactions_border_top_layout_8',
8432 + [
8433 + 'type' => 'betterdocs-dimension',
8434 + 'section' => 'betterdocs_single_docs_settings',
8435 + 'settings' => 'post_reactions_border_top_layout_8',
8436 + 'label' => __( 'Border Top', 'betterdocs' ),
8437 + 'priority' => 163,
8438 + 'input_attrs' => [
8439 + 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
8440 + ]
8441 + ]
8442 + )
8443 + );
8444 +
8445 + $this->customizer->add_setting(
8446 + 'post_reactions_border_right_layout_8',
8447 + [
8448 + 'default' => $this->defaults['post_reactions_border_right_layout_8'],
8449 + 'capability' => 'edit_theme_options',
8450 + 'transport' => 'postMessage',
8451 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8452 + ]
8453 + );
8454 +
8455 + $this->customizer->add_control(
8456 + new DimensionControl(
8457 + $this->customizer,
8458 + 'post_reactions_border_right_layout_8',
8459 + [
8460 + 'type' => 'betterdocs-dimension',
8461 + 'section' => 'betterdocs_single_docs_settings',
8462 + 'settings' => 'post_reactions_border_right_layout_8',
8463 + 'label' => __( 'Border Right', 'betterdocs' ),
8464 + 'priority' => 163,
8465 + 'input_attrs' => [
8466 + 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
8467 + ]
8468 + ]
8469 + )
8470 + );
8471 +
8472 + $this->customizer->add_setting(
8473 + 'post_reactions_border_bottom_layout_8',
8474 + [
8475 + 'default' => $this->defaults['post_reactions_border_bottom_layout_8'],
8476 + 'capability' => 'edit_theme_options',
8477 + 'transport' => 'postMessage',
8478 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8479 + ]
8480 + );
8481 +
8482 + $this->customizer->add_control(
8483 + new DimensionControl(
8484 + $this->customizer,
8485 + 'post_reactions_border_bottom_layout_8',
8486 + [
8487 + 'type' => 'betterdocs-dimension',
8488 + 'section' => 'betterdocs_single_docs_settings',
8489 + 'settings' => 'post_reactions_border_bottom_layout_8',
8490 + 'label' => __( 'Border Bottom', 'betterdocs' ),
8491 + 'priority' => 163,
8492 + 'input_attrs' => [
8493 + 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
8494 + ]
8495 + ]
8496 + )
8497 + );
8498 +
8499 + $this->customizer->add_setting(
8500 + 'post_reactions_border_left_layout_8',
8501 + [
8502 + 'default' => $this->defaults['post_reactions_border_left_layout_8'],
8503 + 'capability' => 'edit_theme_options',
8504 + 'transport' => 'postMessage',
8505 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8506 + ]
8507 + );
8508 +
8509 + $this->customizer->add_control(
8510 + new DimensionControl(
8511 + $this->customizer,
8512 + 'post_reactions_border_left_layout_8',
8513 + [
8514 + 'type' => 'betterdocs-dimension',
8515 + 'section' => 'betterdocs_single_docs_settings',
8516 + 'settings' => 'post_reactions_border_left_layout_8',
8517 + 'label' => __( 'Border Left', 'betterdocs' ),
8518 + 'priority' => 163,
8519 + 'input_attrs' => [
8520 + 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
8521 + ]
8522 + ]
8523 + )
8524 + );
8525 + }
8526 +
8527 + // public function post_reactions_icon_svg_color_layout_8_9() {
8528 + // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_svg_color_layout_8_9', [
8529 + // 'default' => $this->defaults['betterdocs_post_reactions_icon_svg_color_layout_8_9'],
8530 + // 'capability' => 'edit_theme_options',
8531 + // 'transport' => 'postMessage',
8532 + // 'sanitize_callback' => [$this->sanitizer, 'rgba']
8533 + // ] );
8534 +
8535 + // $this->customizer->add_control(
8536 + // new AlphaColorControl(
8537 + // $this->customizer,
8538 + // 'betterdocs_post_reactions_icon_svg_color_layout_8_9',
8539 + // [
8540 + // 'label' => __( 'Reactions Icon Color', 'betterdocs' ),
8541 + // 'priority' => 163,
8542 + // 'section' => 'betterdocs_single_docs_settings',
8543 + // 'settings' => 'betterdocs_post_reactions_icon_svg_color_layout_8_9'
8544 + // ]
8545 + // )
8546 + // );
8547 + // }
8548 +
8549 + // public function post_reactions_icon_hover_bg_color_layout_8_9() {
8550 + // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9', [
8551 + // 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_bg_color_layout_8_9'],
8552 + // 'capability' => 'edit_theme_options',
8553 + // 'sanitize_callback' => [$this->sanitizer, 'rgba']
8554 + // ] );
8555 +
8556 + // $this->customizer->add_control(
8557 + // new AlphaColorControl(
8558 + // $this->customizer,
8559 + // 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9',
8560 + // [
8561 + // 'label' => __( 'Reactions Icon Hover Background Color', 'betterdocs' ),
8562 + // 'priority' => 163,
8563 + // 'section' => 'betterdocs_single_docs_settings',
8564 + // 'settings' => 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9'
8565 + // ]
8566 + // )
8567 + // );
8568 + // }
8569 +
8570 + // public function post_reactions_icon_hover_svg_color_layout_8_9() {
8571 + // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9', [
8572 + // 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_svg_color_layout_8_9'],
8573 + // 'capability' => 'edit_theme_options',
8574 + // 'sanitize_callback' => [$this->sanitizer, 'rgba']
8575 + // ] );
8576 +
8577 + // $this->customizer->add_control(
8578 + // new AlphaColorControl(
8579 + // $this->customizer,
8580 + // 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9',
8581 + // [
8582 + // 'label' => __( 'Reactions Icon Hover Color', 'betterdocs' ),
8583 + // 'priority' => 163,
8584 + // 'section' => 'betterdocs_single_docs_settings',
8585 + // 'settings' => 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9'
8586 + // ]
8587 + // )
8588 + // );
8589 + // }
8590 +
8591 + public function attachments_heading() {
8592 + $this->customizer->add_setting(
8593 + 'betterdocs_single_doc_attachment_heading',
8594 + [
8595 + 'default' => '',
8596 + 'sanitize_callback' => 'esc_html'
8597 + ]
8598 + );
8599 +
8600 + $this->customizer->add_control(
8601 + new SeparatorControl(
8602 + $this->customizer,
8603 + 'betterdocs_single_doc_attachment_heading',
8604 + [
8605 + 'label' => __( 'Attachments', 'betterdocs' ),
8606 + 'priority' => 163,
8607 + 'settings' => 'betterdocs_single_doc_attachment_heading',
8608 + 'section' => 'betterdocs_single_docs_settings'
8609 + ]
8610 + )
8611 + );
8612 + }
8613 +
8614 + public function betterdocs_doc_single_attachment_content_bg_color() {
8615 + $this->customizer->add_setting(
8616 + 'betterdocs_doc_single_attachment_content_bg_color',
8617 + [
8618 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_bg_color'],
8619 + 'capability' => 'edit_theme_options',
8620 + 'transport' => 'postMessage',
8621 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
8622 + ]
8623 + );
8624 +
8625 + $this->customizer->add_control(
8626 + new AlphaColorControl(
8627 + $this->customizer,
8628 + 'betterdocs_doc_single_attachment_content_bg_color',
8629 + [
8630 + 'label' => __( 'Content Background Color', 'betterdocs' ),
8631 + 'section' => 'betterdocs_single_docs_settings',
8632 + 'settings' => 'betterdocs_doc_single_attachment_content_bg_color',
8633 + 'priority' => 163
8634 + ]
8635 + )
8636 + );
8637 + }
8638 +
8639 + public function betterdocs_doc_single_attachment_content_padding() {
8640 + $this->customizer->add_setting(
8641 + 'betterdocs_doc_single_attachment_content_padding',
8642 + [
8643 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding'],
8644 + 'capability' => 'edit_theme_options',
8645 + 'transport' => 'postMessage',
8646 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8647 +
8648 + ]
8649 + );
8650 +
8651 + $this->customizer->add_control(
8652 + new TitleControl(
8653 + $this->customizer,
8654 + 'betterdocs_doc_single_attachment_content_padding',
8655 + [
8656 + 'type' => 'betterdocs-title',
8657 + 'section' => 'betterdocs_single_docs_settings',
8658 + 'settings' => 'betterdocs_doc_single_attachment_content_padding',
8659 + 'label' => __( 'Content Padding', 'betterdocs' ),
8660 + 'priority' => 163,
8661 + 'input_attrs' => [
8662 + 'id' => 'betterdocs_doc_single_attachment_content_padding',
8663 + 'class' => 'betterdocs-dimension'
8664 + ]
8665 + ]
8666 + )
8667 + );
8668 +
8669 + $this->customizer->add_setting(
8670 + 'betterdocs_doc_single_attachment_content_padding_top',
8671 + [
8672 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_top'],
8673 + 'capability' => 'edit_theme_options',
8674 + 'transport' => 'postMessage',
8675 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8676 + ]
8677 + );
8678 +
8679 + $this->customizer->add_control(
8680 + new DimensionControl(
8681 + $this->customizer,
8682 + 'betterdocs_doc_single_attachment_content_padding_top',
8683 + [
8684 + 'type' => 'betterdocs-dimension',
8685 + 'section' => 'betterdocs_single_docs_settings',
8686 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_top',
8687 + 'label' => __( 'Top', 'betterdocs' ),
8688 + 'priority' => 163,
8689 + 'input_attrs' => [
8690 + 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
8691 + ]
8692 + ]
8693 + )
8694 + );
8695 +
8696 + $this->customizer->add_setting(
8697 + 'betterdocs_doc_single_attachment_content_padding_right',
8698 + [
8699 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_right'],
8700 + 'capability' => 'edit_theme_options',
8701 + 'transport' => 'postMessage',
8702 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8703 +
8704 + ]
8705 + );
8706 +
8707 + $this->customizer->add_control(
8708 + new DimensionControl(
8709 + $this->customizer,
8710 + 'betterdocs_doc_single_attachment_content_padding_right',
8711 + [
8712 + 'type' => 'betterdocs-dimension',
8713 + 'section' => 'betterdocs_single_docs_settings',
8714 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_right',
8715 + 'label' => __( 'Right', 'betterdocs' ),
8716 + 'priority' => 163,
8717 + 'input_attrs' => [
8718 + 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
8719 + ]
8720 + ]
8721 + )
8722 + );
8723 +
8724 + $this->customizer->add_setting(
8725 + 'betterdocs_doc_single_attachment_content_padding_bottom',
8726 + [
8727 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_bottom'],
8728 + 'capability' => 'edit_theme_options',
8729 + 'transport' => 'postMessage',
8730 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8731 +
8732 + ]
8733 + );
8734 +
8735 + $this->customizer->add_control(
8736 + new DimensionControl(
8737 + $this->customizer,
8738 + 'betterdocs_doc_single_attachment_content_padding_bottom',
8739 + [
8740 + 'type' => 'betterdocs-dimension',
8741 + 'section' => 'betterdocs_single_docs_settings',
8742 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_bottom',
8743 + 'label' => __( 'Bottom', 'betterdocs' ),
8744 + 'priority' => 163,
8745 + 'input_attrs' => [
8746 + 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
8747 + ]
8748 + ]
8749 + )
8750 + );
8751 +
8752 + $this->customizer->add_setting(
8753 + 'betterdocs_doc_single_attachment_content_padding_left',
8754 + [
8755 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_left'],
8756 + 'capability' => 'edit_theme_options',
8757 + 'transport' => 'postMessage',
8758 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8759 +
8760 + ]
8761 + );
8762 +
8763 + $this->customizer->add_control(
8764 + new DimensionControl(
8765 + $this->customizer,
8766 + 'betterdocs_doc_single_attachment_content_padding_left',
8767 + [
8768 + 'type' => 'betterdocs-dimension',
8769 + 'section' => 'betterdocs_single_docs_settings',
8770 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_left',
8771 + 'label' => __( 'Left', 'betterdocs' ),
8772 + 'priority' => 163,
8773 + 'input_attrs' => [
8774 + 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
8775 + ]
8776 + ]
8777 + )
8778 + );
8779 + }
8780 +
8781 + public function betterdocs_doc_single_attachment_content_margin() {
8782 + $this->customizer->add_setting(
8783 + 'betterdocs_doc_single_attachment_content_margin',
8784 + [
8785 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin'],
8786 + 'capability' => 'edit_theme_options',
8787 + 'transport' => 'postMessage',
8788 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8789 +
8790 + ]
8791 + );
8792 +
8793 + $this->customizer->add_control(
8794 + new TitleControl(
8795 + $this->customizer,
8796 + 'betterdocs_doc_single_attachment_content_margin',
8797 + [
8798 + 'type' => 'betterdocs-title',
8799 + 'section' => 'betterdocs_single_docs_settings',
8800 + 'settings' => 'betterdocs_doc_single_attachment_content_margin',
8801 + 'label' => __( 'Content Margin', 'betterdocs' ),
8802 + 'priority' => 163,
8803 + 'input_attrs' => [
8804 + 'id' => 'betterdocs_doc_single_attachment_content_margin',
8805 + 'class' => 'betterdocs-dimension'
8806 + ]
8807 + ]
8808 + )
8809 + );
8810 +
8811 + $this->customizer->add_setting(
8812 + 'betterdocs_doc_single_attachment_content_margin_top',
8813 + [
8814 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_top'],
8815 + 'capability' => 'edit_theme_options',
8816 + 'transport' => 'postMessage',
8817 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8818 + ]
8819 + );
8820 +
8821 + $this->customizer->add_control(
8822 + new DimensionControl(
8823 + $this->customizer,
8824 + 'betterdocs_doc_single_attachment_content_margin_top',
8825 + [
8826 + 'type' => 'betterdocs-dimension',
8827 + 'section' => 'betterdocs_single_docs_settings',
8828 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_top',
8829 + 'label' => __( 'Top', 'betterdocs' ),
8830 + 'priority' => 163,
8831 + 'input_attrs' => [
8832 + 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
8833 + ]
8834 + ]
8835 + )
8836 + );
8837 +
8838 + $this->customizer->add_setting(
8839 + 'betterdocs_doc_single_attachment_content_margin_right',
8840 + [
8841 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_right'],
8842 + 'capability' => 'edit_theme_options',
8843 + 'transport' => 'postMessage',
8844 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8845 +
8846 + ]
8847 + );
8848 +
8849 + $this->customizer->add_control(
8850 + new DimensionControl(
8851 + $this->customizer,
8852 + 'betterdocs_doc_single_attachment_content_margin_right',
8853 + [
8854 + 'type' => 'betterdocs-dimension',
8855 + 'section' => 'betterdocs_single_docs_settings',
8856 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_right',
8857 + 'label' => __( 'Right', 'betterdocs' ),
8858 + 'priority' => 163,
8859 + 'input_attrs' => [
8860 + 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
8861 + ]
8862 + ]
8863 + )
8864 + );
8865 +
8866 + $this->customizer->add_setting(
8867 + 'betterdocs_doc_single_attachment_content_margin_bottom',
8868 + [
8869 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_bottom'],
8870 + 'capability' => 'edit_theme_options',
8871 + 'transport' => 'postMessage',
8872 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8873 +
8874 + ]
8875 + );
8876 +
8877 + $this->customizer->add_control(
8878 + new DimensionControl(
8879 + $this->customizer,
8880 + 'betterdocs_doc_single_attachment_content_margin_bottom',
8881 + [
8882 + 'type' => 'betterdocs-dimension',
8883 + 'section' => 'betterdocs_single_docs_settings',
8884 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_bottom',
8885 + 'label' => __( 'Bottom', 'betterdocs' ),
8886 + 'priority' => 163,
8887 + 'input_attrs' => [
8888 + 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
8889 + ]
8890 + ]
8891 + )
8892 + );
8893 +
8894 + $this->customizer->add_setting(
8895 + 'betterdocs_doc_single_attachment_content_margin_left',
8896 + [
8897 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_left'],
8898 + 'capability' => 'edit_theme_options',
8899 + 'transport' => 'postMessage',
8900 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8901 +
8902 + ]
8903 + );
8904 +
8905 + $this->customizer->add_control(
8906 + new DimensionControl(
8907 + $this->customizer,
8908 + 'betterdocs_doc_single_attachment_content_margin_left',
8909 + [
8910 + 'type' => 'betterdocs-dimension',
8911 + 'section' => 'betterdocs_single_docs_settings',
8912 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_left',
8913 + 'label' => __( 'Left', 'betterdocs' ),
8914 + 'priority' => 163,
8915 + 'input_attrs' => [
8916 + 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
8917 + ]
8918 + ]
8919 + )
8920 + );
8921 + }
8922 +
8923 + public function betterdocs_doc_single_attachment_label_color() {
8924 + $this->customizer->add_setting(
8925 + 'betterdocs_doc_single_attachment_label_color',
8926 + [
8927 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_color'],
8928 + 'capability' => 'edit_theme_options',
8929 + 'transport' => 'postMessage',
8930 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
8931 + ]
8932 + );
8933 +
8934 + $this->customizer->add_control(
8935 + new AlphaColorControl(
8936 + $this->customizer,
8937 + 'betterdocs_doc_single_attachment_label_color',
8938 + [
8939 + 'label' => __( 'Label Color', 'betterdocs' ),
8940 + 'section' => 'betterdocs_single_docs_settings',
8941 + 'settings' => 'betterdocs_doc_single_attachment_label_color',
8942 + 'priority' => 163
8943 + ]
8944 + )
8945 + );
8946 + }
8947 +
8948 + public function betterdocs_doc_single_attachment_label_padding() {
8949 + $this->customizer->add_setting(
8950 + 'betterdocs_doc_single_attachment_label_padding',
8951 + [
8952 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding'],
8953 + 'capability' => 'edit_theme_options',
8954 + 'transport' => 'postMessage',
8955 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8956 +
8957 + ]
8958 + );
8959 +
8960 + $this->customizer->add_control(
8961 + new TitleControl(
8962 + $this->customizer,
8963 + 'betterdocs_doc_single_attachment_label_padding',
8964 + [
8965 + 'type' => 'betterdocs-title',
8966 + 'section' => 'betterdocs_single_docs_settings',
8967 + 'settings' => 'betterdocs_doc_single_attachment_label_padding',
8968 + 'label' => __( 'Label Padding', 'betterdocs' ),
8969 + 'priority' => 163,
8970 + 'input_attrs' => [
8971 + 'id' => 'betterdocs_doc_single_attachment_label_padding',
8972 + 'class' => 'betterdocs-dimension'
8973 + ]
8974 + ]
8975 + )
8976 + );
8977 +
8978 + $this->customizer->add_setting(
8979 + 'betterdocs_doc_single_attachment_label_padding_top',
8980 + [
8981 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_top'],
8982 + 'capability' => 'edit_theme_options',
8983 + 'transport' => 'postMessage',
8984 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8985 + ]
8986 + );
8987 +
8988 + $this->customizer->add_control(
8989 + new DimensionControl(
8990 + $this->customizer,
8991 + 'betterdocs_doc_single_attachment_label_padding_top',
8992 + [
8993 + 'type' => 'betterdocs-dimension',
8994 + 'section' => 'betterdocs_single_docs_settings',
8995 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_top',
8996 + 'label' => __( 'Top', 'betterdocs' ),
8997 + 'priority' => 163,
8998 + 'input_attrs' => [
8999 + 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
9000 + ]
9001 + ]
9002 + )
9003 + );
9004 +
9005 + $this->customizer->add_setting(
9006 + 'betterdocs_doc_single_attachment_label_padding_right',
9007 + [
9008 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_right'],
9009 + 'capability' => 'edit_theme_options',
9010 + 'transport' => 'postMessage',
9011 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9012 +
9013 + ]
9014 + );
9015 +
9016 + $this->customizer->add_control(
9017 + new DimensionControl(
9018 + $this->customizer,
9019 + 'betterdocs_doc_single_attachment_label_padding_right',
9020 + [
9021 + 'type' => 'betterdocs-dimension',
9022 + 'section' => 'betterdocs_single_docs_settings',
9023 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_right',
9024 + 'label' => __( 'Right', 'betterdocs' ),
9025 + 'priority' => 163,
9026 + 'input_attrs' => [
9027 + 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
9028 + ]
9029 + ]
9030 + )
9031 + );
9032 +
9033 + $this->customizer->add_setting(
9034 + 'betterdocs_doc_single_attachment_label_padding_bottom',
9035 + [
9036 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_bottom'],
9037 + 'capability' => 'edit_theme_options',
9038 + 'transport' => 'postMessage',
9039 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9040 +
9041 + ]
9042 + );
9043 +
9044 + $this->customizer->add_control(
9045 + new DimensionControl(
9046 + $this->customizer,
9047 + 'betterdocs_doc_single_attachment_label_padding_bottom',
9048 + [
9049 + 'type' => 'betterdocs-dimension',
9050 + 'section' => 'betterdocs_single_docs_settings',
9051 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_bottom',
9052 + 'label' => __( 'Bottom', 'betterdocs' ),
9053 + 'priority' => 163,
9054 + 'input_attrs' => [
9055 + 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
9056 + ]
9057 + ]
9058 + )
9059 + );
9060 +
9061 + $this->customizer->add_setting(
9062 + 'betterdocs_doc_single_attachment_label_padding_left',
9063 + [
9064 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_left'],
9065 + 'capability' => 'edit_theme_options',
9066 + 'transport' => 'postMessage',
9067 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9068 +
9069 + ]
9070 + );
9071 +
9072 + $this->customizer->add_control(
9073 + new DimensionControl(
9074 + $this->customizer,
9075 + 'betterdocs_doc_single_attachment_label_padding_left',
9076 + [
9077 + 'type' => 'betterdocs-dimension',
9078 + 'section' => 'betterdocs_single_docs_settings',
9079 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_left',
9080 + 'label' => __( 'Left', 'betterdocs' ),
9081 + 'priority' => 163,
9082 + 'input_attrs' => [
9083 + 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
9084 + ]
9085 + ]
9086 + )
9087 + );
9088 + }
9089 +
9090 + public function betterdocs_doc_single_attachment_label_margin() {
9091 + $this->customizer->add_setting(
9092 + 'betterdocs_doc_single_attachment_label_margin',
9093 + [
9094 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin'],
9095 + 'capability' => 'edit_theme_options',
9096 + 'transport' => 'postMessage',
9097 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9098 +
9099 + ]
9100 + );
9101 +
9102 + $this->customizer->add_control(
9103 + new TitleControl(
9104 + $this->customizer,
9105 + 'betterdocs_doc_single_attachment_label_margin',
9106 + [
9107 + 'type' => 'betterdocs-title',
9108 + 'section' => 'betterdocs_single_docs_settings',
9109 + 'settings' => 'betterdocs_doc_single_attachment_label_margin',
9110 + 'label' => __( 'Label Margin', 'betterdocs' ),
9111 + 'priority' => 163,
9112 + 'input_attrs' => [
9113 + 'id' => 'betterdocs_doc_single_attachment_label_margin',
9114 + 'class' => 'betterdocs-dimension'
9115 + ]
9116 + ]
9117 + )
9118 + );
9119 +
9120 + $this->customizer->add_setting(
9121 + 'betterdocs_doc_single_attachment_label_margin_top',
9122 + [
9123 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_top'],
9124 + 'capability' => 'edit_theme_options',
9125 + 'transport' => 'postMessage',
9126 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9127 + ]
9128 + );
9129 +
9130 + $this->customizer->add_control(
9131 + new DimensionControl(
9132 + $this->customizer,
9133 + 'betterdocs_doc_single_attachment_label_margin_top',
9134 + [
9135 + 'type' => 'betterdocs-dimension',
9136 + 'section' => 'betterdocs_single_docs_settings',
9137 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_top',
9138 + 'label' => __( 'Top', 'betterdocs' ),
9139 + 'priority' => 163,
9140 + 'input_attrs' => [
9141 + 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
9142 + ]
9143 + ]
9144 + )
9145 + );
9146 +
9147 + $this->customizer->add_setting(
9148 + 'betterdocs_doc_single_attachment_label_margin_right',
9149 + [
9150 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_right'],
9151 + 'capability' => 'edit_theme_options',
9152 + 'transport' => 'postMessage',
9153 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9154 +
9155 + ]
9156 + );
9157 +
9158 + $this->customizer->add_control(
9159 + new DimensionControl(
9160 + $this->customizer,
9161 + 'betterdocs_doc_single_attachment_label_margin_right',
9162 + [
9163 + 'type' => 'betterdocs-dimension',
9164 + 'section' => 'betterdocs_single_docs_settings',
9165 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_right',
9166 + 'label' => __( 'Right', 'betterdocs' ),
9167 + 'priority' => 163,
9168 + 'input_attrs' => [
9169 + 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
9170 + ]
9171 + ]
9172 + )
9173 + );
9174 +
9175 + $this->customizer->add_setting(
9176 + 'betterdocs_doc_single_attachment_label_margin_bottom',
9177 + [
9178 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_bottom'],
9179 + 'capability' => 'edit_theme_options',
9180 + 'transport' => 'postMessage',
9181 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9182 + ]
9183 + );
9184 +
9185 + $this->customizer->add_control(
9186 + new DimensionControl(
9187 + $this->customizer,
9188 + 'betterdocs_doc_single_attachment_label_margin_bottom',
9189 + [
9190 + 'type' => 'betterdocs-dimension',
9191 + 'section' => 'betterdocs_single_docs_settings',
9192 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_bottom',
9193 + 'label' => __( 'Bottom', 'betterdocs' ),
9194 + 'priority' => 163,
9195 + 'input_attrs' => [
9196 + 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
9197 + ]
9198 + ]
9199 + )
9200 + );
9201 +
9202 + $this->customizer->add_setting(
9203 + 'betterdocs_doc_single_attachment_label_margin_left',
9204 + [
9205 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_left'],
9206 + 'capability' => 'edit_theme_options',
9207 + 'transport' => 'postMessage',
9208 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9209 + ]
9210 + );
9211 +
9212 + $this->customizer->add_control(
9213 + new DimensionControl(
9214 + $this->customizer,
9215 + 'betterdocs_doc_single_attachment_label_margin_left',
9216 + [
9217 + 'type' => 'betterdocs-dimension',
9218 + 'section' => 'betterdocs_single_docs_settings',
9219 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_left',
9220 + 'label' => __( 'Left', 'betterdocs' ),
9221 + 'priority' => 163,
9222 + 'input_attrs' => [
9223 + 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
9224 + ]
9225 + ]
9226 + )
9227 + );
9228 + }
9229 +
9230 + public function betterdocs_doc_single_attachment_list_font_size() {
9231 + $this->customizer->add_setting(
9232 + 'betterdocs_doc_single_attachment_list_font_size',
9233 + [
9234 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_size'],
9235 + 'capability' => 'edit_theme_options',
9236 + 'transport' => 'postMessage',
9237 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9238 +
9239 + ]
9240 + );
9241 +
9242 + $this->customizer->add_control(
9243 + new RangeValueControl(
9244 + $this->customizer,
9245 + 'betterdocs_doc_single_attachment_list_font_size',
9246 + [
9247 + 'type' => 'betterdocs-range-value',
9248 + 'section' => 'betterdocs_single_docs_settings',
9249 + 'settings' => 'betterdocs_doc_single_attachment_list_font_size',
9250 + 'label' => __( 'List Font Size', 'betterdocs' ),
9251 + 'priority' => 163,
9252 + 'input_attrs' => [
9253 + 'min' => 0,
9254 + 'max' => 50,
9255 + 'step' => 1,
9256 + 'suffix' => 'px' //optional suffix
9257 + ]
9258 + ]
9259 + )
9260 + );
9261 + }
9262 +
9263 + public function betterdocs_doc_single_attachment_list_font_weight() {
9264 + $this->customizer->add_setting(
9265 + 'betterdocs_doc_single_attachment_list_font_weight',
9266 + [
9267 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_weight'],
9268 + 'capability' => 'edit_theme_options',
9269 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
9270 + ]
9271 + );
9272 +
9273 + $this->customizer->add_control(
9274 + new WP_Customize_Control(
9275 + $this->customizer,
9276 + 'betterdocs_doc_single_attachment_list_font_weight',
9277 + [
9278 + 'label' => __( 'List Font Weight', 'betterdocs' ),
9279 + 'section' => 'betterdocs_single_docs_settings',
9280 + 'settings' => 'betterdocs_doc_single_attachment_list_font_weight',
9281 + 'type' => 'select',
9282 + 'choices' => [
9283 + 'normal' => 'Normal',
9284 + '100' => '100',
9285 + '200' => '200',
9286 + '300' => '300',
9287 + '400' => '400',
9288 + '500' => '500',
9289 + '600' => '600',
9290 + '700' => '700',
9291 + '800' => '800',
9292 + '900' => '900'
9293 + ],
9294 + 'priority' => 163
9295 + ]
9296 + )
9297 + );
9298 + }
9299 +
9300 + public function betterdocs_doc_single_attachment_list_extension_color() {
9301 + $this->customizer->add_setting(
9302 + 'betterdocs_doc_single_attachment_list_extension_color',
9303 + [
9304 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_color'],
9305 + 'capability' => 'edit_theme_options',
9306 + 'transport' => 'postMessage',
9307 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9308 + ]
9309 + );
9310 +
9311 + $this->customizer->add_control(
9312 + new AlphaColorControl(
9313 + $this->customizer,
9314 + 'betterdocs_doc_single_attachment_list_extension_color',
9315 + [
9316 + 'label' => __( 'Extension Color', 'betterdocs' ),
9317 + 'section' => 'betterdocs_single_docs_settings',
9318 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_color',
9319 + 'priority' => 163
9320 + ]
9321 + )
9322 + );
9323 + }
9324 + public function betterdocs_doc_single_attachment_list_extension_font_size() {
9325 + $this->customizer->add_setting(
9326 + 'betterdocs_doc_single_attachment_list_extension_font_size',
9327 + [
9328 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_size'],
9329 + 'capability' => 'edit_theme_options',
9330 + 'transport' => 'postMessage',
9331 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9332 +
9333 + ]
9334 + );
9335 +
9336 + $this->customizer->add_control(
9337 + new RangeValueControl(
9338 + $this->customizer,
9339 + 'betterdocs_doc_single_attachment_list_extension_font_size',
9340 + [
9341 + 'type' => 'betterdocs-range-value',
9342 + 'section' => 'betterdocs_single_docs_settings',
9343 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_size',
9344 + 'label' => __( 'Extension Font Size', 'betterdocs' ),
9345 + 'priority' => 163,
9346 + 'input_attrs' => [
9347 + 'min' => 0,
9348 + 'max' => 50,
9349 + 'step' => 1,
9350 + 'suffix' => 'px' //optional suffix
9351 + ]
9352 + ]
9353 + )
9354 + );
9355 + }
9356 +
9357 + public function betterdocs_doc_single_attachment_list_extension_font_weight() {
9358 + $this->customizer->add_setting(
9359 + 'betterdocs_doc_single_attachment_list_extension_font_weight',
9360 + [
9361 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_weight'],
9362 + 'capability' => 'edit_theme_options',
9363 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
9364 + ]
9365 + );
9366 +
9367 + $this->customizer->add_control(
9368 + new WP_Customize_Control(
9369 + $this->customizer,
9370 + 'betterdocs_doc_single_attachment_list_extension_font_weight',
9371 + [
9372 + 'label' => __( 'Extension Font Weight', 'betterdocs' ),
9373 + 'section' => 'betterdocs_single_docs_settings',
9374 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_weight',
9375 + 'type' => 'select',
9376 + 'choices' => [
9377 + 'normal' => 'Normal',
9378 + '100' => '100',
9379 + '200' => '200',
9380 + '300' => '300',
9381 + '400' => '400',
9382 + '500' => '500',
9383 + '600' => '600',
9384 + '700' => '700',
9385 + '800' => '800',
9386 + '900' => '900'
9387 + ],
9388 + 'priority' => 163
9389 + ]
9390 + )
9391 + );
9392 + }
9393 +
9394 + public function betterdocs_doc_single_attachment_list_color() {
9395 + $this->customizer->add_setting(
9396 + 'betterdocs_doc_single_attachment_list_color',
9397 + [
9398 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_color'],
9399 + 'capability' => 'edit_theme_options',
9400 + 'transport' => 'postMessage',
9401 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9402 + ]
9403 + );
9404 +
9405 + $this->customizer->add_control(
9406 + new AlphaColorControl(
9407 + $this->customizer,
9408 + 'betterdocs_doc_single_attachment_list_color',
9409 + [
9410 + 'label' => __( 'List Color', 'betterdocs' ),
9411 + 'section' => 'betterdocs_single_docs_settings',
9412 + 'settings' => 'betterdocs_doc_single_attachment_list_color',
9413 + 'priority' => 163
9414 + ]
9415 + )
9416 + );
9417 + }
9418 +
9419 + public function betterdocs_doc_single_attachment_list_background_color() {
9420 + $this->customizer->add_setting(
9421 + 'betterdocs_doc_single_attachment_list_background_color',
9422 + [
9423 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_background_color'],
9424 + 'capability' => 'edit_theme_options',
9425 + 'transport' => 'postMessage',
9426 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9427 + ]
9428 + );
9429 +
9430 + $this->customizer->add_control(
9431 + new AlphaColorControl(
9432 + $this->customizer,
9433 + 'betterdocs_doc_single_attachment_list_background_color',
9434 + [
9435 + 'label' => __( 'List Background Color', 'betterdocs' ),
9436 + 'section' => 'betterdocs_single_docs_settings',
9437 + 'settings' => 'betterdocs_doc_single_attachment_list_background_color',
9438 + 'priority' => 163
9439 + ]
9440 + )
9441 + );
9442 + }
9443 +
9444 + public function betterdocs_doc_single_attachment_list_padding() {
9445 + $this->customizer->add_setting(
9446 + 'betterdocs_doc_single_attachment_list_padding',
9447 + [
9448 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding'],
9449 + 'capability' => 'edit_theme_options',
9450 + 'transport' => 'postMessage',
9451 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9452 +
9453 + ]
9454 + );
9455 +
9456 + $this->customizer->add_control(
9457 + new TitleControl(
9458 + $this->customizer,
9459 + 'betterdocs_doc_single_attachment_list_padding',
9460 + [
9461 + 'type' => 'betterdocs-title',
9462 + 'section' => 'betterdocs_single_docs_settings',
9463 + 'settings' => 'betterdocs_doc_single_attachment_list_padding',
9464 + 'label' => __( 'List Padding', 'betterdocs' ),
9465 + 'priority' => 163,
9466 + 'input_attrs' => [
9467 + 'id' => 'betterdocs_doc_single_attachment_list_padding',
9468 + 'class' => 'betterdocs-dimension'
9469 + ]
9470 + ]
9471 + )
9472 + );
9473 +
9474 + $this->customizer->add_setting(
9475 + 'betterdocs_doc_single_attachment_list_padding_top',
9476 + [
9477 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_top'],
9478 + 'capability' => 'edit_theme_options',
9479 + 'transport' => 'postMessage',
9480 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9481 + ]
9482 + );
9483 +
9484 + $this->customizer->add_control(
9485 + new DimensionControl(
9486 + $this->customizer,
9487 + 'betterdocs_doc_single_attachment_list_padding_top',
9488 + [
9489 + 'type' => 'betterdocs-dimension',
9490 + 'section' => 'betterdocs_single_docs_settings',
9491 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_top',
9492 + 'label' => __( 'Top', 'betterdocs' ),
9493 + 'priority' => 163,
9494 + 'input_attrs' => [
9495 + 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
9496 + ]
9497 + ]
9498 + )
9499 + );
9500 +
9501 + $this->customizer->add_setting(
9502 + 'betterdocs_doc_single_attachment_list_padding_right',
9503 + [
9504 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_right'],
9505 + 'capability' => 'edit_theme_options',
9506 + 'transport' => 'postMessage',
9507 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9508 +
9509 + ]
9510 + );
9511 +
9512 + $this->customizer->add_control(
9513 + new DimensionControl(
9514 + $this->customizer,
9515 + 'betterdocs_doc_single_attachment_list_padding_right',
9516 + [
9517 + 'type' => 'betterdocs-dimension',
9518 + 'section' => 'betterdocs_single_docs_settings',
9519 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_right',
9520 + 'label' => __( 'Right', 'betterdocs' ),
9521 + 'priority' => 163,
9522 + 'input_attrs' => [
9523 + 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
9524 + ]
9525 + ]
9526 + )
9527 + );
9528 +
9529 + $this->customizer->add_setting(
9530 + 'betterdocs_doc_single_attachment_list_padding_bottom',
9531 + [
9532 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_bottom'],
9533 + 'capability' => 'edit_theme_options',
9534 + 'transport' => 'postMessage',
9535 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9536 + ]
9537 + );
9538 +
9539 + $this->customizer->add_control(
9540 + new DimensionControl(
9541 + $this->customizer,
9542 + 'betterdocs_doc_single_attachment_list_padding_bottom',
9543 + [
9544 + 'type' => 'betterdocs-dimension',
9545 + 'section' => 'betterdocs_single_docs_settings',
9546 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_bottom',
9547 + 'label' => __( 'Bottom', 'betterdocs' ),
9548 + 'priority' => 163,
9549 + 'input_attrs' => [
9550 + 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
9551 + ]
9552 + ]
9553 + )
9554 + );
9555 +
9556 + $this->customizer->add_setting(
9557 + 'betterdocs_doc_single_attachment_list_padding_left',
9558 + [
9559 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_left'],
9560 + 'capability' => 'edit_theme_options',
9561 + 'transport' => 'postMessage',
9562 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9563 + ]
9564 + );
9565 +
9566 + $this->customizer->add_control(
9567 + new DimensionControl(
9568 + $this->customizer,
9569 + 'betterdocs_doc_single_attachment_list_padding_left',
9570 + [
9571 + 'type' => 'betterdocs-dimension',
9572 + 'section' => 'betterdocs_single_docs_settings',
9573 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_left',
9574 + 'label' => __( 'Left', 'betterdocs' ),
9575 + 'priority' => 163,
9576 + 'input_attrs' => [
9577 + 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
9578 + ]
9579 + ]
9580 + )
9581 + );
9582 + }
9583 +
9584 + public function betterdocs_doc_single_attachment_list_margin() {
9585 + $this->customizer->add_setting(
9586 + 'betterdocs_doc_single_attachment_list_margin',
9587 + [
9588 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin'],
9589 + 'capability' => 'edit_theme_options',
9590 + 'transport' => 'postMessage',
9591 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9592 +
9593 + ]
9594 + );
9595 +
9596 + $this->customizer->add_control(
9597 + new TitleControl(
9598 + $this->customizer,
9599 + 'betterdocs_doc_single_attachment_list_margin',
9600 + [
9601 + 'type' => 'betterdocs-title',
9602 + 'section' => 'betterdocs_single_docs_settings',
9603 + 'settings' => 'betterdocs_doc_single_attachment_list_margin',
9604 + 'label' => __( 'List Margin', 'betterdocs' ),
9605 + 'priority' => 163,
9606 + 'input_attrs' => [
9607 + 'id' => 'betterdocs_doc_single_attachment_list_margin',
9608 + 'class' => 'betterdocs-dimension'
9609 + ]
9610 + ]
9611 + )
9612 + );
9613 +
9614 + $this->customizer->add_setting(
9615 + 'betterdocs_doc_single_attachment_list_margin_top',
9616 + [
9617 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_top'],
9618 + 'capability' => 'edit_theme_options',
9619 + 'transport' => 'postMessage',
9620 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9621 + ]
9622 + );
9623 +
9624 + $this->customizer->add_control(
9625 + new DimensionControl(
9626 + $this->customizer,
9627 + 'betterdocs_doc_single_attachment_list_margin_top',
9628 + [
9629 + 'type' => 'betterdocs-dimension',
9630 + 'section' => 'betterdocs_single_docs_settings',
9631 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_top',
9632 + 'label' => __( 'Top', 'betterdocs' ),
9633 + 'priority' => 163,
9634 + 'input_attrs' => [
9635 + 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
9636 + ]
9637 + ]
9638 + )
9639 + );
9640 +
9641 + $this->customizer->add_setting(
9642 + 'betterdocs_doc_single_attachment_list_margin_right',
9643 + [
9644 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_right'],
9645 + 'capability' => 'edit_theme_options',
9646 + 'transport' => 'postMessage',
9647 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9648 +
9649 + ]
9650 + );
9651 +
9652 + $this->customizer->add_control(
9653 + new DimensionControl(
9654 + $this->customizer,
9655 + 'betterdocs_doc_single_attachment_list_margin_right',
9656 + [
9657 + 'type' => 'betterdocs-dimension',
9658 + 'section' => 'betterdocs_single_docs_settings',
9659 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_right',
9660 + 'label' => __( 'Right', 'betterdocs' ),
9661 + 'priority' => 163,
9662 + 'input_attrs' => [
9663 + 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
9664 + ]
9665 + ]
9666 + )
9667 + );
9668 +
9669 + $this->customizer->add_setting(
9670 + 'betterdocs_doc_single_attachment_list_margin_bottom',
9671 + [
9672 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_bottom'],
9673 + 'capability' => 'edit_theme_options',
9674 + 'transport' => 'postMessage',
9675 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9676 + ]
9677 + );
9678 +
9679 + $this->customizer->add_control(
9680 + new DimensionControl(
9681 + $this->customizer,
9682 + 'betterdocs_doc_single_attachment_list_margin_bottom',
9683 + [
9684 + 'type' => 'betterdocs-dimension',
9685 + 'section' => 'betterdocs_single_docs_settings',
9686 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_bottom',
9687 + 'label' => __( 'Bottom', 'betterdocs' ),
9688 + 'priority' => 163,
9689 + 'input_attrs' => [
9690 + 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
9691 + ]
9692 + ]
9693 + )
9694 + );
9695 +
9696 + $this->customizer->add_setting(
9697 + 'betterdocs_doc_single_attachment_list_margin_left',
9698 + [
9699 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_left'],
9700 + 'capability' => 'edit_theme_options',
9701 + 'transport' => 'postMessage',
9702 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9703 + ]
9704 + );
9705 +
9706 + $this->customizer->add_control(
9707 + new DimensionControl(
9708 + $this->customizer,
9709 + 'betterdocs_doc_single_attachment_list_margin_left',
9710 + [
9711 + 'type' => 'betterdocs-dimension',
9712 + 'section' => 'betterdocs_single_docs_settings',
9713 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_left',
9714 + 'label' => __( 'Left', 'betterdocs' ),
9715 + 'priority' => 163,
9716 + 'input_attrs' => [
9717 + 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
9718 + ]
9719 + ]
9720 + )
9721 + );
9722 + }
9723 +
9724 + public function attachments_heading_layout_8_9() {
9725 + $this->customizer->add_setting(
9726 + 'betterdocs_single_doc_attachment_heading_layout_8_9',
9727 + [
9728 + 'default' => '',
9729 + 'sanitize_callback' => 'esc_html'
9730 + ]
9731 + );
9732 +
9733 + $this->customizer->add_control(
9734 + new SeparatorControl(
9735 + $this->customizer,
9736 + 'betterdocs_single_doc_attachment_heading_layout_8_9',
9737 + [
9738 + 'label' => __( 'Attachments', 'betterdocs' ),
9739 + 'priority' => 163,
9740 + 'settings' => 'betterdocs_single_doc_attachment_heading_layout_8_9',
9741 + 'section' => 'betterdocs_single_docs_settings'
9742 + ]
9743 + )
9744 + );
9745 + }
9746 +
9747 + public function betterdocs_doc_single_attachment_content_bg_color_layout_8_9() {
9748 + $this->customizer->add_setting(
9749 + 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
9750 + [
9751 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_bg_color_layout_8_9'],
9752 + 'capability' => 'edit_theme_options',
9753 + 'transport' => 'postMessage',
9754 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9755 + ]
9756 + );
9757 +
9758 + $this->customizer->add_control(
9759 + new AlphaColorControl(
9760 + $this->customizer,
9761 + 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
9762 + [
9763 + 'label' => __( 'Content Background Color', 'betterdocs' ),
9764 + 'section' => 'betterdocs_single_docs_settings',
9765 + 'settings' => 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
9766 + 'priority' => 163
9767 + ]
9768 + )
9769 + );
9770 + }
9771 +
9772 + public function betterdocs_doc_single_attachment_content_padding_layout_8_9() {
9773 + $this->customizer->add_setting(
9774 + 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
9775 + [
9776 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_layout_8_9'],
9777 + 'capability' => 'edit_theme_options',
9778 + 'transport' => 'postMessage',
9779 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9780 +
9781 + ]
9782 + );
9783 +
9784 + $this->customizer->add_control(
9785 + new TitleControl(
9786 + $this->customizer,
9787 + 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
9788 + [
9789 + 'type' => 'betterdocs-title',
9790 + 'section' => 'betterdocs_single_docs_settings',
9791 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
9792 + 'label' => __( 'Content Padding', 'betterdocs' ),
9793 + 'priority' => 163,
9794 + 'input_attrs' => [
9795 + 'id' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
9796 + 'class' => 'betterdocs-dimension'
9797 + ]
9798 + ]
9799 + )
9800 + );
9801 +
9802 + $this->customizer->add_setting(
9803 + 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9',
9804 + [
9805 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_top_layout_8_9'],
9806 + 'capability' => 'edit_theme_options',
9807 + 'transport' => 'postMessage',
9808 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9809 + ]
9810 + );
9811 +
9812 + $this->customizer->add_control(
9813 + new DimensionControl(
9814 + $this->customizer,
9815 + 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9',
9816 + [
9817 + 'type' => 'betterdocs-dimension',
9818 + 'section' => 'betterdocs_single_docs_settings',
9819 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9',
9820 + 'label' => __( 'Top', 'betterdocs' ),
9821 + 'priority' => 163,
9822 + 'input_attrs' => [
9823 + 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
9824 + ]
9825 + ]
9826 + )
9827 + );
9828 +
9829 + $this->customizer->add_setting(
9830 + 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9',
9831 + [
9832 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_right_layout_8_9'],
9833 + 'capability' => 'edit_theme_options',
9834 + 'transport' => 'postMessage',
9835 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9836 +
9837 + ]
9838 + );
9839 +
9840 + $this->customizer->add_control(
9841 + new DimensionControl(
9842 + $this->customizer,
9843 + 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9',
9844 + [
9845 + 'type' => 'betterdocs-dimension',
9846 + 'section' => 'betterdocs_single_docs_settings',
9847 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9',
9848 + 'label' => __( 'Right', 'betterdocs' ),
9849 + 'priority' => 163,
9850 + 'input_attrs' => [
9851 + 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
9852 + ]
9853 + ]
9854 + )
9855 + );
9856 +
9857 + $this->customizer->add_setting(
9858 + 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9',
9859 + [
9860 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9'],
9861 + 'capability' => 'edit_theme_options',
9862 + 'transport' => 'postMessage',
9863 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9864 +
9865 + ]
9866 + );
9867 +
9868 + $this->customizer->add_control(
9869 + new DimensionControl(
9870 + $this->customizer,
9871 + 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9',
9872 + [
9873 + 'type' => 'betterdocs-dimension',
9874 + 'section' => 'betterdocs_single_docs_settings',
9875 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9',
9876 + 'label' => __( 'Bottom', 'betterdocs' ),
9877 + 'priority' => 163,
9878 + 'input_attrs' => [
9879 + 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
9880 + ]
9881 + ]
9882 + )
9883 + );
9884 +
9885 + $this->customizer->add_setting(
9886 + 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9',
9887 + [
9888 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_left_layout_8_9'],
9889 + 'capability' => 'edit_theme_options',
9890 + 'transport' => 'postMessage',
9891 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9892 +
9893 + ]
9894 + );
9895 +
9896 + $this->customizer->add_control(
9897 + new DimensionControl(
9898 + $this->customizer,
9899 + 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9',
9900 + [
9901 + 'type' => 'betterdocs-dimension',
9902 + 'section' => 'betterdocs_single_docs_settings',
9903 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9',
9904 + 'label' => __( 'Left', 'betterdocs' ),
9905 + 'priority' => 163,
9906 + 'input_attrs' => [
9907 + 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
9908 + ]
9909 + ]
9910 + )
9911 + );
9912 + }
9913 +
9914 + public function betterdocs_doc_single_attachment_content_margin_layout_8_9() {
9915 + $this->customizer->add_setting(
9916 + 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
9917 + [
9918 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_layout_8_9'],
9919 + 'capability' => 'edit_theme_options',
9920 + 'transport' => 'postMessage',
9921 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9922 +
9923 + ]
9924 + );
9925 +
9926 + $this->customizer->add_control(
9927 + new TitleControl(
9928 + $this->customizer,
9929 + 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
9930 + [
9931 + 'type' => 'betterdocs-title',
9932 + 'section' => 'betterdocs_single_docs_settings',
9933 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
9934 + 'label' => __( 'Content Margin', 'betterdocs' ),
9935 + 'priority' => 163,
9936 + 'input_attrs' => [
9937 + 'id' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
9938 + 'class' => 'betterdocs-dimension'
9939 + ]
9940 + ]
9941 + )
9942 + );
9943 +
9944 + $this->customizer->add_setting(
9945 + 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9',
9946 + [
9947 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_top_layout_8_9'],
9948 + 'capability' => 'edit_theme_options',
9949 + 'transport' => 'postMessage',
9950 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9951 + ]
9952 + );
9953 +
9954 + $this->customizer->add_control(
9955 + new DimensionControl(
9956 + $this->customizer,
9957 + 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9',
9958 + [
9959 + 'type' => 'betterdocs-dimension',
9960 + 'section' => 'betterdocs_single_docs_settings',
9961 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9',
9962 + 'label' => __( 'Top', 'betterdocs' ),
9963 + 'priority' => 163,
9964 + 'input_attrs' => [
9965 + 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
9966 + ]
9967 + ]
9968 + )
9969 + );
9970 +
9971 + $this->customizer->add_setting(
9972 + 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9',
9973 + [
9974 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_right_layout_8_9'],
9975 + 'capability' => 'edit_theme_options',
9976 + 'transport' => 'postMessage',
9977 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9978 +
9979 + ]
9980 + );
9981 +
9982 + $this->customizer->add_control(
9983 + new DimensionControl(
9984 + $this->customizer,
9985 + 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9',
9986 + [
9987 + 'type' => 'betterdocs-dimension',
9988 + 'section' => 'betterdocs_single_docs_settings',
9989 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9',
9990 + 'label' => __( 'Right', 'betterdocs' ),
9991 + 'priority' => 163,
9992 + 'input_attrs' => [
9993 + 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
9994 + ]
9995 + ]
9996 + )
9997 + );
9998 +
9999 + $this->customizer->add_setting(
10000 + 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9',
10001 + [
10002 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9'],
10003 + 'capability' => 'edit_theme_options',
10004 + 'transport' => 'postMessage',
10005 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10006 +
10007 + ]
10008 + );
10009 +
10010 + $this->customizer->add_control(
10011 + new DimensionControl(
10012 + $this->customizer,
10013 + 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9',
10014 + [
10015 + 'type' => 'betterdocs-dimension',
10016 + 'section' => 'betterdocs_single_docs_settings',
10017 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9',
10018 + 'label' => __( 'Bottom', 'betterdocs' ),
10019 + 'priority' => 163,
10020 + 'input_attrs' => [
10021 + 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
10022 + ]
10023 + ]
10024 + )
10025 + );
10026 +
10027 + $this->customizer->add_setting(
10028 + 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9',
10029 + [
10030 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_left_layout_8_9'],
10031 + 'capability' => 'edit_theme_options',
10032 + 'transport' => 'postMessage',
10033 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10034 +
10035 + ]
10036 + );
10037 +
10038 + $this->customizer->add_control(
10039 + new DimensionControl(
10040 + $this->customizer,
10041 + 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9',
10042 + [
10043 + 'type' => 'betterdocs-dimension',
10044 + 'section' => 'betterdocs_single_docs_settings',
10045 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9',
10046 + 'label' => __( 'Left', 'betterdocs' ),
10047 + 'priority' => 163,
10048 + 'input_attrs' => [
10049 + 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
10050 + ]
10051 + ]
10052 + )
10053 + );
10054 + }
10055 +
10056 + public function betterdocs_doc_single_attachment_label_color_layout_8_9() {
10057 + $this->customizer->add_setting(
10058 + 'betterdocs_doc_single_attachment_label_color_layout_8_9',
10059 + [
10060 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_color_layout_8_9'],
10061 + 'capability' => 'edit_theme_options',
10062 + 'transport' => 'postMessage',
10063 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10064 + ]
10065 + );
10066 +
10067 + $this->customizer->add_control(
10068 + new AlphaColorControl(
10069 + $this->customizer,
10070 + 'betterdocs_doc_single_attachment_label_color_layout_8_9',
10071 + [
10072 + 'label' => __( 'Label Color', 'betterdocs' ),
10073 + 'section' => 'betterdocs_single_docs_settings',
10074 + 'settings' => 'betterdocs_doc_single_attachment_label_color_layout_8_9',
10075 + 'priority' => 163
10076 + ]
10077 + )
10078 + );
10079 + }
10080 +
10081 + public function betterdocs_doc_single_attachment_label_padding_layout_8_9() {
10082 + $this->customizer->add_setting(
10083 + 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
10084 + [
10085 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_layout_8_9'],
10086 + 'capability' => 'edit_theme_options',
10087 + 'transport' => 'postMessage',
10088 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10089 +
10090 + ]
10091 + );
10092 +
10093 + $this->customizer->add_control(
10094 + new TitleControl(
10095 + $this->customizer,
10096 + 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
10097 + [
10098 + 'type' => 'betterdocs-title',
10099 + 'section' => 'betterdocs_single_docs_settings',
10100 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
10101 + 'label' => __( 'Label Padding', 'betterdocs' ),
10102 + 'priority' => 163,
10103 + 'input_attrs' => [
10104 + 'id' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
10105 + 'class' => 'betterdocs-dimension'
10106 + ]
10107 + ]
10108 + )
10109 + );
10110 +
10111 + $this->customizer->add_setting(
10112 + 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9',
10113 + [
10114 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_top_layout_8_9'],
10115 + 'capability' => 'edit_theme_options',
10116 + 'transport' => 'postMessage',
10117 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10118 + ]
10119 + );
10120 +
10121 + $this->customizer->add_control(
10122 + new DimensionControl(
10123 + $this->customizer,
10124 + 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9',
10125 + [
10126 + 'type' => 'betterdocs-dimension',
10127 + 'section' => 'betterdocs_single_docs_settings',
10128 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9',
10129 + 'label' => __( 'Top', 'betterdocs' ),
10130 + 'priority' => 163,
10131 + 'input_attrs' => [
10132 + 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
10133 + ]
10134 + ]
10135 + )
10136 + );
10137 +
10138 + $this->customizer->add_setting(
10139 + 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9',
10140 + [
10141 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_right_layout_8_9'],
10142 + 'capability' => 'edit_theme_options',
10143 + 'transport' => 'postMessage',
10144 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10145 +
10146 + ]
10147 + );
10148 +
10149 + $this->customizer->add_control(
10150 + new DimensionControl(
10151 + $this->customizer,
10152 + 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9',
10153 + [
10154 + 'type' => 'betterdocs-dimension',
10155 + 'section' => 'betterdocs_single_docs_settings',
10156 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9',
10157 + 'label' => __( 'Right', 'betterdocs' ),
10158 + 'priority' => 163,
10159 + 'input_attrs' => [
10160 + 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
10161 + ]
10162 + ]
10163 + )
10164 + );
10165 +
10166 + $this->customizer->add_setting(
10167 + 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9',
10168 + [
10169 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9'],
10170 + 'capability' => 'edit_theme_options',
10171 + 'transport' => 'postMessage',
10172 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10173 +
10174 + ]
10175 + );
10176 +
10177 + $this->customizer->add_control(
10178 + new DimensionControl(
10179 + $this->customizer,
10180 + 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9',
10181 + [
10182 + 'type' => 'betterdocs-dimension',
10183 + 'section' => 'betterdocs_single_docs_settings',
10184 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9',
10185 + 'label' => __( 'Bottom', 'betterdocs' ),
10186 + 'priority' => 163,
10187 + 'input_attrs' => [
10188 + 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
10189 + ]
10190 + ]
10191 + )
10192 + );
10193 +
10194 + $this->customizer->add_setting(
10195 + 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9',
10196 + [
10197 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_left_layout_8_9'],
10198 + 'capability' => 'edit_theme_options',
10199 + 'transport' => 'postMessage',
10200 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10201 +
10202 + ]
10203 + );
10204 +
10205 + $this->customizer->add_control(
10206 + new DimensionControl(
10207 + $this->customizer,
10208 + 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9',
10209 + [
10210 + 'type' => 'betterdocs-dimension',
10211 + 'section' => 'betterdocs_single_docs_settings',
10212 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9',
10213 + 'label' => __( 'Left', 'betterdocs' ),
10214 + 'priority' => 163,
10215 + 'input_attrs' => [
10216 + 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
10217 + ]
10218 + ]
10219 + )
10220 + );
10221 + }
10222 +
10223 + public function betterdocs_doc_single_attachment_label_margin_layout_8_9() {
10224 + $this->customizer->add_setting(
10225 + 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
10226 + [
10227 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_layout_8_9'],
10228 + 'capability' => 'edit_theme_options',
10229 + 'transport' => 'postMessage',
10230 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10231 +
10232 + ]
10233 + );
10234 +
10235 + $this->customizer->add_control(
10236 + new TitleControl(
10237 + $this->customizer,
10238 + 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
10239 + [
10240 + 'type' => 'betterdocs-title',
10241 + 'section' => 'betterdocs_single_docs_settings',
10242 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
10243 + 'label' => __( 'Label Margin', 'betterdocs' ),
10244 + 'priority' => 163,
10245 + 'input_attrs' => [
10246 + 'id' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
10247 + 'class' => 'betterdocs-dimension'
10248 + ]
10249 + ]
10250 + )
10251 + );
10252 +
10253 + $this->customizer->add_setting(
10254 + 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9',
10255 + [
10256 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_top_layout_8_9'],
10257 + 'capability' => 'edit_theme_options',
10258 + 'transport' => 'postMessage',
10259 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10260 + ]
10261 + );
10262 +
10263 + $this->customizer->add_control(
10264 + new DimensionControl(
10265 + $this->customizer,
10266 + 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9',
10267 + [
10268 + 'type' => 'betterdocs-dimension',
10269 + 'section' => 'betterdocs_single_docs_settings',
10270 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9',
10271 + 'label' => __( 'Top', 'betterdocs' ),
10272 + 'priority' => 163,
10273 + 'input_attrs' => [
10274 + 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
10275 + ]
10276 + ]
10277 + )
10278 + );
10279 +
10280 + $this->customizer->add_setting(
10281 + 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9',
10282 + [
10283 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_right_layout_8_9'],
10284 + 'capability' => 'edit_theme_options',
10285 + 'transport' => 'postMessage',
10286 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10287 +
10288 + ]
10289 + );
10290 +
10291 + $this->customizer->add_control(
10292 + new DimensionControl(
10293 + $this->customizer,
10294 + 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9',
10295 + [
10296 + 'type' => 'betterdocs-dimension',
10297 + 'section' => 'betterdocs_single_docs_settings',
10298 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9',
10299 + 'label' => __( 'Right', 'betterdocs' ),
10300 + 'priority' => 163,
10301 + 'input_attrs' => [
10302 + 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
10303 + ]
10304 + ]
10305 + )
10306 + );
10307 +
10308 + $this->customizer->add_setting(
10309 + 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9',
10310 + [
10311 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9'],
10312 + 'capability' => 'edit_theme_options',
10313 + 'transport' => 'postMessage',
10314 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10315 + ]
10316 + );
10317 +
10318 + $this->customizer->add_control(
10319 + new DimensionControl(
10320 + $this->customizer,
10321 + 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9',
10322 + [
10323 + 'type' => 'betterdocs-dimension',
10324 + 'section' => 'betterdocs_single_docs_settings',
10325 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9',
10326 + 'label' => __( 'Bottom', 'betterdocs' ),
10327 + 'priority' => 163,
10328 + 'input_attrs' => [
10329 + 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
10330 + ]
10331 + ]
10332 + )
10333 + );
10334 +
10335 + $this->customizer->add_setting(
10336 + 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9',
10337 + [
10338 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_left_layout_8_9'],
10339 + 'capability' => 'edit_theme_options',
10340 + 'transport' => 'postMessage',
10341 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10342 + ]
10343 + );
10344 +
10345 + $this->customizer->add_control(
10346 + new DimensionControl(
10347 + $this->customizer,
10348 + 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9',
10349 + [
10350 + 'type' => 'betterdocs-dimension',
10351 + 'section' => 'betterdocs_single_docs_settings',
10352 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9',
10353 + 'label' => __( 'Left', 'betterdocs' ),
10354 + 'priority' => 163,
10355 + 'input_attrs' => [
10356 + 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
10357 + ]
10358 + ]
10359 + )
10360 + );
10361 + }
10362 +
10363 + public function betterdocs_doc_single_attachment_list_font_size_layout_8_9() {
10364 + $this->customizer->add_setting(
10365 + 'betterdocs_doc_single_attachment_list_font_size_layout_8_9',
10366 + [
10367 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_size_layout_8_9'],
10368 + 'capability' => 'edit_theme_options',
10369 + 'transport' => 'postMessage',
10370 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10371 +
10372 + ]
10373 + );
10374 +
10375 + $this->customizer->add_control(
10376 + new RangeValueControl(
10377 + $this->customizer,
10378 + 'betterdocs_doc_single_attachment_list_font_size_layout_8_9',
10379 + [
10380 + 'type' => 'betterdocs-range-value',
10381 + 'section' => 'betterdocs_single_docs_settings',
10382 + 'settings' => 'betterdocs_doc_single_attachment_list_font_size_layout_8_9',
10383 + 'label' => __( 'List Font Size', 'betterdocs' ),
10384 + 'priority' => 163,
10385 + 'input_attrs' => [
10386 + 'min' => 0,
10387 + 'max' => 50,
10388 + 'step' => 1,
10389 + 'suffix' => 'px' //optional suffix
10390 + ]
10391 + ]
10392 + )
10393 + );
10394 + }
10395 +
10396 + public function betterdocs_doc_single_attachment_list_font_weight_layout_8_9() {
10397 + $this->customizer->add_setting(
10398 + 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
10399 + [
10400 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_weight_layout_8_9'],
10401 + 'capability' => 'edit_theme_options',
10402 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
10403 + ]
10404 + );
10405 +
10406 + $this->customizer->add_control(
10407 + new WP_Customize_Control(
10408 + $this->customizer,
10409 + 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
10410 + [
10411 + 'label' => __( 'List Font Weight', 'betterdocs' ),
10412 + 'section' => 'betterdocs_single_docs_settings',
10413 + 'settings' => 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
10414 + 'type' => 'select',
10415 + 'choices' => [
10416 + 'normal' => 'Normal',
10417 + '100' => '100',
10418 + '200' => '200',
10419 + '300' => '300',
10420 + '400' => '400',
10421 + '500' => '500',
10422 + '600' => '600',
10423 + '700' => '700',
10424 + '800' => '800',
10425 + '900' => '900'
10426 + ],
10427 + 'priority' => 163
10428 + ]
10429 + )
10430 + );
10431 + }
10432 +
10433 + public function betterdocs_doc_single_attachment_list_extension_color_layout_8_9() {
10434 + $this->customizer->add_setting(
10435 + 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
10436 + [
10437 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_color_layout_8_9'],
10438 + 'capability' => 'edit_theme_options',
10439 + 'transport' => 'postMessage',
10440 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10441 + ]
10442 + );
10443 +
10444 + $this->customizer->add_control(
10445 + new AlphaColorControl(
10446 + $this->customizer,
10447 + 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
10448 + [
10449 + 'label' => __( 'Extension Color', 'betterdocs' ),
10450 + 'section' => 'betterdocs_single_docs_settings',
10451 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
10452 + 'priority' => 163
10453 + ]
10454 + )
10455 + );
10456 + }
10457 +
10458 + public function betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9() {
10459 + $this->customizer->add_setting(
10460 + 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9',
10461 + [
10462 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9'],
10463 + 'capability' => 'edit_theme_options',
10464 + 'transport' => 'postMessage',
10465 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10466 +
10467 + ]
10468 + );
10469 +
10470 + $this->customizer->add_control(
10471 + new RangeValueControl(
10472 + $this->customizer,
10473 + 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9',
10474 + [
10475 + 'type' => 'betterdocs-range-value',
10476 + 'section' => 'betterdocs_single_docs_settings',
10477 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9',
10478 + 'label' => __( 'Extension Font Size', 'betterdocs' ),
10479 + 'priority' => 163,
10480 + 'input_attrs' => [
10481 + 'min' => 0,
10482 + 'max' => 50,
10483 + 'step' => 1,
10484 + 'suffix' => 'px' //optional suffix
10485 + ]
10486 + ]
10487 + )
10488 + );
10489 + }
10490 +
10491 + public function betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9() {
10492 + $this->customizer->add_setting(
10493 + 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
10494 + [
10495 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9'],
10496 + 'capability' => 'edit_theme_options',
10497 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
10498 + ]
10499 + );
10500 +
10501 + $this->customizer->add_control(
10502 + new WP_Customize_Control(
10503 + $this->customizer,
10504 + 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
10505 + [
10506 + 'label' => __( 'Extension Font Weight', 'betterdocs' ),
10507 + 'section' => 'betterdocs_single_docs_settings',
10508 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
10509 + 'type' => 'select',
10510 + 'choices' => [
10511 + 'normal' => 'Normal',
10512 + '100' => '100',
10513 + '200' => '200',
10514 + '300' => '300',
10515 + '400' => '400',
10516 + '500' => '500',
10517 + '600' => '600',
10518 + '700' => '700',
10519 + '800' => '800',
10520 + '900' => '900'
10521 + ],
10522 + 'priority' => 163
10523 + ]
10524 + )
10525 + );
10526 + }
10527 +
10528 + public function betterdocs_doc_single_attachment_list_color_layout_8_9() {
10529 + $this->customizer->add_setting(
10530 + 'betterdocs_doc_single_attachment_list_color_layout_8_9',
10531 + [
10532 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_color_layout_8_9'],
10533 + 'capability' => 'edit_theme_options',
10534 + 'transport' => 'postMessage',
10535 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10536 + ]
10537 + );
10538 +
10539 + $this->customizer->add_control(
10540 + new AlphaColorControl(
10541 + $this->customizer,
10542 + 'betterdocs_doc_single_attachment_list_color_layout_8_9',
10543 + [
10544 + 'label' => __( 'List Color', 'betterdocs' ),
10545 + 'section' => 'betterdocs_single_docs_settings',
10546 + 'settings' => 'betterdocs_doc_single_attachment_list_color_layout_8_9',
10547 + 'priority' => 163
10548 + ]
10549 + )
10550 + );
10551 + }
10552 +
10553 + public function betterdocs_doc_single_attachment_list_background_color_layout_8_9() {
10554 + $this->customizer->add_setting(
10555 + 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
10556 + [
10557 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_background_color_layout_8_9'],
10558 + 'capability' => 'edit_theme_options',
10559 + 'transport' => 'postMessage',
10560 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10561 + ]
10562 + );
10563 +
10564 + $this->customizer->add_control(
10565 + new AlphaColorControl(
10566 + $this->customizer,
10567 + 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
10568 + [
10569 + 'label' => __( 'List Background Color', 'betterdocs' ),
10570 + 'section' => 'betterdocs_single_docs_settings',
10571 + 'settings' => 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
10572 + 'priority' => 163
10573 + ]
10574 + )
10575 + );
10576 + }
10577 +
10578 + public function betterdocs_doc_single_attachment_list_padding_layout_8_9() {
10579 + $this->customizer->add_setting(
10580 + 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
10581 + [
10582 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_layout_8_9'],
10583 + 'capability' => 'edit_theme_options',
10584 + 'transport' => 'postMessage',
10585 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10586 +
10587 + ]
10588 + );
10589 +
10590 + $this->customizer->add_control(
10591 + new TitleControl(
10592 + $this->customizer,
10593 + 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
10594 + [
10595 + 'type' => 'betterdocs-title',
10596 + 'section' => 'betterdocs_single_docs_settings',
10597 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
10598 + 'label' => __( 'List Padding', 'betterdocs' ),
10599 + 'priority' => 163,
10600 + 'input_attrs' => [
10601 + 'id' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
10602 + 'class' => 'betterdocs-dimension'
10603 + ]
10604 + ]
10605 + )
10606 + );
10607 +
10608 + $this->customizer->add_setting(
10609 + 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9',
10610 + [
10611 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_top_layout_8_9'],
10612 + 'capability' => 'edit_theme_options',
10613 + 'transport' => 'postMessage',
10614 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10615 + ]
10616 + );
10617 +
10618 + $this->customizer->add_control(
10619 + new DimensionControl(
10620 + $this->customizer,
10621 + 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9',
10622 + [
10623 + 'type' => 'betterdocs-dimension',
10624 + 'section' => 'betterdocs_single_docs_settings',
10625 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9',
10626 + 'label' => __( 'Top', 'betterdocs' ),
10627 + 'priority' => 163,
10628 + 'input_attrs' => [
10629 + 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
10630 + ]
10631 + ]
10632 + )
10633 + );
10634 +
10635 + $this->customizer->add_setting(
10636 + 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9',
10637 + [
10638 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_right_layout_8_9'],
10639 + 'capability' => 'edit_theme_options',
10640 + 'transport' => 'postMessage',
10641 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10642 +
10643 + ]
10644 + );
10645 +
10646 + $this->customizer->add_control(
10647 + new DimensionControl(
10648 + $this->customizer,
10649 + 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9',
10650 + [
10651 + 'type' => 'betterdocs-dimension',
10652 + 'section' => 'betterdocs_single_docs_settings',
10653 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9',
10654 + 'label' => __( 'Right', 'betterdocs' ),
10655 + 'priority' => 163,
10656 + 'input_attrs' => [
10657 + 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
10658 + ]
10659 + ]
10660 + )
10661 + );
10662 +
10663 + $this->customizer->add_setting(
10664 + 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9',
10665 + [
10666 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9'],
10667 + 'capability' => 'edit_theme_options',
10668 + 'transport' => 'postMessage',
10669 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10670 + ]
10671 + );
10672 +
10673 + $this->customizer->add_control(
10674 + new DimensionControl(
10675 + $this->customizer,
10676 + 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9',
10677 + [
10678 + 'type' => 'betterdocs-dimension',
10679 + 'section' => 'betterdocs_single_docs_settings',
10680 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9',
10681 + 'label' => __( 'Bottom', 'betterdocs' ),
10682 + 'priority' => 163,
10683 + 'input_attrs' => [
10684 + 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
10685 + ]
10686 + ]
10687 + )
10688 + );
10689 +
10690 + $this->customizer->add_setting(
10691 + 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9',
10692 + [
10693 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_left_layout_8_9'],
10694 + 'capability' => 'edit_theme_options',
10695 + 'transport' => 'postMessage',
10696 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10697 + ]
10698 + );
10699 +
10700 + $this->customizer->add_control(
10701 + new DimensionControl(
10702 + $this->customizer,
10703 + 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9',
10704 + [
10705 + 'type' => 'betterdocs-dimension',
10706 + 'section' => 'betterdocs_single_docs_settings',
10707 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9',
10708 + 'label' => __( 'Left', 'betterdocs' ),
10709 + 'priority' => 163,
10710 + 'input_attrs' => [
10711 + 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
10712 + ]
10713 + ]
10714 + )
10715 + );
10716 + }
10717 +
10718 + public function betterdocs_doc_single_attachment_list_margin_layout_8_9() {
10719 + $this->customizer->add_setting(
10720 + 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
10721 + [
10722 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_layout_8_9'],
10723 + 'capability' => 'edit_theme_options',
10724 + 'transport' => 'postMessage',
10725 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10726 +
10727 + ]
10728 + );
10729 +
10730 + $this->customizer->add_control(
10731 + new TitleControl(
10732 + $this->customizer,
10733 + 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
10734 + [
10735 + 'type' => 'betterdocs-title',
10736 + 'section' => 'betterdocs_single_docs_settings',
10737 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
10738 + 'label' => __( 'List Margin', 'betterdocs' ),
10739 + 'priority' => 163,
10740 + 'input_attrs' => [
10741 + 'id' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
10742 + 'class' => 'betterdocs-dimension'
10743 + ]
10744 + ]
10745 + )
10746 + );
10747 +
10748 + $this->customizer->add_setting(
10749 + 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9',
10750 + [
10751 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_top_layout_8_9'],
10752 + 'capability' => 'edit_theme_options',
10753 + 'transport' => 'postMessage',
10754 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10755 + ]
10756 + );
10757 +
10758 + $this->customizer->add_control(
10759 + new DimensionControl(
10760 + $this->customizer,
10761 + 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9',
10762 + [
10763 + 'type' => 'betterdocs-dimension',
10764 + 'section' => 'betterdocs_single_docs_settings',
10765 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9',
10766 + 'label' => __( 'Top', 'betterdocs' ),
10767 + 'priority' => 163,
10768 + 'input_attrs' => [
10769 + 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
10770 + ]
10771 + ]
10772 + )
10773 + );
10774 +
10775 + $this->customizer->add_setting(
10776 + 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9',
10777 + [
10778 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_right_layout_8_9'],
10779 + 'capability' => 'edit_theme_options',
10780 + 'transport' => 'postMessage',
10781 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10782 +
10783 + ]
10784 + );
10785 +
10786 + $this->customizer->add_control(
10787 + new DimensionControl(
10788 + $this->customizer,
10789 + 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9',
10790 + [
10791 + 'type' => 'betterdocs-dimension',
10792 + 'section' => 'betterdocs_single_docs_settings',
10793 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9',
10794 + 'label' => __( 'Right', 'betterdocs' ),
10795 + 'priority' => 163,
10796 + 'input_attrs' => [
10797 + 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
10798 + ]
10799 + ]
10800 + )
10801 + );
10802 +
10803 + $this->customizer->add_setting(
10804 + 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9',
10805 + [
10806 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9'],
10807 + 'capability' => 'edit_theme_options',
10808 + 'transport' => 'postMessage',
10809 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10810 + ]
10811 + );
10812 +
10813 + $this->customizer->add_control(
10814 + new DimensionControl(
10815 + $this->customizer,
10816 + 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9',
10817 + [
10818 + 'type' => 'betterdocs-dimension',
10819 + 'section' => 'betterdocs_single_docs_settings',
10820 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9',
10821 + 'label' => __( 'Bottom', 'betterdocs' ),
10822 + 'priority' => 163,
10823 + 'input_attrs' => [
10824 + 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
10825 + ]
10826 + ]
10827 + )
10828 + );
10829 +
10830 + $this->customizer->add_setting(
10831 + 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9',
10832 + [
10833 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_left_layout_8_9'],
10834 + 'capability' => 'edit_theme_options',
10835 + 'transport' => 'postMessage',
10836 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10837 + ]
10838 + );
10839 +
10840 + $this->customizer->add_control(
10841 + new DimensionControl(
10842 + $this->customizer,
10843 + 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9',
10844 + [
10845 + 'type' => 'betterdocs-dimension',
10846 + 'section' => 'betterdocs_single_docs_settings',
10847 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9',
10848 + 'label' => __( 'Left', 'betterdocs' ),
10849 + 'priority' => 163,
10850 + 'input_attrs' => [
10851 + 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
10852 + ]
10853 + ]
10854 + )
10855 + );
10856 + }
10857 +
10858 + public function betterdocs_doc_single_related_docs_heading() {
10859 + $this->customizer->add_setting(
10860 + 'betterdocs_doc_single_related_docs_heading',
10861 + [
10862 + 'default' => 'betterdocs_doc_single_related_docs_heading',
10863 + 'sanitize_callback' => 'esc_html'
10864 + ]
10865 + );
10866 +
10867 + $this->customizer->add_control(
10868 + new SeparatorControl(
10869 + $this->customizer,
10870 + 'betterdocs_doc_single_related_docs_heading',
10871 + [
10872 + 'label' => __( 'Related Docs', 'betterdocs' ),
10873 + 'priority' => 163,
10874 + 'settings' => 'betterdocs_doc_single_related_docs_heading',
10875 + 'section' => 'betterdocs_single_docs_settings'
10876 + ]
10877 + )
10878 + );
10879 + }
10880 +
10881 + public function betterdocs_doc_single_related_docs_content_bg_color() {
10882 + $this->customizer->add_setting(
10883 + 'betterdocs_doc_single_related_docs_content_bg_color',
10884 + [
10885 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_bg_color'],
10886 + 'capability' => 'edit_theme_options',
10887 + 'transport' => 'postMessage',
10888 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10889 + ]
10890 + );
10891 +
10892 + $this->customizer->add_control(
10893 + new AlphaColorControl(
10894 + $this->customizer,
10895 + 'betterdocs_doc_single_related_docs_content_bg_color',
10896 + [
10897 + 'label' => __( 'Content Background Color', 'betterdocs' ),
10898 + 'section' => 'betterdocs_single_docs_settings',
10899 + 'settings' => 'betterdocs_doc_single_related_docs_content_bg_color',
10900 + 'priority' => 163
10901 + ]
10902 + )
10903 + );
10904 + }
10905 +
10906 + public function betterdocs_doc_single_related_docs_content_padding() {
10907 + $this->customizer->add_setting(
10908 + 'betterdocs_doc_single_related_docs_content_padding',
10909 + [
10910 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding'],
10911 + 'capability' => 'edit_theme_options',
10912 + 'transport' => 'postMessage',
10913 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10914 +
10915 + ]
10916 + );
10917 +
10918 + $this->customizer->add_control(
10919 + new TitleControl(
10920 + $this->customizer,
10921 + 'betterdocs_doc_single_related_docs_content_padding',
10922 + [
10923 + 'type' => 'betterdocs-title',
10924 + 'section' => 'betterdocs_single_docs_settings',
10925 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding',
10926 + 'label' => __( 'Content Padding', 'betterdocs' ),
10927 + 'priority' => 163,
10928 + 'input_attrs' => [
10929 + 'id' => 'betterdocs_doc_single_related_docs_content_padding',
10930 + 'class' => 'betterdocs-dimension'
10931 + ]
10932 + ]
10933 + )
10934 + );
10935 +
10936 + $this->customizer->add_setting(
10937 + 'betterdocs_doc_single_related_docs_content_padding_top',
10938 + [
10939 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_top'],
10940 + 'capability' => 'edit_theme_options',
10941 + 'transport' => 'postMessage',
10942 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10943 + ]
10944 + );
10945 +
10946 + $this->customizer->add_control(
10947 + new DimensionControl(
10948 + $this->customizer,
10949 + 'betterdocs_doc_single_related_docs_content_padding_top',
10950 + [
10951 + 'type' => 'betterdocs-dimension',
10952 + 'section' => 'betterdocs_single_docs_settings',
10953 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_top',
10954 + 'label' => __( 'Top', 'betterdocs' ),
10955 + 'priority' => 163,
10956 + 'input_attrs' => [
10957 + 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
10958 + ]
10959 + ]
10960 + )
10961 + );
10962 +
10963 + $this->customizer->add_setting(
10964 + 'betterdocs_doc_single_related_docs_content_padding_right',
10965 + [
10966 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_right'],
10967 + 'capability' => 'edit_theme_options',
10968 + 'transport' => 'postMessage',
10969 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10970 +
10971 + ]
10972 + );
10973 +
10974 + $this->customizer->add_control(
10975 + new DimensionControl(
10976 + $this->customizer,
10977 + 'betterdocs_doc_single_related_docs_content_padding_right',
10978 + [
10979 + 'type' => 'betterdocs-dimension',
10980 + 'section' => 'betterdocs_single_docs_settings',
10981 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_right',
10982 + 'label' => __( 'Right', 'betterdocs' ),
10983 + 'priority' => 163,
10984 + 'input_attrs' => [
10985 + 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
10986 + ]
10987 + ]
10988 + )
10989 + );
10990 +
10991 + $this->customizer->add_setting(
10992 + 'betterdocs_doc_single_related_docs_content_padding_bottom',
10993 + [
10994 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_bottom'],
10995 + 'capability' => 'edit_theme_options',
10996 + 'transport' => 'postMessage',
10997 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10998 +
10999 + ]
11000 + );
11001 +
11002 + $this->customizer->add_control(
11003 + new DimensionControl(
11004 + $this->customizer,
11005 + 'betterdocs_doc_single_related_docs_content_padding_bottom',
11006 + [
11007 + 'type' => 'betterdocs-dimension',
11008 + 'section' => 'betterdocs_single_docs_settings',
11009 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_bottom',
11010 + 'label' => __( 'Bottom', 'betterdocs' ),
11011 + 'priority' => 163,
11012 + 'input_attrs' => [
11013 + 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
11014 + ]
11015 + ]
11016 + )
11017 + );
11018 +
11019 + $this->customizer->add_setting(
11020 + 'betterdocs_doc_single_related_docs_content_padding_left',
11021 + [
11022 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_left'],
11023 + 'capability' => 'edit_theme_options',
11024 + 'transport' => 'postMessage',
11025 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11026 +
11027 + ]
11028 + );
11029 +
11030 + $this->customizer->add_control(
11031 + new DimensionControl(
11032 + $this->customizer,
11033 + 'betterdocs_doc_single_related_docs_content_padding_left',
11034 + [
11035 + 'type' => 'betterdocs-dimension',
11036 + 'section' => 'betterdocs_single_docs_settings',
11037 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_left',
11038 + 'label' => __( 'Left', 'betterdocs' ),
11039 + 'priority' => 163,
11040 + 'input_attrs' => [
11041 + 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
11042 + ]
11043 + ]
11044 + )
11045 + );
11046 + }
11047 +
11048 + public function betterdocs_doc_single_related_docs_content_margin() {
11049 + $this->customizer->add_setting(
11050 + 'betterdocs_doc_single_related_docs_content_margin',
11051 + [
11052 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin'],
11053 + 'capability' => 'edit_theme_options',
11054 + 'transport' => 'postMessage',
11055 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11056 +
11057 + ]
11058 + );
11059 +
11060 + $this->customizer->add_control(
11061 + new TitleControl(
11062 + $this->customizer,
11063 + 'betterdocs_doc_single_related_docs_content_margin',
11064 + [
11065 + 'type' => 'betterdocs-title',
11066 + 'section' => 'betterdocs_single_docs_settings',
11067 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin',
11068 + 'label' => __( 'Content Margin', 'betterdocs' ),
11069 + 'priority' => 163,
11070 + 'input_attrs' => [
11071 + 'id' => 'betterdocs_doc_single_related_docs_content_margin',
11072 + 'class' => 'betterdocs-dimension'
11073 + ]
11074 + ]
11075 + )
11076 + );
11077 +
11078 + $this->customizer->add_setting(
11079 + 'betterdocs_doc_single_related_docs_content_margin_top',
11080 + [
11081 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_top'],
11082 + 'capability' => 'edit_theme_options',
11083 + 'transport' => 'postMessage',
11084 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11085 + ]
11086 + );
11087 +
11088 + $this->customizer->add_control(
11089 + new DimensionControl(
11090 + $this->customizer,
11091 + 'betterdocs_doc_single_related_docs_content_margin_top',
11092 + [
11093 + 'type' => 'betterdocs-dimension',
11094 + 'section' => 'betterdocs_single_docs_settings',
11095 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_top',
11096 + 'label' => __( 'Top', 'betterdocs' ),
11097 + 'priority' => 163,
11098 + 'input_attrs' => [
11099 + 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
11100 + ]
11101 + ]
11102 + )
11103 + );
11104 +
11105 + $this->customizer->add_setting(
11106 + 'betterdocs_doc_single_related_docs_content_margin_right',
11107 + [
11108 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_right'],
11109 + 'capability' => 'edit_theme_options',
11110 + 'transport' => 'postMessage',
11111 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11112 +
11113 + ]
11114 + );
11115 +
11116 + $this->customizer->add_control(
11117 + new DimensionControl(
11118 + $this->customizer,
11119 + 'betterdocs_doc_single_related_docs_content_margin_right',
11120 + [
11121 + 'type' => 'betterdocs-dimension',
11122 + 'section' => 'betterdocs_single_docs_settings',
11123 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_right',
11124 + 'label' => __( 'Right', 'betterdocs' ),
11125 + 'priority' => 163,
11126 + 'input_attrs' => [
11127 + 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
11128 + ]
11129 + ]
11130 + )
11131 + );
11132 +
11133 + $this->customizer->add_setting(
11134 + 'betterdocs_doc_single_related_docs_content_margin_bottom',
11135 + [
11136 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_bottom'],
11137 + 'capability' => 'edit_theme_options',
11138 + 'transport' => 'postMessage',
11139 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11140 +
11141 + ]
11142 + );
11143 +
11144 + $this->customizer->add_control(
11145 + new DimensionControl(
11146 + $this->customizer,
11147 + 'betterdocs_doc_single_related_docs_content_margin_bottom',
11148 + [
11149 + 'type' => 'betterdocs-dimension',
11150 + 'section' => 'betterdocs_single_docs_settings',
11151 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_bottom',
11152 + 'label' => __( 'Bottom', 'betterdocs' ),
11153 + 'priority' => 163,
11154 + 'input_attrs' => [
11155 + 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
11156 + ]
11157 + ]
11158 + )
11159 + );
11160 +
11161 + $this->customizer->add_setting(
11162 + 'betterdocs_doc_single_related_docs_content_margin_left',
11163 + [
11164 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_left'],
11165 + 'capability' => 'edit_theme_options',
11166 + 'transport' => 'postMessage',
11167 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11168 +
11169 + ]
11170 + );
11171 +
11172 + $this->customizer->add_control(
11173 + new DimensionControl(
11174 + $this->customizer,
11175 + 'betterdocs_doc_single_related_docs_content_margin_left',
11176 + [
11177 + 'type' => 'betterdocs-dimension',
11178 + 'section' => 'betterdocs_single_docs_settings',
11179 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_left',
11180 + 'label' => __( 'Left', 'betterdocs' ),
11181 + 'priority' => 163,
11182 + 'input_attrs' => [
11183 + 'class' => 'betterdocs_doc_single_related_docs_content_margin_left betterdocs-dimension'
11184 + ]
11185 + ]
11186 + )
11187 + );
11188 + }
11189 +
11190 + public function betterdocs_doc_single_related_docs_label_color() {
11191 + $this->customizer->add_setting(
11192 + 'betterdocs_doc_single_related_docs_label_color',
11193 + [
11194 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_color'],
11195 + 'capability' => 'edit_theme_options',
11196 + 'transport' => 'postMessage',
11197 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
11198 + ]
11199 + );
11200 +
11201 + $this->customizer->add_control(
11202 + new AlphaColorControl(
11203 + $this->customizer,
11204 + 'betterdocs_doc_single_related_docs_label_color',
11205 + [
11206 + 'label' => __( 'Label Color', 'betterdocs' ),
11207 + 'section' => 'betterdocs_single_docs_settings',
11208 + 'settings' => 'betterdocs_doc_single_related_docs_label_color',
11209 + 'priority' => 163
11210 + ]
11211 + )
11212 + );
11213 + }
11214 +
11215 + public function betterdocs_doc_single_related_docs_label_padding() {
11216 + $this->customizer->add_setting(
11217 + 'betterdocs_doc_single_related_docs_label_padding',
11218 + [
11219 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding'],
11220 + 'capability' => 'edit_theme_options',
11221 + 'transport' => 'postMessage',
11222 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11223 +
11224 + ]
11225 + );
11226 +
11227 + $this->customizer->add_control(
11228 + new TitleControl(
11229 + $this->customizer,
11230 + 'betterdocs_doc_single_related_docs_label_padding',
11231 + [
11232 + 'type' => 'betterdocs-title',
11233 + 'section' => 'betterdocs_single_docs_settings',
11234 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding',
11235 + 'label' => __( 'Label Padding', 'betterdocs' ),
11236 + 'priority' => 163,
11237 + 'input_attrs' => [
11238 + 'id' => 'betterdocs_doc_single_related_docs_label_padding',
11239 + 'class' => 'betterdocs-dimension'
11240 + ]
11241 + ]
11242 + )
11243 + );
11244 +
11245 + $this->customizer->add_setting(
11246 + 'betterdocs_doc_single_related_docs_label_padding_top',
11247 + [
11248 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_top'],
11249 + 'capability' => 'edit_theme_options',
11250 + 'transport' => 'postMessage',
11251 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11252 + ]
11253 + );
11254 +
11255 + $this->customizer->add_control(
11256 + new DimensionControl(
11257 + $this->customizer,
11258 + 'betterdocs_doc_single_related_docs_label_padding_top',
11259 + [
11260 + 'type' => 'betterdocs-dimension',
11261 + 'section' => 'betterdocs_single_docs_settings',
11262 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_top',
11263 + 'label' => __( 'Top', 'betterdocs' ),
11264 + 'priority' => 163,
11265 + 'input_attrs' => [
11266 + 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
11267 + ]
11268 + ]
11269 + )
11270 + );
11271 +
11272 + $this->customizer->add_setting(
11273 + 'betterdocs_doc_single_related_docs_label_padding_right',
11274 + [
11275 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_right'],
11276 + 'capability' => 'edit_theme_options',
11277 + 'transport' => 'postMessage',
11278 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11279 +
11280 + ]
11281 + );
11282 +
11283 + $this->customizer->add_control(
11284 + new DimensionControl(
11285 + $this->customizer,
11286 + 'betterdocs_doc_single_related_docs_label_padding_right',
11287 + [
11288 + 'type' => 'betterdocs-dimension',
11289 + 'section' => 'betterdocs_single_docs_settings',
11290 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_right',
11291 + 'label' => __( 'Right', 'betterdocs' ),
11292 + 'priority' => 163,
11293 + 'input_attrs' => [
11294 + 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
11295 + ]
11296 + ]
11297 + )
11298 + );
11299 +
11300 + $this->customizer->add_setting(
11301 + 'betterdocs_doc_single_related_docs_label_padding_bottom',
11302 + [
11303 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_bottom'],
11304 + 'capability' => 'edit_theme_options',
11305 + 'transport' => 'postMessage',
11306 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11307 +
11308 + ]
11309 + );
11310 +
11311 + $this->customizer->add_control(
11312 + new DimensionControl(
11313 + $this->customizer,
11314 + 'betterdocs_doc_single_related_docs_label_padding_bottom',
11315 + [
11316 + 'type' => 'betterdocs-dimension',
11317 + 'section' => 'betterdocs_single_docs_settings',
11318 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_bottom',
11319 + 'label' => __( 'Bottom', 'betterdocs' ),
11320 + 'priority' => 163,
11321 + 'input_attrs' => [
11322 + 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
11323 + ]
11324 + ]
11325 + )
11326 + );
11327 +
11328 + $this->customizer->add_setting(
11329 + 'betterdocs_doc_single_related_docs_label_padding_left',
11330 + [
11331 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_left'],
11332 + 'capability' => 'edit_theme_options',
11333 + 'transport' => 'postMessage',
11334 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11335 +
11336 + ]
11337 + );
11338 +
11339 + $this->customizer->add_control(
11340 + new DimensionControl(
11341 + $this->customizer,
11342 + 'betterdocs_doc_single_related_docs_label_padding_left',
11343 + [
11344 + 'type' => 'betterdocs-dimension',
11345 + 'section' => 'betterdocs_single_docs_settings',
11346 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_left',
11347 + 'label' => __( 'Left', 'betterdocs' ),
11348 + 'priority' => 163,
11349 + 'input_attrs' => [
11350 + 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
11351 + ]
11352 + ]
11353 + )
11354 + );
11355 + }
11356 +
11357 + public function betterdocs_doc_single_related_docs_label_margin() {
11358 + $this->customizer->add_setting(
11359 + 'betterdocs_doc_single_related_docs_label_margin',
11360 + [
11361 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin'],
11362 + 'capability' => 'edit_theme_options',
11363 + 'transport' => 'postMessage',
11364 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11365 +
11366 + ]
11367 + );
11368 +
11369 + $this->customizer->add_control(
11370 + new TitleControl(
11371 + $this->customizer,
11372 + 'betterdocs_doc_single_related_docs_label_margin',
11373 + [
11374 + 'type' => 'betterdocs-title',
11375 + 'section' => 'betterdocs_single_docs_settings',
11376 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin',
11377 + 'label' => __( 'Label Margin', 'betterdocs' ),
11378 + 'priority' => 163,
11379 + 'input_attrs' => [
11380 + 'id' => 'betterdocs_doc_single_related_docs_label_margin',
11381 + 'class' => 'betterdocs-dimension'
11382 + ]
11383 + ]
11384 + )
11385 + );
11386 +
11387 + $this->customizer->add_setting(
11388 + 'betterdocs_doc_single_related_docs_label_margin_top',
11389 + [
11390 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_top'],
11391 + 'capability' => 'edit_theme_options',
11392 + 'transport' => 'postMessage',
11393 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11394 + ]
11395 + );
11396 +
11397 + $this->customizer->add_control(
11398 + new DimensionControl(
11399 + $this->customizer,
11400 + 'betterdocs_doc_single_related_docs_label_margin_top',
11401 + [
11402 + 'type' => 'betterdocs-dimension',
11403 + 'section' => 'betterdocs_single_docs_settings',
11404 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_top',
11405 + 'label' => __( 'Top', 'betterdocs' ),
11406 + 'priority' => 163,
11407 + 'input_attrs' => [
11408 + 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
11409 + ]
11410 + ]
11411 + )
11412 + );
11413 +
11414 + $this->customizer->add_setting(
11415 + 'betterdocs_doc_single_related_docs_label_margin_right',
11416 + [
11417 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_right'],
11418 + 'capability' => 'edit_theme_options',
11419 + 'transport' => 'postMessage',
11420 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11421 +
11422 + ]
11423 + );
11424 +
11425 + $this->customizer->add_control(
11426 + new DimensionControl(
11427 + $this->customizer,
11428 + 'betterdocs_doc_single_related_docs_label_margin_right',
11429 + [
11430 + 'type' => 'betterdocs-dimension',
11431 + 'section' => 'betterdocs_single_docs_settings',
11432 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_right',
11433 + 'label' => __( 'Right', 'betterdocs' ),
11434 + 'priority' => 163,
11435 + 'input_attrs' => [
11436 + 'class' => 'betterdocs_doc_single_related_docs_label_margin_right betterdocs-dimension'
11437 + ]
11438 + ]
11439 + )
11440 + );
11441 +
11442 + $this->customizer->add_setting(
11443 + 'betterdocs_doc_single_related_docs_label_margin_bottom',
11444 + [
11445 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_bottom'],
11446 + 'capability' => 'edit_theme_options',
11447 + 'transport' => 'postMessage',
11448 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11449 + ]
11450 + );
11451 +
11452 + $this->customizer->add_control(
11453 + new DimensionControl(
11454 + $this->customizer,
11455 + 'betterdocs_doc_single_related_docs_label_margin_bottom',
11456 + [
11457 + 'type' => 'betterdocs-dimension',
11458 + 'section' => 'betterdocs_single_docs_settings',
11459 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_bottom',
11460 + 'label' => __( 'Bottom', 'betterdocs' ),
11461 + 'priority' => 163,
11462 + 'input_attrs' => [
11463 + 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
11464 + ]
11465 + ]
11466 + )
11467 + );
11468 +
11469 + $this->customizer->add_setting(
11470 + 'betterdocs_doc_single_related_docs_label_margin_left',
11471 + [
11472 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_left'],
11473 + 'capability' => 'edit_theme_options',
11474 + 'transport' => 'postMessage',
11475 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11476 + ]
11477 + );
11478 +
11479 + $this->customizer->add_control(
11480 + new DimensionControl(
11481 + $this->customizer,
11482 + 'betterdocs_doc_single_related_docs_label_margin_left',
11483 + [
11484 + 'type' => 'betterdocs-dimension',
11485 + 'section' => 'betterdocs_single_docs_settings',
11486 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_left',
11487 + 'label' => __( 'Left', 'betterdocs' ),
11488 + 'priority' => 163,
11489 + 'input_attrs' => [
11490 + 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
11491 + ]
11492 + ]
11493 + )
11494 + );
11495 + }
11496 +
11497 + public function betterdocs_doc_related_docs_list_font_size() {
11498 + $this->customizer->add_setting(
11499 + 'betterdocs_doc_related_docs_list_font_size',
11500 + [
11501 + 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_size'],
11502 + 'capability' => 'edit_theme_options',
11503 + 'transport' => 'postMessage',
11504 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11505 +
11506 + ]
11507 + );
11508 +
11509 + $this->customizer->add_control(
11510 + new RangeValueControl(
11511 + $this->customizer,
11512 + 'betterdocs_doc_related_docs_list_font_size',
11513 + [
11514 + 'type' => 'betterdocs-range-value',
11515 + 'section' => 'betterdocs_single_docs_settings',
11516 + 'settings' => 'betterdocs_doc_related_docs_list_font_size',
11517 + 'label' => __( 'List Font Size', 'betterdocs' ),
11518 + 'priority' => 163,
11519 + 'input_attrs' => [
11520 + 'min' => 0,
11521 + 'max' => 50,
11522 + 'step' => 1,
11523 + 'suffix' => 'px' //optional suffix
11524 + ]
11525 + ]
11526 + )
11527 + );
11528 + }
11529 +
11530 + public function betterdocs_doc_related_docs_list_font_weight() {
11531 + $this->customizer->add_setting(
11532 + 'betterdocs_doc_related_docs_list_font_weight',
11533 + [
11534 + 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_weight'],
11535 + 'capability' => 'edit_theme_options',
11536 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
11537 + ]
11538 + );
11539 +
11540 + $this->customizer->add_control(
11541 + new WP_Customize_Control(
11542 + $this->customizer,
11543 + 'betterdocs_doc_related_docs_list_font_weight',
11544 + [
11545 + 'label' => __( 'List Font Weight', 'betterdocs' ),
11546 + 'section' => 'betterdocs_single_docs_settings',
11547 + 'settings' => 'betterdocs_doc_related_docs_list_font_weight',
11548 + 'type' => 'select',
11549 + 'choices' => [
11550 + 'normal' => 'Normal',
11551 + '100' => '100',
11552 + '200' => '200',
11553 + '300' => '300',
11554 + '400' => '400',
11555 + '500' => '500',
11556 + '600' => '600',
11557 + '700' => '700',
11558 + '800' => '800',
11559 + '900' => '900'
11560 + ],
11561 + 'priority' => 163
11562 + ]
11563 + )
11564 + );
11565 + }
11566 +
11567 +
11568 + public function betterdocs_doc_single_related_docs_list_color() {
11569 + $this->customizer->add_setting(
11570 + 'betterdocs_doc_single_related_docs_list_color',
11571 + [
11572 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_color'],
11573 + 'capability' => 'edit_theme_options',
11574 + 'transport' => 'postMessage',
11575 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
11576 + ]
11577 + );
11578 +
11579 + $this->customizer->add_control(
11580 + new AlphaColorControl(
11581 + $this->customizer,
11582 + 'betterdocs_doc_single_related_docs_list_color',
11583 + [
11584 + 'label' => __( 'List Color', 'betterdocs' ),
11585 + 'section' => 'betterdocs_single_docs_settings',
11586 + 'settings' => 'betterdocs_doc_single_related_docs_list_color',
11587 + 'priority' => 163
11588 + ]
11589 + )
11590 + );
11591 + }
11592 +
11593 + public function betterdocs_doc_single_related_docs_list_background_color() {
11594 + $this->customizer->add_setting(
11595 + 'betterdocs_doc_single_related_docs_list_background_color',
11596 + [
11597 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_background_color'],
11598 + 'capability' => 'edit_theme_options',
11599 + 'transport' => 'postMessage',
11600 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
11601 + ]
11602 + );
11603 +
11604 + $this->customizer->add_control(
11605 + new AlphaColorControl(
11606 + $this->customizer,
11607 + 'betterdocs_doc_single_related_docs_list_background_color',
11608 + [
11609 + 'label' => __( 'List Background Color', 'betterdocs' ),
11610 + 'section' => 'betterdocs_single_docs_settings',
11611 + 'settings' => 'betterdocs_doc_single_related_docs_list_background_color',
11612 + 'priority' => 163
11613 + ]
11614 + )
11615 + );
11616 + }
11617 +
11618 + public function betterdocs_doc_single_related_docs_list_padding() {
11619 + $this->customizer->add_setting(
11620 + 'betterdocs_doc_single_related_docs_list_padding',
11621 + [
11622 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding'],
11623 + 'capability' => 'edit_theme_options',
11624 + 'transport' => 'postMessage',
11625 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11626 +
11627 + ]
11628 + );
11629 +
11630 + $this->customizer->add_control(
11631 + new TitleControl(
11632 + $this->customizer,
11633 + 'betterdocs_doc_single_related_docs_list_padding',
11634 + [
11635 + 'type' => 'betterdocs-title',
11636 + 'section' => 'betterdocs_single_docs_settings',
11637 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding',
11638 + 'label' => __( 'List Padding', 'betterdocs' ),
11639 + 'priority' => 163,
11640 + 'input_attrs' => [
11641 + 'id' => 'betterdocs_doc_single_related_docs_list_padding',
11642 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
11643 + ]
11644 + ]
11645 + )
11646 + );
11647 +
11648 + $this->customizer->add_setting(
11649 + 'betterdocs_doc_single_related_docs_list_padding_top',
11650 + [
11651 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_top'],
11652 + 'capability' => 'edit_theme_options',
11653 + 'transport' => 'postMessage',
11654 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11655 + ]
11656 + );
11657 +
11658 + $this->customizer->add_control(
11659 + new DimensionControl(
11660 + $this->customizer,
11661 + 'betterdocs_doc_single_related_docs_list_padding_top',
11662 + [
11663 + 'type' => 'betterdocs-dimension',
11664 + 'section' => 'betterdocs_single_docs_settings',
11665 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_top',
11666 + 'label' => __( 'Top', 'betterdocs' ),
11667 + 'priority' => 163,
11668 + 'input_attrs' => [
11669 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
11670 + ]
11671 + ]
11672 + )
11673 + );
11674 +
11675 + $this->customizer->add_setting(
11676 + 'betterdocs_doc_single_related_docs_list_padding_right',
11677 + [
11678 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_right'],
11679 + 'capability' => 'edit_theme_options',
11680 + 'transport' => 'postMessage',
11681 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11682 +
11683 + ]
11684 + );
11685 +
11686 + $this->customizer->add_control(
11687 + new DimensionControl(
11688 + $this->customizer,
11689 + 'betterdocs_doc_single_related_docs_list_padding_right',
11690 + [
11691 + 'type' => 'betterdocs-dimension',
11692 + 'section' => 'betterdocs_single_docs_settings',
11693 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_right',
11694 + 'label' => __( 'Right', 'betterdocs' ),
11695 + 'priority' => 163,
11696 + 'input_attrs' => [
11697 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
11698 + ]
11699 + ]
11700 + )
11701 + );
11702 +
11703 + $this->customizer->add_setting(
11704 + 'betterdocs_doc_single_related_docs_list_padding_bottom',
11705 + [
11706 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_bottom'],
11707 + 'capability' => 'edit_theme_options',
11708 + 'transport' => 'postMessage',
11709 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11710 + ]
11711 + );
11712 +
11713 + $this->customizer->add_control(
11714 + new DimensionControl(
11715 + $this->customizer,
11716 + 'betterdocs_doc_single_related_docs_list_padding_bottom',
11717 + [
11718 + 'type' => 'betterdocs-dimension',
11719 + 'section' => 'betterdocs_single_docs_settings',
11720 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_bottom',
11721 + 'label' => __( 'Bottom', 'betterdocs' ),
11722 + 'priority' => 163,
11723 + 'input_attrs' => [
11724 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
11725 + ]
11726 + ]
11727 + )
11728 + );
11729 +
11730 + $this->customizer->add_setting(
11731 + 'betterdocs_doc_single_related_docs_list_padding_left',
11732 + [
11733 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_left'],
11734 + 'capability' => 'edit_theme_options',
11735 + 'transport' => 'postMessage',
11736 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11737 + ]
11738 + );
11739 +
11740 + $this->customizer->add_control(
11741 + new DimensionControl(
11742 + $this->customizer,
11743 + 'betterdocs_doc_single_related_docs_list_padding_left',
11744 + [
11745 + 'type' => 'betterdocs-dimension',
11746 + 'section' => 'betterdocs_single_docs_settings',
11747 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_left',
11748 + 'label' => __( 'Left', 'betterdocs' ),
11749 + 'priority' => 163,
11750 + 'input_attrs' => [
11751 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
11752 + ]
11753 + ]
11754 + )
11755 + );
11756 + }
11757 +
11758 + public function betterdocs_doc_single_related_docs_list_margin() {
11759 + $this->customizer->add_setting(
11760 + 'betterdocs_doc_single_related_docs_list_margin',
11761 + [
11762 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin'],
11763 + 'capability' => 'edit_theme_options',
11764 + 'transport' => 'postMessage',
11765 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11766 +
11767 + ]
11768 + );
11769 +
11770 + $this->customizer->add_control(
11771 + new TitleControl(
11772 + $this->customizer,
11773 + 'betterdocs_doc_single_related_docs_list_margin',
11774 + [
11775 + 'type' => 'betterdocs-title',
11776 + 'section' => 'betterdocs_single_docs_settings',
11777 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin',
11778 + 'label' => __( 'List Margin', 'betterdocs' ),
11779 + 'priority' => 163,
11780 + 'input_attrs' => [
11781 + 'id' => 'betterdocs_doc_single_related_docs_list_margin',
11782 + 'class' => 'betterdocs-dimension'
11783 + ]
11784 + ]
11785 + )
11786 + );
11787 +
11788 + $this->customizer->add_setting(
11789 + 'betterdocs_doc_single_related_docs_list_margin_top',
11790 + [
11791 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_top'],
11792 + 'capability' => 'edit_theme_options',
11793 + 'transport' => 'postMessage',
11794 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11795 + ]
11796 + );
11797 +
11798 + $this->customizer->add_control(
11799 + new DimensionControl(
11800 + $this->customizer,
11801 + 'betterdocs_doc_single_related_docs_list_margin_top',
11802 + [
11803 + 'type' => 'betterdocs-dimension',
11804 + 'section' => 'betterdocs_single_docs_settings',
11805 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_top',
11806 + 'label' => __( 'Top', 'betterdocs' ),
11807 + 'priority' => 163,
11808 + 'input_attrs' => [
11809 + 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
11810 + ]
11811 + ]
11812 + )
11813 + );
11814 +
11815 + $this->customizer->add_setting(
11816 + 'betterdocs_doc_single_related_docs_list_margin_right',
11817 + [
11818 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_right'],
11819 + 'capability' => 'edit_theme_options',
11820 + 'transport' => 'postMessage',
11821 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11822 +
11823 + ]
11824 + );
11825 +
11826 + $this->customizer->add_control(
11827 + new DimensionControl(
11828 + $this->customizer,
11829 + 'betterdocs_doc_single_related_docs_list_margin_right',
11830 + [
11831 + 'type' => 'betterdocs-dimension',
11832 + 'section' => 'betterdocs_single_docs_settings',
11833 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_right',
11834 + 'label' => __( 'Right', 'betterdocs' ),
11835 + 'priority' => 163,
11836 + 'input_attrs' => [
11837 + 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
11838 + ]
11839 + ]
11840 + )
11841 + );
11842 +
11843 + $this->customizer->add_setting(
11844 + 'betterdocs_doc_single_related_docs_list_margin_bottom',
11845 + [
11846 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_bottom'],
11847 + 'capability' => 'edit_theme_options',
11848 + 'transport' => 'postMessage',
11849 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11850 + ]
11851 + );
11852 +
11853 + $this->customizer->add_control(
11854 + new DimensionControl(
11855 + $this->customizer,
11856 + 'betterdocs_doc_single_related_docs_list_margin_bottom',
11857 + [
11858 + 'type' => 'betterdocs-dimension',
11859 + 'section' => 'betterdocs_single_docs_settings',
11860 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_bottom',
11861 + 'label' => __( 'Bottom', 'betterdocs' ),
11862 + 'priority' => 163,
11863 + 'input_attrs' => [
11864 + 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
11865 + ]
11866 + ]
11867 + )
11868 + );
11869 +
11870 + $this->customizer->add_setting(
11871 + 'betterdocs_doc_single_related_docs_list_margin_left',
11872 + [
11873 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_left'],
11874 + 'capability' => 'edit_theme_options',
11875 + 'transport' => 'postMessage',
11876 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11877 + ]
11878 + );
11879 +
11880 + $this->customizer->add_control(
11881 + new DimensionControl(
11882 + $this->customizer,
11883 + 'betterdocs_doc_single_related_docs_list_margin_left',
11884 + [
11885 + 'type' => 'betterdocs-dimension',
11886 + 'section' => 'betterdocs_single_docs_settings',
11887 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_left',
11888 + 'label' => __( 'Left', 'betterdocs' ),
11889 + 'priority' => 163,
11890 + 'input_attrs' => [
11891 + 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
11892 + ]
11893 + ]
11894 + )
11895 + );
11896 + }
11897 +
11898 + public function betterdocs_doc_single_related_docs_heading_layout_8_9() {
11899 + $this->customizer->add_setting(
11900 + 'betterdocs_doc_single_related_docs_heading_layout_8_9',
11901 + [
11902 + 'default' => 'betterdocs_doc_single_related_docs_heading_layout_8_9',
11903 + 'sanitize_callback' => 'esc_html'
11904 + ]
11905 + );
11906 +
11907 + $this->customizer->add_control(
11908 + new SeparatorControl(
11909 + $this->customizer,
11910 + 'betterdocs_doc_single_related_docs_heading_layout_8_9',
11911 + [
11912 + 'label' => __( 'Related Docs', 'betterdocs' ),
11913 + 'priority' => 163,
11914 + 'settings' => 'betterdocs_doc_single_related_docs_heading_layout_8_9',
11915 + 'section' => 'betterdocs_single_docs_settings'
11916 + ]
11917 + )
11918 + );
11919 + }
11920 +
11921 + public function betterdocs_doc_single_related_docs_content_bg_color_layout_8_9() {
11922 + $this->customizer->add_setting(
11923 + 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
11924 + [
11925 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_bg_color_layout_8_9'],
11926 + 'capability' => 'edit_theme_options',
11927 + 'transport' => 'postMessage',
11928 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
11929 + ]
11930 + );
11931 +
11932 + $this->customizer->add_control(
11933 + new AlphaColorControl(
11934 + $this->customizer,
11935 + 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
11936 + [
11937 + 'label' => __( 'Content Background Color', 'betterdocs' ),
11938 + 'section' => 'betterdocs_single_docs_settings',
11939 + 'settings' => 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
11940 + 'priority' => 163
11941 + ]
11942 + )
11943 + );
11944 + }
11945 +
11946 + public function betterdocs_doc_single_related_docs_content_padding_layout_8_9() {
11947 + $this->customizer->add_setting(
11948 + 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
11949 + [
11950 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_layout_8_9'],
11951 + 'capability' => 'edit_theme_options',
11952 + 'transport' => 'postMessage',
11953 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11954 +
11955 + ]
11956 + );
11957 +
11958 + $this->customizer->add_control(
11959 + new TitleControl(
11960 + $this->customizer,
11961 + 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
11962 + [
11963 + 'type' => 'betterdocs-title',
11964 + 'section' => 'betterdocs_single_docs_settings',
11965 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
11966 + 'label' => __( 'Content Padding', 'betterdocs' ),
11967 + 'priority' => 163,
11968 + 'input_attrs' => [
11969 + 'id' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
11970 + 'class' => 'betterdocs-dimension'
11971 + ]
11972 + ]
11973 + )
11974 + );
11975 +
11976 + $this->customizer->add_setting(
11977 + 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9',
11978 + [
11979 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_top_layout_8_9'],
11980 + 'capability' => 'edit_theme_options',
11981 + 'transport' => 'postMessage',
11982 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11983 + ]
11984 + );
11985 +
11986 + $this->customizer->add_control(
11987 + new DimensionControl(
11988 + $this->customizer,
11989 + 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9',
11990 + [
11991 + 'type' => 'betterdocs-dimension',
11992 + 'section' => 'betterdocs_single_docs_settings',
11993 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9',
11994 + 'label' => __( 'Top', 'betterdocs' ),
11995 + 'priority' => 163,
11996 + 'input_attrs' => [
11997 + 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
11998 + ]
11999 + ]
12000 + )
12001 + );
12002 +
12003 + $this->customizer->add_setting(
12004 + 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9',
12005 + [
12006 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_right_layout_8_9'],
12007 + 'capability' => 'edit_theme_options',
12008 + 'transport' => 'postMessage',
12009 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12010 +
12011 + ]
12012 + );
12013 +
12014 + $this->customizer->add_control(
12015 + new DimensionControl(
12016 + $this->customizer,
12017 + 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9',
12018 + [
12019 + 'type' => 'betterdocs-dimension',
12020 + 'section' => 'betterdocs_single_docs_settings',
12021 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9',
12022 + 'label' => __( 'Right', 'betterdocs' ),
12023 + 'priority' => 163,
12024 + 'input_attrs' => [
12025 + 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
12026 + ]
12027 + ]
12028 + )
12029 + );
12030 +
12031 + $this->customizer->add_setting(
12032 + 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9',
12033 + [
12034 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9'],
12035 + 'capability' => 'edit_theme_options',
12036 + 'transport' => 'postMessage',
12037 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12038 +
12039 + ]
12040 + );
12041 +
12042 + $this->customizer->add_control(
12043 + new DimensionControl(
12044 + $this->customizer,
12045 + 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9',
12046 + [
12047 + 'type' => 'betterdocs-dimension',
12048 + 'section' => 'betterdocs_single_docs_settings',
12049 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9',
12050 + 'label' => __( 'Bottom', 'betterdocs' ),
12051 + 'priority' => 163,
12052 + 'input_attrs' => [
12053 + 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
12054 + ]
12055 + ]
12056 + )
12057 + );
12058 +
12059 + $this->customizer->add_setting(
12060 + 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9',
12061 + [
12062 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_left_layout_8_9'],
12063 + 'capability' => 'edit_theme_options',
12064 + 'transport' => 'postMessage',
12065 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12066 +
12067 + ]
12068 + );
12069 +
12070 + $this->customizer->add_control(
12071 + new DimensionControl(
12072 + $this->customizer,
12073 + 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9',
12074 + [
12075 + 'type' => 'betterdocs-dimension',
12076 + 'section' => 'betterdocs_single_docs_settings',
12077 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9',
12078 + 'label' => __( 'Left', 'betterdocs' ),
12079 + 'priority' => 163,
12080 + 'input_attrs' => [
12081 + 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
12082 + ]
12083 + ]
12084 + )
12085 + );
12086 + }
12087 +
12088 + public function betterdocs_doc_single_related_docs_content_margin_layout_8_9() {
12089 + $this->customizer->add_setting(
12090 + 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
12091 + [
12092 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_layout_8_9'],
12093 + 'capability' => 'edit_theme_options',
12094 + 'transport' => 'postMessage',
12095 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12096 +
12097 + ]
12098 + );
12099 +
12100 + $this->customizer->add_control(
12101 + new TitleControl(
12102 + $this->customizer,
12103 + 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
12104 + [
12105 + 'type' => 'betterdocs-title',
12106 + 'section' => 'betterdocs_single_docs_settings',
12107 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
12108 + 'label' => __( 'Content Margin', 'betterdocs' ),
12109 + 'priority' => 163,
12110 + 'input_attrs' => [
12111 + 'id' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
12112 + 'class' => 'betterdocs-dimension'
12113 + ]
12114 + ]
12115 + )
12116 + );
12117 +
12118 + $this->customizer->add_setting(
12119 + 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9',
12120 + [
12121 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_top_layout_8_9'],
12122 + 'capability' => 'edit_theme_options',
12123 + 'transport' => 'postMessage',
12124 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12125 + ]
12126 + );
12127 +
12128 + $this->customizer->add_control(
12129 + new DimensionControl(
12130 + $this->customizer,
12131 + 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9',
12132 + [
12133 + 'type' => 'betterdocs-dimension',
12134 + 'section' => 'betterdocs_single_docs_settings',
12135 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9',
12136 + 'label' => __( 'Top', 'betterdocs' ),
12137 + 'priority' => 163,
12138 + 'input_attrs' => [
12139 + 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
12140 + ]
12141 + ]
12142 + )
12143 + );
12144 +
12145 + $this->customizer->add_setting(
12146 + 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9',
12147 + [
12148 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_right_layout_8_9'],
12149 + 'capability' => 'edit_theme_options',
12150 + 'transport' => 'postMessage',
12151 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12152 +
12153 + ]
12154 + );
12155 +
12156 + $this->customizer->add_control(
12157 + new DimensionControl(
12158 + $this->customizer,
12159 + 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9',
12160 + [
12161 + 'type' => 'betterdocs-dimension',
12162 + 'section' => 'betterdocs_single_docs_settings',
12163 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9',
12164 + 'label' => __( 'Right', 'betterdocs' ),
12165 + 'priority' => 163,
12166 + 'input_attrs' => [
12167 + 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
12168 + ]
12169 + ]
12170 + )
12171 + );
12172 +
12173 + $this->customizer->add_setting(
12174 + 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9',
12175 + [
12176 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9'],
12177 + 'capability' => 'edit_theme_options',
12178 + 'transport' => 'postMessage',
12179 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12180 +
12181 + ]
12182 + );
12183 +
12184 + $this->customizer->add_control(
12185 + new DimensionControl(
12186 + $this->customizer,
12187 + 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9',
12188 + [
12189 + 'type' => 'betterdocs-dimension',
12190 + 'section' => 'betterdocs_single_docs_settings',
12191 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9',
12192 + 'label' => __( 'Bottom', 'betterdocs' ),
12193 + 'priority' => 163,
12194 + 'input_attrs' => [
12195 + 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
12196 + ]
12197 + ]
12198 + )
12199 + );
12200 +
12201 + $this->customizer->add_setting(
12202 + 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9',
12203 + [
12204 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_left_layout_8_9'],
12205 + 'capability' => 'edit_theme_options',
12206 + 'transport' => 'postMessage',
12207 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12208 +
12209 + ]
12210 + );
12211 +
12212 + $this->customizer->add_control(
12213 + new DimensionControl(
12214 + $this->customizer,
12215 + 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9',
12216 + [
12217 + 'type' => 'betterdocs-dimension',
12218 + 'section' => 'betterdocs_single_docs_settings',
12219 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9',
12220 + 'label' => __( 'Left', 'betterdocs' ),
12221 + 'priority' => 163,
12222 + 'input_attrs' => [
12223 + 'class' => 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9 betterdocs-dimension'
12224 + ]
12225 + ]
12226 + )
12227 + );
12228 + }
12229 +
12230 + public function betterdocs_doc_single_related_docs_label_color_layout_8_9() {
12231 + $this->customizer->add_setting(
12232 + 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
12233 + [
12234 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_color_layout_8_9'],
12235 + 'capability' => 'edit_theme_options',
12236 + 'transport' => 'postMessage',
12237 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
12238 + ]
12239 + );
12240 +
12241 + $this->customizer->add_control(
12242 + new AlphaColorControl(
12243 + $this->customizer,
12244 + 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
12245 + [
12246 + 'label' => __( 'Label Color', 'betterdocs' ),
12247 + 'section' => 'betterdocs_single_docs_settings',
12248 + 'settings' => 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
12249 + 'priority' => 163
12250 + ]
12251 + )
12252 + );
12253 + }
12254 +
12255 + public function betterdocs_doc_single_related_docs_label_padding_layout_8_9() {
12256 + $this->customizer->add_setting(
12257 + 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
12258 + [
12259 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_layout_8_9'],
12260 + 'capability' => 'edit_theme_options',
12261 + 'transport' => 'postMessage',
12262 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12263 +
12264 + ]
12265 + );
12266 +
12267 + $this->customizer->add_control(
12268 + new TitleControl(
12269 + $this->customizer,
12270 + 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
12271 + [
12272 + 'type' => 'betterdocs-title',
12273 + 'section' => 'betterdocs_single_docs_settings',
12274 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
12275 + 'label' => __( 'Label Padding', 'betterdocs' ),
12276 + 'priority' => 163,
12277 + 'input_attrs' => [
12278 + 'id' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
12279 + 'class' => 'betterdocs-dimension'
12280 + ]
12281 + ]
12282 + )
12283 + );
12284 +
12285 + $this->customizer->add_setting(
12286 + 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9',
12287 + [
12288 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_top_layout_8_9'],
12289 + 'capability' => 'edit_theme_options',
12290 + 'transport' => 'postMessage',
12291 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12292 + ]
12293 + );
12294 +
12295 + $this->customizer->add_control(
12296 + new DimensionControl(
12297 + $this->customizer,
12298 + 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9',
12299 + [
12300 + 'type' => 'betterdocs-dimension',
12301 + 'section' => 'betterdocs_single_docs_settings',
12302 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9',
12303 + 'label' => __( 'Top', 'betterdocs' ),
12304 + 'priority' => 163,
12305 + 'input_attrs' => [
12306 + 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
12307 + ]
12308 + ]
12309 + )
12310 + );
12311 +
12312 + $this->customizer->add_setting(
12313 + 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9',
12314 + [
12315 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_right_layout_8_9'],
12316 + 'capability' => 'edit_theme_options',
12317 + 'transport' => 'postMessage',
12318 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12319 +
12320 + ]
12321 + );
12322 +
12323 + $this->customizer->add_control(
12324 + new DimensionControl(
12325 + $this->customizer,
12326 + 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9',
12327 + [
12328 + 'type' => 'betterdocs-dimension',
12329 + 'section' => 'betterdocs_single_docs_settings',
12330 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9',
12331 + 'label' => __( 'Right', 'betterdocs' ),
12332 + 'priority' => 163,
12333 + 'input_attrs' => [
12334 + 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
12335 + ]
12336 + ]
12337 + )
12338 + );
12339 +
12340 + $this->customizer->add_setting(
12341 + 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9',
12342 + [
12343 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9'],
12344 + 'capability' => 'edit_theme_options',
12345 + 'transport' => 'postMessage',
12346 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12347 +
12348 + ]
12349 + );
12350 +
12351 + $this->customizer->add_control(
12352 + new DimensionControl(
12353 + $this->customizer,
12354 + 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9',
12355 + [
12356 + 'type' => 'betterdocs-dimension',
12357 + 'section' => 'betterdocs_single_docs_settings',
12358 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9',
12359 + 'label' => __( 'Bottom', 'betterdocs' ),
12360 + 'priority' => 163,
12361 + 'input_attrs' => [
12362 + 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
12363 + ]
12364 + ]
12365 + )
12366 + );
12367 +
12368 + $this->customizer->add_setting(
12369 + 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9',
12370 + [
12371 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_left_layout_8_9'],
12372 + 'capability' => 'edit_theme_options',
12373 + 'transport' => 'postMessage',
12374 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12375 +
12376 + ]
12377 + );
12378 +
12379 + $this->customizer->add_control(
12380 + new DimensionControl(
12381 + $this->customizer,
12382 + 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9',
12383 + [
12384 + 'type' => 'betterdocs-dimension',
12385 + 'section' => 'betterdocs_single_docs_settings',
12386 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9',
12387 + 'label' => __( 'Left', 'betterdocs' ),
12388 + 'priority' => 163,
12389 + 'input_attrs' => [
12390 + 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
12391 + ]
12392 + ]
12393 + )
12394 + );
12395 + }
12396 +
12397 + public function betterdocs_doc_single_related_docs_label_margin_layout_8_9() {
12398 + $this->customizer->add_setting(
12399 + 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
12400 + [
12401 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_layout_8_9'],
12402 + 'capability' => 'edit_theme_options',
12403 + 'transport' => 'postMessage',
12404 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12405 +
12406 + ]
12407 + );
12408 +
12409 + $this->customizer->add_control(
12410 + new TitleControl(
12411 + $this->customizer,
12412 + 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
12413 + [
12414 + 'type' => 'betterdocs-title',
12415 + 'section' => 'betterdocs_single_docs_settings',
12416 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
12417 + 'label' => __( 'Label Margin', 'betterdocs' ),
12418 + 'priority' => 163,
12419 + 'input_attrs' => [
12420 + 'id' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
12421 + 'class' => 'betterdocs-dimension'
12422 + ]
12423 + ]
12424 + )
12425 + );
12426 +
12427 + $this->customizer->add_setting(
12428 + 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9',
12429 + [
12430 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_top_layout_8_9'],
12431 + 'capability' => 'edit_theme_options',
12432 + 'transport' => 'postMessage',
12433 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12434 + ]
12435 + );
12436 +
12437 + $this->customizer->add_control(
12438 + new DimensionControl(
12439 + $this->customizer,
12440 + 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9',
12441 + [
12442 + 'type' => 'betterdocs-dimension',
12443 + 'section' => 'betterdocs_single_docs_settings',
12444 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9',
12445 + 'label' => __( 'Top', 'betterdocs' ),
12446 + 'priority' => 163,
12447 + 'input_attrs' => [
12448 + 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
12449 + ]
12450 + ]
12451 + )
12452 + );
12453 +
12454 + $this->customizer->add_setting(
12455 + 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9',
12456 + [
12457 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_right_layout_8_9'],
12458 + 'capability' => 'edit_theme_options',
12459 + 'transport' => 'postMessage',
12460 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12461 +
12462 + ]
12463 + );
12464 +
12465 + $this->customizer->add_control(
12466 + new DimensionControl(
12467 + $this->customizer,
12468 + 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9',
12469 + [
12470 + 'type' => 'betterdocs-dimension',
12471 + 'section' => 'betterdocs_single_docs_settings',
12472 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9',
12473 + 'label' => __( 'Right', 'betterdocs' ),
12474 + 'priority' => 163,
12475 + 'input_attrs' => [
12476 + 'class' => 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9 betterdocs-dimension'
12477 + ]
12478 + ]
12479 + )
12480 + );
12481 +
12482 + $this->customizer->add_setting(
12483 + 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9',
12484 + [
12485 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9'],
12486 + 'capability' => 'edit_theme_options',
12487 + 'transport' => 'postMessage',
12488 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12489 + ]
12490 + );
12491 +
12492 + $this->customizer->add_control(
12493 + new DimensionControl(
12494 + $this->customizer,
12495 + 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9',
12496 + [
12497 + 'type' => 'betterdocs-dimension',
12498 + 'section' => 'betterdocs_single_docs_settings',
12499 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9',
12500 + 'label' => __( 'Bottom', 'betterdocs' ),
12501 + 'priority' => 163,
12502 + 'input_attrs' => [
12503 + 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
12504 + ]
12505 + ]
12506 + )
12507 + );
12508 +
12509 + $this->customizer->add_setting(
12510 + 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9',
12511 + [
12512 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_left_layout_8_9'],
12513 + 'capability' => 'edit_theme_options',
12514 + 'transport' => 'postMessage',
12515 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12516 + ]
12517 + );
12518 +
12519 + $this->customizer->add_control(
12520 + new DimensionControl(
12521 + $this->customizer,
12522 + 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9',
12523 + [
12524 + 'type' => 'betterdocs-dimension',
12525 + 'section' => 'betterdocs_single_docs_settings',
12526 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9',
12527 + 'label' => __( 'Left', 'betterdocs' ),
12528 + 'priority' => 163,
12529 + 'input_attrs' => [
12530 + 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
12531 + ]
12532 + ]
12533 + )
12534 + );
12535 + }
12536 +
12537 + public function betterdocs_doc_related_docs_list_font_size_layout_8_9() {
12538 + $this->customizer->add_setting(
12539 + 'betterdocs_doc_related_docs_list_font_size_layout_8_9',
12540 + [
12541 + 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_size_layout_8_9'],
12542 + 'capability' => 'edit_theme_options',
12543 + 'transport' => 'postMessage',
12544 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12545 +
12546 + ]
12547 + );
12548 +
12549 + $this->customizer->add_control(
12550 + new RangeValueControl(
12551 + $this->customizer,
12552 + 'betterdocs_doc_related_docs_list_font_size_layout_8_9',
12553 + [
12554 + 'type' => 'betterdocs-range-value',
12555 + 'section' => 'betterdocs_single_docs_settings',
12556 + 'settings' => 'betterdocs_doc_related_docs_list_font_size_layout_8_9',
12557 + 'label' => __( 'List Font Size', 'betterdocs' ),
12558 + 'priority' => 163,
12559 + 'input_attrs' => [
12560 + 'min' => 0,
12561 + 'max' => 50,
12562 + 'step' => 1,
12563 + 'suffix' => 'px' //optional suffix
12564 + ]
12565 + ]
12566 + )
12567 + );
12568 + }
12569 +
12570 + public function betterdocs_doc_related_docs_list_font_weight_layout_8_9() {
12571 + $this->customizer->add_setting(
12572 + 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
12573 + [
12574 + 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_weight_layout_8_9'],
12575 + 'capability' => 'edit_theme_options',
12576 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
12577 + ]
12578 + );
12579 +
12580 + $this->customizer->add_control(
12581 + new WP_Customize_Control(
12582 + $this->customizer,
12583 + 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
12584 + [
12585 + 'label' => __( 'List Font Weight', 'betterdocs' ),
12586 + 'section' => 'betterdocs_single_docs_settings',
12587 + 'settings' => 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
12588 + 'type' => 'select',
12589 + 'choices' => [
12590 + 'normal' => 'Normal',
12591 + '100' => '100',
12592 + '200' => '200',
12593 + '300' => '300',
12594 + '400' => '400',
12595 + '500' => '500',
12596 + '600' => '600',
12597 + '700' => '700',
12598 + '800' => '800',
12599 + '900' => '900'
12600 + ],
12601 + 'priority' => 163
12602 + ]
12603 + )
12604 + );
12605 + }
12606 +
12607 +
12608 + public function betterdocs_doc_single_related_docs_list_color_layout_8_9() {
12609 + $this->customizer->add_setting(
12610 + 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
12611 + [
12612 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_color_layout_8_9'],
12613 + 'capability' => 'edit_theme_options',
12614 + 'transport' => 'postMessage',
12615 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
12616 + ]
12617 + );
12618 +
12619 + $this->customizer->add_control(
12620 + new AlphaColorControl(
12621 + $this->customizer,
12622 + 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
12623 + [
12624 + 'label' => __( 'List Color', 'betterdocs' ),
12625 + 'section' => 'betterdocs_single_docs_settings',
12626 + 'settings' => 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
12627 + 'priority' => 163
12628 + ]
12629 + )
12630 + );
12631 + }
12632 +
12633 + public function betterdocs_doc_single_related_docs_list_background_color_layout_8_9() {
12634 + $this->customizer->add_setting(
12635 + 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
12636 + [
12637 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_background_color_layout_8_9'],
12638 + 'capability' => 'edit_theme_options',
12639 + 'transport' => 'postMessage',
12640 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
12641 + ]
12642 + );
12643 +
12644 + $this->customizer->add_control(
12645 + new AlphaColorControl(
12646 + $this->customizer,
12647 + 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
12648 + [
12649 + 'label' => __( 'List Background Color', 'betterdocs' ),
12650 + 'section' => 'betterdocs_single_docs_settings',
12651 + 'settings' => 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
12652 + 'priority' => 163
12653 + ]
12654 + )
12655 + );
12656 + }
12657 +
12658 + public function betterdocs_doc_single_related_docs_list_padding_layout_8_9() {
12659 + $this->customizer->add_setting(
12660 + 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
12661 + [
12662 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_layout_8_9'],
12663 + 'capability' => 'edit_theme_options',
12664 + 'transport' => 'postMessage',
12665 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12666 +
12667 + ]
12668 + );
12669 +
12670 + $this->customizer->add_control(
12671 + new TitleControl(
12672 + $this->customizer,
12673 + 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
12674 + [
12675 + 'type' => 'betterdocs-title',
12676 + 'section' => 'betterdocs_single_docs_settings',
12677 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
12678 + 'label' => __( 'List Padding', 'betterdocs' ),
12679 + 'priority' => 163,
12680 + 'input_attrs' => [
12681 + 'id' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
12682 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
12683 + ]
12684 + ]
12685 + )
12686 + );
12687 +
12688 + $this->customizer->add_setting(
12689 + 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9',
12690 + [
12691 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_top_layout_8_9'],
12692 + 'capability' => 'edit_theme_options',
12693 + 'transport' => 'postMessage',
12694 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12695 + ]
12696 + );
12697 +
12698 + $this->customizer->add_control(
12699 + new DimensionControl(
12700 + $this->customizer,
12701 + 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9',
12702 + [
12703 + 'type' => 'betterdocs-dimension',
12704 + 'section' => 'betterdocs_single_docs_settings',
12705 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9',
12706 + 'label' => __( 'Top', 'betterdocs' ),
12707 + 'priority' => 163,
12708 + 'input_attrs' => [
12709 + 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
12710 + ]
12711 + ]
12712 + )
12713 + );
12714 +
12715 + $this->customizer->add_setting(
12716 + 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9',
12717 + [
12718 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_right_layout_8_9'],
12719 + 'capability' => 'edit_theme_options',
12720 + 'transport' => 'postMessage',
12721 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12722 +
12723 + ]
12724 + );
12725 +
12726 + $this->customizer->add_control(
12727 + new DimensionControl(
12728 + $this->customizer,
12729 + 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9',
12730 + [
12731 + 'type' => 'betterdocs-dimension',
12732 + 'section' => 'betterdocs_single_docs_settings',
12733 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9',
12734 + 'label' => __( 'Right', 'betterdocs' ),
12735 + 'priority' => 163,
12736 + 'input_attrs' => [
12737 + 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
12738 + ]
12739 + ]
12740 + )
12741 + );
12742 +
12743 + $this->customizer->add_setting(
12744 + 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9',
12745 + [
12746 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9'],
12747 + 'capability' => 'edit_theme_options',
12748 + 'transport' => 'postMessage',
12749 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12750 + ]
12751 + );
12752 +
12753 + $this->customizer->add_control(
12754 + new DimensionControl(
12755 + $this->customizer,
12756 + 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9',
12757 + [
12758 + 'type' => 'betterdocs-dimension',
12759 + 'section' => 'betterdocs_single_docs_settings',
12760 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9',
12761 + 'label' => __( 'Bottom', 'betterdocs' ),
12762 + 'priority' => 163,
12763 + 'input_attrs' => [
12764 + 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
12765 + ]
12766 + ]
12767 + )
12768 + );
12769 +
12770 + $this->customizer->add_setting(
12771 + 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9',
12772 + [
12773 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_left_layout_8_9'],
12774 + 'capability' => 'edit_theme_options',
12775 + 'transport' => 'postMessage',
12776 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12777 + ]
12778 + );
12779 +
12780 + $this->customizer->add_control(
12781 + new DimensionControl(
12782 + $this->customizer,
12783 + 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9',
12784 + [
12785 + 'type' => 'betterdocs-dimension',
12786 + 'section' => 'betterdocs_single_docs_settings',
12787 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9',
12788 + 'label' => __( 'Left', 'betterdocs' ),
12789 + 'priority' => 163,
12790 + 'input_attrs' => [
12791 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
12792 + ]
12793 + ]
12794 + )
12795 + );
12796 + }
12797 +
12798 + public function betterdocs_doc_single_related_docs_list_margin_layout_8_9() {
12799 + $this->customizer->add_setting(
12800 + 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
12801 + [
12802 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_layout_8_9'],
12803 + 'capability' => 'edit_theme_options',
12804 + 'transport' => 'postMessage',
12805 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12806 +
12807 + ]
12808 + );
12809 +
12810 + $this->customizer->add_control(
12811 + new TitleControl(
12812 + $this->customizer,
12813 + 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
12814 + [
12815 + 'type' => 'betterdocs-title',
12816 + 'section' => 'betterdocs_single_docs_settings',
12817 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
12818 + 'label' => __( 'List Margin', 'betterdocs' ),
12819 + 'priority' => 163,
12820 + 'input_attrs' => [
12821 + 'id' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
12822 + 'class' => 'betterdocs-dimension'
12823 + ]
12824 + ]
12825 + )
12826 + );
12827 +
12828 + $this->customizer->add_setting(
12829 + 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9',
12830 + [
12831 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_top_layout_8_9'],
12832 + 'capability' => 'edit_theme_options',
12833 + 'transport' => 'postMessage',
12834 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12835 + ]
12836 + );
12837 +
12838 + $this->customizer->add_control(
12839 + new DimensionControl(
12840 + $this->customizer,
12841 + 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9',
12842 + [
12843 + 'type' => 'betterdocs-dimension',
12844 + 'section' => 'betterdocs_single_docs_settings',
12845 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9',
12846 + 'label' => __( 'Top', 'betterdocs' ),
12847 + 'priority' => 163,
12848 + 'input_attrs' => [
12849 + 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
12850 + ]
12851 + ]
12852 + )
12853 + );
12854 +
12855 + $this->customizer->add_setting(
12856 + 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9',
12857 + [
12858 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_right_layout_8_9'],
12859 + 'capability' => 'edit_theme_options',
12860 + 'transport' => 'postMessage',
12861 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12862 +
12863 + ]
12864 + );
12865 +
12866 + $this->customizer->add_control(
12867 + new DimensionControl(
12868 + $this->customizer,
12869 + 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9',
12870 + [
12871 + 'type' => 'betterdocs-dimension',
12872 + 'section' => 'betterdocs_single_docs_settings',
12873 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9',
12874 + 'label' => __( 'Right', 'betterdocs' ),
12875 + 'priority' => 163,
12876 + 'input_attrs' => [
12877 + 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
12878 + ]
12879 + ]
12880 + )
12881 + );
12882 +
12883 + $this->customizer->add_setting(
12884 + 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9',
12885 + [
12886 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9'],
12887 + 'capability' => 'edit_theme_options',
12888 + 'transport' => 'postMessage',
12889 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12890 + ]
12891 + );
12892 +
12893 + $this->customizer->add_control(
12894 + new DimensionControl(
12895 + $this->customizer,
12896 + 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9',
12897 + [
12898 + 'type' => 'betterdocs-dimension',
12899 + 'section' => 'betterdocs_single_docs_settings',
12900 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9',
12901 + 'label' => __( 'Bottom', 'betterdocs' ),
12902 + 'priority' => 163,
12903 + 'input_attrs' => [
12904 + 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
12905 + ]
12906 + ]
12907 + )
12908 + );
12909 +
12910 + $this->customizer->add_setting(
12911 + 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9',
12912 + [
12913 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_left_layout_8_9'],
12914 + 'capability' => 'edit_theme_options',
12915 + 'transport' => 'postMessage',
12916 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
12917 + ]
12918 + );
12919 +
12920 + $this->customizer->add_control(
12921 + new DimensionControl(
12922 + $this->customizer,
12923 + 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9',
12924 + [
12925 + 'type' => 'betterdocs-dimension',
12926 + 'section' => 'betterdocs_single_docs_settings',
12927 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9',
12928 + 'label' => __( 'Left', 'betterdocs' ),
12929 + 'priority' => 163,
12930 + 'input_attrs' => [
12931 + 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
12932 + ]
12933 + ]
12934 + )
12935 + );
12936 + }
3985 12937 }