PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.2
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.2
4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 All 200 releases
← All changes | includes/Admin/Customizer/Sections/SingleDoc.php +11528 -3529 3.5.04.9.2 View file →
@@ -14,3972 +14,11971 @@
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 + public function doc_single_entry_content() {
4349 + $this->customizer->add_setting(
4350 + 'betterdocs_doc_single_entry_content',
4351 + [
4352 + 'default' => $this->defaults['betterdocs_doc_single_entry_content'],
4353 + 'sanitize_callback' => 'esc_html'
4354 + ]
4355 + );
3372 4356
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']
4357 + $this->customizer->add_control(
4358 + new SeparatorControl(
4359 + $this->customizer,
4360 + 'betterdocs_doc_single_entry_content',
4361 + [
4362 + 'label' => __( 'Entry Content', 'betterdocs' ),
4363 + 'priority' => 156,
4364 + 'settings' => 'betterdocs_doc_single_entry_content',
4365 + 'section' => 'betterdocs_single_docs_settings'
4366 + ]
4367 + )
4368 + );
4369 + }
3378 4370
3379 - ] );
4371 + public function single_content_font_size() {
4372 + $this->customizer->add_setting(
4373 + 'betterdocs_single_content_font_size',
4374 + [
4375 + 'default' => $this->defaults['betterdocs_single_content_font_size'],
4376 + 'capability' => 'edit_theme_options',
4377 + 'transport' => 'postMessage',
4378 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3380 4379
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 - );
4380 + ]
4381 + );
3393 4382
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']
4383 + $this->customizer->add_control(
4384 + new RangeValueControl(
4385 + $this->customizer,
4386 + 'betterdocs_single_content_font_size',
4387 + [
4388 + 'type' => 'betterdocs-range-value',
4389 + 'section' => 'betterdocs_single_docs_settings',
4390 + 'settings' => 'betterdocs_single_content_font_size',
4391 + 'label' => __( 'Font Size', 'betterdocs' ),
4392 + 'priority' => 157,
4393 + 'input_attrs' => [
4394 + 'class' => '',
4395 + 'min' => 0,
4396 + 'max' => 50,
4397 + 'step' => 1,
4398 + 'suffix' => 'px' // optional suffix
4399 + ]
4400 + ]
4401 + )
4402 + );
4403 + }
3399 4404
3400 - ] );
4405 + public function single_content_font_color() {
4406 + $this->customizer->add_setting(
4407 + 'betterdocs_single_content_font_color',
4408 + [
4409 + 'default' => $this->defaults['betterdocs_single_content_font_color'],
4410 + 'capability' => 'edit_theme_options',
4411 + 'transport' => 'postMessage',
4412 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4413 + ]
4414 + );
3401 4415
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 - );
4416 + $this->customizer->add_control(
4417 + new AlphaColorControl(
4418 + $this->customizer,
4419 + 'betterdocs_single_content_font_color',
4420 + [
4421 + 'label' => __( 'Font Color', 'betterdocs' ),
4422 + 'priority' => 158,
4423 + 'section' => 'betterdocs_single_docs_settings',
4424 + 'settings' => 'betterdocs_single_content_font_color'
4425 + ]
4426 + )
4427 + );
4428 + }
3414 4429
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']
4430 + public function doc_single_entry_content_layout_8_9() {
4431 + $this->customizer->add_setting(
4432 + 'betterdocs_doc_single_entry_content_layout_8_9',
4433 + [
4434 + 'default' => $this->defaults['betterdocs_doc_single_entry_content_layout_8_9'],
4435 + 'sanitize_callback' => 'esc_html'
4436 + ]
4437 + );
3420 4438
3421 - ] );
4439 + $this->customizer->add_control(
4440 + new SeparatorControl(
4441 + $this->customizer,
4442 + 'betterdocs_doc_single_entry_content_layout_8_9',
4443 + [
4444 + 'label' => __( 'Entry Content', 'betterdocs' ),
4445 + 'priority' => 156,
4446 + 'settings' => 'betterdocs_doc_single_entry_content_layout_8_9',
4447 + 'section' => 'betterdocs_single_docs_settings'
4448 + ]
4449 + )
4450 + );
4451 + }
3422 4452
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 - }
4453 + public function single_content_font_size_layout_8_9() {
4454 + $this->customizer->add_setting(
4455 + 'betterdocs_single_content_font_size_layout_8_9',
4456 + [
4457 + 'default' => $this->defaults['betterdocs_single_content_font_size_layout_8_9'],
4458 + 'capability' => 'edit_theme_options',
4459 + 'transport' => 'postMessage',
4460 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3436 4461
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 - ] );
4462 + ]
4463 + );
3444 4464
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 - }
4465 + $this->customizer->add_control(
4466 + new RangeValueControl(
4467 + $this->customizer,
4468 + 'betterdocs_single_content_font_size_layout_8_9',
4469 + [
4470 + 'type' => 'betterdocs-range-value',
4471 + 'section' => 'betterdocs_single_docs_settings',
4472 + 'settings' => 'betterdocs_single_content_font_size_layout_8_9',
4473 + 'label' => __( 'Font Size', 'betterdocs' ),
4474 + 'priority' => 157,
4475 + 'input_attrs' => [
4476 + 'class' => '',
4477 + 'min' => 0,
4478 + 'max' => 50,
4479 + 'step' => 1,
4480 + 'suffix' => 'px' // optional suffix
4481 + ]
4482 + ]
4483 + )
4484 + );
4485 + }
3458 4486
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']
4487 + public function single_content_font_color_layout_8_9() {
4488 + $this->customizer->add_setting(
4489 + 'betterdocs_single_content_font_color_layout_8_9',
4490 + [
4491 + 'default' => $this->defaults['betterdocs_single_content_font_color_layout_8_9'],
4492 + 'capability' => 'edit_theme_options',
4493 + 'transport' => 'postMessage',
4494 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4495 + ]
4496 + );
3465 4497
3466 - ] );
4498 + $this->customizer->add_control(
4499 + new AlphaColorControl(
4500 + $this->customizer,
4501 + 'betterdocs_single_content_font_color_layout_8_9',
4502 + [
4503 + 'label' => __( 'Font Color', 'betterdocs' ),
4504 + 'priority' => 158,
4505 + 'section' => 'betterdocs_single_docs_settings',
4506 + 'settings' => 'betterdocs_single_content_font_color_layout_8_9'
4507 + ]
4508 + )
4509 + );
4510 + }
3467 4511
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 - );
4512 + public function single_content_padding_layout_8_9() {
4513 + $this->customizer->add_setting(
4514 + 'single_content_padding_layout_8_9',
4515 + [
4516 + 'default' => $this->defaults['single_content_padding_layout_8_9'],
4517 + 'capability' => 'edit_theme_options',
4518 + 'transport' => 'postMessage',
4519 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4520 + ]
4521 + );
3481 4522
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 - ] );
4523 + $this->customizer->add_control(
4524 + new TitleControl(
4525 + $this->customizer,
4526 + 'single_content_padding_layout_8_9',
4527 + [
4528 + 'type' => 'betterdocs-title',
4529 + 'section' => 'betterdocs_single_docs_settings',
4530 + 'settings' => 'single_content_padding_layout_8_9',
4531 + 'label' => __( 'Padding', 'betterdocs' ),
4532 + 'priority' => 158,
4533 + 'input_attrs' => [
4534 + 'id' => 'single_content_padding_layout_8_9',
4535 + 'class' => 'betterdocs-dimension'
4536 + ]
4537 + ]
4538 + )
4539 + );
3488 4540
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 - );
4541 + $this->customizer->add_setting(
4542 + 'single_content_padding_top_layout_8_9',
4543 + [
4544 + 'default' => $this->defaults['single_content_padding_top_layout_8_9'],
4545 + 'capability' => 'edit_theme_options',
4546 + 'transport' => 'postMessage',
4547 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4548 + ]
4549 + );
3501 4550
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']
4551 + $this->customizer->add_control(
4552 + new DimensionControl(
4553 + $this->customizer,
4554 + 'single_content_padding_top_layout_8_9',
4555 + [
4556 + 'type' => 'betterdocs-dimension',
4557 + 'section' => 'betterdocs_single_docs_settings',
4558 + 'settings' => 'single_content_padding_top_layout_8_9',
4559 + 'label' => __( 'Top', 'betterdocs' ),
4560 + 'priority' => 158,
4561 + 'input_attrs' => [
4562 + 'class' => 'single_content_padding_layout_8_9 betterdocs-dimension'
4563 + ]
4564 + ]
4565 + )
4566 + );
3507 4567
3508 - ] );
4568 + $this->customizer->add_setting(
4569 + 'single_content_padding_right_layout_8_9',
4570 + [
4571 + 'default' => $this->defaults['single_content_padding_right_layout_8_9'],
4572 + 'capability' => 'edit_theme_options',
4573 + 'transport' => 'postMessage',
4574 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4575 + ]
4576 + );
3509 4577
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 - );
4578 + $this->customizer->add_control(
4579 + new DimensionControl(
4580 + $this->customizer,
4581 + 'single_content_padding_right_layout_8_9',
4582 + [
4583 + 'type' => 'betterdocs-dimension',
4584 + 'section' => 'betterdocs_single_docs_settings',
4585 + 'settings' => 'single_content_padding_right_layout_8_9',
4586 + 'label' => __( 'Right', 'betterdocs' ),
4587 + 'priority' => 158,
4588 + 'input_attrs' => [
4589 + 'class' => 'single_content_padding_layout_8_9 betterdocs-dimension'
4590 + ]
4591 + ]
4592 + )
4593 + );
3522 4594
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']
4595 + $this->customizer->add_setting(
4596 + 'single_content_padding_bottom_layout_8_9',
4597 + [
4598 + 'default' => $this->defaults['single_content_padding_bottom_layout_8_9'],
4599 + 'capability' => 'edit_theme_options',
4600 + 'transport' => 'postMessage',
4601 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4602 + ]
4603 + );
3528 4604
3529 - ] );
4605 + $this->customizer->add_control(
4606 + new DimensionControl(
4607 + $this->customizer,
4608 + 'single_content_padding_bottom_layout_8_9',
4609 + [
4610 + 'type' => 'betterdocs-dimension',
4611 + 'section' => 'betterdocs_single_docs_settings',
4612 + 'settings' => 'single_content_padding_bottom_layout_8_9',
4613 + 'label' => __( 'Bottom', 'betterdocs' ),
4614 + 'priority' => 158,
4615 + 'input_attrs' => [
4616 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
4617 + ]
4618 + ]
4619 + )
4620 + );
3530 4621
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 - );
4622 + $this->customizer->add_setting(
4623 + 'single_content_padding_left_layout_8_9',
4624 + [
4625 + 'default' => $this->defaults['single_content_padding_left_layout_8_9'],
4626 + 'capability' => 'edit_theme_options',
4627 + 'transport' => 'postMessage',
4628 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4629 + ]
4630 + );
3543 4631
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']
4632 + $this->customizer->add_control(
4633 + new DimensionControl(
4634 + $this->customizer,
4635 + 'single_content_padding_left_layout_8_9',
4636 + [
4637 + 'type' => 'betterdocs-dimension',
4638 + 'section' => 'betterdocs_single_docs_settings',
4639 + 'settings' => 'single_content_padding_left_layout_8_9',
4640 + 'label' => __( 'Left', 'betterdocs' ),
4641 + 'priority' => 158,
4642 + 'input_attrs' => [
4643 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
4644 + ]
4645 + ]
4646 + )
4647 + );
4648 + }
3549 4649
3550 - ] );
4650 + public function single_content_margin_layout_8_9() {
4651 + $this->customizer->add_setting(
4652 + 'single_content_margin_layout_8_9',
4653 + [
4654 + 'default' => $this->defaults['single_content_margin_layout_8_9'],
4655 + 'capability' => 'edit_theme_options',
4656 + 'transport' => 'postMessage',
4657 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4658 + ]
4659 + );
3551 4660
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 - }
4661 + $this->customizer->add_control(
4662 + new TitleControl(
4663 + $this->customizer,
4664 + 'single_content_margin_layout_8_9',
4665 + [
4666 + 'type' => 'betterdocs-title',
4667 + 'section' => 'betterdocs_single_docs_settings',
4668 + 'settings' => 'single_content_margin_layout_8_9',
4669 + 'label' => __( 'Margin', 'betterdocs' ),
4670 + 'priority' => 158,
4671 + 'input_attrs' => [
4672 + 'id' => 'single_content_margin_layout_8_9',
4673 + 'class' => 'betterdocs-dimension'
4674 + ]
4675 + ]
4676 + )
4677 + );
3565 4678
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']
4679 + $this->customizer->add_setting(
4680 + 'single_content_margin_top_layout_8_9',
4681 + [
4682 + 'default' => $this->defaults['single_content_margin_top_layout_8_9'],
4683 + 'capability' => 'edit_theme_options',
4684 + 'transport' => 'postMessage',
4685 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4686 + ]
4687 + );
3572 4688
3573 - ] );
4689 + $this->customizer->add_control(
4690 + new DimensionControl(
4691 + $this->customizer,
4692 + 'single_content_margin_top_layout_8_9',
4693 + [
4694 + 'type' => 'betterdocs-dimension',
4695 + 'section' => 'betterdocs_single_docs_settings',
4696 + 'settings' => 'single_content_margin_top_layout_8_9',
4697 + 'label' => __( 'Top', 'betterdocs' ),
4698 + 'priority' => 158,
4699 + 'input_attrs' => [
4700 + 'class' => 'single_content_margin_layout_8_9 betterdocs-dimension'
4701 + ]
4702 + ]
4703 + )
4704 + );
3574 4705
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 - );
4706 + $this->customizer->add_setting(
4707 + 'single_content_margin_right_layout_8_9',
4708 + [
4709 + 'default' => $this->defaults['single_content_margin_right_layout_8_9'],
4710 + 'capability' => 'edit_theme_options',
4711 + 'transport' => 'postMessage',
4712 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4713 + ]
4714 + );
3588 4715
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 - ] );
4716 + $this->customizer->add_control(
4717 + new DimensionControl(
4718 + $this->customizer,
4719 + 'single_content_margin_right_layout_8_9',
4720 + [
4721 + 'type' => 'betterdocs-dimension',
4722 + 'section' => 'betterdocs_single_docs_settings',
4723 + 'settings' => 'single_content_margin_right_layout_8_9',
4724 + 'label' => __( 'Right', 'betterdocs' ),
4725 + 'priority' => 158,
4726 + 'input_attrs' => [
4727 + 'class' => 'single_content_margin_layout_8_9 betterdocs-dimension'
4728 + ]
4729 + ]
4730 + )
4731 + );
3595 4732
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 - );
4733 + $this->customizer->add_setting(
4734 + 'single_content_margin_bottom_layout_8_9',
4735 + [
4736 + 'default' => $this->defaults['single_content_margin_bottom_layout_8_9'],
4737 + 'capability' => 'edit_theme_options',
4738 + 'transport' => 'postMessage',
4739 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4740 + ]
4741 + );
3608 4742
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']
4743 + $this->customizer->add_control(
4744 + new DimensionControl(
4745 + $this->customizer,
4746 + 'single_content_margin_bottom_layout_8_9',
4747 + [
4748 + 'type' => 'betterdocs-dimension',
4749 + 'section' => 'betterdocs_single_docs_settings',
4750 + 'settings' => 'single_content_margin_bottom_layout_8_9',
4751 + 'label' => __( 'Bottom', 'betterdocs' ),
4752 + 'priority' => 158,
4753 + 'input_attrs' => [
4754 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
4755 + ]
4756 + ]
4757 + )
4758 + );
3614 4759
3615 - ] );
4760 + $this->customizer->add_setting(
4761 + 'single_content_margin_left_layout_8_9',
4762 + [
4763 + 'default' => $this->defaults['single_content_margin_left_layout_8_9'],
4764 + 'capability' => 'edit_theme_options',
4765 + 'transport' => 'postMessage',
4766 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4767 + ]
4768 + );
3616 4769
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 - );
4770 + $this->customizer->add_control(
4771 + new DimensionControl(
4772 + $this->customizer,
4773 + 'single_content_margin_left_layout_8_9',
4774 + [
4775 + 'type' => 'betterdocs-dimension',
4776 + 'section' => 'betterdocs_single_docs_settings',
4777 + 'settings' => 'single_content_margin_left_layout_8_9',
4778 + 'label' => __( 'Left', 'betterdocs' ),
4779 + 'priority' => 158,
4780 + 'input_attrs' => [
4781 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
4782 + ]
4783 + ]
4784 + )
4785 + );
4786 + }
3629 4787
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 - ] );
4788 + public function social_share_title() {
4789 + $this->customizer->add_setting(
4790 + 'betterdocs_social_share_title',
4791 + [
4792 + 'default' => '',
4793 + 'sanitize_callback' => 'esc_html'
4794 + ]
4795 + );
3636 4796
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 - );
4797 + $this->customizer->add_control(
4798 + new SeparatorControl(
4799 + $this->customizer,
4800 + 'betterdocs_social_share_title',
4801 + [
4802 + 'label' => __( 'Social Share', 'betterdocs' ),
4803 + 'priority' => 164,
4804 + 'settings' => 'betterdocs_social_share_title',
4805 + 'section' => 'betterdocs_single_docs_settings'
4806 + ]
4807 + )
4808 + );
4809 + }
3649 4810
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 - ] );
4811 + public function social_share_title_tag() {
4812 + $this->customizer->add_setting(
4813 + 'betterdocs_social_share_title_tag',
4814 + [
4815 + 'default' => $this->defaults['betterdocs_social_share_title_tag'],
4816 + 'capability' => 'edit_theme_options',
4817 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
4818 + ]
4819 + );
3656 4820
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 - }
4821 + $this->customizer->add_control(
4822 + new WP_Customize_Control(
4823 + $this->customizer,
4824 + 'betterdocs_social_share_title_tag',
4825 + [
4826 + 'label' => __( 'Social Share Title Tag', 'betterdocs' ),
4827 + 'section' => 'betterdocs_single_docs_settings',
4828 + 'settings' => 'betterdocs_social_share_title_tag',
4829 + 'type' => 'select',
4830 + 'choices' => [
4831 + 'h1' => 'h1',
4832 + 'h2' => 'h2',
4833 + 'h3' => 'h3',
4834 + 'h4' => 'h4',
4835 + 'h5' => 'h5',
4836 + 'h6' => 'h6'
4837 + ],
4838 + 'priority' => 165
4839 + ]
4840 + )
4841 + );
4842 + }
3670 4843
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']
4844 + public function post_social_share() {
4845 + $this->customizer->add_setting(
4846 + 'betterdocs_post_social_share',
4847 + [
4848 + 'default' => $this->defaults['betterdocs_post_social_share'],
4849 + 'capability' => 'edit_theme_options',
4850 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
4851 + ]
4852 + );
3677 4853
3678 - ] );
4854 + $this->customizer->add_control(
4855 + new ToggleControl(
4856 + $this->customizer,
4857 + 'betterdocs_post_social_share',
4858 + [
4859 + 'label' => __( 'Enable Social Sharing?', 'betterdocs' ),
4860 + 'priority' => 165,
4861 + 'section' => 'betterdocs_single_docs_settings',
4862 + 'settings' => 'betterdocs_post_social_share',
4863 + 'type' => 'light' // light, ios, flat
4864 + ]
4865 + )
4866 + );
4867 + }
3679 4868
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 - }
4869 + public function social_sharing_text() {
4870 + $this->customizer->add_setting(
4871 + 'betterdocs_social_sharing_text',
4872 + [
4873 + 'default' => $this->defaults['betterdocs_social_sharing_text'],
4874 + 'capability' => 'edit_theme_options',
4875 + 'sanitize_callback' => 'esc_html'
4876 + ]
4877 + );
3696 4878
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 - ] );
4879 + $this->customizer->add_control(
4880 + new SelectControl(
4881 + $this->customizer,
4882 + 'betterdocs_social_sharing_text',
4883 + [
4884 + 'label' => __( 'Social Sharing Title', 'betterdocs' ),
4885 + 'priority' => 166,
4886 + 'section' => 'betterdocs_single_docs_settings',
4887 + 'settings' => 'betterdocs_social_sharing_text',
4888 + 'type' => 'text'
4889 + ]
4890 + )
4891 + );
4892 + }
3703 4893
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 - }
4894 + public function post_social_share_text_color() {
4895 + $this->customizer->add_setting(
4896 + 'betterdocs_post_social_share_text_color',
4897 + [
4898 + 'default' => $this->defaults['betterdocs_post_social_share_text_color'],
4899 + 'capability' => 'edit_theme_options',
4900 + 'transport' => 'postMessage',
4901 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4902 + ]
4903 + );
3730 4904
4905 + $this->customizer->add_control(
4906 + new AlphaColorControl(
4907 + $this->customizer,
4908 + 'betterdocs_post_social_share_text_color',
4909 + [
4910 + 'label' => __( 'Title Text Color', 'betterdocs' ),
4911 + 'priority' => 167,
4912 + 'section' => 'betterdocs_single_docs_settings',
4913 + 'settings' => 'betterdocs_post_social_share_text_color'
4914 + ]
4915 + )
4916 + );
4917 + }
3731 4918
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 - ] );
4919 + public function post_social_share_text_color_layout_8_9() {
4920 + $this->customizer->add_setting(
4921 + 'betterdocs_post_social_share_text_color_color_layout_8_9',
4922 + [
4923 + 'default' => $this->defaults['betterdocs_post_social_share_text_color_color_layout_8_9'],
4924 + 'capability' => 'edit_theme_options',
4925 + 'transport' => 'postMessage',
4926 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4927 + ]
4928 + );
3739 4929
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 - }
4930 + $this->customizer->add_control(
4931 + new AlphaColorControl(
4932 + $this->customizer,
4933 + 'betterdocs_post_social_share_text_color_color_layout_8_9',
4934 + [
4935 + 'label' => __( 'Title Text Color', 'betterdocs' ),
4936 + 'priority' => 167,
4937 + 'section' => 'betterdocs_single_docs_settings',
4938 + 'settings' => 'betterdocs_post_social_share_text_color_color_layout_8_9'
4939 + ]
4940 + )
4941 + );
4942 + }
3753 4943
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 - ] );
4944 + public function post_social_share_margin_layout_8() {
4945 + $this->customizer->add_setting(
4946 + 'post_social_share_margin_layout_8',
4947 + [
4948 + 'default' => $this->defaults['post_social_share_margin_layout_8'],
4949 + 'capability' => 'edit_theme_options',
4950 + 'transport' => 'postMessage',
4951 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4952 + ]
4953 + );
3761 4954
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 - }
4955 + $this->customizer->add_control(
4956 + new TitleControl(
4957 + $this->customizer,
4958 + 'post_social_share_margin_layout_8',
4959 + [
4960 + 'type' => 'betterdocs-title',
4961 + 'section' => 'betterdocs_single_docs_settings',
4962 + 'settings' => 'post_social_share_margin_layout_8',
4963 + 'label' => __( 'Margin', 'betterdocs' ),
4964 + 'priority' => 167,
4965 + 'input_attrs' => [
4966 + 'id' => 'post_social_share_margin_layout_8',
4967 + 'class' => 'betterdocs-dimension'
4968 + ]
4969 + ]
4970 + )
4971 + );
3775 4972
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']
4973 + $this->customizer->add_setting(
4974 + 'post_social_share_margin_top_layout_8',
4975 + [
4976 + 'default' => $this->defaults['post_social_share_margin_top_layout_8'],
4977 + 'capability' => 'edit_theme_options',
4978 + 'transport' => 'postMessage',
4979 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4980 + ]
4981 + );
3782 4982
3783 - ] );
4983 + $this->customizer->add_control(
4984 + new DimensionControl(
4985 + $this->customizer,
4986 + 'post_social_share_margin_top_layout_8',
4987 + [
4988 + 'type' => 'betterdocs-dimension',
4989 + 'section' => 'betterdocs_single_docs_settings',
4990 + 'settings' => 'post_social_share_margin_top_layout_8',
4991 + 'label' => __( 'Top', 'betterdocs' ),
4992 + 'priority' => 167,
4993 + 'input_attrs' => [
4994 + 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
4995 + ]
4996 + ]
4997 + )
4998 + );
3784 4999
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 - );
5000 + $this->customizer->add_setting(
5001 + 'post_social_share_margin_right_layout_8',
5002 + [
5003 + 'default' => $this->defaults['post_social_share_margin_right_layout_8'],
5004 + 'capability' => 'edit_theme_options',
5005 + 'transport' => 'postMessage',
5006 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5007 + ]
5008 + );
3798 5009
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 - ] );
5010 + $this->customizer->add_control(
5011 + new DimensionControl(
5012 + $this->customizer,
5013 + 'post_social_share_margin_right_layout_8',
5014 + [
5015 + 'type' => 'betterdocs-dimension',
5016 + 'section' => 'betterdocs_single_docs_settings',
5017 + 'settings' => 'post_social_share_margin_right_layout_8',
5018 + 'label' => __( 'Right', 'betterdocs' ),
5019 + 'priority' => 167,
5020 + 'input_attrs' => [
5021 + 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
5022 + ]
5023 + ]
5024 + )
5025 + );
3805 5026
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 - );
5027 + $this->customizer->add_setting(
5028 + 'post_social_share_margin_bottom_layout_8',
5029 + [
5030 + 'default' => $this->defaults['post_social_share_margin_bottom_layout_8'],
5031 + 'capability' => 'edit_theme_options',
5032 + 'transport' => 'postMessage',
5033 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5034 + ]
5035 + );
3818 5036
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']
5037 + $this->customizer->add_control(
5038 + new DimensionControl(
5039 + $this->customizer,
5040 + 'post_social_share_margin_bottom_layout_8',
5041 + [
5042 + 'type' => 'betterdocs-dimension',
5043 + 'section' => 'betterdocs_single_docs_settings',
5044 + 'settings' => 'post_social_share_margin_bottom_layout_8',
5045 + 'label' => __( 'Bottom', 'betterdocs' ),
5046 + 'priority' => 167,
5047 + 'input_attrs' => [
5048 + 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
5049 + ]
5050 + ]
5051 + )
5052 + );
3824 5053
3825 - ] );
5054 + $this->customizer->add_setting(
5055 + 'post_social_share_margin_left_layout_8',
5056 + [
5057 + 'default' => $this->defaults['post_social_share_margin_left_layout_8'],
5058 + 'capability' => 'edit_theme_options',
5059 + 'transport' => 'postMessage',
5060 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5061 + ]
5062 + );
3826 5063
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 - );
5064 + $this->customizer->add_control(
5065 + new DimensionControl(
5066 + $this->customizer,
5067 + 'post_social_share_margin_left_layout_8',
5068 + [
5069 + 'type' => 'betterdocs-dimension',
5070 + 'section' => 'betterdocs_single_docs_settings',
5071 + 'settings' => 'post_social_share_margin_left_layout_8',
5072 + 'label' => __( 'Left', 'betterdocs' ),
5073 + 'priority' => 167,
5074 + 'input_attrs' => [
5075 + 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
5076 + ]
5077 + ]
5078 + )
5079 + );
5080 + }
3839 5081
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 - ] );
5082 + public function post_social_share_margin_layout_9() {
5083 + $this->customizer->add_setting(
5084 + 'post_social_share_margin_layout_9',
5085 + [
5086 + 'default' => $this->defaults['post_social_share_margin_layout_9'],
5087 + 'capability' => 'edit_theme_options',
5088 + 'transport' => 'postMessage',
5089 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5090 + ]
5091 + );
3846 5092
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 - );
5093 + $this->customizer->add_control(
5094 + new TitleControl(
5095 + $this->customizer,
5096 + 'post_social_share_margin_layout_9',
5097 + [
5098 + 'type' => 'betterdocs-title',
5099 + 'section' => 'betterdocs_single_docs_settings',
5100 + 'settings' => 'post_social_share_margin_layout_9',
5101 + 'label' => __( 'Margin', 'betterdocs' ),
5102 + 'priority' => 167,
5103 + 'input_attrs' => [
5104 + 'id' => 'post_social_share_margin_layout_9',
5105 + 'class' => 'betterdocs-dimension'
5106 + ]
5107 + ]
5108 + )
5109 + );
3859 5110
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 - ] );
5111 + $this->customizer->add_setting(
5112 + 'post_social_share_margin_top_layout_9',
5113 + [
5114 + 'default' => $this->defaults['post_social_share_margin_top_layout_9'],
5115 + 'capability' => 'edit_theme_options',
5116 + 'transport' => 'postMessage',
5117 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5118 + ]
5119 + );
3866 5120
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 - }
5121 + $this->customizer->add_control(
5122 + new DimensionControl(
5123 + $this->customizer,
5124 + 'post_social_share_margin_top_layout_9',
5125 + [
5126 + 'type' => 'betterdocs-dimension',
5127 + 'section' => 'betterdocs_single_docs_settings',
5128 + 'settings' => 'post_social_share_margin_top_layout_9',
5129 + 'label' => __( 'Top', 'betterdocs' ),
5130 + 'priority' => 167,
5131 + 'input_attrs' => [
5132 + 'class' => 'post_social_share_margin_layout_9 betterdocs-dimension'
5133 + ]
5134 + ]
5135 + )
5136 + );
3880 5137
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']
5138 + $this->customizer->add_setting(
5139 + 'post_social_share_margin_right_layout_9',
5140 + [
5141 + 'default' => $this->defaults['post_social_share_margin_right_layout_9'],
5142 + 'capability' => 'edit_theme_options',
5143 + 'transport' => 'postMessage',
5144 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5145 + ]
5146 + );
3887 5147
3888 - ] );
5148 + $this->customizer->add_control(
5149 + new DimensionControl(
5150 + $this->customizer,
5151 + 'post_social_share_margin_right_layout_9',
5152 + [
5153 + 'type' => 'betterdocs-dimension',
5154 + 'section' => 'betterdocs_single_docs_settings',
5155 + 'settings' => 'post_social_share_margin_right_layout_9',
5156 + 'label' => __( 'Right', 'betterdocs' ),
5157 + 'priority' => 167,
5158 + 'input_attrs' => [
5159 + 'class' => 'post_social_share_margin_layout_9 betterdocs-dimension'
5160 + ]
5161 + ]
5162 + )
5163 + );
3889 5164
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 - );
5165 + $this->customizer->add_setting(
5166 + 'post_social_share_margin_bottom_layout_9',
5167 + [
5168 + 'default' => $this->defaults['post_social_share_margin_bottom_layout_9'],
5169 + 'capability' => 'edit_theme_options',
5170 + 'transport' => 'postMessage',
5171 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5172 + ]
5173 + );
3903 5174
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 - ] );
5175 + $this->customizer->add_control(
5176 + new DimensionControl(
5177 + $this->customizer,
5178 + 'post_social_share_margin_bottom_layout_9',
5179 + [
5180 + 'type' => 'betterdocs-dimension',
5181 + 'section' => 'betterdocs_single_docs_settings',
5182 + 'settings' => 'post_social_share_margin_bottom_layout_9',
5183 + 'label' => __( 'Bottom', 'betterdocs' ),
5184 + 'priority' => 167,
5185 + 'input_attrs' => [
5186 + 'class' => 'post_social_share_margin_layout_9 betterdocs-dimension'
5187 + ]
5188 + ]
5189 + )
5190 + );
3910 5191
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 - );
5192 + $this->customizer->add_setting(
5193 + 'post_social_share_margin_left_layout_9',
5194 + [
5195 + 'default' => $this->defaults['post_social_share_margin_left_layout_9'],
5196 + 'capability' => 'edit_theme_options',
5197 + 'transport' => 'postMessage',
5198 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5199 + ]
5200 + );
3923 5201
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']
5202 + $this->customizer->add_control(
5203 + new DimensionControl(
5204 + $this->customizer,
5205 + 'post_social_share_margin_left_layout_9',
5206 + [
5207 + 'type' => 'betterdocs-dimension',
5208 + 'section' => 'betterdocs_single_docs_settings',
5209 + 'settings' => 'post_social_share_margin_left_layout_9',
5210 + 'label' => __( 'Left', 'betterdocs' ),
5211 + 'priority' => 167,
5212 + 'input_attrs' => [
5213 + 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
5214 + ]
5215 + ]
5216 + )
5217 + );
5218 + }
3929 5219
3930 - ] );
3931 5220
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 - );
5221 + public function post_social_share_padding_layout_8() {
5222 + $this->customizer->add_setting(
5223 + 'post_social_share_padding_layout_8',
5224 + [
5225 + 'default' => $this->defaults['post_social_share_padding_layout_8'],
5226 + 'capability' => 'edit_theme_options',
5227 + 'transport' => 'postMessage',
5228 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5229 + ]
5230 + );
3944 5231
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 - ] );
5232 + $this->customizer->add_control(
5233 + new TitleControl(
5234 + $this->customizer,
5235 + 'post_social_share_padding_layout_8',
5236 + [
5237 + 'type' => 'betterdocs-title',
5238 + 'section' => 'betterdocs_single_docs_settings',
5239 + 'settings' => 'post_social_share_padding_layout_8',
5240 + 'label' => __( 'Padding', 'betterdocs' ),
5241 + 'priority' => 167,
5242 + 'input_attrs' => [
5243 + 'id' => 'post_social_share_padding_layout_8',
5244 + 'class' => 'betterdocs-dimension'
5245 + ]
5246 + ]
5247 + )
5248 + );
3951 5249
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 - );
5250 + $this->customizer->add_setting(
5251 + 'post_social_share_padding_top_layout_8',
5252 + [
5253 + 'default' => $this->defaults['post_social_share_padding_top_layout_8'],
5254 + 'capability' => 'edit_theme_options',
5255 + 'transport' => 'postMessage',
5256 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5257 + ]
5258 + );
3964 5259
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 - ] );
5260 + $this->customizer->add_control(
5261 + new DimensionControl(
5262 + $this->customizer,
5263 + 'post_social_share_padding_top_layout_8',
5264 + [
5265 + 'type' => 'betterdocs-dimension',
5266 + 'section' => 'betterdocs_single_docs_settings',
5267 + 'settings' => 'post_social_share_padding_top_layout_8',
5268 + 'label' => __( 'Top', 'betterdocs' ),
5269 + 'priority' => 167,
5270 + 'input_attrs' => [
5271 + 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
5272 + ]
5273 + ]
5274 + )
5275 + );
3971 5276
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 - }
5277 + $this->customizer->add_setting(
5278 + 'post_social_share_padding_right_layout_8',
5279 + [
5280 + 'default' => $this->defaults['post_social_share_padding_right_layout_8'],
5281 + 'capability' => 'edit_theme_options',
5282 + 'transport' => 'postMessage',
5283 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5284 + ]
5285 + );
5286 +
5287 + $this->customizer->add_control(
5288 + new DimensionControl(
5289 + $this->customizer,
5290 + 'post_social_share_padding_right_layout_8',
5291 + [
5292 + 'type' => 'betterdocs-dimension',
5293 + 'section' => 'betterdocs_single_docs_settings',
5294 + 'settings' => 'post_social_share_padding_right_layout_8',
5295 + 'label' => __( 'Right', 'betterdocs' ),
5296 + 'priority' => 167,
5297 + 'input_attrs' => [
5298 + 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
5299 + ]
5300 + ]
5301 + )
5302 + );
5303 +
5304 + $this->customizer->add_setting(
5305 + 'post_social_share_padding_bottom_layout_8',
5306 + [
5307 + 'default' => $this->defaults['post_social_share_padding_bottom_layout_8'],
5308 + 'capability' => 'edit_theme_options',
5309 + 'transport' => 'postMessage',
5310 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5311 + ]
5312 + );
5313 +
5314 + $this->customizer->add_control(
5315 + new DimensionControl(
5316 + $this->customizer,
5317 + 'post_social_share_padding_bottom_layout_8',
5318 + [
5319 + 'type' => 'betterdocs-dimension',
5320 + 'section' => 'betterdocs_single_docs_settings',
5321 + 'settings' => 'post_social_share_padding_bottom_layout_8',
5322 + 'label' => __( 'Bottom', 'betterdocs' ),
5323 + 'priority' => 167,
5324 + 'input_attrs' => [
5325 + 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
5326 + ]
5327 + ]
5328 + )
5329 + );
5330 +
5331 + $this->customizer->add_setting(
5332 + 'post_social_share_padding_left_layout_8',
5333 + [
5334 + 'default' => $this->defaults['post_social_share_padding_left_layout_8'],
5335 + 'capability' => 'edit_theme_options',
5336 + 'transport' => 'postMessage',
5337 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5338 + ]
5339 + );
5340 +
5341 + $this->customizer->add_control(
5342 + new DimensionControl(
5343 + $this->customizer,
5344 + 'post_social_share_padding_left_layout_8',
5345 + [
5346 + 'type' => 'betterdocs-dimension',
5347 + 'section' => 'betterdocs_single_docs_settings',
5348 + 'settings' => 'post_social_share_padding_left_layout_8',
5349 + 'label' => __( 'Left', 'betterdocs' ),
5350 + 'priority' => 167,
5351 + 'input_attrs' => [
5352 + 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
5353 + ]
5354 + ]
5355 + )
5356 + );
5357 + }
5358 +
5359 + public function post_social_share_padding_layout_9() {
5360 + $this->customizer->add_setting(
5361 + 'post_social_share_padding_layout_9',
5362 + [
5363 + 'default' => $this->defaults['post_social_share_padding_layout_9'],
5364 + 'capability' => 'edit_theme_options',
5365 + 'transport' => 'postMessage',
5366 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5367 + ]
5368 + );
5369 +
5370 + $this->customizer->add_control(
5371 + new TitleControl(
5372 + $this->customizer,
5373 + 'post_social_share_padding_layout_9',
5374 + [
5375 + 'type' => 'betterdocs-title',
5376 + 'section' => 'betterdocs_single_docs_settings',
5377 + 'settings' => 'post_social_share_padding_layout_9',
5378 + 'label' => __( 'Padding', 'betterdocs' ),
5379 + 'priority' => 167,
5380 + 'input_attrs' => [
5381 + 'id' => 'post_social_share_padding_layout_9',
5382 + 'class' => 'betterdocs-dimension'
5383 + ]
5384 + ]
5385 + )
5386 + );
5387 +
5388 + $this->customizer->add_setting(
5389 + 'post_social_share_padding_top_layout_9',
5390 + [
5391 + 'default' => $this->defaults['post_social_share_padding_top_layout_9'],
5392 + 'capability' => 'edit_theme_options',
5393 + 'transport' => 'postMessage',
5394 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5395 + ]
5396 + );
5397 +
5398 + $this->customizer->add_control(
5399 + new DimensionControl(
5400 + $this->customizer,
5401 + 'post_social_share_padding_top_layout_9',
5402 + [
5403 + 'type' => 'betterdocs-dimension',
5404 + 'section' => 'betterdocs_single_docs_settings',
5405 + 'settings' => 'post_social_share_padding_top_layout_9',
5406 + 'label' => __( 'Top', 'betterdocs' ),
5407 + 'priority' => 167,
5408 + 'input_attrs' => [
5409 + 'class' => 'post_social_share_padding_layout_9 betterdocs-dimension'
5410 + ]
5411 + ]
5412 + )
5413 + );
5414 +
5415 + $this->customizer->add_setting(
5416 + 'post_social_share_padding_right_layout_9',
5417 + [
5418 + 'default' => $this->defaults['post_social_share_padding_right_layout_9'],
5419 + 'capability' => 'edit_theme_options',
5420 + 'transport' => 'postMessage',
5421 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5422 + ]
5423 + );
5424 +
5425 + $this->customizer->add_control(
5426 + new DimensionControl(
5427 + $this->customizer,
5428 + 'post_social_share_padding_right_layout_9',
5429 + [
5430 + 'type' => 'betterdocs-dimension',
5431 + 'section' => 'betterdocs_single_docs_settings',
5432 + 'settings' => 'post_social_share_padding_right_layout_9',
5433 + 'label' => __( 'Right', 'betterdocs' ),
5434 + 'priority' => 167,
5435 + 'input_attrs' => [
5436 + 'class' => 'post_social_share_padding_layout_9 betterdocs-dimension'
5437 + ]
5438 + ]
5439 + )
5440 + );
5441 +
5442 + $this->customizer->add_setting(
5443 + 'post_social_share_padding_bottom_layout_9',
5444 + [
5445 + 'default' => $this->defaults['post_social_share_padding_bottom_layout_9'],
5446 + 'capability' => 'edit_theme_options',
5447 + 'transport' => 'postMessage',
5448 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5449 + ]
5450 + );
5451 +
5452 + $this->customizer->add_control(
5453 + new DimensionControl(
5454 + $this->customizer,
5455 + 'post_social_share_padding_bottom_layout_9',
5456 + [
5457 + 'type' => 'betterdocs-dimension',
5458 + 'section' => 'betterdocs_single_docs_settings',
5459 + 'settings' => 'post_social_share_padding_bottom_layout_9',
5460 + 'label' => __( 'Bottom', 'betterdocs' ),
5461 + 'priority' => 167,
5462 + 'input_attrs' => [
5463 + 'class' => 'post_social_share_padding_layout_9 betterdocs-dimension'
5464 + ]
5465 + ]
5466 + )
5467 + );
5468 +
5469 + $this->customizer->add_setting(
5470 + 'post_social_share_padding_left_layout_9',
5471 + [
5472 + 'default' => $this->defaults['post_social_share_padding_left_layout_9'],
5473 + 'capability' => 'edit_theme_options',
5474 + 'transport' => 'postMessage',
5475 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5476 + ]
5477 + );
5478 +
5479 + $this->customizer->add_control(
5480 + new DimensionControl(
5481 + $this->customizer,
5482 + 'post_social_share_padding_left_layout_9',
5483 + [
5484 + 'type' => 'betterdocs-dimension',
5485 + 'section' => 'betterdocs_single_docs_settings',
5486 + 'settings' => 'post_social_share_padding_left_layout_9',
5487 + 'label' => __( 'Left', 'betterdocs' ),
5488 + 'priority' => 167,
5489 + 'input_attrs' => [
5490 + 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
5491 + ]
5492 + ]
5493 + )
5494 + );
5495 + }
5496 +
5497 + public function post_social_share_facebook() {
5498 + $this->customizer->add_setting(
5499 + 'betterdocs_post_social_share_facebook',
5500 + [
5501 + 'default' => $this->defaults['betterdocs_post_social_share_facebook'],
5502 + 'capability' => 'edit_theme_options',
5503 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
5504 + ]
5505 + );
5506 +
5507 + $this->customizer->add_control(
5508 + new ToggleControl(
5509 + $this->customizer,
5510 + 'betterdocs_post_social_share_facebook',
5511 + [
5512 + 'label' => __( 'Facebook Sharing', 'betterdocs' ),
5513 + 'priority' => 168,
5514 + 'section' => 'betterdocs_single_docs_settings',
5515 + 'settings' => 'betterdocs_post_social_share_facebook',
5516 + 'type' => 'light' // light, ios, flat
5517 + ]
5518 + )
5519 + );
5520 + }
5521 +
5522 + public function post_social_share_twitter() {
5523 + $this->customizer->add_setting(
5524 + 'betterdocs_post_social_share_twitter',
5525 + [
5526 + 'default' => $this->defaults['betterdocs_post_social_share_twitter'],
5527 + 'capability' => 'edit_theme_options',
5528 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
5529 + ]
5530 + );
5531 +
5532 + $this->customizer->add_control(
5533 + new ToggleControl(
5534 + $this->customizer,
5535 + 'betterdocs_post_social_share_twitter',
5536 + [
5537 + 'label' => __( 'Twitter Sharing', 'betterdocs' ),
5538 + 'priority' => 169,
5539 + 'section' => 'betterdocs_single_docs_settings',
5540 + 'settings' => 'betterdocs_post_social_share_twitter',
5541 + 'type' => 'light' // light, ios, flat
5542 + ]
5543 + )
5544 + );
5545 + }
5546 +
5547 + public function post_social_share_linkedin() {
5548 + $this->customizer->add_setting(
5549 + 'betterdocs_post_social_share_linkedin',
5550 + [
5551 + 'default' => $this->defaults['betterdocs_post_social_share_linkedin'],
5552 + 'capability' => 'edit_theme_options',
5553 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
5554 + ]
5555 + );
5556 +
5557 + $this->customizer->add_control(
5558 + new ToggleControl(
5559 + $this->customizer,
5560 + 'betterdocs_post_social_share_linkedin',
5561 + [
5562 + 'label' => __( 'Linkedin Sharing', 'betterdocs' ),
5563 + 'priority' => 170,
5564 + 'section' => 'betterdocs_single_docs_settings',
5565 + 'settings' => 'betterdocs_post_social_share_linkedin',
5566 + 'type' => 'light' // light, ios, flat
5567 + ]
5568 + )
5569 + );
5570 + }
5571 +
5572 + public function post_social_share_pinterest() {
5573 + $this->customizer->add_setting(
5574 + 'betterdocs_post_social_share_pinterest',
5575 + [
5576 + 'default' => $this->defaults['betterdocs_post_social_share_pinterest'],
5577 + 'capability' => 'edit_theme_options',
5578 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
5579 + ]
5580 + );
5581 +
5582 + $this->customizer->add_control(
5583 + new ToggleControl(
5584 + $this->customizer,
5585 + 'betterdocs_post_social_share_pinterest',
5586 + [
5587 + 'label' => __( 'Pinterest Sharing', 'betterdocs' ),
5588 + 'priority' => 171,
5589 + 'section' => 'betterdocs_single_docs_settings',
5590 + 'settings' => 'betterdocs_post_social_share_pinterest',
5591 + 'type' => 'light' // light, ios, flat
5592 + ]
5593 + )
5594 + );
5595 + }
5596 +
5597 + public function doc_single_entry_footer() {
5598 + $this->customizer->add_setting(
5599 + 'betterdocs_doc_single_entry_footer',
5600 + [
5601 + 'default' => $this->defaults['betterdocs_doc_single_entry_footer'],
5602 + 'sanitize_callback' => 'esc_html'
5603 + ]
5604 + );
5605 +
5606 + $this->customizer->add_control(
5607 + new SeparatorControl(
5608 + $this->customizer,
5609 + 'betterdocs_doc_single_entry_footer',
5610 + [
5611 + 'label' => __( 'Entry Footer', 'betterdocs' ),
5612 + 'priority' => 172,
5613 + 'settings' => 'betterdocs_doc_single_entry_footer',
5614 + 'section' => 'betterdocs_single_docs_settings'
5615 + ]
5616 + )
5617 + );
5618 + }
5619 +
5620 + public function single_doc_feedback_label_name_text(){
5621 + $this->customizer->add_setting(
5622 + 'single_doc_feedback_label_name_text',
5623 + [
5624 + 'default' => $this->defaults['single_doc_feedback_label_name_text'],
5625 + 'capability' => 'edit_theme_options',
5626 + 'sanitize_callback' => 'esc_html'
5627 + ]
5628 + );
5629 +
5630 + $this->customizer->add_control(
5631 + new SelectControl(
5632 + $this->customizer,
5633 + 'single_doc_feedback_label_name_text',
5634 + [
5635 + 'label' => __( 'Label Name Text', 'betterdocs' ),
5636 + 'priority' => 173,
5637 + 'section' => 'betterdocs_single_docs_settings',
5638 + 'settings' => 'single_doc_feedback_label_name_text',
5639 + 'type' => 'text'
5640 + ]
5641 + )
5642 + );
5643 + }
5644 +
5645 + public function single_doc_feedback_label_email_text(){
5646 + $this->customizer->add_setting(
5647 + 'single_doc_feedback_label_email_text',
5648 + [
5649 + 'default' => $this->defaults['single_doc_feedback_label_email_text'],
5650 + 'capability' => 'edit_theme_options',
5651 + 'sanitize_callback' => 'esc_html'
5652 + ]
5653 + );
5654 +
5655 + $this->customizer->add_control(
5656 + new SelectControl(
5657 + $this->customizer,
5658 + 'single_doc_feedback_label_email_text',
5659 + [
5660 + 'label' => __( 'Label Email Text', 'betterdocs' ),
5661 + 'priority' => 173,
5662 + 'section' => 'betterdocs_single_docs_settings',
5663 + 'settings' => 'single_doc_feedback_label_email_text',
5664 + 'type' => 'text'
5665 + ]
5666 + )
5667 + );
5668 + }
5669 +
5670 + public function single_doc_feedback_label_message_text(){
5671 + $this->customizer->add_setting(
5672 + 'single_doc_feedback_label_message_text',
5673 + [
5674 + 'default' => $this->defaults['single_doc_feedback_label_message_text'],
5675 + 'capability' => 'edit_theme_options',
5676 + 'sanitize_callback' => 'esc_html'
5677 + ]
5678 + );
5679 +
5680 + $this->customizer->add_control(
5681 + new SelectControl(
5682 + $this->customizer,
5683 + 'single_doc_feedback_label_message_text',
5684 + [
5685 + 'label' => __( 'Label Message Text', 'betterdocs' ),
5686 + 'priority' => 173,
5687 + 'section' => 'betterdocs_single_docs_settings',
5688 + 'settings' => 'single_doc_feedback_label_message_text',
5689 + 'type' => 'text'
5690 + ]
5691 + )
5692 + );
5693 + }
5694 +
5695 + public function single_doc_feedback_icon_font_size() {
5696 + $this->customizer->add_setting(
5697 + 'betterdocs_single_doc_feedback_icon_font_size',
5698 + [
5699 + 'default' => $this->defaults['betterdocs_single_doc_feedback_icon_font_size'],
5700 + 'capability' => 'edit_theme_options',
5701 + 'transport' => 'postMessage',
5702 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5703 +
5704 + ]
5705 + );
5706 +
5707 + $this->customizer->add_control(
5708 + new RangeValueControl(
5709 + $this->customizer,
5710 + 'betterdocs_single_doc_feedback_icon_font_size',
5711 + [
5712 + 'type' => 'betterdocs-range-value',
5713 + 'section' => 'betterdocs_single_docs_settings',
5714 + 'settings' => 'betterdocs_single_doc_feedback_icon_font_size',
5715 + 'label' => __( 'Feedback Icon Size', 'betterdocs' ),
5716 + 'priority' => 173,
5717 + 'input_attrs' => [
5718 + 'class' => '',
5719 + 'min' => 0,
5720 + 'max' => 100,
5721 + 'step' => 1,
5722 + 'suffix' => 'px' //optional suffix
5723 + ]
5724 + ]
5725 + )
5726 + );
5727 + }
5728 +
5729 + public function single_doc_feedback_icon() {
5730 + $this->customizer->add_setting(
5731 + 'betterdocs_single_doc_feedback_icon',
5732 + [
5733 + 'default' => $this->defaults['betterdocs_single_doc_feedback_icon'],
5734 + 'capability' => 'edit_theme_options'
5735 + ]
5736 + );
5737 +
5738 + $this->customizer->add_control(
5739 + new WP_Customize_Image_Control(
5740 + $this->customizer,
5741 + 'betterdocs_single_doc_feedback_icon',
5742 + [
5743 + 'section' => 'betterdocs_single_docs_settings',
5744 + 'settings' => 'betterdocs_single_doc_feedback_icon',
5745 + 'label' => __( 'Feedback Icon', 'betterdocs' ),
5746 + 'priority' => 173
5747 + ]
5748 + )
5749 + );
5750 + }
5751 +
5752 + public function single_doc_feedback_link_color() {
5753 + $this->customizer->add_setting(
5754 + 'betterdocs_single_doc_feedback_link_color',
5755 + [
5756 + 'default' => $this->defaults['betterdocs_single_doc_feedback_link_color'],
5757 + 'capability' => 'edit_theme_options',
5758 + 'transport' => 'postMessage',
5759 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5760 + ]
5761 + );
5762 +
5763 + $this->customizer->add_control(
5764 + new AlphaColorControl(
5765 + $this->customizer,
5766 + 'betterdocs_single_doc_feedback_link_color',
5767 + [
5768 + 'label' => __( 'Feedback Link Color', 'betterdocs' ),
5769 + 'priority' => 174,
5770 + 'section' => 'betterdocs_single_docs_settings',
5771 + 'settings' => 'betterdocs_single_doc_feedback_link_color'
5772 + ]
5773 + )
5774 + );
5775 + }
5776 +
5777 + public function single_doc_feedback_link_hover_color() {
5778 + $this->customizer->add_setting(
5779 + 'betterdocs_single_doc_feedback_link_hover_color',
5780 + [
5781 + 'default' => $this->defaults['betterdocs_single_doc_feedback_link_hover_color'],
5782 + 'capability' => 'edit_theme_options',
5783 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5784 + ]
5785 + );
5786 +
5787 + $this->customizer->add_control(
5788 + new AlphaColorControl(
5789 + $this->customizer,
5790 + 'betterdocs_single_doc_feedback_link_hover_color',
5791 + [
5792 + 'label' => __( 'Feedback Link Hover Color', 'betterdocs' ),
5793 + 'priority' => 175,
5794 + 'section' => 'betterdocs_single_docs_settings',
5795 + 'settings' => 'betterdocs_single_doc_feedback_link_hover_color'
5796 + ]
5797 + )
5798 + );
5799 + }
5800 +
5801 + public function single_doc_feedback_link_font_size() {
5802 + $this->customizer->add_setting(
5803 + 'betterdocs_single_doc_feedback_link_font_size',
5804 + [
5805 + 'default' => $this->defaults['betterdocs_single_doc_feedback_link_font_size'],
5806 + 'capability' => 'edit_theme_options',
5807 + 'transport' => 'postMessage',
5808 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5809 +
5810 + ]
5811 + );
5812 +
5813 + $this->customizer->add_control(
5814 + new RangeValueControl(
5815 + $this->customizer,
5816 + 'betterdocs_single_doc_feedback_link_font_size',
5817 + [
5818 + 'type' => 'betterdocs-range-value',
5819 + 'section' => 'betterdocs_single_docs_settings',
5820 + 'settings' => 'betterdocs_single_doc_feedback_link_font_size',
5821 + 'label' => __( 'Feedback Link Font Size', 'betterdocs' ),
5822 + 'priority' => 175,
5823 + 'input_attrs' => [
5824 + 'class' => '',
5825 + 'min' => 0,
5826 + 'max' => 50,
5827 + 'step' => 1,
5828 + 'suffix' => 'px' //optional suffix
5829 + ]
5830 + ]
5831 + )
5832 + );
5833 + }
5834 +
5835 + public function feedback_form_title_tag() {
5836 + $this->customizer->add_setting(
5837 + 'betterdocs_feedback_form_title_tag',
5838 + [
5839 + 'default' => $this->defaults['betterdocs_feedback_form_title_tag'],
5840 + 'capability' => 'edit_theme_options',
5841 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
5842 + ]
5843 + );
5844 +
5845 + $this->customizer->add_control(
5846 + new WP_Customize_Control(
5847 + $this->customizer,
5848 + 'betterdocs_feedback_form_title_tag',
5849 + [
5850 + 'label' => __( 'Feedback Form Title Tag', 'betterdocs' ),
5851 + 'section' => 'betterdocs_single_docs_settings',
5852 + 'settings' => 'betterdocs_feedback_form_title_tag',
5853 + 'priority' => 175,
5854 + 'type' => 'select',
5855 + 'choices' => [
5856 + 'h1' => 'h1',
5857 + 'h2' => 'h2',
5858 + 'h3' => 'h3',
5859 + 'h4' => 'h4',
5860 + 'h5' => 'h5',
5861 + 'h6' => 'h6',
5862 + 'p' => 'p'
5863 + ]
5864 + ]
5865 + )
5866 + );
5867 + }
5868 +
5869 + public function single_doc_feedback_title_font_size() {
5870 + $this->customizer->add_setting(
5871 + 'betterdocs_single_doc_feedback_title_font_size',
5872 + [
5873 + 'default' => $this->defaults['betterdocs_single_doc_feedback_title_font_size'],
5874 + 'capability' => 'edit_theme_options',
5875 + 'transport' => 'postMessage',
5876 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5877 +
5878 + ]
5879 + );
5880 +
5881 + $this->customizer->add_control(
5882 + new RangeValueControl(
5883 + $this->customizer,
5884 + 'betterdocs_single_doc_feedback_title_font_size',
5885 + [
5886 + 'type' => 'betterdocs-range-value',
5887 + 'section' => 'betterdocs_single_docs_settings',
5888 + 'settings' => 'betterdocs_single_doc_feedback_title_font_size',
5889 + 'label' => __( 'Feedback Form Title Font Size', 'betterdocs' ),
5890 + 'priority' => 175,
5891 + 'input_attrs' => [
5892 + 'class' => '',
5893 + 'min' => 0,
5894 + 'max' => 100,
5895 + 'step' => 1,
5896 + 'suffix' => 'px' //optional suffix
5897 + ]
5898 + ]
5899 + )
5900 + );
5901 + }
5902 +
5903 + public function single_doc_feedback_title_color() {
5904 + $this->customizer->add_setting(
5905 + 'betterdocs_single_doc_feedback_title_color',
5906 + [
5907 + 'default' => $this->defaults['betterdocs_single_doc_feedback_title_color'],
5908 + 'capability' => 'edit_theme_options',
5909 + 'transport' => 'postMessage',
5910 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5911 + ]
5912 + );
5913 +
5914 + $this->customizer->add_control(
5915 + new AlphaColorControl(
5916 + $this->customizer,
5917 + 'betterdocs_single_doc_feedback_title_color',
5918 + [
5919 + 'label' => __( 'Feedback Form Title Color', 'betterdocs' ),
5920 + 'priority' => 175,
5921 + 'section' => 'betterdocs_single_docs_settings',
5922 + 'settings' => 'betterdocs_single_doc_feedback_title_color'
5923 + ]
5924 + )
5925 + );
5926 + }
5927 +
5928 + public function single_doc_navigation_color() {
5929 + $this->customizer->add_setting(
5930 + 'betterdocs_single_doc_navigation_color',
5931 + [
5932 + 'default' => $this->defaults['betterdocs_single_doc_navigation_color'],
5933 + 'capability' => 'edit_theme_options',
5934 + 'transport' => 'postMessage',
5935 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5936 + ]
5937 + );
5938 +
5939 + $this->customizer->add_control(
5940 + new AlphaColorControl(
5941 + $this->customizer,
5942 + 'betterdocs_single_doc_navigation_color',
5943 + [
5944 + 'label' => __( 'Navigation Color', 'betterdocs' ),
5945 + 'priority' => 177,
5946 + 'section' => 'betterdocs_single_docs_settings',
5947 + 'settings' => 'betterdocs_single_doc_navigation_color'
5948 + ]
5949 + )
5950 + );
5951 + }
5952 +
5953 + public function single_doc_navigation_font_size() {
5954 + $this->customizer->add_setting(
5955 + 'betterdocs_single_doc_navigation_font_size',
5956 + [
5957 + 'default' => $this->defaults['betterdocs_single_doc_navigation_font_size'],
5958 + 'capability' => 'edit_theme_options',
5959 + 'transport' => 'postMessage',
5960 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5961 +
5962 + ]
5963 + );
5964 +
5965 + $this->customizer->add_control(
5966 + new RangeValueControl(
5967 + $this->customizer,
5968 + 'betterdocs_single_doc_navigation_font_size',
5969 + [
5970 + 'type' => 'betterdocs-range-value',
5971 + 'section' => 'betterdocs_single_docs_settings',
5972 + 'settings' => 'betterdocs_single_doc_navigation_font_size',
5973 + 'label' => __( 'Navigation Font Size', 'betterdocs' ),
5974 + 'priority' => 178,
5975 + 'input_attrs' => [
5976 + 'class' => '',
5977 + 'min' => 0,
5978 + 'max' => 50,
5979 + 'step' => 1,
5980 + 'suffix' => 'px' //optional suffix
5981 + ]
5982 + ]
5983 + )
5984 + );
5985 + }
5986 +
5987 + public function single_doc_navigation_hover_color() {
5988 + $this->customizer->add_setting(
5989 + 'betterdocs_single_doc_navigation_hover_color',
5990 + [
5991 + 'default' => $this->defaults['betterdocs_single_doc_navigation_hover_color'],
5992 + 'capability' => 'edit_theme_options',
5993 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5994 + ]
5995 + );
5996 +
5997 + $this->customizer->add_control(
5998 + new AlphaColorControl(
5999 + $this->customizer,
6000 + 'betterdocs_single_doc_navigation_hover_color',
6001 + [
6002 + 'label' => __( 'Navigation Hover Color', 'betterdocs' ),
6003 + 'priority' => 179,
6004 + 'section' => 'betterdocs_single_docs_settings',
6005 + 'settings' => 'betterdocs_single_doc_navigation_hover_color'
6006 + ]
6007 + )
6008 + );
6009 + }
6010 +
6011 + public function single_doc_navigation_arrow_color() {
6012 + $this->customizer->add_setting(
6013 + 'betterdocs_single_doc_navigation_arrow_color',
6014 + [
6015 + 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_color'],
6016 + 'capability' => 'edit_theme_options',
6017 + 'transport' => 'postMessage',
6018 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6019 + ]
6020 + );
6021 +
6022 + $this->customizer->add_control(
6023 + new AlphaColorControl(
6024 + $this->customizer,
6025 + 'betterdocs_single_doc_navigation_arrow_color',
6026 + [
6027 + 'label' => __( 'Navigation Arrow Color', 'betterdocs' ),
6028 + 'priority' => 180,
6029 + 'section' => 'betterdocs_single_docs_settings',
6030 + 'settings' => 'betterdocs_single_doc_navigation_arrow_color'
6031 + ]
6032 + )
6033 + );
6034 + }
6035 +
6036 + public function single_doc_navigation_arrow_font_size() {
6037 + $this->customizer->add_setting(
6038 + 'betterdocs_single_doc_navigation_arrow_font_size',
6039 + [
6040 + 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_font_size'],
6041 + 'capability' => 'edit_theme_options',
6042 + 'transport' => 'postMessage',
6043 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6044 +
6045 + ]
6046 + );
6047 +
6048 + $this->customizer->add_control(
6049 + new RangeValueControl(
6050 + $this->customizer,
6051 + 'betterdocs_single_doc_navigation_arrow_font_size',
6052 + [
6053 + 'type' => 'betterdocs-range-value',
6054 + 'section' => 'betterdocs_single_docs_settings',
6055 + 'settings' => 'betterdocs_single_doc_navigation_arrow_font_size',
6056 + 'label' => __( 'Navigation Arrow Font Size', 'betterdocs' ),
6057 + 'priority' => 181,
6058 + 'input_attrs' => [
6059 + 'class' => '',
6060 + 'min' => 0,
6061 + 'max' => 50,
6062 + 'step' => 1,
6063 + 'suffix' => 'px' //optional suffix
6064 + ]
6065 + ]
6066 + )
6067 + );
6068 + }
6069 +
6070 + public function single_doc_navigation_color_layout_8_9() {
6071 + $this->customizer->add_setting(
6072 + 'betterdocs_single_doc_navigation_color_layout_8_9',
6073 + [
6074 + 'default' => $this->defaults['betterdocs_single_doc_navigation_color_layout_8_9'],
6075 + 'capability' => 'edit_theme_options',
6076 + 'transport' => 'postMessage',
6077 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6078 + ]
6079 + );
6080 +
6081 + $this->customizer->add_control(
6082 + new AlphaColorControl(
6083 + $this->customizer,
6084 + 'betterdocs_single_doc_navigation_color_layout_8_9',
6085 + [
6086 + 'label' => __( 'Navigation Color', 'betterdocs' ),
6087 + 'priority' => 177,
6088 + 'section' => 'betterdocs_single_docs_settings',
6089 + 'settings' => 'betterdocs_single_doc_navigation_color_layout_8_9'
6090 + ]
6091 + )
6092 + );
6093 + }
6094 +
6095 + public function single_doc_navigation_font_size_layout_8_9() {
6096 + $this->customizer->add_setting(
6097 + 'betterdocs_single_doc_navigation_font_size_layout_8_9',
6098 + [
6099 + 'default' => $this->defaults['betterdocs_single_doc_navigation_font_size_layout_8_9'],
6100 + 'capability' => 'edit_theme_options',
6101 + 'transport' => 'postMessage',
6102 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6103 +
6104 + ]
6105 + );
6106 +
6107 + $this->customizer->add_control(
6108 + new RangeValueControl(
6109 + $this->customizer,
6110 + 'betterdocs_single_doc_navigation_font_size_layout_8_9',
6111 + [
6112 + 'type' => 'betterdocs-range-value',
6113 + 'section' => 'betterdocs_single_docs_settings',
6114 + 'settings' => 'betterdocs_single_doc_navigation_font_size_layout_8_9',
6115 + 'label' => __( 'Navigation Font Size', 'betterdocs' ),
6116 + 'priority' => 178,
6117 + 'input_attrs' => [
6118 + 'class' => '',
6119 + 'min' => 0,
6120 + 'max' => 50,
6121 + 'step' => 1,
6122 + 'suffix' => 'px' //optional suffix
6123 + ]
6124 + ]
6125 + )
6126 + );
6127 + }
6128 +
6129 + public function single_doc_navigation_hover_color_layout_8_9() {
6130 + $this->customizer->add_setting(
6131 + 'betterdocs_single_doc_navigation_hover_color_layout_8_9',
6132 + [
6133 + 'default' => $this->defaults['betterdocs_single_doc_navigation_hover_color_layout_8_9'],
6134 + 'capability' => 'edit_theme_options',
6135 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6136 + ]
6137 + );
6138 +
6139 + $this->customizer->add_control(
6140 + new AlphaColorControl(
6141 + $this->customizer,
6142 + 'betterdocs_single_doc_navigation_hover_color_layout_8_9',
6143 + [
6144 + 'label' => __( 'Navigation Hover Color', 'betterdocs' ),
6145 + 'priority' => 179,
6146 + 'section' => 'betterdocs_single_docs_settings',
6147 + 'settings' => 'betterdocs_single_doc_navigation_hover_color_layout_8_9'
6148 + ]
6149 + )
6150 + );
6151 + }
6152 +
6153 + public function single_doc_navigation_arrow_color_layout_8_9() {
6154 + $this->customizer->add_setting(
6155 + 'betterdocs_single_doc_navigation_arrow_color_layout_8_9',
6156 + [
6157 + 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_color_layout_8_9'],
6158 + 'capability' => 'edit_theme_options',
6159 + 'transport' => 'postMessage',
6160 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6161 + ]
6162 + );
6163 +
6164 + $this->customizer->add_control(
6165 + new AlphaColorControl(
6166 + $this->customizer,
6167 + 'betterdocs_single_doc_navigation_arrow_color_layout_8_9',
6168 + [
6169 + 'label' => __( 'Navigation Arrow Color', 'betterdocs' ),
6170 + 'priority' => 180,
6171 + 'section' => 'betterdocs_single_docs_settings',
6172 + 'settings' => 'betterdocs_single_doc_navigation_arrow_color_layout_8_9'
6173 + ]
6174 + )
6175 + );
6176 + }
6177 +
6178 + public function single_doc_navigation_arrow_font_size_layout_8_9() {
6179 + $this->customizer->add_setting(
6180 + 'betterdocs_single_doc_navigation_arrow_font_size_layout_8_9',
6181 + [
6182 + 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_font_size_layout_8_9'],
6183 + 'capability' => 'edit_theme_options',
6184 + 'transport' => 'postMessage',
6185 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6186 +
6187 + ]
6188 + );
6189 +
6190 + $this->customizer->add_control(
6191 + new RangeValueControl(
6192 + $this->customizer,
6193 + 'betterdocs_single_doc_navigation_arrow_font_size_layout_8_9',
6194 + [
6195 + 'type' => 'betterdocs-range-value',
6196 + 'section' => 'betterdocs_single_docs_settings',
6197 + 'settings' => 'betterdocs_single_doc_navigation_arrow_font_size_layout_8_9',
6198 + 'label' => __( 'Navigation Arrow Font Size', 'betterdocs' ),
6199 + 'priority' => 181,
6200 + 'input_attrs' => [
6201 + 'class' => '',
6202 + 'min' => 0,
6203 + 'max' => 50,
6204 + 'step' => 1,
6205 + 'suffix' => 'px' //optional suffix
6206 + ]
6207 + ]
6208 + )
6209 + );
6210 + }
6211 +
6212 + public function betterdocs_single_doc_lu_time_color() {
6213 + $this->customizer->add_setting(
6214 + 'betterdocs_single_doc_lu_time_color',
6215 + [
6216 + 'default' => $this->defaults['betterdocs_single_doc_lu_time_color'],
6217 + 'capability' => 'edit_theme_options',
6218 + 'transport' => 'postMessage',
6219 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6220 + ]
6221 + );
6222 +
6223 + $this->customizer->add_control(
6224 + new AlphaColorControl(
6225 + $this->customizer,
6226 + 'betterdocs_single_doc_lu_time_color',
6227 + [
6228 + 'label' => __( 'Last Updated Time Color', 'betterdocs' ),
6229 + 'priority' => 182,
6230 + 'section' => 'betterdocs_single_docs_settings',
6231 + 'settings' => 'betterdocs_single_doc_lu_time_color'
6232 + ]
6233 + )
6234 + );
6235 + }
6236 +
6237 + public function single_doc_lu_time_font_size() {
6238 + $this->customizer->add_setting(
6239 + 'betterdocs_single_doc_lu_time_font_size',
6240 + [
6241 + 'default' => $this->defaults['betterdocs_single_doc_lu_time_font_size'],
6242 + 'capability' => 'edit_theme_options',
6243 + 'transport' => 'postMessage',
6244 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6245 +
6246 + ]
6247 + );
6248 +
6249 + $this->customizer->add_control(
6250 + new RangeValueControl(
6251 + $this->customizer,
6252 + 'betterdocs_single_doc_lu_time_font_size',
6253 + [
6254 + 'type' => 'betterdocs-range-value',
6255 + 'section' => 'betterdocs_single_docs_settings',
6256 + 'settings' => 'betterdocs_single_doc_lu_time_font_size',
6257 + 'label' => __( 'Last Updated Time Font Size', 'betterdocs' ),
6258 + 'priority' => 183,
6259 + 'input_attrs' => [
6260 + 'class' => '',
6261 + 'min' => 0,
6262 + 'max' => 50,
6263 + 'step' => 1,
6264 + 'suffix' => 'px' //optional suffix
6265 + ]
6266 + ]
6267 + )
6268 + );
6269 + }
6270 +
6271 +
6272 +
6273 + public function single_doc_powered_by_color() {
6274 + $this->customizer->add_setting(
6275 + 'betterdocs_single_doc_powered_by_color',
6276 + [
6277 + 'default' => $this->defaults['betterdocs_single_doc_powered_by_color'],
6278 + 'capability' => 'edit_theme_options',
6279 + 'transport' => 'postMessage',
6280 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6281 + ]
6282 + );
6283 +
6284 + $this->customizer->add_control(
6285 + new AlphaColorControl(
6286 + $this->customizer,
6287 + 'betterdocs_single_doc_powered_by_color',
6288 + [
6289 + 'label' => __( 'Powered by Color', 'betterdocs' ),
6290 + 'priority' => 184,
6291 + 'section' => 'betterdocs_single_docs_settings',
6292 + 'settings' => 'betterdocs_single_doc_powered_by_color'
6293 + ]
6294 + )
6295 + );
6296 + }
6297 +
6298 + public function single_doc_powered_by_font_size() {
6299 + $this->customizer->add_setting(
6300 + 'betterdocs_single_doc_powered_by_font_size',
6301 + [
6302 + 'default' => $this->defaults['betterdocs_single_doc_powered_by_font_size'],
6303 + 'capability' => 'edit_theme_options',
6304 + 'transport' => 'postMessage',
6305 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6306 +
6307 + ]
6308 + );
6309 +
6310 + $this->customizer->add_control(
6311 + new RangeValueControl(
6312 + $this->customizer,
6313 + 'betterdocs_single_doc_powered_by_font_size',
6314 + [
6315 + 'type' => 'betterdocs-range-value',
6316 + 'section' => 'betterdocs_single_docs_settings',
6317 + 'settings' => 'betterdocs_single_doc_powered_by_font_size',
6318 + 'label' => __( 'Powered By Font Size', 'betterdocs' ),
6319 + 'priority' => 185,
6320 + 'input_attrs' => [
6321 + 'class' => '',
6322 + 'min' => 0,
6323 + 'max' => 50,
6324 + 'step' => 1,
6325 + 'suffix' => 'px' //optional suffix
6326 + ]
6327 + ]
6328 + )
6329 + );
6330 + }
6331 +
6332 + public function single_doc_powered_by_link_color() {
6333 + $this->customizer->add_setting(
6334 + 'betterdocs_single_doc_powered_by_link_color',
6335 + [
6336 + 'default' => $this->defaults['betterdocs_single_doc_powered_by_link_color'],
6337 + 'capability' => 'edit_theme_options',
6338 + 'transport' => 'postMessage',
6339 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6340 + ]
6341 + );
6342 +
6343 + $this->customizer->add_control(
6344 + new AlphaColorControl(
6345 + $this->customizer,
6346 + 'betterdocs_single_doc_powered_by_link_color',
6347 + [
6348 + 'label' => __( 'Powered By Link Color', 'betterdocs' ),
6349 + 'priority' => 186,
6350 + 'section' => 'betterdocs_single_docs_settings',
6351 + 'settings' => 'betterdocs_single_doc_powered_by_link_color'
6352 + ]
6353 + )
6354 + );
6355 + }
6356 +
6357 + public function reactions_title() {
6358 + $this->customizer->add_setting(
6359 + 'betterdocs_reactions_title',
6360 + [
6361 + 'default' => '',
6362 + 'sanitize_callback' => 'esc_html'
6363 + ]
6364 + );
6365 +
6366 + $this->customizer->add_control(
6367 + new SeparatorControl(
6368 + $this->customizer,
6369 + 'betterdocs_reactions_title',
6370 + [
6371 + 'label' => __( 'Reactions', 'betterdocs' ),
6372 + 'priority' => 159,
6373 + 'settings' => 'betterdocs_reactions_title',
6374 + 'section' => 'betterdocs_single_docs_settings'
6375 + ]
6376 + )
6377 + );
6378 + }
6379 +
6380 + public function reactions_title_tag() {
6381 + $this->customizer->add_setting(
6382 + 'betterdocs_reactions_title_tag',
6383 + [
6384 + 'default' => $this->defaults['betterdocs_reactions_title_tag'],
6385 + 'capability' => 'edit_theme_options',
6386 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
6387 + ]
6388 + );
6389 +
6390 + $this->customizer->add_control(
6391 + new WP_Customize_Control(
6392 + $this->customizer,
6393 + 'betterdocs_reactions_title_tag',
6394 + [
6395 + 'label' => __( 'Reactions Title Tag', 'betterdocs' ),
6396 + 'section' => 'betterdocs_single_docs_settings',
6397 + 'settings' => 'betterdocs_reactions_title_tag',
6398 + 'type' => 'select',
6399 + 'choices' => [
6400 + 'h1' => 'h1',
6401 + 'h2' => 'h2',
6402 + 'h3' => 'h3',
6403 + 'h4' => 'h4',
6404 + 'h5' => 'h5',
6405 + 'h6' => 'h6'
6406 + ],
6407 + 'priority' => 160
6408 + ]
6409 + )
6410 + );
6411 + }
6412 +
6413 + public function post_reactions() {
6414 + $this->customizer->add_setting(
6415 + 'betterdocs_post_reactions',
6416 + [
6417 + 'default' => $this->defaults['betterdocs_post_reactions'],
6418 + 'capability' => 'edit_theme_options',
6419 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
6420 + ]
6421 + );
6422 +
6423 + $this->customizer->add_control(
6424 + new ToggleControl(
6425 + $this->customizer,
6426 + 'betterdocs_post_reactions',
6427 + [
6428 + 'label' => __( 'Enable Reactions?', 'betterdocs' ),
6429 + 'priority' => 160,
6430 + 'section' => 'betterdocs_single_docs_settings',
6431 + 'settings' => 'betterdocs_post_reactions',
6432 + 'type' => 'light' // light, ios, flat
6433 + ]
6434 + )
6435 + );
6436 + }
6437 +
6438 + public function post_reactions_happy() {
6439 + $this->customizer->add_setting(
6440 + 'betterdocs_post_reactions_happy',
6441 + [
6442 + 'default' => $this->defaults['betterdocs_post_reactions_happy'],
6443 + 'capability' => 'edit_theme_options',
6444 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
6445 + ]
6446 + );
6447 +
6448 + $this->customizer->add_control(
6449 + new ToggleControl(
6450 + $this->customizer,
6451 + 'betterdocs_post_reactions_happy',
6452 + [
6453 + 'label' => __( 'Enable Happy?', 'betterdocs' ),
6454 + 'priority' => 160,
6455 + 'section' => 'betterdocs_single_docs_settings',
6456 + 'settings' => 'betterdocs_post_reactions_happy',
6457 + 'type' => 'light' // light, ios, flat
6458 + ]
6459 + )
6460 + );
6461 + }
6462 +
6463 + public function post_reactions_happy_icon() {
6464 + $this->customizer->add_setting(
6465 + 'betterdocs_post_reactions_happy_icon',
6466 + [
6467 + 'default' => $this->defaults['betterdocs_post_reactions_happy_icon'],
6468 + 'capability' => 'edit_theme_options'
6469 +
6470 + ]
6471 + );
6472 +
6473 + $this->customizer->add_control(
6474 + new WP_Customize_Image_Control(
6475 + $this->customizer,
6476 + 'betterdocs_post_reactions_happy_icon',
6477 + [
6478 + 'section' => 'betterdocs_single_docs_settings',
6479 + 'settings' => 'betterdocs_post_reactions_happy_icon',
6480 + 'label' => __( 'Happy Icon', 'betterdocs' ),
6481 + 'priority' => 160
6482 + ]
6483 + )
6484 + );
6485 + }
6486 +
6487 + public function post_reactions_normal() {
6488 + $this->customizer->add_setting(
6489 + 'betterdocs_post_reactions_normal',
6490 + [
6491 + 'default' => $this->defaults['betterdocs_post_reactions_normal'],
6492 + 'capability' => 'edit_theme_options',
6493 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
6494 + ]
6495 + );
6496 +
6497 + $this->customizer->add_control(
6498 + new ToggleControl(
6499 + $this->customizer,
6500 + 'betterdocs_post_reactions_normal',
6501 + [
6502 + 'label' => __( 'Enable Normal?', 'betterdocs' ),
6503 + 'priority' => 160,
6504 + 'section' => 'betterdocs_single_docs_settings',
6505 + 'settings' => 'betterdocs_post_reactions_normal',
6506 + 'type' => 'light' // light, ios, flat
6507 + ]
6508 + )
6509 + );
6510 + }
6511 +
6512 + public function post_reactions_normal_icon() {
6513 + $this->customizer->add_setting(
6514 + 'betterdocs_post_reactions_normal_icon',
6515 + [
6516 + 'default' => $this->defaults['betterdocs_post_reactions_normal_icon'],
6517 + 'capability' => 'edit_theme_options'
6518 +
6519 + ]
6520 + );
6521 +
6522 + $this->customizer->add_control(
6523 + new WP_Customize_Image_Control(
6524 + $this->customizer,
6525 + 'betterdocs_post_reactions_normal_icon',
6526 + [
6527 + 'section' => 'betterdocs_single_docs_settings',
6528 + 'settings' => 'betterdocs_post_reactions_normal_icon',
6529 + 'label' => __( 'Normal Icon', 'betterdocs' ),
6530 + 'priority' => 160
6531 + ]
6532 + )
6533 + );
6534 + }
6535 +
6536 + public function post_reactions_sad() {
6537 + $this->customizer->add_setting(
6538 + 'betterdocs_post_reactions_sad',
6539 + [
6540 + 'default' => $this->defaults['betterdocs_post_reactions_sad'],
6541 + 'capability' => 'edit_theme_options',
6542 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
6543 + ]
6544 + );
6545 +
6546 + $this->customizer->add_control(
6547 + new ToggleControl(
6548 + $this->customizer,
6549 + 'betterdocs_post_reactions_sad',
6550 + [
6551 + 'label' => __( 'Enable Sad?', 'betterdocs' ),
6552 + 'priority' => 160,
6553 + 'section' => 'betterdocs_single_docs_settings',
6554 + 'settings' => 'betterdocs_post_reactions_sad',
6555 + 'type' => 'light' // light, ios, flat
6556 + ]
6557 + )
6558 + );
6559 + }
6560 +
6561 + public function post_reactions_sad_icon() {
6562 + $this->customizer->add_setting(
6563 + 'betterdocs_post_reactions_sad_icon',
6564 + [
6565 + 'default' => $this->defaults['betterdocs_post_reactions_sad_icon'],
6566 + 'capability' => 'edit_theme_options'
6567 +
6568 + ]
6569 + );
6570 +
6571 + $this->customizer->add_control(
6572 + new WP_Customize_Image_Control(
6573 + $this->customizer,
6574 + 'betterdocs_post_reactions_sad_icon',
6575 + [
6576 + 'section' => 'betterdocs_single_docs_settings',
6577 + 'settings' => 'betterdocs_post_reactions_sad_icon',
6578 + 'label' => __( 'Sad Icon', 'betterdocs' ),
6579 + 'priority' => 160
6580 + ]
6581 + )
6582 + );
6583 + }
6584 +
6585 + public function post_reactions_text() {
6586 + $this->customizer->add_setting(
6587 + 'betterdocs_post_reactions_text',
6588 + [
6589 + 'default' => $this->defaults['betterdocs_post_reactions_text'],
6590 + 'capability' => 'edit_theme_options',
6591 + 'sanitize_callback' => 'esc_html'
6592 + ]
6593 + );
6594 +
6595 + $this->customizer->add_control(
6596 + new SelectControl(
6597 + $this->customizer,
6598 + 'betterdocs_post_reactions_text',
6599 + [
6600 + 'label' => __( 'Reactions Title', 'betterdocs' ),
6601 + 'priority' => 161,
6602 + 'section' => 'betterdocs_single_docs_settings',
6603 + 'settings' => 'betterdocs_post_reactions_text',
6604 + 'type' => 'text'
6605 + ]
6606 + )
6607 + );
6608 + }
6609 +
6610 + public function post_reactions_text_2() {
6611 + $this->customizer->add_setting(
6612 + 'betterdocs_post_reactions_text_2',
6613 + [
6614 + 'default' => $this->defaults['betterdocs_post_reactions_text_2'],
6615 + 'capability' => 'edit_theme_options',
6616 + 'sanitize_callback' => 'esc_html'
6617 + ]
6618 + );
6619 +
6620 + $this->customizer->add_control(
6621 + new SelectControl(
6622 + $this->customizer,
6623 + 'betterdocs_post_reactions_text_2',
6624 + [
6625 + 'label' => __( 'Reactions Title', 'betterdocs' ),
6626 + 'priority' => 161,
6627 + 'section' => 'betterdocs_single_docs_settings',
6628 + 'settings' => 'betterdocs_post_reactions_text_2',
6629 + 'type' => 'text'
6630 + ]
6631 + )
6632 + );
6633 + }
6634 +
6635 + public function reactions_background_color() {
6636 + $this->customizer->add_setting(
6637 + 'reactions_background_color',
6638 + [
6639 + 'default' => $this->defaults['reactions_background_color'],
6640 + 'capability' => 'edit_theme_options',
6641 + 'transport' => 'postMessage',
6642 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6643 + ]
6644 + );
6645 +
6646 + $this->customizer->add_control(
6647 + new AlphaColorControl(
6648 + $this->customizer,
6649 + 'reactions_background_color',
6650 + [
6651 + 'label' => __( 'Reactions Background Color', 'betterdocs' ),
6652 + 'priority' => 162,
6653 + 'section' => 'betterdocs_single_docs_settings',
6654 + 'settings' => 'reactions_background_color'
6655 + ]
6656 + )
6657 + );
6658 + }
6659 +
6660 + public function post_reactions_text_color() {
6661 + $this->customizer->add_setting(
6662 + 'betterdocs_post_reactions_text_color',
6663 + [
6664 + 'default' => $this->defaults['betterdocs_post_reactions_text_color'],
6665 + 'capability' => 'edit_theme_options',
6666 + 'transport' => 'postMessage',
6667 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6668 + ]
6669 + );
6670 +
6671 + $this->customizer->add_control(
6672 + new AlphaColorControl(
6673 + $this->customizer,
6674 + 'betterdocs_post_reactions_text_color',
6675 + [
6676 + 'label' => __( 'Reactions Text Color', 'betterdocs' ),
6677 + 'priority' => 162,
6678 + 'section' => 'betterdocs_single_docs_settings',
6679 + 'settings' => 'betterdocs_post_reactions_text_color'
6680 + ]
6681 + )
6682 + );
6683 + }
6684 +
6685 + public function post_reactions_icon_color() {
6686 + $this->customizer->add_setting(
6687 + 'betterdocs_post_reactions_icon_color',
6688 + [
6689 + 'default' => $this->defaults['betterdocs_post_reactions_icon_color'],
6690 + 'capability' => 'edit_theme_options',
6691 + 'transport' => 'postMessage',
6692 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6693 + ]
6694 + );
6695 +
6696 + $this->customizer->add_control(
6697 + new AlphaColorControl(
6698 + $this->customizer,
6699 + 'betterdocs_post_reactions_icon_color',
6700 + [
6701 + 'label' => __( 'Reactions Icon Background Color', 'betterdocs' ),
6702 + 'priority' => 163,
6703 + 'section' => 'betterdocs_single_docs_settings',
6704 + 'settings' => 'betterdocs_post_reactions_icon_color'
6705 + ]
6706 + )
6707 + );
6708 + }
6709 +
6710 + public function post_reactions_icon_svg_color() {
6711 + $this->customizer->add_setting(
6712 + 'betterdocs_post_reactions_icon_svg_color',
6713 + [
6714 + 'default' => $this->defaults['betterdocs_post_reactions_icon_svg_color'],
6715 + 'capability' => 'edit_theme_options',
6716 + 'transport' => 'postMessage',
6717 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6718 + ]
6719 + );
6720 +
6721 + $this->customizer->add_control(
6722 + new AlphaColorControl(
6723 + $this->customizer,
6724 + 'betterdocs_post_reactions_icon_svg_color',
6725 + [
6726 + 'label' => __( 'Reactions Icon Color', 'betterdocs' ),
6727 + 'priority' => 163,
6728 + 'section' => 'betterdocs_single_docs_settings',
6729 + 'settings' => 'betterdocs_post_reactions_icon_svg_color'
6730 + ]
6731 + )
6732 + );
6733 + }
6734 +
6735 + public function post_reactions_icon_hover_bg_color() {
6736 + $this->customizer->add_setting(
6737 + 'betterdocs_post_reactions_icon_hover_bg_color',
6738 + [
6739 + 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_bg_color'],
6740 + 'capability' => 'edit_theme_options',
6741 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6742 + ]
6743 + );
6744 +
6745 + $this->customizer->add_control(
6746 + new AlphaColorControl(
6747 + $this->customizer,
6748 + 'betterdocs_post_reactions_icon_hover_bg_color',
6749 + [
6750 + 'label' => __( 'Reactions Icon Hover Background Color', 'betterdocs' ),
6751 + 'priority' => 163,
6752 + 'section' => 'betterdocs_single_docs_settings',
6753 + 'settings' => 'betterdocs_post_reactions_icon_hover_bg_color'
6754 + ]
6755 + )
6756 + );
6757 + }
6758 +
6759 + public function post_reactions_icon_hover_svg_color() {
6760 + $this->customizer->add_setting(
6761 + 'betterdocs_post_reactions_icon_hover_svg_color',
6762 + [
6763 + 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_svg_color'],
6764 + 'capability' => 'edit_theme_options',
6765 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6766 + ]
6767 + );
6768 +
6769 + $this->customizer->add_control(
6770 + new AlphaColorControl(
6771 + $this->customizer,
6772 + 'betterdocs_post_reactions_icon_hover_svg_color',
6773 + [
6774 + 'label' => __( 'Reactions Icon Hover Color', 'betterdocs' ),
6775 + 'priority' => 163,
6776 + 'section' => 'betterdocs_single_docs_settings',
6777 + 'settings' => 'betterdocs_post_reactions_icon_hover_svg_color'
6778 + ]
6779 + )
6780 + );
6781 + }
6782 +
6783 + public function reactions_background_color_layout_8() {
6784 + $this->customizer->add_setting(
6785 + 'reactions_background_color_layout_8',
6786 + [
6787 + 'default' => $this->defaults['reactions_background_color_layout_8'],
6788 + 'capability' => 'edit_theme_options',
6789 + 'transport' => 'postMessage',
6790 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6791 + ]
6792 + );
6793 +
6794 + $this->customizer->add_control(
6795 + new AlphaColorControl(
6796 + $this->customizer,
6797 + 'reactions_background_color_layout_8',
6798 + [
6799 + 'label' => __( 'Reactions Background Color', 'betterdocs' ),
6800 + 'priority' => 162,
6801 + 'section' => 'betterdocs_single_docs_settings',
6802 + 'settings' => 'reactions_background_color_layout_8'
6803 + ]
6804 + )
6805 + );
6806 + }
6807 +
6808 + public function reactions_background_color_layout_9() {
6809 + $this->customizer->add_setting(
6810 + 'reactions_background_color_layout_9',
6811 + [
6812 + 'default' => $this->defaults['reactions_background_color_layout_9'],
6813 + 'capability' => 'edit_theme_options',
6814 + 'transport' => 'postMessage',
6815 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6816 + ]
6817 + );
6818 +
6819 + $this->customizer->add_control(
6820 + new AlphaColorControl(
6821 + $this->customizer,
6822 + 'reactions_background_color_layout_9',
6823 + [
6824 + 'label' => __( 'Reactions Background Color', 'betterdocs' ),
6825 + 'priority' => 162,
6826 + 'section' => 'betterdocs_single_docs_settings',
6827 + 'settings' => 'reactions_background_color_layout_9'
6828 + ]
6829 + )
6830 + );
6831 + }
6832 +
6833 + public function post_reactions_text_color_layout_8_9() {
6834 + $this->customizer->add_setting(
6835 + 'betterdocs_post_reactions_text_color_layout_8_9',
6836 + [
6837 + 'default' => $this->defaults['betterdocs_post_reactions_text_color_layout_8_9'],
6838 + 'capability' => 'edit_theme_options',
6839 + 'transport' => 'postMessage',
6840 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6841 + ]
6842 + );
6843 +
6844 + $this->customizer->add_control(
6845 + new AlphaColorControl(
6846 + $this->customizer,
6847 + 'betterdocs_post_reactions_text_color_layout_8_9',
6848 + [
6849 + 'label' => __( 'Reactions Text Color', 'betterdocs' ),
6850 + 'priority' => 162,
6851 + 'section' => 'betterdocs_single_docs_settings',
6852 + 'settings' => 'betterdocs_post_reactions_text_color_layout_8_9'
6853 + ]
6854 + )
6855 + );
6856 + }
6857 +
6858 + public function post_reactions_icon_color_layout_8_9() {
6859 + $this->customizer->add_setting(
6860 + 'betterdocs_post_reactions_icon_color_layout_8_9',
6861 + [
6862 + 'default' => $this->defaults['betterdocs_post_reactions_icon_color_layout_8_9'],
6863 + 'capability' => 'edit_theme_options',
6864 + 'transport' => 'postMessage',
6865 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6866 + ]
6867 + );
6868 +
6869 + $this->customizer->add_control(
6870 + new AlphaColorControl(
6871 + $this->customizer,
6872 + 'betterdocs_post_reactions_icon_color_layout_8_9',
6873 + [
6874 + 'label' => __( 'Reactions Icon Background Color', 'betterdocs' ),
6875 + 'priority' => 163,
6876 + 'section' => 'betterdocs_single_docs_settings',
6877 + 'settings' => 'betterdocs_post_reactions_icon_color_layout_8_9'
6878 + ]
6879 + )
6880 + );
6881 + }
6882 +
6883 + public function post_reactions_margin_layout_8() {
6884 + $this->customizer->add_setting(
6885 + 'post_reactions_margin_layout_8',
6886 + [
6887 + 'default' => $this->defaults['post_reactions_margin_layout_8'],
6888 + 'capability' => 'edit_theme_options',
6889 + 'transport' => 'postMessage',
6890 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6891 + ]
6892 + );
6893 +
6894 + $this->customizer->add_control(
6895 + new TitleControl(
6896 + $this->customizer,
6897 + 'post_reactions_margin_layout_8',
6898 + [
6899 + 'type' => 'betterdocs-title',
6900 + 'section' => 'betterdocs_single_docs_settings',
6901 + 'settings' => 'post_reactions_margin_layout_8',
6902 + 'label' => __( 'Margin', 'betterdocs' ),
6903 + 'priority' => 163,
6904 + 'input_attrs' => [
6905 + 'id' => 'post_reactions_margin_layout_8',
6906 + 'class' => 'betterdocs-dimension'
6907 + ]
6908 + ]
6909 + )
6910 + );
6911 +
6912 + $this->customizer->add_setting(
6913 + 'post_reactions_margin_top_layout_8',
6914 + [
6915 + 'default' => $this->defaults['post_reactions_margin_top_layout_8'],
6916 + 'capability' => 'edit_theme_options',
6917 + 'transport' => 'postMessage',
6918 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6919 + ]
6920 + );
6921 +
6922 + $this->customizer->add_control(
6923 + new DimensionControl(
6924 + $this->customizer,
6925 + 'post_reactions_margin_top_layout_8',
6926 + [
6927 + 'type' => 'betterdocs-dimension',
6928 + 'section' => 'betterdocs_single_docs_settings',
6929 + 'settings' => 'post_reactions_margin_top_layout_8',
6930 + 'label' => __( 'Top', 'betterdocs' ),
6931 + 'priority' => 163,
6932 + 'input_attrs' => [
6933 + 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
6934 + ]
6935 + ]
6936 + )
6937 + );
6938 +
6939 + $this->customizer->add_setting(
6940 + 'post_reactions_margin_right_layout_8',
6941 + [
6942 + 'default' => $this->defaults['post_reactions_margin_right_layout_8'],
6943 + 'capability' => 'edit_theme_options',
6944 + 'transport' => 'postMessage',
6945 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6946 + ]
6947 + );
6948 +
6949 + $this->customizer->add_control(
6950 + new DimensionControl(
6951 + $this->customizer,
6952 + 'post_reactions_margin_right_layout_8',
6953 + [
6954 + 'type' => 'betterdocs-dimension',
6955 + 'section' => 'betterdocs_single_docs_settings',
6956 + 'settings' => 'post_reactions_margin_right_layout_8',
6957 + 'label' => __( 'Right', 'betterdocs' ),
6958 + 'priority' => 163,
6959 + 'input_attrs' => [
6960 + 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
6961 + ]
6962 + ]
6963 + )
6964 + );
6965 +
6966 + $this->customizer->add_setting(
6967 + 'post_reactions_margin_bottom_layout_8',
6968 + [
6969 + 'default' => $this->defaults['post_reactions_margin_bottom_layout_8'],
6970 + 'capability' => 'edit_theme_options',
6971 + 'transport' => 'postMessage',
6972 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6973 + ]
6974 + );
6975 +
6976 + $this->customizer->add_control(
6977 + new DimensionControl(
6978 + $this->customizer,
6979 + 'post_reactions_margin_bottom_layout_8',
6980 + [
6981 + 'type' => 'betterdocs-dimension',
6982 + 'section' => 'betterdocs_single_docs_settings',
6983 + 'settings' => 'post_reactions_margin_bottom_layout_8',
6984 + 'label' => __( 'Bottom', 'betterdocs' ),
6985 + 'priority' => 163,
6986 + 'input_attrs' => [
6987 + 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
6988 + ]
6989 + ]
6990 + )
6991 + );
6992 +
6993 + $this->customizer->add_setting(
6994 + 'post_reactions_margin_left_layout_8',
6995 + [
6996 + 'default' => $this->defaults['post_reactions_margin_left_layout_8'],
6997 + 'capability' => 'edit_theme_options',
6998 + 'transport' => 'postMessage',
6999 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7000 + ]
7001 + );
7002 +
7003 + $this->customizer->add_control(
7004 + new DimensionControl(
7005 + $this->customizer,
7006 + 'post_reactions_margin_left_layout_8',
7007 + [
7008 + 'type' => 'betterdocs-dimension',
7009 + 'section' => 'betterdocs_single_docs_settings',
7010 + 'settings' => 'post_reactions_margin_left_layout_8',
7011 + 'label' => __( 'Left', 'betterdocs' ),
7012 + 'priority' => 163,
7013 + 'input_attrs' => [
7014 + 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
7015 + ]
7016 + ]
7017 + )
7018 + );
7019 + }
7020 +
7021 + public function post_reactions_margin_layout_9() {
7022 + $this->customizer->add_setting(
7023 + 'post_reactions_margin_layout_9',
7024 + [
7025 + 'default' => $this->defaults['post_reactions_margin_layout_9'],
7026 + 'capability' => 'edit_theme_options',
7027 + 'transport' => 'postMessage',
7028 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7029 + ]
7030 + );
7031 +
7032 + $this->customizer->add_control(
7033 + new TitleControl(
7034 + $this->customizer,
7035 + 'post_reactions_margin_layout_9',
7036 + [
7037 + 'type' => 'betterdocs-title',
7038 + 'section' => 'betterdocs_single_docs_settings',
7039 + 'settings' => 'post_reactions_margin_layout_9',
7040 + 'label' => __( 'Margin', 'betterdocs' ),
7041 + 'priority' => 163,
7042 + 'input_attrs' => [
7043 + 'id' => 'post_reactions_margin_layout_9',
7044 + 'class' => 'betterdocs-dimension'
7045 + ]
7046 + ]
7047 + )
7048 + );
7049 +
7050 + $this->customizer->add_setting(
7051 + 'post_reactions_margin_top_layout_9',
7052 + [
7053 + 'default' => $this->defaults['post_reactions_margin_top_layout_9'],
7054 + 'capability' => 'edit_theme_options',
7055 + 'transport' => 'postMessage',
7056 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7057 + ]
7058 + );
7059 +
7060 + $this->customizer->add_control(
7061 + new DimensionControl(
7062 + $this->customizer,
7063 + 'post_reactions_margin_top_layout_9',
7064 + [
7065 + 'type' => 'betterdocs-dimension',
7066 + 'section' => 'betterdocs_single_docs_settings',
7067 + 'settings' => 'post_reactions_margin_top_layout_9',
7068 + 'label' => __( 'Top', 'betterdocs' ),
7069 + 'priority' => 163,
7070 + 'input_attrs' => [
7071 + 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
7072 + ]
7073 + ]
7074 + )
7075 + );
7076 +
7077 + $this->customizer->add_setting(
7078 + 'post_reactions_margin_right_layout_9',
7079 + [
7080 + 'default' => $this->defaults['post_reactions_margin_right_layout_9'],
7081 + 'capability' => 'edit_theme_options',
7082 + 'transport' => 'postMessage',
7083 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7084 + ]
7085 + );
7086 +
7087 + $this->customizer->add_control(
7088 + new DimensionControl(
7089 + $this->customizer,
7090 + 'post_reactions_margin_right_layout_9',
7091 + [
7092 + 'type' => 'betterdocs-dimension',
7093 + 'section' => 'betterdocs_single_docs_settings',
7094 + 'settings' => 'post_reactions_margin_right_layout_9',
7095 + 'label' => __( 'Right', 'betterdocs' ),
7096 + 'priority' => 163,
7097 + 'input_attrs' => [
7098 + 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
7099 + ]
7100 + ]
7101 + )
7102 + );
7103 +
7104 + $this->customizer->add_setting(
7105 + 'post_reactions_margin_bottom_layout_9',
7106 + [
7107 + 'default' => $this->defaults['post_reactions_margin_bottom_layout_9'],
7108 + 'capability' => 'edit_theme_options',
7109 + 'transport' => 'postMessage',
7110 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7111 + ]
7112 + );
7113 +
7114 + $this->customizer->add_control(
7115 + new DimensionControl(
7116 + $this->customizer,
7117 + 'post_reactions_margin_bottom_layout_9',
7118 + [
7119 + 'type' => 'betterdocs-dimension',
7120 + 'section' => 'betterdocs_single_docs_settings',
7121 + 'settings' => 'post_reactions_margin_bottom_layout_9',
7122 + 'label' => __( 'Bottom', 'betterdocs' ),
7123 + 'priority' => 163,
7124 + 'input_attrs' => [
7125 + 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
7126 + ]
7127 + ]
7128 + )
7129 + );
7130 +
7131 + $this->customizer->add_setting(
7132 + 'post_reactions_margin_left_layout_9',
7133 + [
7134 + 'default' => $this->defaults['post_reactions_margin_left_layout_9'],
7135 + 'capability' => 'edit_theme_options',
7136 + 'transport' => 'postMessage',
7137 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7138 + ]
7139 + );
7140 +
7141 + $this->customizer->add_control(
7142 + new DimensionControl(
7143 + $this->customizer,
7144 + 'post_reactions_margin_left_layout_9',
7145 + [
7146 + 'type' => 'betterdocs-dimension',
7147 + 'section' => 'betterdocs_single_docs_settings',
7148 + 'settings' => 'post_reactions_margin_left_layout_9',
7149 + 'label' => __( 'Left', 'betterdocs' ),
7150 + 'priority' => 163,
7151 + 'input_attrs' => [
7152 + 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
7153 + ]
7154 + ]
7155 + )
7156 + );
7157 + }
7158 +
7159 +
7160 + public function post_reactions_padding_layout_8() {
7161 + $this->customizer->add_setting(
7162 + 'post_reactions_padding_layout_8',
7163 + [
7164 + 'default' => $this->defaults['post_reactions_padding_layout_8'],
7165 + 'capability' => 'edit_theme_options',
7166 + 'transport' => 'postMessage',
7167 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7168 + ]
7169 + );
7170 +
7171 + $this->customizer->add_control(
7172 + new TitleControl(
7173 + $this->customizer,
7174 + 'post_reactions_padding_layout_8',
7175 + [
7176 + 'type' => 'betterdocs-title',
7177 + 'section' => 'betterdocs_single_docs_settings',
7178 + 'settings' => 'post_reactions_padding_layout_8',
7179 + 'label' => __( 'Padding', 'betterdocs' ),
7180 + 'priority' => 163,
7181 + 'input_attrs' => [
7182 + 'id' => 'post_reactions_padding_layout_8',
7183 + 'class' => 'betterdocs-dimension'
7184 + ]
7185 + ]
7186 + )
7187 + );
7188 +
7189 + $this->customizer->add_setting(
7190 + 'post_reactions_padding_top_layout_8',
7191 + [
7192 + 'default' => $this->defaults['post_reactions_padding_top_layout_8'],
7193 + 'capability' => 'edit_theme_options',
7194 + 'transport' => 'postMessage',
7195 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7196 + ]
7197 + );
7198 +
7199 + $this->customizer->add_control(
7200 + new DimensionControl(
7201 + $this->customizer,
7202 + 'post_reactions_padding_top_layout_8',
7203 + [
7204 + 'type' => 'betterdocs-dimension',
7205 + 'section' => 'betterdocs_single_docs_settings',
7206 + 'settings' => 'post_reactions_padding_top_layout_8',
7207 + 'label' => __( 'Top', 'betterdocs' ),
7208 + 'priority' => 163,
7209 + 'input_attrs' => [
7210 + 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
7211 + ]
7212 + ]
7213 + )
7214 + );
7215 +
7216 + $this->customizer->add_setting(
7217 + 'post_reactions_padding_right_layout_8',
7218 + [
7219 + 'default' => $this->defaults['post_reactions_padding_right_layout_8'],
7220 + 'capability' => 'edit_theme_options',
7221 + 'transport' => 'postMessage',
7222 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7223 + ]
7224 + );
7225 +
7226 + $this->customizer->add_control(
7227 + new DimensionControl(
7228 + $this->customizer,
7229 + 'post_reactions_padding_right_layout_8',
7230 + [
7231 + 'type' => 'betterdocs-dimension',
7232 + 'section' => 'betterdocs_single_docs_settings',
7233 + 'settings' => 'post_reactions_padding_right_layout_8',
7234 + 'label' => __( 'Right', 'betterdocs' ),
7235 + 'priority' => 163,
7236 + 'input_attrs' => [
7237 + 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
7238 + ]
7239 + ]
7240 + )
7241 + );
7242 +
7243 + $this->customizer->add_setting(
7244 + 'post_reactions_padding_bottom_layout_8',
7245 + [
7246 + 'default' => $this->defaults['post_reactions_padding_bottom_layout_8'],
7247 + 'capability' => 'edit_theme_options',
7248 + 'transport' => 'postMessage',
7249 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7250 + ]
7251 + );
7252 +
7253 + $this->customizer->add_control(
7254 + new DimensionControl(
7255 + $this->customizer,
7256 + 'post_reactions_padding_bottom_layout_8',
7257 + [
7258 + 'type' => 'betterdocs-dimension',
7259 + 'section' => 'betterdocs_single_docs_settings',
7260 + 'settings' => 'post_reactions_padding_bottom_layout_8',
7261 + 'label' => __( 'Bottom', 'betterdocs' ),
7262 + 'priority' => 163,
7263 + 'input_attrs' => [
7264 + 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
7265 + ]
7266 + ]
7267 + )
7268 + );
7269 +
7270 + $this->customizer->add_setting(
7271 + 'post_reactions_padding_left_layout_8',
7272 + [
7273 + 'default' => $this->defaults['post_reactions_padding_left_layout_8'],
7274 + 'capability' => 'edit_theme_options',
7275 + 'transport' => 'postMessage',
7276 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7277 + ]
7278 + );
7279 +
7280 + $this->customizer->add_control(
7281 + new DimensionControl(
7282 + $this->customizer,
7283 + 'post_reactions_padding_left_layout_8',
7284 + [
7285 + 'type' => 'betterdocs-dimension',
7286 + 'section' => 'betterdocs_single_docs_settings',
7287 + 'settings' => 'post_reactions_padding_left_layout_8',
7288 + 'label' => __( 'Left', 'betterdocs' ),
7289 + 'priority' => 163,
7290 + 'input_attrs' => [
7291 + 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
7292 + ]
7293 + ]
7294 + )
7295 + );
7296 + }
7297 +
7298 + public function post_reactions_padding_layout_9() {
7299 + $this->customizer->add_setting(
7300 + 'post_reactions_padding_layout_9',
7301 + [
7302 + 'default' => $this->defaults['post_reactions_padding_layout_9'],
7303 + 'capability' => 'edit_theme_options',
7304 + 'transport' => 'postMessage',
7305 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7306 + ]
7307 + );
7308 +
7309 + $this->customizer->add_control(
7310 + new TitleControl(
7311 + $this->customizer,
7312 + 'post_reactions_padding_layout_9',
7313 + [
7314 + 'type' => 'betterdocs-title',
7315 + 'section' => 'betterdocs_single_docs_settings',
7316 + 'settings' => 'post_reactions_padding_layout_9',
7317 + 'label' => __( 'Padding', 'betterdocs' ),
7318 + 'priority' => 163,
7319 + 'input_attrs' => [
7320 + 'id' => 'post_reactions_padding_layout_9',
7321 + 'class' => 'betterdocs-dimension'
7322 + ]
7323 + ]
7324 + )
7325 + );
7326 +
7327 + $this->customizer->add_setting(
7328 + 'post_reactions_padding_top_layout_9',
7329 + [
7330 + 'default' => $this->defaults['post_reactions_padding_top_layout_9'],
7331 + 'capability' => 'edit_theme_options',
7332 + 'transport' => 'postMessage',
7333 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7334 + ]
7335 + );
7336 +
7337 + $this->customizer->add_control(
7338 + new DimensionControl(
7339 + $this->customizer,
7340 + 'post_reactions_padding_top_layout_9',
7341 + [
7342 + 'type' => 'betterdocs-dimension',
7343 + 'section' => 'betterdocs_single_docs_settings',
7344 + 'settings' => 'post_reactions_padding_top_layout_9',
7345 + 'label' => __( 'Top', 'betterdocs' ),
7346 + 'priority' => 163,
7347 + 'input_attrs' => [
7348 + 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
7349 + ]
7350 + ]
7351 + )
7352 + );
7353 +
7354 + $this->customizer->add_setting(
7355 + 'post_reactions_padding_right_layout_9',
7356 + [
7357 + 'default' => $this->defaults['post_reactions_padding_right_layout_9'],
7358 + 'capability' => 'edit_theme_options',
7359 + 'transport' => 'postMessage',
7360 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7361 + ]
7362 + );
7363 +
7364 + $this->customizer->add_control(
7365 + new DimensionControl(
7366 + $this->customizer,
7367 + 'post_reactions_padding_right_layout_9',
7368 + [
7369 + 'type' => 'betterdocs-dimension',
7370 + 'section' => 'betterdocs_single_docs_settings',
7371 + 'settings' => 'post_reactions_padding_right_layout_9',
7372 + 'label' => __( 'Right', 'betterdocs' ),
7373 + 'priority' => 163,
7374 + 'input_attrs' => [
7375 + 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
7376 + ]
7377 + ]
7378 + )
7379 + );
7380 +
7381 + $this->customizer->add_setting(
7382 + 'post_reactions_padding_bottom_layout_9',
7383 + [
7384 + 'default' => $this->defaults['post_reactions_padding_bottom_layout_9'],
7385 + 'capability' => 'edit_theme_options',
7386 + 'transport' => 'postMessage',
7387 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7388 + ]
7389 + );
7390 +
7391 + $this->customizer->add_control(
7392 + new DimensionControl(
7393 + $this->customizer,
7394 + 'post_reactions_padding_bottom_layout_9',
7395 + [
7396 + 'type' => 'betterdocs-dimension',
7397 + 'section' => 'betterdocs_single_docs_settings',
7398 + 'settings' => 'post_reactions_padding_bottom_layout_8',
7399 + 'label' => __( 'Bottom', 'betterdocs' ),
7400 + 'priority' => 163,
7401 + 'input_attrs' => [
7402 + 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
7403 + ]
7404 + ]
7405 + )
7406 + );
7407 +
7408 + $this->customizer->add_setting(
7409 + 'post_reactions_padding_left_layout_9',
7410 + [
7411 + 'default' => $this->defaults['post_reactions_padding_left_layout_9'],
7412 + 'capability' => 'edit_theme_options',
7413 + 'transport' => 'postMessage',
7414 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7415 + ]
7416 + );
7417 +
7418 + $this->customizer->add_control(
7419 + new DimensionControl(
7420 + $this->customizer,
7421 + 'post_reactions_padding_left_layout_9',
7422 + [
7423 + 'type' => 'betterdocs-dimension',
7424 + 'section' => 'betterdocs_single_docs_settings',
7425 + 'settings' => 'post_reactions_padding_left_layout_8',
7426 + 'label' => __( 'Left', 'betterdocs' ),
7427 + 'priority' => 163,
7428 + 'input_attrs' => [
7429 + 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
7430 + ]
7431 + ]
7432 + )
7433 + );
7434 + }
7435 +
7436 + public function post_reactions_border_layout_8() {
7437 + $this->customizer->add_setting(
7438 + 'post_reactions_border_layout_8',
7439 + [
7440 + 'default' => $this->defaults['post_reactions_border_layout_8'],
7441 + 'capability' => 'edit_theme_options',
7442 + 'transport' => 'postMessage',
7443 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7444 + ]
7445 + );
7446 +
7447 + $this->customizer->add_control(
7448 + new TitleControl(
7449 + $this->customizer,
7450 + 'post_reactions_border_layout_8',
7451 + [
7452 + 'type' => 'betterdocs-title',
7453 + 'section' => 'betterdocs_single_docs_settings',
7454 + 'settings' => 'post_reactions_border_layout_8',
7455 + 'label' => __( 'Border', 'betterdocs' ),
7456 + 'priority' => 163,
7457 + 'input_attrs' => [
7458 + 'id' => 'post_reactions_border_layout_8',
7459 + 'class' => 'betterdocs-dimension'
7460 + ]
7461 + ]
7462 + )
7463 + );
7464 +
7465 + $this->customizer->add_setting(
7466 + 'post_reactions_border_top_layout_8',
7467 + [
7468 + 'default' => $this->defaults['post_reactions_border_top_layout_8'],
7469 + 'capability' => 'edit_theme_options',
7470 + 'transport' => 'postMessage',
7471 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7472 + ]
7473 + );
7474 +
7475 + $this->customizer->add_control(
7476 + new DimensionControl(
7477 + $this->customizer,
7478 + 'post_reactions_border_top_layout_8',
7479 + [
7480 + 'type' => 'betterdocs-dimension',
7481 + 'section' => 'betterdocs_single_docs_settings',
7482 + 'settings' => 'post_reactions_border_top_layout_8',
7483 + 'label' => __( 'Border Top', 'betterdocs' ),
7484 + 'priority' => 163,
7485 + 'input_attrs' => [
7486 + 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
7487 + ]
7488 + ]
7489 + )
7490 + );
7491 +
7492 + $this->customizer->add_setting(
7493 + 'post_reactions_border_right_layout_8',
7494 + [
7495 + 'default' => $this->defaults['post_reactions_border_right_layout_8'],
7496 + 'capability' => 'edit_theme_options',
7497 + 'transport' => 'postMessage',
7498 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7499 + ]
7500 + );
7501 +
7502 + $this->customizer->add_control(
7503 + new DimensionControl(
7504 + $this->customizer,
7505 + 'post_reactions_border_right_layout_8',
7506 + [
7507 + 'type' => 'betterdocs-dimension',
7508 + 'section' => 'betterdocs_single_docs_settings',
7509 + 'settings' => 'post_reactions_border_right_layout_8',
7510 + 'label' => __( 'Border Right', 'betterdocs' ),
7511 + 'priority' => 163,
7512 + 'input_attrs' => [
7513 + 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
7514 + ]
7515 + ]
7516 + )
7517 + );
7518 +
7519 + $this->customizer->add_setting(
7520 + 'post_reactions_border_bottom_layout_8',
7521 + [
7522 + 'default' => $this->defaults['post_reactions_border_bottom_layout_8'],
7523 + 'capability' => 'edit_theme_options',
7524 + 'transport' => 'postMessage',
7525 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7526 + ]
7527 + );
7528 +
7529 + $this->customizer->add_control(
7530 + new DimensionControl(
7531 + $this->customizer,
7532 + 'post_reactions_border_bottom_layout_8',
7533 + [
7534 + 'type' => 'betterdocs-dimension',
7535 + 'section' => 'betterdocs_single_docs_settings',
7536 + 'settings' => 'post_reactions_border_bottom_layout_8',
7537 + 'label' => __( 'Border Bottom', 'betterdocs' ),
7538 + 'priority' => 163,
7539 + 'input_attrs' => [
7540 + 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
7541 + ]
7542 + ]
7543 + )
7544 + );
7545 +
7546 + $this->customizer->add_setting(
7547 + 'post_reactions_border_left_layout_8',
7548 + [
7549 + 'default' => $this->defaults['post_reactions_border_left_layout_8'],
7550 + 'capability' => 'edit_theme_options',
7551 + 'transport' => 'postMessage',
7552 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7553 + ]
7554 + );
7555 +
7556 + $this->customizer->add_control(
7557 + new DimensionControl(
7558 + $this->customizer,
7559 + 'post_reactions_border_left_layout_8',
7560 + [
7561 + 'type' => 'betterdocs-dimension',
7562 + 'section' => 'betterdocs_single_docs_settings',
7563 + 'settings' => 'post_reactions_border_left_layout_8',
7564 + 'label' => __( 'Border Left', 'betterdocs' ),
7565 + 'priority' => 163,
7566 + 'input_attrs' => [
7567 + 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
7568 + ]
7569 + ]
7570 + )
7571 + );
7572 + }
7573 +
7574 + // public function post_reactions_icon_svg_color_layout_8_9() {
7575 + // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_svg_color_layout_8_9', [
7576 + // 'default' => $this->defaults['betterdocs_post_reactions_icon_svg_color_layout_8_9'],
7577 + // 'capability' => 'edit_theme_options',
7578 + // 'transport' => 'postMessage',
7579 + // 'sanitize_callback' => [$this->sanitizer, 'rgba']
7580 + // ] );
7581 +
7582 + // $this->customizer->add_control(
7583 + // new AlphaColorControl(
7584 + // $this->customizer,
7585 + // 'betterdocs_post_reactions_icon_svg_color_layout_8_9',
7586 + // [
7587 + // 'label' => __( 'Reactions Icon Color', 'betterdocs' ),
7588 + // 'priority' => 163,
7589 + // 'section' => 'betterdocs_single_docs_settings',
7590 + // 'settings' => 'betterdocs_post_reactions_icon_svg_color_layout_8_9'
7591 + // ]
7592 + // )
7593 + // );
7594 + // }
7595 +
7596 + // public function post_reactions_icon_hover_bg_color_layout_8_9() {
7597 + // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9', [
7598 + // 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_bg_color_layout_8_9'],
7599 + // 'capability' => 'edit_theme_options',
7600 + // 'sanitize_callback' => [$this->sanitizer, 'rgba']
7601 + // ] );
7602 +
7603 + // $this->customizer->add_control(
7604 + // new AlphaColorControl(
7605 + // $this->customizer,
7606 + // 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9',
7607 + // [
7608 + // 'label' => __( 'Reactions Icon Hover Background Color', 'betterdocs' ),
7609 + // 'priority' => 163,
7610 + // 'section' => 'betterdocs_single_docs_settings',
7611 + // 'settings' => 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9'
7612 + // ]
7613 + // )
7614 + // );
7615 + // }
7616 +
7617 + // public function post_reactions_icon_hover_svg_color_layout_8_9() {
7618 + // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9', [
7619 + // 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_svg_color_layout_8_9'],
7620 + // 'capability' => 'edit_theme_options',
7621 + // 'sanitize_callback' => [$this->sanitizer, 'rgba']
7622 + // ] );
7623 +
7624 + // $this->customizer->add_control(
7625 + // new AlphaColorControl(
7626 + // $this->customizer,
7627 + // 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9',
7628 + // [
7629 + // 'label' => __( 'Reactions Icon Hover Color', 'betterdocs' ),
7630 + // 'priority' => 163,
7631 + // 'section' => 'betterdocs_single_docs_settings',
7632 + // 'settings' => 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9'
7633 + // ]
7634 + // )
7635 + // );
7636 + // }
7637 +
7638 + public function attachments_heading() {
7639 + $this->customizer->add_setting(
7640 + 'betterdocs_single_doc_attachment_heading',
7641 + [
7642 + 'default' => '',
7643 + 'sanitize_callback' => 'esc_html'
7644 + ]
7645 + );
7646 +
7647 + $this->customizer->add_control(
7648 + new SeparatorControl(
7649 + $this->customizer,
7650 + 'betterdocs_single_doc_attachment_heading',
7651 + [
7652 + 'label' => __( 'Attachments', 'betterdocs' ),
7653 + 'priority' => 163,
7654 + 'settings' => 'betterdocs_single_doc_attachment_heading',
7655 + 'section' => 'betterdocs_single_docs_settings'
7656 + ]
7657 + )
7658 + );
7659 + }
7660 +
7661 + public function betterdocs_doc_single_attachment_content_bg_color() {
7662 + $this->customizer->add_setting(
7663 + 'betterdocs_doc_single_attachment_content_bg_color',
7664 + [
7665 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_bg_color'],
7666 + 'capability' => 'edit_theme_options',
7667 + 'transport' => 'postMessage',
7668 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7669 + ]
7670 + );
7671 +
7672 + $this->customizer->add_control(
7673 + new AlphaColorControl(
7674 + $this->customizer,
7675 + 'betterdocs_doc_single_attachment_content_bg_color',
7676 + [
7677 + 'label' => __( 'Content Background Color', 'betterdocs' ),
7678 + 'section' => 'betterdocs_single_docs_settings',
7679 + 'settings' => 'betterdocs_doc_single_attachment_content_bg_color',
7680 + 'priority' => 163
7681 + ]
7682 + )
7683 + );
7684 + }
7685 +
7686 + public function betterdocs_doc_single_attachment_content_padding() {
7687 + $this->customizer->add_setting(
7688 + 'betterdocs_doc_single_attachment_content_padding',
7689 + [
7690 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding'],
7691 + 'capability' => 'edit_theme_options',
7692 + 'transport' => 'postMessage',
7693 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7694 +
7695 + ]
7696 + );
7697 +
7698 + $this->customizer->add_control(
7699 + new TitleControl(
7700 + $this->customizer,
7701 + 'betterdocs_doc_single_attachment_content_padding',
7702 + [
7703 + 'type' => 'betterdocs-title',
7704 + 'section' => 'betterdocs_single_docs_settings',
7705 + 'settings' => 'betterdocs_doc_single_attachment_content_padding',
7706 + 'label' => __( 'Content Padding', 'betterdocs' ),
7707 + 'priority' => 163,
7708 + 'input_attrs' => [
7709 + 'id' => 'betterdocs_doc_single_attachment_content_padding',
7710 + 'class' => 'betterdocs-dimension'
7711 + ]
7712 + ]
7713 + )
7714 + );
7715 +
7716 + $this->customizer->add_setting(
7717 + 'betterdocs_doc_single_attachment_content_padding_top',
7718 + [
7719 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_top'],
7720 + 'capability' => 'edit_theme_options',
7721 + 'transport' => 'postMessage',
7722 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7723 + ]
7724 + );
7725 +
7726 + $this->customizer->add_control(
7727 + new DimensionControl(
7728 + $this->customizer,
7729 + 'betterdocs_doc_single_attachment_content_padding_top',
7730 + [
7731 + 'type' => 'betterdocs-dimension',
7732 + 'section' => 'betterdocs_single_docs_settings',
7733 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_top',
7734 + 'label' => __( 'Top', 'betterdocs' ),
7735 + 'priority' => 163,
7736 + 'input_attrs' => [
7737 + 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
7738 + ]
7739 + ]
7740 + )
7741 + );
7742 +
7743 + $this->customizer->add_setting(
7744 + 'betterdocs_doc_single_attachment_content_padding_right',
7745 + [
7746 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_right'],
7747 + 'capability' => 'edit_theme_options',
7748 + 'transport' => 'postMessage',
7749 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7750 +
7751 + ]
7752 + );
7753 +
7754 + $this->customizer->add_control(
7755 + new DimensionControl(
7756 + $this->customizer,
7757 + 'betterdocs_doc_single_attachment_content_padding_right',
7758 + [
7759 + 'type' => 'betterdocs-dimension',
7760 + 'section' => 'betterdocs_single_docs_settings',
7761 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_right',
7762 + 'label' => __( 'Right', 'betterdocs' ),
7763 + 'priority' => 163,
7764 + 'input_attrs' => [
7765 + 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
7766 + ]
7767 + ]
7768 + )
7769 + );
7770 +
7771 + $this->customizer->add_setting(
7772 + 'betterdocs_doc_single_attachment_content_padding_bottom',
7773 + [
7774 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_bottom'],
7775 + 'capability' => 'edit_theme_options',
7776 + 'transport' => 'postMessage',
7777 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7778 +
7779 + ]
7780 + );
7781 +
7782 + $this->customizer->add_control(
7783 + new DimensionControl(
7784 + $this->customizer,
7785 + 'betterdocs_doc_single_attachment_content_padding_bottom',
7786 + [
7787 + 'type' => 'betterdocs-dimension',
7788 + 'section' => 'betterdocs_single_docs_settings',
7789 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_bottom',
7790 + 'label' => __( 'Bottom', 'betterdocs' ),
7791 + 'priority' => 163,
7792 + 'input_attrs' => [
7793 + 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
7794 + ]
7795 + ]
7796 + )
7797 + );
7798 +
7799 + $this->customizer->add_setting(
7800 + 'betterdocs_doc_single_attachment_content_padding_left',
7801 + [
7802 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_left'],
7803 + 'capability' => 'edit_theme_options',
7804 + 'transport' => 'postMessage',
7805 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7806 +
7807 + ]
7808 + );
7809 +
7810 + $this->customizer->add_control(
7811 + new DimensionControl(
7812 + $this->customizer,
7813 + 'betterdocs_doc_single_attachment_content_padding_left',
7814 + [
7815 + 'type' => 'betterdocs-dimension',
7816 + 'section' => 'betterdocs_single_docs_settings',
7817 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_left',
7818 + 'label' => __( 'Left', 'betterdocs' ),
7819 + 'priority' => 163,
7820 + 'input_attrs' => [
7821 + 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
7822 + ]
7823 + ]
7824 + )
7825 + );
7826 + }
7827 +
7828 + public function betterdocs_doc_single_attachment_content_margin() {
7829 + $this->customizer->add_setting(
7830 + 'betterdocs_doc_single_attachment_content_margin',
7831 + [
7832 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin'],
7833 + 'capability' => 'edit_theme_options',
7834 + 'transport' => 'postMessage',
7835 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7836 +
7837 + ]
7838 + );
7839 +
7840 + $this->customizer->add_control(
7841 + new TitleControl(
7842 + $this->customizer,
7843 + 'betterdocs_doc_single_attachment_content_margin',
7844 + [
7845 + 'type' => 'betterdocs-title',
7846 + 'section' => 'betterdocs_single_docs_settings',
7847 + 'settings' => 'betterdocs_doc_single_attachment_content_margin',
7848 + 'label' => __( 'Content Margin', 'betterdocs' ),
7849 + 'priority' => 163,
7850 + 'input_attrs' => [
7851 + 'id' => 'betterdocs_doc_single_attachment_content_margin',
7852 + 'class' => 'betterdocs-dimension'
7853 + ]
7854 + ]
7855 + )
7856 + );
7857 +
7858 + $this->customizer->add_setting(
7859 + 'betterdocs_doc_single_attachment_content_margin_top',
7860 + [
7861 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_top'],
7862 + 'capability' => 'edit_theme_options',
7863 + 'transport' => 'postMessage',
7864 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7865 + ]
7866 + );
7867 +
7868 + $this->customizer->add_control(
7869 + new DimensionControl(
7870 + $this->customizer,
7871 + 'betterdocs_doc_single_attachment_content_margin_top',
7872 + [
7873 + 'type' => 'betterdocs-dimension',
7874 + 'section' => 'betterdocs_single_docs_settings',
7875 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_top',
7876 + 'label' => __( 'Top', 'betterdocs' ),
7877 + 'priority' => 163,
7878 + 'input_attrs' => [
7879 + 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
7880 + ]
7881 + ]
7882 + )
7883 + );
7884 +
7885 + $this->customizer->add_setting(
7886 + 'betterdocs_doc_single_attachment_content_margin_right',
7887 + [
7888 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_right'],
7889 + 'capability' => 'edit_theme_options',
7890 + 'transport' => 'postMessage',
7891 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7892 +
7893 + ]
7894 + );
7895 +
7896 + $this->customizer->add_control(
7897 + new DimensionControl(
7898 + $this->customizer,
7899 + 'betterdocs_doc_single_attachment_content_margin_right',
7900 + [
7901 + 'type' => 'betterdocs-dimension',
7902 + 'section' => 'betterdocs_single_docs_settings',
7903 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_right',
7904 + 'label' => __( 'Right', 'betterdocs' ),
7905 + 'priority' => 163,
7906 + 'input_attrs' => [
7907 + 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
7908 + ]
7909 + ]
7910 + )
7911 + );
7912 +
7913 + $this->customizer->add_setting(
7914 + 'betterdocs_doc_single_attachment_content_margin_bottom',
7915 + [
7916 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_bottom'],
7917 + 'capability' => 'edit_theme_options',
7918 + 'transport' => 'postMessage',
7919 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7920 +
7921 + ]
7922 + );
7923 +
7924 + $this->customizer->add_control(
7925 + new DimensionControl(
7926 + $this->customizer,
7927 + 'betterdocs_doc_single_attachment_content_margin_bottom',
7928 + [
7929 + 'type' => 'betterdocs-dimension',
7930 + 'section' => 'betterdocs_single_docs_settings',
7931 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_bottom',
7932 + 'label' => __( 'Bottom', 'betterdocs' ),
7933 + 'priority' => 163,
7934 + 'input_attrs' => [
7935 + 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
7936 + ]
7937 + ]
7938 + )
7939 + );
7940 +
7941 + $this->customizer->add_setting(
7942 + 'betterdocs_doc_single_attachment_content_margin_left',
7943 + [
7944 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_left'],
7945 + 'capability' => 'edit_theme_options',
7946 + 'transport' => 'postMessage',
7947 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7948 +
7949 + ]
7950 + );
7951 +
7952 + $this->customizer->add_control(
7953 + new DimensionControl(
7954 + $this->customizer,
7955 + 'betterdocs_doc_single_attachment_content_margin_left',
7956 + [
7957 + 'type' => 'betterdocs-dimension',
7958 + 'section' => 'betterdocs_single_docs_settings',
7959 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_left',
7960 + 'label' => __( 'Left', 'betterdocs' ),
7961 + 'priority' => 163,
7962 + 'input_attrs' => [
7963 + 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
7964 + ]
7965 + ]
7966 + )
7967 + );
7968 + }
7969 +
7970 + public function betterdocs_doc_single_attachment_label_color() {
7971 + $this->customizer->add_setting(
7972 + 'betterdocs_doc_single_attachment_label_color',
7973 + [
7974 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_color'],
7975 + 'capability' => 'edit_theme_options',
7976 + 'transport' => 'postMessage',
7977 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7978 + ]
7979 + );
7980 +
7981 + $this->customizer->add_control(
7982 + new AlphaColorControl(
7983 + $this->customizer,
7984 + 'betterdocs_doc_single_attachment_label_color',
7985 + [
7986 + 'label' => __( 'Label Color', 'betterdocs' ),
7987 + 'section' => 'betterdocs_single_docs_settings',
7988 + 'settings' => 'betterdocs_doc_single_attachment_label_color',
7989 + 'priority' => 163
7990 + ]
7991 + )
7992 + );
7993 + }
7994 +
7995 + public function betterdocs_doc_single_attachment_label_padding() {
7996 + $this->customizer->add_setting(
7997 + 'betterdocs_doc_single_attachment_label_padding',
7998 + [
7999 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding'],
8000 + 'capability' => 'edit_theme_options',
8001 + 'transport' => 'postMessage',
8002 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8003 +
8004 + ]
8005 + );
8006 +
8007 + $this->customizer->add_control(
8008 + new TitleControl(
8009 + $this->customizer,
8010 + 'betterdocs_doc_single_attachment_label_padding',
8011 + [
8012 + 'type' => 'betterdocs-title',
8013 + 'section' => 'betterdocs_single_docs_settings',
8014 + 'settings' => 'betterdocs_doc_single_attachment_label_padding',
8015 + 'label' => __( 'Label Padding', 'betterdocs' ),
8016 + 'priority' => 163,
8017 + 'input_attrs' => [
8018 + 'id' => 'betterdocs_doc_single_attachment_label_padding',
8019 + 'class' => 'betterdocs-dimension'
8020 + ]
8021 + ]
8022 + )
8023 + );
8024 +
8025 + $this->customizer->add_setting(
8026 + 'betterdocs_doc_single_attachment_label_padding_top',
8027 + [
8028 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_top'],
8029 + 'capability' => 'edit_theme_options',
8030 + 'transport' => 'postMessage',
8031 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8032 + ]
8033 + );
8034 +
8035 + $this->customizer->add_control(
8036 + new DimensionControl(
8037 + $this->customizer,
8038 + 'betterdocs_doc_single_attachment_label_padding_top',
8039 + [
8040 + 'type' => 'betterdocs-dimension',
8041 + 'section' => 'betterdocs_single_docs_settings',
8042 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_top',
8043 + 'label' => __( 'Top', 'betterdocs' ),
8044 + 'priority' => 163,
8045 + 'input_attrs' => [
8046 + 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
8047 + ]
8048 + ]
8049 + )
8050 + );
8051 +
8052 + $this->customizer->add_setting(
8053 + 'betterdocs_doc_single_attachment_label_padding_right',
8054 + [
8055 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_right'],
8056 + 'capability' => 'edit_theme_options',
8057 + 'transport' => 'postMessage',
8058 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8059 +
8060 + ]
8061 + );
8062 +
8063 + $this->customizer->add_control(
8064 + new DimensionControl(
8065 + $this->customizer,
8066 + 'betterdocs_doc_single_attachment_label_padding_right',
8067 + [
8068 + 'type' => 'betterdocs-dimension',
8069 + 'section' => 'betterdocs_single_docs_settings',
8070 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_right',
8071 + 'label' => __( 'Right', 'betterdocs' ),
8072 + 'priority' => 163,
8073 + 'input_attrs' => [
8074 + 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
8075 + ]
8076 + ]
8077 + )
8078 + );
8079 +
8080 + $this->customizer->add_setting(
8081 + 'betterdocs_doc_single_attachment_label_padding_bottom',
8082 + [
8083 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_bottom'],
8084 + 'capability' => 'edit_theme_options',
8085 + 'transport' => 'postMessage',
8086 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8087 +
8088 + ]
8089 + );
8090 +
8091 + $this->customizer->add_control(
8092 + new DimensionControl(
8093 + $this->customizer,
8094 + 'betterdocs_doc_single_attachment_label_padding_bottom',
8095 + [
8096 + 'type' => 'betterdocs-dimension',
8097 + 'section' => 'betterdocs_single_docs_settings',
8098 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_bottom',
8099 + 'label' => __( 'Bottom', 'betterdocs' ),
8100 + 'priority' => 163,
8101 + 'input_attrs' => [
8102 + 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
8103 + ]
8104 + ]
8105 + )
8106 + );
8107 +
8108 + $this->customizer->add_setting(
8109 + 'betterdocs_doc_single_attachment_label_padding_left',
8110 + [
8111 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_left'],
8112 + 'capability' => 'edit_theme_options',
8113 + 'transport' => 'postMessage',
8114 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8115 +
8116 + ]
8117 + );
8118 +
8119 + $this->customizer->add_control(
8120 + new DimensionControl(
8121 + $this->customizer,
8122 + 'betterdocs_doc_single_attachment_label_padding_left',
8123 + [
8124 + 'type' => 'betterdocs-dimension',
8125 + 'section' => 'betterdocs_single_docs_settings',
8126 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_left',
8127 + 'label' => __( 'Left', 'betterdocs' ),
8128 + 'priority' => 163,
8129 + 'input_attrs' => [
8130 + 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
8131 + ]
8132 + ]
8133 + )
8134 + );
8135 + }
8136 +
8137 + public function betterdocs_doc_single_attachment_label_margin() {
8138 + $this->customizer->add_setting(
8139 + 'betterdocs_doc_single_attachment_label_margin',
8140 + [
8141 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin'],
8142 + 'capability' => 'edit_theme_options',
8143 + 'transport' => 'postMessage',
8144 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8145 +
8146 + ]
8147 + );
8148 +
8149 + $this->customizer->add_control(
8150 + new TitleControl(
8151 + $this->customizer,
8152 + 'betterdocs_doc_single_attachment_label_margin',
8153 + [
8154 + 'type' => 'betterdocs-title',
8155 + 'section' => 'betterdocs_single_docs_settings',
8156 + 'settings' => 'betterdocs_doc_single_attachment_label_margin',
8157 + 'label' => __( 'Label Margin', 'betterdocs' ),
8158 + 'priority' => 163,
8159 + 'input_attrs' => [
8160 + 'id' => 'betterdocs_doc_single_attachment_label_margin',
8161 + 'class' => 'betterdocs-dimension'
8162 + ]
8163 + ]
8164 + )
8165 + );
8166 +
8167 + $this->customizer->add_setting(
8168 + 'betterdocs_doc_single_attachment_label_margin_top',
8169 + [
8170 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_top'],
8171 + 'capability' => 'edit_theme_options',
8172 + 'transport' => 'postMessage',
8173 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8174 + ]
8175 + );
8176 +
8177 + $this->customizer->add_control(
8178 + new DimensionControl(
8179 + $this->customizer,
8180 + 'betterdocs_doc_single_attachment_label_margin_top',
8181 + [
8182 + 'type' => 'betterdocs-dimension',
8183 + 'section' => 'betterdocs_single_docs_settings',
8184 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_top',
8185 + 'label' => __( 'Top', 'betterdocs' ),
8186 + 'priority' => 163,
8187 + 'input_attrs' => [
8188 + 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
8189 + ]
8190 + ]
8191 + )
8192 + );
8193 +
8194 + $this->customizer->add_setting(
8195 + 'betterdocs_doc_single_attachment_label_margin_right',
8196 + [
8197 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_right'],
8198 + 'capability' => 'edit_theme_options',
8199 + 'transport' => 'postMessage',
8200 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8201 +
8202 + ]
8203 + );
8204 +
8205 + $this->customizer->add_control(
8206 + new DimensionControl(
8207 + $this->customizer,
8208 + 'betterdocs_doc_single_attachment_label_margin_right',
8209 + [
8210 + 'type' => 'betterdocs-dimension',
8211 + 'section' => 'betterdocs_single_docs_settings',
8212 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_right',
8213 + 'label' => __( 'Right', 'betterdocs' ),
8214 + 'priority' => 163,
8215 + 'input_attrs' => [
8216 + 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
8217 + ]
8218 + ]
8219 + )
8220 + );
8221 +
8222 + $this->customizer->add_setting(
8223 + 'betterdocs_doc_single_attachment_label_margin_bottom',
8224 + [
8225 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_bottom'],
8226 + 'capability' => 'edit_theme_options',
8227 + 'transport' => 'postMessage',
8228 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8229 + ]
8230 + );
8231 +
8232 + $this->customizer->add_control(
8233 + new DimensionControl(
8234 + $this->customizer,
8235 + 'betterdocs_doc_single_attachment_label_margin_bottom',
8236 + [
8237 + 'type' => 'betterdocs-dimension',
8238 + 'section' => 'betterdocs_single_docs_settings',
8239 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_bottom',
8240 + 'label' => __( 'Bottom', 'betterdocs' ),
8241 + 'priority' => 163,
8242 + 'input_attrs' => [
8243 + 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
8244 + ]
8245 + ]
8246 + )
8247 + );
8248 +
8249 + $this->customizer->add_setting(
8250 + 'betterdocs_doc_single_attachment_label_margin_left',
8251 + [
8252 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_left'],
8253 + 'capability' => 'edit_theme_options',
8254 + 'transport' => 'postMessage',
8255 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8256 + ]
8257 + );
8258 +
8259 + $this->customizer->add_control(
8260 + new DimensionControl(
8261 + $this->customizer,
8262 + 'betterdocs_doc_single_attachment_label_margin_left',
8263 + [
8264 + 'type' => 'betterdocs-dimension',
8265 + 'section' => 'betterdocs_single_docs_settings',
8266 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_left',
8267 + 'label' => __( 'Left', 'betterdocs' ),
8268 + 'priority' => 163,
8269 + 'input_attrs' => [
8270 + 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
8271 + ]
8272 + ]
8273 + )
8274 + );
8275 + }
8276 +
8277 + public function betterdocs_doc_single_attachment_list_font_size() {
8278 + $this->customizer->add_setting(
8279 + 'betterdocs_doc_single_attachment_list_font_size',
8280 + [
8281 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_size'],
8282 + 'capability' => 'edit_theme_options',
8283 + 'transport' => 'postMessage',
8284 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8285 +
8286 + ]
8287 + );
8288 +
8289 + $this->customizer->add_control(
8290 + new RangeValueControl(
8291 + $this->customizer,
8292 + 'betterdocs_doc_single_attachment_list_font_size',
8293 + [
8294 + 'type' => 'betterdocs-range-value',
8295 + 'section' => 'betterdocs_single_docs_settings',
8296 + 'settings' => 'betterdocs_doc_single_attachment_list_font_size',
8297 + 'label' => __( 'List Font Size', 'betterdocs' ),
8298 + 'priority' => 163,
8299 + 'input_attrs' => [
8300 + 'min' => 0,
8301 + 'max' => 50,
8302 + 'step' => 1,
8303 + 'suffix' => 'px' //optional suffix
8304 + ]
8305 + ]
8306 + )
8307 + );
8308 + }
8309 +
8310 + public function betterdocs_doc_single_attachment_list_font_weight() {
8311 + $this->customizer->add_setting(
8312 + 'betterdocs_doc_single_attachment_list_font_weight',
8313 + [
8314 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_weight'],
8315 + 'capability' => 'edit_theme_options',
8316 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
8317 + ]
8318 + );
8319 +
8320 + $this->customizer->add_control(
8321 + new WP_Customize_Control(
8322 + $this->customizer,
8323 + 'betterdocs_doc_single_attachment_list_font_weight',
8324 + [
8325 + 'label' => __( 'List Font Weight', 'betterdocs' ),
8326 + 'section' => 'betterdocs_single_docs_settings',
8327 + 'settings' => 'betterdocs_doc_single_attachment_list_font_weight',
8328 + 'type' => 'select',
8329 + 'choices' => [
8330 + 'normal' => 'Normal',
8331 + '100' => '100',
8332 + '200' => '200',
8333 + '300' => '300',
8334 + '400' => '400',
8335 + '500' => '500',
8336 + '600' => '600',
8337 + '700' => '700',
8338 + '800' => '800',
8339 + '900' => '900'
8340 + ],
8341 + 'priority' => 163
8342 + ]
8343 + )
8344 + );
8345 + }
8346 +
8347 + public function betterdocs_doc_single_attachment_list_extension_color() {
8348 + $this->customizer->add_setting(
8349 + 'betterdocs_doc_single_attachment_list_extension_color',
8350 + [
8351 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_color'],
8352 + 'capability' => 'edit_theme_options',
8353 + 'transport' => 'postMessage',
8354 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
8355 + ]
8356 + );
8357 +
8358 + $this->customizer->add_control(
8359 + new AlphaColorControl(
8360 + $this->customizer,
8361 + 'betterdocs_doc_single_attachment_list_extension_color',
8362 + [
8363 + 'label' => __( 'Extension Color', 'betterdocs' ),
8364 + 'section' => 'betterdocs_single_docs_settings',
8365 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_color',
8366 + 'priority' => 163
8367 + ]
8368 + )
8369 + );
8370 + }
8371 + public function betterdocs_doc_single_attachment_list_extension_font_size() {
8372 + $this->customizer->add_setting(
8373 + 'betterdocs_doc_single_attachment_list_extension_font_size',
8374 + [
8375 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_size'],
8376 + 'capability' => 'edit_theme_options',
8377 + 'transport' => 'postMessage',
8378 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8379 +
8380 + ]
8381 + );
8382 +
8383 + $this->customizer->add_control(
8384 + new RangeValueControl(
8385 + $this->customizer,
8386 + 'betterdocs_doc_single_attachment_list_extension_font_size',
8387 + [
8388 + 'type' => 'betterdocs-range-value',
8389 + 'section' => 'betterdocs_single_docs_settings',
8390 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_size',
8391 + 'label' => __( 'Extension Font Size', 'betterdocs' ),
8392 + 'priority' => 163,
8393 + 'input_attrs' => [
8394 + 'min' => 0,
8395 + 'max' => 50,
8396 + 'step' => 1,
8397 + 'suffix' => 'px' //optional suffix
8398 + ]
8399 + ]
8400 + )
8401 + );
8402 + }
8403 +
8404 + public function betterdocs_doc_single_attachment_list_extension_font_weight() {
8405 + $this->customizer->add_setting(
8406 + 'betterdocs_doc_single_attachment_list_extension_font_weight',
8407 + [
8408 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_weight'],
8409 + 'capability' => 'edit_theme_options',
8410 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
8411 + ]
8412 + );
8413 +
8414 + $this->customizer->add_control(
8415 + new WP_Customize_Control(
8416 + $this->customizer,
8417 + 'betterdocs_doc_single_attachment_list_extension_font_weight',
8418 + [
8419 + 'label' => __( 'Extension Font Weight', 'betterdocs' ),
8420 + 'section' => 'betterdocs_single_docs_settings',
8421 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_weight',
8422 + 'type' => 'select',
8423 + 'choices' => [
8424 + 'normal' => 'Normal',
8425 + '100' => '100',
8426 + '200' => '200',
8427 + '300' => '300',
8428 + '400' => '400',
8429 + '500' => '500',
8430 + '600' => '600',
8431 + '700' => '700',
8432 + '800' => '800',
8433 + '900' => '900'
8434 + ],
8435 + 'priority' => 163
8436 + ]
8437 + )
8438 + );
8439 + }
8440 +
8441 + public function betterdocs_doc_single_attachment_list_color() {
8442 + $this->customizer->add_setting(
8443 + 'betterdocs_doc_single_attachment_list_color',
8444 + [
8445 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_color'],
8446 + 'capability' => 'edit_theme_options',
8447 + 'transport' => 'postMessage',
8448 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
8449 + ]
8450 + );
8451 +
8452 + $this->customizer->add_control(
8453 + new AlphaColorControl(
8454 + $this->customizer,
8455 + 'betterdocs_doc_single_attachment_list_color',
8456 + [
8457 + 'label' => __( 'List Color', 'betterdocs' ),
8458 + 'section' => 'betterdocs_single_docs_settings',
8459 + 'settings' => 'betterdocs_doc_single_attachment_list_color',
8460 + 'priority' => 163
8461 + ]
8462 + )
8463 + );
8464 + }
8465 +
8466 + public function betterdocs_doc_single_attachment_list_background_color() {
8467 + $this->customizer->add_setting(
8468 + 'betterdocs_doc_single_attachment_list_background_color',
8469 + [
8470 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_background_color'],
8471 + 'capability' => 'edit_theme_options',
8472 + 'transport' => 'postMessage',
8473 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
8474 + ]
8475 + );
8476 +
8477 + $this->customizer->add_control(
8478 + new AlphaColorControl(
8479 + $this->customizer,
8480 + 'betterdocs_doc_single_attachment_list_background_color',
8481 + [
8482 + 'label' => __( 'List Background Color', 'betterdocs' ),
8483 + 'section' => 'betterdocs_single_docs_settings',
8484 + 'settings' => 'betterdocs_doc_single_attachment_list_background_color',
8485 + 'priority' => 163
8486 + ]
8487 + )
8488 + );
8489 + }
8490 +
8491 + public function betterdocs_doc_single_attachment_list_padding() {
8492 + $this->customizer->add_setting(
8493 + 'betterdocs_doc_single_attachment_list_padding',
8494 + [
8495 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding'],
8496 + 'capability' => 'edit_theme_options',
8497 + 'transport' => 'postMessage',
8498 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8499 +
8500 + ]
8501 + );
8502 +
8503 + $this->customizer->add_control(
8504 + new TitleControl(
8505 + $this->customizer,
8506 + 'betterdocs_doc_single_attachment_list_padding',
8507 + [
8508 + 'type' => 'betterdocs-title',
8509 + 'section' => 'betterdocs_single_docs_settings',
8510 + 'settings' => 'betterdocs_doc_single_attachment_list_padding',
8511 + 'label' => __( 'List Padding', 'betterdocs' ),
8512 + 'priority' => 163,
8513 + 'input_attrs' => [
8514 + 'id' => 'betterdocs_doc_single_attachment_list_padding',
8515 + 'class' => 'betterdocs-dimension'
8516 + ]
8517 + ]
8518 + )
8519 + );
8520 +
8521 + $this->customizer->add_setting(
8522 + 'betterdocs_doc_single_attachment_list_padding_top',
8523 + [
8524 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_top'],
8525 + 'capability' => 'edit_theme_options',
8526 + 'transport' => 'postMessage',
8527 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8528 + ]
8529 + );
8530 +
8531 + $this->customizer->add_control(
8532 + new DimensionControl(
8533 + $this->customizer,
8534 + 'betterdocs_doc_single_attachment_list_padding_top',
8535 + [
8536 + 'type' => 'betterdocs-dimension',
8537 + 'section' => 'betterdocs_single_docs_settings',
8538 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_top',
8539 + 'label' => __( 'Top', 'betterdocs' ),
8540 + 'priority' => 163,
8541 + 'input_attrs' => [
8542 + 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
8543 + ]
8544 + ]
8545 + )
8546 + );
8547 +
8548 + $this->customizer->add_setting(
8549 + 'betterdocs_doc_single_attachment_list_padding_right',
8550 + [
8551 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_right'],
8552 + 'capability' => 'edit_theme_options',
8553 + 'transport' => 'postMessage',
8554 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8555 +
8556 + ]
8557 + );
8558 +
8559 + $this->customizer->add_control(
8560 + new DimensionControl(
8561 + $this->customizer,
8562 + 'betterdocs_doc_single_attachment_list_padding_right',
8563 + [
8564 + 'type' => 'betterdocs-dimension',
8565 + 'section' => 'betterdocs_single_docs_settings',
8566 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_right',
8567 + 'label' => __( 'Right', 'betterdocs' ),
8568 + 'priority' => 163,
8569 + 'input_attrs' => [
8570 + 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
8571 + ]
8572 + ]
8573 + )
8574 + );
8575 +
8576 + $this->customizer->add_setting(
8577 + 'betterdocs_doc_single_attachment_list_padding_bottom',
8578 + [
8579 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_bottom'],
8580 + 'capability' => 'edit_theme_options',
8581 + 'transport' => 'postMessage',
8582 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8583 + ]
8584 + );
8585 +
8586 + $this->customizer->add_control(
8587 + new DimensionControl(
8588 + $this->customizer,
8589 + 'betterdocs_doc_single_attachment_list_padding_bottom',
8590 + [
8591 + 'type' => 'betterdocs-dimension',
8592 + 'section' => 'betterdocs_single_docs_settings',
8593 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_bottom',
8594 + 'label' => __( 'Bottom', 'betterdocs' ),
8595 + 'priority' => 163,
8596 + 'input_attrs' => [
8597 + 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
8598 + ]
8599 + ]
8600 + )
8601 + );
8602 +
8603 + $this->customizer->add_setting(
8604 + 'betterdocs_doc_single_attachment_list_padding_left',
8605 + [
8606 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_left'],
8607 + 'capability' => 'edit_theme_options',
8608 + 'transport' => 'postMessage',
8609 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8610 + ]
8611 + );
8612 +
8613 + $this->customizer->add_control(
8614 + new DimensionControl(
8615 + $this->customizer,
8616 + 'betterdocs_doc_single_attachment_list_padding_left',
8617 + [
8618 + 'type' => 'betterdocs-dimension',
8619 + 'section' => 'betterdocs_single_docs_settings',
8620 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_left',
8621 + 'label' => __( 'Left', 'betterdocs' ),
8622 + 'priority' => 163,
8623 + 'input_attrs' => [
8624 + 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
8625 + ]
8626 + ]
8627 + )
8628 + );
8629 + }
8630 +
8631 + public function betterdocs_doc_single_attachment_list_margin() {
8632 + $this->customizer->add_setting(
8633 + 'betterdocs_doc_single_attachment_list_margin',
8634 + [
8635 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin'],
8636 + 'capability' => 'edit_theme_options',
8637 + 'transport' => 'postMessage',
8638 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8639 +
8640 + ]
8641 + );
8642 +
8643 + $this->customizer->add_control(
8644 + new TitleControl(
8645 + $this->customizer,
8646 + 'betterdocs_doc_single_attachment_list_margin',
8647 + [
8648 + 'type' => 'betterdocs-title',
8649 + 'section' => 'betterdocs_single_docs_settings',
8650 + 'settings' => 'betterdocs_doc_single_attachment_list_margin',
8651 + 'label' => __( 'List Margin', 'betterdocs' ),
8652 + 'priority' => 163,
8653 + 'input_attrs' => [
8654 + 'id' => 'betterdocs_doc_single_attachment_list_margin',
8655 + 'class' => 'betterdocs-dimension'
8656 + ]
8657 + ]
8658 + )
8659 + );
8660 +
8661 + $this->customizer->add_setting(
8662 + 'betterdocs_doc_single_attachment_list_margin_top',
8663 + [
8664 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_top'],
8665 + 'capability' => 'edit_theme_options',
8666 + 'transport' => 'postMessage',
8667 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8668 + ]
8669 + );
8670 +
8671 + $this->customizer->add_control(
8672 + new DimensionControl(
8673 + $this->customizer,
8674 + 'betterdocs_doc_single_attachment_list_margin_top',
8675 + [
8676 + 'type' => 'betterdocs-dimension',
8677 + 'section' => 'betterdocs_single_docs_settings',
8678 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_top',
8679 + 'label' => __( 'Top', 'betterdocs' ),
8680 + 'priority' => 163,
8681 + 'input_attrs' => [
8682 + 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
8683 + ]
8684 + ]
8685 + )
8686 + );
8687 +
8688 + $this->customizer->add_setting(
8689 + 'betterdocs_doc_single_attachment_list_margin_right',
8690 + [
8691 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_right'],
8692 + 'capability' => 'edit_theme_options',
8693 + 'transport' => 'postMessage',
8694 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8695 +
8696 + ]
8697 + );
8698 +
8699 + $this->customizer->add_control(
8700 + new DimensionControl(
8701 + $this->customizer,
8702 + 'betterdocs_doc_single_attachment_list_margin_right',
8703 + [
8704 + 'type' => 'betterdocs-dimension',
8705 + 'section' => 'betterdocs_single_docs_settings',
8706 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_right',
8707 + 'label' => __( 'Right', 'betterdocs' ),
8708 + 'priority' => 163,
8709 + 'input_attrs' => [
8710 + 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
8711 + ]
8712 + ]
8713 + )
8714 + );
8715 +
8716 + $this->customizer->add_setting(
8717 + 'betterdocs_doc_single_attachment_list_margin_bottom',
8718 + [
8719 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_bottom'],
8720 + 'capability' => 'edit_theme_options',
8721 + 'transport' => 'postMessage',
8722 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8723 + ]
8724 + );
8725 +
8726 + $this->customizer->add_control(
8727 + new DimensionControl(
8728 + $this->customizer,
8729 + 'betterdocs_doc_single_attachment_list_margin_bottom',
8730 + [
8731 + 'type' => 'betterdocs-dimension',
8732 + 'section' => 'betterdocs_single_docs_settings',
8733 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_bottom',
8734 + 'label' => __( 'Bottom', 'betterdocs' ),
8735 + 'priority' => 163,
8736 + 'input_attrs' => [
8737 + 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
8738 + ]
8739 + ]
8740 + )
8741 + );
8742 +
8743 + $this->customizer->add_setting(
8744 + 'betterdocs_doc_single_attachment_list_margin_left',
8745 + [
8746 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_left'],
8747 + 'capability' => 'edit_theme_options',
8748 + 'transport' => 'postMessage',
8749 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8750 + ]
8751 + );
8752 +
8753 + $this->customizer->add_control(
8754 + new DimensionControl(
8755 + $this->customizer,
8756 + 'betterdocs_doc_single_attachment_list_margin_left',
8757 + [
8758 + 'type' => 'betterdocs-dimension',
8759 + 'section' => 'betterdocs_single_docs_settings',
8760 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_left',
8761 + 'label' => __( 'Left', 'betterdocs' ),
8762 + 'priority' => 163,
8763 + 'input_attrs' => [
8764 + 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
8765 + ]
8766 + ]
8767 + )
8768 + );
8769 + }
8770 +
8771 + public function attachments_heading_layout_8_9() {
8772 + $this->customizer->add_setting(
8773 + 'betterdocs_single_doc_attachment_heading_layout_8_9',
8774 + [
8775 + 'default' => '',
8776 + 'sanitize_callback' => 'esc_html'
8777 + ]
8778 + );
8779 +
8780 + $this->customizer->add_control(
8781 + new SeparatorControl(
8782 + $this->customizer,
8783 + 'betterdocs_single_doc_attachment_heading_layout_8_9',
8784 + [
8785 + 'label' => __( 'Attachments', 'betterdocs' ),
8786 + 'priority' => 163,
8787 + 'settings' => 'betterdocs_single_doc_attachment_heading_layout_8_9',
8788 + 'section' => 'betterdocs_single_docs_settings'
8789 + ]
8790 + )
8791 + );
8792 + }
8793 +
8794 + public function betterdocs_doc_single_attachment_content_bg_color_layout_8_9() {
8795 + $this->customizer->add_setting(
8796 + 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
8797 + [
8798 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_bg_color_layout_8_9'],
8799 + 'capability' => 'edit_theme_options',
8800 + 'transport' => 'postMessage',
8801 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
8802 + ]
8803 + );
8804 +
8805 + $this->customizer->add_control(
8806 + new AlphaColorControl(
8807 + $this->customizer,
8808 + 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
8809 + [
8810 + 'label' => __( 'Content Background Color', 'betterdocs' ),
8811 + 'section' => 'betterdocs_single_docs_settings',
8812 + 'settings' => 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
8813 + 'priority' => 163
8814 + ]
8815 + )
8816 + );
8817 + }
8818 +
8819 + public function betterdocs_doc_single_attachment_content_padding_layout_8_9() {
8820 + $this->customizer->add_setting(
8821 + 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
8822 + [
8823 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_layout_8_9'],
8824 + 'capability' => 'edit_theme_options',
8825 + 'transport' => 'postMessage',
8826 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8827 +
8828 + ]
8829 + );
8830 +
8831 + $this->customizer->add_control(
8832 + new TitleControl(
8833 + $this->customizer,
8834 + 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
8835 + [
8836 + 'type' => 'betterdocs-title',
8837 + 'section' => 'betterdocs_single_docs_settings',
8838 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
8839 + 'label' => __( 'Content Padding', 'betterdocs' ),
8840 + 'priority' => 163,
8841 + 'input_attrs' => [
8842 + 'id' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
8843 + 'class' => 'betterdocs-dimension'
8844 + ]
8845 + ]
8846 + )
8847 + );
8848 +
8849 + $this->customizer->add_setting(
8850 + 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9',
8851 + [
8852 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_top_layout_8_9'],
8853 + 'capability' => 'edit_theme_options',
8854 + 'transport' => 'postMessage',
8855 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8856 + ]
8857 + );
8858 +
8859 + $this->customizer->add_control(
8860 + new DimensionControl(
8861 + $this->customizer,
8862 + 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9',
8863 + [
8864 + 'type' => 'betterdocs-dimension',
8865 + 'section' => 'betterdocs_single_docs_settings',
8866 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9',
8867 + 'label' => __( 'Top', 'betterdocs' ),
8868 + 'priority' => 163,
8869 + 'input_attrs' => [
8870 + 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
8871 + ]
8872 + ]
8873 + )
8874 + );
8875 +
8876 + $this->customizer->add_setting(
8877 + 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9',
8878 + [
8879 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_right_layout_8_9'],
8880 + 'capability' => 'edit_theme_options',
8881 + 'transport' => 'postMessage',
8882 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8883 +
8884 + ]
8885 + );
8886 +
8887 + $this->customizer->add_control(
8888 + new DimensionControl(
8889 + $this->customizer,
8890 + 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9',
8891 + [
8892 + 'type' => 'betterdocs-dimension',
8893 + 'section' => 'betterdocs_single_docs_settings',
8894 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9',
8895 + 'label' => __( 'Right', 'betterdocs' ),
8896 + 'priority' => 163,
8897 + 'input_attrs' => [
8898 + 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
8899 + ]
8900 + ]
8901 + )
8902 + );
8903 +
8904 + $this->customizer->add_setting(
8905 + 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9',
8906 + [
8907 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9'],
8908 + 'capability' => 'edit_theme_options',
8909 + 'transport' => 'postMessage',
8910 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8911 +
8912 + ]
8913 + );
8914 +
8915 + $this->customizer->add_control(
8916 + new DimensionControl(
8917 + $this->customizer,
8918 + 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9',
8919 + [
8920 + 'type' => 'betterdocs-dimension',
8921 + 'section' => 'betterdocs_single_docs_settings',
8922 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9',
8923 + 'label' => __( 'Bottom', 'betterdocs' ),
8924 + 'priority' => 163,
8925 + 'input_attrs' => [
8926 + 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
8927 + ]
8928 + ]
8929 + )
8930 + );
8931 +
8932 + $this->customizer->add_setting(
8933 + 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9',
8934 + [
8935 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_left_layout_8_9'],
8936 + 'capability' => 'edit_theme_options',
8937 + 'transport' => 'postMessage',
8938 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8939 +
8940 + ]
8941 + );
8942 +
8943 + $this->customizer->add_control(
8944 + new DimensionControl(
8945 + $this->customizer,
8946 + 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9',
8947 + [
8948 + 'type' => 'betterdocs-dimension',
8949 + 'section' => 'betterdocs_single_docs_settings',
8950 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9',
8951 + 'label' => __( 'Left', 'betterdocs' ),
8952 + 'priority' => 163,
8953 + 'input_attrs' => [
8954 + 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
8955 + ]
8956 + ]
8957 + )
8958 + );
8959 + }
8960 +
8961 + public function betterdocs_doc_single_attachment_content_margin_layout_8_9() {
8962 + $this->customizer->add_setting(
8963 + 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
8964 + [
8965 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_layout_8_9'],
8966 + 'capability' => 'edit_theme_options',
8967 + 'transport' => 'postMessage',
8968 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8969 +
8970 + ]
8971 + );
8972 +
8973 + $this->customizer->add_control(
8974 + new TitleControl(
8975 + $this->customizer,
8976 + 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
8977 + [
8978 + 'type' => 'betterdocs-title',
8979 + 'section' => 'betterdocs_single_docs_settings',
8980 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
8981 + 'label' => __( 'Content Margin', 'betterdocs' ),
8982 + 'priority' => 163,
8983 + 'input_attrs' => [
8984 + 'id' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
8985 + 'class' => 'betterdocs-dimension'
8986 + ]
8987 + ]
8988 + )
8989 + );
8990 +
8991 + $this->customizer->add_setting(
8992 + 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9',
8993 + [
8994 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_top_layout_8_9'],
8995 + 'capability' => 'edit_theme_options',
8996 + 'transport' => 'postMessage',
8997 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8998 + ]
8999 + );
9000 +
9001 + $this->customizer->add_control(
9002 + new DimensionControl(
9003 + $this->customizer,
9004 + 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9',
9005 + [
9006 + 'type' => 'betterdocs-dimension',
9007 + 'section' => 'betterdocs_single_docs_settings',
9008 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9',
9009 + 'label' => __( 'Top', 'betterdocs' ),
9010 + 'priority' => 163,
9011 + 'input_attrs' => [
9012 + 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
9013 + ]
9014 + ]
9015 + )
9016 + );
9017 +
9018 + $this->customizer->add_setting(
9019 + 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9',
9020 + [
9021 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_right_layout_8_9'],
9022 + 'capability' => 'edit_theme_options',
9023 + 'transport' => 'postMessage',
9024 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9025 +
9026 + ]
9027 + );
9028 +
9029 + $this->customizer->add_control(
9030 + new DimensionControl(
9031 + $this->customizer,
9032 + 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9',
9033 + [
9034 + 'type' => 'betterdocs-dimension',
9035 + 'section' => 'betterdocs_single_docs_settings',
9036 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9',
9037 + 'label' => __( 'Right', 'betterdocs' ),
9038 + 'priority' => 163,
9039 + 'input_attrs' => [
9040 + 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
9041 + ]
9042 + ]
9043 + )
9044 + );
9045 +
9046 + $this->customizer->add_setting(
9047 + 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9',
9048 + [
9049 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9'],
9050 + 'capability' => 'edit_theme_options',
9051 + 'transport' => 'postMessage',
9052 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9053 +
9054 + ]
9055 + );
9056 +
9057 + $this->customizer->add_control(
9058 + new DimensionControl(
9059 + $this->customizer,
9060 + 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9',
9061 + [
9062 + 'type' => 'betterdocs-dimension',
9063 + 'section' => 'betterdocs_single_docs_settings',
9064 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9',
9065 + 'label' => __( 'Bottom', 'betterdocs' ),
9066 + 'priority' => 163,
9067 + 'input_attrs' => [
9068 + 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
9069 + ]
9070 + ]
9071 + )
9072 + );
9073 +
9074 + $this->customizer->add_setting(
9075 + 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9',
9076 + [
9077 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_left_layout_8_9'],
9078 + 'capability' => 'edit_theme_options',
9079 + 'transport' => 'postMessage',
9080 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9081 +
9082 + ]
9083 + );
9084 +
9085 + $this->customizer->add_control(
9086 + new DimensionControl(
9087 + $this->customizer,
9088 + 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9',
9089 + [
9090 + 'type' => 'betterdocs-dimension',
9091 + 'section' => 'betterdocs_single_docs_settings',
9092 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9',
9093 + 'label' => __( 'Left', 'betterdocs' ),
9094 + 'priority' => 163,
9095 + 'input_attrs' => [
9096 + 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
9097 + ]
9098 + ]
9099 + )
9100 + );
9101 + }
9102 +
9103 + public function betterdocs_doc_single_attachment_label_color_layout_8_9() {
9104 + $this->customizer->add_setting(
9105 + 'betterdocs_doc_single_attachment_label_color_layout_8_9',
9106 + [
9107 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_color_layout_8_9'],
9108 + 'capability' => 'edit_theme_options',
9109 + 'transport' => 'postMessage',
9110 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9111 + ]
9112 + );
9113 +
9114 + $this->customizer->add_control(
9115 + new AlphaColorControl(
9116 + $this->customizer,
9117 + 'betterdocs_doc_single_attachment_label_color_layout_8_9',
9118 + [
9119 + 'label' => __( 'Label Color', 'betterdocs' ),
9120 + 'section' => 'betterdocs_single_docs_settings',
9121 + 'settings' => 'betterdocs_doc_single_attachment_label_color_layout_8_9',
9122 + 'priority' => 163
9123 + ]
9124 + )
9125 + );
9126 + }
9127 +
9128 + public function betterdocs_doc_single_attachment_label_padding_layout_8_9() {
9129 + $this->customizer->add_setting(
9130 + 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
9131 + [
9132 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_layout_8_9'],
9133 + 'capability' => 'edit_theme_options',
9134 + 'transport' => 'postMessage',
9135 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9136 +
9137 + ]
9138 + );
9139 +
9140 + $this->customizer->add_control(
9141 + new TitleControl(
9142 + $this->customizer,
9143 + 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
9144 + [
9145 + 'type' => 'betterdocs-title',
9146 + 'section' => 'betterdocs_single_docs_settings',
9147 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
9148 + 'label' => __( 'Label Padding', 'betterdocs' ),
9149 + 'priority' => 163,
9150 + 'input_attrs' => [
9151 + 'id' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
9152 + 'class' => 'betterdocs-dimension'
9153 + ]
9154 + ]
9155 + )
9156 + );
9157 +
9158 + $this->customizer->add_setting(
9159 + 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9',
9160 + [
9161 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_top_layout_8_9'],
9162 + 'capability' => 'edit_theme_options',
9163 + 'transport' => 'postMessage',
9164 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9165 + ]
9166 + );
9167 +
9168 + $this->customizer->add_control(
9169 + new DimensionControl(
9170 + $this->customizer,
9171 + 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9',
9172 + [
9173 + 'type' => 'betterdocs-dimension',
9174 + 'section' => 'betterdocs_single_docs_settings',
9175 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9',
9176 + 'label' => __( 'Top', 'betterdocs' ),
9177 + 'priority' => 163,
9178 + 'input_attrs' => [
9179 + 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
9180 + ]
9181 + ]
9182 + )
9183 + );
9184 +
9185 + $this->customizer->add_setting(
9186 + 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9',
9187 + [
9188 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_right_layout_8_9'],
9189 + 'capability' => 'edit_theme_options',
9190 + 'transport' => 'postMessage',
9191 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9192 +
9193 + ]
9194 + );
9195 +
9196 + $this->customizer->add_control(
9197 + new DimensionControl(
9198 + $this->customizer,
9199 + 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9',
9200 + [
9201 + 'type' => 'betterdocs-dimension',
9202 + 'section' => 'betterdocs_single_docs_settings',
9203 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9',
9204 + 'label' => __( 'Right', 'betterdocs' ),
9205 + 'priority' => 163,
9206 + 'input_attrs' => [
9207 + 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
9208 + ]
9209 + ]
9210 + )
9211 + );
9212 +
9213 + $this->customizer->add_setting(
9214 + 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9',
9215 + [
9216 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9'],
9217 + 'capability' => 'edit_theme_options',
9218 + 'transport' => 'postMessage',
9219 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9220 +
9221 + ]
9222 + );
9223 +
9224 + $this->customizer->add_control(
9225 + new DimensionControl(
9226 + $this->customizer,
9227 + 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9',
9228 + [
9229 + 'type' => 'betterdocs-dimension',
9230 + 'section' => 'betterdocs_single_docs_settings',
9231 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9',
9232 + 'label' => __( 'Bottom', 'betterdocs' ),
9233 + 'priority' => 163,
9234 + 'input_attrs' => [
9235 + 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
9236 + ]
9237 + ]
9238 + )
9239 + );
9240 +
9241 + $this->customizer->add_setting(
9242 + 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9',
9243 + [
9244 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_left_layout_8_9'],
9245 + 'capability' => 'edit_theme_options',
9246 + 'transport' => 'postMessage',
9247 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9248 +
9249 + ]
9250 + );
9251 +
9252 + $this->customizer->add_control(
9253 + new DimensionControl(
9254 + $this->customizer,
9255 + 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9',
9256 + [
9257 + 'type' => 'betterdocs-dimension',
9258 + 'section' => 'betterdocs_single_docs_settings',
9259 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9',
9260 + 'label' => __( 'Left', 'betterdocs' ),
9261 + 'priority' => 163,
9262 + 'input_attrs' => [
9263 + 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
9264 + ]
9265 + ]
9266 + )
9267 + );
9268 + }
9269 +
9270 + public function betterdocs_doc_single_attachment_label_margin_layout_8_9() {
9271 + $this->customizer->add_setting(
9272 + 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
9273 + [
9274 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_layout_8_9'],
9275 + 'capability' => 'edit_theme_options',
9276 + 'transport' => 'postMessage',
9277 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9278 +
9279 + ]
9280 + );
9281 +
9282 + $this->customizer->add_control(
9283 + new TitleControl(
9284 + $this->customizer,
9285 + 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
9286 + [
9287 + 'type' => 'betterdocs-title',
9288 + 'section' => 'betterdocs_single_docs_settings',
9289 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
9290 + 'label' => __( 'Label Margin', 'betterdocs' ),
9291 + 'priority' => 163,
9292 + 'input_attrs' => [
9293 + 'id' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
9294 + 'class' => 'betterdocs-dimension'
9295 + ]
9296 + ]
9297 + )
9298 + );
9299 +
9300 + $this->customizer->add_setting(
9301 + 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9',
9302 + [
9303 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_top_layout_8_9'],
9304 + 'capability' => 'edit_theme_options',
9305 + 'transport' => 'postMessage',
9306 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9307 + ]
9308 + );
9309 +
9310 + $this->customizer->add_control(
9311 + new DimensionControl(
9312 + $this->customizer,
9313 + 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9',
9314 + [
9315 + 'type' => 'betterdocs-dimension',
9316 + 'section' => 'betterdocs_single_docs_settings',
9317 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9',
9318 + 'label' => __( 'Top', 'betterdocs' ),
9319 + 'priority' => 163,
9320 + 'input_attrs' => [
9321 + 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
9322 + ]
9323 + ]
9324 + )
9325 + );
9326 +
9327 + $this->customizer->add_setting(
9328 + 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9',
9329 + [
9330 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_right_layout_8_9'],
9331 + 'capability' => 'edit_theme_options',
9332 + 'transport' => 'postMessage',
9333 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9334 +
9335 + ]
9336 + );
9337 +
9338 + $this->customizer->add_control(
9339 + new DimensionControl(
9340 + $this->customizer,
9341 + 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9',
9342 + [
9343 + 'type' => 'betterdocs-dimension',
9344 + 'section' => 'betterdocs_single_docs_settings',
9345 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9',
9346 + 'label' => __( 'Right', 'betterdocs' ),
9347 + 'priority' => 163,
9348 + 'input_attrs' => [
9349 + 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
9350 + ]
9351 + ]
9352 + )
9353 + );
9354 +
9355 + $this->customizer->add_setting(
9356 + 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9',
9357 + [
9358 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9'],
9359 + 'capability' => 'edit_theme_options',
9360 + 'transport' => 'postMessage',
9361 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9362 + ]
9363 + );
9364 +
9365 + $this->customizer->add_control(
9366 + new DimensionControl(
9367 + $this->customizer,
9368 + 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9',
9369 + [
9370 + 'type' => 'betterdocs-dimension',
9371 + 'section' => 'betterdocs_single_docs_settings',
9372 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9',
9373 + 'label' => __( 'Bottom', 'betterdocs' ),
9374 + 'priority' => 163,
9375 + 'input_attrs' => [
9376 + 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
9377 + ]
9378 + ]
9379 + )
9380 + );
9381 +
9382 + $this->customizer->add_setting(
9383 + 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9',
9384 + [
9385 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_left_layout_8_9'],
9386 + 'capability' => 'edit_theme_options',
9387 + 'transport' => 'postMessage',
9388 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9389 + ]
9390 + );
9391 +
9392 + $this->customizer->add_control(
9393 + new DimensionControl(
9394 + $this->customizer,
9395 + 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9',
9396 + [
9397 + 'type' => 'betterdocs-dimension',
9398 + 'section' => 'betterdocs_single_docs_settings',
9399 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9',
9400 + 'label' => __( 'Left', 'betterdocs' ),
9401 + 'priority' => 163,
9402 + 'input_attrs' => [
9403 + 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
9404 + ]
9405 + ]
9406 + )
9407 + );
9408 + }
9409 +
9410 + public function betterdocs_doc_single_attachment_list_font_size_layout_8_9() {
9411 + $this->customizer->add_setting(
9412 + 'betterdocs_doc_single_attachment_list_font_size_layout_8_9',
9413 + [
9414 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_size_layout_8_9'],
9415 + 'capability' => 'edit_theme_options',
9416 + 'transport' => 'postMessage',
9417 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9418 +
9419 + ]
9420 + );
9421 +
9422 + $this->customizer->add_control(
9423 + new RangeValueControl(
9424 + $this->customizer,
9425 + 'betterdocs_doc_single_attachment_list_font_size_layout_8_9',
9426 + [
9427 + 'type' => 'betterdocs-range-value',
9428 + 'section' => 'betterdocs_single_docs_settings',
9429 + 'settings' => 'betterdocs_doc_single_attachment_list_font_size_layout_8_9',
9430 + 'label' => __( 'List Font Size', 'betterdocs' ),
9431 + 'priority' => 163,
9432 + 'input_attrs' => [
9433 + 'min' => 0,
9434 + 'max' => 50,
9435 + 'step' => 1,
9436 + 'suffix' => 'px' //optional suffix
9437 + ]
9438 + ]
9439 + )
9440 + );
9441 + }
9442 +
9443 + public function betterdocs_doc_single_attachment_list_font_weight_layout_8_9() {
9444 + $this->customizer->add_setting(
9445 + 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
9446 + [
9447 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_weight_layout_8_9'],
9448 + 'capability' => 'edit_theme_options',
9449 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
9450 + ]
9451 + );
9452 +
9453 + $this->customizer->add_control(
9454 + new WP_Customize_Control(
9455 + $this->customizer,
9456 + 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
9457 + [
9458 + 'label' => __( 'List Font Weight', 'betterdocs' ),
9459 + 'section' => 'betterdocs_single_docs_settings',
9460 + 'settings' => 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
9461 + 'type' => 'select',
9462 + 'choices' => [
9463 + 'normal' => 'Normal',
9464 + '100' => '100',
9465 + '200' => '200',
9466 + '300' => '300',
9467 + '400' => '400',
9468 + '500' => '500',
9469 + '600' => '600',
9470 + '700' => '700',
9471 + '800' => '800',
9472 + '900' => '900'
9473 + ],
9474 + 'priority' => 163
9475 + ]
9476 + )
9477 + );
9478 + }
9479 +
9480 + public function betterdocs_doc_single_attachment_list_extension_color_layout_8_9() {
9481 + $this->customizer->add_setting(
9482 + 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
9483 + [
9484 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_color_layout_8_9'],
9485 + 'capability' => 'edit_theme_options',
9486 + 'transport' => 'postMessage',
9487 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9488 + ]
9489 + );
9490 +
9491 + $this->customizer->add_control(
9492 + new AlphaColorControl(
9493 + $this->customizer,
9494 + 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
9495 + [
9496 + 'label' => __( 'Extension Color', 'betterdocs' ),
9497 + 'section' => 'betterdocs_single_docs_settings',
9498 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
9499 + 'priority' => 163
9500 + ]
9501 + )
9502 + );
9503 + }
9504 +
9505 + public function betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9() {
9506 + $this->customizer->add_setting(
9507 + 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9',
9508 + [
9509 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9'],
9510 + 'capability' => 'edit_theme_options',
9511 + 'transport' => 'postMessage',
9512 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9513 +
9514 + ]
9515 + );
9516 +
9517 + $this->customizer->add_control(
9518 + new RangeValueControl(
9519 + $this->customizer,
9520 + 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9',
9521 + [
9522 + 'type' => 'betterdocs-range-value',
9523 + 'section' => 'betterdocs_single_docs_settings',
9524 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9',
9525 + 'label' => __( 'Extension Font Size', 'betterdocs' ),
9526 + 'priority' => 163,
9527 + 'input_attrs' => [
9528 + 'min' => 0,
9529 + 'max' => 50,
9530 + 'step' => 1,
9531 + 'suffix' => 'px' //optional suffix
9532 + ]
9533 + ]
9534 + )
9535 + );
9536 + }
9537 +
9538 + public function betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9() {
9539 + $this->customizer->add_setting(
9540 + 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
9541 + [
9542 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9'],
9543 + 'capability' => 'edit_theme_options',
9544 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
9545 + ]
9546 + );
9547 +
9548 + $this->customizer->add_control(
9549 + new WP_Customize_Control(
9550 + $this->customizer,
9551 + 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
9552 + [
9553 + 'label' => __( 'Extension Font Weight', 'betterdocs' ),
9554 + 'section' => 'betterdocs_single_docs_settings',
9555 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
9556 + 'type' => 'select',
9557 + 'choices' => [
9558 + 'normal' => 'Normal',
9559 + '100' => '100',
9560 + '200' => '200',
9561 + '300' => '300',
9562 + '400' => '400',
9563 + '500' => '500',
9564 + '600' => '600',
9565 + '700' => '700',
9566 + '800' => '800',
9567 + '900' => '900'
9568 + ],
9569 + 'priority' => 163
9570 + ]
9571 + )
9572 + );
9573 + }
9574 +
9575 + public function betterdocs_doc_single_attachment_list_color_layout_8_9() {
9576 + $this->customizer->add_setting(
9577 + 'betterdocs_doc_single_attachment_list_color_layout_8_9',
9578 + [
9579 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_color_layout_8_9'],
9580 + 'capability' => 'edit_theme_options',
9581 + 'transport' => 'postMessage',
9582 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9583 + ]
9584 + );
9585 +
9586 + $this->customizer->add_control(
9587 + new AlphaColorControl(
9588 + $this->customizer,
9589 + 'betterdocs_doc_single_attachment_list_color_layout_8_9',
9590 + [
9591 + 'label' => __( 'List Color', 'betterdocs' ),
9592 + 'section' => 'betterdocs_single_docs_settings',
9593 + 'settings' => 'betterdocs_doc_single_attachment_list_color_layout_8_9',
9594 + 'priority' => 163
9595 + ]
9596 + )
9597 + );
9598 + }
9599 +
9600 + public function betterdocs_doc_single_attachment_list_background_color_layout_8_9() {
9601 + $this->customizer->add_setting(
9602 + 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
9603 + [
9604 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_background_color_layout_8_9'],
9605 + 'capability' => 'edit_theme_options',
9606 + 'transport' => 'postMessage',
9607 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9608 + ]
9609 + );
9610 +
9611 + $this->customizer->add_control(
9612 + new AlphaColorControl(
9613 + $this->customizer,
9614 + 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
9615 + [
9616 + 'label' => __( 'List Background Color', 'betterdocs' ),
9617 + 'section' => 'betterdocs_single_docs_settings',
9618 + 'settings' => 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
9619 + 'priority' => 163
9620 + ]
9621 + )
9622 + );
9623 + }
9624 +
9625 + public function betterdocs_doc_single_attachment_list_padding_layout_8_9() {
9626 + $this->customizer->add_setting(
9627 + 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
9628 + [
9629 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_layout_8_9'],
9630 + 'capability' => 'edit_theme_options',
9631 + 'transport' => 'postMessage',
9632 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9633 +
9634 + ]
9635 + );
9636 +
9637 + $this->customizer->add_control(
9638 + new TitleControl(
9639 + $this->customizer,
9640 + 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
9641 + [
9642 + 'type' => 'betterdocs-title',
9643 + 'section' => 'betterdocs_single_docs_settings',
9644 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
9645 + 'label' => __( 'List Padding', 'betterdocs' ),
9646 + 'priority' => 163,
9647 + 'input_attrs' => [
9648 + 'id' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
9649 + 'class' => 'betterdocs-dimension'
9650 + ]
9651 + ]
9652 + )
9653 + );
9654 +
9655 + $this->customizer->add_setting(
9656 + 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9',
9657 + [
9658 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_top_layout_8_9'],
9659 + 'capability' => 'edit_theme_options',
9660 + 'transport' => 'postMessage',
9661 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9662 + ]
9663 + );
9664 +
9665 + $this->customizer->add_control(
9666 + new DimensionControl(
9667 + $this->customizer,
9668 + 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9',
9669 + [
9670 + 'type' => 'betterdocs-dimension',
9671 + 'section' => 'betterdocs_single_docs_settings',
9672 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9',
9673 + 'label' => __( 'Top', 'betterdocs' ),
9674 + 'priority' => 163,
9675 + 'input_attrs' => [
9676 + 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
9677 + ]
9678 + ]
9679 + )
9680 + );
9681 +
9682 + $this->customizer->add_setting(
9683 + 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9',
9684 + [
9685 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_right_layout_8_9'],
9686 + 'capability' => 'edit_theme_options',
9687 + 'transport' => 'postMessage',
9688 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9689 +
9690 + ]
9691 + );
9692 +
9693 + $this->customizer->add_control(
9694 + new DimensionControl(
9695 + $this->customizer,
9696 + 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9',
9697 + [
9698 + 'type' => 'betterdocs-dimension',
9699 + 'section' => 'betterdocs_single_docs_settings',
9700 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9',
9701 + 'label' => __( 'Right', 'betterdocs' ),
9702 + 'priority' => 163,
9703 + 'input_attrs' => [
9704 + 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
9705 + ]
9706 + ]
9707 + )
9708 + );
9709 +
9710 + $this->customizer->add_setting(
9711 + 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9',
9712 + [
9713 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9'],
9714 + 'capability' => 'edit_theme_options',
9715 + 'transport' => 'postMessage',
9716 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9717 + ]
9718 + );
9719 +
9720 + $this->customizer->add_control(
9721 + new DimensionControl(
9722 + $this->customizer,
9723 + 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9',
9724 + [
9725 + 'type' => 'betterdocs-dimension',
9726 + 'section' => 'betterdocs_single_docs_settings',
9727 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9',
9728 + 'label' => __( 'Bottom', 'betterdocs' ),
9729 + 'priority' => 163,
9730 + 'input_attrs' => [
9731 + 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
9732 + ]
9733 + ]
9734 + )
9735 + );
9736 +
9737 + $this->customizer->add_setting(
9738 + 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9',
9739 + [
9740 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_left_layout_8_9'],
9741 + 'capability' => 'edit_theme_options',
9742 + 'transport' => 'postMessage',
9743 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9744 + ]
9745 + );
9746 +
9747 + $this->customizer->add_control(
9748 + new DimensionControl(
9749 + $this->customizer,
9750 + 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9',
9751 + [
9752 + 'type' => 'betterdocs-dimension',
9753 + 'section' => 'betterdocs_single_docs_settings',
9754 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9',
9755 + 'label' => __( 'Left', 'betterdocs' ),
9756 + 'priority' => 163,
9757 + 'input_attrs' => [
9758 + 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
9759 + ]
9760 + ]
9761 + )
9762 + );
9763 + }
9764 +
9765 + public function betterdocs_doc_single_attachment_list_margin_layout_8_9() {
9766 + $this->customizer->add_setting(
9767 + 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
9768 + [
9769 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_layout_8_9'],
9770 + 'capability' => 'edit_theme_options',
9771 + 'transport' => 'postMessage',
9772 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9773 +
9774 + ]
9775 + );
9776 +
9777 + $this->customizer->add_control(
9778 + new TitleControl(
9779 + $this->customizer,
9780 + 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
9781 + [
9782 + 'type' => 'betterdocs-title',
9783 + 'section' => 'betterdocs_single_docs_settings',
9784 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
9785 + 'label' => __( 'List Margin', 'betterdocs' ),
9786 + 'priority' => 163,
9787 + 'input_attrs' => [
9788 + 'id' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
9789 + 'class' => 'betterdocs-dimension'
9790 + ]
9791 + ]
9792 + )
9793 + );
9794 +
9795 + $this->customizer->add_setting(
9796 + 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9',
9797 + [
9798 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_top_layout_8_9'],
9799 + 'capability' => 'edit_theme_options',
9800 + 'transport' => 'postMessage',
9801 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9802 + ]
9803 + );
9804 +
9805 + $this->customizer->add_control(
9806 + new DimensionControl(
9807 + $this->customizer,
9808 + 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9',
9809 + [
9810 + 'type' => 'betterdocs-dimension',
9811 + 'section' => 'betterdocs_single_docs_settings',
9812 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9',
9813 + 'label' => __( 'Top', 'betterdocs' ),
9814 + 'priority' => 163,
9815 + 'input_attrs' => [
9816 + 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
9817 + ]
9818 + ]
9819 + )
9820 + );
9821 +
9822 + $this->customizer->add_setting(
9823 + 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9',
9824 + [
9825 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_right_layout_8_9'],
9826 + 'capability' => 'edit_theme_options',
9827 + 'transport' => 'postMessage',
9828 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9829 +
9830 + ]
9831 + );
9832 +
9833 + $this->customizer->add_control(
9834 + new DimensionControl(
9835 + $this->customizer,
9836 + 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9',
9837 + [
9838 + 'type' => 'betterdocs-dimension',
9839 + 'section' => 'betterdocs_single_docs_settings',
9840 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9',
9841 + 'label' => __( 'Right', 'betterdocs' ),
9842 + 'priority' => 163,
9843 + 'input_attrs' => [
9844 + 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
9845 + ]
9846 + ]
9847 + )
9848 + );
9849 +
9850 + $this->customizer->add_setting(
9851 + 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9',
9852 + [
9853 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9'],
9854 + 'capability' => 'edit_theme_options',
9855 + 'transport' => 'postMessage',
9856 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9857 + ]
9858 + );
9859 +
9860 + $this->customizer->add_control(
9861 + new DimensionControl(
9862 + $this->customizer,
9863 + 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9',
9864 + [
9865 + 'type' => 'betterdocs-dimension',
9866 + 'section' => 'betterdocs_single_docs_settings',
9867 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9',
9868 + 'label' => __( 'Bottom', 'betterdocs' ),
9869 + 'priority' => 163,
9870 + 'input_attrs' => [
9871 + 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
9872 + ]
9873 + ]
9874 + )
9875 + );
9876 +
9877 + $this->customizer->add_setting(
9878 + 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9',
9879 + [
9880 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_left_layout_8_9'],
9881 + 'capability' => 'edit_theme_options',
9882 + 'transport' => 'postMessage',
9883 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9884 + ]
9885 + );
9886 +
9887 + $this->customizer->add_control(
9888 + new DimensionControl(
9889 + $this->customizer,
9890 + 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9',
9891 + [
9892 + 'type' => 'betterdocs-dimension',
9893 + 'section' => 'betterdocs_single_docs_settings',
9894 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9',
9895 + 'label' => __( 'Left', 'betterdocs' ),
9896 + 'priority' => 163,
9897 + 'input_attrs' => [
9898 + 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
9899 + ]
9900 + ]
9901 + )
9902 + );
9903 + }
9904 +
9905 + public function betterdocs_doc_single_related_docs_heading() {
9906 + $this->customizer->add_setting(
9907 + 'betterdocs_doc_single_related_docs_heading',
9908 + [
9909 + 'default' => 'betterdocs_doc_single_related_docs_heading',
9910 + 'sanitize_callback' => 'esc_html'
9911 + ]
9912 + );
9913 +
9914 + $this->customizer->add_control(
9915 + new SeparatorControl(
9916 + $this->customizer,
9917 + 'betterdocs_doc_single_related_docs_heading',
9918 + [
9919 + 'label' => __( 'Related Docs', 'betterdocs' ),
9920 + 'priority' => 163,
9921 + 'settings' => 'betterdocs_doc_single_related_docs_heading',
9922 + 'section' => 'betterdocs_single_docs_settings'
9923 + ]
9924 + )
9925 + );
9926 + }
9927 +
9928 + public function betterdocs_doc_single_related_docs_content_bg_color() {
9929 + $this->customizer->add_setting(
9930 + 'betterdocs_doc_single_related_docs_content_bg_color',
9931 + [
9932 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_bg_color'],
9933 + 'capability' => 'edit_theme_options',
9934 + 'transport' => 'postMessage',
9935 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9936 + ]
9937 + );
9938 +
9939 + $this->customizer->add_control(
9940 + new AlphaColorControl(
9941 + $this->customizer,
9942 + 'betterdocs_doc_single_related_docs_content_bg_color',
9943 + [
9944 + 'label' => __( 'Content Background Color', 'betterdocs' ),
9945 + 'section' => 'betterdocs_single_docs_settings',
9946 + 'settings' => 'betterdocs_doc_single_related_docs_content_bg_color',
9947 + 'priority' => 163
9948 + ]
9949 + )
9950 + );
9951 + }
9952 +
9953 + public function betterdocs_doc_single_related_docs_content_padding() {
9954 + $this->customizer->add_setting(
9955 + 'betterdocs_doc_single_related_docs_content_padding',
9956 + [
9957 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding'],
9958 + 'capability' => 'edit_theme_options',
9959 + 'transport' => 'postMessage',
9960 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9961 +
9962 + ]
9963 + );
9964 +
9965 + $this->customizer->add_control(
9966 + new TitleControl(
9967 + $this->customizer,
9968 + 'betterdocs_doc_single_related_docs_content_padding',
9969 + [
9970 + 'type' => 'betterdocs-title',
9971 + 'section' => 'betterdocs_single_docs_settings',
9972 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding',
9973 + 'label' => __( 'Content Padding', 'betterdocs' ),
9974 + 'priority' => 163,
9975 + 'input_attrs' => [
9976 + 'id' => 'betterdocs_doc_single_related_docs_content_padding',
9977 + 'class' => 'betterdocs-dimension'
9978 + ]
9979 + ]
9980 + )
9981 + );
9982 +
9983 + $this->customizer->add_setting(
9984 + 'betterdocs_doc_single_related_docs_content_padding_top',
9985 + [
9986 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_top'],
9987 + 'capability' => 'edit_theme_options',
9988 + 'transport' => 'postMessage',
9989 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9990 + ]
9991 + );
9992 +
9993 + $this->customizer->add_control(
9994 + new DimensionControl(
9995 + $this->customizer,
9996 + 'betterdocs_doc_single_related_docs_content_padding_top',
9997 + [
9998 + 'type' => 'betterdocs-dimension',
9999 + 'section' => 'betterdocs_single_docs_settings',
10000 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_top',
10001 + 'label' => __( 'Top', 'betterdocs' ),
10002 + 'priority' => 163,
10003 + 'input_attrs' => [
10004 + 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
10005 + ]
10006 + ]
10007 + )
10008 + );
10009 +
10010 + $this->customizer->add_setting(
10011 + 'betterdocs_doc_single_related_docs_content_padding_right',
10012 + [
10013 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_right'],
10014 + 'capability' => 'edit_theme_options',
10015 + 'transport' => 'postMessage',
10016 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10017 +
10018 + ]
10019 + );
10020 +
10021 + $this->customizer->add_control(
10022 + new DimensionControl(
10023 + $this->customizer,
10024 + 'betterdocs_doc_single_related_docs_content_padding_right',
10025 + [
10026 + 'type' => 'betterdocs-dimension',
10027 + 'section' => 'betterdocs_single_docs_settings',
10028 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_right',
10029 + 'label' => __( 'Right', 'betterdocs' ),
10030 + 'priority' => 163,
10031 + 'input_attrs' => [
10032 + 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
10033 + ]
10034 + ]
10035 + )
10036 + );
10037 +
10038 + $this->customizer->add_setting(
10039 + 'betterdocs_doc_single_related_docs_content_padding_bottom',
10040 + [
10041 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_bottom'],
10042 + 'capability' => 'edit_theme_options',
10043 + 'transport' => 'postMessage',
10044 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10045 +
10046 + ]
10047 + );
10048 +
10049 + $this->customizer->add_control(
10050 + new DimensionControl(
10051 + $this->customizer,
10052 + 'betterdocs_doc_single_related_docs_content_padding_bottom',
10053 + [
10054 + 'type' => 'betterdocs-dimension',
10055 + 'section' => 'betterdocs_single_docs_settings',
10056 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_bottom',
10057 + 'label' => __( 'Bottom', 'betterdocs' ),
10058 + 'priority' => 163,
10059 + 'input_attrs' => [
10060 + 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
10061 + ]
10062 + ]
10063 + )
10064 + );
10065 +
10066 + $this->customizer->add_setting(
10067 + 'betterdocs_doc_single_related_docs_content_padding_left',
10068 + [
10069 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_left'],
10070 + 'capability' => 'edit_theme_options',
10071 + 'transport' => 'postMessage',
10072 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10073 +
10074 + ]
10075 + );
10076 +
10077 + $this->customizer->add_control(
10078 + new DimensionControl(
10079 + $this->customizer,
10080 + 'betterdocs_doc_single_related_docs_content_padding_left',
10081 + [
10082 + 'type' => 'betterdocs-dimension',
10083 + 'section' => 'betterdocs_single_docs_settings',
10084 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_left',
10085 + 'label' => __( 'Left', 'betterdocs' ),
10086 + 'priority' => 163,
10087 + 'input_attrs' => [
10088 + 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
10089 + ]
10090 + ]
10091 + )
10092 + );
10093 + }
10094 +
10095 + public function betterdocs_doc_single_related_docs_content_margin() {
10096 + $this->customizer->add_setting(
10097 + 'betterdocs_doc_single_related_docs_content_margin',
10098 + [
10099 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin'],
10100 + 'capability' => 'edit_theme_options',
10101 + 'transport' => 'postMessage',
10102 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10103 +
10104 + ]
10105 + );
10106 +
10107 + $this->customizer->add_control(
10108 + new TitleControl(
10109 + $this->customizer,
10110 + 'betterdocs_doc_single_related_docs_content_margin',
10111 + [
10112 + 'type' => 'betterdocs-title',
10113 + 'section' => 'betterdocs_single_docs_settings',
10114 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin',
10115 + 'label' => __( 'Content Margin', 'betterdocs' ),
10116 + 'priority' => 163,
10117 + 'input_attrs' => [
10118 + 'id' => 'betterdocs_doc_single_related_docs_content_margin',
10119 + 'class' => 'betterdocs-dimension'
10120 + ]
10121 + ]
10122 + )
10123 + );
10124 +
10125 + $this->customizer->add_setting(
10126 + 'betterdocs_doc_single_related_docs_content_margin_top',
10127 + [
10128 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_top'],
10129 + 'capability' => 'edit_theme_options',
10130 + 'transport' => 'postMessage',
10131 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10132 + ]
10133 + );
10134 +
10135 + $this->customizer->add_control(
10136 + new DimensionControl(
10137 + $this->customizer,
10138 + 'betterdocs_doc_single_related_docs_content_margin_top',
10139 + [
10140 + 'type' => 'betterdocs-dimension',
10141 + 'section' => 'betterdocs_single_docs_settings',
10142 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_top',
10143 + 'label' => __( 'Top', 'betterdocs' ),
10144 + 'priority' => 163,
10145 + 'input_attrs' => [
10146 + 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
10147 + ]
10148 + ]
10149 + )
10150 + );
10151 +
10152 + $this->customizer->add_setting(
10153 + 'betterdocs_doc_single_related_docs_content_margin_right',
10154 + [
10155 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_right'],
10156 + 'capability' => 'edit_theme_options',
10157 + 'transport' => 'postMessage',
10158 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10159 +
10160 + ]
10161 + );
10162 +
10163 + $this->customizer->add_control(
10164 + new DimensionControl(
10165 + $this->customizer,
10166 + 'betterdocs_doc_single_related_docs_content_margin_right',
10167 + [
10168 + 'type' => 'betterdocs-dimension',
10169 + 'section' => 'betterdocs_single_docs_settings',
10170 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_right',
10171 + 'label' => __( 'Right', 'betterdocs' ),
10172 + 'priority' => 163,
10173 + 'input_attrs' => [
10174 + 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
10175 + ]
10176 + ]
10177 + )
10178 + );
10179 +
10180 + $this->customizer->add_setting(
10181 + 'betterdocs_doc_single_related_docs_content_margin_bottom',
10182 + [
10183 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_bottom'],
10184 + 'capability' => 'edit_theme_options',
10185 + 'transport' => 'postMessage',
10186 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10187 +
10188 + ]
10189 + );
10190 +
10191 + $this->customizer->add_control(
10192 + new DimensionControl(
10193 + $this->customizer,
10194 + 'betterdocs_doc_single_related_docs_content_margin_bottom',
10195 + [
10196 + 'type' => 'betterdocs-dimension',
10197 + 'section' => 'betterdocs_single_docs_settings',
10198 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_bottom',
10199 + 'label' => __( 'Bottom', 'betterdocs' ),
10200 + 'priority' => 163,
10201 + 'input_attrs' => [
10202 + 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
10203 + ]
10204 + ]
10205 + )
10206 + );
10207 +
10208 + $this->customizer->add_setting(
10209 + 'betterdocs_doc_single_related_docs_content_margin_left',
10210 + [
10211 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_left'],
10212 + 'capability' => 'edit_theme_options',
10213 + 'transport' => 'postMessage',
10214 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10215 +
10216 + ]
10217 + );
10218 +
10219 + $this->customizer->add_control(
10220 + new DimensionControl(
10221 + $this->customizer,
10222 + 'betterdocs_doc_single_related_docs_content_margin_left',
10223 + [
10224 + 'type' => 'betterdocs-dimension',
10225 + 'section' => 'betterdocs_single_docs_settings',
10226 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_left',
10227 + 'label' => __( 'Left', 'betterdocs' ),
10228 + 'priority' => 163,
10229 + 'input_attrs' => [
10230 + 'class' => 'betterdocs_doc_single_related_docs_content_margin_left betterdocs-dimension'
10231 + ]
10232 + ]
10233 + )
10234 + );
10235 + }
10236 +
10237 + public function betterdocs_doc_single_related_docs_label_color() {
10238 + $this->customizer->add_setting(
10239 + 'betterdocs_doc_single_related_docs_label_color',
10240 + [
10241 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_color'],
10242 + 'capability' => 'edit_theme_options',
10243 + 'transport' => 'postMessage',
10244 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10245 + ]
10246 + );
10247 +
10248 + $this->customizer->add_control(
10249 + new AlphaColorControl(
10250 + $this->customizer,
10251 + 'betterdocs_doc_single_related_docs_label_color',
10252 + [
10253 + 'label' => __( 'Label Color', 'betterdocs' ),
10254 + 'section' => 'betterdocs_single_docs_settings',
10255 + 'settings' => 'betterdocs_doc_single_related_docs_label_color',
10256 + 'priority' => 163
10257 + ]
10258 + )
10259 + );
10260 + }
10261 +
10262 + public function betterdocs_doc_single_related_docs_label_padding() {
10263 + $this->customizer->add_setting(
10264 + 'betterdocs_doc_single_related_docs_label_padding',
10265 + [
10266 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding'],
10267 + 'capability' => 'edit_theme_options',
10268 + 'transport' => 'postMessage',
10269 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10270 +
10271 + ]
10272 + );
10273 +
10274 + $this->customizer->add_control(
10275 + new TitleControl(
10276 + $this->customizer,
10277 + 'betterdocs_doc_single_related_docs_label_padding',
10278 + [
10279 + 'type' => 'betterdocs-title',
10280 + 'section' => 'betterdocs_single_docs_settings',
10281 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding',
10282 + 'label' => __( 'Label Padding', 'betterdocs' ),
10283 + 'priority' => 163,
10284 + 'input_attrs' => [
10285 + 'id' => 'betterdocs_doc_single_related_docs_label_padding',
10286 + 'class' => 'betterdocs-dimension'
10287 + ]
10288 + ]
10289 + )
10290 + );
10291 +
10292 + $this->customizer->add_setting(
10293 + 'betterdocs_doc_single_related_docs_label_padding_top',
10294 + [
10295 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_top'],
10296 + 'capability' => 'edit_theme_options',
10297 + 'transport' => 'postMessage',
10298 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10299 + ]
10300 + );
10301 +
10302 + $this->customizer->add_control(
10303 + new DimensionControl(
10304 + $this->customizer,
10305 + 'betterdocs_doc_single_related_docs_label_padding_top',
10306 + [
10307 + 'type' => 'betterdocs-dimension',
10308 + 'section' => 'betterdocs_single_docs_settings',
10309 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_top',
10310 + 'label' => __( 'Top', 'betterdocs' ),
10311 + 'priority' => 163,
10312 + 'input_attrs' => [
10313 + 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
10314 + ]
10315 + ]
10316 + )
10317 + );
10318 +
10319 + $this->customizer->add_setting(
10320 + 'betterdocs_doc_single_related_docs_label_padding_right',
10321 + [
10322 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_right'],
10323 + 'capability' => 'edit_theme_options',
10324 + 'transport' => 'postMessage',
10325 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10326 +
10327 + ]
10328 + );
10329 +
10330 + $this->customizer->add_control(
10331 + new DimensionControl(
10332 + $this->customizer,
10333 + 'betterdocs_doc_single_related_docs_label_padding_right',
10334 + [
10335 + 'type' => 'betterdocs-dimension',
10336 + 'section' => 'betterdocs_single_docs_settings',
10337 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_right',
10338 + 'label' => __( 'Right', 'betterdocs' ),
10339 + 'priority' => 163,
10340 + 'input_attrs' => [
10341 + 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
10342 + ]
10343 + ]
10344 + )
10345 + );
10346 +
10347 + $this->customizer->add_setting(
10348 + 'betterdocs_doc_single_related_docs_label_padding_bottom',
10349 + [
10350 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_bottom'],
10351 + 'capability' => 'edit_theme_options',
10352 + 'transport' => 'postMessage',
10353 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10354 +
10355 + ]
10356 + );
10357 +
10358 + $this->customizer->add_control(
10359 + new DimensionControl(
10360 + $this->customizer,
10361 + 'betterdocs_doc_single_related_docs_label_padding_bottom',
10362 + [
10363 + 'type' => 'betterdocs-dimension',
10364 + 'section' => 'betterdocs_single_docs_settings',
10365 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_bottom',
10366 + 'label' => __( 'Bottom', 'betterdocs' ),
10367 + 'priority' => 163,
10368 + 'input_attrs' => [
10369 + 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
10370 + ]
10371 + ]
10372 + )
10373 + );
10374 +
10375 + $this->customizer->add_setting(
10376 + 'betterdocs_doc_single_related_docs_label_padding_left',
10377 + [
10378 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_left'],
10379 + 'capability' => 'edit_theme_options',
10380 + 'transport' => 'postMessage',
10381 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10382 +
10383 + ]
10384 + );
10385 +
10386 + $this->customizer->add_control(
10387 + new DimensionControl(
10388 + $this->customizer,
10389 + 'betterdocs_doc_single_related_docs_label_padding_left',
10390 + [
10391 + 'type' => 'betterdocs-dimension',
10392 + 'section' => 'betterdocs_single_docs_settings',
10393 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_left',
10394 + 'label' => __( 'Left', 'betterdocs' ),
10395 + 'priority' => 163,
10396 + 'input_attrs' => [
10397 + 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
10398 + ]
10399 + ]
10400 + )
10401 + );
10402 + }
10403 +
10404 + public function betterdocs_doc_single_related_docs_label_margin() {
10405 + $this->customizer->add_setting(
10406 + 'betterdocs_doc_single_related_docs_label_margin',
10407 + [
10408 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin'],
10409 + 'capability' => 'edit_theme_options',
10410 + 'transport' => 'postMessage',
10411 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10412 +
10413 + ]
10414 + );
10415 +
10416 + $this->customizer->add_control(
10417 + new TitleControl(
10418 + $this->customizer,
10419 + 'betterdocs_doc_single_related_docs_label_margin',
10420 + [
10421 + 'type' => 'betterdocs-title',
10422 + 'section' => 'betterdocs_single_docs_settings',
10423 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin',
10424 + 'label' => __( 'Label Margin', 'betterdocs' ),
10425 + 'priority' => 163,
10426 + 'input_attrs' => [
10427 + 'id' => 'betterdocs_doc_single_related_docs_label_margin',
10428 + 'class' => 'betterdocs-dimension'
10429 + ]
10430 + ]
10431 + )
10432 + );
10433 +
10434 + $this->customizer->add_setting(
10435 + 'betterdocs_doc_single_related_docs_label_margin_top',
10436 + [
10437 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_top'],
10438 + 'capability' => 'edit_theme_options',
10439 + 'transport' => 'postMessage',
10440 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10441 + ]
10442 + );
10443 +
10444 + $this->customizer->add_control(
10445 + new DimensionControl(
10446 + $this->customizer,
10447 + 'betterdocs_doc_single_related_docs_label_margin_top',
10448 + [
10449 + 'type' => 'betterdocs-dimension',
10450 + 'section' => 'betterdocs_single_docs_settings',
10451 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_top',
10452 + 'label' => __( 'Top', 'betterdocs' ),
10453 + 'priority' => 163,
10454 + 'input_attrs' => [
10455 + 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
10456 + ]
10457 + ]
10458 + )
10459 + );
10460 +
10461 + $this->customizer->add_setting(
10462 + 'betterdocs_doc_single_related_docs_label_margin_right',
10463 + [
10464 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_right'],
10465 + 'capability' => 'edit_theme_options',
10466 + 'transport' => 'postMessage',
10467 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10468 +
10469 + ]
10470 + );
10471 +
10472 + $this->customizer->add_control(
10473 + new DimensionControl(
10474 + $this->customizer,
10475 + 'betterdocs_doc_single_related_docs_label_margin_right',
10476 + [
10477 + 'type' => 'betterdocs-dimension',
10478 + 'section' => 'betterdocs_single_docs_settings',
10479 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_right',
10480 + 'label' => __( 'Right', 'betterdocs' ),
10481 + 'priority' => 163,
10482 + 'input_attrs' => [
10483 + 'class' => 'betterdocs_doc_single_related_docs_label_margin_right betterdocs-dimension'
10484 + ]
10485 + ]
10486 + )
10487 + );
10488 +
10489 + $this->customizer->add_setting(
10490 + 'betterdocs_doc_single_related_docs_label_margin_bottom',
10491 + [
10492 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_bottom'],
10493 + 'capability' => 'edit_theme_options',
10494 + 'transport' => 'postMessage',
10495 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10496 + ]
10497 + );
10498 +
10499 + $this->customizer->add_control(
10500 + new DimensionControl(
10501 + $this->customizer,
10502 + 'betterdocs_doc_single_related_docs_label_margin_bottom',
10503 + [
10504 + 'type' => 'betterdocs-dimension',
10505 + 'section' => 'betterdocs_single_docs_settings',
10506 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_bottom',
10507 + 'label' => __( 'Bottom', 'betterdocs' ),
10508 + 'priority' => 163,
10509 + 'input_attrs' => [
10510 + 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
10511 + ]
10512 + ]
10513 + )
10514 + );
10515 +
10516 + $this->customizer->add_setting(
10517 + 'betterdocs_doc_single_related_docs_label_margin_left',
10518 + [
10519 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_left'],
10520 + 'capability' => 'edit_theme_options',
10521 + 'transport' => 'postMessage',
10522 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10523 + ]
10524 + );
10525 +
10526 + $this->customizer->add_control(
10527 + new DimensionControl(
10528 + $this->customizer,
10529 + 'betterdocs_doc_single_related_docs_label_margin_left',
10530 + [
10531 + 'type' => 'betterdocs-dimension',
10532 + 'section' => 'betterdocs_single_docs_settings',
10533 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_left',
10534 + 'label' => __( 'Left', 'betterdocs' ),
10535 + 'priority' => 163,
10536 + 'input_attrs' => [
10537 + 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
10538 + ]
10539 + ]
10540 + )
10541 + );
10542 + }
10543 +
10544 + public function betterdocs_doc_related_docs_list_font_size() {
10545 + $this->customizer->add_setting(
10546 + 'betterdocs_doc_related_docs_list_font_size',
10547 + [
10548 + 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_size'],
10549 + 'capability' => 'edit_theme_options',
10550 + 'transport' => 'postMessage',
10551 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10552 +
10553 + ]
10554 + );
10555 +
10556 + $this->customizer->add_control(
10557 + new RangeValueControl(
10558 + $this->customizer,
10559 + 'betterdocs_doc_related_docs_list_font_size',
10560 + [
10561 + 'type' => 'betterdocs-range-value',
10562 + 'section' => 'betterdocs_single_docs_settings',
10563 + 'settings' => 'betterdocs_doc_related_docs_list_font_size',
10564 + 'label' => __( 'List Font Size', 'betterdocs' ),
10565 + 'priority' => 163,
10566 + 'input_attrs' => [
10567 + 'min' => 0,
10568 + 'max' => 50,
10569 + 'step' => 1,
10570 + 'suffix' => 'px' //optional suffix
10571 + ]
10572 + ]
10573 + )
10574 + );
10575 + }
10576 +
10577 + public function betterdocs_doc_related_docs_list_font_weight() {
10578 + $this->customizer->add_setting(
10579 + 'betterdocs_doc_related_docs_list_font_weight',
10580 + [
10581 + 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_weight'],
10582 + 'capability' => 'edit_theme_options',
10583 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
10584 + ]
10585 + );
10586 +
10587 + $this->customizer->add_control(
10588 + new WP_Customize_Control(
10589 + $this->customizer,
10590 + 'betterdocs_doc_related_docs_list_font_weight',
10591 + [
10592 + 'label' => __( 'List Font Weight', 'betterdocs' ),
10593 + 'section' => 'betterdocs_single_docs_settings',
10594 + 'settings' => 'betterdocs_doc_related_docs_list_font_weight',
10595 + 'type' => 'select',
10596 + 'choices' => [
10597 + 'normal' => 'Normal',
10598 + '100' => '100',
10599 + '200' => '200',
10600 + '300' => '300',
10601 + '400' => '400',
10602 + '500' => '500',
10603 + '600' => '600',
10604 + '700' => '700',
10605 + '800' => '800',
10606 + '900' => '900'
10607 + ],
10608 + 'priority' => 163
10609 + ]
10610 + )
10611 + );
10612 + }
10613 +
10614 +
10615 + public function betterdocs_doc_single_related_docs_list_color() {
10616 + $this->customizer->add_setting(
10617 + 'betterdocs_doc_single_related_docs_list_color',
10618 + [
10619 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_color'],
10620 + 'capability' => 'edit_theme_options',
10621 + 'transport' => 'postMessage',
10622 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10623 + ]
10624 + );
10625 +
10626 + $this->customizer->add_control(
10627 + new AlphaColorControl(
10628 + $this->customizer,
10629 + 'betterdocs_doc_single_related_docs_list_color',
10630 + [
10631 + 'label' => __( 'List Color', 'betterdocs' ),
10632 + 'section' => 'betterdocs_single_docs_settings',
10633 + 'settings' => 'betterdocs_doc_single_related_docs_list_color',
10634 + 'priority' => 163
10635 + ]
10636 + )
10637 + );
10638 + }
10639 +
10640 + public function betterdocs_doc_single_related_docs_list_background_color() {
10641 + $this->customizer->add_setting(
10642 + 'betterdocs_doc_single_related_docs_list_background_color',
10643 + [
10644 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_background_color'],
10645 + 'capability' => 'edit_theme_options',
10646 + 'transport' => 'postMessage',
10647 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10648 + ]
10649 + );
10650 +
10651 + $this->customizer->add_control(
10652 + new AlphaColorControl(
10653 + $this->customizer,
10654 + 'betterdocs_doc_single_related_docs_list_background_color',
10655 + [
10656 + 'label' => __( 'List Background Color', 'betterdocs' ),
10657 + 'section' => 'betterdocs_single_docs_settings',
10658 + 'settings' => 'betterdocs_doc_single_related_docs_list_background_color',
10659 + 'priority' => 163
10660 + ]
10661 + )
10662 + );
10663 + }
10664 +
10665 + public function betterdocs_doc_single_related_docs_list_padding() {
10666 + $this->customizer->add_setting(
10667 + 'betterdocs_doc_single_related_docs_list_padding',
10668 + [
10669 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding'],
10670 + 'capability' => 'edit_theme_options',
10671 + 'transport' => 'postMessage',
10672 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10673 +
10674 + ]
10675 + );
10676 +
10677 + $this->customizer->add_control(
10678 + new TitleControl(
10679 + $this->customizer,
10680 + 'betterdocs_doc_single_related_docs_list_padding',
10681 + [
10682 + 'type' => 'betterdocs-title',
10683 + 'section' => 'betterdocs_single_docs_settings',
10684 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding',
10685 + 'label' => __( 'List Padding', 'betterdocs' ),
10686 + 'priority' => 163,
10687 + 'input_attrs' => [
10688 + 'id' => 'betterdocs_doc_single_related_docs_list_padding',
10689 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
10690 + ]
10691 + ]
10692 + )
10693 + );
10694 +
10695 + $this->customizer->add_setting(
10696 + 'betterdocs_doc_single_related_docs_list_padding_top',
10697 + [
10698 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_top'],
10699 + 'capability' => 'edit_theme_options',
10700 + 'transport' => 'postMessage',
10701 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10702 + ]
10703 + );
10704 +
10705 + $this->customizer->add_control(
10706 + new DimensionControl(
10707 + $this->customizer,
10708 + 'betterdocs_doc_single_related_docs_list_padding_top',
10709 + [
10710 + 'type' => 'betterdocs-dimension',
10711 + 'section' => 'betterdocs_single_docs_settings',
10712 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_top',
10713 + 'label' => __( 'Top', 'betterdocs' ),
10714 + 'priority' => 163,
10715 + 'input_attrs' => [
10716 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
10717 + ]
10718 + ]
10719 + )
10720 + );
10721 +
10722 + $this->customizer->add_setting(
10723 + 'betterdocs_doc_single_related_docs_list_padding_right',
10724 + [
10725 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_right'],
10726 + 'capability' => 'edit_theme_options',
10727 + 'transport' => 'postMessage',
10728 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10729 +
10730 + ]
10731 + );
10732 +
10733 + $this->customizer->add_control(
10734 + new DimensionControl(
10735 + $this->customizer,
10736 + 'betterdocs_doc_single_related_docs_list_padding_right',
10737 + [
10738 + 'type' => 'betterdocs-dimension',
10739 + 'section' => 'betterdocs_single_docs_settings',
10740 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_right',
10741 + 'label' => __( 'Right', 'betterdocs' ),
10742 + 'priority' => 163,
10743 + 'input_attrs' => [
10744 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
10745 + ]
10746 + ]
10747 + )
10748 + );
10749 +
10750 + $this->customizer->add_setting(
10751 + 'betterdocs_doc_single_related_docs_list_padding_bottom',
10752 + [
10753 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_bottom'],
10754 + 'capability' => 'edit_theme_options',
10755 + 'transport' => 'postMessage',
10756 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10757 + ]
10758 + );
10759 +
10760 + $this->customizer->add_control(
10761 + new DimensionControl(
10762 + $this->customizer,
10763 + 'betterdocs_doc_single_related_docs_list_padding_bottom',
10764 + [
10765 + 'type' => 'betterdocs-dimension',
10766 + 'section' => 'betterdocs_single_docs_settings',
10767 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_bottom',
10768 + 'label' => __( 'Bottom', 'betterdocs' ),
10769 + 'priority' => 163,
10770 + 'input_attrs' => [
10771 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
10772 + ]
10773 + ]
10774 + )
10775 + );
10776 +
10777 + $this->customizer->add_setting(
10778 + 'betterdocs_doc_single_related_docs_list_padding_left',
10779 + [
10780 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_left'],
10781 + 'capability' => 'edit_theme_options',
10782 + 'transport' => 'postMessage',
10783 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10784 + ]
10785 + );
10786 +
10787 + $this->customizer->add_control(
10788 + new DimensionControl(
10789 + $this->customizer,
10790 + 'betterdocs_doc_single_related_docs_list_padding_left',
10791 + [
10792 + 'type' => 'betterdocs-dimension',
10793 + 'section' => 'betterdocs_single_docs_settings',
10794 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_left',
10795 + 'label' => __( 'Left', 'betterdocs' ),
10796 + 'priority' => 163,
10797 + 'input_attrs' => [
10798 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
10799 + ]
10800 + ]
10801 + )
10802 + );
10803 + }
10804 +
10805 + public function betterdocs_doc_single_related_docs_list_margin() {
10806 + $this->customizer->add_setting(
10807 + 'betterdocs_doc_single_related_docs_list_margin',
10808 + [
10809 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin'],
10810 + 'capability' => 'edit_theme_options',
10811 + 'transport' => 'postMessage',
10812 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10813 +
10814 + ]
10815 + );
10816 +
10817 + $this->customizer->add_control(
10818 + new TitleControl(
10819 + $this->customizer,
10820 + 'betterdocs_doc_single_related_docs_list_margin',
10821 + [
10822 + 'type' => 'betterdocs-title',
10823 + 'section' => 'betterdocs_single_docs_settings',
10824 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin',
10825 + 'label' => __( 'List Margin', 'betterdocs' ),
10826 + 'priority' => 163,
10827 + 'input_attrs' => [
10828 + 'id' => 'betterdocs_doc_single_related_docs_list_margin',
10829 + 'class' => 'betterdocs-dimension'
10830 + ]
10831 + ]
10832 + )
10833 + );
10834 +
10835 + $this->customizer->add_setting(
10836 + 'betterdocs_doc_single_related_docs_list_margin_top',
10837 + [
10838 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_top'],
10839 + 'capability' => 'edit_theme_options',
10840 + 'transport' => 'postMessage',
10841 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10842 + ]
10843 + );
10844 +
10845 + $this->customizer->add_control(
10846 + new DimensionControl(
10847 + $this->customizer,
10848 + 'betterdocs_doc_single_related_docs_list_margin_top',
10849 + [
10850 + 'type' => 'betterdocs-dimension',
10851 + 'section' => 'betterdocs_single_docs_settings',
10852 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_top',
10853 + 'label' => __( 'Top', 'betterdocs' ),
10854 + 'priority' => 163,
10855 + 'input_attrs' => [
10856 + 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
10857 + ]
10858 + ]
10859 + )
10860 + );
10861 +
10862 + $this->customizer->add_setting(
10863 + 'betterdocs_doc_single_related_docs_list_margin_right',
10864 + [
10865 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_right'],
10866 + 'capability' => 'edit_theme_options',
10867 + 'transport' => 'postMessage',
10868 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10869 +
10870 + ]
10871 + );
10872 +
10873 + $this->customizer->add_control(
10874 + new DimensionControl(
10875 + $this->customizer,
10876 + 'betterdocs_doc_single_related_docs_list_margin_right',
10877 + [
10878 + 'type' => 'betterdocs-dimension',
10879 + 'section' => 'betterdocs_single_docs_settings',
10880 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_right',
10881 + 'label' => __( 'Right', 'betterdocs' ),
10882 + 'priority' => 163,
10883 + 'input_attrs' => [
10884 + 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
10885 + ]
10886 + ]
10887 + )
10888 + );
10889 +
10890 + $this->customizer->add_setting(
10891 + 'betterdocs_doc_single_related_docs_list_margin_bottom',
10892 + [
10893 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_bottom'],
10894 + 'capability' => 'edit_theme_options',
10895 + 'transport' => 'postMessage',
10896 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10897 + ]
10898 + );
10899 +
10900 + $this->customizer->add_control(
10901 + new DimensionControl(
10902 + $this->customizer,
10903 + 'betterdocs_doc_single_related_docs_list_margin_bottom',
10904 + [
10905 + 'type' => 'betterdocs-dimension',
10906 + 'section' => 'betterdocs_single_docs_settings',
10907 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_bottom',
10908 + 'label' => __( 'Bottom', 'betterdocs' ),
10909 + 'priority' => 163,
10910 + 'input_attrs' => [
10911 + 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
10912 + ]
10913 + ]
10914 + )
10915 + );
10916 +
10917 + $this->customizer->add_setting(
10918 + 'betterdocs_doc_single_related_docs_list_margin_left',
10919 + [
10920 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_left'],
10921 + 'capability' => 'edit_theme_options',
10922 + 'transport' => 'postMessage',
10923 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10924 + ]
10925 + );
10926 +
10927 + $this->customizer->add_control(
10928 + new DimensionControl(
10929 + $this->customizer,
10930 + 'betterdocs_doc_single_related_docs_list_margin_left',
10931 + [
10932 + 'type' => 'betterdocs-dimension',
10933 + 'section' => 'betterdocs_single_docs_settings',
10934 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_left',
10935 + 'label' => __( 'Left', 'betterdocs' ),
10936 + 'priority' => 163,
10937 + 'input_attrs' => [
10938 + 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
10939 + ]
10940 + ]
10941 + )
10942 + );
10943 + }
10944 +
10945 + public function betterdocs_doc_single_related_docs_heading_layout_8_9() {
10946 + $this->customizer->add_setting(
10947 + 'betterdocs_doc_single_related_docs_heading_layout_8_9',
10948 + [
10949 + 'default' => 'betterdocs_doc_single_related_docs_heading_layout_8_9',
10950 + 'sanitize_callback' => 'esc_html'
10951 + ]
10952 + );
10953 +
10954 + $this->customizer->add_control(
10955 + new SeparatorControl(
10956 + $this->customizer,
10957 + 'betterdocs_doc_single_related_docs_heading_layout_8_9',
10958 + [
10959 + 'label' => __( 'Related Docs', 'betterdocs' ),
10960 + 'priority' => 163,
10961 + 'settings' => 'betterdocs_doc_single_related_docs_heading_layout_8_9',
10962 + 'section' => 'betterdocs_single_docs_settings'
10963 + ]
10964 + )
10965 + );
10966 + }
10967 +
10968 + public function betterdocs_doc_single_related_docs_content_bg_color_layout_8_9() {
10969 + $this->customizer->add_setting(
10970 + 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
10971 + [
10972 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_bg_color_layout_8_9'],
10973 + 'capability' => 'edit_theme_options',
10974 + 'transport' => 'postMessage',
10975 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10976 + ]
10977 + );
10978 +
10979 + $this->customizer->add_control(
10980 + new AlphaColorControl(
10981 + $this->customizer,
10982 + 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
10983 + [
10984 + 'label' => __( 'Content Background Color', 'betterdocs' ),
10985 + 'section' => 'betterdocs_single_docs_settings',
10986 + 'settings' => 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
10987 + 'priority' => 163
10988 + ]
10989 + )
10990 + );
10991 + }
10992 +
10993 + public function betterdocs_doc_single_related_docs_content_padding_layout_8_9() {
10994 + $this->customizer->add_setting(
10995 + 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
10996 + [
10997 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_layout_8_9'],
10998 + 'capability' => 'edit_theme_options',
10999 + 'transport' => 'postMessage',
11000 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11001 +
11002 + ]
11003 + );
11004 +
11005 + $this->customizer->add_control(
11006 + new TitleControl(
11007 + $this->customizer,
11008 + 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
11009 + [
11010 + 'type' => 'betterdocs-title',
11011 + 'section' => 'betterdocs_single_docs_settings',
11012 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
11013 + 'label' => __( 'Content Padding', 'betterdocs' ),
11014 + 'priority' => 163,
11015 + 'input_attrs' => [
11016 + 'id' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
11017 + 'class' => 'betterdocs-dimension'
11018 + ]
11019 + ]
11020 + )
11021 + );
11022 +
11023 + $this->customizer->add_setting(
11024 + 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9',
11025 + [
11026 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_top_layout_8_9'],
11027 + 'capability' => 'edit_theme_options',
11028 + 'transport' => 'postMessage',
11029 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11030 + ]
11031 + );
11032 +
11033 + $this->customizer->add_control(
11034 + new DimensionControl(
11035 + $this->customizer,
11036 + 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9',
11037 + [
11038 + 'type' => 'betterdocs-dimension',
11039 + 'section' => 'betterdocs_single_docs_settings',
11040 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9',
11041 + 'label' => __( 'Top', 'betterdocs' ),
11042 + 'priority' => 163,
11043 + 'input_attrs' => [
11044 + 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
11045 + ]
11046 + ]
11047 + )
11048 + );
11049 +
11050 + $this->customizer->add_setting(
11051 + 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9',
11052 + [
11053 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_right_layout_8_9'],
11054 + 'capability' => 'edit_theme_options',
11055 + 'transport' => 'postMessage',
11056 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11057 +
11058 + ]
11059 + );
11060 +
11061 + $this->customizer->add_control(
11062 + new DimensionControl(
11063 + $this->customizer,
11064 + 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9',
11065 + [
11066 + 'type' => 'betterdocs-dimension',
11067 + 'section' => 'betterdocs_single_docs_settings',
11068 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9',
11069 + 'label' => __( 'Right', 'betterdocs' ),
11070 + 'priority' => 163,
11071 + 'input_attrs' => [
11072 + 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
11073 + ]
11074 + ]
11075 + )
11076 + );
11077 +
11078 + $this->customizer->add_setting(
11079 + 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9',
11080 + [
11081 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9'],
11082 + 'capability' => 'edit_theme_options',
11083 + 'transport' => 'postMessage',
11084 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11085 +
11086 + ]
11087 + );
11088 +
11089 + $this->customizer->add_control(
11090 + new DimensionControl(
11091 + $this->customizer,
11092 + 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9',
11093 + [
11094 + 'type' => 'betterdocs-dimension',
11095 + 'section' => 'betterdocs_single_docs_settings',
11096 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9',
11097 + 'label' => __( 'Bottom', 'betterdocs' ),
11098 + 'priority' => 163,
11099 + 'input_attrs' => [
11100 + 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
11101 + ]
11102 + ]
11103 + )
11104 + );
11105 +
11106 + $this->customizer->add_setting(
11107 + 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9',
11108 + [
11109 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_left_layout_8_9'],
11110 + 'capability' => 'edit_theme_options',
11111 + 'transport' => 'postMessage',
11112 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11113 +
11114 + ]
11115 + );
11116 +
11117 + $this->customizer->add_control(
11118 + new DimensionControl(
11119 + $this->customizer,
11120 + 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9',
11121 + [
11122 + 'type' => 'betterdocs-dimension',
11123 + 'section' => 'betterdocs_single_docs_settings',
11124 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9',
11125 + 'label' => __( 'Left', 'betterdocs' ),
11126 + 'priority' => 163,
11127 + 'input_attrs' => [
11128 + 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
11129 + ]
11130 + ]
11131 + )
11132 + );
11133 + }
11134 +
11135 + public function betterdocs_doc_single_related_docs_content_margin_layout_8_9() {
11136 + $this->customizer->add_setting(
11137 + 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
11138 + [
11139 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_layout_8_9'],
11140 + 'capability' => 'edit_theme_options',
11141 + 'transport' => 'postMessage',
11142 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11143 +
11144 + ]
11145 + );
11146 +
11147 + $this->customizer->add_control(
11148 + new TitleControl(
11149 + $this->customizer,
11150 + 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
11151 + [
11152 + 'type' => 'betterdocs-title',
11153 + 'section' => 'betterdocs_single_docs_settings',
11154 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
11155 + 'label' => __( 'Content Margin', 'betterdocs' ),
11156 + 'priority' => 163,
11157 + 'input_attrs' => [
11158 + 'id' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
11159 + 'class' => 'betterdocs-dimension'
11160 + ]
11161 + ]
11162 + )
11163 + );
11164 +
11165 + $this->customizer->add_setting(
11166 + 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9',
11167 + [
11168 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_top_layout_8_9'],
11169 + 'capability' => 'edit_theme_options',
11170 + 'transport' => 'postMessage',
11171 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11172 + ]
11173 + );
11174 +
11175 + $this->customizer->add_control(
11176 + new DimensionControl(
11177 + $this->customizer,
11178 + 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9',
11179 + [
11180 + 'type' => 'betterdocs-dimension',
11181 + 'section' => 'betterdocs_single_docs_settings',
11182 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9',
11183 + 'label' => __( 'Top', 'betterdocs' ),
11184 + 'priority' => 163,
11185 + 'input_attrs' => [
11186 + 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
11187 + ]
11188 + ]
11189 + )
11190 + );
11191 +
11192 + $this->customizer->add_setting(
11193 + 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9',
11194 + [
11195 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_right_layout_8_9'],
11196 + 'capability' => 'edit_theme_options',
11197 + 'transport' => 'postMessage',
11198 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11199 +
11200 + ]
11201 + );
11202 +
11203 + $this->customizer->add_control(
11204 + new DimensionControl(
11205 + $this->customizer,
11206 + 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9',
11207 + [
11208 + 'type' => 'betterdocs-dimension',
11209 + 'section' => 'betterdocs_single_docs_settings',
11210 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9',
11211 + 'label' => __( 'Right', 'betterdocs' ),
11212 + 'priority' => 163,
11213 + 'input_attrs' => [
11214 + 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
11215 + ]
11216 + ]
11217 + )
11218 + );
11219 +
11220 + $this->customizer->add_setting(
11221 + 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9',
11222 + [
11223 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9'],
11224 + 'capability' => 'edit_theme_options',
11225 + 'transport' => 'postMessage',
11226 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11227 +
11228 + ]
11229 + );
11230 +
11231 + $this->customizer->add_control(
11232 + new DimensionControl(
11233 + $this->customizer,
11234 + 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9',
11235 + [
11236 + 'type' => 'betterdocs-dimension',
11237 + 'section' => 'betterdocs_single_docs_settings',
11238 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9',
11239 + 'label' => __( 'Bottom', 'betterdocs' ),
11240 + 'priority' => 163,
11241 + 'input_attrs' => [
11242 + 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
11243 + ]
11244 + ]
11245 + )
11246 + );
11247 +
11248 + $this->customizer->add_setting(
11249 + 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9',
11250 + [
11251 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_left_layout_8_9'],
11252 + 'capability' => 'edit_theme_options',
11253 + 'transport' => 'postMessage',
11254 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11255 +
11256 + ]
11257 + );
11258 +
11259 + $this->customizer->add_control(
11260 + new DimensionControl(
11261 + $this->customizer,
11262 + 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9',
11263 + [
11264 + 'type' => 'betterdocs-dimension',
11265 + 'section' => 'betterdocs_single_docs_settings',
11266 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9',
11267 + 'label' => __( 'Left', 'betterdocs' ),
11268 + 'priority' => 163,
11269 + 'input_attrs' => [
11270 + 'class' => 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9 betterdocs-dimension'
11271 + ]
11272 + ]
11273 + )
11274 + );
11275 + }
11276 +
11277 + public function betterdocs_doc_single_related_docs_label_color_layout_8_9() {
11278 + $this->customizer->add_setting(
11279 + 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
11280 + [
11281 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_color_layout_8_9'],
11282 + 'capability' => 'edit_theme_options',
11283 + 'transport' => 'postMessage',
11284 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
11285 + ]
11286 + );
11287 +
11288 + $this->customizer->add_control(
11289 + new AlphaColorControl(
11290 + $this->customizer,
11291 + 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
11292 + [
11293 + 'label' => __( 'Label Color', 'betterdocs' ),
11294 + 'section' => 'betterdocs_single_docs_settings',
11295 + 'settings' => 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
11296 + 'priority' => 163
11297 + ]
11298 + )
11299 + );
11300 + }
11301 +
11302 + public function betterdocs_doc_single_related_docs_label_padding_layout_8_9() {
11303 + $this->customizer->add_setting(
11304 + 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
11305 + [
11306 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_layout_8_9'],
11307 + 'capability' => 'edit_theme_options',
11308 + 'transport' => 'postMessage',
11309 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11310 +
11311 + ]
11312 + );
11313 +
11314 + $this->customizer->add_control(
11315 + new TitleControl(
11316 + $this->customizer,
11317 + 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
11318 + [
11319 + 'type' => 'betterdocs-title',
11320 + 'section' => 'betterdocs_single_docs_settings',
11321 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
11322 + 'label' => __( 'Label Padding', 'betterdocs' ),
11323 + 'priority' => 163,
11324 + 'input_attrs' => [
11325 + 'id' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
11326 + 'class' => 'betterdocs-dimension'
11327 + ]
11328 + ]
11329 + )
11330 + );
11331 +
11332 + $this->customizer->add_setting(
11333 + 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9',
11334 + [
11335 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_top_layout_8_9'],
11336 + 'capability' => 'edit_theme_options',
11337 + 'transport' => 'postMessage',
11338 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11339 + ]
11340 + );
11341 +
11342 + $this->customizer->add_control(
11343 + new DimensionControl(
11344 + $this->customizer,
11345 + 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9',
11346 + [
11347 + 'type' => 'betterdocs-dimension',
11348 + 'section' => 'betterdocs_single_docs_settings',
11349 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9',
11350 + 'label' => __( 'Top', 'betterdocs' ),
11351 + 'priority' => 163,
11352 + 'input_attrs' => [
11353 + 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
11354 + ]
11355 + ]
11356 + )
11357 + );
11358 +
11359 + $this->customizer->add_setting(
11360 + 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9',
11361 + [
11362 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_right_layout_8_9'],
11363 + 'capability' => 'edit_theme_options',
11364 + 'transport' => 'postMessage',
11365 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11366 +
11367 + ]
11368 + );
11369 +
11370 + $this->customizer->add_control(
11371 + new DimensionControl(
11372 + $this->customizer,
11373 + 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9',
11374 + [
11375 + 'type' => 'betterdocs-dimension',
11376 + 'section' => 'betterdocs_single_docs_settings',
11377 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9',
11378 + 'label' => __( 'Right', 'betterdocs' ),
11379 + 'priority' => 163,
11380 + 'input_attrs' => [
11381 + 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
11382 + ]
11383 + ]
11384 + )
11385 + );
11386 +
11387 + $this->customizer->add_setting(
11388 + 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9',
11389 + [
11390 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9'],
11391 + 'capability' => 'edit_theme_options',
11392 + 'transport' => 'postMessage',
11393 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11394 +
11395 + ]
11396 + );
11397 +
11398 + $this->customizer->add_control(
11399 + new DimensionControl(
11400 + $this->customizer,
11401 + 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9',
11402 + [
11403 + 'type' => 'betterdocs-dimension',
11404 + 'section' => 'betterdocs_single_docs_settings',
11405 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9',
11406 + 'label' => __( 'Bottom', 'betterdocs' ),
11407 + 'priority' => 163,
11408 + 'input_attrs' => [
11409 + 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
11410 + ]
11411 + ]
11412 + )
11413 + );
11414 +
11415 + $this->customizer->add_setting(
11416 + 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9',
11417 + [
11418 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_left_layout_8_9'],
11419 + 'capability' => 'edit_theme_options',
11420 + 'transport' => 'postMessage',
11421 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11422 +
11423 + ]
11424 + );
11425 +
11426 + $this->customizer->add_control(
11427 + new DimensionControl(
11428 + $this->customizer,
11429 + 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9',
11430 + [
11431 + 'type' => 'betterdocs-dimension',
11432 + 'section' => 'betterdocs_single_docs_settings',
11433 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9',
11434 + 'label' => __( 'Left', 'betterdocs' ),
11435 + 'priority' => 163,
11436 + 'input_attrs' => [
11437 + 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
11438 + ]
11439 + ]
11440 + )
11441 + );
11442 + }
11443 +
11444 + public function betterdocs_doc_single_related_docs_label_margin_layout_8_9() {
11445 + $this->customizer->add_setting(
11446 + 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
11447 + [
11448 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_layout_8_9'],
11449 + 'capability' => 'edit_theme_options',
11450 + 'transport' => 'postMessage',
11451 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11452 +
11453 + ]
11454 + );
11455 +
11456 + $this->customizer->add_control(
11457 + new TitleControl(
11458 + $this->customizer,
11459 + 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
11460 + [
11461 + 'type' => 'betterdocs-title',
11462 + 'section' => 'betterdocs_single_docs_settings',
11463 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
11464 + 'label' => __( 'Label Margin', 'betterdocs' ),
11465 + 'priority' => 163,
11466 + 'input_attrs' => [
11467 + 'id' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
11468 + 'class' => 'betterdocs-dimension'
11469 + ]
11470 + ]
11471 + )
11472 + );
11473 +
11474 + $this->customizer->add_setting(
11475 + 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9',
11476 + [
11477 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_top_layout_8_9'],
11478 + 'capability' => 'edit_theme_options',
11479 + 'transport' => 'postMessage',
11480 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11481 + ]
11482 + );
11483 +
11484 + $this->customizer->add_control(
11485 + new DimensionControl(
11486 + $this->customizer,
11487 + 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9',
11488 + [
11489 + 'type' => 'betterdocs-dimension',
11490 + 'section' => 'betterdocs_single_docs_settings',
11491 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9',
11492 + 'label' => __( 'Top', 'betterdocs' ),
11493 + 'priority' => 163,
11494 + 'input_attrs' => [
11495 + 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
11496 + ]
11497 + ]
11498 + )
11499 + );
11500 +
11501 + $this->customizer->add_setting(
11502 + 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9',
11503 + [
11504 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_right_layout_8_9'],
11505 + 'capability' => 'edit_theme_options',
11506 + 'transport' => 'postMessage',
11507 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11508 +
11509 + ]
11510 + );
11511 +
11512 + $this->customizer->add_control(
11513 + new DimensionControl(
11514 + $this->customizer,
11515 + 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9',
11516 + [
11517 + 'type' => 'betterdocs-dimension',
11518 + 'section' => 'betterdocs_single_docs_settings',
11519 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9',
11520 + 'label' => __( 'Right', 'betterdocs' ),
11521 + 'priority' => 163,
11522 + 'input_attrs' => [
11523 + 'class' => 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9 betterdocs-dimension'
11524 + ]
11525 + ]
11526 + )
11527 + );
11528 +
11529 + $this->customizer->add_setting(
11530 + 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9',
11531 + [
11532 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9'],
11533 + 'capability' => 'edit_theme_options',
11534 + 'transport' => 'postMessage',
11535 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11536 + ]
11537 + );
11538 +
11539 + $this->customizer->add_control(
11540 + new DimensionControl(
11541 + $this->customizer,
11542 + 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9',
11543 + [
11544 + 'type' => 'betterdocs-dimension',
11545 + 'section' => 'betterdocs_single_docs_settings',
11546 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9',
11547 + 'label' => __( 'Bottom', 'betterdocs' ),
11548 + 'priority' => 163,
11549 + 'input_attrs' => [
11550 + 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
11551 + ]
11552 + ]
11553 + )
11554 + );
11555 +
11556 + $this->customizer->add_setting(
11557 + 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9',
11558 + [
11559 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_left_layout_8_9'],
11560 + 'capability' => 'edit_theme_options',
11561 + 'transport' => 'postMessage',
11562 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11563 + ]
11564 + );
11565 +
11566 + $this->customizer->add_control(
11567 + new DimensionControl(
11568 + $this->customizer,
11569 + 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9',
11570 + [
11571 + 'type' => 'betterdocs-dimension',
11572 + 'section' => 'betterdocs_single_docs_settings',
11573 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9',
11574 + 'label' => __( 'Left', 'betterdocs' ),
11575 + 'priority' => 163,
11576 + 'input_attrs' => [
11577 + 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
11578 + ]
11579 + ]
11580 + )
11581 + );
11582 + }
11583 +
11584 + public function betterdocs_doc_related_docs_list_font_size_layout_8_9() {
11585 + $this->customizer->add_setting(
11586 + 'betterdocs_doc_related_docs_list_font_size_layout_8_9',
11587 + [
11588 + 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_size_layout_8_9'],
11589 + 'capability' => 'edit_theme_options',
11590 + 'transport' => 'postMessage',
11591 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11592 +
11593 + ]
11594 + );
11595 +
11596 + $this->customizer->add_control(
11597 + new RangeValueControl(
11598 + $this->customizer,
11599 + 'betterdocs_doc_related_docs_list_font_size_layout_8_9',
11600 + [
11601 + 'type' => 'betterdocs-range-value',
11602 + 'section' => 'betterdocs_single_docs_settings',
11603 + 'settings' => 'betterdocs_doc_related_docs_list_font_size_layout_8_9',
11604 + 'label' => __( 'List Font Size', 'betterdocs' ),
11605 + 'priority' => 163,
11606 + 'input_attrs' => [
11607 + 'min' => 0,
11608 + 'max' => 50,
11609 + 'step' => 1,
11610 + 'suffix' => 'px' //optional suffix
11611 + ]
11612 + ]
11613 + )
11614 + );
11615 + }
11616 +
11617 + public function betterdocs_doc_related_docs_list_font_weight_layout_8_9() {
11618 + $this->customizer->add_setting(
11619 + 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
11620 + [
11621 + 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_weight_layout_8_9'],
11622 + 'capability' => 'edit_theme_options',
11623 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
11624 + ]
11625 + );
11626 +
11627 + $this->customizer->add_control(
11628 + new WP_Customize_Control(
11629 + $this->customizer,
11630 + 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
11631 + [
11632 + 'label' => __( 'List Font Weight', 'betterdocs' ),
11633 + 'section' => 'betterdocs_single_docs_settings',
11634 + 'settings' => 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
11635 + 'type' => 'select',
11636 + 'choices' => [
11637 + 'normal' => 'Normal',
11638 + '100' => '100',
11639 + '200' => '200',
11640 + '300' => '300',
11641 + '400' => '400',
11642 + '500' => '500',
11643 + '600' => '600',
11644 + '700' => '700',
11645 + '800' => '800',
11646 + '900' => '900'
11647 + ],
11648 + 'priority' => 163
11649 + ]
11650 + )
11651 + );
11652 + }
11653 +
11654 +
11655 + public function betterdocs_doc_single_related_docs_list_color_layout_8_9() {
11656 + $this->customizer->add_setting(
11657 + 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
11658 + [
11659 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_color_layout_8_9'],
11660 + 'capability' => 'edit_theme_options',
11661 + 'transport' => 'postMessage',
11662 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
11663 + ]
11664 + );
11665 +
11666 + $this->customizer->add_control(
11667 + new AlphaColorControl(
11668 + $this->customizer,
11669 + 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
11670 + [
11671 + 'label' => __( 'List Color', 'betterdocs' ),
11672 + 'section' => 'betterdocs_single_docs_settings',
11673 + 'settings' => 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
11674 + 'priority' => 163
11675 + ]
11676 + )
11677 + );
11678 + }
11679 +
11680 + public function betterdocs_doc_single_related_docs_list_background_color_layout_8_9() {
11681 + $this->customizer->add_setting(
11682 + 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
11683 + [
11684 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_background_color_layout_8_9'],
11685 + 'capability' => 'edit_theme_options',
11686 + 'transport' => 'postMessage',
11687 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
11688 + ]
11689 + );
11690 +
11691 + $this->customizer->add_control(
11692 + new AlphaColorControl(
11693 + $this->customizer,
11694 + 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
11695 + [
11696 + 'label' => __( 'List Background Color', 'betterdocs' ),
11697 + 'section' => 'betterdocs_single_docs_settings',
11698 + 'settings' => 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
11699 + 'priority' => 163
11700 + ]
11701 + )
11702 + );
11703 + }
11704 +
11705 + public function betterdocs_doc_single_related_docs_list_padding_layout_8_9() {
11706 + $this->customizer->add_setting(
11707 + 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
11708 + [
11709 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_layout_8_9'],
11710 + 'capability' => 'edit_theme_options',
11711 + 'transport' => 'postMessage',
11712 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11713 +
11714 + ]
11715 + );
11716 +
11717 + $this->customizer->add_control(
11718 + new TitleControl(
11719 + $this->customizer,
11720 + 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
11721 + [
11722 + 'type' => 'betterdocs-title',
11723 + 'section' => 'betterdocs_single_docs_settings',
11724 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
11725 + 'label' => __( 'List Padding', 'betterdocs' ),
11726 + 'priority' => 163,
11727 + 'input_attrs' => [
11728 + 'id' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
11729 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
11730 + ]
11731 + ]
11732 + )
11733 + );
11734 +
11735 + $this->customizer->add_setting(
11736 + 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9',
11737 + [
11738 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_top_layout_8_9'],
11739 + 'capability' => 'edit_theme_options',
11740 + 'transport' => 'postMessage',
11741 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11742 + ]
11743 + );
11744 +
11745 + $this->customizer->add_control(
11746 + new DimensionControl(
11747 + $this->customizer,
11748 + 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9',
11749 + [
11750 + 'type' => 'betterdocs-dimension',
11751 + 'section' => 'betterdocs_single_docs_settings',
11752 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9',
11753 + 'label' => __( 'Top', 'betterdocs' ),
11754 + 'priority' => 163,
11755 + 'input_attrs' => [
11756 + 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
11757 + ]
11758 + ]
11759 + )
11760 + );
11761 +
11762 + $this->customizer->add_setting(
11763 + 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9',
11764 + [
11765 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_right_layout_8_9'],
11766 + 'capability' => 'edit_theme_options',
11767 + 'transport' => 'postMessage',
11768 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11769 +
11770 + ]
11771 + );
11772 +
11773 + $this->customizer->add_control(
11774 + new DimensionControl(
11775 + $this->customizer,
11776 + 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9',
11777 + [
11778 + 'type' => 'betterdocs-dimension',
11779 + 'section' => 'betterdocs_single_docs_settings',
11780 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9',
11781 + 'label' => __( 'Right', 'betterdocs' ),
11782 + 'priority' => 163,
11783 + 'input_attrs' => [
11784 + 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
11785 + ]
11786 + ]
11787 + )
11788 + );
11789 +
11790 + $this->customizer->add_setting(
11791 + 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9',
11792 + [
11793 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9'],
11794 + 'capability' => 'edit_theme_options',
11795 + 'transport' => 'postMessage',
11796 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11797 + ]
11798 + );
11799 +
11800 + $this->customizer->add_control(
11801 + new DimensionControl(
11802 + $this->customizer,
11803 + 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9',
11804 + [
11805 + 'type' => 'betterdocs-dimension',
11806 + 'section' => 'betterdocs_single_docs_settings',
11807 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9',
11808 + 'label' => __( 'Bottom', 'betterdocs' ),
11809 + 'priority' => 163,
11810 + 'input_attrs' => [
11811 + 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
11812 + ]
11813 + ]
11814 + )
11815 + );
11816 +
11817 + $this->customizer->add_setting(
11818 + 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9',
11819 + [
11820 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_left_layout_8_9'],
11821 + 'capability' => 'edit_theme_options',
11822 + 'transport' => 'postMessage',
11823 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11824 + ]
11825 + );
11826 +
11827 + $this->customizer->add_control(
11828 + new DimensionControl(
11829 + $this->customizer,
11830 + 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9',
11831 + [
11832 + 'type' => 'betterdocs-dimension',
11833 + 'section' => 'betterdocs_single_docs_settings',
11834 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9',
11835 + 'label' => __( 'Left', 'betterdocs' ),
11836 + 'priority' => 163,
11837 + 'input_attrs' => [
11838 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
11839 + ]
11840 + ]
11841 + )
11842 + );
11843 + }
11844 +
11845 + public function betterdocs_doc_single_related_docs_list_margin_layout_8_9() {
11846 + $this->customizer->add_setting(
11847 + 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
11848 + [
11849 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_layout_8_9'],
11850 + 'capability' => 'edit_theme_options',
11851 + 'transport' => 'postMessage',
11852 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11853 +
11854 + ]
11855 + );
11856 +
11857 + $this->customizer->add_control(
11858 + new TitleControl(
11859 + $this->customizer,
11860 + 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
11861 + [
11862 + 'type' => 'betterdocs-title',
11863 + 'section' => 'betterdocs_single_docs_settings',
11864 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
11865 + 'label' => __( 'List Margin', 'betterdocs' ),
11866 + 'priority' => 163,
11867 + 'input_attrs' => [
11868 + 'id' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
11869 + 'class' => 'betterdocs-dimension'
11870 + ]
11871 + ]
11872 + )
11873 + );
11874 +
11875 + $this->customizer->add_setting(
11876 + 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9',
11877 + [
11878 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_top_layout_8_9'],
11879 + 'capability' => 'edit_theme_options',
11880 + 'transport' => 'postMessage',
11881 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11882 + ]
11883 + );
11884 +
11885 + $this->customizer->add_control(
11886 + new DimensionControl(
11887 + $this->customizer,
11888 + 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9',
11889 + [
11890 + 'type' => 'betterdocs-dimension',
11891 + 'section' => 'betterdocs_single_docs_settings',
11892 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9',
11893 + 'label' => __( 'Top', 'betterdocs' ),
11894 + 'priority' => 163,
11895 + 'input_attrs' => [
11896 + 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
11897 + ]
11898 + ]
11899 + )
11900 + );
11901 +
11902 + $this->customizer->add_setting(
11903 + 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9',
11904 + [
11905 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_right_layout_8_9'],
11906 + 'capability' => 'edit_theme_options',
11907 + 'transport' => 'postMessage',
11908 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11909 +
11910 + ]
11911 + );
11912 +
11913 + $this->customizer->add_control(
11914 + new DimensionControl(
11915 + $this->customizer,
11916 + 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9',
11917 + [
11918 + 'type' => 'betterdocs-dimension',
11919 + 'section' => 'betterdocs_single_docs_settings',
11920 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9',
11921 + 'label' => __( 'Right', 'betterdocs' ),
11922 + 'priority' => 163,
11923 + 'input_attrs' => [
11924 + 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
11925 + ]
11926 + ]
11927 + )
11928 + );
11929 +
11930 + $this->customizer->add_setting(
11931 + 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9',
11932 + [
11933 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9'],
11934 + 'capability' => 'edit_theme_options',
11935 + 'transport' => 'postMessage',
11936 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11937 + ]
11938 + );
11939 +
11940 + $this->customizer->add_control(
11941 + new DimensionControl(
11942 + $this->customizer,
11943 + 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9',
11944 + [
11945 + 'type' => 'betterdocs-dimension',
11946 + 'section' => 'betterdocs_single_docs_settings',
11947 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9',
11948 + 'label' => __( 'Bottom', 'betterdocs' ),
11949 + 'priority' => 163,
11950 + 'input_attrs' => [
11951 + 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
11952 + ]
11953 + ]
11954 + )
11955 + );
11956 +
11957 + $this->customizer->add_setting(
11958 + 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9',
11959 + [
11960 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_left_layout_8_9'],
11961 + 'capability' => 'edit_theme_options',
11962 + 'transport' => 'postMessage',
11963 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11964 + ]
11965 + );
11966 +
11967 + $this->customizer->add_control(
11968 + new DimensionControl(
11969 + $this->customizer,
11970 + 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9',
11971 + [
11972 + 'type' => 'betterdocs-dimension',
11973 + 'section' => 'betterdocs_single_docs_settings',
11974 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9',
11975 + 'label' => __( 'Left', 'betterdocs' ),
11976 + 'priority' => 163,
11977 + 'input_attrs' => [
11978 + 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
11979 + ]
11980 + ]
11981 + )
11982 + );
11983 + }
3985 11984 }