PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.8.9
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.8.9
4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 All 202 releases
← All changes | includes/Admin/Customizer/Sections/SingleDoc.php +11076 -3529 3.4.2 → 3.8.9 View file →
@@ -14,3972 +14,11519 @@
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-1' => [
63 + 'label' => __( 'Classic Layout', 'betterdocs' ),
64 + 'image' => $this->assets->icon( 'customizer/single/layout-1.png', true )
65 + ],
66 + 'layout-4' => [
67 + 'label' => __( 'Abstract Layout', 'betterdocs' ),
68 + 'image' => $this->assets->icon( 'customizer/single/layout-4.png', true ),
69 + 'pro' => false
70 + ],
71 + 'layout-5' => [
72 + 'label' => __( 'Modern Layout', 'betterdocs' ),
73 + 'image' => $this->assets->icon( 'customizer/single/layout-5.png', true ),
74 + 'pro' => false
75 + ],
76 + 'layout-2' => [
77 + 'label' => __( 'Minimalist Layout', 'betterdocs' ),
78 + 'image' => $this->assets->icon( 'customizer/single/layout-2.png', true ),
79 + 'pro' => true,
80 + 'url' => 'https://betterdocs.co/upgrade'
81 + ],
82 + 'layout-3' => [
83 + 'label' => __( 'Artisan Layout', 'betterdocs' ),
84 + 'image' => $this->assets->icon( 'customizer/single/layout-3.png', true ),
85 + 'pro' => true,
86 + 'url' => 'https://betterdocs.co/upgrade'
87 + ],
88 + 'layout-6' => [
89 + 'label' => __( 'Bohemian Layout', 'betterdocs' ),
90 + 'image' => $this->assets->icon( 'customizer/single/layout-6.png', true ),
91 + 'pro' => true,
92 + 'url' => 'https://betterdocs.co/upgrade'
93 + ],
94 + ];
117 95
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 - ] );
96 + if ( $encyclopeia_suorce == 'docs' ) {
97 + $choices['layout-7'] = [
98 + 'label' => __( 'Encyclopedia Layout', 'betterdocs' ),
99 + 'image' => $this->assets->icon( 'customizer/encyclopedia/layout-7.png', true ),
100 + 'pro' => true,
101 + 'url' => 'https://betterdocs.co/upgrade'
102 + ];
103 + }
124 104
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 - }
105 + $this->customizer->add_control(
106 + new RadioImageControl(
107 + $this->customizer,
108 + 'betterdocs_single_layout_select',
109 + [
110 + 'type' => 'betterdocs-radio-image',
111 + 'settings' => 'betterdocs_single_layout_select',
112 + 'section' => 'betterdocs_single_docs_settings',
113 + 'label' => __( 'Select Layout', 'betterdocs' ),
114 + 'priority' => 102,
115 + 'choices' => apply_filters( 'betterdocs_single_layout_select_choices', $choices )
116 + ]
117 + )
118 + );
119 + }
137 120
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']
121 + public function doc_single_content_area_bg_color() {
122 + $this->customizer->add_setting(
123 + 'betterdocs_doc_single_content_area_bg_color',
124 + [
125 + 'default' => $this->defaults['betterdocs_doc_single_content_area_bg_color'],
126 + 'capability' => 'edit_theme_options',
127 + 'transport' => 'postMessage',
128 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
129 + ]
130 + );
144 131
145 - ] );
132 + $this->customizer->add_control(
133 + new AlphaColorControl(
134 + $this->customizer,
135 + 'betterdocs_doc_single_content_area_bg_color',
136 + [
137 + 'label' => __( 'Content Area Background Color', 'betterdocs' ),
138 + 'section' => 'betterdocs_single_docs_settings',
139 + 'settings' => 'betterdocs_doc_single_content_area_bg_color',
140 + 'priority' => 103
141 + ]
142 + )
143 + );
144 + }
146 145
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 - }
146 + public function doc_single_content_area_bg_image() {
147 + $this->customizer->add_setting(
148 + 'betterdocs_doc_single_content_area_bg_image',
149 + [
150 + 'default' => $this->defaults['betterdocs_doc_single_content_area_bg_image'],
151 + 'capability' => 'edit_theme_options',
152 + 'transport' => 'postMessage'
153 + ]
154 + );
161 155
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']
156 + $this->customizer->add_control(
157 + new WP_Customize_Image_Control(
158 + $this->customizer,
159 + 'betterdocs_doc_single_content_area_bg_image',
160 + [
161 + 'label' => __( 'Background Image', 'betterdocs' ),
162 + 'section' => 'betterdocs_single_docs_settings',
163 + 'settings' => 'betterdocs_doc_single_content_area_bg_image',
164 + 'priority' => 103
165 + ]
166 + )
167 + );
168 + }
168 169
169 - ] );
170 + public function doc_single_content_bg_property() {
171 + $this->customizer->add_setting(
172 + 'betterdocs_doc_single_content_bg_property',
173 + [
174 + 'default' => $this->defaults['betterdocs_doc_single_content_bg_property'],
175 + 'capability' => 'edit_theme_options',
176 + 'transport' => 'postMessage',
177 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
170 178
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 - }
179 + ]
180 + );
192 181
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 - ] );
182 + $this->customizer->add_control(
183 + new TitleControl(
184 + $this->customizer,
185 + 'betterdocs_doc_single_content_bg_property',
186 + [
187 + 'type' => 'betterdocs-title',
188 + 'section' => 'betterdocs_single_docs_settings',
189 + 'settings' => 'betterdocs_doc_single_content_bg_property',
190 + 'priority' => 103,
191 + 'label' => __( 'Background Property', 'betterdocs' ),
192 + 'input_attrs' => [
193 + 'id' => 'betterdocs_doc_single_content_bg_property',
194 + 'class' => 'betterdocs-select'
195 + ]
196 + ]
197 + )
198 + );
199 + }
200 200
201 - $this->customizer->add_control( new SelectControl(
202 - $this->customizer, 'betterdocs_doc_single_content_bg_property_repeat', [
203 - 'type' => 'betterdocs-select',
204 - 'section' => 'betterdocs_single_docs_settings',
205 - 'settings' => 'betterdocs_doc_single_content_bg_property_repeat',
206 - 'priority' => 103,
207 - 'label' => __( 'Repeat', 'betterdocs' ),
208 - 'input_attrs' => [
209 - 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
210 - ],
211 - 'choices' => [
212 - 'no-repeat' => __( 'no-repeat', 'betterdocs' ),
213 - 'initial' => __( 'initial', 'betterdocs' ),
214 - 'inherit' => __( 'inherit', 'betterdocs' ),
215 - 'repeat' => __( 'repeat', 'betterdocs' ),
216 - 'repeat-x' => __( 'repeat-x', 'betterdocs' ),
217 - 'repeat-y' => __( 'repeat-y', 'betterdocs' )
218 - ]
219 - ] )
220 - );
221 - }
201 + public function doc_single_content_bg_property_size() {
202 + $this->customizer->add_setting(
203 + 'betterdocs_doc_single_content_bg_property_size',
204 + [
205 + 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_size'],
206 + 'capability' => 'edit_theme_options',
207 + 'transport' => 'postMessage',
208 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
222 209
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']
210 + ]
211 + );
229 212
230 - ] );
213 + $this->customizer->add_control(
214 + new SelectControl(
215 + $this->customizer,
216 + 'betterdocs_doc_single_content_bg_property_size',
217 + [
218 + 'type' => 'betterdocs-select',
219 + 'section' => 'betterdocs_single_docs_settings',
220 + 'settings' => 'betterdocs_doc_single_content_bg_property_size',
221 + 'priority' => 103,
222 + 'label' => __( 'Size', 'betterdocs' ),
223 + 'input_attrs' => [
224 + 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
225 + ],
226 + 'choices' => [
227 + 'auto' => __( 'auto', 'betterdocs' ),
228 + 'length' => __( 'length', 'betterdocs' ),
229 + 'cover' => __( 'cover', 'betterdocs' ),
230 + 'contain' => __( 'contain', 'betterdocs' ),
231 + 'initial' => __( 'initial', 'betterdocs' ),
232 + 'inherit' => __( 'inherit', 'betterdocs' )
233 + ]
234 + ]
235 + )
236 + );
237 + }
231 238
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 - }
239 + public function doc_single_content_bg_property_repeat() {
240 + $this->customizer->add_setting(
241 + 'betterdocs_doc_single_content_bg_property_repeat',
242 + [
243 + 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_repeat'],
244 + 'capability' => 'edit_theme_options',
245 + 'transport' => 'postMessage',
246 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
247 + ]
248 + );
252 249
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'
250 + $this->customizer->add_control(
251 + new SelectControl(
252 + $this->customizer,
253 + 'betterdocs_doc_single_content_bg_property_repeat',
254 + [
255 + 'type' => 'betterdocs-select',
256 + 'section' => 'betterdocs_single_docs_settings',
257 + 'settings' => 'betterdocs_doc_single_content_bg_property_repeat',
258 + 'priority' => 103,
259 + 'label' => __( 'Repeat', 'betterdocs' ),
260 + 'input_attrs' => [
261 + 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
262 + ],
263 + 'choices' => [
264 + 'no-repeat' => __( 'no-repeat', 'betterdocs' ),
265 + 'initial' => __( 'initial', 'betterdocs' ),
266 + 'inherit' => __( 'inherit', 'betterdocs' ),
267 + 'repeat' => __( 'repeat', 'betterdocs' ),
268 + 'repeat-x' => __( 'repeat-x', 'betterdocs' ),
269 + 'repeat-y' => __( 'repeat-y', 'betterdocs' )
270 + ]
271 + ]
272 + )
273 + );
274 + }
259 275
260 - ] );
276 + public function doc_single_content_bg_property_attachment() {
277 + $this->customizer->add_setting(
278 + 'betterdocs_doc_single_content_bg_property_attachment',
279 + [
280 + 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_attachment'],
281 + 'capability' => 'edit_theme_options',
282 + 'transport' => 'postMessage',
283 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
261 284
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 - }
285 + ]
286 + );
286 287
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']
288 + $this->customizer->add_control(
289 + new SelectControl(
290 + $this->customizer,
291 + 'betterdocs_doc_single_content_bg_property_attachment',
292 + [
293 + 'type' => 'betterdocs-select',
294 + 'section' => 'betterdocs_single_docs_settings',
295 + 'settings' => 'betterdocs_doc_single_content_bg_property_attachment',
296 + 'priority' => 103,
297 + 'label' => __( 'Attachment', 'betterdocs' ),
298 + 'input_attrs' => [
299 + 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
300 + ],
301 + 'choices' => [
302 + 'initial' => __( 'initial', 'betterdocs' ),
303 + 'inherit' => __( 'inherit', 'betterdocs' ),
304 + 'scroll' => __( 'scroll', 'betterdocs' ),
305 + 'fixed' => __( 'fixed', 'betterdocs' ),
306 + 'local' => __( 'local', 'betterdocs' )
307 + ]
308 + ]
309 + )
310 + );
311 + }
293 312
294 - ] );
313 + public function doc_single_content_bg_property_position() {
314 + $this->customizer->add_setting(
315 + 'betterdocs_doc_single_content_bg_property_position',
316 + [
317 + 'default' => $this->defaults['betterdocs_doc_single_content_bg_property_position'],
318 + 'capability' => 'edit_theme_options',
319 + 'transport' => 'postMessage',
320 + 'sanitize_callback' => 'esc_html'
295 321
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 - );
322 + ]
323 + );
309 324
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 - ] );
325 + $this->customizer->add_control(
326 + new SelectControl(
327 + $this->customizer,
328 + 'betterdocs_doc_single_content_bg_property_position',
329 + [
330 + 'type' => 'betterdocs-select',
331 + 'section' => 'betterdocs_single_docs_settings',
332 + 'settings' => 'betterdocs_doc_single_content_bg_property_position',
333 + 'priority' => 103,
334 + 'label' => __( 'Position', 'betterdocs' ),
335 + 'input_attrs' => [
336 + 'class' => 'betterdocs_doc_single_content_bg_property betterdocs-select'
337 + ],
338 + 'choices' => [
339 + 'left top' => __( 'left top', 'betterdocs' ),
340 + 'left center' => __( 'left center', 'betterdocs' ),
341 + 'left bottom' => __( 'left bottom', 'betterdocs' ),
342 + 'right top' => __( 'right top', 'betterdocs' ),
343 + 'right center' => __( 'right center', 'betterdocs' ),
344 + 'right bottom' => __( 'right bottom', 'betterdocs' ),
345 + 'center top' => __( 'center top', 'betterdocs' ),
346 + 'center center' => __( 'center center', 'betterdocs' ),
347 + 'center bottom' => __( 'center bottom', 'betterdocs' )
348 + ]
349 + ]
350 + )
351 + );
352 + }
316 353
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 - );
354 + public function doc_single_content_area_padding() {
355 + $this->customizer->add_setting(
356 + 'betterdocs_doc_single_content_area_padding',
357 + [
358 + 'default' => $this->defaults['betterdocs_doc_single_content_area_padding'],
359 + 'capability' => 'edit_theme_options',
360 + 'transport' => 'postMessage',
361 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
329 362
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']
363 + ]
364 + );
335 365
336 - ] );
366 + $this->customizer->add_control(
367 + new TitleControl(
368 + $this->customizer,
369 + 'betterdocs_doc_single_content_area_padding',
370 + [
371 + 'type' => 'betterdocs-title',
372 + 'section' => 'betterdocs_single_docs_settings',
373 + 'settings' => 'betterdocs_doc_single_content_area_padding',
374 + 'label' => __( 'Content Area Padding', 'betterdocs' ),
375 + 'priority' => 104,
376 + 'input_attrs' => [
377 + 'id' => 'betterdocs_doc_single_content_area_padding',
378 + 'class' => 'betterdocs-dimension'
379 + ]
380 + ]
381 + )
382 + );
337 383
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 - );
384 + $this->customizer->add_setting(
385 + 'betterdocs_doc_single_content_area_padding_top',
386 + [
387 + 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_top'],
388 + 'capability' => 'edit_theme_options',
389 + 'transport' => 'postMessage',
390 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
391 + ]
392 + );
350 393
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']
394 + $this->customizer->add_control(
395 + new DimensionControl(
396 + $this->customizer,
397 + 'betterdocs_doc_single_content_area_padding_top',
398 + [
399 + 'type' => 'betterdocs-dimension',
400 + 'section' => 'betterdocs_single_docs_settings',
401 + 'settings' => 'betterdocs_doc_single_content_area_padding_top',
402 + 'label' => __( 'Top', 'betterdocs' ),
403 + 'priority' => 104,
404 + 'input_attrs' => [
405 + 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
406 + ]
407 + ]
408 + )
409 + );
356 410
357 - ] );
411 + $this->customizer->add_setting(
412 + 'betterdocs_doc_single_content_area_padding_right',
413 + [
414 + 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_right'],
415 + 'capability' => 'edit_theme_options',
416 + 'transport' => 'postMessage',
417 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
358 418
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 - );
419 + ]
420 + );
371 421
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']
422 + $this->customizer->add_control(
423 + new DimensionControl(
424 + $this->customizer,
425 + 'betterdocs_doc_single_content_area_padding_right',
426 + [
427 + 'type' => 'betterdocs-dimension',
428 + 'section' => 'betterdocs_single_docs_settings',
429 + 'settings' => 'betterdocs_doc_single_content_area_padding_right',
430 + 'label' => __( 'Right', 'betterdocs' ),
431 + 'priority' => 104,
432 + 'input_attrs' => [
433 + 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
434 + ]
435 + ]
436 + )
437 + );
377 438
378 - ] );
439 + $this->customizer->add_setting(
440 + 'betterdocs_doc_single_content_area_padding_bottom',
441 + [
442 + 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_bottom'],
443 + 'capability' => 'edit_theme_options',
444 + 'transport' => 'postMessage',
445 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
379 446
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 - }
447 + ]
448 + );
393 449
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']
450 + $this->customizer->add_control(
451 + new DimensionControl(
452 + $this->customizer,
453 + 'betterdocs_doc_single_content_area_padding_bottom',
454 + [
455 + 'type' => 'betterdocs-dimension',
456 + 'section' => 'betterdocs_single_docs_settings',
457 + 'settings' => 'betterdocs_doc_single_content_area_padding_bottom',
458 + 'label' => __( 'Bottom', 'betterdocs' ),
459 + 'priority' => 104,
460 + 'input_attrs' => [
461 + 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
462 + ]
463 + ]
464 + )
465 + );
400 466
401 - ] );
467 + $this->customizer->add_setting(
468 + 'betterdocs_doc_single_content_area_padding_left',
469 + [
470 + 'default' => $this->defaults['betterdocs_doc_single_content_area_padding_left'],
471 + 'capability' => 'edit_theme_options',
472 + 'transport' => 'postMessage',
473 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
402 474
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 - );
475 + ]
476 + );
416 477
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 - ] );
478 + $this->customizer->add_control(
479 + new DimensionControl(
480 + $this->customizer,
481 + 'betterdocs_doc_single_content_area_padding_left',
482 + [
483 + 'type' => 'betterdocs-dimension',
484 + 'section' => 'betterdocs_single_docs_settings',
485 + 'settings' => 'betterdocs_doc_single_content_area_padding_left',
486 + 'label' => __( 'Left', 'betterdocs' ),
487 + 'priority' => 104,
488 + 'input_attrs' => [
489 + 'class' => 'betterdocs_doc_single_content_area_padding betterdocs-dimension'
490 + ]
491 + ]
492 + )
493 + );
494 + }
423 495
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 - );
496 + public function doc_single_post_content_padding() {
497 + $this->customizer->add_setting(
498 + 'betterdocs_doc_single_post_content_padding',
499 + [
500 + 'default' => $this->defaults['betterdocs_doc_single_post_content_padding'],
501 + 'capability' => 'edit_theme_options',
502 + 'transport' => 'postMessage',
503 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
436 504
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']
505 + ]
506 + );
442 507
443 - ] );
508 + $this->customizer->add_control(
509 + new TitleControl(
510 + $this->customizer,
511 + 'betterdocs_doc_single_post_content_padding',
512 + [
513 + 'type' => 'betterdocs-title',
514 + 'section' => 'betterdocs_single_docs_settings',
515 + 'settings' => 'betterdocs_doc_single_post_content_padding',
516 + 'label' => __( 'Doc Content Padding', 'betterdocs' ),
517 + 'priority' => 109,
518 + 'input_attrs' => [
519 + 'id' => 'betterdocs_doc_single_post_content_padding',
520 + 'class' => 'betterdocs-dimension'
521 + ]
522 + ]
523 + )
524 + );
444 525
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 - );
526 + $this->customizer->add_setting(
527 + 'betterdocs_doc_single_post_content_padding_top',
528 + [
529 + 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_top'],
530 + 'capability' => 'edit_theme_options',
531 + 'transport' => 'postMessage',
532 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
533 + ]
534 + );
457 535
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']
536 + $this->customizer->add_control(
537 + new DimensionControl(
538 + $this->customizer,
539 + 'betterdocs_doc_single_post_content_padding_top',
540 + [
541 + 'type' => 'betterdocs-dimension',
542 + 'section' => 'betterdocs_single_docs_settings',
543 + 'settings' => 'betterdocs_doc_single_post_content_padding_top',
544 + 'label' => __( 'Top', 'betterdocs' ),
545 + 'priority' => 109,
546 + 'input_attrs' => [
547 + 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
548 + ]
549 + ]
550 + )
551 + );
463 552
464 - ] );
553 + $this->customizer->add_setting(
554 + 'betterdocs_doc_single_post_content_padding_right',
555 + [
556 + 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_right'],
557 + 'capability' => 'edit_theme_options',
558 + 'transport' => 'postMessage',
559 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
465 560
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 - );
561 + ]
562 + );
478 563
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']
564 + $this->customizer->add_control(
565 + new DimensionControl(
566 + $this->customizer,
567 + 'betterdocs_doc_single_post_content_padding_right',
568 + [
569 + 'type' => 'betterdocs-dimension',
570 + 'section' => 'betterdocs_single_docs_settings',
571 + 'settings' => 'betterdocs_doc_single_post_content_padding_right',
572 + 'label' => __( 'Right', 'betterdocs' ),
573 + 'priority' => 109,
574 + 'input_attrs' => [
575 + 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
576 + ]
577 + ]
578 + )
579 + );
484 580
485 - ] );
581 + $this->customizer->add_setting(
582 + 'betterdocs_doc_single_post_content_padding_bottom',
583 + [
584 + 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_bottom'],
585 + 'capability' => 'edit_theme_options',
586 + 'transport' => 'postMessage',
587 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
486 588
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 - }
589 + ]
590 + );
500 591
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']
592 + $this->customizer->add_control(
593 + new DimensionControl(
594 + $this->customizer,
595 + 'betterdocs_doc_single_post_content_padding_bottom',
596 + [
597 + 'type' => 'betterdocs-dimension',
598 + 'section' => 'betterdocs_single_docs_settings',
599 + 'settings' => 'betterdocs_doc_single_post_content_padding_bottom',
600 + 'label' => __( 'Bottom', 'betterdocs' ),
601 + 'priority' => 109,
602 + 'input_attrs' => [
603 + 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
604 + ]
605 + ]
606 + )
607 + );
507 608
508 - ] );
609 + $this->customizer->add_setting(
610 + 'betterdocs_doc_single_post_content_padding_left',
611 + [
612 + 'default' => $this->defaults['betterdocs_doc_single_post_content_padding_left'],
613 + 'capability' => 'edit_theme_options',
614 + 'transport' => 'postMessage',
615 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
509 616
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 - );
617 + ]
618 + );
523 619
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 - ] );
620 + $this->customizer->add_control(
621 + new DimensionControl(
622 + $this->customizer,
623 + 'betterdocs_doc_single_post_content_padding_left',
624 + [
625 + 'type' => 'betterdocs-dimension',
626 + 'section' => 'betterdocs_single_docs_settings',
627 + 'settings' => 'betterdocs_doc_single_post_content_padding_left',
628 + 'label' => __( 'Left', 'betterdocs' ),
629 + 'priority' => 109,
630 + 'input_attrs' => [
631 + 'class' => 'betterdocs_doc_single_post_content_padding betterdocs-dimension'
632 + ]
633 + ]
634 + )
635 + );
636 + }
530 637
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 - );
638 + public function doc_single_2_post_content_padding() {
639 + $this->customizer->add_setting(
640 + 'betterdocs_doc_single_2_post_content_padding',
641 + [
642 + 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding'],
643 + 'capability' => 'edit_theme_options',
644 + 'transport' => 'postMessage',
645 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
543 646
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']
647 + ]
648 + );
549 649
550 - ] );
650 + $this->customizer->add_control(
651 + new TitleControl(
652 + $this->customizer,
653 + 'betterdocs_doc_single_2_post_content_padding',
654 + [
655 + 'type' => 'betterdocs-title',
656 + 'section' => 'betterdocs_single_docs_settings',
657 + 'settings' => 'betterdocs_doc_single_2_post_content_padding',
658 + 'label' => __( 'Post Content Padding', 'betterdocs' ),
659 + 'priority' => 114,
660 + 'input_attrs' => [
661 + 'id' => 'betterdocs_doc_single_2_post_content_padding',
662 + 'class' => 'betterdocs-dimension'
663 + ]
664 + ]
665 + )
666 + );
551 667
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 - );
668 + $this->customizer->add_setting(
669 + 'betterdocs_doc_single_2_post_content_padding_top',
670 + [
671 + 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_top'],
672 + 'capability' => 'edit_theme_options',
673 + 'transport' => 'postMessage',
674 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
675 + ]
676 + );
564 677
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']
678 + $this->customizer->add_control(
679 + new DimensionControl(
680 + $this->customizer,
681 + 'betterdocs_doc_single_2_post_content_padding_top',
682 + [
683 + 'type' => 'betterdocs-dimension',
684 + 'section' => 'betterdocs_single_docs_settings',
685 + 'settings' => 'betterdocs_doc_single_2_post_content_padding_top',
686 + 'label' => __( 'Top', 'betterdocs' ),
687 + 'priority' => 114,
688 + 'input_attrs' => [
689 + 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
690 + ]
691 + ]
692 + )
693 + );
570 694
571 - ] );
695 + $this->customizer->add_setting(
696 + 'betterdocs_doc_single_2_post_content_padding_right',
697 + [
698 + 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_right'],
699 + 'capability' => 'edit_theme_options',
700 + 'transport' => 'postMessage',
701 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
572 702
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 - );
703 + ]
704 + );
585 705
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']
706 + $this->customizer->add_control(
707 + new DimensionControl(
708 + $this->customizer,
709 + 'betterdocs_doc_single_2_post_content_padding_right',
710 + [
711 + 'type' => 'betterdocs-dimension',
712 + 'section' => 'betterdocs_single_docs_settings',
713 + 'settings' => 'betterdocs_doc_single_2_post_content_padding_right',
714 + 'label' => __( 'Right', 'betterdocs' ),
715 + 'priority' => 114,
716 + 'input_attrs' => [
717 + 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
718 + ]
719 + ]
720 + )
721 + );
591 722
592 - ] );
723 + $this->customizer->add_setting(
724 + 'betterdocs_doc_single_2_post_content_padding_bottom',
725 + [
726 + 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_bottom'],
727 + 'capability' => 'edit_theme_options',
728 + 'transport' => 'postMessage',
729 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
593 730
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 - }
731 + ]
732 + );
607 733
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']
734 + $this->customizer->add_control(
735 + new DimensionControl(
736 + $this->customizer,
737 + 'betterdocs_doc_single_2_post_content_padding_bottom',
738 + [
739 + 'type' => 'betterdocs-dimension',
740 + 'section' => 'betterdocs_single_docs_settings',
741 + 'settings' => 'betterdocs_doc_single_2_post_content_padding_bottom',
742 + 'label' => __( 'Bottom', 'betterdocs' ),
743 + 'priority' => 114,
744 + 'input_attrs' => [
745 + 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
746 + ]
747 + ]
748 + )
749 + );
614 750
615 - ] );
751 + $this->customizer->add_setting(
752 + 'betterdocs_doc_single_2_post_content_padding_left',
753 + [
754 + 'default' => $this->defaults['betterdocs_doc_single_2_post_content_padding_left'],
755 + 'capability' => 'edit_theme_options',
756 + 'transport' => 'postMessage',
757 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
616 758
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 - );
759 + ]
760 + );
630 761
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 - ] );
762 + $this->customizer->add_control(
763 + new DimensionControl(
764 + $this->customizer,
765 + 'betterdocs_doc_single_2_post_content_padding_left',
766 + [
767 + 'type' => 'betterdocs-dimension',
768 + 'section' => 'betterdocs_single_docs_settings',
769 + 'settings' => 'betterdocs_doc_single_2_post_content_padding_left',
770 + 'label' => __( 'Left', 'betterdocs' ),
771 + 'priority' => 114,
772 + 'input_attrs' => [
773 + 'class' => 'betterdocs_doc_single_2_post_content_padding betterdocs-dimension'
774 + ]
775 + ]
776 + )
777 + );
778 + }
637 779
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 - );
780 + public function doc_single_3_post_content_padding() {
781 + $this->customizer->add_setting(
782 + 'betterdocs_doc_single_3_post_content_padding',
783 + [
784 + 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding'],
785 + 'capability' => 'edit_theme_options',
786 + 'transport' => 'postMessage',
787 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
650 788
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']
789 + ]
790 + );
656 791
657 - ] );
792 + $this->customizer->add_control(
793 + new TitleControl(
794 + $this->customizer,
795 + 'betterdocs_doc_single_3_post_content_padding',
796 + [
797 + 'type' => 'betterdocs-title',
798 + 'section' => 'betterdocs_single_docs_settings',
799 + 'settings' => 'betterdocs_doc_single_3_post_content_padding',
800 + 'label' => __( 'Content Area Inner Padding', 'betterdocs' ),
801 + 'priority' => 119,
802 + 'input_attrs' => [
803 + 'id' => 'betterdocs_doc_single_3_post_content_padding',
804 + 'class' => 'betterdocs-dimension'
805 + ]
806 + ]
807 + )
808 + );
658 809
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 - );
810 + $this->customizer->add_setting(
811 + 'betterdocs_doc_single_3_post_content_padding_top',
812 + [
813 + 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_top'],
814 + 'capability' => 'edit_theme_options',
815 + 'transport' => 'postMessage',
816 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
817 + ]
818 + );
671 819
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']
820 + $this->customizer->add_control(
821 + new DimensionControl(
822 + $this->customizer,
823 + 'betterdocs_doc_single_3_post_content_padding_top',
824 + [
825 + 'type' => 'betterdocs-dimension',
826 + 'section' => 'betterdocs_single_docs_settings',
827 + 'settings' => 'betterdocs_doc_single_3_post_content_padding_top',
828 + 'label' => __( 'Top', 'betterdocs' ),
829 + 'priority' => 119,
830 + 'input_attrs' => [
831 + 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
832 + ]
833 + ]
834 + )
835 + );
677 836
678 - ] );
837 + $this->customizer->add_setting(
838 + 'betterdocs_doc_single_3_post_content_padding_right',
839 + [
840 + 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_right'],
841 + 'capability' => 'edit_theme_options',
842 + 'transport' => 'postMessage',
843 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
679 844
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 - );
845 + ]
846 + );
692 847
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']
848 + $this->customizer->add_control(
849 + new DimensionControl(
850 + $this->customizer,
851 + 'betterdocs_doc_single_3_post_content_padding_right',
852 + [
853 + 'type' => 'betterdocs-dimension',
854 + 'section' => 'betterdocs_single_docs_settings',
855 + 'settings' => 'betterdocs_doc_single_3_post_content_padding_right',
856 + 'label' => __( 'Right', 'betterdocs' ),
857 + 'priority' => 119,
858 + 'input_attrs' => [
859 + 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
860 + ]
861 + ]
862 + )
863 + );
698 864
699 - ] );
865 + $this->customizer->add_setting(
866 + 'betterdocs_doc_single_3_post_content_padding_bottom',
867 + [
868 + 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_bottom'],
869 + 'capability' => 'edit_theme_options',
870 + 'transport' => 'postMessage',
871 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
700 872
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 - }
873 + ]
874 + );
714 875
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 - ] );
876 + $this->customizer->add_control(
877 + new DimensionControl(
878 + $this->customizer,
879 + 'betterdocs_doc_single_3_post_content_padding_bottom',
880 + [
881 + 'type' => 'betterdocs-dimension',
882 + 'section' => 'betterdocs_single_docs_settings',
883 + 'settings' => 'betterdocs_doc_single_3_post_content_padding_bottom',
884 + 'label' => __( 'Bottom', 'betterdocs' ),
885 + 'priority' => 119,
886 + 'input_attrs' => [
887 + 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
888 + ]
889 + ]
890 + )
891 + );
720 892
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 - }
893 + $this->customizer->add_setting(
894 + 'betterdocs_doc_single_3_post_content_padding_left',
895 + [
896 + 'default' => $this->defaults['betterdocs_doc_single_3_post_content_padding_left'],
897 + 'capability' => 'edit_theme_options',
898 + 'transport' => 'postMessage',
899 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
730 900
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 - ] );
901 + ]
902 + );
737 903
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 - }
904 + $this->customizer->add_control(
905 + new DimensionControl(
906 + $this->customizer,
907 + 'betterdocs_doc_single_3_post_content_padding_left',
908 + [
909 + 'type' => 'betterdocs-dimension',
910 + 'section' => 'betterdocs_single_docs_settings',
911 + 'settings' => 'betterdocs_doc_single_3_post_content_padding_left',
912 + 'label' => __( 'Left', 'betterdocs' ),
913 + 'priority' => 119,
914 + 'input_attrs' => [
915 + 'class' => 'betterdocs_doc_single_3_post_content_padding betterdocs-dimension'
916 + ]
917 + ]
918 + )
919 + );
920 + }
760 921
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 - ] );
922 + public function single_doc_layout_8_9_search_wrapper() {
923 + $this->customizer->add_setting(
924 + 'single_doc_layout_8_9_search_wrapper',
925 + [
926 + 'default' => $this->defaults['single_doc_layout_8_9_search_wrapper'],
927 + 'sanitize_callback' => 'esc_html'
928 + ]
929 + );
767 930
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 - }
931 + $this->customizer->add_control(
932 + new SeparatorControl(
933 + $this->customizer,
934 + 'single_doc_layout_8_9_search_wrapper',
935 + [
936 + 'label' => __( 'Search', 'betterdocs' ),
937 + 'settings' => 'single_doc_layout_8_9_search_wrapper',
938 + 'section' => 'betterdocs_single_docs_settings',
939 + 'priority' => 124
940 + ]
941 + )
942 + );
943 + }
788 944
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']
945 + public function single_doc_layout_8_9_search_toogle() {
946 + $this->customizer->add_setting(
947 + 'single_doc_layout_8_9_search_toogle',
948 + [
949 + 'default' => $this->defaults['single_doc_layout_8_9_search_toogle'],
950 + 'capability' => 'edit_theme_options',
951 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
952 + ]
953 + );
795 954
796 - ] );
955 + $this->customizer->add_control(
956 + new ToggleControl(
957 + $this->customizer,
958 + 'single_doc_layout_8_9_search_toogle',
959 + [
960 + 'label' => __( 'Enable', 'betterdocs' ),
961 + 'section' => 'betterdocs_single_docs_settings',
962 + 'settings' => 'single_doc_layout_8_9_search_toogle',
963 + 'type' => 'light', // light, ios, flat,
964 + 'priority' => 124
965 + ]
966 + )
967 + );
968 + }
797 969
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 - }
970 + public function single_doc_layout_8_9_search_width() {
971 + $this->customizer->add_setting(
972 + 'single_doc_layout_8_9_search_width',
973 + [
974 + 'default' => $this->defaults['single_doc_layout_8_9_search_width'],
975 + 'capability' => 'edit_theme_options',
976 + 'transport' => 'postMessage',
977 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
978 + ]
979 + );
814 980
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 - ] );
981 + $this->customizer->add_control(
982 + new RangeValueControl(
983 + $this->customizer,
984 + 'single_doc_layout_8_9_search_width',
985 + [
986 + 'type' => 'betterdocs-range-value',
987 + 'section' => 'betterdocs_single_docs_settings',
988 + 'settings' => 'single_doc_layout_8_9_search_width',
989 + 'label' => __( 'Search Width', 'betterdocs' ),
990 + 'input_attrs' => [
991 + 'min' => 0,
992 + 'max' => 100,
993 + 'step' => 1,
994 + 'suffix' => '%' //optional suffix
995 + ],
996 + 'priority' => 124
997 + ]
998 + )
999 + );
1000 + }
822 1001
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 - }
1002 + public function single_doc_layout_8_9_search_max_width() {
1003 + $this->customizer->add_setting(
1004 + 'single_doc_layout_8_9_search_max_width',
1005 + [
1006 + 'default' => $this->defaults['single_doc_layout_8_9_search_max_width'],
1007 + 'capability' => 'edit_theme_options',
1008 + 'transport' => 'postMessage',
1009 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1010 + ]
1011 + );
836 1012
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 - ] );
1013 + $this->customizer->add_control(
1014 + new RangeValueControl(
1015 + $this->customizer,
1016 + 'single_doc_layout_8_9_search_max_width',
1017 + [
1018 + 'type' => 'betterdocs-range-value',
1019 + 'section' => 'betterdocs_single_docs_settings',
1020 + 'settings' => 'single_doc_layout_8_9_search_max_width',
1021 + 'label' => __( 'Search Max Width', 'betterdocs' ), //Renamed From 'Content Area Width' to 'Category Archive Width' @since betterdocs revamp version
1022 + 'input_attrs' => [
1023 + 'min' => 0,
1024 + 'max' => 3000,
1025 + 'step' => 1,
1026 + 'suffix' => 'px' //optional suffix
1027 + ],
1028 + 'priority' => 124
1029 + ]
1030 + )
1031 + );
1032 + }
842 1033
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 - }
852 1034
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']
1035 + public function single_doc_layout_8_9_search_margin() {
1036 + $this->customizer->add_setting(
1037 + 'single_doc_layout_8_9_search_margin',
1038 + [
1039 + 'default' => $this->defaults['single_doc_layout_8_9_search_margin'],
1040 + 'capability' => 'edit_theme_options',
1041 + 'transport' => 'postMessage',
1042 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
859 1043
860 - ] );
1044 + ]
1045 + );
861 1046
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 - }
1047 + $this->customizer->add_control(
1048 + new TitleControl(
1049 + $this->customizer,
1050 + 'single_doc_layout_8_9_search_margin',
1051 + [
1052 + 'type' => 'betterdocs-title',
1053 + 'section' => 'betterdocs_single_docs_settings',
1054 + 'settings' => 'single_doc_layout_8_9_search_margin',
1055 + 'label' => __( 'Margin', 'betterdocs' ),
1056 + 'input_attrs' => [
1057 + 'id' => 'single_doc_layout_8_9_search_margin',
1058 + 'class' => 'betterdocs-dimension'
1059 + ],
1060 + 'priority' => 124
1061 + ]
1062 + )
1063 + );
879 1064
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 - ] );
1065 + $this->customizer->add_setting(
1066 + 'single_doc_layout_8_9_search_margin_top',
1067 + [
1068 + 'default' => $this->defaults['single_doc_layout_8_9_search_margin_top'],
1069 + 'capability' => 'edit_theme_options',
1070 + 'transport' => 'postMessage',
1071 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1072 + ]
1073 + );
887 1074
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 - }
1075 + $this->customizer->add_control(
1076 + new DimensionControl(
1077 + $this->customizer,
1078 + 'single_doc_layout_8_9_search_margin_top',
1079 + [
1080 + 'type' => 'betterdocs-dimension',
1081 + 'section' => 'betterdocs_single_docs_settings',
1082 + 'settings' => 'single_doc_layout_8_9_search_margin_top',
1083 + 'label' => __( 'Top', 'betterdocs' ),
1084 + 'input_attrs' => [
1085 + 'class' => 'single_doc_layout_8_9_search_margin betterdocs-dimension'
1086 + ],
1087 + 'priority' => 124
1088 + ]
1089 + )
1090 + );
898 1091
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']
1092 + $this->customizer->add_setting(
1093 + 'single_doc_layout_8_9_search_margin_bottom',
1094 + [
1095 + 'default' => $this->defaults['single_doc_layout_8_9_search_margin_bottom'],
1096 + 'capability' => 'edit_theme_options',
1097 + 'transport' => 'postMessage',
1098 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
905 1099
906 - ] );
1100 + ]
1101 + );
907 1102
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 - }
1103 + $this->customizer->add_control(
1104 + new DimensionControl(
1105 + $this->customizer,
1106 + 'single_doc_layout_8_9_search_margin_bottom',
1107 + [
1108 + 'type' => 'betterdocs-dimension',
1109 + 'section' => 'betterdocs_single_docs_settings',
1110 + 'settings' => 'single_doc_layout_8_9_search_margin_bottom',
1111 + 'label' => __( 'Bottom', 'betterdocs' ),
1112 + 'input_attrs' => [
1113 + 'class' => 'single_doc_layout_8_9_search_margin betterdocs-dimension'
1114 + ],
1115 + 'priority' => 124
1116 + ]
1117 + )
1118 + );
1119 + }
925 1120
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 - ] );
1121 + public function single_doc_layout_8_9_search_padding() {
1122 + $this->customizer->add_setting(
1123 + 'single_doc_layout_8_9_search_padding',
1124 + [
1125 + 'default' => $this->defaults['single_doc_layout_8_9_search_padding'],
1126 + 'capability' => 'edit_theme_options',
1127 + 'transport' => 'postMessage',
1128 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1129 + ]
1130 + );
933 1131
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 - }
1132 + $this->customizer->add_control(
1133 + new TitleControl(
1134 + $this->customizer,
1135 + 'single_doc_layout_8_9_search_padding',
1136 + [
1137 + 'type' => 'betterdocs-title',
1138 + 'section' => 'betterdocs_single_docs_settings',
1139 + 'settings' => 'single_doc_layout_8_9_search_padding',
1140 + 'label' => __( 'Padding', 'betterdocs' ),
1141 + 'input_attrs' => [
1142 + 'id' => 'single_doc_layout_8_9_search_padding',
1143 + 'class' => 'betterdocs-dimension'
1144 + ],
1145 + 'priority' => 124
1146 + ]
1147 + )
1148 + );
947 1149
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']
1150 + $this->customizer->add_setting(
1151 + 'single_doc_layout_8_9_search_padding_top',
1152 + [
1153 + 'default' => $this->defaults['single_doc_layout_8_9_search_padding_top'],
1154 + 'capability' => 'edit_theme_options',
1155 + 'transport' => 'postMessage',
1156 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1157 + ]
1158 + );
954 1159
955 - ] );
1160 + $this->customizer->add_control(
1161 + new DimensionControl(
1162 + $this->customizer,
1163 + 'single_doc_layout_8_9_search_padding_top',
1164 + [
1165 + 'type' => 'betterdocs-dimension',
1166 + 'section' => 'betterdocs_single_docs_settings',
1167 + 'settings' => 'single_doc_layout_8_9_search_padding_top',
1168 + 'label' => __( 'Top', 'betterdocs' ),
1169 + 'input_attrs' => [
1170 + 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
1171 + ],
1172 + 'priority' => 124
1173 + ]
1174 + )
1175 + );
956 1176
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 - );
1177 + $this->customizer->add_setting(
1178 + 'single_doc_layout_8_9_search_padding_right',
1179 + [
1180 + 'default' => $this->defaults['single_doc_layout_8_9_search_padding_right'],
1181 + 'capability' => 'edit_theme_options',
1182 + 'transport' => 'postMessage',
1183 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
970 1184
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 - ] );
1185 + ]
1186 + );
977 1187
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 - );
1188 + $this->customizer->add_control(
1189 + new DimensionControl(
1190 + $this->customizer,
1191 + 'single_doc_layout_8_9_search_padding_right',
1192 + [
1193 + 'type' => 'betterdocs-dimension',
1194 + 'section' => 'betterdocs_single_docs_settings',
1195 + 'settings' => 'single_doc_layout_8_9_search_padding_right',
1196 + 'label' => __( 'Right', 'betterdocs' ),
1197 + 'input_attrs' => [
1198 + 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
1199 + ],
1200 + 'priority' => 124
1201 + ]
1202 + )
1203 + );
990 1204
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']
1205 + $this->customizer->add_setting(
1206 + 'single_doc_layout_8_9_search_padding_bottom',
1207 + [
1208 + 'default' => $this->defaults['single_doc_layout_8_9_search_padding_bottom'],
1209 + 'capability' => 'edit_theme_options',
1210 + 'transport' => 'postMessage',
1211 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1212 + ]
1213 + );
996 1214
997 - ] );
1215 + $this->customizer->add_control(
1216 + new DimensionControl(
1217 + $this->customizer,
1218 + 'single_doc_layout_8_9_search_padding_bottom',
1219 + [
1220 + 'type' => 'betterdocs-dimension',
1221 + 'section' => 'betterdocs_single_docs_settings',
1222 + 'settings' => 'single_doc_layout_8_9_search_padding_bottom',
1223 + 'label' => __( 'Bottom', 'betterdocs' ),
1224 + 'input_attrs' => [
1225 + 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
1226 + ],
1227 + 'priority' => 124
1228 + ]
1229 + )
1230 + );
998 1231
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 - );
1232 + $this->customizer->add_setting(
1233 + 'single_doc_layout_8_9_search_padding_left',
1234 + [
1235 + 'default' => $this->defaults['single_doc_layout_8_9_search_padding_left'],
1236 + 'capability' => 'edit_theme_options',
1237 + 'transport' => 'postMessage',
1238 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1239 + ]
1240 + );
1011 1241
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']
1242 + $this->customizer->add_control(
1243 + new DimensionControl(
1244 + $this->customizer,
1245 + 'single_doc_layout_8_9_search_padding_left',
1246 + [
1247 + 'type' => 'betterdocs-dimension',
1248 + 'section' => 'betterdocs_single_docs_settings',
1249 + 'settings' => 'single_doc_layout_8_9_search_padding_left',
1250 + 'label' => __( 'Left', 'betterdocs' ),
1251 + 'input_attrs' => [
1252 + 'class' => 'single_doc_layout_8_9_search_padding betterdocs-dimension'
1253 + ],
1254 + 'priority' => 124
1255 + ]
1256 + )
1257 + );
1258 + }
1017 1259
1018 - ] );
1260 + public function single_doc_title() {
1261 + $this->customizer->add_setting(
1262 + 'betterdocs_single_doc_title',
1263 + [
1264 + 'default' => $this->defaults['betterdocs_single_doc_title'],
1265 + 'sanitize_callback' => 'esc_html'
1266 + ]
1267 + );
1019 1268
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 - );
1269 + $this->customizer->add_control(
1270 + new SeparatorControl(
1271 + $this->customizer,
1272 + 'betterdocs_single_doc_title',
1273 + [
1274 + 'label' => __( 'Post Title', 'betterdocs' ),
1275 + 'priority' => 124,
1276 + 'settings' => 'betterdocs_single_doc_title',
1277 + 'section' => 'betterdocs_single_docs_settings'
1278 + ]
1279 + )
1280 + );
1281 + }
1032 1282
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']
1283 + public function post_title_tag() {
1284 + $this->customizer->add_setting(
1285 + 'betterdocs_post_title_tag',
1286 + [
1287 + 'default' => $this->defaults['betterdocs_post_title_tag'],
1288 + 'capability' => 'edit_theme_options',
1289 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
1290 + ]
1291 + );
1038 1292
1039 - ] );
1293 + $this->customizer->add_control(
1294 + new WP_Customize_Control(
1295 + $this->customizer,
1296 + 'betterdocs_post_title_tag',
1297 + [
1298 + 'label' => __( 'Title Tag', 'betterdocs' ),
1299 + 'section' => 'betterdocs_single_docs_settings',
1300 + 'settings' => 'betterdocs_post_title_tag',
1301 + 'type' => 'select',
1302 + 'choices' => [
1303 + 'h1' => 'h1',
1304 + 'h2' => 'h2',
1305 + 'h3' => 'h3',
1306 + 'h4' => 'h4',
1307 + 'h5' => 'h5',
1308 + 'h6' => 'h6',
1309 + 'p' => 'p'
1310 + ],
1311 + 'priority' => 124
1312 + ]
1313 + )
1314 + );
1315 + }
1040 1316
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 - }
1317 + public function post_title_text_transform() {
1318 + $this->customizer->add_setting(
1319 + 'betterdocs_post_title_text_transform',
1320 + [
1321 + 'default' => $this->defaults['betterdocs_post_title_text_transform'],
1322 + 'capability' => 'edit_theme_options',
1323 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
1324 + ]
1325 + );
1054 1326
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 - ] );
1327 + $this->customizer->add_control(
1328 + new WP_Customize_Control(
1329 + $this->customizer,
1330 + 'betterdocs_post_title_text_transform',
1331 + [
1332 + 'label' => __( 'Text Transform', 'betterdocs' ),
1333 + 'section' => 'betterdocs_single_docs_settings',
1334 + 'settings' => 'betterdocs_post_title_text_transform',
1335 + 'type' => 'select',
1336 + 'choices' => [
1337 + 'uppercase' => 'Uppercase',
1338 + 'lowercase' => 'Lowercase',
1339 + 'capitalize' => 'Capitalize',
1340 + 'none' => 'Normal'
1341 + ],
1342 + 'priority' => 124
1343 + ]
1344 + )
1345 + );
1346 + }
1062 1347
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 - );
1348 + public function single_doc_title_font_size() {
1349 + $this->customizer->add_setting(
1350 + 'betterdocs_single_doc_title_font_size',
1351 + [
1352 + 'default' => $this->defaults['betterdocs_single_doc_title_font_size'],
1353 + 'capability' => 'edit_theme_options',
1354 + 'transport' => 'postMessage',
1355 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1076 1356
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 - ] );
1357 + ]
1358 + );
1083 1359
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 - );
1360 + $this->customizer->add_control(
1361 + new RangeValueControl(
1362 + $this->customizer,
1363 + 'betterdocs_single_doc_title_font_size',
1364 + [
1365 + 'type' => 'betterdocs-range-value',
1366 + 'section' => 'betterdocs_single_docs_settings',
1367 + 'settings' => 'betterdocs_single_doc_title_font_size',
1368 + 'label' => __( 'Font Size', 'betterdocs' ),
1369 + 'priority' => 125,
1370 + 'input_attrs' => [
1371 + 'min' => 0,
1372 + 'max' => 50,
1373 + 'step' => 1,
1374 + 'suffix' => 'px' //optional suffix
1375 + ]
1376 + ]
1377 + )
1378 + );
1379 + }
1096 1380
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 - ] );
1381 + public function single_doc_title_color() {
1382 + $this->customizer->add_setting(
1383 + 'betterdocs_single_doc_title_color',
1384 + [
1385 + 'capability' => 'edit_theme_options',
1386 + 'default' => $this->defaults['betterdocs_single_doc_title_color'],
1387 + 'transport' => 'postMessage',
1388 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1389 + ]
1390 + );
1103 1391
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 - );
1392 + $this->customizer->add_control(
1393 + new AlphaColorControl(
1394 + $this->customizer,
1395 + 'betterdocs_single_doc_title_color',
1396 + [
1397 + 'label' => __( 'Color', 'betterdocs' ),
1398 + 'priority' => 126,
1399 + 'section' => 'betterdocs_single_docs_settings',
1400 + 'settings' => 'betterdocs_single_doc_title_color'
1401 + ]
1402 + )
1403 + );
1404 + }
1116 1405
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 - ] );
1406 + public function post_title_text_transform_layout_8_9() {
1407 + $this->customizer->add_setting(
1408 + 'betterdocs_post_title_text_transform_layout_8_9',
1409 + [
1410 + 'default' => $this->defaults['betterdocs_post_title_text_transform_layout_8_9'],
1411 + 'capability' => 'edit_theme_options',
1412 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
1413 + ]
1414 + );
1123 1415
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 - );
1416 + $this->customizer->add_control(
1417 + new WP_Customize_Control(
1418 + $this->customizer,
1419 + 'betterdocs_post_title_text_transform_layout_8_9',
1420 + [
1421 + 'label' => __( 'Text Transform', 'betterdocs' ),
1422 + 'section' => 'betterdocs_single_docs_settings',
1423 + 'settings' => 'betterdocs_post_title_text_transform_layout_8_9',
1424 + 'type' => 'select',
1425 + 'choices' => [
1426 + 'uppercase' => 'Uppercase',
1427 + 'lowercase' => 'Lowercase',
1428 + 'capitalize' => 'Capitalize',
1429 + 'none' => 'Normal'
1430 + ],
1431 + 'priority' => 124
1432 + ]
1433 + )
1434 + );
1435 + }
1136 1436
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 - ] );
1437 + public function single_doc_title_font_size_layout_8_9() {
1438 + $this->customizer->add_setting(
1439 + 'betterdocs_single_doc_title_font_size_layout_8_9',
1440 + [
1441 + 'default' => $this->defaults['betterdocs_single_doc_title_font_size_layout_8_9'],
1442 + 'capability' => 'edit_theme_options',
1443 + 'transport' => 'postMessage',
1444 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1143 1445
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 - }
1446 + ]
1447 + );
1157 1448
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 - ] );
1449 + $this->customizer->add_control(
1450 + new RangeValueControl(
1451 + $this->customizer,
1452 + 'betterdocs_single_doc_title_font_size_layout_8_9',
1453 + [
1454 + 'type' => 'betterdocs-range-value',
1455 + 'section' => 'betterdocs_single_docs_settings',
1456 + 'settings' => 'betterdocs_single_doc_title_font_size_layout_8_9',
1457 + 'label' => __( 'Font Size', 'betterdocs' ),
1458 + 'priority' => 125,
1459 + 'input_attrs' => [
1460 + 'min' => 0,
1461 + 'max' => 50,
1462 + 'step' => 1,
1463 + 'suffix' => 'px' //optional suffix
1464 + ]
1465 + ]
1466 + )
1467 + );
1468 + }
1165 1469
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 - }
1470 + public function single_doc_title_color_layout_8_9() {
1471 + $this->customizer->add_setting(
1472 + 'betterdocs_single_doc_title_color_layout_8_9',
1473 + [
1474 + 'capability' => 'edit_theme_options',
1475 + 'default' => $this->defaults['betterdocs_single_doc_title_color_layout_8_9'],
1476 + 'transport' => 'postMessage',
1477 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1478 + ]
1479 + );
1179 1480
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']
1481 + $this->customizer->add_control(
1482 + new AlphaColorControl(
1483 + $this->customizer,
1484 + 'betterdocs_single_doc_title_color_layout_8_9',
1485 + [
1486 + 'label' => __( 'Color', 'betterdocs' ),
1487 + 'priority' => 126,
1488 + 'section' => 'betterdocs_single_docs_settings',
1489 + 'settings' => 'betterdocs_single_doc_title_color_layout_8_9'
1490 + ]
1491 + )
1492 + );
1493 + }
1186 1494
1187 - ] );
1495 + public function single_doc_title_margin_layout_8_9() {
1496 + $this->customizer->add_setting(
1497 + 'single_doc_title_margin_layout_8_9',
1498 + [
1499 + 'default' => $this->defaults['single_doc_title_margin_layout_8_9'],
1500 + 'capability' => 'edit_theme_options',
1501 + 'transport' => 'postMessage',
1502 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1503 + ]
1504 + );
1188 1505
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 - }
1506 + $this->customizer->add_control(
1507 + new TitleControl(
1508 + $this->customizer,
1509 + 'single_doc_title_margin_layout_8_9',
1510 + [
1511 + 'type' => 'betterdocs-title',
1512 + 'section' => 'betterdocs_single_docs_settings',
1513 + 'settings' => 'single_doc_title_margin_layout_8_9',
1514 + 'label' => __( 'Title Margin', 'betterdocs' ),
1515 + 'priority' => 126,
1516 + 'input_attrs' => [
1517 + 'id' => 'single_doc_title_margin_layout_8_9',
1518 + 'class' => 'betterdocs-dimension'
1519 + ]
1520 + ]
1521 + )
1522 + );
1206 1523
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 - ] );
1524 + $this->customizer->add_setting(
1525 + 'single_doc_title_margin_top_layout_8_9',
1526 + [
1527 + 'default' => $this->defaults['single_doc_title_margin_top_layout_8_9'],
1528 + 'capability' => 'edit_theme_options',
1529 + 'transport' => 'postMessage',
1530 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1531 + ]
1532 + );
1213 1533
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 - }
1534 + $this->customizer->add_control(
1535 + new DimensionControl(
1536 + $this->customizer,
1537 + 'single_doc_title_margin_top_layout_8_9',
1538 + [
1539 + 'type' => 'betterdocs-dimension',
1540 + 'section' => 'betterdocs_single_docs_settings',
1541 + 'settings' => 'single_doc_title_margin_top_layout_8_9',
1542 + 'label' => __( 'Top', 'betterdocs' ),
1543 + 'priority' => 126,
1544 + 'input_attrs' => [
1545 + 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1546 + ]
1547 + ]
1548 + )
1549 + );
1227 1550
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 - ] );
1551 + $this->customizer->add_setting(
1552 + 'single_doc_title_margin_right_layout_8_9',
1553 + [
1554 + 'default' => $this->defaults['single_doc_title_margin_right_layout_8_9'],
1555 + 'capability' => 'edit_theme_options',
1556 + 'transport' => 'postMessage',
1557 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1558 + ]
1559 + );
1234 1560
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 - }
1561 + $this->customizer->add_control(
1562 + new DimensionControl(
1563 + $this->customizer,
1564 + 'single_doc_title_margin_right_layout_8_9',
1565 + [
1566 + 'type' => 'betterdocs-dimension',
1567 + 'section' => 'betterdocs_single_docs_settings',
1568 + 'settings' => 'single_doc_title_margin_right_layout_8_9',
1569 + 'label' => __( 'Right', 'betterdocs' ),
1570 + 'priority' => 126,
1571 + 'input_attrs' => [
1572 + 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1573 + ]
1574 + ]
1575 + )
1576 + );
1248 1577
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 - ] );
1578 + $this->customizer->add_setting(
1579 + 'single_doc_title_margin_bottom_layout_8_9',
1580 + [
1581 + 'default' => $this->defaults['single_doc_title_margin_bottom_layout_8_9'],
1582 + 'capability' => 'edit_theme_options',
1583 + 'transport' => 'postMessage',
1584 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1585 + ]
1586 + );
1255 1587
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 - }
1588 + $this->customizer->add_control(
1589 + new DimensionControl(
1590 + $this->customizer,
1591 + 'single_doc_title_margin_bottom_layout_8_9',
1592 + [
1593 + 'type' => 'betterdocs-dimension',
1594 + 'section' => 'betterdocs_single_docs_settings',
1595 + 'settings' => 'single_doc_title_margin_bottom_layout_8_9',
1596 + 'label' => __( 'Bottom', 'betterdocs' ),
1597 + 'priority' => 126,
1598 + 'input_attrs' => [
1599 + 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1600 + ]
1601 + ]
1602 + )
1603 + );
1269 1604
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']
1605 + $this->customizer->add_setting(
1606 + 'single_doc_title_margin_left_layout_8_9',
1607 + [
1608 + 'default' => $this->defaults['single_doc_title_margin_left_layout_8_9'],
1609 + 'capability' => 'edit_theme_options',
1610 + 'transport' => 'postMessage',
1611 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1612 + ]
1613 + );
1276 1614
1277 - ] );
1615 + $this->customizer->add_control(
1616 + new DimensionControl(
1617 + $this->customizer,
1618 + 'single_doc_title_margin_left_layout_8_9',
1619 + [
1620 + 'type' => 'betterdocs-dimension',
1621 + 'section' => 'betterdocs_single_docs_settings',
1622 + 'settings' => 'single_doc_title_margin_left_layout_8_9',
1623 + 'label' => __( 'Left', 'betterdocs' ),
1624 + 'priority' => 126,
1625 + 'input_attrs' => [
1626 + 'class' => 'single_doc_title_margin_layout_8_9 betterdocs-dimension'
1627 + ]
1628 + ]
1629 + )
1630 + );
1631 + }
1278 1632
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 - }
1633 + public function doc_single_toc_title() {
1634 + $this->customizer->add_setting(
1635 + 'betterdocs_doc_single_toc_title',
1636 + [
1637 + 'default' => $this->defaults['betterdocs_doc_single_toc_title'],
1638 + 'sanitize_callback' => 'esc_html'
1639 + ]
1640 + );
1296 1641
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']
1642 + $this->customizer->add_control(
1643 + new SeparatorControl(
1644 + $this->customizer,
1645 + 'betterdocs_doc_single_toc_title',
1646 + [
1647 + 'label' => __( 'Table of Contents', 'betterdocs' ),
1648 + 'priority' => 132,
1649 + 'settings' => 'betterdocs_doc_single_toc_title',
1650 + 'section' => 'betterdocs_single_docs_settings'
1651 + ]
1652 + )
1653 + );
1654 + }
1303 1655
1304 - ] );
1656 + public function sticky_toc_width() {
1657 + $this->customizer->add_setting(
1658 + 'betterdocs_sticky_toc_width',
1659 + [
1660 + 'default' => $this->defaults['betterdocs_sticky_toc_width'],
1661 + 'capability' => 'edit_theme_options',
1662 + 'transport' => 'postMessage',
1663 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1305 1664
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 - );
1665 + ]
1666 + );
1319 1667
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 - ] );
1668 + $this->customizer->add_control(
1669 + new RangeValueControl(
1670 + $this->customizer,
1671 + 'betterdocs_sticky_toc_width',
1672 + [
1673 + 'type' => 'betterdocs-range-value',
1674 + 'section' => 'betterdocs_single_docs_settings',
1675 + 'settings' => 'betterdocs_sticky_toc_width',
1676 + 'label' => __( 'Sticky Toc Width', 'betterdocs' ),
1677 + 'priority' => 133,
1678 + 'input_attrs' => [
1679 + 'class' => '',
1680 + 'min' => 100,
1681 + 'max' => 500,
1682 + 'step' => 1,
1683 + 'suffix' => 'px' //optional suffix
1684 + ]
1685 + ]
1686 + )
1687 + );
1688 + }
1326 1689
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 - );
1690 + public function sticky_toc_zindex() {
1691 + $this->customizer->add_setting(
1692 + 'betterdocs_sticky_toc_zindex',
1693 + [
1694 + 'default' => $this->defaults['betterdocs_sticky_toc_zindex'],
1695 + 'capability' => 'edit_theme_options',
1696 + 'transport' => 'postMessage',
1697 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1698 + ]
1699 + );
1339 1700
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']
1701 + $this->customizer->add_control(
1702 + new NumberControl(
1703 + $this->customizer,
1704 + 'betterdocs_sticky_toc_zindex',
1705 + [
1706 + 'type' => 'betterdocs-number',
1707 + 'section' => 'betterdocs_single_docs_settings',
1708 + 'settings' => 'betterdocs_sticky_toc_zindex',
1709 + 'label' => __( 'Sticky Toc z-index', 'betterdocs' ),
1710 + 'priority' => 134
1711 + ]
1712 + )
1713 + );
1714 + }
1345 1715
1346 - ] );
1716 + public function sticky_toc_margin_top() {
1717 + $this->customizer->add_setting(
1718 + 'betterdocs_sticky_toc_margin_top',
1719 + [
1720 + 'default' => $this->defaults['betterdocs_sticky_toc_margin_top'],
1721 + 'capability' => 'edit_theme_options',
1722 + 'transport' => 'postMessage',
1723 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1347 1724
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 - );
1725 + ]
1726 + );
1360 1727
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']
1728 + $this->customizer->add_control(
1729 + new RangeValueControl(
1730 + $this->customizer,
1731 + 'betterdocs_sticky_toc_margin_top',
1732 + [
1733 + 'type' => 'betterdocs-range-value',
1734 + 'section' => 'betterdocs_single_docs_settings',
1735 + 'settings' => 'betterdocs_sticky_toc_margin_top',
1736 + 'label' => __( 'Sticky Toc Margin Top', 'betterdocs' ),
1737 + 'priority' => 135,
1738 + 'input_attrs' => [
1739 + 'class' => '',
1740 + 'min' => 0,
1741 + 'max' => 500,
1742 + 'step' => 1,
1743 + 'suffix' => 'px' //optional suffix
1744 + ]
1745 + ]
1746 + )
1747 + );
1748 + }
1366 1749
1367 - ] );
1750 + public function toc_bg_color() {
1751 + $this->customizer->add_setting(
1752 + 'betterdocs_toc_bg_color',
1753 + [
1754 + 'capability' => 'edit_theme_options',
1755 + 'default' => $this->defaults['betterdocs_toc_bg_color'],
1756 + 'transport' => 'postMessage',
1757 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1758 + ]
1759 + );
1368 1760
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 - );
1761 + $this->customizer->add_control(
1762 + new AlphaColorControl(
1763 + $this->customizer,
1764 + 'betterdocs_toc_bg_color',
1765 + [
1766 + 'label' => __( 'Background Color', 'betterdocs' ),
1767 + 'priority' => 136,
1768 + 'section' => 'betterdocs_single_docs_settings',
1769 + 'settings' => 'betterdocs_toc_bg_color'
1770 + ]
1771 + )
1772 + );
1773 + }
1381 1774
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']
1775 + public function doc_single_toc_padding() {
1776 + $this->customizer->add_setting(
1777 + 'betterdocs_doc_single_toc_padding',
1778 + [
1779 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding'],
1780 + 'capability' => 'edit_theme_options',
1781 + 'transport' => 'postMessage',
1782 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1387 1783
1388 - ] );
1784 + ]
1785 + );
1389 1786
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 - }
1787 + $this->customizer->add_control(
1788 + new TitleControl(
1789 + $this->customizer,
1790 + 'betterdocs_doc_single_toc_padding',
1791 + [
1792 + 'type' => 'betterdocs-title',
1793 + 'section' => 'betterdocs_single_docs_settings',
1794 + 'settings' => 'betterdocs_doc_single_toc_padding',
1795 + 'label' => __( 'Content Area Padding', 'betterdocs' ),
1796 + 'priority' => 137,
1797 + 'input_attrs' => [
1798 + 'id' => 'betterdocs_doc_single_toc_padding',
1799 + 'class' => 'betterdocs-dimension'
1800 + ]
1801 + ]
1802 + )
1803 + );
1403 1804
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 - ] );
1805 + $this->customizer->add_setting(
1806 + 'betterdocs_doc_single_toc_padding_top',
1807 + [
1808 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_top'],
1809 + 'capability' => 'edit_theme_options',
1810 + 'transport' => 'postMessage',
1811 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1812 + ]
1813 + );
1410 1814
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 - }
1815 + $this->customizer->add_control(
1816 + new DimensionControl(
1817 + $this->customizer,
1818 + 'betterdocs_doc_single_toc_padding_top',
1819 + [
1820 + 'type' => 'betterdocs-dimension',
1821 + 'section' => 'betterdocs_single_docs_settings',
1822 + 'settings' => 'betterdocs_doc_single_toc_padding_top',
1823 + 'label' => __( 'Top', 'betterdocs' ),
1824 + 'priority' => 137,
1825 + 'input_attrs' => [
1826 + 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
1827 + ]
1828 + ]
1829 + )
1830 + );
1424 1831
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']
1832 + $this->customizer->add_setting(
1833 + 'betterdocs_doc_single_toc_padding_right',
1834 + [
1835 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_right'],
1836 + 'capability' => 'edit_theme_options',
1837 + 'transport' => 'postMessage',
1838 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1430 1839
1431 - ] );
1840 + ]
1841 + );
1432 1842
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 - }
1843 + $this->customizer->add_control(
1844 + new DimensionControl(
1845 + $this->customizer,
1846 + 'betterdocs_doc_single_toc_padding_right',
1847 + [
1848 + 'type' => 'betterdocs-dimension',
1849 + 'section' => 'betterdocs_single_docs_settings',
1850 + 'settings' => 'betterdocs_doc_single_toc_padding_right',
1851 + 'label' => __( 'Right', 'betterdocs' ),
1852 + 'priority' => 137,
1853 + 'input_attrs' => [
1854 + 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
1855 + ]
1856 + ]
1857 + )
1858 + );
1450 1859
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']
1860 + $this->customizer->add_setting(
1861 + 'betterdocs_doc_single_toc_padding_bottom',
1862 + [
1863 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_bottom'],
1864 + 'capability' => 'edit_theme_options',
1865 + 'transport' => 'postMessage',
1866 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1457 1867
1458 - ] );
1868 + ]
1869 + );
1459 1870
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 - }
1871 + $this->customizer->add_control(
1872 + new DimensionControl(
1873 + $this->customizer,
1874 + 'betterdocs_doc_single_toc_padding_bottom',
1875 + [
1876 + 'type' => 'betterdocs-dimension',
1877 + 'section' => 'betterdocs_single_docs_settings',
1878 + 'settings' => 'betterdocs_doc_single_toc_padding_bottom',
1879 + 'label' => __( 'Bottom', 'betterdocs' ),
1880 + 'priority' => 137,
1881 + 'input_attrs' => [
1882 + 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
1883 + ]
1884 + ]
1885 + )
1886 + );
1477 1887
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 - ] );
1888 + $this->customizer->add_setting(
1889 + 'betterdocs_doc_single_toc_padding_left',
1890 + [
1891 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_left'],
1892 + 'capability' => 'edit_theme_options',
1893 + 'transport' => 'postMessage',
1894 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1483 1895
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 - }
1896 + ]
1897 + );
1493 1898
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']
1899 + $this->customizer->add_control(
1900 + new DimensionControl(
1901 + $this->customizer,
1902 + 'betterdocs_doc_single_toc_padding_left',
1903 + [
1904 + 'type' => 'betterdocs-dimension',
1905 + 'section' => 'betterdocs_single_docs_settings',
1906 + 'settings' => 'betterdocs_doc_single_toc_padding_left',
1907 + 'label' => __( 'Left', 'betterdocs' ),
1908 + 'priority' => 137,
1909 + 'input_attrs' => [
1910 + 'class' => 'betterdocs_doc_single_toc_padding betterdocs-dimension'
1911 + ]
1912 + ]
1913 + )
1914 + );
1915 + }
1500 1916
1501 - ] );
1917 + public function doc_single_toc_margin() {
1918 + $this->customizer->add_setting(
1919 + 'betterdocs_doc_single_toc_margin',
1920 + [
1921 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin'],
1922 + 'capability' => 'edit_theme_options',
1923 + 'transport' => 'postMessage',
1924 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1925 + ]
1926 + );
1502 1927
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 - }
1928 + $this->customizer->add_control(
1929 + new TitleControl(
1930 + $this->customizer,
1931 + 'betterdocs_doc_single_toc_margin',
1932 + [
1933 + 'type' => 'betterdocs-title',
1934 + 'section' => 'betterdocs_single_docs_settings',
1935 + 'settings' => 'betterdocs_doc_single_toc_margin',
1936 + 'label' => __( 'Content Area Margin', 'betterdocs' ),
1937 + 'priority' => 141,
1938 + 'input_attrs' => [
1939 + 'id' => 'betterdocs_doc_single_toc_margin',
1940 + 'class' => 'betterdocs-dimension'
1941 + ]
1942 + ]
1943 + )
1944 + );
1520 1945
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 - ] );
1946 + $this->customizer->add_setting(
1947 + 'betterdocs_doc_single_toc_margin_top',
1948 + [
1949 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_top'],
1950 + 'capability' => 'edit_theme_options',
1951 + 'transport' => 'postMessage',
1952 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1953 + ]
1954 + );
1528 1955
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 - }
1956 + $this->customizer->add_control(
1957 + new DimensionControl(
1958 + $this->customizer,
1959 + 'betterdocs_doc_single_toc_margin_top',
1960 + [
1961 + 'type' => 'betterdocs-dimension',
1962 + 'section' => 'betterdocs_single_docs_settings',
1963 + 'settings' => 'betterdocs_doc_single_toc_margin_top',
1964 + 'label' => __( 'Top', 'betterdocs' ),
1965 + 'priority' => 141,
1966 + 'input_attrs' => [
1967 + 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
1968 + ]
1969 + ]
1970 + )
1971 + );
1542 1972
1543 - public function social_share_title() {
1544 - $this->customizer->add_setting( 'betterdocs_social_share_title', [
1545 - 'default' => '',
1546 - 'sanitize_callback' => 'esc_html'
1547 - ] );
1973 + $this->customizer->add_setting(
1974 + 'betterdocs_doc_single_toc_margin_right',
1975 + [
1976 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_right'],
1977 + 'capability' => 'edit_theme_options',
1978 + 'transport' => 'postMessage',
1979 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1980 + ]
1981 + );
1548 1982
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 - }
1983 + $this->customizer->add_control(
1984 + new DimensionControl(
1985 + $this->customizer,
1986 + 'betterdocs_doc_single_toc_margin_right',
1987 + [
1988 + 'type' => 'betterdocs-dimension',
1989 + 'section' => 'betterdocs_single_docs_settings',
1990 + 'settings' => 'betterdocs_doc_single_toc_margin_right',
1991 + 'label' => __( 'Right', 'betterdocs' ),
1992 + 'priority' => 141,
1993 + 'input_attrs' => [
1994 + 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
1995 + ]
1996 + ]
1997 + )
1998 + );
1560 1999
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 - ] );
2000 + $this->customizer->add_setting(
2001 + 'betterdocs_doc_single_toc_margin_bottom',
2002 + [
2003 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_bottom'],
2004 + 'capability' => 'edit_theme_options',
2005 + 'transport' => 'postMessage',
2006 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2007 + ]
2008 + );
1567 2009
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 - }
2010 + $this->customizer->add_control(
2011 + new DimensionControl(
2012 + $this->customizer,
2013 + 'betterdocs_doc_single_toc_margin_bottom',
2014 + [
2015 + 'type' => 'betterdocs-dimension',
2016 + 'section' => 'betterdocs_single_docs_settings',
2017 + 'settings' => 'betterdocs_doc_single_toc_margin_bottom',
2018 + 'label' => __( 'Bottom', 'betterdocs' ),
2019 + 'priority' => 141,
2020 + 'input_attrs' => [
2021 + 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
2022 + ]
2023 + ]
2024 + )
2025 + );
1580 2026
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 - ] );
2027 + $this->customizer->add_setting(
2028 + 'betterdocs_doc_single_toc_margin_left',
2029 + [
2030 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_left'],
2031 + 'capability' => 'edit_theme_options',
2032 + 'transport' => 'postMessage',
2033 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2034 + ]
2035 + );
1587 2036
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 - }
2037 + $this->customizer->add_control(
2038 + new DimensionControl(
2039 + $this->customizer,
2040 + 'betterdocs_doc_single_toc_margin_left',
2041 + [
2042 + 'type' => 'betterdocs-dimension',
2043 + 'section' => 'betterdocs_single_docs_settings',
2044 + 'settings' => 'betterdocs_doc_single_toc_margin_left',
2045 + 'label' => __( 'Left', 'betterdocs' ),
2046 + 'priority' => 141,
2047 + 'input_attrs' => [
2048 + 'class' => 'betterdocs_doc_single_toc_margin betterdocs-dimension'
2049 + ]
2050 + ]
2051 + )
2052 + );
2053 + }
1602 2054
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 - ] );
2055 + public function toc_title_color() {
2056 + $this->customizer->add_setting(
2057 + 'betterdocs_toc_title_color',
2058 + [
2059 + 'capability' => 'edit_theme_options',
2060 + 'default' => $this->defaults['betterdocs_toc_title_color'],
2061 + 'transport' => 'postMessage',
2062 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2063 + ]
2064 + );
1610 2065
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 - }
2066 + $this->customizer->add_control(
2067 + new AlphaColorControl(
2068 + $this->customizer,
2069 + 'betterdocs_toc_title_color',
2070 + [
2071 + 'label' => __( 'Title Color', 'betterdocs' ),
2072 + 'priority' => 142,
2073 + 'section' => 'betterdocs_single_docs_settings',
2074 + 'settings' => 'betterdocs_toc_title_color'
2075 + ]
2076 + )
2077 + );
2078 + }
1624 2079
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 - ] );
2080 + public function toc_title_font_size() {
2081 + $this->customizer->add_setting(
2082 + 'betterdocs_toc_title_font_size',
2083 + [
2084 + 'default' => $this->defaults['betterdocs_toc_title_font_size'],
2085 + 'capability' => 'edit_theme_options',
2086 + 'transport' => 'postMessage',
2087 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1631 2088
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 - }
2089 + ]
2090 + );
1642 2091
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 - ] );
2092 + $this->customizer->add_control(
2093 + new RangeValueControl(
2094 + $this->customizer,
2095 + 'betterdocs_toc_title_font_size',
2096 + [
2097 + 'type' => 'betterdocs-range-value',
2098 + 'section' => 'betterdocs_single_docs_settings',
2099 + 'settings' => 'betterdocs_toc_title_font_size',
2100 + 'label' => __( 'Title Font Size', 'betterdocs' ),
2101 + 'priority' => 143,
2102 + 'input_attrs' => [
2103 + 'class' => '',
2104 + 'min' => 0,
2105 + 'max' => 50,
2106 + 'step' => 1,
2107 + 'suffix' => 'px' //optional suffix
2108 + ]
2109 + ]
2110 + )
2111 + );
2112 + }
1649 2113
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 - }
2114 + public function toc_list_item_color() {
2115 + $this->customizer->add_setting(
2116 + 'betterdocs_toc_list_item_color',
2117 + [
2118 + 'default' => $this->defaults['betterdocs_toc_list_item_color'],
2119 + 'transport' => 'postMessage',
2120 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2121 + ]
2122 + );
1660 2123
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 - ] );
2124 + $this->customizer->add_control(
2125 + new AlphaColorControl(
2126 + $this->customizer,
2127 + 'betterdocs_toc_list_item_color',
2128 + [
2129 + 'label' => __( 'List Item Color', 'betterdocs' ),
2130 + 'priority' => 144,
2131 + 'section' => 'betterdocs_single_docs_settings',
2132 + 'settings' => 'betterdocs_toc_list_item_color'
2133 + ]
2134 + )
2135 + );
2136 + }
1667 2137
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 - }
2138 + public function toc_list_item_hover_color() {
2139 + $this->customizer->add_setting(
2140 + 'betterdocs_toc_list_item_hover_color',
2141 + [
2142 + 'capability' => 'edit_theme_options',
2143 + 'default' => $this->defaults['betterdocs_toc_list_item_hover_color'],
2144 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2145 + ]
2146 + );
1676 2147
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 - ] );
2148 + $this->customizer->add_control(
2149 + new AlphaColorControl(
2150 + $this->customizer,
2151 + 'betterdocs_toc_list_item_hover_color',
2152 + [
2153 + 'label' => __( 'List Item Hover Color', 'betterdocs' ),
2154 + 'priority' => 145,
2155 + 'section' => 'betterdocs_single_docs_settings',
2156 + 'settings' => 'betterdocs_toc_list_item_hover_color'
2157 + ]
2158 + )
2159 + );
2160 + }
1683 2161
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 - }
2162 + public function toc_active_item_color() {
2163 + $this->customizer->add_setting(
2164 + 'betterdocs_toc_active_item_color',
2165 + [
2166 + 'capability' => 'edit_theme_options',
2167 + 'default' => $this->defaults['betterdocs_toc_active_item_color'],
2168 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2169 + ]
2170 + );
1692 2171
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 - ] );
2172 + $this->customizer->add_control(
2173 + new AlphaColorControl(
2174 + $this->customizer,
2175 + 'betterdocs_toc_active_item_color',
2176 + [
2177 + 'label' => __( 'Active Item Color', 'betterdocs' ),
2178 + 'priority' => 146,
2179 + 'section' => 'betterdocs_single_docs_settings',
2180 + 'settings' => 'betterdocs_toc_active_item_color'
2181 + ]
2182 + )
2183 + );
2184 + }
1698 2185
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 - }
2186 + public function toc_list_item_font_size() {
2187 + $this->customizer->add_setting(
2188 + 'betterdocs_toc_list_item_font_size',
2189 + [
2190 + 'default' => $this->defaults['betterdocs_toc_list_item_font_size'],
2191 + 'capability' => 'edit_theme_options',
2192 + 'transport' => 'postMessage',
2193 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1708 2194
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']
2195 + ]
2196 + );
1715 2197
1716 - ] );
2198 + $this->customizer->add_control(
2199 + new RangeValueControl(
2200 + $this->customizer,
2201 + 'betterdocs_toc_list_item_font_size',
2202 + [
2203 + 'type' => 'betterdocs-range-value',
2204 + 'section' => 'betterdocs_single_docs_settings',
2205 + 'settings' => 'betterdocs_toc_list_item_font_size',
2206 + 'label' => __( 'List Item Font Size', 'betterdocs' ),
2207 + 'priority' => 147,
2208 + 'input_attrs' => [
2209 + 'class' => '',
2210 + 'min' => 0,
2211 + 'max' => 50,
2212 + 'step' => 1,
2213 + 'suffix' => 'px' //optional suffix
2214 + ]
2215 + ]
2216 + )
2217 + );
2218 + }
1717 2219
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 - }
2220 + public function doc_single_toc_list_margin() {
2221 + $this->customizer->add_setting(
2222 + 'betterdocs_doc_single_toc_list_margin',
2223 + [
2224 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin'],
2225 + 'capability' => 'edit_theme_options',
2226 + 'transport' => 'postMessage',
2227 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1735 2228
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 - ] );
2229 + ]
2230 + );
1741 2231
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 - }
2232 + $this->customizer->add_control(
2233 + new TitleControl(
2234 + $this->customizer,
2235 + 'betterdocs_doc_single_toc_list_margin',
2236 + [
2237 + 'type' => 'betterdocs-title',
2238 + 'section' => 'betterdocs_single_docs_settings',
2239 + 'settings' => 'betterdocs_doc_single_toc_list_margin',
2240 + 'label' => __( 'TOC List Margin', 'betterdocs' ),
2241 + 'priority' => 148,
2242 + 'input_attrs' => [
2243 + 'id' => 'betterdocs_doc_single_toc_list_margin',
2244 + 'class' => 'betterdocs-dimension'
2245 + ]
2246 + ]
2247 + )
2248 + );
1751 2249
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 - ] );
2250 + $this->customizer->add_setting(
2251 + 'betterdocs_doc_single_toc_list_margin_top',
2252 + [
2253 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_top'],
2254 + 'capability' => 'edit_theme_options',
2255 + 'transport' => 'postMessage',
2256 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2257 + ]
2258 + );
1759 2259
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 - }
2260 + $this->customizer->add_control(
2261 + new DimensionControl(
2262 + $this->customizer,
2263 + 'betterdocs_doc_single_toc_list_margin_top',
2264 + [
2265 + 'type' => 'betterdocs-dimension',
2266 + 'section' => 'betterdocs_single_docs_settings',
2267 + 'settings' => 'betterdocs_doc_single_toc_list_margin_top',
2268 + 'label' => __( 'Top', 'betterdocs' ),
2269 + 'priority' => 148,
2270 + 'input_attrs' => [
2271 + 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
2272 + ]
2273 + ]
2274 + )
2275 + );
1773 2276
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 - ] );
2277 + $this->customizer->add_setting(
2278 + 'betterdocs_doc_single_toc_list_margin_right',
2279 + [
2280 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_right'],
2281 + 'capability' => 'edit_theme_options',
2282 + 'transport' => 'postMessage',
2283 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1780 2284
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 - }
2285 + ]
2286 + );
1794 2287
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']
2288 + $this->customizer->add_control(
2289 + new DimensionControl(
2290 + $this->customizer,
2291 + 'betterdocs_doc_single_toc_list_margin_right',
2292 + [
2293 + 'type' => 'betterdocs-dimension',
2294 + 'section' => 'betterdocs_single_docs_settings',
2295 + 'settings' => 'betterdocs_doc_single_toc_list_margin_right',
2296 + 'label' => __( 'Right', 'betterdocs' ),
2297 + 'priority' => 148,
2298 + 'input_attrs' => [
2299 + 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
2300 + ]
2301 + ]
2302 + )
2303 + );
1801 2304
1802 - ] );
2305 + $this->customizer->add_setting(
2306 + 'betterdocs_doc_single_toc_list_margin_bottom',
2307 + [
2308 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_bottom'],
2309 + 'capability' => 'edit_theme_options',
2310 + 'transport' => 'postMessage',
2311 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1803 2312
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 - }
2313 + ]
2314 + );
1821 2315
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 - ] );
2316 + $this->customizer->add_control(
2317 + new DimensionControl(
2318 + $this->customizer,
2319 + 'betterdocs_doc_single_toc_list_margin_bottom',
2320 + [
2321 + 'type' => 'betterdocs-dimension',
2322 + 'section' => 'betterdocs_single_docs_settings',
2323 + 'settings' => 'betterdocs_doc_single_toc_list_margin_bottom',
2324 + 'label' => __( 'Bottom', 'betterdocs' ),
2325 + 'priority' => 148,
2326 + 'input_attrs' => [
2327 + 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
2328 + ]
2329 + ]
2330 + )
2331 + );
1828 2332
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 - }
2333 + $this->customizer->add_setting(
2334 + 'betterdocs_doc_single_toc_list_margin_left',
2335 + [
2336 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_left'],
2337 + 'capability' => 'edit_theme_options',
2338 + 'transport' => 'postMessage',
2339 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1851 2340
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']
2341 + ]
2342 + );
1858 2343
1859 - ] );
2344 + $this->customizer->add_control(
2345 + new DimensionControl(
2346 + $this->customizer,
2347 + 'betterdocs_doc_single_toc_list_margin_left',
2348 + [
2349 + 'type' => 'betterdocs-dimension',
2350 + 'section' => 'betterdocs_single_docs_settings',
2351 + 'settings' => 'betterdocs_doc_single_toc_list_margin_left',
2352 + 'label' => __( 'Left', 'betterdocs' ),
2353 + 'priority' => 148,
2354 + 'input_attrs' => [
2355 + 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
2356 + ]
2357 + ]
2358 + )
2359 + );
2360 + }
1860 2361
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 - }
2362 + public function toc_list_number_color() {
2363 + $this->customizer->add_setting(
2364 + 'betterdocs_toc_list_number_color',
2365 + [
2366 + 'default' => $this->defaults['betterdocs_toc_list_number_color'],
2367 + 'capability' => 'edit_theme_options',
2368 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2369 + ]
2370 + );
1878 2371
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 - ] );
2372 + $this->customizer->add_control(
2373 + new AlphaColorControl(
2374 + $this->customizer,
2375 + 'betterdocs_toc_list_number_color',
2376 + [
2377 + 'label' => __( 'List Number Color', 'betterdocs' ),
2378 + 'priority' => 153,
2379 + 'section' => 'betterdocs_single_docs_settings',
2380 + 'settings' => 'betterdocs_toc_list_number_color'
2381 + ]
2382 + )
2383 + );
2384 + }
1886 2385
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 - }
2386 + public function toc_list_number_font_size() {
2387 + $this->customizer->add_setting(
2388 + 'betterdocs_toc_list_number_font_size',
2389 + [
2390 + 'default' => $this->defaults['betterdocs_toc_list_number_font_size'],
2391 + 'capability' => 'edit_theme_options',
2392 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1900 2393
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 - ] );
2394 + ]
2395 + );
1908 2396
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 - }
2397 + $this->customizer->add_control(
2398 + new RangeValueControl(
2399 + $this->customizer,
2400 + 'betterdocs_toc_list_number_font_size',
2401 + [
2402 + 'type' => 'betterdocs-range-value',
2403 + 'section' => 'betterdocs_single_docs_settings',
2404 + 'settings' => 'betterdocs_toc_list_number_font_size',
2405 + 'label' => __( 'List Number Font Size', 'betterdocs' ),
2406 + 'priority' => 154,
2407 + 'input_attrs' => [
2408 + 'class' => '',
2409 + 'min' => 0,
2410 + 'max' => 50,
2411 + 'step' => 1,
2412 + 'suffix' => 'px' //optional suffix
2413 + ]
2414 + ]
2415 + )
2416 + );
2417 + }
1922 2418
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']
2419 + public function toc_margin_bottom() {
2420 + $this->customizer->add_setting(
2421 + 'betterdocs_toc_margin_bottom',
2422 + [
2423 + 'default' => $this->defaults['betterdocs_toc_margin_bottom'],
2424 + 'capability' => 'edit_theme_options',
2425 + 'transport' => 'postMessage',
2426 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1929 2427
1930 - ] );
2428 + ]
2429 + );
1931 2430
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 - }
2431 + $this->customizer->add_control(
2432 + new RangeValueControl(
2433 + $this->customizer,
2434 + 'betterdocs_toc_margin_bottom',
2435 + [
2436 + 'type' => 'betterdocs-range-value',
2437 + 'section' => 'betterdocs_single_docs_settings',
2438 + 'settings' => 'betterdocs_toc_margin_bottom',
2439 + 'label' => __( 'TOC Margin Bottom', 'betterdocs' ),
2440 + 'priority' => 155,
2441 + 'input_attrs' => [
2442 + 'class' => '',
2443 + 'min' => 0,
2444 + 'max' => 500,
2445 + 'step' => 1,
2446 + 'suffix' => 'px' // optional suffix
2447 + ]
2448 + ]
2449 + )
2450 + );
2451 + }
1949 2452
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 - ] );
2453 + public function doc_single_toc_title_layout_8_9() {
2454 + $this->customizer->add_setting(
2455 + 'betterdocs_doc_single_toc_title_layout_8_9',
2456 + [
2457 + 'default' => $this->defaults['betterdocs_doc_single_toc_title_layout_8_9'],
2458 + 'sanitize_callback' => 'esc_html'
2459 + ]
2460 + );
1956 2461
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 - }
2462 + $this->customizer->add_control(
2463 + new SeparatorControl(
2464 + $this->customizer,
2465 + 'betterdocs_doc_single_toc_title_layout_8_9',
2466 + [
2467 + 'label' => __( 'Table of Contents', 'betterdocs' ),
2468 + 'priority' => 132,
2469 + 'settings' => 'betterdocs_doc_single_toc_title_layout_8_9',
2470 + 'section' => 'betterdocs_single_docs_settings'
2471 + ]
2472 + )
2473 + );
2474 + }
1970 2475
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 - ] );
2476 + // public function sticky_toc_width_layout_8_9() {
2477 + // $this->customizer->add_setting( 'betterdocs_sticky_toc_width_layout_8_9', [
2478 + // 'default' => $this->defaults['betterdocs_sticky_toc_width_layout_8_9'],
2479 + // 'capability' => 'edit_theme_options',
2480 + // 'transport' => 'postMessage',
2481 + // 'sanitize_callback' => [$this->sanitizer, 'integer']
1978 2482
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 - }
2483 + // ] );
1992 2484
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']
2485 + // $this->customizer->add_control( new RangeValueControl(
2486 + // $this->customizer, 'betterdocs_sticky_toc_width_layout_8_9', [
2487 + // 'type' => 'betterdocs-range-value',
2488 + // 'section' => 'betterdocs_single_docs_settings',
2489 + // 'settings' => 'betterdocs_sticky_toc_width_layout_8_9',
2490 + // 'label' => __( 'Sticky Toc Width', 'betterdocs' ),
2491 + // 'priority' => 133,
2492 + // 'input_attrs' => [
2493 + // 'class' => '',
2494 + // 'min' => 100,
2495 + // 'max' => 500,
2496 + // 'step' => 1,
2497 + // 'suffix' => 'px' //optional suffix
2498 + // ]
2499 + // ] )
2500 + // );
2501 + // }
1999 2502
2000 - ] );
2503 + // public function sticky_toc_zindex_layout_8_9() {
2504 + // $this->customizer->add_setting( 'betterdocs_sticky_toc_zindex_layout_8_9', [
2505 + // 'default' => $this->defaults['betterdocs_sticky_toc_zindex_layout_8_9'],
2506 + // 'capability' => 'edit_theme_options',
2507 + // 'transport' => 'postMessage',
2508 + // 'sanitize_callback' => [$this->sanitizer, 'integer']
2509 + // ] );
2001 2510
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 - }
2511 + // $this->customizer->add_control( new NumberControl(
2512 + // $this->customizer, 'betterdocs_sticky_toc_zindex_layout_8_9', [
2513 + // 'type' => 'betterdocs-number',
2514 + // 'section' => 'betterdocs_single_docs_settings',
2515 + // 'settings' => 'betterdocs_sticky_toc_zindex_layout_8_9',
2516 + // 'label' => __( 'Sticky Toc z-index', 'betterdocs' ),
2517 + // 'priority' => 134
2518 + // ] )
2519 + // );
2520 + // }
2019 2521
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 - ] );
2522 + // public function sticky_toc_margin_top_layout_8_9() {
2523 + // $this->customizer->add_setting( 'betterdocs_sticky_toc_margin_top_layout_8_9', [
2524 + // 'default' => $this->defaults['betterdocs_sticky_toc_margin_top_layout_8_9'],
2525 + // 'capability' => 'edit_theme_options',
2526 + // 'transport' => 'postMessage',
2527 + // 'sanitize_callback' => [$this->sanitizer, 'integer']
2027 2528
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 - }
2529 + // ] );
2041 2530
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']
2531 + // $this->customizer->add_control( new RangeValueControl(
2532 + // $this->customizer, 'betterdocs_sticky_toc_margin_top_layout_8_9', [
2533 + // 'type' => 'betterdocs-range-value',
2534 + // 'section' => 'betterdocs_single_docs_settings',
2535 + // 'settings' => 'betterdocs_sticky_toc_margin_top_layout_8_9',
2536 + // 'label' => __( 'Sticky Toc Margin Top', 'betterdocs' ),
2537 + // 'priority' => 135,
2538 + // 'input_attrs' => [
2539 + // 'class' => '',
2540 + // 'min' => 0,
2541 + // 'max' => 500,
2542 + // 'step' => 1,
2543 + // 'suffix' => 'px' //optional suffix
2544 + // ]
2545 + // ] )
2546 + // );
2547 + // }
2048 2548
2049 - ] );
2549 + public function toc_bg_color_layout_8_9() {
2550 + $this->customizer->add_setting(
2551 + 'betterdocs_toc_bg_color_layout_8_9',
2552 + [
2553 + 'capability' => 'edit_theme_options',
2554 + 'default' => $this->defaults['betterdocs_toc_bg_color_layout_8_9'],
2555 + 'transport' => 'postMessage',
2556 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2557 + ]
2558 + );
2050 2559
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 - }
2560 + $this->customizer->add_control(
2561 + new AlphaColorControl(
2562 + $this->customizer,
2563 + 'betterdocs_toc_bg_color_layout_8_9',
2564 + [
2565 + 'label' => __( 'Background Color', 'betterdocs' ),
2566 + 'priority' => 136,
2567 + 'section' => 'betterdocs_single_docs_settings',
2568 + 'settings' => 'betterdocs_toc_bg_color_layout_8_9'
2569 + ]
2570 + )
2571 + );
2572 + }
2068 2573
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 - ] );
2574 + public function doc_single_toc_padding_layout_8_9() {
2575 + $this->customizer->add_setting(
2576 + 'betterdocs_doc_single_toc_padding_layout_8_9',
2577 + [
2578 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_layout_8_9'],
2579 + 'capability' => 'edit_theme_options',
2580 + 'transport' => 'postMessage',
2581 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2076 2582
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 - }
2583 + ]
2584 + );
2090 2585
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']
2586 + $this->customizer->add_control(
2587 + new TitleControl(
2588 + $this->customizer,
2589 + 'betterdocs_doc_single_toc_padding_layout_8_9',
2590 + [
2591 + 'type' => 'betterdocs-title',
2592 + 'section' => 'betterdocs_single_docs_settings',
2593 + 'settings' => 'betterdocs_doc_single_toc_padding_layout_8_9',
2594 + 'label' => __( 'Content Area Padding', 'betterdocs' ),
2595 + 'priority' => 137,
2596 + 'input_attrs' => [
2597 + 'id' => 'betterdocs_doc_single_toc_padding_layout_8_9',
2598 + 'class' => 'betterdocs-dimension'
2599 + ]
2600 + ]
2601 + )
2602 + );
2097 2603
2098 - ] );
2604 + $this->customizer->add_setting(
2605 + 'betterdocs_doc_single_toc_padding_top_layout_8_9',
2606 + [
2607 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_top_layout_8_9'],
2608 + 'capability' => 'edit_theme_options',
2609 + 'transport' => 'postMessage',
2610 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2611 + ]
2612 + );
2099 2613
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 - }
2614 + $this->customizer->add_control(
2615 + new DimensionControl(
2616 + $this->customizer,
2617 + 'betterdocs_doc_single_toc_padding_top_layout_8_9',
2618 + [
2619 + 'type' => 'betterdocs-dimension',
2620 + 'section' => 'betterdocs_single_docs_settings',
2621 + 'settings' => 'betterdocs_doc_single_toc_padding_top_layout_8_9',
2622 + 'label' => __( 'Top', 'betterdocs' ),
2623 + 'priority' => 137,
2624 + 'input_attrs' => [
2625 + 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
2626 + ]
2627 + ]
2628 + )
2629 + );
2117 2630
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 - ] );
2631 + $this->customizer->add_setting(
2632 + 'betterdocs_doc_single_toc_padding_right_layout_8_9',
2633 + [
2634 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_right_layout_8_9'],
2635 + 'capability' => 'edit_theme_options',
2636 + 'transport' => 'postMessage',
2637 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2125 2638
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 - }
2639 + ]
2640 + );
2139 2641
2140 - public function reactions_title() {
2141 - $this->customizer->add_setting( 'betterdocs_reactions_title', [
2142 - 'default' => '',
2143 - 'sanitize_callback' => 'esc_html'
2144 - ] );
2642 + $this->customizer->add_control(
2643 + new DimensionControl(
2644 + $this->customizer,
2645 + 'betterdocs_doc_single_toc_padding_right_layout_8_9',
2646 + [
2647 + 'type' => 'betterdocs-dimension',
2648 + 'section' => 'betterdocs_single_docs_settings',
2649 + 'settings' => 'betterdocs_doc_single_toc_padding_right_layout_8_9',
2650 + 'label' => __( 'Right', 'betterdocs' ),
2651 + 'priority' => 137,
2652 + 'input_attrs' => [
2653 + 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
2654 + ]
2655 + ]
2656 + )
2657 + );
2145 2658
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 - }
2659 + $this->customizer->add_setting(
2660 + 'betterdocs_doc_single_toc_padding_bottom_layout_8_9',
2661 + [
2662 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_bottom_layout_8_9'],
2663 + 'capability' => 'edit_theme_options',
2664 + 'transport' => 'postMessage',
2665 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2155 2666
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 - ] );
2667 + ]
2668 + );
2162 2669
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 - }
2670 + $this->customizer->add_control(
2671 + new DimensionControl(
2672 + $this->customizer,
2673 + 'betterdocs_doc_single_toc_padding_bottom_layout_8_9',
2674 + [
2675 + 'type' => 'betterdocs-dimension',
2676 + 'section' => 'betterdocs_single_docs_settings',
2677 + 'settings' => 'betterdocs_doc_single_toc_padding_bottom_layout_8_9',
2678 + 'label' => __( 'Bottom', 'betterdocs' ),
2679 + 'priority' => 137,
2680 + 'input_attrs' => [
2681 + 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
2682 + ]
2683 + ]
2684 + )
2685 + );
2173 2686
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 - ] );
2687 + $this->customizer->add_setting(
2688 + 'betterdocs_doc_single_toc_padding_left_layout_8_9',
2689 + [
2690 + 'default' => $this->defaults['betterdocs_doc_single_toc_padding_left_layout_8_9'],
2691 + 'capability' => 'edit_theme_options',
2692 + 'transport' => 'postMessage',
2693 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2180 2694
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 - }
2695 + ]
2696 + );
2195 2697
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 - ] );
2698 + $this->customizer->add_control(
2699 + new DimensionControl(
2700 + $this->customizer,
2701 + 'betterdocs_doc_single_toc_padding_left_layout_8_9',
2702 + [
2703 + 'type' => 'betterdocs-dimension',
2704 + 'section' => 'betterdocs_single_docs_settings',
2705 + 'settings' => 'betterdocs_doc_single_toc_padding_left_layout_8_9',
2706 + 'label' => __( 'Left', 'betterdocs' ),
2707 + 'priority' => 137,
2708 + 'input_attrs' => [
2709 + 'class' => 'betterdocs_doc_single_toc_padding_layout_8_9 betterdocs-dimension'
2710 + ]
2711 + ]
2712 + )
2713 + );
2714 + }
2203 2715
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 - }
2716 + public function doc_single_toc_margin_layout_8_9() {
2717 + $this->customizer->add_setting(
2718 + 'betterdocs_doc_single_toc_margin_layout_8_9',
2719 + [
2720 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_layout_8_9'],
2721 + 'capability' => 'edit_theme_options',
2722 + 'transport' => 'postMessage',
2723 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2724 + ]
2725 + );
2217 2726
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 - ] );
2727 + $this->customizer->add_control(
2728 + new TitleControl(
2729 + $this->customizer,
2730 + 'betterdocs_doc_single_toc_margin_layout_8_9',
2731 + [
2732 + 'type' => 'betterdocs-title',
2733 + 'section' => 'betterdocs_single_docs_settings',
2734 + 'settings' => 'betterdocs_doc_single_toc_margin_layout_8_9',
2735 + 'label' => __( 'Content Area Margin', 'betterdocs' ),
2736 + 'priority' => 141,
2737 + 'input_attrs' => [
2738 + 'id' => 'betterdocs_doc_single_toc_margin_layout_8_9',
2739 + 'class' => 'betterdocs-dimension'
2740 + ]
2741 + ]
2742 + )
2743 + );
2225 2744
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 - }
2745 + $this->customizer->add_setting(
2746 + 'betterdocs_doc_single_toc_margin_top_layout_8_9',
2747 + [
2748 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_top_layout_8_9'],
2749 + 'capability' => 'edit_theme_options',
2750 + 'transport' => 'postMessage',
2751 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2752 + ]
2753 + );
2239 2754
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 - ] );
2755 + $this->customizer->add_control(
2756 + new DimensionControl(
2757 + $this->customizer,
2758 + 'betterdocs_doc_single_toc_margin_top_layout_8_9',
2759 + [
2760 + 'type' => 'betterdocs-dimension',
2761 + 'section' => 'betterdocs_single_docs_settings',
2762 + 'settings' => 'betterdocs_doc_single_toc_margin_top_layout_8_9',
2763 + 'label' => __( 'Top', 'betterdocs' ),
2764 + 'priority' => 141,
2765 + 'input_attrs' => [
2766 + 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
2767 + ]
2768 + ]
2769 + )
2770 + );
2247 2771
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 - }
2772 + $this->customizer->add_setting(
2773 + 'betterdocs_doc_single_toc_margin_right_layout_8_9',
2774 + [
2775 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_right_layout_8_9'],
2776 + 'capability' => 'edit_theme_options',
2777 + 'transport' => 'postMessage',
2778 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2779 + ]
2780 + );
2261 2781
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 - ] );
2782 + $this->customizer->add_control(
2783 + new DimensionControl(
2784 + $this->customizer,
2785 + 'betterdocs_doc_single_toc_margin_right_layout_8_9',
2786 + [
2787 + 'type' => 'betterdocs-dimension',
2788 + 'section' => 'betterdocs_single_docs_settings',
2789 + 'settings' => 'betterdocs_doc_single_toc_margin_right_layout_8_9',
2790 + 'label' => __( 'Right', 'betterdocs' ),
2791 + 'priority' => 141,
2792 + 'input_attrs' => [
2793 + 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
2794 + ]
2795 + ]
2796 + )
2797 + );
2268 2798
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 - }
2799 + $this->customizer->add_setting(
2800 + 'betterdocs_doc_single_toc_margin_bottom_layout_8_9',
2801 + [
2802 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_bottom_layout_8_9'],
2803 + 'capability' => 'edit_theme_options',
2804 + 'transport' => 'postMessage',
2805 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2806 + ]
2807 + );
2282 2808
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 - ] );
2809 + $this->customizer->add_control(
2810 + new DimensionControl(
2811 + $this->customizer,
2812 + 'betterdocs_doc_single_toc_margin_bottom_layout_8_9',
2813 + [
2814 + 'type' => 'betterdocs-dimension',
2815 + 'section' => 'betterdocs_single_docs_settings',
2816 + 'settings' => 'betterdocs_doc_single_toc_margin_bottom_layout_8_9',
2817 + 'label' => __( 'Bottom', 'betterdocs' ),
2818 + 'priority' => 141,
2819 + 'input_attrs' => [
2820 + 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
2821 + ]
2822 + ]
2823 + )
2824 + );
2289 2825
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 - }
2826 + $this->customizer->add_setting(
2827 + 'betterdocs_doc_single_toc_margin_left_layout_8_9',
2828 + [
2829 + 'default' => $this->defaults['betterdocs_doc_single_toc_margin_left_layout_8_9'],
2830 + 'capability' => 'edit_theme_options',
2831 + 'transport' => 'postMessage',
2832 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2833 + ]
2834 + );
2303 2835
2304 - public function attachments_heading() {
2305 - $this->customizer->add_setting( 'betterdocs_single_doc_attachment_heading', [
2306 - 'default' => '',
2307 - 'sanitize_callback' => 'esc_html'
2308 - ] );
2836 + $this->customizer->add_control(
2837 + new DimensionControl(
2838 + $this->customizer,
2839 + 'betterdocs_doc_single_toc_margin_left_layout_8_9',
2840 + [
2841 + 'type' => 'betterdocs-dimension',
2842 + 'section' => 'betterdocs_single_docs_settings',
2843 + 'settings' => 'betterdocs_doc_single_toc_margin_left_layout_8_9',
2844 + 'label' => __( 'Left', 'betterdocs' ),
2845 + 'priority' => 141,
2846 + 'input_attrs' => [
2847 + 'class' => 'betterdocs_doc_single_toc_margin_layout_8_9 betterdocs-dimension'
2848 + ]
2849 + ]
2850 + )
2851 + );
2852 + }
2309 2853
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 - }
2854 + public function toc_title_color_layout_8_9() {
2855 + $this->customizer->add_setting(
2856 + 'betterdocs_toc_title_color_layout_8_9',
2857 + [
2858 + 'capability' => 'edit_theme_options',
2859 + 'default' => $this->defaults['betterdocs_toc_title_color_layout_8_9'],
2860 + 'transport' => 'postMessage',
2861 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2862 + ]
2863 + );
2319 2864
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 - ] );
2865 + $this->customizer->add_control(
2866 + new AlphaColorControl(
2867 + $this->customizer,
2868 + 'betterdocs_toc_title_color_layout_8_9',
2869 + [
2870 + 'label' => __( 'Title Color', 'betterdocs' ),
2871 + 'priority' => 142,
2872 + 'section' => 'betterdocs_single_docs_settings',
2873 + 'settings' => 'betterdocs_toc_title_color_layout_8_9'
2874 + ]
2875 + )
2876 + );
2877 + }
2327 2878
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 - }
2879 + public function toc_title_margin_layout_8_9() {
2880 + $this->customizer->add_setting(
2881 + 'toc_title_margin_layout_8_9',
2882 + [
2883 + 'default' => $this->defaults['toc_title_margin_layout_8_9'],
2884 + 'capability' => 'edit_theme_options',
2885 + 'transport' => 'postMessage',
2886 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2887 + ]
2888 + );
2341 2889
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']
2890 + $this->customizer->add_control(
2891 + new TitleControl(
2892 + $this->customizer,
2893 + 'toc_title_margin_layout_8_9',
2894 + [
2895 + 'type' => 'betterdocs-title',
2896 + 'section' => 'betterdocs_single_docs_settings',
2897 + 'settings' => 'toc_title_margin_layout_8_9',
2898 + 'label' => __( 'Margin', 'betterdocs' ),
2899 + 'priority' => 142,
2900 + 'input_attrs' => [
2901 + 'id' => 'toc_title_margin_layout_8_9',
2902 + 'class' => 'betterdocs-dimension'
2903 + ]
2904 + ]
2905 + )
2906 + );
2348 2907
2349 - ] );
2908 + $this->customizer->add_setting(
2909 + 'toc_title_margin_top_layout_8_9',
2910 + [
2911 + 'default' => $this->defaults['toc_title_margin_top_layout_8_9'],
2912 + 'capability' => 'edit_theme_options',
2913 + 'transport' => 'postMessage',
2914 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2915 + ]
2916 + );
2350 2917
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 - );
2918 + $this->customizer->add_control(
2919 + new DimensionControl(
2920 + $this->customizer,
2921 + 'toc_title_margin_top_layout_8_9',
2922 + [
2923 + 'type' => 'betterdocs-dimension',
2924 + 'section' => 'betterdocs_single_docs_settings',
2925 + 'settings' => 'toc_title_margin_top_layout_8_9',
2926 + 'label' => __( 'Top', 'betterdocs' ),
2927 + 'priority' => 142,
2928 + 'input_attrs' => [
2929 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
2930 + ]
2931 + ]
2932 + )
2933 + );
2364 2934
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 - ] );
2935 + $this->customizer->add_setting(
2936 + 'toc_title_margin_right_layout_8_9',
2937 + [
2938 + 'default' => $this->defaults['toc_title_margin_right_layout_8_9'],
2939 + 'capability' => 'edit_theme_options',
2940 + 'transport' => 'postMessage',
2941 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2942 + ]
2943 + );
2371 2944
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 - );
2945 + $this->customizer->add_control(
2946 + new DimensionControl(
2947 + $this->customizer,
2948 + 'toc_title_margin_right_layout_8_9',
2949 + [
2950 + 'type' => 'betterdocs-dimension',
2951 + 'section' => 'betterdocs_single_docs_settings',
2952 + 'settings' => 'toc_title_margin_right_layout_8_9',
2953 + 'label' => __( 'Right', 'betterdocs' ),
2954 + 'priority' => 142,
2955 + 'input_attrs' => [
2956 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
2957 + ]
2958 + ]
2959 + )
2960 + );
2384 2961
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']
2962 + $this->customizer->add_setting(
2963 + 'toc_title_margin_bottom_layout_8_9',
2964 + [
2965 + 'default' => $this->defaults['toc_title_margin_bottom_layout_8_9'],
2966 + 'capability' => 'edit_theme_options',
2967 + 'transport' => 'postMessage',
2968 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2969 + ]
2970 + );
2390 2971
2391 - ] );
2972 + $this->customizer->add_control(
2973 + new DimensionControl(
2974 + $this->customizer,
2975 + 'toc_title_margin_bottom_layout_8_9',
2976 + [
2977 + 'type' => 'betterdocs-dimension',
2978 + 'section' => 'betterdocs_single_docs_settings',
2979 + 'settings' => 'toc_title_margin_bottom_layout_8_9',
2980 + 'label' => __( 'Bottom', 'betterdocs' ),
2981 + 'priority' => 142,
2982 + 'input_attrs' => [
2983 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
2984 + ]
2985 + ]
2986 + )
2987 + );
2392 2988
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 - );
2989 + $this->customizer->add_setting(
2990 + 'toc_title_margin_left_layout_8_9',
2991 + [
2992 + 'default' => $this->defaults['toc_title_margin_left_layout_8_9'],
2993 + 'capability' => 'edit_theme_options',
2994 + 'transport' => 'postMessage',
2995 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2996 + ]
2997 + );
2405 2998
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']
2999 + $this->customizer->add_control(
3000 + new DimensionControl(
3001 + $this->customizer,
3002 + 'toc_title_margin_left_layout_8_9',
3003 + [
3004 + 'type' => 'betterdocs-dimension',
3005 + 'section' => 'betterdocs_single_docs_settings',
3006 + 'settings' => 'toc_title_margin_left_layout_8_9',
3007 + 'label' => __( 'Left', 'betterdocs' ),
3008 + 'priority' => 142,
3009 + 'input_attrs' => [
3010 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
3011 + ]
3012 + ]
3013 + )
3014 + );
3015 + }
2411 3016
2412 - ] );
3017 + public function toc_title_font_size_layout_8_9() {
3018 + $this->customizer->add_setting(
3019 + 'betterdocs_toc_title_font_size_layout_8_9',
3020 + [
3021 + 'default' => $this->defaults['betterdocs_toc_title_font_size_layout_8_9'],
3022 + 'capability' => 'edit_theme_options',
3023 + 'transport' => 'postMessage',
3024 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2413 3025
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 - );
3026 + ]
3027 + );
2426 3028
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']
3029 + $this->customizer->add_control(
3030 + new RangeValueControl(
3031 + $this->customizer,
3032 + 'betterdocs_toc_title_font_size_layout_8_9',
3033 + [
3034 + 'type' => 'betterdocs-range-value',
3035 + 'section' => 'betterdocs_single_docs_settings',
3036 + 'settings' => 'betterdocs_toc_title_font_size_layout_8_9',
3037 + 'label' => __( 'Title Font Size', 'betterdocs' ),
3038 + 'priority' => 143,
3039 + 'input_attrs' => [
3040 + 'class' => '',
3041 + 'min' => 0,
3042 + 'max' => 50,
3043 + 'step' => 1,
3044 + 'suffix' => 'px' //optional suffix
3045 + ]
3046 + ]
3047 + )
3048 + );
3049 + }
2432 3050
2433 - ] );
3051 + public function toc_list_item_color_layout_8_9() {
3052 + $this->customizer->add_setting(
3053 + 'betterdocs_toc_list_item_color_layout_8_9',
3054 + [
3055 + 'default' => $this->defaults['betterdocs_toc_list_item_color_layout_8_9'],
3056 + 'transport' => 'postMessage',
3057 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3058 + ]
3059 + );
2434 3060
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 - }
3061 + $this->customizer->add_control(
3062 + new AlphaColorControl(
3063 + $this->customizer,
3064 + 'betterdocs_toc_list_item_color_layout_8_9',
3065 + [
3066 + 'label' => __( 'List Item Color', 'betterdocs' ),
3067 + 'priority' => 144,
3068 + 'section' => 'betterdocs_single_docs_settings',
3069 + 'settings' => 'betterdocs_toc_list_item_color_layout_8_9'
3070 + ]
3071 + )
3072 + );
3073 + }
2448 3074
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']
3075 + public function toc_list_item_hover_color_layout_8_9() {
3076 + $this->customizer->add_setting(
3077 + 'betterdocs_toc_list_item_hover_color_layout_8_9',
3078 + [
3079 + 'capability' => 'edit_theme_options',
3080 + 'default' => $this->defaults['betterdocs_toc_list_item_hover_color_layout_8_9'],
3081 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3082 + ]
3083 + );
2455 3084
2456 - ] );
3085 + $this->customizer->add_control(
3086 + new AlphaColorControl(
3087 + $this->customizer,
3088 + 'betterdocs_toc_list_item_hover_color_layout_8_9',
3089 + [
3090 + 'label' => __( 'List Item Hover Color', 'betterdocs' ),
3091 + 'priority' => 145,
3092 + 'section' => 'betterdocs_single_docs_settings',
3093 + 'settings' => 'betterdocs_toc_list_item_hover_color_layout_8_9'
3094 + ]
3095 + )
3096 + );
3097 + }
2457 3098
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 - );
3099 + public function toc_active_item_color_layout_8_9() {
3100 + $this->customizer->add_setting(
3101 + 'betterdocs_toc_active_item_color_layout_8_9',
3102 + [
3103 + 'capability' => 'edit_theme_options',
3104 + 'default' => $this->defaults['betterdocs_toc_active_item_color_layout_8_9'],
3105 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3106 + ]
3107 + );
2471 3108
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 - ] );
3109 + $this->customizer->add_control(
3110 + new AlphaColorControl(
3111 + $this->customizer,
3112 + 'betterdocs_toc_active_item_color_layout_8_9',
3113 + [
3114 + 'label' => __( 'Active Item Color', 'betterdocs' ),
3115 + 'priority' => 146,
3116 + 'section' => 'betterdocs_single_docs_settings',
3117 + 'settings' => 'betterdocs_toc_active_item_color_layout_8_9'
3118 + ]
3119 + )
3120 + );
3121 + }
2478 3122
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 - );
3123 + public function toc_active_item_border_color_layout_8_9() {
3124 + $this->customizer->add_setting(
3125 + 'toc_active_item_border_color_layout_8_9',
3126 + [
3127 + 'capability' => 'edit_theme_options',
3128 + 'default' => $this->defaults['toc_active_item_border_color_layout_8_9'],
3129 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3130 + ]
3131 + );
2491 3132
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']
3133 + $this->customizer->add_control(
3134 + new AlphaColorControl(
3135 + $this->customizer,
3136 + 'toc_active_item_border_color_layout_8_9',
3137 + [
3138 + 'label' => __( 'Active Item Border Color', 'betterdocs' ),
3139 + 'priority' => 146,
3140 + 'section' => 'betterdocs_single_docs_settings',
3141 + 'settings' => 'toc_active_item_border_color_layout_8_9'
3142 + ]
3143 + )
3144 + );
3145 + }
2497 3146
2498 - ] );
3147 + public function toc_list_item_font_size_layout_8_9() {
3148 + $this->customizer->add_setting(
3149 + 'betterdocs_toc_list_item_font_size_layout_8_9',
3150 + [
3151 + 'default' => $this->defaults['betterdocs_toc_list_item_font_size_layout_8_9'],
3152 + 'capability' => 'edit_theme_options',
3153 + 'transport' => 'postMessage',
3154 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2499 3155
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 - );
3156 + ]
3157 + );
2512 3158
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']
3159 + $this->customizer->add_control(
3160 + new RangeValueControl(
3161 + $this->customizer,
3162 + 'betterdocs_toc_list_item_font_size_layout_8_9',
3163 + [
3164 + 'type' => 'betterdocs-range-value',
3165 + 'section' => 'betterdocs_single_docs_settings',
3166 + 'settings' => 'betterdocs_toc_list_item_font_size_layout_8_9',
3167 + 'label' => __( 'List Item Font Size', 'betterdocs' ),
3168 + 'priority' => 147,
3169 + 'input_attrs' => [
3170 + 'class' => '',
3171 + 'min' => 0,
3172 + 'max' => 50,
3173 + 'step' => 1,
3174 + 'suffix' => 'px' //optional suffix
3175 + ]
3176 + ]
3177 + )
3178 + );
3179 + }
2518 3180
2519 - ] );
3181 + public function doc_single_toc_list_margin_layout_8_9() {
3182 + $this->customizer->add_setting(
3183 + 'betterdocs_doc_single_toc_list_margin_layout_8_9',
3184 + [
3185 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_layout_8_9'],
3186 + 'capability' => 'edit_theme_options',
3187 + 'transport' => 'postMessage',
3188 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2520 3189
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 - );
3190 + ]
3191 + );
2533 3192
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']
3193 + $this->customizer->add_control(
3194 + new TitleControl(
3195 + $this->customizer,
3196 + 'betterdocs_doc_single_toc_list_margin_layout_8_9',
3197 + [
3198 + 'type' => 'betterdocs-title',
3199 + 'section' => 'betterdocs_single_docs_settings',
3200 + 'settings' => 'betterdocs_doc_single_toc_list_margin_layout_8_9',
3201 + 'label' => __( 'TOC List Margin', 'betterdocs' ),
3202 + 'priority' => 148,
3203 + 'input_attrs' => [
3204 + 'id' => 'betterdocs_doc_single_toc_list_margin_layout_8_9',
3205 + 'class' => 'betterdocs-dimension'
3206 + ]
3207 + ]
3208 + )
3209 + );
2539 3210
2540 - ] );
3211 + $this->customizer->add_setting(
3212 + 'betterdocs_doc_single_toc_list_margin_top_layout_8_9',
3213 + [
3214 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_top_layout_8_9'],
3215 + 'capability' => 'edit_theme_options',
3216 + 'transport' => 'postMessage',
3217 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3218 + ]
3219 + );
2541 3220
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 - }
3221 + $this->customizer->add_control(
3222 + new DimensionControl(
3223 + $this->customizer,
3224 + 'betterdocs_doc_single_toc_list_margin_top_layout_8_9',
3225 + [
3226 + 'type' => 'betterdocs-dimension',
3227 + 'section' => 'betterdocs_single_docs_settings',
3228 + 'settings' => 'betterdocs_doc_single_toc_list_margin_top_layout_8_9',
3229 + 'label' => __( 'Top', 'betterdocs' ),
3230 + 'priority' => 148,
3231 + 'input_attrs' => [
3232 + 'class' => 'betterdocs_doc_single_toc_list_margin_layout_8_9 betterdocs-dimension'
3233 + ]
3234 + ]
3235 + )
3236 + );
2555 3237
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 - ] );
3238 + $this->customizer->add_setting(
3239 + 'betterdocs_doc_single_toc_list_margin_right_layout_8_9',
3240 + [
3241 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_right_layout_8_9'],
3242 + 'capability' => 'edit_theme_options',
3243 + 'transport' => 'postMessage',
3244 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2563 3245
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 - }
3246 + ]
3247 + );
2577 3248
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']
3249 + $this->customizer->add_control(
3250 + new DimensionControl(
3251 + $this->customizer,
3252 + 'betterdocs_doc_single_toc_list_margin_right_layout_8_9',
3253 + [
3254 + 'type' => 'betterdocs-dimension',
3255 + 'section' => 'betterdocs_single_docs_settings',
3256 + 'settings' => 'betterdocs_doc_single_toc_list_margin_right_layout_8_9',
3257 + 'label' => __( 'Right', 'betterdocs' ),
3258 + 'priority' => 148,
3259 + 'input_attrs' => [
3260 + 'class' => 'betterdocs_doc_single_toc_list_margin betterdocs-dimension'
3261 + ]
3262 + ]
3263 + )
3264 + );
2584 3265
2585 - ] );
3266 + $this->customizer->add_setting(
3267 + 'betterdocs_doc_single_toc_list_margin_bottom_layout_8_9',
3268 + [
3269 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_bottom_layout_8_9'],
3270 + 'capability' => 'edit_theme_options',
3271 + 'transport' => 'postMessage',
3272 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2586 3273
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 - );
3274 + ]
3275 + );
2600 3276
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 - ] );
3277 + $this->customizer->add_control(
3278 + new DimensionControl(
3279 + $this->customizer,
3280 + 'betterdocs_doc_single_toc_list_margin_bottom_layout_8_9',
3281 + [
3282 + 'type' => 'betterdocs-dimension',
3283 + 'section' => 'betterdocs_single_docs_settings',
3284 + 'settings' => 'betterdocs_doc_single_toc_list_margin_bottom_layout_8_9',
3285 + 'label' => __( 'Bottom', 'betterdocs' ),
3286 + 'priority' => 148,
3287 + 'input_attrs' => [
3288 + 'class' => 'betterdocs_doc_single_toc_list_margin_layout_8_9 betterdocs-dimension'
3289 + ]
3290 + ]
3291 + )
3292 + );
2607 3293
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 - );
3294 + $this->customizer->add_setting(
3295 + 'betterdocs_doc_single_toc_list_margin_left_layout_8_9',
3296 + [
3297 + 'default' => $this->defaults['betterdocs_doc_single_toc_list_margin_left_layout_8_9'],
3298 + 'capability' => 'edit_theme_options',
3299 + 'transport' => 'postMessage',
3300 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2620 3301
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']
3302 + ]
3303 + );
2626 3304
2627 - ] );
3305 + $this->customizer->add_control(
3306 + new DimensionControl(
3307 + $this->customizer,
3308 + 'betterdocs_doc_single_toc_list_margin_left_layout_8_9',
3309 + [
3310 + 'type' => 'betterdocs-dimension',
3311 + 'section' => 'betterdocs_single_docs_settings',
3312 + 'settings' => 'betterdocs_doc_single_toc_list_margin_left_layout_8_9',
3313 + 'label' => __( 'Left', 'betterdocs' ),
3314 + 'priority' => 148,
3315 + 'input_attrs' => [
3316 + 'class' => 'betterdocs_doc_single_toc_list_margin_layout_8_9 betterdocs-dimension'
3317 + ]
3318 + ]
3319 + )
3320 + );
3321 + }
2628 3322
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 - );
3323 + public function doc_author_section() {
3324 + $this->customizer->add_setting(
3325 + 'betterdocs_doc_author_section',
3326 + [
3327 + 'default' => $this->defaults['betterdocs_doc_author_section'],
3328 + 'sanitize_callback' => 'esc_html'
3329 + ]
3330 + );
2641 3331
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']
3332 + $this->customizer->add_control(
3333 + new SeparatorControl(
3334 + $this->customizer,
3335 + 'betterdocs_doc_author_section',
3336 + [
3337 + 'label' => __( 'Author', 'betterdocs' ),
3338 + 'priority' => 155,
3339 + 'settings' => 'betterdocs_doc_author_section',
3340 + 'section' => 'betterdocs_single_docs_settings'
3341 + ]
3342 + )
3343 + );
3344 + }
2647 3345
2648 - ] );
3346 + public function doc_author_enable() {
3347 + $this->customizer->add_setting(
3348 + 'betterdocs_doc_author_enable',
3349 + [
3350 + 'default' => $this->defaults['betterdocs_doc_author_enable'],
3351 + 'capability' => 'edit_theme_options',
3352 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
3353 + ]
3354 + );
2649 3355
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 - );
3356 + $this->customizer->add_control(
3357 + new ToggleControl(
3358 + $this->customizer,
3359 + 'betterdocs_doc_author_enable',
3360 + [
3361 + 'label' => __( 'Enable Author Info', 'betterdocs' ),
3362 + 'priority' => 155,
3363 + 'section' => 'betterdocs_single_docs_settings',
3364 + 'settings' => 'betterdocs_doc_author_enable',
3365 + 'type' => 'light' // light, ios, flat
3366 + ]
3367 + )
3368 + );
3369 + }
2662 3370
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']
3371 + public function doc_author_enable_layout_9() {
3372 + $this->customizer->add_setting(
3373 + 'betterdocs_doc_author_enable_layout_9',
3374 + [
3375 + 'default' => $this->defaults['betterdocs_doc_author_enable_layout_9'],
3376 + 'capability' => 'edit_theme_options',
3377 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
3378 + ]
3379 + );
2668 3380
2669 - ] );
3381 + $this->customizer->add_control(
3382 + new ToggleControl(
3383 + $this->customizer,
3384 + 'betterdocs_doc_author_enable_layout_9',
3385 + [
3386 + 'label' => __( 'Enable Author Info', 'betterdocs' ),
3387 + 'priority' => 155,
3388 + 'section' => 'betterdocs_single_docs_settings',
3389 + 'settings' => 'betterdocs_doc_author_enable_layout_9',
3390 + 'type' => 'light' // light, ios, flat
3391 + ]
3392 + )
3393 + );
3394 + }
2670 3395
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 - }
3396 + public function doc_author_date() {
3397 + $this->customizer->add_setting(
3398 + 'betterdocs_doc_author_date',
3399 + [
3400 + 'default' => $this->defaults['betterdocs_doc_author_date'],
3401 + 'capability' => 'edit_theme_options',
3402 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
3403 + ]
3404 + );
2684 3405
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']
3406 + $this->customizer->add_control(
3407 + new ToggleControl(
3408 + $this->customizer,
3409 + 'betterdocs_doc_author_date',
3410 + [
3411 + 'label' => __( 'Updated Date', 'betterdocs' ),
3412 + 'priority' => 155,
3413 + 'section' => 'betterdocs_single_docs_settings',
3414 + 'settings' => 'betterdocs_doc_author_date',
3415 + 'type' => 'light' // light, ios, flat
3416 + ]
3417 + )
3418 + );
3419 + }
2691 3420
2692 - ] );
2693 3421
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 - );
3422 + public function doc_estimate_reading_time_section() {
3423 + $this->customizer->add_setting(
3424 + 'betterdocs_doc_estimate_reading_time_section',
3425 + [
3426 + 'default' => $this->defaults['betterdocs_doc_estimate_reading_time_section'],
3427 + 'sanitize_callback' => 'esc_html'
3428 + ]
3429 + );
2707 3430
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 - ] );
3431 + $this->customizer->add_control(
3432 + new SeparatorControl(
3433 + $this->customizer,
3434 + 'betterdocs_doc_estimate_reading_time_section',
3435 + [
3436 + 'label' => __( 'Estimated Reading Time', 'betterdocs' ),
3437 + 'priority' => 155,
3438 + 'settings' => 'betterdocs_doc_estimate_reading_time_section',
3439 + 'section' => 'betterdocs_single_docs_settings'
3440 + ]
3441 + )
3442 + );
3443 + }
2714 3444
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 - );
3445 + public function doc_erstimate_reading_time_bg_color() {
3446 + $this->customizer->add_setting(
3447 + 'betterdocs_doc_single_content_est_reading_bg_color',
3448 + [
3449 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_bg_color'],
3450 + 'capability' => 'edit_theme_options',
3451 + 'transport' => 'postMessage',
3452 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3453 + ]
3454 + );
2727 3455
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']
3456 + $this->customizer->add_control(
3457 + new AlphaColorControl(
3458 + $this->customizer,
3459 + 'betterdocs_doc_single_content_est_reading_bg_color',
3460 + [
3461 + 'label' => __( 'Background Color', 'betterdocs' ),
3462 + 'priority' => 155,
3463 + 'section' => 'betterdocs_single_docs_settings',
3464 + 'settings' => 'betterdocs_doc_single_content_est_reading_bg_color'
3465 + ]
3466 + )
3467 + );
3468 + }
2733 3469
2734 - ] );
3470 + public function doc_erstimate_reading_time_bg_color_layout_8_9() {
3471 + $this->customizer->add_setting(
3472 + 'betterdocs_doc_single_content_est_reading_bg_color_layout_8_9',
3473 + [
3474 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_bg_color_layout_8_9'],
3475 + 'capability' => 'edit_theme_options',
3476 + 'transport' => 'postMessage',
3477 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3478 + ]
3479 + );
2735 3480
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 - );
3481 + $this->customizer->add_control(
3482 + new AlphaColorControl(
3483 + $this->customizer,
3484 + 'betterdocs_doc_single_content_est_reading_bg_color_layout_8_9',
3485 + [
3486 + 'label' => __( 'Background Color', 'betterdocs' ),
3487 + 'priority' => 155,
3488 + 'section' => 'betterdocs_single_docs_settings',
3489 + 'settings' => 'betterdocs_doc_single_content_est_reading_bg_color_layout_8_9'
3490 + ]
3491 + )
3492 + );
3493 + }
2748 3494
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 - ] );
3495 + public function doc_estimate_reading_time_icon_color() {
3496 + $this->customizer->add_setting(
3497 + 'betterdocs_doc_single_content_est_reading_icon_color',
3498 + [
3499 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_icon_color'],
3500 + 'capability' => 'edit_theme_options',
3501 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3502 + ]
3503 + );
2755 3504
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 - );
3505 + $this->customizer->add_control(
3506 + new AlphaColorControl(
3507 + $this->customizer,
3508 + 'betterdocs_doc_single_content_est_reading_icon_color',
3509 + [
3510 + 'label' => __( 'Clock Icon Color', 'betterdocs' ),
3511 + 'priority' => 155,
3512 + 'section' => 'betterdocs_single_docs_settings',
3513 + 'settings' => 'betterdocs_doc_single_content_est_reading_icon_color'
3514 + ]
3515 + )
3516 + );
3517 + }
2768 3518
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 - ] );
3519 + public function betterdocs_doc_single_content_est_reading_icon_font_size() {
3520 + $this->customizer->add_setting(
3521 + 'betterdocs_doc_single_content_est_reading_icon_font_size',
3522 + [
3523 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_icon_font_size'],
3524 + 'capability' => 'edit_theme_options',
3525 + 'transport' => 'postMessage',
3526 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2775 3527
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 - }
3528 + ]
3529 + );
2789 3530
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']
3531 + $this->customizer->add_control(
3532 + new RangeValueControl(
3533 + $this->customizer,
3534 + 'betterdocs_doc_single_content_est_reading_icon_font_size',
3535 + [
3536 + 'type' => 'betterdocs-range-value',
3537 + 'section' => 'betterdocs_single_docs_settings',
3538 + 'settings' => 'betterdocs_doc_single_content_est_reading_icon_font_size',
3539 + 'label' => __( 'Clock Icon Size', 'betterdocs' ),
3540 + 'priority' => 155,
3541 + 'input_attrs' => [
3542 + 'min' => 0,
3543 + 'max' => 50,
3544 + 'step' => 1,
3545 + 'suffix' => 'px' //optional suffix
3546 + ]
3547 + ]
3548 + )
3549 + );
3550 + }
2796 3551
2797 - ] );
3552 + public function doc_estimate_reading_time_color() {
3553 + $this->customizer->add_setting(
3554 + 'betterdocs_doc_single_content_est_reading_color',
3555 + [
3556 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_color'],
3557 + 'capability' => 'edit_theme_options',
3558 + 'transport' => 'postMessage',
3559 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3560 + ]
3561 + );
2798 3562
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 - }
3563 + $this->customizer->add_control(
3564 + new AlphaColorControl(
3565 + $this->customizer,
3566 + 'betterdocs_doc_single_content_est_reading_color',
3567 + [
3568 + 'label' => __( 'Font Color', 'betterdocs' ),
3569 + 'priority' => 155,
3570 + 'section' => 'betterdocs_single_docs_settings',
3571 + 'settings' => 'betterdocs_doc_single_content_est_reading_color'
3572 + ]
3573 + )
3574 + );
3575 + }
2815 3576
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 - ] );
3577 + public function betterdocs_doc_single_content_est_reading_font_size() {
3578 + $this->customizer->add_setting(
3579 + 'betterdocs_doc_single_content_est_reading_font_size',
3580 + [
3581 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_font_size'],
3582 + 'capability' => 'edit_theme_options',
3583 + 'transport' => 'postMessage',
3584 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2822 3585
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 - }
3586 + ]
3587 + );
2849 3588
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 - ] );
3589 + $this->customizer->add_control(
3590 + new RangeValueControl(
3591 + $this->customizer,
3592 + 'betterdocs_doc_single_content_est_reading_font_size',
3593 + [
3594 + 'type' => 'betterdocs-range-value',
3595 + 'section' => 'betterdocs_single_docs_settings',
3596 + 'settings' => 'betterdocs_doc_single_content_est_reading_font_size',
3597 + 'label' => __( 'Font Size', 'betterdocs' ),
3598 + 'priority' => 155,
3599 + 'input_attrs' => [
3600 + 'min' => 0,
3601 + 'max' => 50,
3602 + 'step' => 1,
3603 + 'suffix' => 'px' //optional suffix
3604 + ]
3605 + ]
3606 + )
3607 + );
3608 + }
2857 3609
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']
3610 + public function betterdocs_doc_single_content_est_reading_border_radius() {
3611 + $this->customizer->add_setting(
3612 + 'betterdocs_doc_single_content_est_reading_border_radius',
3613 + [
3614 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_border_radius'],
3615 + 'capability' => 'edit_theme_options',
3616 + 'transport' => 'postMessage',
3617 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2877 3618
2878 - ] );
3619 + ]
3620 + );
2879 3621
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 - }
3622 + $this->customizer->add_control(
3623 + new RangeValueControl(
3624 + $this->customizer,
3625 + 'betterdocs_doc_single_content_est_reading_border_radius',
3626 + [
3627 + 'type' => 'betterdocs-range-value',
3628 + 'section' => 'betterdocs_single_docs_settings',
3629 + 'settings' => 'betterdocs_doc_single_content_est_reading_border_radius',
3630 + 'label' => __( 'Border Radius', 'betterdocs' ),
3631 + 'input_attrs' => [
3632 + 'class' => '',
3633 + 'min' => 0,
3634 + 'max' => 100,
3635 + 'step' => 1,
3636 + 'suffix' => 'px' //optional suffix
3637 + ],
3638 + 'priority' => 155
3639 + ]
3640 + )
3641 + );
3642 + }
2896 3643
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 - ] );
3644 + public function betterdocs_doc_single_content_est_reading_font_weight() {
3645 + $this->customizer->add_setting(
3646 + 'betterdocs_doc_single_content_est_reading_font_weight',
3647 + [
3648 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_font_weight'],
3649 + 'capability' => 'edit_theme_options',
3650 + 'transport' => 'postMessage',
3651 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
3652 + ]
3653 + );
2903 3654
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 - }
3655 + $this->customizer->add_control(
3656 + new WP_Customize_Control(
3657 + $this->customizer,
3658 + 'betterdocs_doc_single_content_est_reading_font_weight',
3659 + [
3660 + 'label' => __( 'Font Weight', 'betterdocs' ),
3661 + 'section' => 'betterdocs_single_docs_settings',
3662 + 'settings' => 'betterdocs_doc_single_content_est_reading_font_weight',
3663 + 'type' => 'select',
3664 + 'choices' => [
3665 + 'normal' => 'Normal',
3666 + '100' => '100',
3667 + '200' => '200',
3668 + '300' => '300',
3669 + '400' => '400',
3670 + '500' => '500',
3671 + '600' => '600',
3672 + '700' => '700',
3673 + '800' => '800',
3674 + '900' => '900'
3675 + ],
3676 + 'priority' => 155
3677 + ]
3678 + )
3679 + );
3680 + }
2930 3681
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 - ] );
3682 + public function betterdocs_doc_single_content_est_reading_margin() {
3683 + $this->customizer->add_setting(
3684 + 'betterdocs_doc_single_content_est_reading_margin',
3685 + [
3686 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin'],
3687 + 'capability' => 'edit_theme_options',
3688 + 'transport' => 'postMessage',
3689 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3690 + ]
3691 + );
2938 3692
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 - }
3693 + $this->customizer->add_control(
3694 + new TitleControl(
3695 + $this->customizer,
3696 + 'betterdocs_doc_single_content_est_reading_margin',
3697 + [
3698 + 'type' => 'betterdocs-title',
3699 + 'section' => 'betterdocs_single_docs_settings',
3700 + 'settings' => 'betterdocs_doc_single_content_est_reading_margin',
3701 + 'label' => __( 'Margin', 'betterdocs' ),
3702 + 'priority' => 155,
3703 + 'input_attrs' => [
3704 + 'id' => 'betterdocs_doc_single_content_est_reading_margin',
3705 + 'class' => 'betterdocs-dimension'
3706 + ]
3707 + ]
3708 + )
3709 + );
2952 3710
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 - ] );
3711 + $this->customizer->add_setting(
3712 + 'betterdocs_doc_single_content_est_reading_margin_top',
3713 + [
3714 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_top'],
3715 + 'capability' => 'edit_theme_options',
3716 + 'transport' => 'postMessage',
3717 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3718 + ]
3719 + );
2960 3720
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 - }
3721 + $this->customizer->add_control(
3722 + new DimensionControl(
3723 + $this->customizer,
3724 + 'betterdocs_doc_single_content_est_reading_margin_top',
3725 + [
3726 + 'type' => 'betterdocs-dimension',
3727 + 'section' => 'betterdocs_single_docs_settings',
3728 + 'settings' => 'betterdocs_doc_single_content_est_reading_margin_top',
3729 + 'label' => __( 'Top', 'betterdocs' ),
3730 + 'priority' => 155,
3731 + 'input_attrs' => [
3732 + 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
3733 + ]
3734 + ]
3735 + )
3736 + );
2974 3737
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']
3738 + $this->customizer->add_setting(
3739 + 'betterdocs_doc_single_content_est_reading_margin_right',
3740 + [
3741 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_right'],
3742 + 'capability' => 'edit_theme_options',
3743 + 'transport' => 'postMessage',
3744 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3745 + ]
3746 + );
2981 3747
2982 - ] );
3748 + $this->customizer->add_control(
3749 + new DimensionControl(
3750 + $this->customizer,
3751 + 'betterdocs_doc_single_content_est_reading_margin_right',
3752 + [
3753 + 'type' => 'betterdocs-dimension',
3754 + 'section' => 'betterdocs_single_docs_settings',
3755 + 'settings' => 'betterdocs_doc_single_content_est_reading_margin_right',
3756 + 'label' => __( 'Right', 'betterdocs' ),
3757 + 'priority' => 155,
3758 + 'input_attrs' => [
3759 + 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
3760 + ]
3761 + ]
3762 + )
3763 + );
2983 3764
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 - );
3765 + $this->customizer->add_setting(
3766 + 'betterdocs_doc_single_content_est_reading_margin_bottom',
3767 + [
3768 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_bottom'],
3769 + 'capability' => 'edit_theme_options',
3770 + 'transport' => 'postMessage',
3771 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3772 + ]
3773 + );
2997 3774
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 - ] );
3775 + $this->customizer->add_control(
3776 + new DimensionControl(
3777 + $this->customizer,
3778 + 'betterdocs_doc_single_content_est_reading_margin_bottom',
3779 + [
3780 + 'type' => 'betterdocs-dimension',
3781 + 'section' => 'betterdocs_single_docs_settings',
3782 + 'settings' => 'betterdocs_doc_single_content_est_reading_margin_bottom',
3783 + 'label' => __( 'Bottom', 'betterdocs' ),
3784 + 'priority' => 155,
3785 + 'input_attrs' => [
3786 + 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
3787 + ]
3788 + ]
3789 + )
3790 + );
3004 3791
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 - );
3792 + $this->customizer->add_setting(
3793 + 'betterdocs_doc_single_content_est_reading_margin_left',
3794 + [
3795 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_margin_left'],
3796 + 'capability' => 'edit_theme_options',
3797 + 'transport' => 'postMessage',
3798 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3799 + ]
3800 + );
3017 3801
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']
3802 + $this->customizer->add_control(
3803 + new DimensionControl(
3804 + $this->customizer,
3805 + 'betterdocs_doc_single_content_est_reading_margin_left',
3806 + [
3807 + 'type' => 'betterdocs-dimension',
3808 + 'section' => 'betterdocs_single_docs_settings',
3809 + 'settings' => 'betterdocs_doc_single_content_est_reading_margin_left',
3810 + 'label' => __( 'Left', 'betterdocs' ),
3811 + 'priority' => 155,
3812 + 'input_attrs' => [
3813 + 'class' => 'betterdocs_doc_single_content_est_reading_margin betterdocs-dimension'
3814 + ]
3815 + ]
3816 + )
3817 + );
3818 + }
3023 3819
3024 - ] );
3820 + public function betterdocs_doc_single_content_est_reading_padding() {
3821 + $this->customizer->add_setting(
3822 + 'betterdocs_doc_single_content_est_reading_padding',
3823 + [
3824 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding'],
3825 + 'capability' => 'edit_theme_options',
3826 + 'transport' => 'postMessage',
3827 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3025 3828
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 - );
3829 + ]
3830 + );
3038 3831
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 - ] );
3832 + $this->customizer->add_control(
3833 + new TitleControl(
3834 + $this->customizer,
3835 + 'betterdocs_doc_single_content_est_reading_padding',
3836 + [
3837 + 'type' => 'betterdocs-title',
3838 + 'section' => 'betterdocs_single_docs_settings',
3839 + 'settings' => 'betterdocs_doc_single_content_est_reading_padding',
3840 + 'label' => __( 'Padding', 'betterdocs' ),
3841 + 'priority' => 155,
3842 + 'input_attrs' => [
3843 + 'id' => 'betterdocs_doc_single_content_est_reading_padding',
3844 + 'class' => 'betterdocs-dimension'
3845 + ]
3846 + ]
3847 + )
3848 + );
3045 3849
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 - );
3850 + $this->customizer->add_setting(
3851 + 'betterdocs_doc_single_content_est_reading_padding_top',
3852 + [
3853 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_top'],
3854 + 'capability' => 'edit_theme_options',
3855 + 'transport' => 'postMessage',
3856 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3857 + ]
3858 + );
3058 3859
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 - ] );
3860 + $this->customizer->add_control(
3861 + new DimensionControl(
3862 + $this->customizer,
3863 + 'betterdocs_doc_single_content_est_reading_padding_top',
3864 + [
3865 + 'type' => 'betterdocs-dimension',
3866 + 'section' => 'betterdocs_single_docs_settings',
3867 + 'settings' => 'betterdocs_doc_single_content_est_reading_padding_top',
3868 + 'label' => __( 'Top', 'betterdocs' ),
3869 + 'priority' => 155,
3870 + 'input_attrs' => [
3871 + 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
3872 + ]
3873 + ]
3874 + )
3875 + );
3065 3876
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 - }
3877 + $this->customizer->add_setting(
3878 + 'betterdocs_doc_single_content_est_reading_padding_right',
3879 + [
3880 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_right'],
3881 + 'capability' => 'edit_theme_options',
3882 + 'transport' => 'postMessage',
3883 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3079 3884
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']
3885 + ]
3886 + );
3086 3887
3087 - ] );
3888 + $this->customizer->add_control(
3889 + new DimensionControl(
3890 + $this->customizer,
3891 + 'betterdocs_doc_single_content_est_reading_padding_right',
3892 + [
3893 + 'type' => 'betterdocs-dimension',
3894 + 'section' => 'betterdocs_single_docs_settings',
3895 + 'settings' => 'betterdocs_doc_single_content_est_reading_padding_right',
3896 + 'label' => __( 'Right', 'betterdocs' ),
3897 + 'priority' => 155,
3898 + 'input_attrs' => [
3899 + 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
3900 + ]
3901 + ]
3902 + )
3903 + );
3088 3904
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 - );
3905 + $this->customizer->add_setting(
3906 + 'betterdocs_doc_single_content_est_reading_padding_bottom',
3907 + [
3908 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_bottom'],
3909 + 'capability' => 'edit_theme_options',
3910 + 'transport' => 'postMessage',
3911 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3102 3912
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 - ] );
3913 + ]
3914 + );
3109 3915
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 - );
3916 + $this->customizer->add_control(
3917 + new DimensionControl(
3918 + $this->customizer,
3919 + 'betterdocs_doc_single_content_est_reading_padding_bottom',
3920 + [
3921 + 'type' => 'betterdocs-dimension',
3922 + 'section' => 'betterdocs_single_docs_settings',
3923 + 'settings' => 'betterdocs_doc_single_content_est_reading_padding_bottom',
3924 + 'label' => __( 'Bottom', 'betterdocs' ),
3925 + 'priority' => 155,
3926 + 'input_attrs' => [
3927 + 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
3928 + ]
3929 + ]
3930 + )
3931 + );
3122 3932
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']
3933 + $this->customizer->add_setting(
3934 + 'betterdocs_doc_single_content_est_reading_padding_left',
3935 + [
3936 + 'default' => $this->defaults['betterdocs_doc_single_content_est_reading_padding_left'],
3937 + 'capability' => 'edit_theme_options',
3938 + 'transport' => 'postMessage',
3939 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3128 3940
3129 - ] );
3941 + ]
3942 + );
3130 3943
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 - );
3944 + $this->customizer->add_control(
3945 + new DimensionControl(
3946 + $this->customizer,
3947 + 'betterdocs_doc_single_content_est_reading_padding_left',
3948 + [
3949 + 'type' => 'betterdocs-dimension',
3950 + 'section' => 'betterdocs_single_docs_settings',
3951 + 'settings' => 'betterdocs_doc_single_content_est_reading_padding_left',
3952 + 'label' => __( 'Left', 'betterdocs' ),
3953 + 'priority' => 155,
3954 + 'input_attrs' => [
3955 + 'class' => 'betterdocs_doc_single_content_est_reading_padding betterdocs-dimension'
3956 + ]
3957 + ]
3958 + )
3959 + );
3960 + }
3143 3961
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 - ] );
3962 + public function doc_single_entry_content() {
3963 + $this->customizer->add_setting(
3964 + 'betterdocs_doc_single_entry_content',
3965 + [
3966 + 'default' => $this->defaults['betterdocs_doc_single_entry_content'],
3967 + 'sanitize_callback' => 'esc_html'
3968 + ]
3969 + );
3150 3970
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 - );
3971 + $this->customizer->add_control(
3972 + new SeparatorControl(
3973 + $this->customizer,
3974 + 'betterdocs_doc_single_entry_content',
3975 + [
3976 + 'label' => __( 'Entry Content', 'betterdocs' ),
3977 + 'priority' => 156,
3978 + 'settings' => 'betterdocs_doc_single_entry_content',
3979 + 'section' => 'betterdocs_single_docs_settings'
3980 + ]
3981 + )
3982 + );
3983 + }
3163 3984
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 - ] );
3985 + public function single_content_font_size() {
3986 + $this->customizer->add_setting(
3987 + 'betterdocs_single_content_font_size',
3988 + [
3989 + 'default' => $this->defaults['betterdocs_single_content_font_size'],
3990 + 'capability' => 'edit_theme_options',
3991 + 'transport' => 'postMessage',
3992 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3170 3993
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 - }
3994 + ]
3995 + );
3184 3996
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 - ] );
3997 + $this->customizer->add_control(
3998 + new RangeValueControl(
3999 + $this->customizer,
4000 + 'betterdocs_single_content_font_size',
4001 + [
4002 + 'type' => 'betterdocs-range-value',
4003 + 'section' => 'betterdocs_single_docs_settings',
4004 + 'settings' => 'betterdocs_single_content_font_size',
4005 + 'label' => __( 'Font Size', 'betterdocs' ),
4006 + 'priority' => 157,
4007 + 'input_attrs' => [
4008 + 'class' => '',
4009 + 'min' => 0,
4010 + 'max' => 50,
4011 + 'step' => 1,
4012 + 'suffix' => 'px' // optional suffix
4013 + ]
4014 + ]
4015 + )
4016 + );
4017 + }
3190 4018
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 - }
4019 + public function single_content_font_color() {
4020 + $this->customizer->add_setting(
4021 + 'betterdocs_single_content_font_color',
4022 + [
4023 + 'default' => $this->defaults['betterdocs_single_content_font_color'],
4024 + 'capability' => 'edit_theme_options',
4025 + 'transport' => 'postMessage',
4026 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4027 + ]
4028 + );
3200 4029
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 - ] );
4030 + $this->customizer->add_control(
4031 + new AlphaColorControl(
4032 + $this->customizer,
4033 + 'betterdocs_single_content_font_color',
4034 + [
4035 + 'label' => __( 'Font Color', 'betterdocs' ),
4036 + 'priority' => 158,
4037 + 'section' => 'betterdocs_single_docs_settings',
4038 + 'settings' => 'betterdocs_single_content_font_color'
4039 + ]
4040 + )
4041 + );
4042 + }
3208 4043
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 - }
4044 + public function doc_single_entry_content_layout_8_9() {
4045 + $this->customizer->add_setting(
4046 + 'betterdocs_doc_single_entry_content_layout_8_9',
4047 + [
4048 + 'default' => $this->defaults['betterdocs_doc_single_entry_content_layout_8_9'],
4049 + 'sanitize_callback' => 'esc_html'
4050 + ]
4051 + );
3222 4052
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']
4053 + $this->customizer->add_control(
4054 + new SeparatorControl(
4055 + $this->customizer,
4056 + 'betterdocs_doc_single_entry_content_layout_8_9',
4057 + [
4058 + 'label' => __( 'Entry Content', 'betterdocs' ),
4059 + 'priority' => 156,
4060 + 'settings' => 'betterdocs_doc_single_entry_content_layout_8_9',
4061 + 'section' => 'betterdocs_single_docs_settings'
4062 + ]
4063 + )
4064 + );
4065 + }
3229 4066
3230 - ] );
4067 + public function single_content_font_size_layout_8_9() {
4068 + $this->customizer->add_setting(
4069 + 'betterdocs_single_content_font_size_layout_8_9',
4070 + [
4071 + 'default' => $this->defaults['betterdocs_single_content_font_size_layout_8_9'],
4072 + 'capability' => 'edit_theme_options',
4073 + 'transport' => 'postMessage',
4074 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3231 4075
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 - );
4076 + ]
4077 + );
3245 4078
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 - ] );
4079 + $this->customizer->add_control(
4080 + new RangeValueControl(
4081 + $this->customizer,
4082 + 'betterdocs_single_content_font_size_layout_8_9',
4083 + [
4084 + 'type' => 'betterdocs-range-value',
4085 + 'section' => 'betterdocs_single_docs_settings',
4086 + 'settings' => 'betterdocs_single_content_font_size_layout_8_9',
4087 + 'label' => __( 'Font Size', 'betterdocs' ),
4088 + 'priority' => 157,
4089 + 'input_attrs' => [
4090 + 'class' => '',
4091 + 'min' => 0,
4092 + 'max' => 50,
4093 + 'step' => 1,
4094 + 'suffix' => 'px' // optional suffix
4095 + ]
4096 + ]
4097 + )
4098 + );
4099 + }
3252 4100
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 - );
4101 + public function single_content_font_color_layout_8_9() {
4102 + $this->customizer->add_setting(
4103 + 'betterdocs_single_content_font_color_layout_8_9',
4104 + [
4105 + 'default' => $this->defaults['betterdocs_single_content_font_color_layout_8_9'],
4106 + 'capability' => 'edit_theme_options',
4107 + 'transport' => 'postMessage',
4108 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4109 + ]
4110 + );
3265 4111
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']
4112 + $this->customizer->add_control(
4113 + new AlphaColorControl(
4114 + $this->customizer,
4115 + 'betterdocs_single_content_font_color_layout_8_9',
4116 + [
4117 + 'label' => __( 'Font Color', 'betterdocs' ),
4118 + 'priority' => 158,
4119 + 'section' => 'betterdocs_single_docs_settings',
4120 + 'settings' => 'betterdocs_single_content_font_color_layout_8_9'
4121 + ]
4122 + )
4123 + );
4124 + }
3271 4125
3272 - ] );
4126 + public function single_content_padding_layout_8_9() {
4127 + $this->customizer->add_setting(
4128 + 'single_content_padding_layout_8_9',
4129 + [
4130 + 'default' => $this->defaults['single_content_padding_layout_8_9'],
4131 + 'capability' => 'edit_theme_options',
4132 + 'transport' => 'postMessage',
4133 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4134 + ]
4135 + );
3273 4136
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 - );
4137 + $this->customizer->add_control(
4138 + new TitleControl(
4139 + $this->customizer,
4140 + 'single_content_padding_layout_8_9',
4141 + [
4142 + 'type' => 'betterdocs-title',
4143 + 'section' => 'betterdocs_single_docs_settings',
4144 + 'settings' => 'single_content_padding_layout_8_9',
4145 + 'label' => __( 'Padding', 'betterdocs' ),
4146 + 'priority' => 158,
4147 + 'input_attrs' => [
4148 + 'id' => 'single_content_padding_layout_8_9',
4149 + 'class' => 'betterdocs-dimension'
4150 + ]
4151 + ]
4152 + )
4153 + );
3286 4154
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']
4155 + $this->customizer->add_setting(
4156 + 'single_content_padding_top_layout_8_9',
4157 + [
4158 + 'default' => $this->defaults['single_content_padding_top_layout_8_9'],
4159 + 'capability' => 'edit_theme_options',
4160 + 'transport' => 'postMessage',
4161 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4162 + ]
4163 + );
3292 4164
3293 - ] );
4165 + $this->customizer->add_control(
4166 + new DimensionControl(
4167 + $this->customizer,
4168 + 'single_content_padding_top_layout_8_9',
4169 + [
4170 + 'type' => 'betterdocs-dimension',
4171 + 'section' => 'betterdocs_single_docs_settings',
4172 + 'settings' => 'single_content_padding_top_layout_8_9',
4173 + 'label' => __( 'Top', 'betterdocs' ),
4174 + 'priority' => 158,
4175 + 'input_attrs' => [
4176 + 'class' => 'single_content_padding_layout_8_9 betterdocs-dimension'
4177 + ]
4178 + ]
4179 + )
4180 + );
3294 4181
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 - );
4182 + $this->customizer->add_setting(
4183 + 'single_content_padding_right_layout_8_9',
4184 + [
4185 + 'default' => $this->defaults['single_content_padding_right_layout_8_9'],
4186 + 'capability' => 'edit_theme_options',
4187 + 'transport' => 'postMessage',
4188 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4189 + ]
4190 + );
3307 4191
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']
4192 + $this->customizer->add_control(
4193 + new DimensionControl(
4194 + $this->customizer,
4195 + 'single_content_padding_right_layout_8_9',
4196 + [
4197 + 'type' => 'betterdocs-dimension',
4198 + 'section' => 'betterdocs_single_docs_settings',
4199 + 'settings' => 'single_content_padding_right_layout_8_9',
4200 + 'label' => __( 'Right', 'betterdocs' ),
4201 + 'priority' => 158,
4202 + 'input_attrs' => [
4203 + 'class' => 'single_content_padding_layout_8_9 betterdocs-dimension'
4204 + ]
4205 + ]
4206 + )
4207 + );
3313 4208
3314 - ] );
4209 + $this->customizer->add_setting(
4210 + 'single_content_padding_bottom_layout_8_9',
4211 + [
4212 + 'default' => $this->defaults['single_content_padding_bottom_layout_8_9'],
4213 + 'capability' => 'edit_theme_options',
4214 + 'transport' => 'postMessage',
4215 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4216 + ]
4217 + );
3315 4218
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 - }
4219 + $this->customizer->add_control(
4220 + new DimensionControl(
4221 + $this->customizer,
4222 + 'single_content_padding_bottom_layout_8_9',
4223 + [
4224 + 'type' => 'betterdocs-dimension',
4225 + 'section' => 'betterdocs_single_docs_settings',
4226 + 'settings' => 'single_content_padding_bottom_layout_8_9',
4227 + 'label' => __( 'Bottom', 'betterdocs' ),
4228 + 'priority' => 158,
4229 + 'input_attrs' => [
4230 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
4231 + ]
4232 + ]
4233 + )
4234 + );
3329 4235
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']
4236 + $this->customizer->add_setting(
4237 + 'single_content_padding_left_layout_8_9',
4238 + [
4239 + 'default' => $this->defaults['single_content_padding_left_layout_8_9'],
4240 + 'capability' => 'edit_theme_options',
4241 + 'transport' => 'postMessage',
4242 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4243 + ]
4244 + );
3336 4245
3337 - ] );
4246 + $this->customizer->add_control(
4247 + new DimensionControl(
4248 + $this->customizer,
4249 + 'single_content_padding_left_layout_8_9',
4250 + [
4251 + 'type' => 'betterdocs-dimension',
4252 + 'section' => 'betterdocs_single_docs_settings',
4253 + 'settings' => 'single_content_padding_left_layout_8_9',
4254 + 'label' => __( 'Left', 'betterdocs' ),
4255 + 'priority' => 158,
4256 + 'input_attrs' => [
4257 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
4258 + ]
4259 + ]
4260 + )
4261 + );
4262 + }
3338 4263
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 - );
4264 + public function single_content_margin_layout_8_9() {
4265 + $this->customizer->add_setting(
4266 + 'single_content_margin_layout_8_9',
4267 + [
4268 + 'default' => $this->defaults['single_content_margin_layout_8_9'],
4269 + 'capability' => 'edit_theme_options',
4270 + 'transport' => 'postMessage',
4271 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4272 + ]
4273 + );
3352 4274
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 - ] );
4275 + $this->customizer->add_control(
4276 + new TitleControl(
4277 + $this->customizer,
4278 + 'single_content_margin_layout_8_9',
4279 + [
4280 + 'type' => 'betterdocs-title',
4281 + 'section' => 'betterdocs_single_docs_settings',
4282 + 'settings' => 'single_content_margin_layout_8_9',
4283 + 'label' => __( 'Margin', 'betterdocs' ),
4284 + 'priority' => 158,
4285 + 'input_attrs' => [
4286 + 'id' => 'single_content_margin_layout_8_9',
4287 + 'class' => 'betterdocs-dimension'
4288 + ]
4289 + ]
4290 + )
4291 + );
3359 4292
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 - );
4293 + $this->customizer->add_setting(
4294 + 'single_content_margin_top_layout_8_9',
4295 + [
4296 + 'default' => $this->defaults['single_content_margin_top_layout_8_9'],
4297 + 'capability' => 'edit_theme_options',
4298 + 'transport' => 'postMessage',
4299 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4300 + ]
4301 + );
3372 4302
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']
4303 + $this->customizer->add_control(
4304 + new DimensionControl(
4305 + $this->customizer,
4306 + 'single_content_margin_top_layout_8_9',
4307 + [
4308 + 'type' => 'betterdocs-dimension',
4309 + 'section' => 'betterdocs_single_docs_settings',
4310 + 'settings' => 'single_content_margin_top_layout_8_9',
4311 + 'label' => __( 'Top', 'betterdocs' ),
4312 + 'priority' => 158,
4313 + 'input_attrs' => [
4314 + 'class' => 'single_content_margin_layout_8_9 betterdocs-dimension'
4315 + ]
4316 + ]
4317 + )
4318 + );
3378 4319
3379 - ] );
4320 + $this->customizer->add_setting(
4321 + 'single_content_margin_right_layout_8_9',
4322 + [
4323 + 'default' => $this->defaults['single_content_margin_right_layout_8_9'],
4324 + 'capability' => 'edit_theme_options',
4325 + 'transport' => 'postMessage',
4326 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4327 + ]
4328 + );
3380 4329
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 - );
4330 + $this->customizer->add_control(
4331 + new DimensionControl(
4332 + $this->customizer,
4333 + 'single_content_margin_right_layout_8_9',
4334 + [
4335 + 'type' => 'betterdocs-dimension',
4336 + 'section' => 'betterdocs_single_docs_settings',
4337 + 'settings' => 'single_content_margin_right_layout_8_9',
4338 + 'label' => __( 'Right', 'betterdocs' ),
4339 + 'priority' => 158,
4340 + 'input_attrs' => [
4341 + 'class' => 'single_content_margin_layout_8_9 betterdocs-dimension'
4342 + ]
4343 + ]
4344 + )
4345 + );
3393 4346
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']
4347 + $this->customizer->add_setting(
4348 + 'single_content_margin_bottom_layout_8_9',
4349 + [
4350 + 'default' => $this->defaults['single_content_margin_bottom_layout_8_9'],
4351 + 'capability' => 'edit_theme_options',
4352 + 'transport' => 'postMessage',
4353 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4354 + ]
4355 + );
3399 4356
3400 - ] );
4357 + $this->customizer->add_control(
4358 + new DimensionControl(
4359 + $this->customizer,
4360 + 'single_content_margin_bottom_layout_8_9',
4361 + [
4362 + 'type' => 'betterdocs-dimension',
4363 + 'section' => 'betterdocs_single_docs_settings',
4364 + 'settings' => 'single_content_margin_bottom_layout_8_9',
4365 + 'label' => __( 'Bottom', 'betterdocs' ),
4366 + 'priority' => 158,
4367 + 'input_attrs' => [
4368 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
4369 + ]
4370 + ]
4371 + )
4372 + );
3401 4373
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 - );
4374 + $this->customizer->add_setting(
4375 + 'single_content_margin_left_layout_8_9',
4376 + [
4377 + 'default' => $this->defaults['single_content_margin_left_layout_8_9'],
4378 + 'capability' => 'edit_theme_options',
4379 + 'transport' => 'postMessage',
4380 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4381 + ]
4382 + );
3414 4383
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']
4384 + $this->customizer->add_control(
4385 + new DimensionControl(
4386 + $this->customizer,
4387 + 'single_content_margin_left_layout_8_9',
4388 + [
4389 + 'type' => 'betterdocs-dimension',
4390 + 'section' => 'betterdocs_single_docs_settings',
4391 + 'settings' => 'single_content_margin_left_layout_8_9',
4392 + 'label' => __( 'Left', 'betterdocs' ),
4393 + 'priority' => 158,
4394 + 'input_attrs' => [
4395 + 'class' => 'toc_title_margin_layout_8_9 betterdocs-dimension'
4396 + ]
4397 + ]
4398 + )
4399 + );
4400 + }
3420 4401
3421 - ] );
4402 + public function social_share_title() {
4403 + $this->customizer->add_setting(
4404 + 'betterdocs_social_share_title',
4405 + [
4406 + 'default' => '',
4407 + 'sanitize_callback' => 'esc_html'
4408 + ]
4409 + );
3422 4410
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 - }
4411 + $this->customizer->add_control(
4412 + new SeparatorControl(
4413 + $this->customizer,
4414 + 'betterdocs_social_share_title',
4415 + [
4416 + 'label' => __( 'Social Share', 'betterdocs' ),
4417 + 'priority' => 164,
4418 + 'settings' => 'betterdocs_social_share_title',
4419 + 'section' => 'betterdocs_single_docs_settings'
4420 + ]
4421 + )
4422 + );
4423 + }
3436 4424
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 - ] );
4425 + public function post_social_share() {
4426 + $this->customizer->add_setting(
4427 + 'betterdocs_post_social_share',
4428 + [
4429 + 'default' => $this->defaults['betterdocs_post_social_share'],
4430 + 'capability' => 'edit_theme_options',
4431 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
4432 + ]
4433 + );
3444 4434
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 - }
4435 + $this->customizer->add_control(
4436 + new ToggleControl(
4437 + $this->customizer,
4438 + 'betterdocs_post_social_share',
4439 + [
4440 + 'label' => __( 'Enable Social Sharing?', 'betterdocs' ),
4441 + 'priority' => 165,
4442 + 'section' => 'betterdocs_single_docs_settings',
4443 + 'settings' => 'betterdocs_post_social_share',
4444 + 'type' => 'light' // light, ios, flat
4445 + ]
4446 + )
4447 + );
4448 + }
3458 4449
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']
4450 + public function social_sharing_text() {
4451 + $this->customizer->add_setting(
4452 + 'betterdocs_social_sharing_text',
4453 + [
4454 + 'default' => $this->defaults['betterdocs_social_sharing_text'],
4455 + 'capability' => 'edit_theme_options',
4456 + 'sanitize_callback' => 'esc_html'
4457 + ]
4458 + );
3465 4459
3466 - ] );
4460 + $this->customizer->add_control(
4461 + new SelectControl(
4462 + $this->customizer,
4463 + 'betterdocs_social_sharing_text',
4464 + [
4465 + 'label' => __( 'Social Sharing Title', 'betterdocs' ),
4466 + 'priority' => 166,
4467 + 'section' => 'betterdocs_single_docs_settings',
4468 + 'settings' => 'betterdocs_social_sharing_text',
4469 + 'type' => 'text'
4470 + ]
4471 + )
4472 + );
4473 + }
3467 4474
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 - );
4475 + public function post_social_share_text_color() {
4476 + $this->customizer->add_setting(
4477 + 'betterdocs_post_social_share_text_color',
4478 + [
4479 + 'default' => $this->defaults['betterdocs_post_social_share_text_color'],
4480 + 'capability' => 'edit_theme_options',
4481 + 'transport' => 'postMessage',
4482 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4483 + ]
4484 + );
3481 4485
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 - ] );
4486 + $this->customizer->add_control(
4487 + new AlphaColorControl(
4488 + $this->customizer,
4489 + 'betterdocs_post_social_share_text_color',
4490 + [
4491 + 'label' => __( 'Title Text Color', 'betterdocs' ),
4492 + 'priority' => 167,
4493 + 'section' => 'betterdocs_single_docs_settings',
4494 + 'settings' => 'betterdocs_post_social_share_text_color'
4495 + ]
4496 + )
4497 + );
4498 + }
3488 4499
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 - );
4500 + public function post_social_share_text_color_layout_8_9() {
4501 + $this->customizer->add_setting(
4502 + 'betterdocs_post_social_share_text_color_color_layout_8_9',
4503 + [
4504 + 'default' => $this->defaults['betterdocs_post_social_share_text_color_color_layout_8_9'],
4505 + 'capability' => 'edit_theme_options',
4506 + 'transport' => 'postMessage',
4507 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4508 + ]
4509 + );
3501 4510
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']
4511 + $this->customizer->add_control(
4512 + new AlphaColorControl(
4513 + $this->customizer,
4514 + 'betterdocs_post_social_share_text_color_color_layout_8_9',
4515 + [
4516 + 'label' => __( 'Title Text Color', 'betterdocs' ),
4517 + 'priority' => 167,
4518 + 'section' => 'betterdocs_single_docs_settings',
4519 + 'settings' => 'betterdocs_post_social_share_text_color_color_layout_8_9'
4520 + ]
4521 + )
4522 + );
4523 + }
3507 4524
3508 - ] );
4525 + public function post_social_share_margin_layout_8() {
4526 + $this->customizer->add_setting(
4527 + 'post_social_share_margin_layout_8',
4528 + [
4529 + 'default' => $this->defaults['post_social_share_margin_layout_8'],
4530 + 'capability' => 'edit_theme_options',
4531 + 'transport' => 'postMessage',
4532 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4533 + ]
4534 + );
3509 4535
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 - );
4536 + $this->customizer->add_control(
4537 + new TitleControl(
4538 + $this->customizer,
4539 + 'post_social_share_margin_layout_8',
4540 + [
4541 + 'type' => 'betterdocs-title',
4542 + 'section' => 'betterdocs_single_docs_settings',
4543 + 'settings' => 'post_social_share_margin_layout_8',
4544 + 'label' => __( 'Margin', 'betterdocs' ),
4545 + 'priority' => 167,
4546 + 'input_attrs' => [
4547 + 'id' => 'post_social_share_margin_layout_8',
4548 + 'class' => 'betterdocs-dimension'
4549 + ]
4550 + ]
4551 + )
4552 + );
3522 4553
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']
4554 + $this->customizer->add_setting(
4555 + 'post_social_share_margin_top_layout_8',
4556 + [
4557 + 'default' => $this->defaults['post_social_share_margin_top_layout_8'],
4558 + 'capability' => 'edit_theme_options',
4559 + 'transport' => 'postMessage',
4560 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4561 + ]
4562 + );
3528 4563
3529 - ] );
4564 + $this->customizer->add_control(
4565 + new DimensionControl(
4566 + $this->customizer,
4567 + 'post_social_share_margin_top_layout_8',
4568 + [
4569 + 'type' => 'betterdocs-dimension',
4570 + 'section' => 'betterdocs_single_docs_settings',
4571 + 'settings' => 'post_social_share_margin_top_layout_8',
4572 + 'label' => __( 'Top', 'betterdocs' ),
4573 + 'priority' => 167,
4574 + 'input_attrs' => [
4575 + 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
4576 + ]
4577 + ]
4578 + )
4579 + );
3530 4580
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 - );
4581 + $this->customizer->add_setting(
4582 + 'post_social_share_margin_right_layout_8',
4583 + [
4584 + 'default' => $this->defaults['post_social_share_margin_right_layout_8'],
4585 + 'capability' => 'edit_theme_options',
4586 + 'transport' => 'postMessage',
4587 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4588 + ]
4589 + );
3543 4590
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']
4591 + $this->customizer->add_control(
4592 + new DimensionControl(
4593 + $this->customizer,
4594 + 'post_social_share_margin_right_layout_8',
4595 + [
4596 + 'type' => 'betterdocs-dimension',
4597 + 'section' => 'betterdocs_single_docs_settings',
4598 + 'settings' => 'post_social_share_margin_right_layout_8',
4599 + 'label' => __( 'Right', 'betterdocs' ),
4600 + 'priority' => 167,
4601 + 'input_attrs' => [
4602 + 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
4603 + ]
4604 + ]
4605 + )
4606 + );
3549 4607
3550 - ] );
4608 + $this->customizer->add_setting(
4609 + 'post_social_share_margin_bottom_layout_8',
4610 + [
4611 + 'default' => $this->defaults['post_social_share_margin_bottom_layout_8'],
4612 + 'capability' => 'edit_theme_options',
4613 + 'transport' => 'postMessage',
4614 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4615 + ]
4616 + );
3551 4617
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 - }
4618 + $this->customizer->add_control(
4619 + new DimensionControl(
4620 + $this->customizer,
4621 + 'post_social_share_margin_bottom_layout_8',
4622 + [
4623 + 'type' => 'betterdocs-dimension',
4624 + 'section' => 'betterdocs_single_docs_settings',
4625 + 'settings' => 'post_social_share_margin_bottom_layout_8',
4626 + 'label' => __( 'Bottom', 'betterdocs' ),
4627 + 'priority' => 167,
4628 + 'input_attrs' => [
4629 + 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
4630 + ]
4631 + ]
4632 + )
4633 + );
3565 4634
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']
4635 + $this->customizer->add_setting(
4636 + 'post_social_share_margin_left_layout_8',
4637 + [
4638 + 'default' => $this->defaults['post_social_share_margin_left_layout_8'],
4639 + 'capability' => 'edit_theme_options',
4640 + 'transport' => 'postMessage',
4641 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4642 + ]
4643 + );
3572 4644
3573 - ] );
4645 + $this->customizer->add_control(
4646 + new DimensionControl(
4647 + $this->customizer,
4648 + 'post_social_share_margin_left_layout_8',
4649 + [
4650 + 'type' => 'betterdocs-dimension',
4651 + 'section' => 'betterdocs_single_docs_settings',
4652 + 'settings' => 'post_social_share_margin_left_layout_8',
4653 + 'label' => __( 'Left', 'betterdocs' ),
4654 + 'priority' => 167,
4655 + 'input_attrs' => [
4656 + 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
4657 + ]
4658 + ]
4659 + )
4660 + );
4661 + }
3574 4662
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 - );
4663 + public function post_social_share_margin_layout_9() {
4664 + $this->customizer->add_setting(
4665 + 'post_social_share_margin_layout_9',
4666 + [
4667 + 'default' => $this->defaults['post_social_share_margin_layout_9'],
4668 + 'capability' => 'edit_theme_options',
4669 + 'transport' => 'postMessage',
4670 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4671 + ]
4672 + );
3588 4673
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 - ] );
4674 + $this->customizer->add_control(
4675 + new TitleControl(
4676 + $this->customizer,
4677 + 'post_social_share_margin_layout_9',
4678 + [
4679 + 'type' => 'betterdocs-title',
4680 + 'section' => 'betterdocs_single_docs_settings',
4681 + 'settings' => 'post_social_share_margin_layout_9',
4682 + 'label' => __( 'Margin', 'betterdocs' ),
4683 + 'priority' => 167,
4684 + 'input_attrs' => [
4685 + 'id' => 'post_social_share_margin_layout_9',
4686 + 'class' => 'betterdocs-dimension'
4687 + ]
4688 + ]
4689 + )
4690 + );
3595 4691
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 - );
4692 + $this->customizer->add_setting(
4693 + 'post_social_share_margin_top_layout_9',
4694 + [
4695 + 'default' => $this->defaults['post_social_share_margin_top_layout_9'],
4696 + 'capability' => 'edit_theme_options',
4697 + 'transport' => 'postMessage',
4698 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4699 + ]
4700 + );
3608 4701
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']
4702 + $this->customizer->add_control(
4703 + new DimensionControl(
4704 + $this->customizer,
4705 + 'post_social_share_margin_top_layout_9',
4706 + [
4707 + 'type' => 'betterdocs-dimension',
4708 + 'section' => 'betterdocs_single_docs_settings',
4709 + 'settings' => 'post_social_share_margin_top_layout_9',
4710 + 'label' => __( 'Top', 'betterdocs' ),
4711 + 'priority' => 167,
4712 + 'input_attrs' => [
4713 + 'class' => 'post_social_share_margin_layout_9 betterdocs-dimension'
4714 + ]
4715 + ]
4716 + )
4717 + );
3614 4718
3615 - ] );
4719 + $this->customizer->add_setting(
4720 + 'post_social_share_margin_right_layout_9',
4721 + [
4722 + 'default' => $this->defaults['post_social_share_margin_right_layout_9'],
4723 + 'capability' => 'edit_theme_options',
4724 + 'transport' => 'postMessage',
4725 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4726 + ]
4727 + );
3616 4728
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 - );
4729 + $this->customizer->add_control(
4730 + new DimensionControl(
4731 + $this->customizer,
4732 + 'post_social_share_margin_right_layout_9',
4733 + [
4734 + 'type' => 'betterdocs-dimension',
4735 + 'section' => 'betterdocs_single_docs_settings',
4736 + 'settings' => 'post_social_share_margin_right_layout_9',
4737 + 'label' => __( 'Right', 'betterdocs' ),
4738 + 'priority' => 167,
4739 + 'input_attrs' => [
4740 + 'class' => 'post_social_share_margin_layout_9 betterdocs-dimension'
4741 + ]
4742 + ]
4743 + )
4744 + );
3629 4745
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 - ] );
4746 + $this->customizer->add_setting(
4747 + 'post_social_share_margin_bottom_layout_9',
4748 + [
4749 + 'default' => $this->defaults['post_social_share_margin_bottom_layout_9'],
4750 + 'capability' => 'edit_theme_options',
4751 + 'transport' => 'postMessage',
4752 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4753 + ]
4754 + );
3636 4755
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 - );
4756 + $this->customizer->add_control(
4757 + new DimensionControl(
4758 + $this->customizer,
4759 + 'post_social_share_margin_bottom_layout_9',
4760 + [
4761 + 'type' => 'betterdocs-dimension',
4762 + 'section' => 'betterdocs_single_docs_settings',
4763 + 'settings' => 'post_social_share_margin_bottom_layout_9',
4764 + 'label' => __( 'Bottom', 'betterdocs' ),
4765 + 'priority' => 167,
4766 + 'input_attrs' => [
4767 + 'class' => 'post_social_share_margin_layout_9 betterdocs-dimension'
4768 + ]
4769 + ]
4770 + )
4771 + );
3649 4772
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 - ] );
4773 + $this->customizer->add_setting(
4774 + 'post_social_share_margin_left_layout_9',
4775 + [
4776 + 'default' => $this->defaults['post_social_share_margin_left_layout_9'],
4777 + 'capability' => 'edit_theme_options',
4778 + 'transport' => 'postMessage',
4779 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4780 + ]
4781 + );
3656 4782
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 - }
4783 + $this->customizer->add_control(
4784 + new DimensionControl(
4785 + $this->customizer,
4786 + 'post_social_share_margin_left_layout_9',
4787 + [
4788 + 'type' => 'betterdocs-dimension',
4789 + 'section' => 'betterdocs_single_docs_settings',
4790 + 'settings' => 'post_social_share_margin_left_layout_9',
4791 + 'label' => __( 'Left', 'betterdocs' ),
4792 + 'priority' => 167,
4793 + 'input_attrs' => [
4794 + 'class' => 'post_social_share_margin_layout_8 betterdocs-dimension'
4795 + ]
4796 + ]
4797 + )
4798 + );
4799 + }
3670 4800
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']
3677 4801
3678 - ] );
4802 + public function post_social_share_padding_layout_8() {
4803 + $this->customizer->add_setting(
4804 + 'post_social_share_padding_layout_8',
4805 + [
4806 + 'default' => $this->defaults['post_social_share_padding_layout_8'],
4807 + 'capability' => 'edit_theme_options',
4808 + 'transport' => 'postMessage',
4809 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4810 + ]
4811 + );
3679 4812
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 - }
4813 + $this->customizer->add_control(
4814 + new TitleControl(
4815 + $this->customizer,
4816 + 'post_social_share_padding_layout_8',
4817 + [
4818 + 'type' => 'betterdocs-title',
4819 + 'section' => 'betterdocs_single_docs_settings',
4820 + 'settings' => 'post_social_share_padding_layout_8',
4821 + 'label' => __( 'Padding', 'betterdocs' ),
4822 + 'priority' => 167,
4823 + 'input_attrs' => [
4824 + 'id' => 'post_social_share_padding_layout_8',
4825 + 'class' => 'betterdocs-dimension'
4826 + ]
4827 + ]
4828 + )
4829 + );
3696 4830
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 - ] );
4831 + $this->customizer->add_setting(
4832 + 'post_social_share_padding_top_layout_8',
4833 + [
4834 + 'default' => $this->defaults['post_social_share_padding_top_layout_8'],
4835 + 'capability' => 'edit_theme_options',
4836 + 'transport' => 'postMessage',
4837 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4838 + ]
4839 + );
3703 4840
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 - }
4841 + $this->customizer->add_control(
4842 + new DimensionControl(
4843 + $this->customizer,
4844 + 'post_social_share_padding_top_layout_8',
4845 + [
4846 + 'type' => 'betterdocs-dimension',
4847 + 'section' => 'betterdocs_single_docs_settings',
4848 + 'settings' => 'post_social_share_padding_top_layout_8',
4849 + 'label' => __( 'Top', 'betterdocs' ),
4850 + 'priority' => 167,
4851 + 'input_attrs' => [
4852 + 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
4853 + ]
4854 + ]
4855 + )
4856 + );
3730 4857
4858 + $this->customizer->add_setting(
4859 + 'post_social_share_padding_right_layout_8',
4860 + [
4861 + 'default' => $this->defaults['post_social_share_padding_right_layout_8'],
4862 + 'capability' => 'edit_theme_options',
4863 + 'transport' => 'postMessage',
4864 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4865 + ]
4866 + );
3731 4867
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 - ] );
4868 + $this->customizer->add_control(
4869 + new DimensionControl(
4870 + $this->customizer,
4871 + 'post_social_share_padding_right_layout_8',
4872 + [
4873 + 'type' => 'betterdocs-dimension',
4874 + 'section' => 'betterdocs_single_docs_settings',
4875 + 'settings' => 'post_social_share_padding_right_layout_8',
4876 + 'label' => __( 'Right', 'betterdocs' ),
4877 + 'priority' => 167,
4878 + 'input_attrs' => [
4879 + 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
4880 + ]
4881 + ]
4882 + )
4883 + );
3739 4884
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 - }
4885 + $this->customizer->add_setting(
4886 + 'post_social_share_padding_bottom_layout_8',
4887 + [
4888 + 'default' => $this->defaults['post_social_share_padding_bottom_layout_8'],
4889 + 'capability' => 'edit_theme_options',
4890 + 'transport' => 'postMessage',
4891 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4892 + ]
4893 + );
3753 4894
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 - ] );
4895 + $this->customizer->add_control(
4896 + new DimensionControl(
4897 + $this->customizer,
4898 + 'post_social_share_padding_bottom_layout_8',
4899 + [
4900 + 'type' => 'betterdocs-dimension',
4901 + 'section' => 'betterdocs_single_docs_settings',
4902 + 'settings' => 'post_social_share_padding_bottom_layout_8',
4903 + 'label' => __( 'Bottom', 'betterdocs' ),
4904 + 'priority' => 167,
4905 + 'input_attrs' => [
4906 + 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
4907 + ]
4908 + ]
4909 + )
4910 + );
3761 4911
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 - }
4912 + $this->customizer->add_setting(
4913 + 'post_social_share_padding_left_layout_8',
4914 + [
4915 + 'default' => $this->defaults['post_social_share_padding_left_layout_8'],
4916 + 'capability' => 'edit_theme_options',
4917 + 'transport' => 'postMessage',
4918 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4919 + ]
4920 + );
3775 4921
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']
4922 + $this->customizer->add_control(
4923 + new DimensionControl(
4924 + $this->customizer,
4925 + 'post_social_share_padding_left_layout_8',
4926 + [
4927 + 'type' => 'betterdocs-dimension',
4928 + 'section' => 'betterdocs_single_docs_settings',
4929 + 'settings' => 'post_social_share_padding_left_layout_8',
4930 + 'label' => __( 'Left', 'betterdocs' ),
4931 + 'priority' => 167,
4932 + 'input_attrs' => [
4933 + 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
4934 + ]
4935 + ]
4936 + )
4937 + );
4938 + }
3782 4939
3783 - ] );
4940 + public function post_social_share_padding_layout_9() {
4941 + $this->customizer->add_setting(
4942 + 'post_social_share_padding_layout_9',
4943 + [
4944 + 'default' => $this->defaults['post_social_share_padding_layout_9'],
4945 + 'capability' => 'edit_theme_options',
4946 + 'transport' => 'postMessage',
4947 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4948 + ]
4949 + );
3784 4950
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 - );
4951 + $this->customizer->add_control(
4952 + new TitleControl(
4953 + $this->customizer,
4954 + 'post_social_share_padding_layout_9',
4955 + [
4956 + 'type' => 'betterdocs-title',
4957 + 'section' => 'betterdocs_single_docs_settings',
4958 + 'settings' => 'post_social_share_padding_layout_9',
4959 + 'label' => __( 'Padding', 'betterdocs' ),
4960 + 'priority' => 167,
4961 + 'input_attrs' => [
4962 + 'id' => 'post_social_share_padding_layout_9',
4963 + 'class' => 'betterdocs-dimension'
4964 + ]
4965 + ]
4966 + )
4967 + );
3798 4968
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 - ] );
4969 + $this->customizer->add_setting(
4970 + 'post_social_share_padding_top_layout_9',
4971 + [
4972 + 'default' => $this->defaults['post_social_share_padding_top_layout_9'],
4973 + 'capability' => 'edit_theme_options',
4974 + 'transport' => 'postMessage',
4975 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4976 + ]
4977 + );
3805 4978
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 - );
4979 + $this->customizer->add_control(
4980 + new DimensionControl(
4981 + $this->customizer,
4982 + 'post_social_share_padding_top_layout_9',
4983 + [
4984 + 'type' => 'betterdocs-dimension',
4985 + 'section' => 'betterdocs_single_docs_settings',
4986 + 'settings' => 'post_social_share_padding_top_layout_9',
4987 + 'label' => __( 'Top', 'betterdocs' ),
4988 + 'priority' => 167,
4989 + 'input_attrs' => [
4990 + 'class' => 'post_social_share_padding_layout_9 betterdocs-dimension'
4991 + ]
4992 + ]
4993 + )
4994 + );
3818 4995
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']
4996 + $this->customizer->add_setting(
4997 + 'post_social_share_padding_right_layout_9',
4998 + [
4999 + 'default' => $this->defaults['post_social_share_padding_right_layout_9'],
5000 + 'capability' => 'edit_theme_options',
5001 + 'transport' => 'postMessage',
5002 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5003 + ]
5004 + );
3824 5005
3825 - ] );
5006 + $this->customizer->add_control(
5007 + new DimensionControl(
5008 + $this->customizer,
5009 + 'post_social_share_padding_right_layout_9',
5010 + [
5011 + 'type' => 'betterdocs-dimension',
5012 + 'section' => 'betterdocs_single_docs_settings',
5013 + 'settings' => 'post_social_share_padding_right_layout_9',
5014 + 'label' => __( 'Right', 'betterdocs' ),
5015 + 'priority' => 167,
5016 + 'input_attrs' => [
5017 + 'class' => 'post_social_share_padding_layout_9 betterdocs-dimension'
5018 + ]
5019 + ]
5020 + )
5021 + );
3826 5022
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 - );
5023 + $this->customizer->add_setting(
5024 + 'post_social_share_padding_bottom_layout_9',
5025 + [
5026 + 'default' => $this->defaults['post_social_share_padding_bottom_layout_9'],
5027 + 'capability' => 'edit_theme_options',
5028 + 'transport' => 'postMessage',
5029 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5030 + ]
5031 + );
3839 5032
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 - ] );
5033 + $this->customizer->add_control(
5034 + new DimensionControl(
5035 + $this->customizer,
5036 + 'post_social_share_padding_bottom_layout_9',
5037 + [
5038 + 'type' => 'betterdocs-dimension',
5039 + 'section' => 'betterdocs_single_docs_settings',
5040 + 'settings' => 'post_social_share_padding_bottom_layout_9',
5041 + 'label' => __( 'Bottom', 'betterdocs' ),
5042 + 'priority' => 167,
5043 + 'input_attrs' => [
5044 + 'class' => 'post_social_share_padding_layout_9 betterdocs-dimension'
5045 + ]
5046 + ]
5047 + )
5048 + );
3846 5049
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 - );
5050 + $this->customizer->add_setting(
5051 + 'post_social_share_padding_left_layout_9',
5052 + [
5053 + 'default' => $this->defaults['post_social_share_padding_left_layout_9'],
5054 + 'capability' => 'edit_theme_options',
5055 + 'transport' => 'postMessage',
5056 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5057 + ]
5058 + );
3859 5059
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 - ] );
5060 + $this->customizer->add_control(
5061 + new DimensionControl(
5062 + $this->customizer,
5063 + 'post_social_share_padding_left_layout_9',
5064 + [
5065 + 'type' => 'betterdocs-dimension',
5066 + 'section' => 'betterdocs_single_docs_settings',
5067 + 'settings' => 'post_social_share_padding_left_layout_9',
5068 + 'label' => __( 'Left', 'betterdocs' ),
5069 + 'priority' => 167,
5070 + 'input_attrs' => [
5071 + 'class' => 'post_social_share_padding_layout_8 betterdocs-dimension'
5072 + ]
5073 + ]
5074 + )
5075 + );
5076 + }
3866 5077
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 - }
5078 + public function post_social_share_facebook() {
5079 + $this->customizer->add_setting(
5080 + 'betterdocs_post_social_share_facebook',
5081 + [
5082 + 'default' => $this->defaults['betterdocs_post_social_share_facebook'],
5083 + 'capability' => 'edit_theme_options',
5084 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
5085 + ]
5086 + );
3880 5087
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']
5088 + $this->customizer->add_control(
5089 + new ToggleControl(
5090 + $this->customizer,
5091 + 'betterdocs_post_social_share_facebook',
5092 + [
5093 + 'label' => __( 'Facebook Sharing', 'betterdocs' ),
5094 + 'priority' => 168,
5095 + 'section' => 'betterdocs_single_docs_settings',
5096 + 'settings' => 'betterdocs_post_social_share_facebook',
5097 + 'type' => 'light' // light, ios, flat
5098 + ]
5099 + )
5100 + );
5101 + }
3887 5102
3888 - ] );
5103 + public function post_social_share_twitter() {
5104 + $this->customizer->add_setting(
5105 + 'betterdocs_post_social_share_twitter',
5106 + [
5107 + 'default' => $this->defaults['betterdocs_post_social_share_twitter'],
5108 + 'capability' => 'edit_theme_options',
5109 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
5110 + ]
5111 + );
3889 5112
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 - );
5113 + $this->customizer->add_control(
5114 + new ToggleControl(
5115 + $this->customizer,
5116 + 'betterdocs_post_social_share_twitter',
5117 + [
5118 + 'label' => __( 'Twitter Sharing', 'betterdocs' ),
5119 + 'priority' => 169,
5120 + 'section' => 'betterdocs_single_docs_settings',
5121 + 'settings' => 'betterdocs_post_social_share_twitter',
5122 + 'type' => 'light' // light, ios, flat
5123 + ]
5124 + )
5125 + );
5126 + }
3903 5127
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 - ] );
5128 + public function post_social_share_linkedin() {
5129 + $this->customizer->add_setting(
5130 + 'betterdocs_post_social_share_linkedin',
5131 + [
5132 + 'default' => $this->defaults['betterdocs_post_social_share_linkedin'],
5133 + 'capability' => 'edit_theme_options',
5134 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
5135 + ]
5136 + );
3910 5137
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 - );
5138 + $this->customizer->add_control(
5139 + new ToggleControl(
5140 + $this->customizer,
5141 + 'betterdocs_post_social_share_linkedin',
5142 + [
5143 + 'label' => __( 'Linkedin Sharing', 'betterdocs' ),
5144 + 'priority' => 170,
5145 + 'section' => 'betterdocs_single_docs_settings',
5146 + 'settings' => 'betterdocs_post_social_share_linkedin',
5147 + 'type' => 'light' // light, ios, flat
5148 + ]
5149 + )
5150 + );
5151 + }
3923 5152
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']
5153 + public function post_social_share_pinterest() {
5154 + $this->customizer->add_setting(
5155 + 'betterdocs_post_social_share_pinterest',
5156 + [
5157 + 'default' => $this->defaults['betterdocs_post_social_share_pinterest'],
5158 + 'capability' => 'edit_theme_options',
5159 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
5160 + ]
5161 + );
3929 5162
3930 - ] );
5163 + $this->customizer->add_control(
5164 + new ToggleControl(
5165 + $this->customizer,
5166 + 'betterdocs_post_social_share_pinterest',
5167 + [
5168 + 'label' => __( 'Pinterest Sharing', 'betterdocs' ),
5169 + 'priority' => 171,
5170 + 'section' => 'betterdocs_single_docs_settings',
5171 + 'settings' => 'betterdocs_post_social_share_pinterest',
5172 + 'type' => 'light' // light, ios, flat
5173 + ]
5174 + )
5175 + );
5176 + }
3931 5177
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 - );
5178 + public function doc_single_entry_footer() {
5179 + $this->customizer->add_setting(
5180 + 'betterdocs_doc_single_entry_footer',
5181 + [
5182 + 'default' => $this->defaults['betterdocs_doc_single_entry_footer'],
5183 + 'sanitize_callback' => 'esc_html'
5184 + ]
5185 + );
3944 5186
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 - ] );
5187 + $this->customizer->add_control(
5188 + new SeparatorControl(
5189 + $this->customizer,
5190 + 'betterdocs_doc_single_entry_footer',
5191 + [
5192 + 'label' => __( 'Entry Footer', 'betterdocs' ),
5193 + 'priority' => 172,
5194 + 'settings' => 'betterdocs_doc_single_entry_footer',
5195 + 'section' => 'betterdocs_single_docs_settings'
5196 + ]
5197 + )
5198 + );
5199 + }
3951 5200
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 - );
5201 + public function single_doc_feedback_label_name_text(){
5202 + $this->customizer->add_setting(
5203 + 'single_doc_feedback_label_name_text',
5204 + [
5205 + 'default' => $this->defaults['single_doc_feedback_label_name_text'],
5206 + 'capability' => 'edit_theme_options',
5207 + 'sanitize_callback' => 'esc_html'
5208 + ]
5209 + );
3964 5210
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 - ] );
5211 + $this->customizer->add_control(
5212 + new SelectControl(
5213 + $this->customizer,
5214 + 'single_doc_feedback_label_name_text',
5215 + [
5216 + 'label' => __( 'Label Name Text', 'betterdocs' ),
5217 + 'priority' => 173,
5218 + 'section' => 'betterdocs_single_docs_settings',
5219 + 'settings' => 'single_doc_feedback_label_name_text',
5220 + 'type' => 'text'
5221 + ]
5222 + )
5223 + );
5224 + }
3971 5225
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 - }
5226 + public function single_doc_feedback_label_email_text(){
5227 + $this->customizer->add_setting(
5228 + 'single_doc_feedback_label_email_text',
5229 + [
5230 + 'default' => $this->defaults['single_doc_feedback_label_email_text'],
5231 + 'capability' => 'edit_theme_options',
5232 + 'sanitize_callback' => 'esc_html'
5233 + ]
5234 + );
5235 +
5236 + $this->customizer->add_control(
5237 + new SelectControl(
5238 + $this->customizer,
5239 + 'single_doc_feedback_label_email_text',
5240 + [
5241 + 'label' => __( 'Label Email Text', 'betterdocs' ),
5242 + 'priority' => 173,
5243 + 'section' => 'betterdocs_single_docs_settings',
5244 + 'settings' => 'single_doc_feedback_label_email_text',
5245 + 'type' => 'text'
5246 + ]
5247 + )
5248 + );
5249 + }
5250 +
5251 + public function single_doc_feedback_label_message_text(){
5252 + $this->customizer->add_setting(
5253 + 'single_doc_feedback_label_message_text',
5254 + [
5255 + 'default' => $this->defaults['single_doc_feedback_label_message_text'],
5256 + 'capability' => 'edit_theme_options',
5257 + 'sanitize_callback' => 'esc_html'
5258 + ]
5259 + );
5260 +
5261 + $this->customizer->add_control(
5262 + new SelectControl(
5263 + $this->customizer,
5264 + 'single_doc_feedback_label_message_text',
5265 + [
5266 + 'label' => __( 'Label Message Text', 'betterdocs' ),
5267 + 'priority' => 173,
5268 + 'section' => 'betterdocs_single_docs_settings',
5269 + 'settings' => 'single_doc_feedback_label_message_text',
5270 + 'type' => 'text'
5271 + ]
5272 + )
5273 + );
5274 + }
5275 +
5276 + public function single_doc_feedback_icon_font_size() {
5277 + $this->customizer->add_setting(
5278 + 'betterdocs_single_doc_feedback_icon_font_size',
5279 + [
5280 + 'default' => $this->defaults['betterdocs_single_doc_feedback_icon_font_size'],
5281 + 'capability' => 'edit_theme_options',
5282 + 'transport' => 'postMessage',
5283 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5284 +
5285 + ]
5286 + );
5287 +
5288 + $this->customizer->add_control(
5289 + new RangeValueControl(
5290 + $this->customizer,
5291 + 'betterdocs_single_doc_feedback_icon_font_size',
5292 + [
5293 + 'type' => 'betterdocs-range-value',
5294 + 'section' => 'betterdocs_single_docs_settings',
5295 + 'settings' => 'betterdocs_single_doc_feedback_icon_font_size',
5296 + 'label' => __( 'Feedback Icon Size', 'betterdocs' ),
5297 + 'priority' => 173,
5298 + 'input_attrs' => [
5299 + 'class' => '',
5300 + 'min' => 0,
5301 + 'max' => 100,
5302 + 'step' => 1,
5303 + 'suffix' => 'px' //optional suffix
5304 + ]
5305 + ]
5306 + )
5307 + );
5308 + }
5309 +
5310 + public function single_doc_feedback_icon() {
5311 + $this->customizer->add_setting(
5312 + 'betterdocs_single_doc_feedback_icon',
5313 + [
5314 + 'default' => $this->defaults['betterdocs_single_doc_feedback_icon'],
5315 + 'capability' => 'edit_theme_options'
5316 + ]
5317 + );
5318 +
5319 + $this->customizer->add_control(
5320 + new WP_Customize_Image_Control(
5321 + $this->customizer,
5322 + 'betterdocs_single_doc_feedback_icon',
5323 + [
5324 + 'section' => 'betterdocs_single_docs_settings',
5325 + 'settings' => 'betterdocs_single_doc_feedback_icon',
5326 + 'label' => __( 'Feedback Icon', 'betterdocs' ),
5327 + 'priority' => 173
5328 + ]
5329 + )
5330 + );
5331 + }
5332 +
5333 + public function single_doc_feedback_link_color() {
5334 + $this->customizer->add_setting(
5335 + 'betterdocs_single_doc_feedback_link_color',
5336 + [
5337 + 'default' => $this->defaults['betterdocs_single_doc_feedback_link_color'],
5338 + 'capability' => 'edit_theme_options',
5339 + 'transport' => 'postMessage',
5340 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5341 + ]
5342 + );
5343 +
5344 + $this->customizer->add_control(
5345 + new AlphaColorControl(
5346 + $this->customizer,
5347 + 'betterdocs_single_doc_feedback_link_color',
5348 + [
5349 + 'label' => __( 'Feedback Link Color', 'betterdocs' ),
5350 + 'priority' => 174,
5351 + 'section' => 'betterdocs_single_docs_settings',
5352 + 'settings' => 'betterdocs_single_doc_feedback_link_color'
5353 + ]
5354 + )
5355 + );
5356 + }
5357 +
5358 + public function single_doc_feedback_link_hover_color() {
5359 + $this->customizer->add_setting(
5360 + 'betterdocs_single_doc_feedback_link_hover_color',
5361 + [
5362 + 'default' => $this->defaults['betterdocs_single_doc_feedback_link_hover_color'],
5363 + 'capability' => 'edit_theme_options',
5364 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5365 + ]
5366 + );
5367 +
5368 + $this->customizer->add_control(
5369 + new AlphaColorControl(
5370 + $this->customizer,
5371 + 'betterdocs_single_doc_feedback_link_hover_color',
5372 + [
5373 + 'label' => __( 'Feedback Link Hover Color', 'betterdocs' ),
5374 + 'priority' => 175,
5375 + 'section' => 'betterdocs_single_docs_settings',
5376 + 'settings' => 'betterdocs_single_doc_feedback_link_hover_color'
5377 + ]
5378 + )
5379 + );
5380 + }
5381 +
5382 + public function single_doc_feedback_link_font_size() {
5383 + $this->customizer->add_setting(
5384 + 'betterdocs_single_doc_feedback_link_font_size',
5385 + [
5386 + 'default' => $this->defaults['betterdocs_single_doc_feedback_link_font_size'],
5387 + 'capability' => 'edit_theme_options',
5388 + 'transport' => 'postMessage',
5389 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5390 +
5391 + ]
5392 + );
5393 +
5394 + $this->customizer->add_control(
5395 + new RangeValueControl(
5396 + $this->customizer,
5397 + 'betterdocs_single_doc_feedback_link_font_size',
5398 + [
5399 + 'type' => 'betterdocs-range-value',
5400 + 'section' => 'betterdocs_single_docs_settings',
5401 + 'settings' => 'betterdocs_single_doc_feedback_link_font_size',
5402 + 'label' => __( 'Feedback Link Font Size', 'betterdocs' ),
5403 + 'priority' => 175,
5404 + 'input_attrs' => [
5405 + 'class' => '',
5406 + 'min' => 0,
5407 + 'max' => 50,
5408 + 'step' => 1,
5409 + 'suffix' => 'px' //optional suffix
5410 + ]
5411 + ]
5412 + )
5413 + );
5414 + }
5415 +
5416 + public function feedback_form_title_tag() {
5417 + $this->customizer->add_setting(
5418 + 'betterdocs_feedback_form_title_tag',
5419 + [
5420 + 'default' => $this->defaults['betterdocs_feedback_form_title_tag'],
5421 + 'capability' => 'edit_theme_options',
5422 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
5423 + ]
5424 + );
5425 +
5426 + $this->customizer->add_control(
5427 + new WP_Customize_Control(
5428 + $this->customizer,
5429 + 'betterdocs_feedback_form_title_tag',
5430 + [
5431 + 'label' => __( 'Feedback Form Title Tag', 'betterdocs' ),
5432 + 'section' => 'betterdocs_single_docs_settings',
5433 + 'settings' => 'betterdocs_feedback_form_title_tag',
5434 + 'priority' => 175,
5435 + 'type' => 'select',
5436 + 'choices' => [
5437 + 'h1' => 'h1',
5438 + 'h2' => 'h2',
5439 + 'h3' => 'h3',
5440 + 'h4' => 'h4',
5441 + 'h5' => 'h5',
5442 + 'h6' => 'h6',
5443 + 'p' => 'p'
5444 + ]
5445 + ]
5446 + )
5447 + );
5448 + }
5449 +
5450 + public function single_doc_feedback_title_font_size() {
5451 + $this->customizer->add_setting(
5452 + 'betterdocs_single_doc_feedback_title_font_size',
5453 + [
5454 + 'default' => $this->defaults['betterdocs_single_doc_feedback_title_font_size'],
5455 + 'capability' => 'edit_theme_options',
5456 + 'transport' => 'postMessage',
5457 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5458 +
5459 + ]
5460 + );
5461 +
5462 + $this->customizer->add_control(
5463 + new RangeValueControl(
5464 + $this->customizer,
5465 + 'betterdocs_single_doc_feedback_title_font_size',
5466 + [
5467 + 'type' => 'betterdocs-range-value',
5468 + 'section' => 'betterdocs_single_docs_settings',
5469 + 'settings' => 'betterdocs_single_doc_feedback_title_font_size',
5470 + 'label' => __( 'Feedback Form Title Font Size', 'betterdocs' ),
5471 + 'priority' => 175,
5472 + 'input_attrs' => [
5473 + 'class' => '',
5474 + 'min' => 0,
5475 + 'max' => 100,
5476 + 'step' => 1,
5477 + 'suffix' => 'px' //optional suffix
5478 + ]
5479 + ]
5480 + )
5481 + );
5482 + }
5483 +
5484 + public function single_doc_feedback_title_color() {
5485 + $this->customizer->add_setting(
5486 + 'betterdocs_single_doc_feedback_title_color',
5487 + [
5488 + 'default' => $this->defaults['betterdocs_single_doc_feedback_title_color'],
5489 + 'capability' => 'edit_theme_options',
5490 + 'transport' => 'postMessage',
5491 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5492 + ]
5493 + );
5494 +
5495 + $this->customizer->add_control(
5496 + new AlphaColorControl(
5497 + $this->customizer,
5498 + 'betterdocs_single_doc_feedback_title_color',
5499 + [
5500 + 'label' => __( 'Feedback Form Title Color', 'betterdocs' ),
5501 + 'priority' => 175,
5502 + 'section' => 'betterdocs_single_docs_settings',
5503 + 'settings' => 'betterdocs_single_doc_feedback_title_color'
5504 + ]
5505 + )
5506 + );
5507 + }
5508 +
5509 + public function single_doc_navigation_color() {
5510 + $this->customizer->add_setting(
5511 + 'betterdocs_single_doc_navigation_color',
5512 + [
5513 + 'default' => $this->defaults['betterdocs_single_doc_navigation_color'],
5514 + 'capability' => 'edit_theme_options',
5515 + 'transport' => 'postMessage',
5516 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5517 + ]
5518 + );
5519 +
5520 + $this->customizer->add_control(
5521 + new AlphaColorControl(
5522 + $this->customizer,
5523 + 'betterdocs_single_doc_navigation_color',
5524 + [
5525 + 'label' => __( 'Navigation Color', 'betterdocs' ),
5526 + 'priority' => 177,
5527 + 'section' => 'betterdocs_single_docs_settings',
5528 + 'settings' => 'betterdocs_single_doc_navigation_color'
5529 + ]
5530 + )
5531 + );
5532 + }
5533 +
5534 + public function single_doc_navigation_font_size() {
5535 + $this->customizer->add_setting(
5536 + 'betterdocs_single_doc_navigation_font_size',
5537 + [
5538 + 'default' => $this->defaults['betterdocs_single_doc_navigation_font_size'],
5539 + 'capability' => 'edit_theme_options',
5540 + 'transport' => 'postMessage',
5541 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5542 +
5543 + ]
5544 + );
5545 +
5546 + $this->customizer->add_control(
5547 + new RangeValueControl(
5548 + $this->customizer,
5549 + 'betterdocs_single_doc_navigation_font_size',
5550 + [
5551 + 'type' => 'betterdocs-range-value',
5552 + 'section' => 'betterdocs_single_docs_settings',
5553 + 'settings' => 'betterdocs_single_doc_navigation_font_size',
5554 + 'label' => __( 'Navigation Font Size', 'betterdocs' ),
5555 + 'priority' => 178,
5556 + 'input_attrs' => [
5557 + 'class' => '',
5558 + 'min' => 0,
5559 + 'max' => 50,
5560 + 'step' => 1,
5561 + 'suffix' => 'px' //optional suffix
5562 + ]
5563 + ]
5564 + )
5565 + );
5566 + }
5567 +
5568 + public function single_doc_navigation_hover_color() {
5569 + $this->customizer->add_setting(
5570 + 'betterdocs_single_doc_navigation_hover_color',
5571 + [
5572 + 'default' => $this->defaults['betterdocs_single_doc_navigation_hover_color'],
5573 + 'capability' => 'edit_theme_options',
5574 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5575 + ]
5576 + );
5577 +
5578 + $this->customizer->add_control(
5579 + new AlphaColorControl(
5580 + $this->customizer,
5581 + 'betterdocs_single_doc_navigation_hover_color',
5582 + [
5583 + 'label' => __( 'Navigation Hover Color', 'betterdocs' ),
5584 + 'priority' => 179,
5585 + 'section' => 'betterdocs_single_docs_settings',
5586 + 'settings' => 'betterdocs_single_doc_navigation_hover_color'
5587 + ]
5588 + )
5589 + );
5590 + }
5591 +
5592 + public function single_doc_navigation_arrow_color() {
5593 + $this->customizer->add_setting(
5594 + 'betterdocs_single_doc_navigation_arrow_color',
5595 + [
5596 + 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_color'],
5597 + 'capability' => 'edit_theme_options',
5598 + 'transport' => 'postMessage',
5599 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5600 + ]
5601 + );
5602 +
5603 + $this->customizer->add_control(
5604 + new AlphaColorControl(
5605 + $this->customizer,
5606 + 'betterdocs_single_doc_navigation_arrow_color',
5607 + [
5608 + 'label' => __( 'Navigation Arrow Color', 'betterdocs' ),
5609 + 'priority' => 180,
5610 + 'section' => 'betterdocs_single_docs_settings',
5611 + 'settings' => 'betterdocs_single_doc_navigation_arrow_color'
5612 + ]
5613 + )
5614 + );
5615 + }
5616 +
5617 + public function single_doc_navigation_arrow_font_size() {
5618 + $this->customizer->add_setting(
5619 + 'betterdocs_single_doc_navigation_arrow_font_size',
5620 + [
5621 + 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_font_size'],
5622 + 'capability' => 'edit_theme_options',
5623 + 'transport' => 'postMessage',
5624 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5625 +
5626 + ]
5627 + );
5628 +
5629 + $this->customizer->add_control(
5630 + new RangeValueControl(
5631 + $this->customizer,
5632 + 'betterdocs_single_doc_navigation_arrow_font_size',
5633 + [
5634 + 'type' => 'betterdocs-range-value',
5635 + 'section' => 'betterdocs_single_docs_settings',
5636 + 'settings' => 'betterdocs_single_doc_navigation_arrow_font_size',
5637 + 'label' => __( 'Navigation Arrow Font Size', 'betterdocs' ),
5638 + 'priority' => 181,
5639 + 'input_attrs' => [
5640 + 'class' => '',
5641 + 'min' => 0,
5642 + 'max' => 50,
5643 + 'step' => 1,
5644 + 'suffix' => 'px' //optional suffix
5645 + ]
5646 + ]
5647 + )
5648 + );
5649 + }
5650 +
5651 + public function single_doc_navigation_color_layout_8_9() {
5652 + $this->customizer->add_setting(
5653 + 'betterdocs_single_doc_navigation_color_layout_8_9',
5654 + [
5655 + 'default' => $this->defaults['betterdocs_single_doc_navigation_color_layout_8_9'],
5656 + 'capability' => 'edit_theme_options',
5657 + 'transport' => 'postMessage',
5658 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5659 + ]
5660 + );
5661 +
5662 + $this->customizer->add_control(
5663 + new AlphaColorControl(
5664 + $this->customizer,
5665 + 'betterdocs_single_doc_navigation_color_layout_8_9',
5666 + [
5667 + 'label' => __( 'Navigation Color', 'betterdocs' ),
5668 + 'priority' => 177,
5669 + 'section' => 'betterdocs_single_docs_settings',
5670 + 'settings' => 'betterdocs_single_doc_navigation_color_layout_8_9'
5671 + ]
5672 + )
5673 + );
5674 + }
5675 +
5676 + public function single_doc_navigation_font_size_layout_8_9() {
5677 + $this->customizer->add_setting(
5678 + 'betterdocs_single_doc_navigation_font_size_layout_8_9',
5679 + [
5680 + 'default' => $this->defaults['betterdocs_single_doc_navigation_font_size_layout_8_9'],
5681 + 'capability' => 'edit_theme_options',
5682 + 'transport' => 'postMessage',
5683 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5684 +
5685 + ]
5686 + );
5687 +
5688 + $this->customizer->add_control(
5689 + new RangeValueControl(
5690 + $this->customizer,
5691 + 'betterdocs_single_doc_navigation_font_size_layout_8_9',
5692 + [
5693 + 'type' => 'betterdocs-range-value',
5694 + 'section' => 'betterdocs_single_docs_settings',
5695 + 'settings' => 'betterdocs_single_doc_navigation_font_size_layout_8_9',
5696 + 'label' => __( 'Navigation Font Size', 'betterdocs' ),
5697 + 'priority' => 178,
5698 + 'input_attrs' => [
5699 + 'class' => '',
5700 + 'min' => 0,
5701 + 'max' => 50,
5702 + 'step' => 1,
5703 + 'suffix' => 'px' //optional suffix
5704 + ]
5705 + ]
5706 + )
5707 + );
5708 + }
5709 +
5710 + public function single_doc_navigation_hover_color_layout_8_9() {
5711 + $this->customizer->add_setting(
5712 + 'betterdocs_single_doc_navigation_hover_color_layout_8_9',
5713 + [
5714 + 'default' => $this->defaults['betterdocs_single_doc_navigation_hover_color_layout_8_9'],
5715 + 'capability' => 'edit_theme_options',
5716 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5717 + ]
5718 + );
5719 +
5720 + $this->customizer->add_control(
5721 + new AlphaColorControl(
5722 + $this->customizer,
5723 + 'betterdocs_single_doc_navigation_hover_color_layout_8_9',
5724 + [
5725 + 'label' => __( 'Navigation Hover Color', 'betterdocs' ),
5726 + 'priority' => 179,
5727 + 'section' => 'betterdocs_single_docs_settings',
5728 + 'settings' => 'betterdocs_single_doc_navigation_hover_color_layout_8_9'
5729 + ]
5730 + )
5731 + );
5732 + }
5733 +
5734 + public function single_doc_navigation_arrow_color_layout_8_9() {
5735 + $this->customizer->add_setting(
5736 + 'betterdocs_single_doc_navigation_arrow_color_layout_8_9',
5737 + [
5738 + 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_color_layout_8_9'],
5739 + 'capability' => 'edit_theme_options',
5740 + 'transport' => 'postMessage',
5741 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5742 + ]
5743 + );
5744 +
5745 + $this->customizer->add_control(
5746 + new AlphaColorControl(
5747 + $this->customizer,
5748 + 'betterdocs_single_doc_navigation_arrow_color_layout_8_9',
5749 + [
5750 + 'label' => __( 'Navigation Arrow Color', 'betterdocs' ),
5751 + 'priority' => 180,
5752 + 'section' => 'betterdocs_single_docs_settings',
5753 + 'settings' => 'betterdocs_single_doc_navigation_arrow_color_layout_8_9'
5754 + ]
5755 + )
5756 + );
5757 + }
5758 +
5759 + public function single_doc_navigation_arrow_font_size_layout_8_9() {
5760 + $this->customizer->add_setting(
5761 + 'betterdocs_single_doc_navigation_arrow_font_size_layout_8_9',
5762 + [
5763 + 'default' => $this->defaults['betterdocs_single_doc_navigation_arrow_font_size_layout_8_9'],
5764 + 'capability' => 'edit_theme_options',
5765 + 'transport' => 'postMessage',
5766 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5767 +
5768 + ]
5769 + );
5770 +
5771 + $this->customizer->add_control(
5772 + new RangeValueControl(
5773 + $this->customizer,
5774 + 'betterdocs_single_doc_navigation_arrow_font_size_layout_8_9',
5775 + [
5776 + 'type' => 'betterdocs-range-value',
5777 + 'section' => 'betterdocs_single_docs_settings',
5778 + 'settings' => 'betterdocs_single_doc_navigation_arrow_font_size_layout_8_9',
5779 + 'label' => __( 'Navigation Arrow Font Size', 'betterdocs' ),
5780 + 'priority' => 181,
5781 + 'input_attrs' => [
5782 + 'class' => '',
5783 + 'min' => 0,
5784 + 'max' => 50,
5785 + 'step' => 1,
5786 + 'suffix' => 'px' //optional suffix
5787 + ]
5788 + ]
5789 + )
5790 + );
5791 + }
5792 +
5793 + public function betterdocs_single_doc_lu_time_color() {
5794 + $this->customizer->add_setting(
5795 + 'betterdocs_single_doc_lu_time_color',
5796 + [
5797 + 'default' => $this->defaults['betterdocs_single_doc_lu_time_color'],
5798 + 'capability' => 'edit_theme_options',
5799 + 'transport' => 'postMessage',
5800 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5801 + ]
5802 + );
5803 +
5804 + $this->customizer->add_control(
5805 + new AlphaColorControl(
5806 + $this->customizer,
5807 + 'betterdocs_single_doc_lu_time_color',
5808 + [
5809 + 'label' => __( 'Last Updated Time Color', 'betterdocs' ),
5810 + 'priority' => 182,
5811 + 'section' => 'betterdocs_single_docs_settings',
5812 + 'settings' => 'betterdocs_single_doc_lu_time_color'
5813 + ]
5814 + )
5815 + );
5816 + }
5817 +
5818 + public function single_doc_lu_time_font_size() {
5819 + $this->customizer->add_setting(
5820 + 'betterdocs_single_doc_lu_time_font_size',
5821 + [
5822 + 'default' => $this->defaults['betterdocs_single_doc_lu_time_font_size'],
5823 + 'capability' => 'edit_theme_options',
5824 + 'transport' => 'postMessage',
5825 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5826 +
5827 + ]
5828 + );
5829 +
5830 + $this->customizer->add_control(
5831 + new RangeValueControl(
5832 + $this->customizer,
5833 + 'betterdocs_single_doc_lu_time_font_size',
5834 + [
5835 + 'type' => 'betterdocs-range-value',
5836 + 'section' => 'betterdocs_single_docs_settings',
5837 + 'settings' => 'betterdocs_single_doc_lu_time_font_size',
5838 + 'label' => __( 'Last Updated Time Font Size', 'betterdocs' ),
5839 + 'priority' => 183,
5840 + 'input_attrs' => [
5841 + 'class' => '',
5842 + 'min' => 0,
5843 + 'max' => 50,
5844 + 'step' => 1,
5845 + 'suffix' => 'px' //optional suffix
5846 + ]
5847 + ]
5848 + )
5849 + );
5850 + }
5851 +
5852 +
5853 +
5854 + public function single_doc_powered_by_color() {
5855 + $this->customizer->add_setting(
5856 + 'betterdocs_single_doc_powered_by_color',
5857 + [
5858 + 'default' => $this->defaults['betterdocs_single_doc_powered_by_color'],
5859 + 'capability' => 'edit_theme_options',
5860 + 'transport' => 'postMessage',
5861 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5862 + ]
5863 + );
5864 +
5865 + $this->customizer->add_control(
5866 + new AlphaColorControl(
5867 + $this->customizer,
5868 + 'betterdocs_single_doc_powered_by_color',
5869 + [
5870 + 'label' => __( 'Powered by Color', 'betterdocs' ),
5871 + 'priority' => 184,
5872 + 'section' => 'betterdocs_single_docs_settings',
5873 + 'settings' => 'betterdocs_single_doc_powered_by_color'
5874 + ]
5875 + )
5876 + );
5877 + }
5878 +
5879 + public function single_doc_powered_by_font_size() {
5880 + $this->customizer->add_setting(
5881 + 'betterdocs_single_doc_powered_by_font_size',
5882 + [
5883 + 'default' => $this->defaults['betterdocs_single_doc_powered_by_font_size'],
5884 + 'capability' => 'edit_theme_options',
5885 + 'transport' => 'postMessage',
5886 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
5887 +
5888 + ]
5889 + );
5890 +
5891 + $this->customizer->add_control(
5892 + new RangeValueControl(
5893 + $this->customizer,
5894 + 'betterdocs_single_doc_powered_by_font_size',
5895 + [
5896 + 'type' => 'betterdocs-range-value',
5897 + 'section' => 'betterdocs_single_docs_settings',
5898 + 'settings' => 'betterdocs_single_doc_powered_by_font_size',
5899 + 'label' => __( 'Powered By Font Size', 'betterdocs' ),
5900 + 'priority' => 185,
5901 + 'input_attrs' => [
5902 + 'class' => '',
5903 + 'min' => 0,
5904 + 'max' => 50,
5905 + 'step' => 1,
5906 + 'suffix' => 'px' //optional suffix
5907 + ]
5908 + ]
5909 + )
5910 + );
5911 + }
5912 +
5913 + public function single_doc_powered_by_link_color() {
5914 + $this->customizer->add_setting(
5915 + 'betterdocs_single_doc_powered_by_link_color',
5916 + [
5917 + 'default' => $this->defaults['betterdocs_single_doc_powered_by_link_color'],
5918 + 'capability' => 'edit_theme_options',
5919 + 'transport' => 'postMessage',
5920 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
5921 + ]
5922 + );
5923 +
5924 + $this->customizer->add_control(
5925 + new AlphaColorControl(
5926 + $this->customizer,
5927 + 'betterdocs_single_doc_powered_by_link_color',
5928 + [
5929 + 'label' => __( 'Powered By Link Color', 'betterdocs' ),
5930 + 'priority' => 186,
5931 + 'section' => 'betterdocs_single_docs_settings',
5932 + 'settings' => 'betterdocs_single_doc_powered_by_link_color'
5933 + ]
5934 + )
5935 + );
5936 + }
5937 +
5938 + public function reactions_title() {
5939 + $this->customizer->add_setting(
5940 + 'betterdocs_reactions_title',
5941 + [
5942 + 'default' => '',
5943 + 'sanitize_callback' => 'esc_html'
5944 + ]
5945 + );
5946 +
5947 + $this->customizer->add_control(
5948 + new SeparatorControl(
5949 + $this->customizer,
5950 + 'betterdocs_reactions_title',
5951 + [
5952 + 'label' => __( 'Reactions', 'betterdocs' ),
5953 + 'priority' => 159,
5954 + 'settings' => 'betterdocs_reactions_title',
5955 + 'section' => 'betterdocs_single_docs_settings'
5956 + ]
5957 + )
5958 + );
5959 + }
5960 +
5961 + public function post_reactions() {
5962 + $this->customizer->add_setting(
5963 + 'betterdocs_post_reactions',
5964 + [
5965 + 'default' => $this->defaults['betterdocs_post_reactions'],
5966 + 'capability' => 'edit_theme_options',
5967 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
5968 + ]
5969 + );
5970 +
5971 + $this->customizer->add_control(
5972 + new ToggleControl(
5973 + $this->customizer,
5974 + 'betterdocs_post_reactions',
5975 + [
5976 + 'label' => __( 'Enable Reactions?', 'betterdocs' ),
5977 + 'priority' => 160,
5978 + 'section' => 'betterdocs_single_docs_settings',
5979 + 'settings' => 'betterdocs_post_reactions',
5980 + 'type' => 'light' // light, ios, flat
5981 + ]
5982 + )
5983 + );
5984 + }
5985 +
5986 + public function post_reactions_happy() {
5987 + $this->customizer->add_setting(
5988 + 'betterdocs_post_reactions_happy',
5989 + [
5990 + 'default' => $this->defaults['betterdocs_post_reactions_happy'],
5991 + 'capability' => 'edit_theme_options',
5992 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
5993 + ]
5994 + );
5995 +
5996 + $this->customizer->add_control(
5997 + new ToggleControl(
5998 + $this->customizer,
5999 + 'betterdocs_post_reactions_happy',
6000 + [
6001 + 'label' => __( 'Enable Happy?', 'betterdocs' ),
6002 + 'priority' => 160,
6003 + 'section' => 'betterdocs_single_docs_settings',
6004 + 'settings' => 'betterdocs_post_reactions_happy',
6005 + 'type' => 'light' // light, ios, flat
6006 + ]
6007 + )
6008 + );
6009 + }
6010 +
6011 + public function post_reactions_happy_icon() {
6012 + $this->customizer->add_setting(
6013 + 'betterdocs_post_reactions_happy_icon',
6014 + [
6015 + 'default' => $this->defaults['betterdocs_post_reactions_happy_icon'],
6016 + 'capability' => 'edit_theme_options'
6017 +
6018 + ]
6019 + );
6020 +
6021 + $this->customizer->add_control(
6022 + new WP_Customize_Image_Control(
6023 + $this->customizer,
6024 + 'betterdocs_post_reactions_happy_icon',
6025 + [
6026 + 'section' => 'betterdocs_single_docs_settings',
6027 + 'settings' => 'betterdocs_post_reactions_happy_icon',
6028 + 'label' => __( 'Happy Icon', 'betterdocs' ),
6029 + 'priority' => 160
6030 + ]
6031 + )
6032 + );
6033 + }
6034 +
6035 + public function post_reactions_normal() {
6036 + $this->customizer->add_setting(
6037 + 'betterdocs_post_reactions_normal',
6038 + [
6039 + 'default' => $this->defaults['betterdocs_post_reactions_normal'],
6040 + 'capability' => 'edit_theme_options',
6041 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
6042 + ]
6043 + );
6044 +
6045 + $this->customizer->add_control(
6046 + new ToggleControl(
6047 + $this->customizer,
6048 + 'betterdocs_post_reactions_normal',
6049 + [
6050 + 'label' => __( 'Enable Normal?', 'betterdocs' ),
6051 + 'priority' => 160,
6052 + 'section' => 'betterdocs_single_docs_settings',
6053 + 'settings' => 'betterdocs_post_reactions_normal',
6054 + 'type' => 'light' // light, ios, flat
6055 + ]
6056 + )
6057 + );
6058 + }
6059 +
6060 + public function post_reactions_normal_icon() {
6061 + $this->customizer->add_setting(
6062 + 'betterdocs_post_reactions_normal_icon',
6063 + [
6064 + 'default' => $this->defaults['betterdocs_post_reactions_normal_icon'],
6065 + 'capability' => 'edit_theme_options'
6066 +
6067 + ]
6068 + );
6069 +
6070 + $this->customizer->add_control(
6071 + new WP_Customize_Image_Control(
6072 + $this->customizer,
6073 + 'betterdocs_post_reactions_normal_icon',
6074 + [
6075 + 'section' => 'betterdocs_single_docs_settings',
6076 + 'settings' => 'betterdocs_post_reactions_normal_icon',
6077 + 'label' => __( 'Normal Icon', 'betterdocs' ),
6078 + 'priority' => 160
6079 + ]
6080 + )
6081 + );
6082 + }
6083 +
6084 + public function post_reactions_sad() {
6085 + $this->customizer->add_setting(
6086 + 'betterdocs_post_reactions_sad',
6087 + [
6088 + 'default' => $this->defaults['betterdocs_post_reactions_sad'],
6089 + 'capability' => 'edit_theme_options',
6090 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
6091 + ]
6092 + );
6093 +
6094 + $this->customizer->add_control(
6095 + new ToggleControl(
6096 + $this->customizer,
6097 + 'betterdocs_post_reactions_sad',
6098 + [
6099 + 'label' => __( 'Enable Sad?', 'betterdocs' ),
6100 + 'priority' => 160,
6101 + 'section' => 'betterdocs_single_docs_settings',
6102 + 'settings' => 'betterdocs_post_reactions_sad',
6103 + 'type' => 'light' // light, ios, flat
6104 + ]
6105 + )
6106 + );
6107 + }
6108 +
6109 + public function post_reactions_sad_icon() {
6110 + $this->customizer->add_setting(
6111 + 'betterdocs_post_reactions_sad_icon',
6112 + [
6113 + 'default' => $this->defaults['betterdocs_post_reactions_sad_icon'],
6114 + 'capability' => 'edit_theme_options'
6115 +
6116 + ]
6117 + );
6118 +
6119 + $this->customizer->add_control(
6120 + new WP_Customize_Image_Control(
6121 + $this->customizer,
6122 + 'betterdocs_post_reactions_sad_icon',
6123 + [
6124 + 'section' => 'betterdocs_single_docs_settings',
6125 + 'settings' => 'betterdocs_post_reactions_sad_icon',
6126 + 'label' => __( 'Sad Icon', 'betterdocs' ),
6127 + 'priority' => 160
6128 + ]
6129 + )
6130 + );
6131 + }
6132 +
6133 + public function post_reactions_text() {
6134 + $this->customizer->add_setting(
6135 + 'betterdocs_post_reactions_text',
6136 + [
6137 + 'default' => $this->defaults['betterdocs_post_reactions_text'],
6138 + 'capability' => 'edit_theme_options',
6139 + 'sanitize_callback' => 'esc_html'
6140 + ]
6141 + );
6142 +
6143 + $this->customizer->add_control(
6144 + new SelectControl(
6145 + $this->customizer,
6146 + 'betterdocs_post_reactions_text',
6147 + [
6148 + 'label' => __( 'Reactions Title', 'betterdocs' ),
6149 + 'priority' => 161,
6150 + 'section' => 'betterdocs_single_docs_settings',
6151 + 'settings' => 'betterdocs_post_reactions_text',
6152 + 'type' => 'text'
6153 + ]
6154 + )
6155 + );
6156 + }
6157 +
6158 + public function post_reactions_text_2() {
6159 + $this->customizer->add_setting(
6160 + 'betterdocs_post_reactions_text_2',
6161 + [
6162 + 'default' => $this->defaults['betterdocs_post_reactions_text_2'],
6163 + 'capability' => 'edit_theme_options',
6164 + 'sanitize_callback' => 'esc_html'
6165 + ]
6166 + );
6167 +
6168 + $this->customizer->add_control(
6169 + new SelectControl(
6170 + $this->customizer,
6171 + 'betterdocs_post_reactions_text_2',
6172 + [
6173 + 'label' => __( 'Reactions Title', 'betterdocs' ),
6174 + 'priority' => 161,
6175 + 'section' => 'betterdocs_single_docs_settings',
6176 + 'settings' => 'betterdocs_post_reactions_text_2',
6177 + 'type' => 'text'
6178 + ]
6179 + )
6180 + );
6181 + }
6182 +
6183 + public function reactions_background_color() {
6184 + $this->customizer->add_setting(
6185 + 'reactions_background_color',
6186 + [
6187 + 'default' => $this->defaults['reactions_background_color'],
6188 + 'capability' => 'edit_theme_options',
6189 + 'transport' => 'postMessage',
6190 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6191 + ]
6192 + );
6193 +
6194 + $this->customizer->add_control(
6195 + new AlphaColorControl(
6196 + $this->customizer,
6197 + 'reactions_background_color',
6198 + [
6199 + 'label' => __( 'Reactions Background Color', 'betterdocs' ),
6200 + 'priority' => 162,
6201 + 'section' => 'betterdocs_single_docs_settings',
6202 + 'settings' => 'reactions_background_color'
6203 + ]
6204 + )
6205 + );
6206 + }
6207 +
6208 + public function post_reactions_text_color() {
6209 + $this->customizer->add_setting(
6210 + 'betterdocs_post_reactions_text_color',
6211 + [
6212 + 'default' => $this->defaults['betterdocs_post_reactions_text_color'],
6213 + 'capability' => 'edit_theme_options',
6214 + 'transport' => 'postMessage',
6215 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6216 + ]
6217 + );
6218 +
6219 + $this->customizer->add_control(
6220 + new AlphaColorControl(
6221 + $this->customizer,
6222 + 'betterdocs_post_reactions_text_color',
6223 + [
6224 + 'label' => __( 'Reactions Text Color', 'betterdocs' ),
6225 + 'priority' => 162,
6226 + 'section' => 'betterdocs_single_docs_settings',
6227 + 'settings' => 'betterdocs_post_reactions_text_color'
6228 + ]
6229 + )
6230 + );
6231 + }
6232 +
6233 + public function post_reactions_icon_color() {
6234 + $this->customizer->add_setting(
6235 + 'betterdocs_post_reactions_icon_color',
6236 + [
6237 + 'default' => $this->defaults['betterdocs_post_reactions_icon_color'],
6238 + 'capability' => 'edit_theme_options',
6239 + 'transport' => 'postMessage',
6240 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6241 + ]
6242 + );
6243 +
6244 + $this->customizer->add_control(
6245 + new AlphaColorControl(
6246 + $this->customizer,
6247 + 'betterdocs_post_reactions_icon_color',
6248 + [
6249 + 'label' => __( 'Reactions Icon Background Color', 'betterdocs' ),
6250 + 'priority' => 163,
6251 + 'section' => 'betterdocs_single_docs_settings',
6252 + 'settings' => 'betterdocs_post_reactions_icon_color'
6253 + ]
6254 + )
6255 + );
6256 + }
6257 +
6258 + public function post_reactions_icon_svg_color() {
6259 + $this->customizer->add_setting(
6260 + 'betterdocs_post_reactions_icon_svg_color',
6261 + [
6262 + 'default' => $this->defaults['betterdocs_post_reactions_icon_svg_color'],
6263 + 'capability' => 'edit_theme_options',
6264 + 'transport' => 'postMessage',
6265 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6266 + ]
6267 + );
6268 +
6269 + $this->customizer->add_control(
6270 + new AlphaColorControl(
6271 + $this->customizer,
6272 + 'betterdocs_post_reactions_icon_svg_color',
6273 + [
6274 + 'label' => __( 'Reactions Icon Color', 'betterdocs' ),
6275 + 'priority' => 163,
6276 + 'section' => 'betterdocs_single_docs_settings',
6277 + 'settings' => 'betterdocs_post_reactions_icon_svg_color'
6278 + ]
6279 + )
6280 + );
6281 + }
6282 +
6283 + public function post_reactions_icon_hover_bg_color() {
6284 + $this->customizer->add_setting(
6285 + 'betterdocs_post_reactions_icon_hover_bg_color',
6286 + [
6287 + 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_bg_color'],
6288 + 'capability' => 'edit_theme_options',
6289 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6290 + ]
6291 + );
6292 +
6293 + $this->customizer->add_control(
6294 + new AlphaColorControl(
6295 + $this->customizer,
6296 + 'betterdocs_post_reactions_icon_hover_bg_color',
6297 + [
6298 + 'label' => __( 'Reactions Icon Hover Background Color', 'betterdocs' ),
6299 + 'priority' => 163,
6300 + 'section' => 'betterdocs_single_docs_settings',
6301 + 'settings' => 'betterdocs_post_reactions_icon_hover_bg_color'
6302 + ]
6303 + )
6304 + );
6305 + }
6306 +
6307 + public function post_reactions_icon_hover_svg_color() {
6308 + $this->customizer->add_setting(
6309 + 'betterdocs_post_reactions_icon_hover_svg_color',
6310 + [
6311 + 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_svg_color'],
6312 + 'capability' => 'edit_theme_options',
6313 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6314 + ]
6315 + );
6316 +
6317 + $this->customizer->add_control(
6318 + new AlphaColorControl(
6319 + $this->customizer,
6320 + 'betterdocs_post_reactions_icon_hover_svg_color',
6321 + [
6322 + 'label' => __( 'Reactions Icon Hover Color', 'betterdocs' ),
6323 + 'priority' => 163,
6324 + 'section' => 'betterdocs_single_docs_settings',
6325 + 'settings' => 'betterdocs_post_reactions_icon_hover_svg_color'
6326 + ]
6327 + )
6328 + );
6329 + }
6330 +
6331 + public function reactions_background_color_layout_8() {
6332 + $this->customizer->add_setting(
6333 + 'reactions_background_color_layout_8',
6334 + [
6335 + 'default' => $this->defaults['reactions_background_color_layout_8'],
6336 + 'capability' => 'edit_theme_options',
6337 + 'transport' => 'postMessage',
6338 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6339 + ]
6340 + );
6341 +
6342 + $this->customizer->add_control(
6343 + new AlphaColorControl(
6344 + $this->customizer,
6345 + 'reactions_background_color_layout_8',
6346 + [
6347 + 'label' => __( 'Reactions Background Color', 'betterdocs' ),
6348 + 'priority' => 162,
6349 + 'section' => 'betterdocs_single_docs_settings',
6350 + 'settings' => 'reactions_background_color_layout_8'
6351 + ]
6352 + )
6353 + );
6354 + }
6355 +
6356 + public function reactions_background_color_layout_9() {
6357 + $this->customizer->add_setting(
6358 + 'reactions_background_color_layout_9',
6359 + [
6360 + 'default' => $this->defaults['reactions_background_color_layout_9'],
6361 + 'capability' => 'edit_theme_options',
6362 + 'transport' => 'postMessage',
6363 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6364 + ]
6365 + );
6366 +
6367 + $this->customizer->add_control(
6368 + new AlphaColorControl(
6369 + $this->customizer,
6370 + 'reactions_background_color_layout_9',
6371 + [
6372 + 'label' => __( 'Reactions Background Color', 'betterdocs' ),
6373 + 'priority' => 162,
6374 + 'section' => 'betterdocs_single_docs_settings',
6375 + 'settings' => 'reactions_background_color_layout_9'
6376 + ]
6377 + )
6378 + );
6379 + }
6380 +
6381 + public function post_reactions_text_color_layout_8_9() {
6382 + $this->customizer->add_setting(
6383 + 'betterdocs_post_reactions_text_color_layout_8_9',
6384 + [
6385 + 'default' => $this->defaults['betterdocs_post_reactions_text_color_layout_8_9'],
6386 + 'capability' => 'edit_theme_options',
6387 + 'transport' => 'postMessage',
6388 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6389 + ]
6390 + );
6391 +
6392 + $this->customizer->add_control(
6393 + new AlphaColorControl(
6394 + $this->customizer,
6395 + 'betterdocs_post_reactions_text_color_layout_8_9',
6396 + [
6397 + 'label' => __( 'Reactions Text Color', 'betterdocs' ),
6398 + 'priority' => 162,
6399 + 'section' => 'betterdocs_single_docs_settings',
6400 + 'settings' => 'betterdocs_post_reactions_text_color_layout_8_9'
6401 + ]
6402 + )
6403 + );
6404 + }
6405 +
6406 + public function post_reactions_icon_color_layout_8_9() {
6407 + $this->customizer->add_setting(
6408 + 'betterdocs_post_reactions_icon_color_layout_8_9',
6409 + [
6410 + 'default' => $this->defaults['betterdocs_post_reactions_icon_color_layout_8_9'],
6411 + 'capability' => 'edit_theme_options',
6412 + 'transport' => 'postMessage',
6413 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
6414 + ]
6415 + );
6416 +
6417 + $this->customizer->add_control(
6418 + new AlphaColorControl(
6419 + $this->customizer,
6420 + 'betterdocs_post_reactions_icon_color_layout_8_9',
6421 + [
6422 + 'label' => __( 'Reactions Icon Background Color', 'betterdocs' ),
6423 + 'priority' => 163,
6424 + 'section' => 'betterdocs_single_docs_settings',
6425 + 'settings' => 'betterdocs_post_reactions_icon_color_layout_8_9'
6426 + ]
6427 + )
6428 + );
6429 + }
6430 +
6431 + public function post_reactions_margin_layout_8() {
6432 + $this->customizer->add_setting(
6433 + 'post_reactions_margin_layout_8',
6434 + [
6435 + 'default' => $this->defaults['post_reactions_margin_layout_8'],
6436 + 'capability' => 'edit_theme_options',
6437 + 'transport' => 'postMessage',
6438 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6439 + ]
6440 + );
6441 +
6442 + $this->customizer->add_control(
6443 + new TitleControl(
6444 + $this->customizer,
6445 + 'post_reactions_margin_layout_8',
6446 + [
6447 + 'type' => 'betterdocs-title',
6448 + 'section' => 'betterdocs_single_docs_settings',
6449 + 'settings' => 'post_reactions_margin_layout_8',
6450 + 'label' => __( 'Margin', 'betterdocs' ),
6451 + 'priority' => 163,
6452 + 'input_attrs' => [
6453 + 'id' => 'post_reactions_margin_layout_8',
6454 + 'class' => 'betterdocs-dimension'
6455 + ]
6456 + ]
6457 + )
6458 + );
6459 +
6460 + $this->customizer->add_setting(
6461 + 'post_reactions_margin_top_layout_8',
6462 + [
6463 + 'default' => $this->defaults['post_reactions_margin_top_layout_8'],
6464 + 'capability' => 'edit_theme_options',
6465 + 'transport' => 'postMessage',
6466 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6467 + ]
6468 + );
6469 +
6470 + $this->customizer->add_control(
6471 + new DimensionControl(
6472 + $this->customizer,
6473 + 'post_reactions_margin_top_layout_8',
6474 + [
6475 + 'type' => 'betterdocs-dimension',
6476 + 'section' => 'betterdocs_single_docs_settings',
6477 + 'settings' => 'post_reactions_margin_top_layout_8',
6478 + 'label' => __( 'Top', 'betterdocs' ),
6479 + 'priority' => 163,
6480 + 'input_attrs' => [
6481 + 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
6482 + ]
6483 + ]
6484 + )
6485 + );
6486 +
6487 + $this->customizer->add_setting(
6488 + 'post_reactions_margin_right_layout_8',
6489 + [
6490 + 'default' => $this->defaults['post_reactions_margin_right_layout_8'],
6491 + 'capability' => 'edit_theme_options',
6492 + 'transport' => 'postMessage',
6493 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6494 + ]
6495 + );
6496 +
6497 + $this->customizer->add_control(
6498 + new DimensionControl(
6499 + $this->customizer,
6500 + 'post_reactions_margin_right_layout_8',
6501 + [
6502 + 'type' => 'betterdocs-dimension',
6503 + 'section' => 'betterdocs_single_docs_settings',
6504 + 'settings' => 'post_reactions_margin_right_layout_8',
6505 + 'label' => __( 'Right', 'betterdocs' ),
6506 + 'priority' => 163,
6507 + 'input_attrs' => [
6508 + 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
6509 + ]
6510 + ]
6511 + )
6512 + );
6513 +
6514 + $this->customizer->add_setting(
6515 + 'post_reactions_margin_bottom_layout_8',
6516 + [
6517 + 'default' => $this->defaults['post_reactions_margin_bottom_layout_8'],
6518 + 'capability' => 'edit_theme_options',
6519 + 'transport' => 'postMessage',
6520 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6521 + ]
6522 + );
6523 +
6524 + $this->customizer->add_control(
6525 + new DimensionControl(
6526 + $this->customizer,
6527 + 'post_reactions_margin_bottom_layout_8',
6528 + [
6529 + 'type' => 'betterdocs-dimension',
6530 + 'section' => 'betterdocs_single_docs_settings',
6531 + 'settings' => 'post_reactions_margin_bottom_layout_8',
6532 + 'label' => __( 'Bottom', 'betterdocs' ),
6533 + 'priority' => 163,
6534 + 'input_attrs' => [
6535 + 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
6536 + ]
6537 + ]
6538 + )
6539 + );
6540 +
6541 + $this->customizer->add_setting(
6542 + 'post_reactions_margin_left_layout_8',
6543 + [
6544 + 'default' => $this->defaults['post_reactions_margin_left_layout_8'],
6545 + 'capability' => 'edit_theme_options',
6546 + 'transport' => 'postMessage',
6547 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6548 + ]
6549 + );
6550 +
6551 + $this->customizer->add_control(
6552 + new DimensionControl(
6553 + $this->customizer,
6554 + 'post_reactions_margin_left_layout_8',
6555 + [
6556 + 'type' => 'betterdocs-dimension',
6557 + 'section' => 'betterdocs_single_docs_settings',
6558 + 'settings' => 'post_reactions_margin_left_layout_8',
6559 + 'label' => __( 'Left', 'betterdocs' ),
6560 + 'priority' => 163,
6561 + 'input_attrs' => [
6562 + 'class' => 'post_reactions_margin_layout_8 betterdocs-dimension'
6563 + ]
6564 + ]
6565 + )
6566 + );
6567 + }
6568 +
6569 + public function post_reactions_margin_layout_9() {
6570 + $this->customizer->add_setting(
6571 + 'post_reactions_margin_layout_9',
6572 + [
6573 + 'default' => $this->defaults['post_reactions_margin_layout_9'],
6574 + 'capability' => 'edit_theme_options',
6575 + 'transport' => 'postMessage',
6576 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6577 + ]
6578 + );
6579 +
6580 + $this->customizer->add_control(
6581 + new TitleControl(
6582 + $this->customizer,
6583 + 'post_reactions_margin_layout_9',
6584 + [
6585 + 'type' => 'betterdocs-title',
6586 + 'section' => 'betterdocs_single_docs_settings',
6587 + 'settings' => 'post_reactions_margin_layout_9',
6588 + 'label' => __( 'Margin', 'betterdocs' ),
6589 + 'priority' => 163,
6590 + 'input_attrs' => [
6591 + 'id' => 'post_reactions_margin_layout_9',
6592 + 'class' => 'betterdocs-dimension'
6593 + ]
6594 + ]
6595 + )
6596 + );
6597 +
6598 + $this->customizer->add_setting(
6599 + 'post_reactions_margin_top_layout_9',
6600 + [
6601 + 'default' => $this->defaults['post_reactions_margin_top_layout_9'],
6602 + 'capability' => 'edit_theme_options',
6603 + 'transport' => 'postMessage',
6604 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6605 + ]
6606 + );
6607 +
6608 + $this->customizer->add_control(
6609 + new DimensionControl(
6610 + $this->customizer,
6611 + 'post_reactions_margin_top_layout_9',
6612 + [
6613 + 'type' => 'betterdocs-dimension',
6614 + 'section' => 'betterdocs_single_docs_settings',
6615 + 'settings' => 'post_reactions_margin_top_layout_9',
6616 + 'label' => __( 'Top', 'betterdocs' ),
6617 + 'priority' => 163,
6618 + 'input_attrs' => [
6619 + 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
6620 + ]
6621 + ]
6622 + )
6623 + );
6624 +
6625 + $this->customizer->add_setting(
6626 + 'post_reactions_margin_right_layout_9',
6627 + [
6628 + 'default' => $this->defaults['post_reactions_margin_right_layout_9'],
6629 + 'capability' => 'edit_theme_options',
6630 + 'transport' => 'postMessage',
6631 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6632 + ]
6633 + );
6634 +
6635 + $this->customizer->add_control(
6636 + new DimensionControl(
6637 + $this->customizer,
6638 + 'post_reactions_margin_right_layout_9',
6639 + [
6640 + 'type' => 'betterdocs-dimension',
6641 + 'section' => 'betterdocs_single_docs_settings',
6642 + 'settings' => 'post_reactions_margin_right_layout_9',
6643 + 'label' => __( 'Right', 'betterdocs' ),
6644 + 'priority' => 163,
6645 + 'input_attrs' => [
6646 + 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
6647 + ]
6648 + ]
6649 + )
6650 + );
6651 +
6652 + $this->customizer->add_setting(
6653 + 'post_reactions_margin_bottom_layout_9',
6654 + [
6655 + 'default' => $this->defaults['post_reactions_margin_bottom_layout_9'],
6656 + 'capability' => 'edit_theme_options',
6657 + 'transport' => 'postMessage',
6658 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6659 + ]
6660 + );
6661 +
6662 + $this->customizer->add_control(
6663 + new DimensionControl(
6664 + $this->customizer,
6665 + 'post_reactions_margin_bottom_layout_9',
6666 + [
6667 + 'type' => 'betterdocs-dimension',
6668 + 'section' => 'betterdocs_single_docs_settings',
6669 + 'settings' => 'post_reactions_margin_bottom_layout_9',
6670 + 'label' => __( 'Bottom', 'betterdocs' ),
6671 + 'priority' => 163,
6672 + 'input_attrs' => [
6673 + 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
6674 + ]
6675 + ]
6676 + )
6677 + );
6678 +
6679 + $this->customizer->add_setting(
6680 + 'post_reactions_margin_left_layout_9',
6681 + [
6682 + 'default' => $this->defaults['post_reactions_margin_left_layout_9'],
6683 + 'capability' => 'edit_theme_options',
6684 + 'transport' => 'postMessage',
6685 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6686 + ]
6687 + );
6688 +
6689 + $this->customizer->add_control(
6690 + new DimensionControl(
6691 + $this->customizer,
6692 + 'post_reactions_margin_left_layout_9',
6693 + [
6694 + 'type' => 'betterdocs-dimension',
6695 + 'section' => 'betterdocs_single_docs_settings',
6696 + 'settings' => 'post_reactions_margin_left_layout_9',
6697 + 'label' => __( 'Left', 'betterdocs' ),
6698 + 'priority' => 163,
6699 + 'input_attrs' => [
6700 + 'class' => 'post_reactions_margin_layout_9 betterdocs-dimension'
6701 + ]
6702 + ]
6703 + )
6704 + );
6705 + }
6706 +
6707 +
6708 + public function post_reactions_padding_layout_8() {
6709 + $this->customizer->add_setting(
6710 + 'post_reactions_padding_layout_8',
6711 + [
6712 + 'default' => $this->defaults['post_reactions_padding_layout_8'],
6713 + 'capability' => 'edit_theme_options',
6714 + 'transport' => 'postMessage',
6715 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6716 + ]
6717 + );
6718 +
6719 + $this->customizer->add_control(
6720 + new TitleControl(
6721 + $this->customizer,
6722 + 'post_reactions_padding_layout_8',
6723 + [
6724 + 'type' => 'betterdocs-title',
6725 + 'section' => 'betterdocs_single_docs_settings',
6726 + 'settings' => 'post_reactions_padding_layout_8',
6727 + 'label' => __( 'Padding', 'betterdocs' ),
6728 + 'priority' => 163,
6729 + 'input_attrs' => [
6730 + 'id' => 'post_reactions_padding_layout_8',
6731 + 'class' => 'betterdocs-dimension'
6732 + ]
6733 + ]
6734 + )
6735 + );
6736 +
6737 + $this->customizer->add_setting(
6738 + 'post_reactions_padding_top_layout_8',
6739 + [
6740 + 'default' => $this->defaults['post_reactions_padding_top_layout_8'],
6741 + 'capability' => 'edit_theme_options',
6742 + 'transport' => 'postMessage',
6743 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6744 + ]
6745 + );
6746 +
6747 + $this->customizer->add_control(
6748 + new DimensionControl(
6749 + $this->customizer,
6750 + 'post_reactions_padding_top_layout_8',
6751 + [
6752 + 'type' => 'betterdocs-dimension',
6753 + 'section' => 'betterdocs_single_docs_settings',
6754 + 'settings' => 'post_reactions_padding_top_layout_8',
6755 + 'label' => __( 'Top', 'betterdocs' ),
6756 + 'priority' => 163,
6757 + 'input_attrs' => [
6758 + 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
6759 + ]
6760 + ]
6761 + )
6762 + );
6763 +
6764 + $this->customizer->add_setting(
6765 + 'post_reactions_padding_right_layout_8',
6766 + [
6767 + 'default' => $this->defaults['post_reactions_padding_right_layout_8'],
6768 + 'capability' => 'edit_theme_options',
6769 + 'transport' => 'postMessage',
6770 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6771 + ]
6772 + );
6773 +
6774 + $this->customizer->add_control(
6775 + new DimensionControl(
6776 + $this->customizer,
6777 + 'post_reactions_padding_right_layout_8',
6778 + [
6779 + 'type' => 'betterdocs-dimension',
6780 + 'section' => 'betterdocs_single_docs_settings',
6781 + 'settings' => 'post_reactions_padding_right_layout_8',
6782 + 'label' => __( 'Right', 'betterdocs' ),
6783 + 'priority' => 163,
6784 + 'input_attrs' => [
6785 + 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
6786 + ]
6787 + ]
6788 + )
6789 + );
6790 +
6791 + $this->customizer->add_setting(
6792 + 'post_reactions_padding_bottom_layout_8',
6793 + [
6794 + 'default' => $this->defaults['post_reactions_padding_bottom_layout_8'],
6795 + 'capability' => 'edit_theme_options',
6796 + 'transport' => 'postMessage',
6797 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6798 + ]
6799 + );
6800 +
6801 + $this->customizer->add_control(
6802 + new DimensionControl(
6803 + $this->customizer,
6804 + 'post_reactions_padding_bottom_layout_8',
6805 + [
6806 + 'type' => 'betterdocs-dimension',
6807 + 'section' => 'betterdocs_single_docs_settings',
6808 + 'settings' => 'post_reactions_padding_bottom_layout_8',
6809 + 'label' => __( 'Bottom', 'betterdocs' ),
6810 + 'priority' => 163,
6811 + 'input_attrs' => [
6812 + 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
6813 + ]
6814 + ]
6815 + )
6816 + );
6817 +
6818 + $this->customizer->add_setting(
6819 + 'post_reactions_padding_left_layout_8',
6820 + [
6821 + 'default' => $this->defaults['post_reactions_padding_left_layout_8'],
6822 + 'capability' => 'edit_theme_options',
6823 + 'transport' => 'postMessage',
6824 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6825 + ]
6826 + );
6827 +
6828 + $this->customizer->add_control(
6829 + new DimensionControl(
6830 + $this->customizer,
6831 + 'post_reactions_padding_left_layout_8',
6832 + [
6833 + 'type' => 'betterdocs-dimension',
6834 + 'section' => 'betterdocs_single_docs_settings',
6835 + 'settings' => 'post_reactions_padding_left_layout_8',
6836 + 'label' => __( 'Left', 'betterdocs' ),
6837 + 'priority' => 163,
6838 + 'input_attrs' => [
6839 + 'class' => 'post_reactions_padding_layout_8 betterdocs-dimension'
6840 + ]
6841 + ]
6842 + )
6843 + );
6844 + }
6845 +
6846 + public function post_reactions_padding_layout_9() {
6847 + $this->customizer->add_setting(
6848 + 'post_reactions_padding_layout_9',
6849 + [
6850 + 'default' => $this->defaults['post_reactions_padding_layout_9'],
6851 + 'capability' => 'edit_theme_options',
6852 + 'transport' => 'postMessage',
6853 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6854 + ]
6855 + );
6856 +
6857 + $this->customizer->add_control(
6858 + new TitleControl(
6859 + $this->customizer,
6860 + 'post_reactions_padding_layout_9',
6861 + [
6862 + 'type' => 'betterdocs-title',
6863 + 'section' => 'betterdocs_single_docs_settings',
6864 + 'settings' => 'post_reactions_padding_layout_9',
6865 + 'label' => __( 'Padding', 'betterdocs' ),
6866 + 'priority' => 163,
6867 + 'input_attrs' => [
6868 + 'id' => 'post_reactions_padding_layout_9',
6869 + 'class' => 'betterdocs-dimension'
6870 + ]
6871 + ]
6872 + )
6873 + );
6874 +
6875 + $this->customizer->add_setting(
6876 + 'post_reactions_padding_top_layout_9',
6877 + [
6878 + 'default' => $this->defaults['post_reactions_padding_top_layout_9'],
6879 + 'capability' => 'edit_theme_options',
6880 + 'transport' => 'postMessage',
6881 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6882 + ]
6883 + );
6884 +
6885 + $this->customizer->add_control(
6886 + new DimensionControl(
6887 + $this->customizer,
6888 + 'post_reactions_padding_top_layout_9',
6889 + [
6890 + 'type' => 'betterdocs-dimension',
6891 + 'section' => 'betterdocs_single_docs_settings',
6892 + 'settings' => 'post_reactions_padding_top_layout_9',
6893 + 'label' => __( 'Top', 'betterdocs' ),
6894 + 'priority' => 163,
6895 + 'input_attrs' => [
6896 + 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
6897 + ]
6898 + ]
6899 + )
6900 + );
6901 +
6902 + $this->customizer->add_setting(
6903 + 'post_reactions_padding_right_layout_9',
6904 + [
6905 + 'default' => $this->defaults['post_reactions_padding_right_layout_9'],
6906 + 'capability' => 'edit_theme_options',
6907 + 'transport' => 'postMessage',
6908 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6909 + ]
6910 + );
6911 +
6912 + $this->customizer->add_control(
6913 + new DimensionControl(
6914 + $this->customizer,
6915 + 'post_reactions_padding_right_layout_9',
6916 + [
6917 + 'type' => 'betterdocs-dimension',
6918 + 'section' => 'betterdocs_single_docs_settings',
6919 + 'settings' => 'post_reactions_padding_right_layout_9',
6920 + 'label' => __( 'Right', 'betterdocs' ),
6921 + 'priority' => 163,
6922 + 'input_attrs' => [
6923 + 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
6924 + ]
6925 + ]
6926 + )
6927 + );
6928 +
6929 + $this->customizer->add_setting(
6930 + 'post_reactions_padding_bottom_layout_9',
6931 + [
6932 + 'default' => $this->defaults['post_reactions_padding_bottom_layout_9'],
6933 + 'capability' => 'edit_theme_options',
6934 + 'transport' => 'postMessage',
6935 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6936 + ]
6937 + );
6938 +
6939 + $this->customizer->add_control(
6940 + new DimensionControl(
6941 + $this->customizer,
6942 + 'post_reactions_padding_bottom_layout_9',
6943 + [
6944 + 'type' => 'betterdocs-dimension',
6945 + 'section' => 'betterdocs_single_docs_settings',
6946 + 'settings' => 'post_reactions_padding_bottom_layout_8',
6947 + 'label' => __( 'Bottom', 'betterdocs' ),
6948 + 'priority' => 163,
6949 + 'input_attrs' => [
6950 + 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
6951 + ]
6952 + ]
6953 + )
6954 + );
6955 +
6956 + $this->customizer->add_setting(
6957 + 'post_reactions_padding_left_layout_9',
6958 + [
6959 + 'default' => $this->defaults['post_reactions_padding_left_layout_9'],
6960 + 'capability' => 'edit_theme_options',
6961 + 'transport' => 'postMessage',
6962 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6963 + ]
6964 + );
6965 +
6966 + $this->customizer->add_control(
6967 + new DimensionControl(
6968 + $this->customizer,
6969 + 'post_reactions_padding_left_layout_9',
6970 + [
6971 + 'type' => 'betterdocs-dimension',
6972 + 'section' => 'betterdocs_single_docs_settings',
6973 + 'settings' => 'post_reactions_padding_left_layout_8',
6974 + 'label' => __( 'Left', 'betterdocs' ),
6975 + 'priority' => 163,
6976 + 'input_attrs' => [
6977 + 'class' => 'post_reactions_padding_layout_9 betterdocs-dimension'
6978 + ]
6979 + ]
6980 + )
6981 + );
6982 + }
6983 +
6984 + public function post_reactions_border_layout_8() {
6985 + $this->customizer->add_setting(
6986 + 'post_reactions_border_layout_8',
6987 + [
6988 + 'default' => $this->defaults['post_reactions_border_layout_8'],
6989 + 'capability' => 'edit_theme_options',
6990 + 'transport' => 'postMessage',
6991 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
6992 + ]
6993 + );
6994 +
6995 + $this->customizer->add_control(
6996 + new TitleControl(
6997 + $this->customizer,
6998 + 'post_reactions_border_layout_8',
6999 + [
7000 + 'type' => 'betterdocs-title',
7001 + 'section' => 'betterdocs_single_docs_settings',
7002 + 'settings' => 'post_reactions_border_layout_8',
7003 + 'label' => __( 'Border', 'betterdocs' ),
7004 + 'priority' => 163,
7005 + 'input_attrs' => [
7006 + 'id' => 'post_reactions_border_layout_8',
7007 + 'class' => 'betterdocs-dimension'
7008 + ]
7009 + ]
7010 + )
7011 + );
7012 +
7013 + $this->customizer->add_setting(
7014 + 'post_reactions_border_top_layout_8',
7015 + [
7016 + 'default' => $this->defaults['post_reactions_border_top_layout_8'],
7017 + 'capability' => 'edit_theme_options',
7018 + 'transport' => 'postMessage',
7019 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7020 + ]
7021 + );
7022 +
7023 + $this->customizer->add_control(
7024 + new DimensionControl(
7025 + $this->customizer,
7026 + 'post_reactions_border_top_layout_8',
7027 + [
7028 + 'type' => 'betterdocs-dimension',
7029 + 'section' => 'betterdocs_single_docs_settings',
7030 + 'settings' => 'post_reactions_border_top_layout_8',
7031 + 'label' => __( 'Border Top', 'betterdocs' ),
7032 + 'priority' => 163,
7033 + 'input_attrs' => [
7034 + 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
7035 + ]
7036 + ]
7037 + )
7038 + );
7039 +
7040 + $this->customizer->add_setting(
7041 + 'post_reactions_border_right_layout_8',
7042 + [
7043 + 'default' => $this->defaults['post_reactions_border_right_layout_8'],
7044 + 'capability' => 'edit_theme_options',
7045 + 'transport' => 'postMessage',
7046 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7047 + ]
7048 + );
7049 +
7050 + $this->customizer->add_control(
7051 + new DimensionControl(
7052 + $this->customizer,
7053 + 'post_reactions_border_right_layout_8',
7054 + [
7055 + 'type' => 'betterdocs-dimension',
7056 + 'section' => 'betterdocs_single_docs_settings',
7057 + 'settings' => 'post_reactions_border_right_layout_8',
7058 + 'label' => __( 'Border Right', 'betterdocs' ),
7059 + 'priority' => 163,
7060 + 'input_attrs' => [
7061 + 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
7062 + ]
7063 + ]
7064 + )
7065 + );
7066 +
7067 + $this->customizer->add_setting(
7068 + 'post_reactions_border_bottom_layout_8',
7069 + [
7070 + 'default' => $this->defaults['post_reactions_border_bottom_layout_8'],
7071 + 'capability' => 'edit_theme_options',
7072 + 'transport' => 'postMessage',
7073 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7074 + ]
7075 + );
7076 +
7077 + $this->customizer->add_control(
7078 + new DimensionControl(
7079 + $this->customizer,
7080 + 'post_reactions_border_bottom_layout_8',
7081 + [
7082 + 'type' => 'betterdocs-dimension',
7083 + 'section' => 'betterdocs_single_docs_settings',
7084 + 'settings' => 'post_reactions_border_bottom_layout_8',
7085 + 'label' => __( 'Border Bottom', 'betterdocs' ),
7086 + 'priority' => 163,
7087 + 'input_attrs' => [
7088 + 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
7089 + ]
7090 + ]
7091 + )
7092 + );
7093 +
7094 + $this->customizer->add_setting(
7095 + 'post_reactions_border_left_layout_8',
7096 + [
7097 + 'default' => $this->defaults['post_reactions_border_left_layout_8'],
7098 + 'capability' => 'edit_theme_options',
7099 + 'transport' => 'postMessage',
7100 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7101 + ]
7102 + );
7103 +
7104 + $this->customizer->add_control(
7105 + new DimensionControl(
7106 + $this->customizer,
7107 + 'post_reactions_border_left_layout_8',
7108 + [
7109 + 'type' => 'betterdocs-dimension',
7110 + 'section' => 'betterdocs_single_docs_settings',
7111 + 'settings' => 'post_reactions_border_left_layout_8',
7112 + 'label' => __( 'Border Left', 'betterdocs' ),
7113 + 'priority' => 163,
7114 + 'input_attrs' => [
7115 + 'class' => 'post_reactions_border_layout_8 betterdocs-dimension'
7116 + ]
7117 + ]
7118 + )
7119 + );
7120 + }
7121 +
7122 + // public function post_reactions_icon_svg_color_layout_8_9() {
7123 + // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_svg_color_layout_8_9', [
7124 + // 'default' => $this->defaults['betterdocs_post_reactions_icon_svg_color_layout_8_9'],
7125 + // 'capability' => 'edit_theme_options',
7126 + // 'transport' => 'postMessage',
7127 + // 'sanitize_callback' => [$this->sanitizer, 'rgba']
7128 + // ] );
7129 +
7130 + // $this->customizer->add_control(
7131 + // new AlphaColorControl(
7132 + // $this->customizer,
7133 + // 'betterdocs_post_reactions_icon_svg_color_layout_8_9',
7134 + // [
7135 + // 'label' => __( 'Reactions Icon Color', 'betterdocs' ),
7136 + // 'priority' => 163,
7137 + // 'section' => 'betterdocs_single_docs_settings',
7138 + // 'settings' => 'betterdocs_post_reactions_icon_svg_color_layout_8_9'
7139 + // ]
7140 + // )
7141 + // );
7142 + // }
7143 +
7144 + // public function post_reactions_icon_hover_bg_color_layout_8_9() {
7145 + // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9', [
7146 + // 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_bg_color_layout_8_9'],
7147 + // 'capability' => 'edit_theme_options',
7148 + // 'sanitize_callback' => [$this->sanitizer, 'rgba']
7149 + // ] );
7150 +
7151 + // $this->customizer->add_control(
7152 + // new AlphaColorControl(
7153 + // $this->customizer,
7154 + // 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9',
7155 + // [
7156 + // 'label' => __( 'Reactions Icon Hover Background Color', 'betterdocs' ),
7157 + // 'priority' => 163,
7158 + // 'section' => 'betterdocs_single_docs_settings',
7159 + // 'settings' => 'betterdocs_post_reactions_icon_hover_bg_color_layout_8_9'
7160 + // ]
7161 + // )
7162 + // );
7163 + // }
7164 +
7165 + // public function post_reactions_icon_hover_svg_color_layout_8_9() {
7166 + // $this->customizer->add_setting( 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9', [
7167 + // 'default' => $this->defaults['betterdocs_post_reactions_icon_hover_svg_color_layout_8_9'],
7168 + // 'capability' => 'edit_theme_options',
7169 + // 'sanitize_callback' => [$this->sanitizer, 'rgba']
7170 + // ] );
7171 +
7172 + // $this->customizer->add_control(
7173 + // new AlphaColorControl(
7174 + // $this->customizer,
7175 + // 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9',
7176 + // [
7177 + // 'label' => __( 'Reactions Icon Hover Color', 'betterdocs' ),
7178 + // 'priority' => 163,
7179 + // 'section' => 'betterdocs_single_docs_settings',
7180 + // 'settings' => 'betterdocs_post_reactions_icon_hover_svg_color_layout_8_9'
7181 + // ]
7182 + // )
7183 + // );
7184 + // }
7185 +
7186 + public function attachments_heading() {
7187 + $this->customizer->add_setting(
7188 + 'betterdocs_single_doc_attachment_heading',
7189 + [
7190 + 'default' => '',
7191 + 'sanitize_callback' => 'esc_html'
7192 + ]
7193 + );
7194 +
7195 + $this->customizer->add_control(
7196 + new SeparatorControl(
7197 + $this->customizer,
7198 + 'betterdocs_single_doc_attachment_heading',
7199 + [
7200 + 'label' => __( 'Attachments', 'betterdocs' ),
7201 + 'priority' => 163,
7202 + 'settings' => 'betterdocs_single_doc_attachment_heading',
7203 + 'section' => 'betterdocs_single_docs_settings'
7204 + ]
7205 + )
7206 + );
7207 + }
7208 +
7209 + public function betterdocs_doc_single_attachment_content_bg_color() {
7210 + $this->customizer->add_setting(
7211 + 'betterdocs_doc_single_attachment_content_bg_color',
7212 + [
7213 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_bg_color'],
7214 + 'capability' => 'edit_theme_options',
7215 + 'transport' => 'postMessage',
7216 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7217 + ]
7218 + );
7219 +
7220 + $this->customizer->add_control(
7221 + new AlphaColorControl(
7222 + $this->customizer,
7223 + 'betterdocs_doc_single_attachment_content_bg_color',
7224 + [
7225 + 'label' => __( 'Content Background Color', 'betterdocs' ),
7226 + 'section' => 'betterdocs_single_docs_settings',
7227 + 'settings' => 'betterdocs_doc_single_attachment_content_bg_color',
7228 + 'priority' => 163
7229 + ]
7230 + )
7231 + );
7232 + }
7233 +
7234 + public function betterdocs_doc_single_attachment_content_padding() {
7235 + $this->customizer->add_setting(
7236 + 'betterdocs_doc_single_attachment_content_padding',
7237 + [
7238 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding'],
7239 + 'capability' => 'edit_theme_options',
7240 + 'transport' => 'postMessage',
7241 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7242 +
7243 + ]
7244 + );
7245 +
7246 + $this->customizer->add_control(
7247 + new TitleControl(
7248 + $this->customizer,
7249 + 'betterdocs_doc_single_attachment_content_padding',
7250 + [
7251 + 'type' => 'betterdocs-title',
7252 + 'section' => 'betterdocs_single_docs_settings',
7253 + 'settings' => 'betterdocs_doc_single_attachment_content_padding',
7254 + 'label' => __( 'Content Padding', 'betterdocs' ),
7255 + 'priority' => 163,
7256 + 'input_attrs' => [
7257 + 'id' => 'betterdocs_doc_single_attachment_content_padding',
7258 + 'class' => 'betterdocs-dimension'
7259 + ]
7260 + ]
7261 + )
7262 + );
7263 +
7264 + $this->customizer->add_setting(
7265 + 'betterdocs_doc_single_attachment_content_padding_top',
7266 + [
7267 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_top'],
7268 + 'capability' => 'edit_theme_options',
7269 + 'transport' => 'postMessage',
7270 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7271 + ]
7272 + );
7273 +
7274 + $this->customizer->add_control(
7275 + new DimensionControl(
7276 + $this->customizer,
7277 + 'betterdocs_doc_single_attachment_content_padding_top',
7278 + [
7279 + 'type' => 'betterdocs-dimension',
7280 + 'section' => 'betterdocs_single_docs_settings',
7281 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_top',
7282 + 'label' => __( 'Top', 'betterdocs' ),
7283 + 'priority' => 163,
7284 + 'input_attrs' => [
7285 + 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
7286 + ]
7287 + ]
7288 + )
7289 + );
7290 +
7291 + $this->customizer->add_setting(
7292 + 'betterdocs_doc_single_attachment_content_padding_right',
7293 + [
7294 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_right'],
7295 + 'capability' => 'edit_theme_options',
7296 + 'transport' => 'postMessage',
7297 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7298 +
7299 + ]
7300 + );
7301 +
7302 + $this->customizer->add_control(
7303 + new DimensionControl(
7304 + $this->customizer,
7305 + 'betterdocs_doc_single_attachment_content_padding_right',
7306 + [
7307 + 'type' => 'betterdocs-dimension',
7308 + 'section' => 'betterdocs_single_docs_settings',
7309 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_right',
7310 + 'label' => __( 'Right', 'betterdocs' ),
7311 + 'priority' => 163,
7312 + 'input_attrs' => [
7313 + 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
7314 + ]
7315 + ]
7316 + )
7317 + );
7318 +
7319 + $this->customizer->add_setting(
7320 + 'betterdocs_doc_single_attachment_content_padding_bottom',
7321 + [
7322 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_bottom'],
7323 + 'capability' => 'edit_theme_options',
7324 + 'transport' => 'postMessage',
7325 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7326 +
7327 + ]
7328 + );
7329 +
7330 + $this->customizer->add_control(
7331 + new DimensionControl(
7332 + $this->customizer,
7333 + 'betterdocs_doc_single_attachment_content_padding_bottom',
7334 + [
7335 + 'type' => 'betterdocs-dimension',
7336 + 'section' => 'betterdocs_single_docs_settings',
7337 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_bottom',
7338 + 'label' => __( 'Bottom', 'betterdocs' ),
7339 + 'priority' => 163,
7340 + 'input_attrs' => [
7341 + 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
7342 + ]
7343 + ]
7344 + )
7345 + );
7346 +
7347 + $this->customizer->add_setting(
7348 + 'betterdocs_doc_single_attachment_content_padding_left',
7349 + [
7350 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_left'],
7351 + 'capability' => 'edit_theme_options',
7352 + 'transport' => 'postMessage',
7353 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7354 +
7355 + ]
7356 + );
7357 +
7358 + $this->customizer->add_control(
7359 + new DimensionControl(
7360 + $this->customizer,
7361 + 'betterdocs_doc_single_attachment_content_padding_left',
7362 + [
7363 + 'type' => 'betterdocs-dimension',
7364 + 'section' => 'betterdocs_single_docs_settings',
7365 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_left',
7366 + 'label' => __( 'Left', 'betterdocs' ),
7367 + 'priority' => 163,
7368 + 'input_attrs' => [
7369 + 'class' => 'betterdocs_doc_single_attachment_content_padding betterdocs-dimension'
7370 + ]
7371 + ]
7372 + )
7373 + );
7374 + }
7375 +
7376 + public function betterdocs_doc_single_attachment_content_margin() {
7377 + $this->customizer->add_setting(
7378 + 'betterdocs_doc_single_attachment_content_margin',
7379 + [
7380 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin'],
7381 + 'capability' => 'edit_theme_options',
7382 + 'transport' => 'postMessage',
7383 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7384 +
7385 + ]
7386 + );
7387 +
7388 + $this->customizer->add_control(
7389 + new TitleControl(
7390 + $this->customizer,
7391 + 'betterdocs_doc_single_attachment_content_margin',
7392 + [
7393 + 'type' => 'betterdocs-title',
7394 + 'section' => 'betterdocs_single_docs_settings',
7395 + 'settings' => 'betterdocs_doc_single_attachment_content_margin',
7396 + 'label' => __( 'Content Margin', 'betterdocs' ),
7397 + 'priority' => 163,
7398 + 'input_attrs' => [
7399 + 'id' => 'betterdocs_doc_single_attachment_content_margin',
7400 + 'class' => 'betterdocs-dimension'
7401 + ]
7402 + ]
7403 + )
7404 + );
7405 +
7406 + $this->customizer->add_setting(
7407 + 'betterdocs_doc_single_attachment_content_margin_top',
7408 + [
7409 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_top'],
7410 + 'capability' => 'edit_theme_options',
7411 + 'transport' => 'postMessage',
7412 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7413 + ]
7414 + );
7415 +
7416 + $this->customizer->add_control(
7417 + new DimensionControl(
7418 + $this->customizer,
7419 + 'betterdocs_doc_single_attachment_content_margin_top',
7420 + [
7421 + 'type' => 'betterdocs-dimension',
7422 + 'section' => 'betterdocs_single_docs_settings',
7423 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_top',
7424 + 'label' => __( 'Top', 'betterdocs' ),
7425 + 'priority' => 163,
7426 + 'input_attrs' => [
7427 + 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
7428 + ]
7429 + ]
7430 + )
7431 + );
7432 +
7433 + $this->customizer->add_setting(
7434 + 'betterdocs_doc_single_attachment_content_margin_right',
7435 + [
7436 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_right'],
7437 + 'capability' => 'edit_theme_options',
7438 + 'transport' => 'postMessage',
7439 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7440 +
7441 + ]
7442 + );
7443 +
7444 + $this->customizer->add_control(
7445 + new DimensionControl(
7446 + $this->customizer,
7447 + 'betterdocs_doc_single_attachment_content_margin_right',
7448 + [
7449 + 'type' => 'betterdocs-dimension',
7450 + 'section' => 'betterdocs_single_docs_settings',
7451 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_right',
7452 + 'label' => __( 'Right', 'betterdocs' ),
7453 + 'priority' => 163,
7454 + 'input_attrs' => [
7455 + 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
7456 + ]
7457 + ]
7458 + )
7459 + );
7460 +
7461 + $this->customizer->add_setting(
7462 + 'betterdocs_doc_single_attachment_content_margin_bottom',
7463 + [
7464 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_bottom'],
7465 + 'capability' => 'edit_theme_options',
7466 + 'transport' => 'postMessage',
7467 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7468 +
7469 + ]
7470 + );
7471 +
7472 + $this->customizer->add_control(
7473 + new DimensionControl(
7474 + $this->customizer,
7475 + 'betterdocs_doc_single_attachment_content_margin_bottom',
7476 + [
7477 + 'type' => 'betterdocs-dimension',
7478 + 'section' => 'betterdocs_single_docs_settings',
7479 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_bottom',
7480 + 'label' => __( 'Bottom', 'betterdocs' ),
7481 + 'priority' => 163,
7482 + 'input_attrs' => [
7483 + 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
7484 + ]
7485 + ]
7486 + )
7487 + );
7488 +
7489 + $this->customizer->add_setting(
7490 + 'betterdocs_doc_single_attachment_content_margin_left',
7491 + [
7492 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_left'],
7493 + 'capability' => 'edit_theme_options',
7494 + 'transport' => 'postMessage',
7495 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7496 +
7497 + ]
7498 + );
7499 +
7500 + $this->customizer->add_control(
7501 + new DimensionControl(
7502 + $this->customizer,
7503 + 'betterdocs_doc_single_attachment_content_margin_left',
7504 + [
7505 + 'type' => 'betterdocs-dimension',
7506 + 'section' => 'betterdocs_single_docs_settings',
7507 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_left',
7508 + 'label' => __( 'Left', 'betterdocs' ),
7509 + 'priority' => 163,
7510 + 'input_attrs' => [
7511 + 'class' => 'betterdocs_doc_single_attachment_content_margin betterdocs-dimension'
7512 + ]
7513 + ]
7514 + )
7515 + );
7516 + }
7517 +
7518 + public function betterdocs_doc_single_attachment_label_color() {
7519 + $this->customizer->add_setting(
7520 + 'betterdocs_doc_single_attachment_label_color',
7521 + [
7522 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_color'],
7523 + 'capability' => 'edit_theme_options',
7524 + 'transport' => 'postMessage',
7525 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7526 + ]
7527 + );
7528 +
7529 + $this->customizer->add_control(
7530 + new AlphaColorControl(
7531 + $this->customizer,
7532 + 'betterdocs_doc_single_attachment_label_color',
7533 + [
7534 + 'label' => __( 'Label Color', 'betterdocs' ),
7535 + 'section' => 'betterdocs_single_docs_settings',
7536 + 'settings' => 'betterdocs_doc_single_attachment_label_color',
7537 + 'priority' => 163
7538 + ]
7539 + )
7540 + );
7541 + }
7542 +
7543 + public function betterdocs_doc_single_attachment_label_padding() {
7544 + $this->customizer->add_setting(
7545 + 'betterdocs_doc_single_attachment_label_padding',
7546 + [
7547 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding'],
7548 + 'capability' => 'edit_theme_options',
7549 + 'transport' => 'postMessage',
7550 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7551 +
7552 + ]
7553 + );
7554 +
7555 + $this->customizer->add_control(
7556 + new TitleControl(
7557 + $this->customizer,
7558 + 'betterdocs_doc_single_attachment_label_padding',
7559 + [
7560 + 'type' => 'betterdocs-title',
7561 + 'section' => 'betterdocs_single_docs_settings',
7562 + 'settings' => 'betterdocs_doc_single_attachment_label_padding',
7563 + 'label' => __( 'Label Padding', 'betterdocs' ),
7564 + 'priority' => 163,
7565 + 'input_attrs' => [
7566 + 'id' => 'betterdocs_doc_single_attachment_label_padding',
7567 + 'class' => 'betterdocs-dimension'
7568 + ]
7569 + ]
7570 + )
7571 + );
7572 +
7573 + $this->customizer->add_setting(
7574 + 'betterdocs_doc_single_attachment_label_padding_top',
7575 + [
7576 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_top'],
7577 + 'capability' => 'edit_theme_options',
7578 + 'transport' => 'postMessage',
7579 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7580 + ]
7581 + );
7582 +
7583 + $this->customizer->add_control(
7584 + new DimensionControl(
7585 + $this->customizer,
7586 + 'betterdocs_doc_single_attachment_label_padding_top',
7587 + [
7588 + 'type' => 'betterdocs-dimension',
7589 + 'section' => 'betterdocs_single_docs_settings',
7590 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_top',
7591 + 'label' => __( 'Top', 'betterdocs' ),
7592 + 'priority' => 163,
7593 + 'input_attrs' => [
7594 + 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
7595 + ]
7596 + ]
7597 + )
7598 + );
7599 +
7600 + $this->customizer->add_setting(
7601 + 'betterdocs_doc_single_attachment_label_padding_right',
7602 + [
7603 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_right'],
7604 + 'capability' => 'edit_theme_options',
7605 + 'transport' => 'postMessage',
7606 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7607 +
7608 + ]
7609 + );
7610 +
7611 + $this->customizer->add_control(
7612 + new DimensionControl(
7613 + $this->customizer,
7614 + 'betterdocs_doc_single_attachment_label_padding_right',
7615 + [
7616 + 'type' => 'betterdocs-dimension',
7617 + 'section' => 'betterdocs_single_docs_settings',
7618 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_right',
7619 + 'label' => __( 'Right', 'betterdocs' ),
7620 + 'priority' => 163,
7621 + 'input_attrs' => [
7622 + 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
7623 + ]
7624 + ]
7625 + )
7626 + );
7627 +
7628 + $this->customizer->add_setting(
7629 + 'betterdocs_doc_single_attachment_label_padding_bottom',
7630 + [
7631 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_bottom'],
7632 + 'capability' => 'edit_theme_options',
7633 + 'transport' => 'postMessage',
7634 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7635 +
7636 + ]
7637 + );
7638 +
7639 + $this->customizer->add_control(
7640 + new DimensionControl(
7641 + $this->customizer,
7642 + 'betterdocs_doc_single_attachment_label_padding_bottom',
7643 + [
7644 + 'type' => 'betterdocs-dimension',
7645 + 'section' => 'betterdocs_single_docs_settings',
7646 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_bottom',
7647 + 'label' => __( 'Bottom', 'betterdocs' ),
7648 + 'priority' => 163,
7649 + 'input_attrs' => [
7650 + 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
7651 + ]
7652 + ]
7653 + )
7654 + );
7655 +
7656 + $this->customizer->add_setting(
7657 + 'betterdocs_doc_single_attachment_label_padding_left',
7658 + [
7659 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_left'],
7660 + 'capability' => 'edit_theme_options',
7661 + 'transport' => 'postMessage',
7662 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7663 +
7664 + ]
7665 + );
7666 +
7667 + $this->customizer->add_control(
7668 + new DimensionControl(
7669 + $this->customizer,
7670 + 'betterdocs_doc_single_attachment_label_padding_left',
7671 + [
7672 + 'type' => 'betterdocs-dimension',
7673 + 'section' => 'betterdocs_single_docs_settings',
7674 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_left',
7675 + 'label' => __( 'Left', 'betterdocs' ),
7676 + 'priority' => 163,
7677 + 'input_attrs' => [
7678 + 'class' => 'betterdocs_doc_single_attachment_label_padding betterdocs-dimension'
7679 + ]
7680 + ]
7681 + )
7682 + );
7683 + }
7684 +
7685 + public function betterdocs_doc_single_attachment_label_margin() {
7686 + $this->customizer->add_setting(
7687 + 'betterdocs_doc_single_attachment_label_margin',
7688 + [
7689 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin'],
7690 + 'capability' => 'edit_theme_options',
7691 + 'transport' => 'postMessage',
7692 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7693 +
7694 + ]
7695 + );
7696 +
7697 + $this->customizer->add_control(
7698 + new TitleControl(
7699 + $this->customizer,
7700 + 'betterdocs_doc_single_attachment_label_margin',
7701 + [
7702 + 'type' => 'betterdocs-title',
7703 + 'section' => 'betterdocs_single_docs_settings',
7704 + 'settings' => 'betterdocs_doc_single_attachment_label_margin',
7705 + 'label' => __( 'Label Margin', 'betterdocs' ),
7706 + 'priority' => 163,
7707 + 'input_attrs' => [
7708 + 'id' => 'betterdocs_doc_single_attachment_label_margin',
7709 + 'class' => 'betterdocs-dimension'
7710 + ]
7711 + ]
7712 + )
7713 + );
7714 +
7715 + $this->customizer->add_setting(
7716 + 'betterdocs_doc_single_attachment_label_margin_top',
7717 + [
7718 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_top'],
7719 + 'capability' => 'edit_theme_options',
7720 + 'transport' => 'postMessage',
7721 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7722 + ]
7723 + );
7724 +
7725 + $this->customizer->add_control(
7726 + new DimensionControl(
7727 + $this->customizer,
7728 + 'betterdocs_doc_single_attachment_label_margin_top',
7729 + [
7730 + 'type' => 'betterdocs-dimension',
7731 + 'section' => 'betterdocs_single_docs_settings',
7732 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_top',
7733 + 'label' => __( 'Top', 'betterdocs' ),
7734 + 'priority' => 163,
7735 + 'input_attrs' => [
7736 + 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
7737 + ]
7738 + ]
7739 + )
7740 + );
7741 +
7742 + $this->customizer->add_setting(
7743 + 'betterdocs_doc_single_attachment_label_margin_right',
7744 + [
7745 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_right'],
7746 + 'capability' => 'edit_theme_options',
7747 + 'transport' => 'postMessage',
7748 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7749 +
7750 + ]
7751 + );
7752 +
7753 + $this->customizer->add_control(
7754 + new DimensionControl(
7755 + $this->customizer,
7756 + 'betterdocs_doc_single_attachment_label_margin_right',
7757 + [
7758 + 'type' => 'betterdocs-dimension',
7759 + 'section' => 'betterdocs_single_docs_settings',
7760 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_right',
7761 + 'label' => __( 'Right', 'betterdocs' ),
7762 + 'priority' => 163,
7763 + 'input_attrs' => [
7764 + 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
7765 + ]
7766 + ]
7767 + )
7768 + );
7769 +
7770 + $this->customizer->add_setting(
7771 + 'betterdocs_doc_single_attachment_label_margin_bottom',
7772 + [
7773 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_bottom'],
7774 + 'capability' => 'edit_theme_options',
7775 + 'transport' => 'postMessage',
7776 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7777 + ]
7778 + );
7779 +
7780 + $this->customizer->add_control(
7781 + new DimensionControl(
7782 + $this->customizer,
7783 + 'betterdocs_doc_single_attachment_label_margin_bottom',
7784 + [
7785 + 'type' => 'betterdocs-dimension',
7786 + 'section' => 'betterdocs_single_docs_settings',
7787 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_bottom',
7788 + 'label' => __( 'Bottom', 'betterdocs' ),
7789 + 'priority' => 163,
7790 + 'input_attrs' => [
7791 + 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
7792 + ]
7793 + ]
7794 + )
7795 + );
7796 +
7797 + $this->customizer->add_setting(
7798 + 'betterdocs_doc_single_attachment_label_margin_left',
7799 + [
7800 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_left'],
7801 + 'capability' => 'edit_theme_options',
7802 + 'transport' => 'postMessage',
7803 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7804 + ]
7805 + );
7806 +
7807 + $this->customizer->add_control(
7808 + new DimensionControl(
7809 + $this->customizer,
7810 + 'betterdocs_doc_single_attachment_label_margin_left',
7811 + [
7812 + 'type' => 'betterdocs-dimension',
7813 + 'section' => 'betterdocs_single_docs_settings',
7814 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_left',
7815 + 'label' => __( 'Left', 'betterdocs' ),
7816 + 'priority' => 163,
7817 + 'input_attrs' => [
7818 + 'class' => 'betterdocs_doc_single_attachment_label_margin betterdocs-dimension'
7819 + ]
7820 + ]
7821 + )
7822 + );
7823 + }
7824 +
7825 + public function betterdocs_doc_single_attachment_list_font_size() {
7826 + $this->customizer->add_setting(
7827 + 'betterdocs_doc_single_attachment_list_font_size',
7828 + [
7829 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_size'],
7830 + 'capability' => 'edit_theme_options',
7831 + 'transport' => 'postMessage',
7832 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7833 +
7834 + ]
7835 + );
7836 +
7837 + $this->customizer->add_control(
7838 + new RangeValueControl(
7839 + $this->customizer,
7840 + 'betterdocs_doc_single_attachment_list_font_size',
7841 + [
7842 + 'type' => 'betterdocs-range-value',
7843 + 'section' => 'betterdocs_single_docs_settings',
7844 + 'settings' => 'betterdocs_doc_single_attachment_list_font_size',
7845 + 'label' => __( 'List Font Size', 'betterdocs' ),
7846 + 'priority' => 163,
7847 + 'input_attrs' => [
7848 + 'min' => 0,
7849 + 'max' => 50,
7850 + 'step' => 1,
7851 + 'suffix' => 'px' //optional suffix
7852 + ]
7853 + ]
7854 + )
7855 + );
7856 + }
7857 +
7858 + public function betterdocs_doc_single_attachment_list_font_weight() {
7859 + $this->customizer->add_setting(
7860 + 'betterdocs_doc_single_attachment_list_font_weight',
7861 + [
7862 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_weight'],
7863 + 'capability' => 'edit_theme_options',
7864 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
7865 + ]
7866 + );
7867 +
7868 + $this->customizer->add_control(
7869 + new WP_Customize_Control(
7870 + $this->customizer,
7871 + 'betterdocs_doc_single_attachment_list_font_weight',
7872 + [
7873 + 'label' => __( 'List Font Weight', 'betterdocs' ),
7874 + 'section' => 'betterdocs_single_docs_settings',
7875 + 'settings' => 'betterdocs_doc_single_attachment_list_font_weight',
7876 + 'type' => 'select',
7877 + 'choices' => [
7878 + 'normal' => 'Normal',
7879 + '100' => '100',
7880 + '200' => '200',
7881 + '300' => '300',
7882 + '400' => '400',
7883 + '500' => '500',
7884 + '600' => '600',
7885 + '700' => '700',
7886 + '800' => '800',
7887 + '900' => '900'
7888 + ],
7889 + 'priority' => 163
7890 + ]
7891 + )
7892 + );
7893 + }
7894 +
7895 + public function betterdocs_doc_single_attachment_list_extension_color() {
7896 + $this->customizer->add_setting(
7897 + 'betterdocs_doc_single_attachment_list_extension_color',
7898 + [
7899 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_color'],
7900 + 'capability' => 'edit_theme_options',
7901 + 'transport' => 'postMessage',
7902 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7903 + ]
7904 + );
7905 +
7906 + $this->customizer->add_control(
7907 + new AlphaColorControl(
7908 + $this->customizer,
7909 + 'betterdocs_doc_single_attachment_list_extension_color',
7910 + [
7911 + 'label' => __( 'Extension Color', 'betterdocs' ),
7912 + 'section' => 'betterdocs_single_docs_settings',
7913 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_color',
7914 + 'priority' => 163
7915 + ]
7916 + )
7917 + );
7918 + }
7919 + public function betterdocs_doc_single_attachment_list_extension_font_size() {
7920 + $this->customizer->add_setting(
7921 + 'betterdocs_doc_single_attachment_list_extension_font_size',
7922 + [
7923 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_size'],
7924 + 'capability' => 'edit_theme_options',
7925 + 'transport' => 'postMessage',
7926 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
7927 +
7928 + ]
7929 + );
7930 +
7931 + $this->customizer->add_control(
7932 + new RangeValueControl(
7933 + $this->customizer,
7934 + 'betterdocs_doc_single_attachment_list_extension_font_size',
7935 + [
7936 + 'type' => 'betterdocs-range-value',
7937 + 'section' => 'betterdocs_single_docs_settings',
7938 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_size',
7939 + 'label' => __( 'Extension Font Size', 'betterdocs' ),
7940 + 'priority' => 163,
7941 + 'input_attrs' => [
7942 + 'min' => 0,
7943 + 'max' => 50,
7944 + 'step' => 1,
7945 + 'suffix' => 'px' //optional suffix
7946 + ]
7947 + ]
7948 + )
7949 + );
7950 + }
7951 +
7952 + public function betterdocs_doc_single_attachment_list_extension_font_weight() {
7953 + $this->customizer->add_setting(
7954 + 'betterdocs_doc_single_attachment_list_extension_font_weight',
7955 + [
7956 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_weight'],
7957 + 'capability' => 'edit_theme_options',
7958 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
7959 + ]
7960 + );
7961 +
7962 + $this->customizer->add_control(
7963 + new WP_Customize_Control(
7964 + $this->customizer,
7965 + 'betterdocs_doc_single_attachment_list_extension_font_weight',
7966 + [
7967 + 'label' => __( 'Extension Font Weight', 'betterdocs' ),
7968 + 'section' => 'betterdocs_single_docs_settings',
7969 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_weight',
7970 + 'type' => 'select',
7971 + 'choices' => [
7972 + 'normal' => 'Normal',
7973 + '100' => '100',
7974 + '200' => '200',
7975 + '300' => '300',
7976 + '400' => '400',
7977 + '500' => '500',
7978 + '600' => '600',
7979 + '700' => '700',
7980 + '800' => '800',
7981 + '900' => '900'
7982 + ],
7983 + 'priority' => 163
7984 + ]
7985 + )
7986 + );
7987 + }
7988 +
7989 + public function betterdocs_doc_single_attachment_list_color() {
7990 + $this->customizer->add_setting(
7991 + 'betterdocs_doc_single_attachment_list_color',
7992 + [
7993 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_color'],
7994 + 'capability' => 'edit_theme_options',
7995 + 'transport' => 'postMessage',
7996 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
7997 + ]
7998 + );
7999 +
8000 + $this->customizer->add_control(
8001 + new AlphaColorControl(
8002 + $this->customizer,
8003 + 'betterdocs_doc_single_attachment_list_color',
8004 + [
8005 + 'label' => __( 'List Color', 'betterdocs' ),
8006 + 'section' => 'betterdocs_single_docs_settings',
8007 + 'settings' => 'betterdocs_doc_single_attachment_list_color',
8008 + 'priority' => 163
8009 + ]
8010 + )
8011 + );
8012 + }
8013 +
8014 + public function betterdocs_doc_single_attachment_list_background_color() {
8015 + $this->customizer->add_setting(
8016 + 'betterdocs_doc_single_attachment_list_background_color',
8017 + [
8018 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_background_color'],
8019 + 'capability' => 'edit_theme_options',
8020 + 'transport' => 'postMessage',
8021 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
8022 + ]
8023 + );
8024 +
8025 + $this->customizer->add_control(
8026 + new AlphaColorControl(
8027 + $this->customizer,
8028 + 'betterdocs_doc_single_attachment_list_background_color',
8029 + [
8030 + 'label' => __( 'List Background Color', 'betterdocs' ),
8031 + 'section' => 'betterdocs_single_docs_settings',
8032 + 'settings' => 'betterdocs_doc_single_attachment_list_background_color',
8033 + 'priority' => 163
8034 + ]
8035 + )
8036 + );
8037 + }
8038 +
8039 + public function betterdocs_doc_single_attachment_list_padding() {
8040 + $this->customizer->add_setting(
8041 + 'betterdocs_doc_single_attachment_list_padding',
8042 + [
8043 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding'],
8044 + 'capability' => 'edit_theme_options',
8045 + 'transport' => 'postMessage',
8046 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8047 +
8048 + ]
8049 + );
8050 +
8051 + $this->customizer->add_control(
8052 + new TitleControl(
8053 + $this->customizer,
8054 + 'betterdocs_doc_single_attachment_list_padding',
8055 + [
8056 + 'type' => 'betterdocs-title',
8057 + 'section' => 'betterdocs_single_docs_settings',
8058 + 'settings' => 'betterdocs_doc_single_attachment_list_padding',
8059 + 'label' => __( 'List Padding', 'betterdocs' ),
8060 + 'priority' => 163,
8061 + 'input_attrs' => [
8062 + 'id' => 'betterdocs_doc_single_attachment_list_padding',
8063 + 'class' => 'betterdocs-dimension'
8064 + ]
8065 + ]
8066 + )
8067 + );
8068 +
8069 + $this->customizer->add_setting(
8070 + 'betterdocs_doc_single_attachment_list_padding_top',
8071 + [
8072 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_top'],
8073 + 'capability' => 'edit_theme_options',
8074 + 'transport' => 'postMessage',
8075 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8076 + ]
8077 + );
8078 +
8079 + $this->customizer->add_control(
8080 + new DimensionControl(
8081 + $this->customizer,
8082 + 'betterdocs_doc_single_attachment_list_padding_top',
8083 + [
8084 + 'type' => 'betterdocs-dimension',
8085 + 'section' => 'betterdocs_single_docs_settings',
8086 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_top',
8087 + 'label' => __( 'Top', 'betterdocs' ),
8088 + 'priority' => 163,
8089 + 'input_attrs' => [
8090 + 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
8091 + ]
8092 + ]
8093 + )
8094 + );
8095 +
8096 + $this->customizer->add_setting(
8097 + 'betterdocs_doc_single_attachment_list_padding_right',
8098 + [
8099 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_right'],
8100 + 'capability' => 'edit_theme_options',
8101 + 'transport' => 'postMessage',
8102 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8103 +
8104 + ]
8105 + );
8106 +
8107 + $this->customizer->add_control(
8108 + new DimensionControl(
8109 + $this->customizer,
8110 + 'betterdocs_doc_single_attachment_list_padding_right',
8111 + [
8112 + 'type' => 'betterdocs-dimension',
8113 + 'section' => 'betterdocs_single_docs_settings',
8114 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_right',
8115 + 'label' => __( 'Right', 'betterdocs' ),
8116 + 'priority' => 163,
8117 + 'input_attrs' => [
8118 + 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
8119 + ]
8120 + ]
8121 + )
8122 + );
8123 +
8124 + $this->customizer->add_setting(
8125 + 'betterdocs_doc_single_attachment_list_padding_bottom',
8126 + [
8127 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_bottom'],
8128 + 'capability' => 'edit_theme_options',
8129 + 'transport' => 'postMessage',
8130 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8131 + ]
8132 + );
8133 +
8134 + $this->customizer->add_control(
8135 + new DimensionControl(
8136 + $this->customizer,
8137 + 'betterdocs_doc_single_attachment_list_padding_bottom',
8138 + [
8139 + 'type' => 'betterdocs-dimension',
8140 + 'section' => 'betterdocs_single_docs_settings',
8141 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_bottom',
8142 + 'label' => __( 'Bottom', 'betterdocs' ),
8143 + 'priority' => 163,
8144 + 'input_attrs' => [
8145 + 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
8146 + ]
8147 + ]
8148 + )
8149 + );
8150 +
8151 + $this->customizer->add_setting(
8152 + 'betterdocs_doc_single_attachment_list_padding_left',
8153 + [
8154 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_left'],
8155 + 'capability' => 'edit_theme_options',
8156 + 'transport' => 'postMessage',
8157 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8158 + ]
8159 + );
8160 +
8161 + $this->customizer->add_control(
8162 + new DimensionControl(
8163 + $this->customizer,
8164 + 'betterdocs_doc_single_attachment_list_padding_left',
8165 + [
8166 + 'type' => 'betterdocs-dimension',
8167 + 'section' => 'betterdocs_single_docs_settings',
8168 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_left',
8169 + 'label' => __( 'Left', 'betterdocs' ),
8170 + 'priority' => 163,
8171 + 'input_attrs' => [
8172 + 'class' => 'betterdocs_doc_single_attachment_list_padding betterdocs-dimension'
8173 + ]
8174 + ]
8175 + )
8176 + );
8177 + }
8178 +
8179 + public function betterdocs_doc_single_attachment_list_margin() {
8180 + $this->customizer->add_setting(
8181 + 'betterdocs_doc_single_attachment_list_margin',
8182 + [
8183 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin'],
8184 + 'capability' => 'edit_theme_options',
8185 + 'transport' => 'postMessage',
8186 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8187 +
8188 + ]
8189 + );
8190 +
8191 + $this->customizer->add_control(
8192 + new TitleControl(
8193 + $this->customizer,
8194 + 'betterdocs_doc_single_attachment_list_margin',
8195 + [
8196 + 'type' => 'betterdocs-title',
8197 + 'section' => 'betterdocs_single_docs_settings',
8198 + 'settings' => 'betterdocs_doc_single_attachment_list_margin',
8199 + 'label' => __( 'List Margin', 'betterdocs' ),
8200 + 'priority' => 163,
8201 + 'input_attrs' => [
8202 + 'id' => 'betterdocs_doc_single_attachment_list_margin',
8203 + 'class' => 'betterdocs-dimension'
8204 + ]
8205 + ]
8206 + )
8207 + );
8208 +
8209 + $this->customizer->add_setting(
8210 + 'betterdocs_doc_single_attachment_list_margin_top',
8211 + [
8212 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_top'],
8213 + 'capability' => 'edit_theme_options',
8214 + 'transport' => 'postMessage',
8215 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8216 + ]
8217 + );
8218 +
8219 + $this->customizer->add_control(
8220 + new DimensionControl(
8221 + $this->customizer,
8222 + 'betterdocs_doc_single_attachment_list_margin_top',
8223 + [
8224 + 'type' => 'betterdocs-dimension',
8225 + 'section' => 'betterdocs_single_docs_settings',
8226 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_top',
8227 + 'label' => __( 'Top', 'betterdocs' ),
8228 + 'priority' => 163,
8229 + 'input_attrs' => [
8230 + 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
8231 + ]
8232 + ]
8233 + )
8234 + );
8235 +
8236 + $this->customizer->add_setting(
8237 + 'betterdocs_doc_single_attachment_list_margin_right',
8238 + [
8239 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_right'],
8240 + 'capability' => 'edit_theme_options',
8241 + 'transport' => 'postMessage',
8242 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8243 +
8244 + ]
8245 + );
8246 +
8247 + $this->customizer->add_control(
8248 + new DimensionControl(
8249 + $this->customizer,
8250 + 'betterdocs_doc_single_attachment_list_margin_right',
8251 + [
8252 + 'type' => 'betterdocs-dimension',
8253 + 'section' => 'betterdocs_single_docs_settings',
8254 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_right',
8255 + 'label' => __( 'Right', 'betterdocs' ),
8256 + 'priority' => 163,
8257 + 'input_attrs' => [
8258 + 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
8259 + ]
8260 + ]
8261 + )
8262 + );
8263 +
8264 + $this->customizer->add_setting(
8265 + 'betterdocs_doc_single_attachment_list_margin_bottom',
8266 + [
8267 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_bottom'],
8268 + 'capability' => 'edit_theme_options',
8269 + 'transport' => 'postMessage',
8270 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8271 + ]
8272 + );
8273 +
8274 + $this->customizer->add_control(
8275 + new DimensionControl(
8276 + $this->customizer,
8277 + 'betterdocs_doc_single_attachment_list_margin_bottom',
8278 + [
8279 + 'type' => 'betterdocs-dimension',
8280 + 'section' => 'betterdocs_single_docs_settings',
8281 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_bottom',
8282 + 'label' => __( 'Bottom', 'betterdocs' ),
8283 + 'priority' => 163,
8284 + 'input_attrs' => [
8285 + 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
8286 + ]
8287 + ]
8288 + )
8289 + );
8290 +
8291 + $this->customizer->add_setting(
8292 + 'betterdocs_doc_single_attachment_list_margin_left',
8293 + [
8294 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_left'],
8295 + 'capability' => 'edit_theme_options',
8296 + 'transport' => 'postMessage',
8297 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8298 + ]
8299 + );
8300 +
8301 + $this->customizer->add_control(
8302 + new DimensionControl(
8303 + $this->customizer,
8304 + 'betterdocs_doc_single_attachment_list_margin_left',
8305 + [
8306 + 'type' => 'betterdocs-dimension',
8307 + 'section' => 'betterdocs_single_docs_settings',
8308 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_left',
8309 + 'label' => __( 'Left', 'betterdocs' ),
8310 + 'priority' => 163,
8311 + 'input_attrs' => [
8312 + 'class' => 'betterdocs_doc_single_attachment_list_margin betterdocs-dimension'
8313 + ]
8314 + ]
8315 + )
8316 + );
8317 + }
8318 +
8319 + public function attachments_heading_layout_8_9() {
8320 + $this->customizer->add_setting(
8321 + 'betterdocs_single_doc_attachment_heading_layout_8_9',
8322 + [
8323 + 'default' => '',
8324 + 'sanitize_callback' => 'esc_html'
8325 + ]
8326 + );
8327 +
8328 + $this->customizer->add_control(
8329 + new SeparatorControl(
8330 + $this->customizer,
8331 + 'betterdocs_single_doc_attachment_heading_layout_8_9',
8332 + [
8333 + 'label' => __( 'Attachments', 'betterdocs' ),
8334 + 'priority' => 163,
8335 + 'settings' => 'betterdocs_single_doc_attachment_heading_layout_8_9',
8336 + 'section' => 'betterdocs_single_docs_settings'
8337 + ]
8338 + )
8339 + );
8340 + }
8341 +
8342 + public function betterdocs_doc_single_attachment_content_bg_color_layout_8_9() {
8343 + $this->customizer->add_setting(
8344 + 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
8345 + [
8346 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_bg_color_layout_8_9'],
8347 + 'capability' => 'edit_theme_options',
8348 + 'transport' => 'postMessage',
8349 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
8350 + ]
8351 + );
8352 +
8353 + $this->customizer->add_control(
8354 + new AlphaColorControl(
8355 + $this->customizer,
8356 + 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
8357 + [
8358 + 'label' => __( 'Content Background Color', 'betterdocs' ),
8359 + 'section' => 'betterdocs_single_docs_settings',
8360 + 'settings' => 'betterdocs_doc_single_attachment_content_bg_color_layout_8_9',
8361 + 'priority' => 163
8362 + ]
8363 + )
8364 + );
8365 + }
8366 +
8367 + public function betterdocs_doc_single_attachment_content_padding_layout_8_9() {
8368 + $this->customizer->add_setting(
8369 + 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
8370 + [
8371 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_layout_8_9'],
8372 + 'capability' => 'edit_theme_options',
8373 + 'transport' => 'postMessage',
8374 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8375 +
8376 + ]
8377 + );
8378 +
8379 + $this->customizer->add_control(
8380 + new TitleControl(
8381 + $this->customizer,
8382 + 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
8383 + [
8384 + 'type' => 'betterdocs-title',
8385 + 'section' => 'betterdocs_single_docs_settings',
8386 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
8387 + 'label' => __( 'Content Padding', 'betterdocs' ),
8388 + 'priority' => 163,
8389 + 'input_attrs' => [
8390 + 'id' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9',
8391 + 'class' => 'betterdocs-dimension'
8392 + ]
8393 + ]
8394 + )
8395 + );
8396 +
8397 + $this->customizer->add_setting(
8398 + 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9',
8399 + [
8400 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_top_layout_8_9'],
8401 + 'capability' => 'edit_theme_options',
8402 + 'transport' => 'postMessage',
8403 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8404 + ]
8405 + );
8406 +
8407 + $this->customizer->add_control(
8408 + new DimensionControl(
8409 + $this->customizer,
8410 + 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9',
8411 + [
8412 + 'type' => 'betterdocs-dimension',
8413 + 'section' => 'betterdocs_single_docs_settings',
8414 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_top_layout_8_9',
8415 + 'label' => __( 'Top', 'betterdocs' ),
8416 + 'priority' => 163,
8417 + 'input_attrs' => [
8418 + 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
8419 + ]
8420 + ]
8421 + )
8422 + );
8423 +
8424 + $this->customizer->add_setting(
8425 + 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9',
8426 + [
8427 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_right_layout_8_9'],
8428 + 'capability' => 'edit_theme_options',
8429 + 'transport' => 'postMessage',
8430 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8431 +
8432 + ]
8433 + );
8434 +
8435 + $this->customizer->add_control(
8436 + new DimensionControl(
8437 + $this->customizer,
8438 + 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9',
8439 + [
8440 + 'type' => 'betterdocs-dimension',
8441 + 'section' => 'betterdocs_single_docs_settings',
8442 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_right_layout_8_9',
8443 + 'label' => __( 'Right', 'betterdocs' ),
8444 + 'priority' => 163,
8445 + 'input_attrs' => [
8446 + 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
8447 + ]
8448 + ]
8449 + )
8450 + );
8451 +
8452 + $this->customizer->add_setting(
8453 + 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9',
8454 + [
8455 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9'],
8456 + 'capability' => 'edit_theme_options',
8457 + 'transport' => 'postMessage',
8458 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8459 +
8460 + ]
8461 + );
8462 +
8463 + $this->customizer->add_control(
8464 + new DimensionControl(
8465 + $this->customizer,
8466 + 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9',
8467 + [
8468 + 'type' => 'betterdocs-dimension',
8469 + 'section' => 'betterdocs_single_docs_settings',
8470 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_bottom_layout_8_9',
8471 + 'label' => __( 'Bottom', 'betterdocs' ),
8472 + 'priority' => 163,
8473 + 'input_attrs' => [
8474 + 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
8475 + ]
8476 + ]
8477 + )
8478 + );
8479 +
8480 + $this->customizer->add_setting(
8481 + 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9',
8482 + [
8483 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_padding_left_layout_8_9'],
8484 + 'capability' => 'edit_theme_options',
8485 + 'transport' => 'postMessage',
8486 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8487 +
8488 + ]
8489 + );
8490 +
8491 + $this->customizer->add_control(
8492 + new DimensionControl(
8493 + $this->customizer,
8494 + 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9',
8495 + [
8496 + 'type' => 'betterdocs-dimension',
8497 + 'section' => 'betterdocs_single_docs_settings',
8498 + 'settings' => 'betterdocs_doc_single_attachment_content_padding_left_layout_8_9',
8499 + 'label' => __( 'Left', 'betterdocs' ),
8500 + 'priority' => 163,
8501 + 'input_attrs' => [
8502 + 'class' => 'betterdocs_doc_single_attachment_content_padding_layout_8_9 betterdocs-dimension'
8503 + ]
8504 + ]
8505 + )
8506 + );
8507 + }
8508 +
8509 + public function betterdocs_doc_single_attachment_content_margin_layout_8_9() {
8510 + $this->customizer->add_setting(
8511 + 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
8512 + [
8513 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_layout_8_9'],
8514 + 'capability' => 'edit_theme_options',
8515 + 'transport' => 'postMessage',
8516 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8517 +
8518 + ]
8519 + );
8520 +
8521 + $this->customizer->add_control(
8522 + new TitleControl(
8523 + $this->customizer,
8524 + 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
8525 + [
8526 + 'type' => 'betterdocs-title',
8527 + 'section' => 'betterdocs_single_docs_settings',
8528 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
8529 + 'label' => __( 'Content Margin', 'betterdocs' ),
8530 + 'priority' => 163,
8531 + 'input_attrs' => [
8532 + 'id' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9',
8533 + 'class' => 'betterdocs-dimension'
8534 + ]
8535 + ]
8536 + )
8537 + );
8538 +
8539 + $this->customizer->add_setting(
8540 + 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9',
8541 + [
8542 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_top_layout_8_9'],
8543 + 'capability' => 'edit_theme_options',
8544 + 'transport' => 'postMessage',
8545 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8546 + ]
8547 + );
8548 +
8549 + $this->customizer->add_control(
8550 + new DimensionControl(
8551 + $this->customizer,
8552 + 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9',
8553 + [
8554 + 'type' => 'betterdocs-dimension',
8555 + 'section' => 'betterdocs_single_docs_settings',
8556 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_top_layout_8_9',
8557 + 'label' => __( 'Top', 'betterdocs' ),
8558 + 'priority' => 163,
8559 + 'input_attrs' => [
8560 + 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
8561 + ]
8562 + ]
8563 + )
8564 + );
8565 +
8566 + $this->customizer->add_setting(
8567 + 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9',
8568 + [
8569 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_right_layout_8_9'],
8570 + 'capability' => 'edit_theme_options',
8571 + 'transport' => 'postMessage',
8572 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8573 +
8574 + ]
8575 + );
8576 +
8577 + $this->customizer->add_control(
8578 + new DimensionControl(
8579 + $this->customizer,
8580 + 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9',
8581 + [
8582 + 'type' => 'betterdocs-dimension',
8583 + 'section' => 'betterdocs_single_docs_settings',
8584 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_right_layout_8_9',
8585 + 'label' => __( 'Right', 'betterdocs' ),
8586 + 'priority' => 163,
8587 + 'input_attrs' => [
8588 + 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
8589 + ]
8590 + ]
8591 + )
8592 + );
8593 +
8594 + $this->customizer->add_setting(
8595 + 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9',
8596 + [
8597 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9'],
8598 + 'capability' => 'edit_theme_options',
8599 + 'transport' => 'postMessage',
8600 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8601 +
8602 + ]
8603 + );
8604 +
8605 + $this->customizer->add_control(
8606 + new DimensionControl(
8607 + $this->customizer,
8608 + 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9',
8609 + [
8610 + 'type' => 'betterdocs-dimension',
8611 + 'section' => 'betterdocs_single_docs_settings',
8612 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_bottom_layout_8_9',
8613 + 'label' => __( 'Bottom', 'betterdocs' ),
8614 + 'priority' => 163,
8615 + 'input_attrs' => [
8616 + 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
8617 + ]
8618 + ]
8619 + )
8620 + );
8621 +
8622 + $this->customizer->add_setting(
8623 + 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9',
8624 + [
8625 + 'default' => $this->defaults['betterdocs_doc_single_attachment_content_margin_left_layout_8_9'],
8626 + 'capability' => 'edit_theme_options',
8627 + 'transport' => 'postMessage',
8628 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8629 +
8630 + ]
8631 + );
8632 +
8633 + $this->customizer->add_control(
8634 + new DimensionControl(
8635 + $this->customizer,
8636 + 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9',
8637 + [
8638 + 'type' => 'betterdocs-dimension',
8639 + 'section' => 'betterdocs_single_docs_settings',
8640 + 'settings' => 'betterdocs_doc_single_attachment_content_margin_left_layout_8_9',
8641 + 'label' => __( 'Left', 'betterdocs' ),
8642 + 'priority' => 163,
8643 + 'input_attrs' => [
8644 + 'class' => 'betterdocs_doc_single_attachment_content_margin_layout_8_9 betterdocs-dimension'
8645 + ]
8646 + ]
8647 + )
8648 + );
8649 + }
8650 +
8651 + public function betterdocs_doc_single_attachment_label_color_layout_8_9() {
8652 + $this->customizer->add_setting(
8653 + 'betterdocs_doc_single_attachment_label_color_layout_8_9',
8654 + [
8655 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_color_layout_8_9'],
8656 + 'capability' => 'edit_theme_options',
8657 + 'transport' => 'postMessage',
8658 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
8659 + ]
8660 + );
8661 +
8662 + $this->customizer->add_control(
8663 + new AlphaColorControl(
8664 + $this->customizer,
8665 + 'betterdocs_doc_single_attachment_label_color_layout_8_9',
8666 + [
8667 + 'label' => __( 'Label Color', 'betterdocs' ),
8668 + 'section' => 'betterdocs_single_docs_settings',
8669 + 'settings' => 'betterdocs_doc_single_attachment_label_color_layout_8_9',
8670 + 'priority' => 163
8671 + ]
8672 + )
8673 + );
8674 + }
8675 +
8676 + public function betterdocs_doc_single_attachment_label_padding_layout_8_9() {
8677 + $this->customizer->add_setting(
8678 + 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
8679 + [
8680 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_layout_8_9'],
8681 + 'capability' => 'edit_theme_options',
8682 + 'transport' => 'postMessage',
8683 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8684 +
8685 + ]
8686 + );
8687 +
8688 + $this->customizer->add_control(
8689 + new TitleControl(
8690 + $this->customizer,
8691 + 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
8692 + [
8693 + 'type' => 'betterdocs-title',
8694 + 'section' => 'betterdocs_single_docs_settings',
8695 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
8696 + 'label' => __( 'Label Padding', 'betterdocs' ),
8697 + 'priority' => 163,
8698 + 'input_attrs' => [
8699 + 'id' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9',
8700 + 'class' => 'betterdocs-dimension'
8701 + ]
8702 + ]
8703 + )
8704 + );
8705 +
8706 + $this->customizer->add_setting(
8707 + 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9',
8708 + [
8709 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_top_layout_8_9'],
8710 + 'capability' => 'edit_theme_options',
8711 + 'transport' => 'postMessage',
8712 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8713 + ]
8714 + );
8715 +
8716 + $this->customizer->add_control(
8717 + new DimensionControl(
8718 + $this->customizer,
8719 + 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9',
8720 + [
8721 + 'type' => 'betterdocs-dimension',
8722 + 'section' => 'betterdocs_single_docs_settings',
8723 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_top_layout_8_9',
8724 + 'label' => __( 'Top', 'betterdocs' ),
8725 + 'priority' => 163,
8726 + 'input_attrs' => [
8727 + 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
8728 + ]
8729 + ]
8730 + )
8731 + );
8732 +
8733 + $this->customizer->add_setting(
8734 + 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9',
8735 + [
8736 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_right_layout_8_9'],
8737 + 'capability' => 'edit_theme_options',
8738 + 'transport' => 'postMessage',
8739 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8740 +
8741 + ]
8742 + );
8743 +
8744 + $this->customizer->add_control(
8745 + new DimensionControl(
8746 + $this->customizer,
8747 + 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9',
8748 + [
8749 + 'type' => 'betterdocs-dimension',
8750 + 'section' => 'betterdocs_single_docs_settings',
8751 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_right_layout_8_9',
8752 + 'label' => __( 'Right', 'betterdocs' ),
8753 + 'priority' => 163,
8754 + 'input_attrs' => [
8755 + 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
8756 + ]
8757 + ]
8758 + )
8759 + );
8760 +
8761 + $this->customizer->add_setting(
8762 + 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9',
8763 + [
8764 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9'],
8765 + 'capability' => 'edit_theme_options',
8766 + 'transport' => 'postMessage',
8767 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8768 +
8769 + ]
8770 + );
8771 +
8772 + $this->customizer->add_control(
8773 + new DimensionControl(
8774 + $this->customizer,
8775 + 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9',
8776 + [
8777 + 'type' => 'betterdocs-dimension',
8778 + 'section' => 'betterdocs_single_docs_settings',
8779 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_bottom_layout_8_9',
8780 + 'label' => __( 'Bottom', 'betterdocs' ),
8781 + 'priority' => 163,
8782 + 'input_attrs' => [
8783 + 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
8784 + ]
8785 + ]
8786 + )
8787 + );
8788 +
8789 + $this->customizer->add_setting(
8790 + 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9',
8791 + [
8792 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_padding_left_layout_8_9'],
8793 + 'capability' => 'edit_theme_options',
8794 + 'transport' => 'postMessage',
8795 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8796 +
8797 + ]
8798 + );
8799 +
8800 + $this->customizer->add_control(
8801 + new DimensionControl(
8802 + $this->customizer,
8803 + 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9',
8804 + [
8805 + 'type' => 'betterdocs-dimension',
8806 + 'section' => 'betterdocs_single_docs_settings',
8807 + 'settings' => 'betterdocs_doc_single_attachment_label_padding_left_layout_8_9',
8808 + 'label' => __( 'Left', 'betterdocs' ),
8809 + 'priority' => 163,
8810 + 'input_attrs' => [
8811 + 'class' => 'betterdocs_doc_single_attachment_label_padding_layout_8_9 betterdocs-dimension'
8812 + ]
8813 + ]
8814 + )
8815 + );
8816 + }
8817 +
8818 + public function betterdocs_doc_single_attachment_label_margin_layout_8_9() {
8819 + $this->customizer->add_setting(
8820 + 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
8821 + [
8822 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_layout_8_9'],
8823 + 'capability' => 'edit_theme_options',
8824 + 'transport' => 'postMessage',
8825 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8826 +
8827 + ]
8828 + );
8829 +
8830 + $this->customizer->add_control(
8831 + new TitleControl(
8832 + $this->customizer,
8833 + 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
8834 + [
8835 + 'type' => 'betterdocs-title',
8836 + 'section' => 'betterdocs_single_docs_settings',
8837 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
8838 + 'label' => __( 'Label Margin', 'betterdocs' ),
8839 + 'priority' => 163,
8840 + 'input_attrs' => [
8841 + 'id' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9',
8842 + 'class' => 'betterdocs-dimension'
8843 + ]
8844 + ]
8845 + )
8846 + );
8847 +
8848 + $this->customizer->add_setting(
8849 + 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9',
8850 + [
8851 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_top_layout_8_9'],
8852 + 'capability' => 'edit_theme_options',
8853 + 'transport' => 'postMessage',
8854 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8855 + ]
8856 + );
8857 +
8858 + $this->customizer->add_control(
8859 + new DimensionControl(
8860 + $this->customizer,
8861 + 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9',
8862 + [
8863 + 'type' => 'betterdocs-dimension',
8864 + 'section' => 'betterdocs_single_docs_settings',
8865 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_top_layout_8_9',
8866 + 'label' => __( 'Top', 'betterdocs' ),
8867 + 'priority' => 163,
8868 + 'input_attrs' => [
8869 + 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
8870 + ]
8871 + ]
8872 + )
8873 + );
8874 +
8875 + $this->customizer->add_setting(
8876 + 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9',
8877 + [
8878 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_right_layout_8_9'],
8879 + 'capability' => 'edit_theme_options',
8880 + 'transport' => 'postMessage',
8881 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8882 +
8883 + ]
8884 + );
8885 +
8886 + $this->customizer->add_control(
8887 + new DimensionControl(
8888 + $this->customizer,
8889 + 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9',
8890 + [
8891 + 'type' => 'betterdocs-dimension',
8892 + 'section' => 'betterdocs_single_docs_settings',
8893 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_right_layout_8_9',
8894 + 'label' => __( 'Right', 'betterdocs' ),
8895 + 'priority' => 163,
8896 + 'input_attrs' => [
8897 + 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
8898 + ]
8899 + ]
8900 + )
8901 + );
8902 +
8903 + $this->customizer->add_setting(
8904 + 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9',
8905 + [
8906 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9'],
8907 + 'capability' => 'edit_theme_options',
8908 + 'transport' => 'postMessage',
8909 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8910 + ]
8911 + );
8912 +
8913 + $this->customizer->add_control(
8914 + new DimensionControl(
8915 + $this->customizer,
8916 + 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9',
8917 + [
8918 + 'type' => 'betterdocs-dimension',
8919 + 'section' => 'betterdocs_single_docs_settings',
8920 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_bottom_layout_8_9',
8921 + 'label' => __( 'Bottom', 'betterdocs' ),
8922 + 'priority' => 163,
8923 + 'input_attrs' => [
8924 + 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
8925 + ]
8926 + ]
8927 + )
8928 + );
8929 +
8930 + $this->customizer->add_setting(
8931 + 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9',
8932 + [
8933 + 'default' => $this->defaults['betterdocs_doc_single_attachment_label_margin_left_layout_8_9'],
8934 + 'capability' => 'edit_theme_options',
8935 + 'transport' => 'postMessage',
8936 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8937 + ]
8938 + );
8939 +
8940 + $this->customizer->add_control(
8941 + new DimensionControl(
8942 + $this->customizer,
8943 + 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9',
8944 + [
8945 + 'type' => 'betterdocs-dimension',
8946 + 'section' => 'betterdocs_single_docs_settings',
8947 + 'settings' => 'betterdocs_doc_single_attachment_label_margin_left_layout_8_9',
8948 + 'label' => __( 'Left', 'betterdocs' ),
8949 + 'priority' => 163,
8950 + 'input_attrs' => [
8951 + 'class' => 'betterdocs_doc_single_attachment_label_margin_layout_8_9 betterdocs-dimension'
8952 + ]
8953 + ]
8954 + )
8955 + );
8956 + }
8957 +
8958 + public function betterdocs_doc_single_attachment_list_font_size_layout_8_9() {
8959 + $this->customizer->add_setting(
8960 + 'betterdocs_doc_single_attachment_list_font_size_layout_8_9',
8961 + [
8962 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_size_layout_8_9'],
8963 + 'capability' => 'edit_theme_options',
8964 + 'transport' => 'postMessage',
8965 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
8966 +
8967 + ]
8968 + );
8969 +
8970 + $this->customizer->add_control(
8971 + new RangeValueControl(
8972 + $this->customizer,
8973 + 'betterdocs_doc_single_attachment_list_font_size_layout_8_9',
8974 + [
8975 + 'type' => 'betterdocs-range-value',
8976 + 'section' => 'betterdocs_single_docs_settings',
8977 + 'settings' => 'betterdocs_doc_single_attachment_list_font_size_layout_8_9',
8978 + 'label' => __( 'List Font Size', 'betterdocs' ),
8979 + 'priority' => 163,
8980 + 'input_attrs' => [
8981 + 'min' => 0,
8982 + 'max' => 50,
8983 + 'step' => 1,
8984 + 'suffix' => 'px' //optional suffix
8985 + ]
8986 + ]
8987 + )
8988 + );
8989 + }
8990 +
8991 + public function betterdocs_doc_single_attachment_list_font_weight_layout_8_9() {
8992 + $this->customizer->add_setting(
8993 + 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
8994 + [
8995 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_font_weight_layout_8_9'],
8996 + 'capability' => 'edit_theme_options',
8997 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
8998 + ]
8999 + );
9000 +
9001 + $this->customizer->add_control(
9002 + new WP_Customize_Control(
9003 + $this->customizer,
9004 + 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
9005 + [
9006 + 'label' => __( 'List Font Weight', 'betterdocs' ),
9007 + 'section' => 'betterdocs_single_docs_settings',
9008 + 'settings' => 'betterdocs_doc_single_attachment_list_font_weight_layout_8_9',
9009 + 'type' => 'select',
9010 + 'choices' => [
9011 + 'normal' => 'Normal',
9012 + '100' => '100',
9013 + '200' => '200',
9014 + '300' => '300',
9015 + '400' => '400',
9016 + '500' => '500',
9017 + '600' => '600',
9018 + '700' => '700',
9019 + '800' => '800',
9020 + '900' => '900'
9021 + ],
9022 + 'priority' => 163
9023 + ]
9024 + )
9025 + );
9026 + }
9027 +
9028 + public function betterdocs_doc_single_attachment_list_extension_color_layout_8_9() {
9029 + $this->customizer->add_setting(
9030 + 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
9031 + [
9032 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_color_layout_8_9'],
9033 + 'capability' => 'edit_theme_options',
9034 + 'transport' => 'postMessage',
9035 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9036 + ]
9037 + );
9038 +
9039 + $this->customizer->add_control(
9040 + new AlphaColorControl(
9041 + $this->customizer,
9042 + 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
9043 + [
9044 + 'label' => __( 'Extension Color', 'betterdocs' ),
9045 + 'section' => 'betterdocs_single_docs_settings',
9046 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_color_layout_8_9',
9047 + 'priority' => 163
9048 + ]
9049 + )
9050 + );
9051 + }
9052 +
9053 + public function betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9() {
9054 + $this->customizer->add_setting(
9055 + 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9',
9056 + [
9057 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9'],
9058 + 'capability' => 'edit_theme_options',
9059 + 'transport' => 'postMessage',
9060 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9061 +
9062 + ]
9063 + );
9064 +
9065 + $this->customizer->add_control(
9066 + new RangeValueControl(
9067 + $this->customizer,
9068 + 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9',
9069 + [
9070 + 'type' => 'betterdocs-range-value',
9071 + 'section' => 'betterdocs_single_docs_settings',
9072 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_size_layout_8_9',
9073 + 'label' => __( 'Extension Font Size', 'betterdocs' ),
9074 + 'priority' => 163,
9075 + 'input_attrs' => [
9076 + 'min' => 0,
9077 + 'max' => 50,
9078 + 'step' => 1,
9079 + 'suffix' => 'px' //optional suffix
9080 + ]
9081 + ]
9082 + )
9083 + );
9084 + }
9085 +
9086 + public function betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9() {
9087 + $this->customizer->add_setting(
9088 + 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
9089 + [
9090 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9'],
9091 + 'capability' => 'edit_theme_options',
9092 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
9093 + ]
9094 + );
9095 +
9096 + $this->customizer->add_control(
9097 + new WP_Customize_Control(
9098 + $this->customizer,
9099 + 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
9100 + [
9101 + 'label' => __( 'Extension Font Weight', 'betterdocs' ),
9102 + 'section' => 'betterdocs_single_docs_settings',
9103 + 'settings' => 'betterdocs_doc_single_attachment_list_extension_font_weight_layout_8_9',
9104 + 'type' => 'select',
9105 + 'choices' => [
9106 + 'normal' => 'Normal',
9107 + '100' => '100',
9108 + '200' => '200',
9109 + '300' => '300',
9110 + '400' => '400',
9111 + '500' => '500',
9112 + '600' => '600',
9113 + '700' => '700',
9114 + '800' => '800',
9115 + '900' => '900'
9116 + ],
9117 + 'priority' => 163
9118 + ]
9119 + )
9120 + );
9121 + }
9122 +
9123 + public function betterdocs_doc_single_attachment_list_color_layout_8_9() {
9124 + $this->customizer->add_setting(
9125 + 'betterdocs_doc_single_attachment_list_color_layout_8_9',
9126 + [
9127 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_color_layout_8_9'],
9128 + 'capability' => 'edit_theme_options',
9129 + 'transport' => 'postMessage',
9130 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9131 + ]
9132 + );
9133 +
9134 + $this->customizer->add_control(
9135 + new AlphaColorControl(
9136 + $this->customizer,
9137 + 'betterdocs_doc_single_attachment_list_color_layout_8_9',
9138 + [
9139 + 'label' => __( 'List Color', 'betterdocs' ),
9140 + 'section' => 'betterdocs_single_docs_settings',
9141 + 'settings' => 'betterdocs_doc_single_attachment_list_color_layout_8_9',
9142 + 'priority' => 163
9143 + ]
9144 + )
9145 + );
9146 + }
9147 +
9148 + public function betterdocs_doc_single_attachment_list_background_color_layout_8_9() {
9149 + $this->customizer->add_setting(
9150 + 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
9151 + [
9152 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_background_color_layout_8_9'],
9153 + 'capability' => 'edit_theme_options',
9154 + 'transport' => 'postMessage',
9155 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9156 + ]
9157 + );
9158 +
9159 + $this->customizer->add_control(
9160 + new AlphaColorControl(
9161 + $this->customizer,
9162 + 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
9163 + [
9164 + 'label' => __( 'List Background Color', 'betterdocs' ),
9165 + 'section' => 'betterdocs_single_docs_settings',
9166 + 'settings' => 'betterdocs_doc_single_attachment_list_background_color_layout_8_9',
9167 + 'priority' => 163
9168 + ]
9169 + )
9170 + );
9171 + }
9172 +
9173 + public function betterdocs_doc_single_attachment_list_padding_layout_8_9() {
9174 + $this->customizer->add_setting(
9175 + 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
9176 + [
9177 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_layout_8_9'],
9178 + 'capability' => 'edit_theme_options',
9179 + 'transport' => 'postMessage',
9180 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9181 +
9182 + ]
9183 + );
9184 +
9185 + $this->customizer->add_control(
9186 + new TitleControl(
9187 + $this->customizer,
9188 + 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
9189 + [
9190 + 'type' => 'betterdocs-title',
9191 + 'section' => 'betterdocs_single_docs_settings',
9192 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
9193 + 'label' => __( 'List Padding', 'betterdocs' ),
9194 + 'priority' => 163,
9195 + 'input_attrs' => [
9196 + 'id' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9',
9197 + 'class' => 'betterdocs-dimension'
9198 + ]
9199 + ]
9200 + )
9201 + );
9202 +
9203 + $this->customizer->add_setting(
9204 + 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9',
9205 + [
9206 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_top_layout_8_9'],
9207 + 'capability' => 'edit_theme_options',
9208 + 'transport' => 'postMessage',
9209 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9210 + ]
9211 + );
9212 +
9213 + $this->customizer->add_control(
9214 + new DimensionControl(
9215 + $this->customizer,
9216 + 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9',
9217 + [
9218 + 'type' => 'betterdocs-dimension',
9219 + 'section' => 'betterdocs_single_docs_settings',
9220 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_top_layout_8_9',
9221 + 'label' => __( 'Top', 'betterdocs' ),
9222 + 'priority' => 163,
9223 + 'input_attrs' => [
9224 + 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
9225 + ]
9226 + ]
9227 + )
9228 + );
9229 +
9230 + $this->customizer->add_setting(
9231 + 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9',
9232 + [
9233 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_right_layout_8_9'],
9234 + 'capability' => 'edit_theme_options',
9235 + 'transport' => 'postMessage',
9236 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9237 +
9238 + ]
9239 + );
9240 +
9241 + $this->customizer->add_control(
9242 + new DimensionControl(
9243 + $this->customizer,
9244 + 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9',
9245 + [
9246 + 'type' => 'betterdocs-dimension',
9247 + 'section' => 'betterdocs_single_docs_settings',
9248 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_right_layout_8_9',
9249 + 'label' => __( 'Right', 'betterdocs' ),
9250 + 'priority' => 163,
9251 + 'input_attrs' => [
9252 + 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
9253 + ]
9254 + ]
9255 + )
9256 + );
9257 +
9258 + $this->customizer->add_setting(
9259 + 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9',
9260 + [
9261 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9'],
9262 + 'capability' => 'edit_theme_options',
9263 + 'transport' => 'postMessage',
9264 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9265 + ]
9266 + );
9267 +
9268 + $this->customizer->add_control(
9269 + new DimensionControl(
9270 + $this->customizer,
9271 + 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9',
9272 + [
9273 + 'type' => 'betterdocs-dimension',
9274 + 'section' => 'betterdocs_single_docs_settings',
9275 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_bottom_layout_8_9',
9276 + 'label' => __( 'Bottom', 'betterdocs' ),
9277 + 'priority' => 163,
9278 + 'input_attrs' => [
9279 + 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
9280 + ]
9281 + ]
9282 + )
9283 + );
9284 +
9285 + $this->customizer->add_setting(
9286 + 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9',
9287 + [
9288 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_padding_left_layout_8_9'],
9289 + 'capability' => 'edit_theme_options',
9290 + 'transport' => 'postMessage',
9291 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9292 + ]
9293 + );
9294 +
9295 + $this->customizer->add_control(
9296 + new DimensionControl(
9297 + $this->customizer,
9298 + 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9',
9299 + [
9300 + 'type' => 'betterdocs-dimension',
9301 + 'section' => 'betterdocs_single_docs_settings',
9302 + 'settings' => 'betterdocs_doc_single_attachment_list_padding_left_layout_8_9',
9303 + 'label' => __( 'Left', 'betterdocs' ),
9304 + 'priority' => 163,
9305 + 'input_attrs' => [
9306 + 'class' => 'betterdocs_doc_single_attachment_list_padding_layout_8_9 betterdocs-dimension'
9307 + ]
9308 + ]
9309 + )
9310 + );
9311 + }
9312 +
9313 + public function betterdocs_doc_single_attachment_list_margin_layout_8_9() {
9314 + $this->customizer->add_setting(
9315 + 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
9316 + [
9317 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_layout_8_9'],
9318 + 'capability' => 'edit_theme_options',
9319 + 'transport' => 'postMessage',
9320 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9321 +
9322 + ]
9323 + );
9324 +
9325 + $this->customizer->add_control(
9326 + new TitleControl(
9327 + $this->customizer,
9328 + 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
9329 + [
9330 + 'type' => 'betterdocs-title',
9331 + 'section' => 'betterdocs_single_docs_settings',
9332 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
9333 + 'label' => __( 'List Margin', 'betterdocs' ),
9334 + 'priority' => 163,
9335 + 'input_attrs' => [
9336 + 'id' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9',
9337 + 'class' => 'betterdocs-dimension'
9338 + ]
9339 + ]
9340 + )
9341 + );
9342 +
9343 + $this->customizer->add_setting(
9344 + 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9',
9345 + [
9346 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_top_layout_8_9'],
9347 + 'capability' => 'edit_theme_options',
9348 + 'transport' => 'postMessage',
9349 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9350 + ]
9351 + );
9352 +
9353 + $this->customizer->add_control(
9354 + new DimensionControl(
9355 + $this->customizer,
9356 + 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9',
9357 + [
9358 + 'type' => 'betterdocs-dimension',
9359 + 'section' => 'betterdocs_single_docs_settings',
9360 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_top_layout_8_9',
9361 + 'label' => __( 'Top', 'betterdocs' ),
9362 + 'priority' => 163,
9363 + 'input_attrs' => [
9364 + 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
9365 + ]
9366 + ]
9367 + )
9368 + );
9369 +
9370 + $this->customizer->add_setting(
9371 + 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9',
9372 + [
9373 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_right_layout_8_9'],
9374 + 'capability' => 'edit_theme_options',
9375 + 'transport' => 'postMessage',
9376 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9377 +
9378 + ]
9379 + );
9380 +
9381 + $this->customizer->add_control(
9382 + new DimensionControl(
9383 + $this->customizer,
9384 + 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9',
9385 + [
9386 + 'type' => 'betterdocs-dimension',
9387 + 'section' => 'betterdocs_single_docs_settings',
9388 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_right_layout_8_9',
9389 + 'label' => __( 'Right', 'betterdocs' ),
9390 + 'priority' => 163,
9391 + 'input_attrs' => [
9392 + 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
9393 + ]
9394 + ]
9395 + )
9396 + );
9397 +
9398 + $this->customizer->add_setting(
9399 + 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9',
9400 + [
9401 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9'],
9402 + 'capability' => 'edit_theme_options',
9403 + 'transport' => 'postMessage',
9404 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9405 + ]
9406 + );
9407 +
9408 + $this->customizer->add_control(
9409 + new DimensionControl(
9410 + $this->customizer,
9411 + 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9',
9412 + [
9413 + 'type' => 'betterdocs-dimension',
9414 + 'section' => 'betterdocs_single_docs_settings',
9415 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_bottom_layout_8_9',
9416 + 'label' => __( 'Bottom', 'betterdocs' ),
9417 + 'priority' => 163,
9418 + 'input_attrs' => [
9419 + 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
9420 + ]
9421 + ]
9422 + )
9423 + );
9424 +
9425 + $this->customizer->add_setting(
9426 + 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9',
9427 + [
9428 + 'default' => $this->defaults['betterdocs_doc_single_attachment_list_margin_left_layout_8_9'],
9429 + 'capability' => 'edit_theme_options',
9430 + 'transport' => 'postMessage',
9431 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9432 + ]
9433 + );
9434 +
9435 + $this->customizer->add_control(
9436 + new DimensionControl(
9437 + $this->customizer,
9438 + 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9',
9439 + [
9440 + 'type' => 'betterdocs-dimension',
9441 + 'section' => 'betterdocs_single_docs_settings',
9442 + 'settings' => 'betterdocs_doc_single_attachment_list_margin_left_layout_8_9',
9443 + 'label' => __( 'Left', 'betterdocs' ),
9444 + 'priority' => 163,
9445 + 'input_attrs' => [
9446 + 'class' => 'betterdocs_doc_single_attachment_list_margin_layout_8_9 betterdocs-dimension'
9447 + ]
9448 + ]
9449 + )
9450 + );
9451 + }
9452 +
9453 + public function betterdocs_doc_single_related_docs_heading() {
9454 + $this->customizer->add_setting(
9455 + 'betterdocs_doc_single_related_docs_heading',
9456 + [
9457 + 'default' => 'betterdocs_doc_single_related_docs_heading',
9458 + 'sanitize_callback' => 'esc_html'
9459 + ]
9460 + );
9461 +
9462 + $this->customizer->add_control(
9463 + new SeparatorControl(
9464 + $this->customizer,
9465 + 'betterdocs_doc_single_related_docs_heading',
9466 + [
9467 + 'label' => __( 'Related Docs', 'betterdocs' ),
9468 + 'priority' => 163,
9469 + 'settings' => 'betterdocs_doc_single_related_docs_heading',
9470 + 'section' => 'betterdocs_single_docs_settings'
9471 + ]
9472 + )
9473 + );
9474 + }
9475 +
9476 + public function betterdocs_doc_single_related_docs_content_bg_color() {
9477 + $this->customizer->add_setting(
9478 + 'betterdocs_doc_single_related_docs_content_bg_color',
9479 + [
9480 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_bg_color'],
9481 + 'capability' => 'edit_theme_options',
9482 + 'transport' => 'postMessage',
9483 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9484 + ]
9485 + );
9486 +
9487 + $this->customizer->add_control(
9488 + new AlphaColorControl(
9489 + $this->customizer,
9490 + 'betterdocs_doc_single_related_docs_content_bg_color',
9491 + [
9492 + 'label' => __( 'Content Background Color', 'betterdocs' ),
9493 + 'section' => 'betterdocs_single_docs_settings',
9494 + 'settings' => 'betterdocs_doc_single_related_docs_content_bg_color',
9495 + 'priority' => 163
9496 + ]
9497 + )
9498 + );
9499 + }
9500 +
9501 + public function betterdocs_doc_single_related_docs_content_padding() {
9502 + $this->customizer->add_setting(
9503 + 'betterdocs_doc_single_related_docs_content_padding',
9504 + [
9505 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding'],
9506 + 'capability' => 'edit_theme_options',
9507 + 'transport' => 'postMessage',
9508 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9509 +
9510 + ]
9511 + );
9512 +
9513 + $this->customizer->add_control(
9514 + new TitleControl(
9515 + $this->customizer,
9516 + 'betterdocs_doc_single_related_docs_content_padding',
9517 + [
9518 + 'type' => 'betterdocs-title',
9519 + 'section' => 'betterdocs_single_docs_settings',
9520 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding',
9521 + 'label' => __( 'Content Padding', 'betterdocs' ),
9522 + 'priority' => 163,
9523 + 'input_attrs' => [
9524 + 'id' => 'betterdocs_doc_single_related_docs_content_padding',
9525 + 'class' => 'betterdocs-dimension'
9526 + ]
9527 + ]
9528 + )
9529 + );
9530 +
9531 + $this->customizer->add_setting(
9532 + 'betterdocs_doc_single_related_docs_content_padding_top',
9533 + [
9534 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_top'],
9535 + 'capability' => 'edit_theme_options',
9536 + 'transport' => 'postMessage',
9537 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9538 + ]
9539 + );
9540 +
9541 + $this->customizer->add_control(
9542 + new DimensionControl(
9543 + $this->customizer,
9544 + 'betterdocs_doc_single_related_docs_content_padding_top',
9545 + [
9546 + 'type' => 'betterdocs-dimension',
9547 + 'section' => 'betterdocs_single_docs_settings',
9548 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_top',
9549 + 'label' => __( 'Top', 'betterdocs' ),
9550 + 'priority' => 163,
9551 + 'input_attrs' => [
9552 + 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
9553 + ]
9554 + ]
9555 + )
9556 + );
9557 +
9558 + $this->customizer->add_setting(
9559 + 'betterdocs_doc_single_related_docs_content_padding_right',
9560 + [
9561 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_right'],
9562 + 'capability' => 'edit_theme_options',
9563 + 'transport' => 'postMessage',
9564 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9565 +
9566 + ]
9567 + );
9568 +
9569 + $this->customizer->add_control(
9570 + new DimensionControl(
9571 + $this->customizer,
9572 + 'betterdocs_doc_single_related_docs_content_padding_right',
9573 + [
9574 + 'type' => 'betterdocs-dimension',
9575 + 'section' => 'betterdocs_single_docs_settings',
9576 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_right',
9577 + 'label' => __( 'Right', 'betterdocs' ),
9578 + 'priority' => 163,
9579 + 'input_attrs' => [
9580 + 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
9581 + ]
9582 + ]
9583 + )
9584 + );
9585 +
9586 + $this->customizer->add_setting(
9587 + 'betterdocs_doc_single_related_docs_content_padding_bottom',
9588 + [
9589 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_bottom'],
9590 + 'capability' => 'edit_theme_options',
9591 + 'transport' => 'postMessage',
9592 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9593 +
9594 + ]
9595 + );
9596 +
9597 + $this->customizer->add_control(
9598 + new DimensionControl(
9599 + $this->customizer,
9600 + 'betterdocs_doc_single_related_docs_content_padding_bottom',
9601 + [
9602 + 'type' => 'betterdocs-dimension',
9603 + 'section' => 'betterdocs_single_docs_settings',
9604 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_bottom',
9605 + 'label' => __( 'Bottom', 'betterdocs' ),
9606 + 'priority' => 163,
9607 + 'input_attrs' => [
9608 + 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
9609 + ]
9610 + ]
9611 + )
9612 + );
9613 +
9614 + $this->customizer->add_setting(
9615 + 'betterdocs_doc_single_related_docs_content_padding_left',
9616 + [
9617 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_left'],
9618 + 'capability' => 'edit_theme_options',
9619 + 'transport' => 'postMessage',
9620 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9621 +
9622 + ]
9623 + );
9624 +
9625 + $this->customizer->add_control(
9626 + new DimensionControl(
9627 + $this->customizer,
9628 + 'betterdocs_doc_single_related_docs_content_padding_left',
9629 + [
9630 + 'type' => 'betterdocs-dimension',
9631 + 'section' => 'betterdocs_single_docs_settings',
9632 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_left',
9633 + 'label' => __( 'Left', 'betterdocs' ),
9634 + 'priority' => 163,
9635 + 'input_attrs' => [
9636 + 'class' => 'betterdocs_doc_single_related_docs_content_padding betterdocs-dimension'
9637 + ]
9638 + ]
9639 + )
9640 + );
9641 + }
9642 +
9643 + public function betterdocs_doc_single_related_docs_content_margin() {
9644 + $this->customizer->add_setting(
9645 + 'betterdocs_doc_single_related_docs_content_margin',
9646 + [
9647 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin'],
9648 + 'capability' => 'edit_theme_options',
9649 + 'transport' => 'postMessage',
9650 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9651 +
9652 + ]
9653 + );
9654 +
9655 + $this->customizer->add_control(
9656 + new TitleControl(
9657 + $this->customizer,
9658 + 'betterdocs_doc_single_related_docs_content_margin',
9659 + [
9660 + 'type' => 'betterdocs-title',
9661 + 'section' => 'betterdocs_single_docs_settings',
9662 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin',
9663 + 'label' => __( 'Content Margin', 'betterdocs' ),
9664 + 'priority' => 163,
9665 + 'input_attrs' => [
9666 + 'id' => 'betterdocs_doc_single_related_docs_content_margin',
9667 + 'class' => 'betterdocs-dimension'
9668 + ]
9669 + ]
9670 + )
9671 + );
9672 +
9673 + $this->customizer->add_setting(
9674 + 'betterdocs_doc_single_related_docs_content_margin_top',
9675 + [
9676 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_top'],
9677 + 'capability' => 'edit_theme_options',
9678 + 'transport' => 'postMessage',
9679 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9680 + ]
9681 + );
9682 +
9683 + $this->customizer->add_control(
9684 + new DimensionControl(
9685 + $this->customizer,
9686 + 'betterdocs_doc_single_related_docs_content_margin_top',
9687 + [
9688 + 'type' => 'betterdocs-dimension',
9689 + 'section' => 'betterdocs_single_docs_settings',
9690 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_top',
9691 + 'label' => __( 'Top', 'betterdocs' ),
9692 + 'priority' => 163,
9693 + 'input_attrs' => [
9694 + 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
9695 + ]
9696 + ]
9697 + )
9698 + );
9699 +
9700 + $this->customizer->add_setting(
9701 + 'betterdocs_doc_single_related_docs_content_margin_right',
9702 + [
9703 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_right'],
9704 + 'capability' => 'edit_theme_options',
9705 + 'transport' => 'postMessage',
9706 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9707 +
9708 + ]
9709 + );
9710 +
9711 + $this->customizer->add_control(
9712 + new DimensionControl(
9713 + $this->customizer,
9714 + 'betterdocs_doc_single_related_docs_content_margin_right',
9715 + [
9716 + 'type' => 'betterdocs-dimension',
9717 + 'section' => 'betterdocs_single_docs_settings',
9718 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_right',
9719 + 'label' => __( 'Right', 'betterdocs' ),
9720 + 'priority' => 163,
9721 + 'input_attrs' => [
9722 + 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
9723 + ]
9724 + ]
9725 + )
9726 + );
9727 +
9728 + $this->customizer->add_setting(
9729 + 'betterdocs_doc_single_related_docs_content_margin_bottom',
9730 + [
9731 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_bottom'],
9732 + 'capability' => 'edit_theme_options',
9733 + 'transport' => 'postMessage',
9734 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9735 +
9736 + ]
9737 + );
9738 +
9739 + $this->customizer->add_control(
9740 + new DimensionControl(
9741 + $this->customizer,
9742 + 'betterdocs_doc_single_related_docs_content_margin_bottom',
9743 + [
9744 + 'type' => 'betterdocs-dimension',
9745 + 'section' => 'betterdocs_single_docs_settings',
9746 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_bottom',
9747 + 'label' => __( 'Bottom', 'betterdocs' ),
9748 + 'priority' => 163,
9749 + 'input_attrs' => [
9750 + 'class' => 'betterdocs_doc_single_related_docs_content_margin betterdocs-dimension'
9751 + ]
9752 + ]
9753 + )
9754 + );
9755 +
9756 + $this->customizer->add_setting(
9757 + 'betterdocs_doc_single_related_docs_content_margin_left',
9758 + [
9759 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_left'],
9760 + 'capability' => 'edit_theme_options',
9761 + 'transport' => 'postMessage',
9762 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9763 +
9764 + ]
9765 + );
9766 +
9767 + $this->customizer->add_control(
9768 + new DimensionControl(
9769 + $this->customizer,
9770 + 'betterdocs_doc_single_related_docs_content_margin_left',
9771 + [
9772 + 'type' => 'betterdocs-dimension',
9773 + 'section' => 'betterdocs_single_docs_settings',
9774 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_left',
9775 + 'label' => __( 'Left', 'betterdocs' ),
9776 + 'priority' => 163,
9777 + 'input_attrs' => [
9778 + 'class' => 'betterdocs_doc_single_related_docs_content_margin_left betterdocs-dimension'
9779 + ]
9780 + ]
9781 + )
9782 + );
9783 + }
9784 +
9785 + public function betterdocs_doc_single_related_docs_label_color() {
9786 + $this->customizer->add_setting(
9787 + 'betterdocs_doc_single_related_docs_label_color',
9788 + [
9789 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_color'],
9790 + 'capability' => 'edit_theme_options',
9791 + 'transport' => 'postMessage',
9792 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
9793 + ]
9794 + );
9795 +
9796 + $this->customizer->add_control(
9797 + new AlphaColorControl(
9798 + $this->customizer,
9799 + 'betterdocs_doc_single_related_docs_label_color',
9800 + [
9801 + 'label' => __( 'Label Color', 'betterdocs' ),
9802 + 'section' => 'betterdocs_single_docs_settings',
9803 + 'settings' => 'betterdocs_doc_single_related_docs_label_color',
9804 + 'priority' => 163
9805 + ]
9806 + )
9807 + );
9808 + }
9809 +
9810 + public function betterdocs_doc_single_related_docs_label_padding() {
9811 + $this->customizer->add_setting(
9812 + 'betterdocs_doc_single_related_docs_label_padding',
9813 + [
9814 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding'],
9815 + 'capability' => 'edit_theme_options',
9816 + 'transport' => 'postMessage',
9817 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9818 +
9819 + ]
9820 + );
9821 +
9822 + $this->customizer->add_control(
9823 + new TitleControl(
9824 + $this->customizer,
9825 + 'betterdocs_doc_single_related_docs_label_padding',
9826 + [
9827 + 'type' => 'betterdocs-title',
9828 + 'section' => 'betterdocs_single_docs_settings',
9829 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding',
9830 + 'label' => __( 'Label Padding', 'betterdocs' ),
9831 + 'priority' => 163,
9832 + 'input_attrs' => [
9833 + 'id' => 'betterdocs_doc_single_related_docs_label_padding',
9834 + 'class' => 'betterdocs-dimension'
9835 + ]
9836 + ]
9837 + )
9838 + );
9839 +
9840 + $this->customizer->add_setting(
9841 + 'betterdocs_doc_single_related_docs_label_padding_top',
9842 + [
9843 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_top'],
9844 + 'capability' => 'edit_theme_options',
9845 + 'transport' => 'postMessage',
9846 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9847 + ]
9848 + );
9849 +
9850 + $this->customizer->add_control(
9851 + new DimensionControl(
9852 + $this->customizer,
9853 + 'betterdocs_doc_single_related_docs_label_padding_top',
9854 + [
9855 + 'type' => 'betterdocs-dimension',
9856 + 'section' => 'betterdocs_single_docs_settings',
9857 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_top',
9858 + 'label' => __( 'Top', 'betterdocs' ),
9859 + 'priority' => 163,
9860 + 'input_attrs' => [
9861 + 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
9862 + ]
9863 + ]
9864 + )
9865 + );
9866 +
9867 + $this->customizer->add_setting(
9868 + 'betterdocs_doc_single_related_docs_label_padding_right',
9869 + [
9870 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_right'],
9871 + 'capability' => 'edit_theme_options',
9872 + 'transport' => 'postMessage',
9873 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9874 +
9875 + ]
9876 + );
9877 +
9878 + $this->customizer->add_control(
9879 + new DimensionControl(
9880 + $this->customizer,
9881 + 'betterdocs_doc_single_related_docs_label_padding_right',
9882 + [
9883 + 'type' => 'betterdocs-dimension',
9884 + 'section' => 'betterdocs_single_docs_settings',
9885 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_right',
9886 + 'label' => __( 'Right', 'betterdocs' ),
9887 + 'priority' => 163,
9888 + 'input_attrs' => [
9889 + 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
9890 + ]
9891 + ]
9892 + )
9893 + );
9894 +
9895 + $this->customizer->add_setting(
9896 + 'betterdocs_doc_single_related_docs_label_padding_bottom',
9897 + [
9898 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_bottom'],
9899 + 'capability' => 'edit_theme_options',
9900 + 'transport' => 'postMessage',
9901 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9902 +
9903 + ]
9904 + );
9905 +
9906 + $this->customizer->add_control(
9907 + new DimensionControl(
9908 + $this->customizer,
9909 + 'betterdocs_doc_single_related_docs_label_padding_bottom',
9910 + [
9911 + 'type' => 'betterdocs-dimension',
9912 + 'section' => 'betterdocs_single_docs_settings',
9913 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_bottom',
9914 + 'label' => __( 'Bottom', 'betterdocs' ),
9915 + 'priority' => 163,
9916 + 'input_attrs' => [
9917 + 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
9918 + ]
9919 + ]
9920 + )
9921 + );
9922 +
9923 + $this->customizer->add_setting(
9924 + 'betterdocs_doc_single_related_docs_label_padding_left',
9925 + [
9926 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_left'],
9927 + 'capability' => 'edit_theme_options',
9928 + 'transport' => 'postMessage',
9929 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9930 +
9931 + ]
9932 + );
9933 +
9934 + $this->customizer->add_control(
9935 + new DimensionControl(
9936 + $this->customizer,
9937 + 'betterdocs_doc_single_related_docs_label_padding_left',
9938 + [
9939 + 'type' => 'betterdocs-dimension',
9940 + 'section' => 'betterdocs_single_docs_settings',
9941 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_left',
9942 + 'label' => __( 'Left', 'betterdocs' ),
9943 + 'priority' => 163,
9944 + 'input_attrs' => [
9945 + 'class' => 'betterdocs_doc_single_related_docs_label_padding betterdocs-dimension'
9946 + ]
9947 + ]
9948 + )
9949 + );
9950 + }
9951 +
9952 + public function betterdocs_doc_single_related_docs_label_margin() {
9953 + $this->customizer->add_setting(
9954 + 'betterdocs_doc_single_related_docs_label_margin',
9955 + [
9956 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin'],
9957 + 'capability' => 'edit_theme_options',
9958 + 'transport' => 'postMessage',
9959 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9960 +
9961 + ]
9962 + );
9963 +
9964 + $this->customizer->add_control(
9965 + new TitleControl(
9966 + $this->customizer,
9967 + 'betterdocs_doc_single_related_docs_label_margin',
9968 + [
9969 + 'type' => 'betterdocs-title',
9970 + 'section' => 'betterdocs_single_docs_settings',
9971 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin',
9972 + 'label' => __( 'Label Margin', 'betterdocs' ),
9973 + 'priority' => 163,
9974 + 'input_attrs' => [
9975 + 'id' => 'betterdocs_doc_single_related_docs_label_margin',
9976 + 'class' => 'betterdocs-dimension'
9977 + ]
9978 + ]
9979 + )
9980 + );
9981 +
9982 + $this->customizer->add_setting(
9983 + 'betterdocs_doc_single_related_docs_label_margin_top',
9984 + [
9985 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_top'],
9986 + 'capability' => 'edit_theme_options',
9987 + 'transport' => 'postMessage',
9988 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
9989 + ]
9990 + );
9991 +
9992 + $this->customizer->add_control(
9993 + new DimensionControl(
9994 + $this->customizer,
9995 + 'betterdocs_doc_single_related_docs_label_margin_top',
9996 + [
9997 + 'type' => 'betterdocs-dimension',
9998 + 'section' => 'betterdocs_single_docs_settings',
9999 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_top',
10000 + 'label' => __( 'Top', 'betterdocs' ),
10001 + 'priority' => 163,
10002 + 'input_attrs' => [
10003 + 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
10004 + ]
10005 + ]
10006 + )
10007 + );
10008 +
10009 + $this->customizer->add_setting(
10010 + 'betterdocs_doc_single_related_docs_label_margin_right',
10011 + [
10012 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_right'],
10013 + 'capability' => 'edit_theme_options',
10014 + 'transport' => 'postMessage',
10015 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10016 +
10017 + ]
10018 + );
10019 +
10020 + $this->customizer->add_control(
10021 + new DimensionControl(
10022 + $this->customizer,
10023 + 'betterdocs_doc_single_related_docs_label_margin_right',
10024 + [
10025 + 'type' => 'betterdocs-dimension',
10026 + 'section' => 'betterdocs_single_docs_settings',
10027 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_right',
10028 + 'label' => __( 'Right', 'betterdocs' ),
10029 + 'priority' => 163,
10030 + 'input_attrs' => [
10031 + 'class' => 'betterdocs_doc_single_related_docs_label_margin_right betterdocs-dimension'
10032 + ]
10033 + ]
10034 + )
10035 + );
10036 +
10037 + $this->customizer->add_setting(
10038 + 'betterdocs_doc_single_related_docs_label_margin_bottom',
10039 + [
10040 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_bottom'],
10041 + 'capability' => 'edit_theme_options',
10042 + 'transport' => 'postMessage',
10043 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10044 + ]
10045 + );
10046 +
10047 + $this->customizer->add_control(
10048 + new DimensionControl(
10049 + $this->customizer,
10050 + 'betterdocs_doc_single_related_docs_label_margin_bottom',
10051 + [
10052 + 'type' => 'betterdocs-dimension',
10053 + 'section' => 'betterdocs_single_docs_settings',
10054 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_bottom',
10055 + 'label' => __( 'Bottom', 'betterdocs' ),
10056 + 'priority' => 163,
10057 + 'input_attrs' => [
10058 + 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
10059 + ]
10060 + ]
10061 + )
10062 + );
10063 +
10064 + $this->customizer->add_setting(
10065 + 'betterdocs_doc_single_related_docs_label_margin_left',
10066 + [
10067 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_left'],
10068 + 'capability' => 'edit_theme_options',
10069 + 'transport' => 'postMessage',
10070 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10071 + ]
10072 + );
10073 +
10074 + $this->customizer->add_control(
10075 + new DimensionControl(
10076 + $this->customizer,
10077 + 'betterdocs_doc_single_related_docs_label_margin_left',
10078 + [
10079 + 'type' => 'betterdocs-dimension',
10080 + 'section' => 'betterdocs_single_docs_settings',
10081 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_left',
10082 + 'label' => __( 'Left', 'betterdocs' ),
10083 + 'priority' => 163,
10084 + 'input_attrs' => [
10085 + 'class' => 'betterdocs_doc_single_related_docs_label_margin betterdocs-dimension'
10086 + ]
10087 + ]
10088 + )
10089 + );
10090 + }
10091 +
10092 + public function betterdocs_doc_related_docs_list_font_size() {
10093 + $this->customizer->add_setting(
10094 + 'betterdocs_doc_related_docs_list_font_size',
10095 + [
10096 + 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_size'],
10097 + 'capability' => 'edit_theme_options',
10098 + 'transport' => 'postMessage',
10099 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10100 +
10101 + ]
10102 + );
10103 +
10104 + $this->customizer->add_control(
10105 + new RangeValueControl(
10106 + $this->customizer,
10107 + 'betterdocs_doc_related_docs_list_font_size',
10108 + [
10109 + 'type' => 'betterdocs-range-value',
10110 + 'section' => 'betterdocs_single_docs_settings',
10111 + 'settings' => 'betterdocs_doc_related_docs_list_font_size',
10112 + 'label' => __( 'List Font Size', 'betterdocs' ),
10113 + 'priority' => 163,
10114 + 'input_attrs' => [
10115 + 'min' => 0,
10116 + 'max' => 50,
10117 + 'step' => 1,
10118 + 'suffix' => 'px' //optional suffix
10119 + ]
10120 + ]
10121 + )
10122 + );
10123 + }
10124 +
10125 + public function betterdocs_doc_related_docs_list_font_weight() {
10126 + $this->customizer->add_setting(
10127 + 'betterdocs_doc_related_docs_list_font_weight',
10128 + [
10129 + 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_weight'],
10130 + 'capability' => 'edit_theme_options',
10131 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
10132 + ]
10133 + );
10134 +
10135 + $this->customizer->add_control(
10136 + new WP_Customize_Control(
10137 + $this->customizer,
10138 + 'betterdocs_doc_related_docs_list_font_weight',
10139 + [
10140 + 'label' => __( 'List Font Weight', 'betterdocs' ),
10141 + 'section' => 'betterdocs_single_docs_settings',
10142 + 'settings' => 'betterdocs_doc_related_docs_list_font_weight',
10143 + 'type' => 'select',
10144 + 'choices' => [
10145 + 'normal' => 'Normal',
10146 + '100' => '100',
10147 + '200' => '200',
10148 + '300' => '300',
10149 + '400' => '400',
10150 + '500' => '500',
10151 + '600' => '600',
10152 + '700' => '700',
10153 + '800' => '800',
10154 + '900' => '900'
10155 + ],
10156 + 'priority' => 163
10157 + ]
10158 + )
10159 + );
10160 + }
10161 +
10162 +
10163 + public function betterdocs_doc_single_related_docs_list_color() {
10164 + $this->customizer->add_setting(
10165 + 'betterdocs_doc_single_related_docs_list_color',
10166 + [
10167 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_color'],
10168 + 'capability' => 'edit_theme_options',
10169 + 'transport' => 'postMessage',
10170 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10171 + ]
10172 + );
10173 +
10174 + $this->customizer->add_control(
10175 + new AlphaColorControl(
10176 + $this->customizer,
10177 + 'betterdocs_doc_single_related_docs_list_color',
10178 + [
10179 + 'label' => __( 'List Color', 'betterdocs' ),
10180 + 'section' => 'betterdocs_single_docs_settings',
10181 + 'settings' => 'betterdocs_doc_single_related_docs_list_color',
10182 + 'priority' => 163
10183 + ]
10184 + )
10185 + );
10186 + }
10187 +
10188 + public function betterdocs_doc_single_related_docs_list_background_color() {
10189 + $this->customizer->add_setting(
10190 + 'betterdocs_doc_single_related_docs_list_background_color',
10191 + [
10192 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_background_color'],
10193 + 'capability' => 'edit_theme_options',
10194 + 'transport' => 'postMessage',
10195 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10196 + ]
10197 + );
10198 +
10199 + $this->customizer->add_control(
10200 + new AlphaColorControl(
10201 + $this->customizer,
10202 + 'betterdocs_doc_single_related_docs_list_background_color',
10203 + [
10204 + 'label' => __( 'List Background Color', 'betterdocs' ),
10205 + 'section' => 'betterdocs_single_docs_settings',
10206 + 'settings' => 'betterdocs_doc_single_related_docs_list_background_color',
10207 + 'priority' => 163
10208 + ]
10209 + )
10210 + );
10211 + }
10212 +
10213 + public function betterdocs_doc_single_related_docs_list_padding() {
10214 + $this->customizer->add_setting(
10215 + 'betterdocs_doc_single_related_docs_list_padding',
10216 + [
10217 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding'],
10218 + 'capability' => 'edit_theme_options',
10219 + 'transport' => 'postMessage',
10220 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10221 +
10222 + ]
10223 + );
10224 +
10225 + $this->customizer->add_control(
10226 + new TitleControl(
10227 + $this->customizer,
10228 + 'betterdocs_doc_single_related_docs_list_padding',
10229 + [
10230 + 'type' => 'betterdocs-title',
10231 + 'section' => 'betterdocs_single_docs_settings',
10232 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding',
10233 + 'label' => __( 'List Padding', 'betterdocs' ),
10234 + 'priority' => 163,
10235 + 'input_attrs' => [
10236 + 'id' => 'betterdocs_doc_single_related_docs_list_padding',
10237 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
10238 + ]
10239 + ]
10240 + )
10241 + );
10242 +
10243 + $this->customizer->add_setting(
10244 + 'betterdocs_doc_single_related_docs_list_padding_top',
10245 + [
10246 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_top'],
10247 + 'capability' => 'edit_theme_options',
10248 + 'transport' => 'postMessage',
10249 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10250 + ]
10251 + );
10252 +
10253 + $this->customizer->add_control(
10254 + new DimensionControl(
10255 + $this->customizer,
10256 + 'betterdocs_doc_single_related_docs_list_padding_top',
10257 + [
10258 + 'type' => 'betterdocs-dimension',
10259 + 'section' => 'betterdocs_single_docs_settings',
10260 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_top',
10261 + 'label' => __( 'Top', 'betterdocs' ),
10262 + 'priority' => 163,
10263 + 'input_attrs' => [
10264 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
10265 + ]
10266 + ]
10267 + )
10268 + );
10269 +
10270 + $this->customizer->add_setting(
10271 + 'betterdocs_doc_single_related_docs_list_padding_right',
10272 + [
10273 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_right'],
10274 + 'capability' => 'edit_theme_options',
10275 + 'transport' => 'postMessage',
10276 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10277 +
10278 + ]
10279 + );
10280 +
10281 + $this->customizer->add_control(
10282 + new DimensionControl(
10283 + $this->customizer,
10284 + 'betterdocs_doc_single_related_docs_list_padding_right',
10285 + [
10286 + 'type' => 'betterdocs-dimension',
10287 + 'section' => 'betterdocs_single_docs_settings',
10288 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_right',
10289 + 'label' => __( 'Right', 'betterdocs' ),
10290 + 'priority' => 163,
10291 + 'input_attrs' => [
10292 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
10293 + ]
10294 + ]
10295 + )
10296 + );
10297 +
10298 + $this->customizer->add_setting(
10299 + 'betterdocs_doc_single_related_docs_list_padding_bottom',
10300 + [
10301 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_bottom'],
10302 + 'capability' => 'edit_theme_options',
10303 + 'transport' => 'postMessage',
10304 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10305 + ]
10306 + );
10307 +
10308 + $this->customizer->add_control(
10309 + new DimensionControl(
10310 + $this->customizer,
10311 + 'betterdocs_doc_single_related_docs_list_padding_bottom',
10312 + [
10313 + 'type' => 'betterdocs-dimension',
10314 + 'section' => 'betterdocs_single_docs_settings',
10315 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_bottom',
10316 + 'label' => __( 'Bottom', 'betterdocs' ),
10317 + 'priority' => 163,
10318 + 'input_attrs' => [
10319 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
10320 + ]
10321 + ]
10322 + )
10323 + );
10324 +
10325 + $this->customizer->add_setting(
10326 + 'betterdocs_doc_single_related_docs_list_padding_left',
10327 + [
10328 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_left'],
10329 + 'capability' => 'edit_theme_options',
10330 + 'transport' => 'postMessage',
10331 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10332 + ]
10333 + );
10334 +
10335 + $this->customizer->add_control(
10336 + new DimensionControl(
10337 + $this->customizer,
10338 + 'betterdocs_doc_single_related_docs_list_padding_left',
10339 + [
10340 + 'type' => 'betterdocs-dimension',
10341 + 'section' => 'betterdocs_single_docs_settings',
10342 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_left',
10343 + 'label' => __( 'Left', 'betterdocs' ),
10344 + 'priority' => 163,
10345 + 'input_attrs' => [
10346 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
10347 + ]
10348 + ]
10349 + )
10350 + );
10351 + }
10352 +
10353 + public function betterdocs_doc_single_related_docs_list_margin() {
10354 + $this->customizer->add_setting(
10355 + 'betterdocs_doc_single_related_docs_list_margin',
10356 + [
10357 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin'],
10358 + 'capability' => 'edit_theme_options',
10359 + 'transport' => 'postMessage',
10360 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10361 +
10362 + ]
10363 + );
10364 +
10365 + $this->customizer->add_control(
10366 + new TitleControl(
10367 + $this->customizer,
10368 + 'betterdocs_doc_single_related_docs_list_margin',
10369 + [
10370 + 'type' => 'betterdocs-title',
10371 + 'section' => 'betterdocs_single_docs_settings',
10372 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin',
10373 + 'label' => __( 'List Margin', 'betterdocs' ),
10374 + 'priority' => 163,
10375 + 'input_attrs' => [
10376 + 'id' => 'betterdocs_doc_single_related_docs_list_margin',
10377 + 'class' => 'betterdocs-dimension'
10378 + ]
10379 + ]
10380 + )
10381 + );
10382 +
10383 + $this->customizer->add_setting(
10384 + 'betterdocs_doc_single_related_docs_list_margin_top',
10385 + [
10386 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_top'],
10387 + 'capability' => 'edit_theme_options',
10388 + 'transport' => 'postMessage',
10389 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10390 + ]
10391 + );
10392 +
10393 + $this->customizer->add_control(
10394 + new DimensionControl(
10395 + $this->customizer,
10396 + 'betterdocs_doc_single_related_docs_list_margin_top',
10397 + [
10398 + 'type' => 'betterdocs-dimension',
10399 + 'section' => 'betterdocs_single_docs_settings',
10400 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_top',
10401 + 'label' => __( 'Top', 'betterdocs' ),
10402 + 'priority' => 163,
10403 + 'input_attrs' => [
10404 + 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
10405 + ]
10406 + ]
10407 + )
10408 + );
10409 +
10410 + $this->customizer->add_setting(
10411 + 'betterdocs_doc_single_related_docs_list_margin_right',
10412 + [
10413 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_right'],
10414 + 'capability' => 'edit_theme_options',
10415 + 'transport' => 'postMessage',
10416 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10417 +
10418 + ]
10419 + );
10420 +
10421 + $this->customizer->add_control(
10422 + new DimensionControl(
10423 + $this->customizer,
10424 + 'betterdocs_doc_single_related_docs_list_margin_right',
10425 + [
10426 + 'type' => 'betterdocs-dimension',
10427 + 'section' => 'betterdocs_single_docs_settings',
10428 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_right',
10429 + 'label' => __( 'Right', 'betterdocs' ),
10430 + 'priority' => 163,
10431 + 'input_attrs' => [
10432 + 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
10433 + ]
10434 + ]
10435 + )
10436 + );
10437 +
10438 + $this->customizer->add_setting(
10439 + 'betterdocs_doc_single_related_docs_list_margin_bottom',
10440 + [
10441 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_bottom'],
10442 + 'capability' => 'edit_theme_options',
10443 + 'transport' => 'postMessage',
10444 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10445 + ]
10446 + );
10447 +
10448 + $this->customizer->add_control(
10449 + new DimensionControl(
10450 + $this->customizer,
10451 + 'betterdocs_doc_single_related_docs_list_margin_bottom',
10452 + [
10453 + 'type' => 'betterdocs-dimension',
10454 + 'section' => 'betterdocs_single_docs_settings',
10455 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_bottom',
10456 + 'label' => __( 'Bottom', 'betterdocs' ),
10457 + 'priority' => 163,
10458 + 'input_attrs' => [
10459 + 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
10460 + ]
10461 + ]
10462 + )
10463 + );
10464 +
10465 + $this->customizer->add_setting(
10466 + 'betterdocs_doc_single_related_docs_list_margin_left',
10467 + [
10468 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_left'],
10469 + 'capability' => 'edit_theme_options',
10470 + 'transport' => 'postMessage',
10471 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10472 + ]
10473 + );
10474 +
10475 + $this->customizer->add_control(
10476 + new DimensionControl(
10477 + $this->customizer,
10478 + 'betterdocs_doc_single_related_docs_list_margin_left',
10479 + [
10480 + 'type' => 'betterdocs-dimension',
10481 + 'section' => 'betterdocs_single_docs_settings',
10482 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_left',
10483 + 'label' => __( 'Left', 'betterdocs' ),
10484 + 'priority' => 163,
10485 + 'input_attrs' => [
10486 + 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
10487 + ]
10488 + ]
10489 + )
10490 + );
10491 + }
10492 +
10493 + public function betterdocs_doc_single_related_docs_heading_layout_8_9() {
10494 + $this->customizer->add_setting(
10495 + 'betterdocs_doc_single_related_docs_heading_layout_8_9',
10496 + [
10497 + 'default' => 'betterdocs_doc_single_related_docs_heading_layout_8_9',
10498 + 'sanitize_callback' => 'esc_html'
10499 + ]
10500 + );
10501 +
10502 + $this->customizer->add_control(
10503 + new SeparatorControl(
10504 + $this->customizer,
10505 + 'betterdocs_doc_single_related_docs_heading_layout_8_9',
10506 + [
10507 + 'label' => __( 'Related Docs', 'betterdocs' ),
10508 + 'priority' => 163,
10509 + 'settings' => 'betterdocs_doc_single_related_docs_heading_layout_8_9',
10510 + 'section' => 'betterdocs_single_docs_settings'
10511 + ]
10512 + )
10513 + );
10514 + }
10515 +
10516 + public function betterdocs_doc_single_related_docs_content_bg_color_layout_8_9() {
10517 + $this->customizer->add_setting(
10518 + 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
10519 + [
10520 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_bg_color_layout_8_9'],
10521 + 'capability' => 'edit_theme_options',
10522 + 'transport' => 'postMessage',
10523 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10524 + ]
10525 + );
10526 +
10527 + $this->customizer->add_control(
10528 + new AlphaColorControl(
10529 + $this->customizer,
10530 + 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
10531 + [
10532 + 'label' => __( 'Content Background Color', 'betterdocs' ),
10533 + 'section' => 'betterdocs_single_docs_settings',
10534 + 'settings' => 'betterdocs_doc_single_related_docs_content_bg_color_layout_8_9',
10535 + 'priority' => 163
10536 + ]
10537 + )
10538 + );
10539 + }
10540 +
10541 + public function betterdocs_doc_single_related_docs_content_padding_layout_8_9() {
10542 + $this->customizer->add_setting(
10543 + 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
10544 + [
10545 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_layout_8_9'],
10546 + 'capability' => 'edit_theme_options',
10547 + 'transport' => 'postMessage',
10548 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10549 +
10550 + ]
10551 + );
10552 +
10553 + $this->customizer->add_control(
10554 + new TitleControl(
10555 + $this->customizer,
10556 + 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
10557 + [
10558 + 'type' => 'betterdocs-title',
10559 + 'section' => 'betterdocs_single_docs_settings',
10560 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
10561 + 'label' => __( 'Content Padding', 'betterdocs' ),
10562 + 'priority' => 163,
10563 + 'input_attrs' => [
10564 + 'id' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9',
10565 + 'class' => 'betterdocs-dimension'
10566 + ]
10567 + ]
10568 + )
10569 + );
10570 +
10571 + $this->customizer->add_setting(
10572 + 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9',
10573 + [
10574 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_top_layout_8_9'],
10575 + 'capability' => 'edit_theme_options',
10576 + 'transport' => 'postMessage',
10577 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10578 + ]
10579 + );
10580 +
10581 + $this->customizer->add_control(
10582 + new DimensionControl(
10583 + $this->customizer,
10584 + 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9',
10585 + [
10586 + 'type' => 'betterdocs-dimension',
10587 + 'section' => 'betterdocs_single_docs_settings',
10588 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_top_layout_8_9',
10589 + 'label' => __( 'Top', 'betterdocs' ),
10590 + 'priority' => 163,
10591 + 'input_attrs' => [
10592 + 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
10593 + ]
10594 + ]
10595 + )
10596 + );
10597 +
10598 + $this->customizer->add_setting(
10599 + 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9',
10600 + [
10601 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_right_layout_8_9'],
10602 + 'capability' => 'edit_theme_options',
10603 + 'transport' => 'postMessage',
10604 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10605 +
10606 + ]
10607 + );
10608 +
10609 + $this->customizer->add_control(
10610 + new DimensionControl(
10611 + $this->customizer,
10612 + 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9',
10613 + [
10614 + 'type' => 'betterdocs-dimension',
10615 + 'section' => 'betterdocs_single_docs_settings',
10616 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_right_layout_8_9',
10617 + 'label' => __( 'Right', 'betterdocs' ),
10618 + 'priority' => 163,
10619 + 'input_attrs' => [
10620 + 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
10621 + ]
10622 + ]
10623 + )
10624 + );
10625 +
10626 + $this->customizer->add_setting(
10627 + 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9',
10628 + [
10629 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9'],
10630 + 'capability' => 'edit_theme_options',
10631 + 'transport' => 'postMessage',
10632 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10633 +
10634 + ]
10635 + );
10636 +
10637 + $this->customizer->add_control(
10638 + new DimensionControl(
10639 + $this->customizer,
10640 + 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9',
10641 + [
10642 + 'type' => 'betterdocs-dimension',
10643 + 'section' => 'betterdocs_single_docs_settings',
10644 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_bottom_layout_8_9',
10645 + 'label' => __( 'Bottom', 'betterdocs' ),
10646 + 'priority' => 163,
10647 + 'input_attrs' => [
10648 + 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
10649 + ]
10650 + ]
10651 + )
10652 + );
10653 +
10654 + $this->customizer->add_setting(
10655 + 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9',
10656 + [
10657 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_padding_left_layout_8_9'],
10658 + 'capability' => 'edit_theme_options',
10659 + 'transport' => 'postMessage',
10660 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10661 +
10662 + ]
10663 + );
10664 +
10665 + $this->customizer->add_control(
10666 + new DimensionControl(
10667 + $this->customizer,
10668 + 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9',
10669 + [
10670 + 'type' => 'betterdocs-dimension',
10671 + 'section' => 'betterdocs_single_docs_settings',
10672 + 'settings' => 'betterdocs_doc_single_related_docs_content_padding_left_layout_8_9',
10673 + 'label' => __( 'Left', 'betterdocs' ),
10674 + 'priority' => 163,
10675 + 'input_attrs' => [
10676 + 'class' => 'betterdocs_doc_single_related_docs_content_padding_layout_8_9 betterdocs-dimension'
10677 + ]
10678 + ]
10679 + )
10680 + );
10681 + }
10682 +
10683 + public function betterdocs_doc_single_related_docs_content_margin_layout_8_9() {
10684 + $this->customizer->add_setting(
10685 + 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
10686 + [
10687 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_layout_8_9'],
10688 + 'capability' => 'edit_theme_options',
10689 + 'transport' => 'postMessage',
10690 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10691 +
10692 + ]
10693 + );
10694 +
10695 + $this->customizer->add_control(
10696 + new TitleControl(
10697 + $this->customizer,
10698 + 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
10699 + [
10700 + 'type' => 'betterdocs-title',
10701 + 'section' => 'betterdocs_single_docs_settings',
10702 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
10703 + 'label' => __( 'Content Margin', 'betterdocs' ),
10704 + 'priority' => 163,
10705 + 'input_attrs' => [
10706 + 'id' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9',
10707 + 'class' => 'betterdocs-dimension'
10708 + ]
10709 + ]
10710 + )
10711 + );
10712 +
10713 + $this->customizer->add_setting(
10714 + 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9',
10715 + [
10716 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_top_layout_8_9'],
10717 + 'capability' => 'edit_theme_options',
10718 + 'transport' => 'postMessage',
10719 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10720 + ]
10721 + );
10722 +
10723 + $this->customizer->add_control(
10724 + new DimensionControl(
10725 + $this->customizer,
10726 + 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9',
10727 + [
10728 + 'type' => 'betterdocs-dimension',
10729 + 'section' => 'betterdocs_single_docs_settings',
10730 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_top_layout_8_9',
10731 + 'label' => __( 'Top', 'betterdocs' ),
10732 + 'priority' => 163,
10733 + 'input_attrs' => [
10734 + 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
10735 + ]
10736 + ]
10737 + )
10738 + );
10739 +
10740 + $this->customizer->add_setting(
10741 + 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9',
10742 + [
10743 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_right_layout_8_9'],
10744 + 'capability' => 'edit_theme_options',
10745 + 'transport' => 'postMessage',
10746 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10747 +
10748 + ]
10749 + );
10750 +
10751 + $this->customizer->add_control(
10752 + new DimensionControl(
10753 + $this->customizer,
10754 + 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9',
10755 + [
10756 + 'type' => 'betterdocs-dimension',
10757 + 'section' => 'betterdocs_single_docs_settings',
10758 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_right_layout_8_9',
10759 + 'label' => __( 'Right', 'betterdocs' ),
10760 + 'priority' => 163,
10761 + 'input_attrs' => [
10762 + 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
10763 + ]
10764 + ]
10765 + )
10766 + );
10767 +
10768 + $this->customizer->add_setting(
10769 + 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9',
10770 + [
10771 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9'],
10772 + 'capability' => 'edit_theme_options',
10773 + 'transport' => 'postMessage',
10774 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10775 +
10776 + ]
10777 + );
10778 +
10779 + $this->customizer->add_control(
10780 + new DimensionControl(
10781 + $this->customizer,
10782 + 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9',
10783 + [
10784 + 'type' => 'betterdocs-dimension',
10785 + 'section' => 'betterdocs_single_docs_settings',
10786 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_bottom_layout_8_9',
10787 + 'label' => __( 'Bottom', 'betterdocs' ),
10788 + 'priority' => 163,
10789 + 'input_attrs' => [
10790 + 'class' => 'betterdocs_doc_single_related_docs_content_margin_layout_8_9 betterdocs-dimension'
10791 + ]
10792 + ]
10793 + )
10794 + );
10795 +
10796 + $this->customizer->add_setting(
10797 + 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9',
10798 + [
10799 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_content_margin_left_layout_8_9'],
10800 + 'capability' => 'edit_theme_options',
10801 + 'transport' => 'postMessage',
10802 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10803 +
10804 + ]
10805 + );
10806 +
10807 + $this->customizer->add_control(
10808 + new DimensionControl(
10809 + $this->customizer,
10810 + 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9',
10811 + [
10812 + 'type' => 'betterdocs-dimension',
10813 + 'section' => 'betterdocs_single_docs_settings',
10814 + 'settings' => 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9',
10815 + 'label' => __( 'Left', 'betterdocs' ),
10816 + 'priority' => 163,
10817 + 'input_attrs' => [
10818 + 'class' => 'betterdocs_doc_single_related_docs_content_margin_left_layout_8_9 betterdocs-dimension'
10819 + ]
10820 + ]
10821 + )
10822 + );
10823 + }
10824 +
10825 + public function betterdocs_doc_single_related_docs_label_color_layout_8_9() {
10826 + $this->customizer->add_setting(
10827 + 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
10828 + [
10829 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_color_layout_8_9'],
10830 + 'capability' => 'edit_theme_options',
10831 + 'transport' => 'postMessage',
10832 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
10833 + ]
10834 + );
10835 +
10836 + $this->customizer->add_control(
10837 + new AlphaColorControl(
10838 + $this->customizer,
10839 + 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
10840 + [
10841 + 'label' => __( 'Label Color', 'betterdocs' ),
10842 + 'section' => 'betterdocs_single_docs_settings',
10843 + 'settings' => 'betterdocs_doc_single_related_docs_label_color_layout_8_9',
10844 + 'priority' => 163
10845 + ]
10846 + )
10847 + );
10848 + }
10849 +
10850 + public function betterdocs_doc_single_related_docs_label_padding_layout_8_9() {
10851 + $this->customizer->add_setting(
10852 + 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
10853 + [
10854 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_layout_8_9'],
10855 + 'capability' => 'edit_theme_options',
10856 + 'transport' => 'postMessage',
10857 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10858 +
10859 + ]
10860 + );
10861 +
10862 + $this->customizer->add_control(
10863 + new TitleControl(
10864 + $this->customizer,
10865 + 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
10866 + [
10867 + 'type' => 'betterdocs-title',
10868 + 'section' => 'betterdocs_single_docs_settings',
10869 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
10870 + 'label' => __( 'Label Padding', 'betterdocs' ),
10871 + 'priority' => 163,
10872 + 'input_attrs' => [
10873 + 'id' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9',
10874 + 'class' => 'betterdocs-dimension'
10875 + ]
10876 + ]
10877 + )
10878 + );
10879 +
10880 + $this->customizer->add_setting(
10881 + 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9',
10882 + [
10883 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_top_layout_8_9'],
10884 + 'capability' => 'edit_theme_options',
10885 + 'transport' => 'postMessage',
10886 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10887 + ]
10888 + );
10889 +
10890 + $this->customizer->add_control(
10891 + new DimensionControl(
10892 + $this->customizer,
10893 + 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9',
10894 + [
10895 + 'type' => 'betterdocs-dimension',
10896 + 'section' => 'betterdocs_single_docs_settings',
10897 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_top_layout_8_9',
10898 + 'label' => __( 'Top', 'betterdocs' ),
10899 + 'priority' => 163,
10900 + 'input_attrs' => [
10901 + 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
10902 + ]
10903 + ]
10904 + )
10905 + );
10906 +
10907 + $this->customizer->add_setting(
10908 + 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9',
10909 + [
10910 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_right_layout_8_9'],
10911 + 'capability' => 'edit_theme_options',
10912 + 'transport' => 'postMessage',
10913 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10914 +
10915 + ]
10916 + );
10917 +
10918 + $this->customizer->add_control(
10919 + new DimensionControl(
10920 + $this->customizer,
10921 + 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9',
10922 + [
10923 + 'type' => 'betterdocs-dimension',
10924 + 'section' => 'betterdocs_single_docs_settings',
10925 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_right_layout_8_9',
10926 + 'label' => __( 'Right', 'betterdocs' ),
10927 + 'priority' => 163,
10928 + 'input_attrs' => [
10929 + 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
10930 + ]
10931 + ]
10932 + )
10933 + );
10934 +
10935 + $this->customizer->add_setting(
10936 + 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9',
10937 + [
10938 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9'],
10939 + 'capability' => 'edit_theme_options',
10940 + 'transport' => 'postMessage',
10941 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10942 +
10943 + ]
10944 + );
10945 +
10946 + $this->customizer->add_control(
10947 + new DimensionControl(
10948 + $this->customizer,
10949 + 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9',
10950 + [
10951 + 'type' => 'betterdocs-dimension',
10952 + 'section' => 'betterdocs_single_docs_settings',
10953 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_bottom_layout_8_9',
10954 + 'label' => __( 'Bottom', 'betterdocs' ),
10955 + 'priority' => 163,
10956 + 'input_attrs' => [
10957 + 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
10958 + ]
10959 + ]
10960 + )
10961 + );
10962 +
10963 + $this->customizer->add_setting(
10964 + 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9',
10965 + [
10966 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_padding_left_layout_8_9'],
10967 + 'capability' => 'edit_theme_options',
10968 + 'transport' => 'postMessage',
10969 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
10970 +
10971 + ]
10972 + );
10973 +
10974 + $this->customizer->add_control(
10975 + new DimensionControl(
10976 + $this->customizer,
10977 + 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9',
10978 + [
10979 + 'type' => 'betterdocs-dimension',
10980 + 'section' => 'betterdocs_single_docs_settings',
10981 + 'settings' => 'betterdocs_doc_single_related_docs_label_padding_left_layout_8_9',
10982 + 'label' => __( 'Left', 'betterdocs' ),
10983 + 'priority' => 163,
10984 + 'input_attrs' => [
10985 + 'class' => 'betterdocs_doc_single_related_docs_label_padding_layout_8_9 betterdocs-dimension'
10986 + ]
10987 + ]
10988 + )
10989 + );
10990 + }
10991 +
10992 + public function betterdocs_doc_single_related_docs_label_margin_layout_8_9() {
10993 + $this->customizer->add_setting(
10994 + 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
10995 + [
10996 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_layout_8_9'],
10997 + 'capability' => 'edit_theme_options',
10998 + 'transport' => 'postMessage',
10999 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11000 +
11001 + ]
11002 + );
11003 +
11004 + $this->customizer->add_control(
11005 + new TitleControl(
11006 + $this->customizer,
11007 + 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
11008 + [
11009 + 'type' => 'betterdocs-title',
11010 + 'section' => 'betterdocs_single_docs_settings',
11011 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
11012 + 'label' => __( 'Label Margin', 'betterdocs' ),
11013 + 'priority' => 163,
11014 + 'input_attrs' => [
11015 + 'id' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9',
11016 + 'class' => 'betterdocs-dimension'
11017 + ]
11018 + ]
11019 + )
11020 + );
11021 +
11022 + $this->customizer->add_setting(
11023 + 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9',
11024 + [
11025 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_top_layout_8_9'],
11026 + 'capability' => 'edit_theme_options',
11027 + 'transport' => 'postMessage',
11028 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11029 + ]
11030 + );
11031 +
11032 + $this->customizer->add_control(
11033 + new DimensionControl(
11034 + $this->customizer,
11035 + 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9',
11036 + [
11037 + 'type' => 'betterdocs-dimension',
11038 + 'section' => 'betterdocs_single_docs_settings',
11039 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_top_layout_8_9',
11040 + 'label' => __( 'Top', 'betterdocs' ),
11041 + 'priority' => 163,
11042 + 'input_attrs' => [
11043 + 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
11044 + ]
11045 + ]
11046 + )
11047 + );
11048 +
11049 + $this->customizer->add_setting(
11050 + 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9',
11051 + [
11052 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_right_layout_8_9'],
11053 + 'capability' => 'edit_theme_options',
11054 + 'transport' => 'postMessage',
11055 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11056 +
11057 + ]
11058 + );
11059 +
11060 + $this->customizer->add_control(
11061 + new DimensionControl(
11062 + $this->customizer,
11063 + 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9',
11064 + [
11065 + 'type' => 'betterdocs-dimension',
11066 + 'section' => 'betterdocs_single_docs_settings',
11067 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9',
11068 + 'label' => __( 'Right', 'betterdocs' ),
11069 + 'priority' => 163,
11070 + 'input_attrs' => [
11071 + 'class' => 'betterdocs_doc_single_related_docs_label_margin_right_layout_8_9 betterdocs-dimension'
11072 + ]
11073 + ]
11074 + )
11075 + );
11076 +
11077 + $this->customizer->add_setting(
11078 + 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9',
11079 + [
11080 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9'],
11081 + 'capability' => 'edit_theme_options',
11082 + 'transport' => 'postMessage',
11083 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11084 + ]
11085 + );
11086 +
11087 + $this->customizer->add_control(
11088 + new DimensionControl(
11089 + $this->customizer,
11090 + 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9',
11091 + [
11092 + 'type' => 'betterdocs-dimension',
11093 + 'section' => 'betterdocs_single_docs_settings',
11094 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_bottom_layout_8_9',
11095 + 'label' => __( 'Bottom', 'betterdocs' ),
11096 + 'priority' => 163,
11097 + 'input_attrs' => [
11098 + 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
11099 + ]
11100 + ]
11101 + )
11102 + );
11103 +
11104 + $this->customizer->add_setting(
11105 + 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9',
11106 + [
11107 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_label_margin_left_layout_8_9'],
11108 + 'capability' => 'edit_theme_options',
11109 + 'transport' => 'postMessage',
11110 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11111 + ]
11112 + );
11113 +
11114 + $this->customizer->add_control(
11115 + new DimensionControl(
11116 + $this->customizer,
11117 + 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9',
11118 + [
11119 + 'type' => 'betterdocs-dimension',
11120 + 'section' => 'betterdocs_single_docs_settings',
11121 + 'settings' => 'betterdocs_doc_single_related_docs_label_margin_left_layout_8_9',
11122 + 'label' => __( 'Left', 'betterdocs' ),
11123 + 'priority' => 163,
11124 + 'input_attrs' => [
11125 + 'class' => 'betterdocs_doc_single_related_docs_label_margin_layout_8_9 betterdocs-dimension'
11126 + ]
11127 + ]
11128 + )
11129 + );
11130 + }
11131 +
11132 + public function betterdocs_doc_related_docs_list_font_size_layout_8_9() {
11133 + $this->customizer->add_setting(
11134 + 'betterdocs_doc_related_docs_list_font_size_layout_8_9',
11135 + [
11136 + 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_size_layout_8_9'],
11137 + 'capability' => 'edit_theme_options',
11138 + 'transport' => 'postMessage',
11139 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11140 +
11141 + ]
11142 + );
11143 +
11144 + $this->customizer->add_control(
11145 + new RangeValueControl(
11146 + $this->customizer,
11147 + 'betterdocs_doc_related_docs_list_font_size_layout_8_9',
11148 + [
11149 + 'type' => 'betterdocs-range-value',
11150 + 'section' => 'betterdocs_single_docs_settings',
11151 + 'settings' => 'betterdocs_doc_related_docs_list_font_size_layout_8_9',
11152 + 'label' => __( 'List Font Size', 'betterdocs' ),
11153 + 'priority' => 163,
11154 + 'input_attrs' => [
11155 + 'min' => 0,
11156 + 'max' => 50,
11157 + 'step' => 1,
11158 + 'suffix' => 'px' //optional suffix
11159 + ]
11160 + ]
11161 + )
11162 + );
11163 + }
11164 +
11165 + public function betterdocs_doc_related_docs_list_font_weight_layout_8_9() {
11166 + $this->customizer->add_setting(
11167 + 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
11168 + [
11169 + 'default' => $this->defaults['betterdocs_doc_related_docs_list_font_weight_layout_8_9'],
11170 + 'capability' => 'edit_theme_options',
11171 + 'sanitize_callback' => [ $this->sanitizer, 'choices' ]
11172 + ]
11173 + );
11174 +
11175 + $this->customizer->add_control(
11176 + new WP_Customize_Control(
11177 + $this->customizer,
11178 + 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
11179 + [
11180 + 'label' => __( 'List Font Weight', 'betterdocs' ),
11181 + 'section' => 'betterdocs_single_docs_settings',
11182 + 'settings' => 'betterdocs_doc_related_docs_list_font_weight_layout_8_9',
11183 + 'type' => 'select',
11184 + 'choices' => [
11185 + 'normal' => 'Normal',
11186 + '100' => '100',
11187 + '200' => '200',
11188 + '300' => '300',
11189 + '400' => '400',
11190 + '500' => '500',
11191 + '600' => '600',
11192 + '700' => '700',
11193 + '800' => '800',
11194 + '900' => '900'
11195 + ],
11196 + 'priority' => 163
11197 + ]
11198 + )
11199 + );
11200 + }
11201 +
11202 +
11203 + public function betterdocs_doc_single_related_docs_list_color_layout_8_9() {
11204 + $this->customizer->add_setting(
11205 + 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
11206 + [
11207 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_color_layout_8_9'],
11208 + 'capability' => 'edit_theme_options',
11209 + 'transport' => 'postMessage',
11210 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
11211 + ]
11212 + );
11213 +
11214 + $this->customizer->add_control(
11215 + new AlphaColorControl(
11216 + $this->customizer,
11217 + 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
11218 + [
11219 + 'label' => __( 'List Color', 'betterdocs' ),
11220 + 'section' => 'betterdocs_single_docs_settings',
11221 + 'settings' => 'betterdocs_doc_single_related_docs_list_color_layout_8_9',
11222 + 'priority' => 163
11223 + ]
11224 + )
11225 + );
11226 + }
11227 +
11228 + public function betterdocs_doc_single_related_docs_list_background_color_layout_8_9() {
11229 + $this->customizer->add_setting(
11230 + 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
11231 + [
11232 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_background_color_layout_8_9'],
11233 + 'capability' => 'edit_theme_options',
11234 + 'transport' => 'postMessage',
11235 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
11236 + ]
11237 + );
11238 +
11239 + $this->customizer->add_control(
11240 + new AlphaColorControl(
11241 + $this->customizer,
11242 + 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
11243 + [
11244 + 'label' => __( 'List Background Color', 'betterdocs' ),
11245 + 'section' => 'betterdocs_single_docs_settings',
11246 + 'settings' => 'betterdocs_doc_single_related_docs_list_background_color_layout_8_9',
11247 + 'priority' => 163
11248 + ]
11249 + )
11250 + );
11251 + }
11252 +
11253 + public function betterdocs_doc_single_related_docs_list_padding_layout_8_9() {
11254 + $this->customizer->add_setting(
11255 + 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
11256 + [
11257 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_layout_8_9'],
11258 + 'capability' => 'edit_theme_options',
11259 + 'transport' => 'postMessage',
11260 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11261 +
11262 + ]
11263 + );
11264 +
11265 + $this->customizer->add_control(
11266 + new TitleControl(
11267 + $this->customizer,
11268 + 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
11269 + [
11270 + 'type' => 'betterdocs-title',
11271 + 'section' => 'betterdocs_single_docs_settings',
11272 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
11273 + 'label' => __( 'List Padding', 'betterdocs' ),
11274 + 'priority' => 163,
11275 + 'input_attrs' => [
11276 + 'id' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9',
11277 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
11278 + ]
11279 + ]
11280 + )
11281 + );
11282 +
11283 + $this->customizer->add_setting(
11284 + 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9',
11285 + [
11286 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_top_layout_8_9'],
11287 + 'capability' => 'edit_theme_options',
11288 + 'transport' => 'postMessage',
11289 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11290 + ]
11291 + );
11292 +
11293 + $this->customizer->add_control(
11294 + new DimensionControl(
11295 + $this->customizer,
11296 + 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9',
11297 + [
11298 + 'type' => 'betterdocs-dimension',
11299 + 'section' => 'betterdocs_single_docs_settings',
11300 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_top_layout_8_9',
11301 + 'label' => __( 'Top', 'betterdocs' ),
11302 + 'priority' => 163,
11303 + 'input_attrs' => [
11304 + 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
11305 + ]
11306 + ]
11307 + )
11308 + );
11309 +
11310 + $this->customizer->add_setting(
11311 + 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9',
11312 + [
11313 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_right_layout_8_9'],
11314 + 'capability' => 'edit_theme_options',
11315 + 'transport' => 'postMessage',
11316 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11317 +
11318 + ]
11319 + );
11320 +
11321 + $this->customizer->add_control(
11322 + new DimensionControl(
11323 + $this->customizer,
11324 + 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9',
11325 + [
11326 + 'type' => 'betterdocs-dimension',
11327 + 'section' => 'betterdocs_single_docs_settings',
11328 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_right_layout_8_9',
11329 + 'label' => __( 'Right', 'betterdocs' ),
11330 + 'priority' => 163,
11331 + 'input_attrs' => [
11332 + 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
11333 + ]
11334 + ]
11335 + )
11336 + );
11337 +
11338 + $this->customizer->add_setting(
11339 + 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9',
11340 + [
11341 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9'],
11342 + 'capability' => 'edit_theme_options',
11343 + 'transport' => 'postMessage',
11344 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11345 + ]
11346 + );
11347 +
11348 + $this->customizer->add_control(
11349 + new DimensionControl(
11350 + $this->customizer,
11351 + 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9',
11352 + [
11353 + 'type' => 'betterdocs-dimension',
11354 + 'section' => 'betterdocs_single_docs_settings',
11355 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_bottom_layout_8_9',
11356 + 'label' => __( 'Bottom', 'betterdocs' ),
11357 + 'priority' => 163,
11358 + 'input_attrs' => [
11359 + 'class' => 'betterdocs_doc_single_related_docs_list_padding_layout_8_9 betterdocs-dimension'
11360 + ]
11361 + ]
11362 + )
11363 + );
11364 +
11365 + $this->customizer->add_setting(
11366 + 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9',
11367 + [
11368 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_padding_left_layout_8_9'],
11369 + 'capability' => 'edit_theme_options',
11370 + 'transport' => 'postMessage',
11371 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11372 + ]
11373 + );
11374 +
11375 + $this->customizer->add_control(
11376 + new DimensionControl(
11377 + $this->customizer,
11378 + 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9',
11379 + [
11380 + 'type' => 'betterdocs-dimension',
11381 + 'section' => 'betterdocs_single_docs_settings',
11382 + 'settings' => 'betterdocs_doc_single_related_docs_list_padding_left_layout_8_9',
11383 + 'label' => __( 'Left', 'betterdocs' ),
11384 + 'priority' => 163,
11385 + 'input_attrs' => [
11386 + 'class' => 'betterdocs_doc_single_related_docs_list_padding betterdocs-dimension'
11387 + ]
11388 + ]
11389 + )
11390 + );
11391 + }
11392 +
11393 + public function betterdocs_doc_single_related_docs_list_margin_layout_8_9() {
11394 + $this->customizer->add_setting(
11395 + 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
11396 + [
11397 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_layout_8_9'],
11398 + 'capability' => 'edit_theme_options',
11399 + 'transport' => 'postMessage',
11400 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11401 +
11402 + ]
11403 + );
11404 +
11405 + $this->customizer->add_control(
11406 + new TitleControl(
11407 + $this->customizer,
11408 + 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
11409 + [
11410 + 'type' => 'betterdocs-title',
11411 + 'section' => 'betterdocs_single_docs_settings',
11412 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
11413 + 'label' => __( 'List Margin', 'betterdocs' ),
11414 + 'priority' => 163,
11415 + 'input_attrs' => [
11416 + 'id' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9',
11417 + 'class' => 'betterdocs-dimension'
11418 + ]
11419 + ]
11420 + )
11421 + );
11422 +
11423 + $this->customizer->add_setting(
11424 + 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9',
11425 + [
11426 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_top_layout_8_9'],
11427 + 'capability' => 'edit_theme_options',
11428 + 'transport' => 'postMessage',
11429 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11430 + ]
11431 + );
11432 +
11433 + $this->customizer->add_control(
11434 + new DimensionControl(
11435 + $this->customizer,
11436 + 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9',
11437 + [
11438 + 'type' => 'betterdocs-dimension',
11439 + 'section' => 'betterdocs_single_docs_settings',
11440 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_top_layout_8_9',
11441 + 'label' => __( 'Top', 'betterdocs' ),
11442 + 'priority' => 163,
11443 + 'input_attrs' => [
11444 + 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
11445 + ]
11446 + ]
11447 + )
11448 + );
11449 +
11450 + $this->customizer->add_setting(
11451 + 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9',
11452 + [
11453 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_right_layout_8_9'],
11454 + 'capability' => 'edit_theme_options',
11455 + 'transport' => 'postMessage',
11456 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11457 +
11458 + ]
11459 + );
11460 +
11461 + $this->customizer->add_control(
11462 + new DimensionControl(
11463 + $this->customizer,
11464 + 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9',
11465 + [
11466 + 'type' => 'betterdocs-dimension',
11467 + 'section' => 'betterdocs_single_docs_settings',
11468 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_right_layout_8_9',
11469 + 'label' => __( 'Right', 'betterdocs' ),
11470 + 'priority' => 163,
11471 + 'input_attrs' => [
11472 + 'class' => 'betterdocs_doc_single_related_docs_list_margin betterdocs-dimension'
11473 + ]
11474 + ]
11475 + )
11476 + );
11477 +
11478 + $this->customizer->add_setting(
11479 + 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9',
11480 + [
11481 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9'],
11482 + 'capability' => 'edit_theme_options',
11483 + 'transport' => 'postMessage',
11484 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11485 + ]
11486 + );
11487 +
11488 + $this->customizer->add_control(
11489 + new DimensionControl(
11490 + $this->customizer,
11491 + 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9',
11492 + [
11493 + 'type' => 'betterdocs-dimension',
11494 + 'section' => 'betterdocs_single_docs_settings',
11495 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_bottom_layout_8_9',
11496 + 'label' => __( 'Bottom', 'betterdocs' ),
11497 + 'priority' => 163,
11498 + 'input_attrs' => [
11499 + 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
11500 + ]
11501 + ]
11502 + )
11503 + );
11504 +
11505 + $this->customizer->add_setting(
11506 + 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9',
11507 + [
11508 + 'default' => $this->defaults['betterdocs_doc_single_related_docs_list_margin_left_layout_8_9'],
11509 + 'capability' => 'edit_theme_options',
11510 + 'transport' => 'postMessage',
11511 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
11512 + ]
11513 + );
11514 +
11515 + $this->customizer->add_control(
11516 + new DimensionControl(
11517 + $this->customizer,
11518 + 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9',
11519 + [
11520 + 'type' => 'betterdocs-dimension',
11521 + 'section' => 'betterdocs_single_docs_settings',
11522 + 'settings' => 'betterdocs_doc_single_related_docs_list_margin_left_layout_8_9',
11523 + 'label' => __( 'Left', 'betterdocs' ),
11524 + 'priority' => 163,
11525 + 'input_attrs' => [
11526 + 'class' => 'betterdocs_doc_single_related_docs_list_margin_layout_8_9 betterdocs-dimension'
11527 + ]
11528 + ]
11529 + )
11530 + );
11531 + }
3985 11532 }