PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.3
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.3
4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 All 201 releases
← All changes | includes/Admin/Customizer/Sections/ArchivePage.php +4314 -1229 3.4.2 → 4.9.3 View file →
@@ -1,7 +1,8 @@
1 1 <?php
2 2
3 3 namespace WPDeveloper\BetterDocs\Admin\Customizer\Sections;
4 +
4 5 use WP_Customize_Media_Control;
5 6 use WP_Customize_Control;
6 7 use WP_Customize_Image_Control;
7 8 use WPDeveloper\BetterDocs\Admin\Customizer\Customizer;
@@ -6,8 +7,9 @@
6 7 use WP_Customize_Image_Control;
7 8 use WPDeveloper\BetterDocs\Admin\Customizer\Customizer;
8 9 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\TitleControl;
9 10 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\SelectControl;
11 +use WPDeveloper\BetterDocs\Admin\Customizer\Controls\ToggleControl;
10 12 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\DimensionControl;
11 13 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\SeparatorControl;
12 14 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\AlphaColorControl;
13 15 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\RadioImageControl;
@@ -13,1391 +15,4474 @@
13 15 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\RadioImageControl;
14 16 use WPDeveloper\BetterDocs\Admin\Customizer\Controls\RangeValueControl;
15 17
16 18 class ArchivePage extends Section {
17 - /**
18 - * Section Priority
19 - * @var int
20 - */
21 - protected $priority = 400;
19 + /**
20 + * Section Priority
21 + * @var int
22 + */
23 + protected $priority = 400;
22 24
23 - /**
24 - * Get the section id.
25 - * @return string
26 - */
27 - public function get_id() {
28 - return 'betterdocs_archive_page_settings';
29 - }
25 + /**
26 + * Get the section id.
27 + * @return string
28 + */
29 + public function get_id() {
30 + return 'betterdocs_archive_page_settings';
31 + }
30 32
31 - /**
32 - * Get the title of the section.
33 - * @return string
34 - */
35 - public function get_title() {
36 - return __( 'Category Archive', 'betterdocs' );
37 - }
33 + /**
34 + * Get the title of the section.
35 + * @return string
36 + */
37 + public function get_title() {
38 + return __( 'Category Archive', 'betterdocs' );
39 + }
38 40
39 - public function layout_select() {
40 - $this->customizer->add_setting( 'betterdocs_archive_layout_select', [
41 - 'default' => $this->defaults['betterdocs_archive_layout_select'],
42 - 'capability' => 'edit_theme_options',
43 - 'sanitize_callback' => [$this->sanitizer, 'select']
44 - ] );
41 + public function layout_select() {
42 + $this->customizer->add_setting(
43 + 'betterdocs_archive_layout_select',
44 + [
45 + 'default' => $this->defaults['betterdocs_archive_layout_select'],
46 + 'capability' => 'edit_theme_options',
47 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
48 + ]
49 + );
45 50
46 - $this->customizer->add_control(
47 - new RadioImageControl(
48 - $this->customizer,
49 - 'betterdocs_archive_layout_select',
50 - [
51 - 'type' => 'betterdocs-radio-image',
52 - 'settings' => 'betterdocs_archive_layout_select',
53 - 'section' => 'betterdocs_archive_page_settings',
54 - 'label' => __( 'Select Category Archive Layout', 'betterdocs' ),
55 - 'choices' => apply_filters( 'betterdocs_archive_layout_choices', [
56 - 'layout-1' => [
57 - 'label' => __( 'Classic Layout', 'betterdocs' ),
58 - 'image' => $this->assets->icon( 'customizer/archive/layout-1.png', true )
59 - ],
60 - 'layout-4' => [
61 - 'label' => __( 'Abstract Layout', 'betterdocs' ),
62 - 'image' => $this->assets->icon( 'customizer/archive/layout-4.png', true )
63 - ],
64 - 'layout-5' => [
65 - 'label' => __( 'Modern Layout', 'betterdocs' ),
66 - 'image' => $this->assets->icon( 'customizer/archive/layout-5.png', true )
67 - ],
68 - 'layout-2' => [
69 - 'label' => __( 'Memphis Layout', 'betterdocs' ),
70 - 'image' => $this->assets->icon( 'customizer/archive/layout-2.png', true ),
71 - 'pro' => true,
72 - 'url' => 'https://betterdocs.co/upgrade'
73 - ],
74 - 'layout-3' => [
75 - 'label' => __( 'Neoclassic Layout', 'betterdocs' ),
76 - 'image' => $this->assets->icon( 'customizer/archive/layout-3.png', true ),
77 - 'pro' => true,
78 - 'url' => 'https://betterdocs.co/upgrade'
79 - ],
80 - 'layout-6' => [
81 - 'label' => __( 'Handbook Layout', 'betterdocs' ),
82 - 'image' => $this->assets->icon( 'customizer/archive/layout-6.png', true ),
83 - 'pro' => true,
84 - 'url' => 'https://betterdocs.co/upgrade'
85 - ]
86 - ] )
87 - ]
88 - )
89 - );
90 - }
51 + $this->customizer->add_control(
52 + new RadioImageControl(
53 + $this->customizer,
54 + 'betterdocs_archive_layout_select',
55 + [
56 + 'type' => 'betterdocs-radio-image',
57 + 'settings' => 'betterdocs_archive_layout_select',
58 + 'section' => 'betterdocs_archive_page_settings',
59 + 'label' => __( 'Select Category Archive Layout', 'betterdocs' ),
60 + 'choices' => apply_filters(
61 + 'betterdocs_archive_layout_choices',
62 + [
63 + 'layout-7' => [
64 + 'label' => __( 'Sleek Layout', 'betterdocs' ),
65 + 'image' => $this->assets->icon( 'customizer/archive/layout-7.png', true )
66 + ],
67 + 'layout-1' => [
68 + 'label' => __( 'Classic Layout', 'betterdocs' ),
69 + 'image' => $this->assets->icon( 'customizer/archive/layout-1.png', true )
70 + ],
71 + 'layout-8' => [
72 + 'label' => __( 'Slate Layout', 'betterdocs' ),
73 + 'image' => $this->assets->icon( 'customizer/archive/layout-8.png', true )
74 + ],
75 + 'layout-4' => [
76 + 'label' => __( 'Abstract Layout', 'betterdocs' ),
77 + 'image' => $this->assets->icon( 'customizer/archive/layout-4.png', true )
78 + ],
79 + 'layout-5' => [
80 + 'label' => __( 'Modern Layout', 'betterdocs' ),
81 + 'image' => $this->assets->icon( 'customizer/archive/layout-5.png', true )
82 + ],
83 + 'layout-2' => [
84 + 'label' => __( 'Memphis Layout', 'betterdocs' ),
85 + 'image' => $this->assets->icon( 'customizer/archive/layout-2.png', true ),
86 + 'pro' => true,
87 + 'url' => 'https://betterdocs.co/upgrade'
88 + ],
89 + 'layout-3' => [
90 + 'label' => __( 'Neoclassic Layout', 'betterdocs' ),
91 + 'image' => $this->assets->icon( 'customizer/archive/layout-3.png', true ),
92 + 'pro' => true,
93 + 'url' => 'https://betterdocs.co/upgrade'
94 + ],
95 + 'layout-6' => [
96 + 'label' => __( 'Handbook Layout', 'betterdocs' ),
97 + 'image' => $this->assets->icon( 'customizer/archive/layout-6.png', true ),
98 + 'pro' => true,
99 + 'url' => 'https://betterdocs.co/upgrade'
100 + ],
101 + ]
102 + )
103 + ]
104 + )
105 + );
106 + }
91 107
92 - public function background_color() {
93 - $this->customizer->add_setting( 'betterdocs_archive_page_background_color', [
94 - 'default' => $this->defaults['betterdocs_archive_page_background_color'],
95 - 'capability' => 'edit_theme_options',
96 - 'transport' => 'postMessage',
97 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
98 - ] );
108 + public function background_color() {
109 + $this->customizer->add_setting(
110 + 'betterdocs_archive_page_background_color',
111 + [
112 + 'default' => $this->defaults['betterdocs_archive_page_background_color'],
113 + 'capability' => 'edit_theme_options',
114 + 'transport' => 'postMessage',
115 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
116 + ]
117 + );
99 118
100 - $this->customizer->add_control(
101 - new AlphaColorControl(
102 - $this->customizer,
103 - 'betterdocs_archive_page_background_color',
104 - [
105 - 'label' => __( 'Page Background Color', 'betterdocs' ),
106 - 'section' => 'betterdocs_archive_page_settings',
107 - 'settings' => 'betterdocs_archive_page_background_color'
108 - ]
109 - )
110 - );
111 - }
119 + $this->customizer->add_control(
120 + new AlphaColorControl(
121 + $this->customizer,
122 + 'betterdocs_archive_page_background_color',
123 + [
124 + 'label' => __( 'Page Background Color', 'betterdocs' ),
125 + 'section' => 'betterdocs_archive_page_settings',
126 + 'settings' => 'betterdocs_archive_page_background_color'
127 + ]
128 + )
129 + );
130 + }
112 131
113 - public function background_image() {
114 - $this->customizer->add_setting( 'betterdocs_archive_page_background_image', [
115 - 'default' => $this->defaults['betterdocs_archive_page_background_image'],
116 - 'capability' => 'edit_theme_options',
117 - 'transport' => 'postMessage'
132 + public function background_image() {
133 + $this->customizer->add_setting(
134 + 'betterdocs_archive_page_background_image',
135 + [
136 + 'default' => $this->defaults['betterdocs_archive_page_background_image'],
137 + 'capability' => 'edit_theme_options',
138 + 'transport' => 'postMessage'
118 139
119 - ] );
140 + ]
141 + );
120 142
121 - $this->customizer->add_control( new WP_Customize_Image_Control(
122 - $this->customizer, 'betterdocs_archive_page_background_image', [
123 - 'section' => 'betterdocs_archive_page_settings',
124 - 'settings' => 'betterdocs_archive_page_background_image',
125 - 'label' => __( 'Background Image', 'betterdocs' )
126 - ] )
127 - );
128 - }
143 + $this->customizer->add_control(
144 + new WP_Customize_Image_Control(
145 + $this->customizer,
146 + 'betterdocs_archive_page_background_image',
147 + [
148 + 'section' => 'betterdocs_archive_page_settings',
149 + 'settings' => 'betterdocs_archive_page_background_image',
150 + 'label' => __( 'Background Image', 'betterdocs' )
151 + ]
152 + )
153 + );
154 + }
129 155
130 - public function background_properties() {
131 - $this->customizer->add_setting( 'betterdocs_archive_page_background_property', [
132 - 'default' => $this->defaults['betterdocs_archive_page_background_property'],
133 - 'capability' => 'edit_theme_options',
134 - 'transport' => 'postMessage',
135 - 'sanitize_callback' => [$this->sanitizer, 'select']
136 - ] );
156 + public function background_properties() {
157 + $this->customizer->add_setting(
158 + 'betterdocs_archive_page_background_property',
159 + [
160 + 'default' => $this->defaults['betterdocs_archive_page_background_property'],
161 + 'capability' => 'edit_theme_options',
162 + 'transport' => 'postMessage',
163 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
164 + ]
165 + );
137 166
138 - $this->customizer->add_control( new TitleControl(
139 - $this->customizer, 'betterdocs_archive_page_background_property', [
140 - 'type' => 'betterdocs-title',
141 - 'section' => 'betterdocs_archive_page_settings',
142 - 'settings' => 'betterdocs_archive_page_background_property',
143 - 'label' => __( 'Background Property', 'betterdocs' ),
144 - 'input_attrs' => [
145 - 'id' => 'betterdocs_archive_page_background_property',
146 - 'class' => 'betterdocs-select'
147 - ]
148 - ] )
149 - );
167 + $this->customizer->add_control(
168 + new TitleControl(
169 + $this->customizer,
170 + 'betterdocs_archive_page_background_property',
171 + [
172 + 'type' => 'betterdocs-title',
173 + 'section' => 'betterdocs_archive_page_settings',
174 + 'settings' => 'betterdocs_archive_page_background_property',
175 + 'label' => __( 'Background Property', 'betterdocs' ),
176 + 'input_attrs' => [
177 + 'id' => 'betterdocs_archive_page_background_property',
178 + 'class' => 'betterdocs-select'
179 + ]
180 + ]
181 + )
182 + );
150 183
151 - $this->customizer->add_setting( 'betterdocs_archive_page_background_size', [
152 - 'default' => $this->defaults['betterdocs_archive_page_background_size'],
153 - 'capability' => 'edit_theme_options',
154 - 'transport' => 'postMessage',
155 - 'sanitize_callback' => [$this->sanitizer, 'select']
184 + $this->customizer->add_setting(
185 + 'betterdocs_archive_page_background_size',
186 + [
187 + 'default' => $this->defaults['betterdocs_archive_page_background_size'],
188 + 'capability' => 'edit_theme_options',
189 + 'transport' => 'postMessage',
190 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
156 191
157 - ] );
192 + ]
193 + );
158 194
159 - $this->customizer->add_control( new SelectControl(
160 - $this->customizer, 'betterdocs_archive_page_background_size', [
161 - 'type' => 'betterdocs-select',
162 - 'section' => 'betterdocs_archive_page_settings',
163 - 'settings' => 'betterdocs_archive_page_background_size',
164 - 'label' => __( 'Size', 'betterdocs' ),
165 - 'input_attrs' => [
166 - 'class' => 'betterdocs_archive_page_background_property betterdocs-select'
167 - ],
168 - 'choices' => [
169 - 'auto' => __( 'auto', 'betterdocs' ),
170 - 'length' => __( 'length', 'betterdocs' ),
171 - 'cover' => __( 'cover', 'betterdocs' ),
172 - 'contain' => __( 'contain', 'betterdocs' ),
173 - 'initial' => __( 'initial', 'betterdocs' ),
174 - 'inherit' => __( 'inherit', 'betterdocs' )
175 - ]
176 - ] )
177 - );
195 + $this->customizer->add_control(
196 + new SelectControl(
197 + $this->customizer,
198 + 'betterdocs_archive_page_background_size',
199 + [
200 + 'type' => 'betterdocs-select',
201 + 'section' => 'betterdocs_archive_page_settings',
202 + 'settings' => 'betterdocs_archive_page_background_size',
203 + 'label' => __( 'Size', 'betterdocs' ),
204 + 'input_attrs' => [
205 + 'class' => 'betterdocs_archive_page_background_property betterdocs-select'
206 + ],
207 + 'choices' => [
208 + 'auto' => __( 'auto', 'betterdocs' ),
209 + 'length' => __( 'length', 'betterdocs' ),
210 + 'cover' => __( 'cover', 'betterdocs' ),
211 + 'contain' => __( 'contain', 'betterdocs' ),
212 + 'initial' => __( 'initial', 'betterdocs' ),
213 + 'inherit' => __( 'inherit', 'betterdocs' )
214 + ]
215 + ]
216 + )
217 + );
178 218
179 - $this->customizer->add_setting( 'betterdocs_archive_page_background_repeat', [
180 - 'default' => $this->defaults['betterdocs_archive_page_background_repeat'],
181 - 'capability' => 'edit_theme_options',
182 - 'transport' => 'postMessage',
183 - 'sanitize_callback' => [$this->sanitizer, 'select']
219 + $this->customizer->add_setting(
220 + 'betterdocs_archive_page_background_repeat',
221 + [
222 + 'default' => $this->defaults['betterdocs_archive_page_background_repeat'],
223 + 'capability' => 'edit_theme_options',
224 + 'transport' => 'postMessage',
225 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
184 226
185 - ] );
227 + ]
228 + );
186 229
187 - $this->customizer->add_control( new SelectControl(
188 - $this->customizer, 'betterdocs_archive_page_background_repeat', [
189 - 'type' => 'betterdocs-select',
190 - 'section' => 'betterdocs_archive_page_settings',
191 - 'settings' => 'betterdocs_archive_page_background_repeat',
192 - 'label' => __( 'Repeat', 'betterdocs' ),
193 - 'input_attrs' => [
194 - 'class' => 'betterdocs_archive_page_background_property betterdocs-select'
195 - ],
196 - 'choices' => [
197 - 'no-repeat' => __( 'no-repeat', 'betterdocs' ),
198 - 'initial' => __( 'initial', 'betterdocs' ),
199 - 'inherit' => __( 'inherit', 'betterdocs' ),
200 - 'repeat' => __( 'repeat', 'betterdocs' ),
201 - 'repeat-x' => __( 'repeat-x', 'betterdocs' ),
202 - 'repeat-y' => __( 'repeat-y', 'betterdocs' )
203 - ]
204 - ] )
205 - );
230 + $this->customizer->add_control(
231 + new SelectControl(
232 + $this->customizer,
233 + 'betterdocs_archive_page_background_repeat',
234 + [
235 + 'type' => 'betterdocs-select',
236 + 'section' => 'betterdocs_archive_page_settings',
237 + 'settings' => 'betterdocs_archive_page_background_repeat',
238 + 'label' => __( 'Repeat', 'betterdocs' ),
239 + 'input_attrs' => [
240 + 'class' => 'betterdocs_archive_page_background_property betterdocs-select'
241 + ],
242 + 'choices' => [
243 + 'no-repeat' => __( 'no-repeat', 'betterdocs' ),
244 + 'initial' => __( 'initial', 'betterdocs' ),
245 + 'inherit' => __( 'inherit', 'betterdocs' ),
246 + 'repeat' => __( 'repeat', 'betterdocs' ),
247 + 'repeat-x' => __( 'repeat-x', 'betterdocs' ),
248 + 'repeat-y' => __( 'repeat-y', 'betterdocs' )
249 + ]
250 + ]
251 + )
252 + );
206 253
207 - $this->customizer->add_setting( 'betterdocs_archive_page_background_attachment', [
208 - 'default' => $this->defaults['betterdocs_archive_page_background_attachment'],
209 - 'capability' => 'edit_theme_options',
210 - 'transport' => 'postMessage',
211 - 'sanitize_callback' => [$this->sanitizer, 'select']
254 + $this->customizer->add_setting(
255 + 'betterdocs_archive_page_background_attachment',
256 + [
257 + 'default' => $this->defaults['betterdocs_archive_page_background_attachment'],
258 + 'capability' => 'edit_theme_options',
259 + 'transport' => 'postMessage',
260 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
212 261
213 - ] );
262 + ]
263 + );
214 264
215 - $this->customizer->add_control( new SelectControl(
216 - $this->customizer, 'betterdocs_archive_page_background_attachment', [
217 - 'type' => 'betterdocs-select',
218 - 'section' => 'betterdocs_archive_page_settings',
219 - 'settings' => 'betterdocs_archive_page_background_attachment',
220 - 'label' => __( 'Attachment', 'betterdocs' ),
221 - 'input_attrs' => [
222 - 'class' => 'betterdocs_archive_page_background_property betterdocs-select'
223 - ],
224 - 'choices' => [
225 - 'initial' => __( 'initial', 'betterdocs' ),
226 - 'inherit' => __( 'inherit', 'betterdocs' ),
227 - 'scroll' => __( 'scroll', 'betterdocs' ),
228 - 'fixed' => __( 'fixed', 'betterdocs' ),
229 - 'local' => __( 'local', 'betterdocs' )
230 - ]
231 - ] )
232 - );
265 + $this->customizer->add_control(
266 + new SelectControl(
267 + $this->customizer,
268 + 'betterdocs_archive_page_background_attachment',
269 + [
270 + 'type' => 'betterdocs-select',
271 + 'section' => 'betterdocs_archive_page_settings',
272 + 'settings' => 'betterdocs_archive_page_background_attachment',
273 + 'label' => __( 'Attachment', 'betterdocs' ),
274 + 'input_attrs' => [
275 + 'class' => 'betterdocs_archive_page_background_property betterdocs-select'
276 + ],
277 + 'choices' => [
278 + 'initial' => __( 'initial', 'betterdocs' ),
279 + 'inherit' => __( 'inherit', 'betterdocs' ),
280 + 'scroll' => __( 'scroll', 'betterdocs' ),
281 + 'fixed' => __( 'fixed', 'betterdocs' ),
282 + 'local' => __( 'local', 'betterdocs' )
283 + ]
284 + ]
285 + )
286 + );
233 287
234 - $this->customizer->add_setting( 'betterdocs_archive_page_background_position', [
235 - 'default' => $this->defaults['betterdocs_archive_page_background_position'],
236 - 'capability' => 'edit_theme_options',
237 - 'transport' => 'postMessage',
238 - 'sanitize_callback' => 'esc_html'
288 + $this->customizer->add_setting(
289 + 'betterdocs_archive_page_background_position',
290 + [
291 + 'default' => $this->defaults['betterdocs_archive_page_background_position'],
292 + 'capability' => 'edit_theme_options',
293 + 'transport' => 'postMessage',
294 + 'sanitize_callback' => 'esc_html'
239 295
240 - ] );
296 + ]
297 + );
241 298
242 - $this->customizer->add_control( new SelectControl(
243 - $this->customizer, 'betterdocs_archive_page_background_position', [
244 - 'type' => 'betterdocs-select',
245 - 'section' => 'betterdocs_archive_page_settings',
246 - 'settings' => 'betterdocs_archive_page_background_position',
247 - 'label' => __( 'Position', 'betterdocs' ),
248 - 'input_attrs' => [
249 - 'class' => 'betterdocs_archive_page_background_property betterdocs-select'
250 - ],
251 - 'choices' => [
252 - 'left top' => __( 'left top', 'betterdocs' ),
253 - 'left center' => __( 'left center', 'betterdocs' ),
254 - 'left bottom' => __( 'left bottom', 'betterdocs' ),
255 - 'right top' => __( 'right top', 'betterdocs' ),
256 - 'right center' => __( 'right center', 'betterdocs' ),
257 - 'right bottom' => __( 'right bottom', 'betterdocs' ),
258 - 'center top' => __( 'center top', 'betterdocs' ),
259 - 'center center' => __( 'center center', 'betterdocs' ),
260 - 'center bottom' => __( 'center bottom', 'betterdocs' )
261 - ]
262 - ] )
263 - );
264 - }
299 + $this->customizer->add_control(
300 + new SelectControl(
301 + $this->customizer,
302 + 'betterdocs_archive_page_background_position',
303 + [
304 + 'type' => 'betterdocs-select',
305 + 'section' => 'betterdocs_archive_page_settings',
306 + 'settings' => 'betterdocs_archive_page_background_position',
307 + 'label' => __( 'Position', 'betterdocs' ),
308 + 'input_attrs' => [
309 + 'class' => 'betterdocs_archive_page_background_property betterdocs-select'
310 + ],
311 + 'choices' => [
312 + 'left top' => __( 'left top', 'betterdocs' ),
313 + 'left center' => __( 'left center', 'betterdocs' ),
314 + 'left bottom' => __( 'left bottom', 'betterdocs' ),
315 + 'right top' => __( 'right top', 'betterdocs' ),
316 + 'right center' => __( 'right center', 'betterdocs' ),
317 + 'right bottom' => __( 'right bottom', 'betterdocs' ),
318 + 'center top' => __( 'center top', 'betterdocs' ),
319 + 'center center' => __( 'center center', 'betterdocs' ),
320 + 'center bottom' => __( 'center bottom', 'betterdocs' )
321 + ]
322 + ]
323 + )
324 + );
325 + }
265 326
266 - public function content_area_width() {
267 - $this->customizer->add_setting( 'betterdocs_archive_content_area_width', [
268 - 'default' => $this->defaults['betterdocs_archive_content_area_width'],
269 - 'capability' => 'edit_theme_options',
270 - 'transport' => 'postMessage',
271 - 'sanitize_callback' => [$this->sanitizer, 'integer']
272 - ] );
327 + public function content_area_width() {
328 + $this->customizer->add_setting(
329 + 'betterdocs_archive_content_area_width',
330 + [
331 + 'default' => $this->defaults['betterdocs_archive_content_area_width'],
332 + 'capability' => 'edit_theme_options',
333 + 'transport' => 'postMessage',
334 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
335 + ]
336 + );
273 337
274 - $this->customizer->add_control( new RangeValueControl(
275 - $this->customizer, 'betterdocs_archive_content_area_width', [
276 - 'type' => 'betterdocs-range-value',
277 - 'section' => 'betterdocs_archive_page_settings',
278 - 'settings' => 'betterdocs_archive_content_area_width',
279 - 'label' => __( 'Category Archive Width', 'betterdocs' ), //Renamed From 'Content Area Width' to 'Category Archive Width' @since betterdocs revamp version
280 - 'input_attrs' => [
281 - 'min' => 0,
282 - 'max' => 100,
283 - 'step' => 1,
284 - 'suffix' => '%' //optional suffix
285 - ]
286 - ]
287 - ) );
288 - }
338 + $this->customizer->add_control(
339 + new RangeValueControl(
340 + $this->customizer,
341 + 'betterdocs_archive_content_area_width',
342 + [
343 + 'type' => 'betterdocs-range-value',
344 + 'section' => 'betterdocs_archive_page_settings',
345 + 'settings' => 'betterdocs_archive_content_area_width',
346 + 'label' => __( 'Category Archive Width', 'betterdocs' ), //Renamed From 'Content Area Width' to 'Category Archive Width' @since betterdocs revamp version
347 + 'input_attrs' => [
348 + 'min' => 0,
349 + 'max' => 100,
350 + 'step' => 1,
351 + 'suffix' => '%' //optional suffix
352 + ]
353 + ]
354 + )
355 + );
356 + }
289 357
290 - public function content_area_max_width() {
291 - $this->customizer->add_setting( 'betterdocs_archive_content_area_max_width', [
292 - 'default' => $this->defaults['betterdocs_archive_content_area_max_width'],
293 - 'capability' => 'edit_theme_options',
294 - 'transport' => 'postMessage',
295 - 'sanitize_callback' => [$this->sanitizer, 'integer']
296 - ] );
358 + public function content_area_max_width() {
359 + $this->customizer->add_setting(
360 + 'betterdocs_archive_content_area_max_width',
361 + [
362 + 'default' => $this->defaults['betterdocs_archive_content_area_max_width'],
363 + 'capability' => 'edit_theme_options',
364 + 'transport' => 'postMessage',
365 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
366 + ]
367 + );
297 368
298 - $this->customizer->add_control( new RangeValueControl(
299 - $this->customizer, 'betterdocs_archive_content_area_max_width', [
300 - 'type' => 'betterdocs-range-value',
301 - 'section' => 'betterdocs_archive_page_settings',
302 - 'settings' => 'betterdocs_archive_content_area_max_width',
303 - 'label' => __( 'Category Archive Maximum Width', 'betterdocs' ), //Renamed From 'Content Area Maximum Width' to 'Category Archive Maximum Width' @since betterdocs revamp version
304 - 'input_attrs' => [
305 - 'min' => 0,
306 - 'max' => 3000,
307 - 'step' => 1,
308 - 'suffix' => 'px' //optional suffix
309 - ]
310 - ]
311 - ) );
312 - }
369 + $this->customizer->add_control(
370 + new RangeValueControl(
371 + $this->customizer,
372 + 'betterdocs_archive_content_area_max_width',
373 + [
374 + 'type' => 'betterdocs-range-value',
375 + 'section' => 'betterdocs_archive_page_settings',
376 + 'settings' => 'betterdocs_archive_content_area_max_width',
377 + 'label' => __( 'Category Archive Maximum Width', 'betterdocs' ), //Renamed From 'Content Area Maximum Width' to 'Category Archive Maximum Width' @since betterdocs revamp version
378 + 'input_attrs' => [
379 + 'min' => 0,
380 + 'max' => 3000,
381 + 'step' => 1,
382 + 'suffix' => 'px' //optional suffix
383 + ]
384 + ]
385 + )
386 + );
387 + }
313 388
314 - /**
315 - * Since Betterdocs Revamped Version
316 - */
317 - public function category_archive_padding() {
318 - $this->customizer->add_setting( 'category_archive_padding', [
319 - 'default' => $this->defaults['category_archive_padding'],
320 - 'capability' => 'edit_theme_options',
321 - 'transport' => 'postMessage',
322 - 'sanitize_callback' => [$this->sanitizer, 'integer']
389 + /**
390 + * Since Betterdocs Revamped Version
391 + */
392 + public function category_archive_padding() {
393 + $this->customizer->add_setting(
394 + 'category_archive_padding',
395 + [
396 + 'default' => $this->defaults['category_archive_padding'],
397 + 'capability' => 'edit_theme_options',
398 + 'transport' => 'postMessage',
399 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
323 400
324 - ] );
401 + ]
402 + );
325 403
326 - $this->customizer->add_control( new TitleControl(
327 - $this->customizer, 'category_archive_padding', [
328 - 'type' => 'betterdocs-title',
329 - 'section' => 'betterdocs_archive_page_settings',
330 - 'settings' => 'category_archive_padding',
331 - 'label' => __( 'Category Archive Padding', 'betterdocs' ),
332 - 'input_attrs' => [
333 - 'id' => 'category_archive_padding',
334 - 'class' => 'betterdocs-dimension'
335 - ]
336 - ] )
337 - );
404 + $this->customizer->add_control(
405 + new TitleControl(
406 + $this->customizer,
407 + 'category_archive_padding',
408 + [
409 + 'type' => 'betterdocs-title',
410 + 'section' => 'betterdocs_archive_page_settings',
411 + 'settings' => 'category_archive_padding',
412 + 'label' => __( 'Category Archive Padding', 'betterdocs' ),
413 + 'input_attrs' => [
414 + 'id' => 'category_archive_padding',
415 + 'class' => 'betterdocs-dimension'
416 + ]
417 + ]
418 + )
419 + );
338 420
339 - $this->customizer->add_setting( 'category_archive_padding_top', [
340 - 'default' => $this->defaults['category_archive_padding_top'],
341 - 'capability' => 'edit_theme_options',
342 - 'transport' => 'postMessage',
343 - 'sanitize_callback' => [$this->sanitizer, 'integer']
344 - ] );
421 + $this->customizer->add_setting(
422 + 'category_archive_padding_top',
423 + [
424 + 'default' => $this->defaults['category_archive_padding_top'],
425 + 'capability' => 'edit_theme_options',
426 + 'transport' => 'postMessage',
427 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
428 + ]
429 + );
345 430
346 - $this->customizer->add_control( new DimensionControl(
347 - $this->customizer, 'category_archive_padding_top', [
348 - 'type' => 'betterdocs-dimension',
349 - 'section' => 'betterdocs_archive_page_settings',
350 - 'settings' => 'category_archive_padding_top',
351 - 'label' => __( 'Top', 'betterdocs' ),
352 - 'input_attrs' => [
353 - 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
354 - ]
355 - ] )
356 - );
431 + $this->customizer->add_control(
432 + new DimensionControl(
433 + $this->customizer,
434 + 'category_archive_padding_top',
435 + [
436 + 'type' => 'betterdocs-dimension',
437 + 'section' => 'betterdocs_archive_page_settings',
438 + 'settings' => 'category_archive_padding_top',
439 + 'label' => __( 'Top', 'betterdocs' ),
440 + 'input_attrs' => [
441 + 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
442 + ]
443 + ]
444 + )
445 + );
357 446
358 - $this->customizer->add_setting( 'category_archive_padding_right', [
359 - 'default' => $this->defaults['category_archive_padding_right'],
360 - 'capability' => 'edit_theme_options',
361 - 'transport' => 'postMessage',
362 - 'sanitize_callback' => [$this->sanitizer, 'integer']
447 + $this->customizer->add_setting(
448 + 'category_archive_padding_right',
449 + [
450 + 'default' => $this->defaults['category_archive_padding_right'],
451 + 'capability' => 'edit_theme_options',
452 + 'transport' => 'postMessage',
453 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
363 454
364 - ] );
455 + ]
456 + );
365 457
366 - $this->customizer->add_control( new DimensionControl(
367 - $this->customizer, 'category_archive_padding_right', [
368 - 'type' => 'betterdocs-dimension',
369 - 'section' => 'betterdocs_archive_page_settings',
370 - 'settings' => 'category_archive_padding_right',
371 - 'label' => __( 'Right', 'betterdocs' ),
372 - 'input_attrs' => [
373 - 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
374 - ]
375 - ] )
376 - );
458 + $this->customizer->add_control(
459 + new DimensionControl(
460 + $this->customizer,
461 + 'category_archive_padding_right',
462 + [
463 + 'type' => 'betterdocs-dimension',
464 + 'section' => 'betterdocs_archive_page_settings',
465 + 'settings' => 'category_archive_padding_right',
466 + 'label' => __( 'Right', 'betterdocs' ),
467 + 'input_attrs' => [
468 + 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
469 + ]
470 + ]
471 + )
472 + );
377 473
378 - $this->customizer->add_setting( 'category_archive_padding_bottom', [
379 - 'default' => $this->defaults['category_archive_padding_bottom'],
380 - 'capability' => 'edit_theme_options',
381 - 'transport' => 'postMessage',
382 - 'sanitize_callback' => [$this->sanitizer, 'integer']
474 + $this->customizer->add_setting(
475 + 'category_archive_padding_bottom',
476 + [
477 + 'default' => $this->defaults['category_archive_padding_bottom'],
478 + 'capability' => 'edit_theme_options',
479 + 'transport' => 'postMessage',
480 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
383 481
384 - ] );
482 + ]
483 + );
385 484
386 - $this->customizer->add_control( new DimensionControl(
387 - $this->customizer, 'category_archive_padding_bottom', [
388 - 'type' => 'betterdocs-dimension',
389 - 'section' => 'betterdocs_archive_page_settings',
390 - 'settings' => 'category_archive_padding_bottom',
391 - 'label' => __( 'Bottom', 'betterdocs' ),
392 - 'input_attrs' => [
393 - 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
394 - ]
395 - ] )
396 - );
485 + $this->customizer->add_control(
486 + new DimensionControl(
487 + $this->customizer,
488 + 'category_archive_padding_bottom',
489 + [
490 + 'type' => 'betterdocs-dimension',
491 + 'section' => 'betterdocs_archive_page_settings',
492 + 'settings' => 'category_archive_padding_bottom',
493 + 'label' => __( 'Bottom', 'betterdocs' ),
494 + 'input_attrs' => [
495 + 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
496 + ]
497 + ]
498 + )
499 + );
397 500
398 - $this->customizer->add_setting( 'category_archive_padding_left', [
399 - 'default' => $this->defaults['category_archive_padding_left'],
400 - 'capability' => 'edit_theme_options',
401 - 'transport' => 'postMessage',
402 - 'sanitize_callback' => [$this->sanitizer, 'integer']
501 + $this->customizer->add_setting(
502 + 'category_archive_padding_left',
503 + [
504 + 'default' => $this->defaults['category_archive_padding_left'],
505 + 'capability' => 'edit_theme_options',
506 + 'transport' => 'postMessage',
507 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
403 508
404 - ] );
509 + ]
510 + );
405 511
406 - $this->customizer->add_control( new DimensionControl(
407 - $this->customizer, 'category_archive_padding_left', [
408 - 'type' => 'betterdocs-dimension',
409 - 'section' => 'betterdocs_archive_page_settings',
410 - 'settings' => 'category_archive_padding_left',
411 - 'label' => __( 'Left', 'betterdocs' ),
412 - 'input_attrs' => [
413 - 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
414 - ]
415 - ] )
416 - );
417 - }
512 + $this->customizer->add_control(
513 + new DimensionControl(
514 + $this->customizer,
515 + 'category_archive_padding_left',
516 + [
517 + 'type' => 'betterdocs-dimension',
518 + 'section' => 'betterdocs_archive_page_settings',
519 + 'settings' => 'category_archive_padding_left',
520 + 'label' => __( 'Left', 'betterdocs' ),
521 + 'input_attrs' => [
522 + 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
523 + ]
524 + ]
525 + )
526 + );
527 + }
418 528
419 - public function content_area_settings() {
420 - $this->customizer->add_setting( 'betterdocs_archive_content_area_settings', [
421 - 'default' => $this->defaults['betterdocs_archive_content_area_settings'],
422 - 'sanitize_callback' => 'esc_html'
423 - ] );
529 + public function archive_search_wrapper() {
530 + $this->customizer->add_setting(
531 + 'archive_search_wrapper',
532 + [
533 + 'default' => $this->defaults['archive_search_wrapper'],
534 + 'sanitize_callback' => 'esc_html'
535 + ]
536 + );
424 537
425 - $this->customizer->add_control( new SeparatorControl(
426 - $this->customizer, 'betterdocs_archive_content_area_settings', [
427 - 'label' => __( 'Content Area', 'betterdocs' ),
428 - 'settings' => 'betterdocs_archive_content_area_settings',
429 - 'section' => 'betterdocs_archive_page_settings'
430 - ] )
431 - );
432 - }
538 + $this->customizer->add_control(
539 + new SeparatorControl(
540 + $this->customizer,
541 + 'archive_search_wrapper',
542 + [
543 + 'label' => __( 'Search', 'betterdocs' ),
544 + 'settings' => 'archive_search_wrapper',
545 + 'section' => 'betterdocs_archive_page_settings'
546 + ]
547 + )
548 + );
549 + }
433 550
434 - public function content_background_color() {
435 - $this->customizer->add_setting( 'betterdocs_archive_content_background_color', [
436 - 'default' => $this->defaults['betterdocs_archive_content_background_color'],
437 - 'capability' => 'edit_theme_options',
438 - 'transport' => 'postMessage',
439 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
440 - ] );
551 + public function archive_search_toogle() {
552 + $this->customizer->add_setting(
553 + 'archive_search_toogle',
554 + [
555 + 'default' => $this->defaults['archive_search_toogle'],
556 + 'capability' => 'edit_theme_options',
557 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
558 + ]
559 + );
441 560
442 - $this->customizer->add_control(
443 - new AlphaColorControl(
444 - $this->customizer,
445 - 'betterdocs_archive_content_background_color',
446 - [
447 - 'label' => __( 'Content Area Background Color', 'betterdocs' ),
448 - 'section' => 'betterdocs_archive_page_settings',
449 - 'settings' => 'betterdocs_archive_content_background_color'
450 - ]
451 - )
452 - );
453 - }
561 + $this->customizer->add_control(
562 + new ToggleControl(
563 + $this->customizer,
564 + 'archive_search_toogle',
565 + [
566 + 'label' => __( 'Enable Search Section', 'betterdocs' ),
567 + 'section' => 'betterdocs_archive_page_settings',
568 + 'settings' => 'archive_search_toogle',
569 + 'type' => 'light', // light, ios, flat
570 + ]
571 + )
572 + );
573 + }
454 574
455 - public function content_margin() {
456 - $this->customizer->add_setting( 'betterdocs_archive_content_margin', [
457 - 'default' => $this->defaults['betterdocs_archive_content_margin'],
458 - 'capability' => 'edit_theme_options',
459 - 'transport' => 'postMessage',
460 - 'sanitize_callback' => [$this->sanitizer, 'integer']
575 + public function archive_search_width() {
576 + $this->customizer->add_setting(
577 + 'archive_search_width',
578 + [
579 + 'default' => $this->defaults['archive_search_width'],
580 + 'capability' => 'edit_theme_options',
581 + 'transport' => 'postMessage',
582 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
583 + ]
584 + );
461 585
462 - ] );
586 + $this->customizer->add_control(
587 + new RangeValueControl(
588 + $this->customizer,
589 + 'archive_search_width',
590 + [
591 + 'type' => 'betterdocs-range-value',
592 + 'section' => 'betterdocs_archive_page_settings',
593 + 'settings' => 'archive_search_width',
594 + 'label' => __( 'Archive Search Width', 'betterdocs' ), //Renamed From 'Content Area Width' to 'Category Archive Width' @since betterdocs revamp version
595 + 'input_attrs' => [
596 + 'min' => 0,
597 + 'max' => 100,
598 + 'step' => 1,
599 + 'suffix' => '%' //optional suffix
600 + ]
601 + ]
602 + )
603 + );
604 + }
463 605
464 - $this->customizer->add_control( new TitleControl(
465 - $this->customizer, 'betterdocs_archive_content_margin', [
466 - 'type' => 'betterdocs-title',
467 - 'section' => 'betterdocs_archive_page_settings',
468 - 'settings' => 'betterdocs_archive_content_margin',
469 - 'label' => __( 'Content Area Margin', 'betterdocs' ),
470 - 'input_attrs' => [
471 - 'id' => 'betterdocs_archive_content_margin',
472 - 'class' => 'betterdocs-dimension'
473 - ]
474 - ] ) );
606 + public function archive_search_max_width() {
607 + $this->customizer->add_setting(
608 + 'archive_search_max_width',
609 + [
610 + 'default' => $this->defaults['archive_search_max_width'],
611 + 'capability' => 'edit_theme_options',
612 + 'transport' => 'postMessage',
613 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
614 + ]
615 + );
475 616
476 - $this->customizer->add_setting( 'betterdocs_archive_content_margin_top', [
477 - 'default' => $this->defaults['betterdocs_archive_content_margin_top'],
478 - 'capability' => 'edit_theme_options',
479 - 'transport' => 'postMessage',
480 - 'sanitize_callback' => [$this->sanitizer, 'integer']
481 - ] );
617 + $this->customizer->add_control(
618 + new RangeValueControl(
619 + $this->customizer,
620 + 'archive_search_max_width',
621 + [
622 + 'type' => 'betterdocs-range-value',
623 + 'section' => 'betterdocs_archive_page_settings',
624 + 'settings' => 'archive_search_max_width',
625 + 'label' => __( 'Category Search Max Width', 'betterdocs' ), //Renamed From 'Content Area Width' to 'Category Archive Width' @since betterdocs revamp version
626 + 'input_attrs' => [
627 + 'min' => 0,
628 + 'max' => 3000,
629 + 'step' => 1,
630 + 'suffix' => 'px' //optional suffix
631 + ]
632 + ]
633 + )
634 + );
635 + }
482 636
483 - $this->customizer->add_control( new DimensionControl(
484 - $this->customizer, 'betterdocs_archive_content_margin_top', [
485 - 'type' => 'betterdocs-dimension',
486 - 'section' => 'betterdocs_archive_page_settings',
487 - 'settings' => 'betterdocs_archive_content_margin_top',
488 - 'label' => __( 'Top', 'betterdocs' ),
489 - 'input_attrs' => [
490 - 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
491 - ]
492 - ] )
493 - );
494 637
495 - $this->customizer->add_setting( 'betterdocs_archive_content_margin_right', [
496 - 'default' => $this->defaults['betterdocs_archive_content_margin_right'],
497 - 'capability' => 'edit_theme_options',
498 - 'transport' => 'postMessage',
499 - 'sanitize_callback' => [$this->sanitizer, 'integer']
638 + public function archive_search_margin() {
639 + $this->customizer->add_setting(
640 + 'archive_search_margin',
641 + [
642 + 'default' => $this->defaults['archive_search_margin'],
643 + 'capability' => 'edit_theme_options',
644 + 'transport' => 'postMessage',
645 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
500 646
501 - ] );
647 + ]
648 + );
502 649
503 - $this->customizer->add_control( new DimensionControl(
504 - $this->customizer, 'betterdocs_archive_content_margin_right', [
505 - 'type' => 'betterdocs-dimension',
506 - 'section' => 'betterdocs_archive_page_settings',
507 - 'settings' => 'betterdocs_archive_content_margin_right',
508 - 'label' => __( 'Right', 'betterdocs' ),
509 - 'input_attrs' => [
510 - 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
511 - ]
512 - ] )
513 - );
650 + $this->customizer->add_control(
651 + new TitleControl(
652 + $this->customizer,
653 + 'archive_search_margin',
654 + [
655 + 'type' => 'betterdocs-title',
656 + 'section' => 'betterdocs_archive_page_settings',
657 + 'settings' => 'archive_search_margin',
658 + 'label' => __( 'Margin', 'betterdocs' ),
659 + 'input_attrs' => [
660 + 'id' => 'archive_search_margin',
661 + 'class' => 'betterdocs-dimension'
662 + ]
663 + ]
664 + )
665 + );
514 666
515 - $this->customizer->add_setting( 'betterdocs_archive_content_margin_bottom', [
516 - 'default' => $this->defaults['betterdocs_archive_content_margin_bottom'],
517 - 'capability' => 'edit_theme_options',
518 - 'transport' => 'postMessage',
519 - 'sanitize_callback' => [$this->sanitizer, 'integer']
667 + $this->customizer->add_setting(
668 + 'archive_search_margin_top',
669 + [
670 + 'default' => $this->defaults['archive_search_margin_top'],
671 + 'capability' => 'edit_theme_options',
672 + 'transport' => 'postMessage',
673 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
674 + ]
675 + );
520 676
521 - ] );
677 + $this->customizer->add_control(
678 + new DimensionControl(
679 + $this->customizer,
680 + 'archive_search_margin_top',
681 + [
682 + 'type' => 'betterdocs-dimension',
683 + 'section' => 'betterdocs_archive_page_settings',
684 + 'settings' => 'archive_search_margin_top',
685 + 'label' => __( 'Top', 'betterdocs' ),
686 + 'input_attrs' => [
687 + 'class' => 'archive_search_margin betterdocs-dimension'
688 + ]
689 + ]
690 + )
691 + );
522 692
523 - $this->customizer->add_control( new DimensionControl(
524 - $this->customizer, 'betterdocs_archive_content_margin_bottom', [
525 - 'type' => 'betterdocs-dimension',
526 - 'section' => 'betterdocs_archive_page_settings',
527 - 'settings' => 'betterdocs_archive_content_margin_bottom',
528 - 'label' => __( 'Bottom', 'betterdocs' ),
529 - 'input_attrs' => [
530 - 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
531 - ]
532 - ] )
533 - );
693 + // $this->customizer->add_setting( 'archive_search_margin_right', [
694 + // 'default' => $this->defaults['archive_search_margin_right'],
695 + // 'capability' => 'edit_theme_options',
696 + // 'transport' => 'postMessage',
697 + // 'sanitize_callback' => [$this->sanitizer, 'integer']
534 698
535 - $this->customizer->add_setting( 'betterdocs_archive_content_margin_left', [
536 - 'default' => $this->defaults['betterdocs_archive_content_margin_left'],
537 - 'capability' => 'edit_theme_options',
538 - 'transport' => 'postMessage',
539 - 'sanitize_callback' => [$this->sanitizer, 'integer']
699 + // ] );
540 700
541 - ] );
701 + // $this->customizer->add_control( new DimensionControl(
702 + // $this->customizer, 'archive_search_margin_right', [
703 + // 'type' => 'betterdocs-dimension',
704 + // 'section' => 'betterdocs_archive_page_settings',
705 + // 'settings' => 'archive_search_margin_right',
706 + // 'label' => __( 'Right', 'betterdocs' ),
707 + // 'input_attrs' => [
708 + // 'class' => 'archive_search_margin betterdocs-dimension'
709 + // ]
710 + // ] )
711 + // );
542 712
543 - $this->customizer->add_control( new DimensionControl(
544 - $this->customizer, 'betterdocs_archive_content_margin_left', [
545 - 'type' => 'betterdocs-dimension',
546 - 'section' => 'betterdocs_archive_page_settings',
547 - 'settings' => 'betterdocs_archive_content_margin_left',
548 - 'label' => __( 'Left', 'betterdocs' ),
549 - 'input_attrs' => [
550 - 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
551 - ]
552 - ] )
553 - );
554 - }
713 + $this->customizer->add_setting(
714 + 'archive_search_margin_bottom',
715 + [
716 + 'default' => $this->defaults['archive_search_margin_bottom'],
717 + 'capability' => 'edit_theme_options',
718 + 'transport' => 'postMessage',
719 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
555 720
556 - public function content_padding() {
557 - $this->customizer->add_setting( 'betterdocs_archive_content_padding', [
558 - 'default' => $this->defaults['betterdocs_archive_content_padding'],
559 - 'capability' => 'edit_theme_options',
560 - 'transport' => 'postMessage',
561 - 'sanitize_callback' => [$this->sanitizer, 'integer']
721 + ]
722 + );
562 723
563 - ] );
724 + $this->customizer->add_control(
725 + new DimensionControl(
726 + $this->customizer,
727 + 'archive_search_margin_bottom',
728 + [
729 + 'type' => 'betterdocs-dimension',
730 + 'section' => 'betterdocs_archive_page_settings',
731 + 'settings' => 'archive_search_margin_bottom',
732 + 'label' => __( 'Bottom', 'betterdocs' ),
733 + 'input_attrs' => [
734 + 'class' => 'archive_search_margin betterdocs-dimension'
735 + ]
736 + ]
737 + )
738 + );
564 739
565 - $this->customizer->add_control( new TitleControl(
566 - $this->customizer, 'betterdocs_archive_content_padding', [
567 - 'type' => 'betterdocs-title',
568 - 'section' => 'betterdocs_archive_page_settings',
569 - 'settings' => 'betterdocs_archive_content_padding',
570 - 'label' => __( 'Content Area Padding', 'betterdocs' ),
571 - 'input_attrs' => [
572 - 'id' => 'betterdocs_archive_content_padding',
573 - 'class' => 'betterdocs-dimension'
574 - ]
575 - ] )
576 - );
740 + // $this->customizer->add_setting( 'archive_search_margin_left', [
741 + // 'default' => $this->defaults['archive_search_margin_left'],
742 + // 'capability' => 'edit_theme_options',
743 + // 'transport' => 'postMessage',
744 + // 'sanitize_callback' => [$this->sanitizer, 'integer']
577 745
578 - $this->customizer->add_setting( 'betterdocs_archive_content_padding_top', [
579 - 'default' => $this->defaults['betterdocs_archive_content_padding_top'],
580 - 'capability' => 'edit_theme_options',
581 - 'transport' => 'postMessage',
582 - 'sanitize_callback' => [$this->sanitizer, 'integer']
583 - ] );
746 + // ] );
584 747
585 - $this->customizer->add_control( new DimensionControl(
586 - $this->customizer, 'betterdocs_archive_content_padding_top', [
587 - 'type' => 'betterdocs-dimension',
588 - 'section' => 'betterdocs_archive_page_settings',
589 - 'settings' => 'betterdocs_archive_content_padding_top',
590 - 'label' => __( 'Top', 'betterdocs' ),
591 - 'input_attrs' => [
592 - 'class' => 'betterdocs_archive_content_padding betterdocs-dimension'
593 - ]
594 - ] ) );
748 + // $this->customizer->add_control( new DimensionControl(
749 + // $this->customizer, 'archive_search_margin_left', [
750 + // 'type' => 'betterdocs-dimension',
751 + // 'section' => 'betterdocs_archive_page_settings',
752 + // 'settings' => 'archive_search_margin_left',
753 + // 'label' => __( 'Left', 'betterdocs' ),
754 + // 'input_attrs' => [
755 + // 'class' => 'archive_search_margin_left betterdocs-dimension'
756 + // ]
757 + // ] )
758 + // );
759 + }
595 760
596 - $this->customizer->add_setting( 'betterdocs_archive_content_padding_right', [
597 - 'default' => $this->defaults['betterdocs_archive_content_padding_right'],
598 - 'capability' => 'edit_theme_options',
599 - 'transport' => 'postMessage',
600 - 'sanitize_callback' => [$this->sanitizer, 'integer']
601 - ] );
761 + public function archive_search_padding() {
762 + $this->customizer->add_setting(
763 + 'archive_search_padding',
764 + [
765 + 'default' => $this->defaults['archive_search_padding'],
766 + 'capability' => 'edit_theme_options',
767 + 'transport' => 'postMessage',
768 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
602 769
603 - $this->customizer->add_control( new DimensionControl(
604 - $this->customizer, 'betterdocs_archive_content_padding_right', [
605 - 'type' => 'betterdocs-dimension',
606 - 'section' => 'betterdocs_archive_page_settings',
607 - 'settings' => 'betterdocs_archive_content_padding_right',
608 - 'label' => __( 'Right', 'betterdocs' ),
609 - 'input_attrs' => [
610 - 'class' => 'betterdocs_archive_content_padding betterdocs-dimension'
611 - ]
612 - ] )
613 - );
770 + ]
771 + );
614 772
615 - $this->customizer->add_setting( 'betterdocs_archive_content_padding_bottom', [
616 - 'default' => $this->defaults['betterdocs_archive_content_padding_bottom'],
617 - 'capability' => 'edit_theme_options',
618 - 'transport' => 'postMessage',
619 - 'sanitize_callback' => [$this->sanitizer, 'integer']
773 + $this->customizer->add_control(
774 + new TitleControl(
775 + $this->customizer,
776 + 'archive_search_padding',
777 + [
778 + 'type' => 'betterdocs-title',
779 + 'section' => 'betterdocs_archive_page_settings',
780 + 'settings' => 'archive_search_padding',
781 + 'label' => __( 'Padding', 'betterdocs' ),
782 + 'input_attrs' => [
783 + 'id' => 'archive_search_padding',
784 + 'class' => 'betterdocs-dimension'
785 + ]
786 + ]
787 + )
788 + );
620 789
621 - ] );
790 + $this->customizer->add_setting(
791 + 'archive_search_padding_top',
792 + [
793 + 'default' => $this->defaults['archive_search_padding_top'],
794 + 'capability' => 'edit_theme_options',
795 + 'transport' => 'postMessage',
796 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
797 + ]
798 + );
622 799
623 - $this->customizer->add_control( new DimensionControl(
624 - $this->customizer, 'betterdocs_archive_content_padding_bottom', [
625 - 'type' => 'betterdocs-dimension',
626 - 'section' => 'betterdocs_archive_page_settings',
627 - 'settings' => 'betterdocs_archive_content_padding_bottom',
628 - 'label' => __( 'Bottom', 'betterdocs' ),
629 - 'input_attrs' => [
630 - 'class' => 'betterdocs_archive_content_padding betterdocs-dimension'
631 - ]
632 - ] )
633 - );
800 + $this->customizer->add_control(
801 + new DimensionControl(
802 + $this->customizer,
803 + 'archive_search_padding_top',
804 + [
805 + 'type' => 'betterdocs-dimension',
806 + 'section' => 'betterdocs_archive_page_settings',
807 + 'settings' => 'archive_search_padding_top',
808 + 'label' => __( 'Top', 'betterdocs' ),
809 + 'input_attrs' => [
810 + 'class' => 'archive_search_padding betterdocs-dimension'
811 + ]
812 + ]
813 + )
814 + );
634 815
635 - $this->customizer->add_setting( 'betterdocs_archive_content_padding_left', [
636 - 'default' => $this->defaults['betterdocs_archive_content_padding_left'],
637 - 'capability' => 'edit_theme_options',
638 - 'transport' => 'postMessage',
639 - 'sanitize_callback' => [$this->sanitizer, 'integer']
816 + $this->customizer->add_setting(
817 + 'archive_search_padding_right',
818 + [
819 + 'default' => $this->defaults['archive_search_padding_right'],
820 + 'capability' => 'edit_theme_options',
821 + 'transport' => 'postMessage',
822 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
640 823
641 - ] );
824 + ]
825 + );
642 826
643 - $this->customizer->add_control( new DimensionControl(
644 - $this->customizer, 'betterdocs_archive_content_padding_left', [
645 - 'type' => 'betterdocs-dimension',
646 - 'section' => 'betterdocs_archive_page_settings',
647 - 'settings' => 'betterdocs_archive_content_padding_left',
648 - 'label' => __( 'Left', 'betterdocs' ),
649 - 'input_attrs' => [
650 - 'class' => 'betterdocs_archive_content_padding betterdocs-dimension'
651 - ]
652 - ] )
653 - );
654 - }
827 + $this->customizer->add_control(
828 + new DimensionControl(
829 + $this->customizer,
830 + 'archive_search_padding_right',
831 + [
832 + 'type' => 'betterdocs-dimension',
833 + 'section' => 'betterdocs_archive_page_settings',
834 + 'settings' => 'archive_search_padding_right',
835 + 'label' => __( 'Right', 'betterdocs' ),
836 + 'input_attrs' => [
837 + 'class' => 'archive_search_padding betterdocs-dimension'
838 + ]
839 + ]
840 + )
841 + );
655 842
656 - public function content_border_radius() {
657 - $this->customizer->add_setting( 'betterdocs_archive_content_border_radius', [
658 - 'default' => $this->defaults['betterdocs_archive_content_border_radius'],
659 - 'capability' => 'edit_theme_options',
660 - 'transport' => 'postMessage',
661 - 'sanitize_callback' => [$this->sanitizer, 'integer']
843 + $this->customizer->add_setting(
844 + 'archive_search_padding_bottom',
845 + [
846 + 'default' => $this->defaults['archive_search_padding_bottom'],
847 + 'capability' => 'edit_theme_options',
848 + 'transport' => 'postMessage',
849 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
662 850
663 - ] );
851 + ]
852 + );
664 853
665 - $this->customizer->add_control( new RangeValueControl(
666 - $this->customizer, 'betterdocs_archive_content_border_radius', [
667 - 'type' => 'betterdocs-range-value',
668 - 'section' => 'betterdocs_archive_page_settings',
669 - 'settings' => 'betterdocs_archive_content_border_radius',
670 - 'label' => __( 'Archive Content Border Radius', 'betterdocs' ),
671 - 'input_attrs' => [
672 - 'min' => 0,
673 - 'max' => 100,
674 - 'step' => 1,
675 - 'suffix' => 'px' //optional suffix
676 - ]
677 - ] )
678 - );
679 - }
854 + $this->customizer->add_control(
855 + new DimensionControl(
856 + $this->customizer,
857 + 'archive_search_padding_bottom',
858 + [
859 + 'type' => 'betterdocs-dimension',
860 + 'section' => 'betterdocs_archive_page_settings',
861 + 'settings' => 'archive_search_padding_bottom',
862 + 'label' => __( 'Bottom', 'betterdocs' ),
863 + 'input_attrs' => [
864 + 'class' => 'archive_search_padding betterdocs-dimension'
865 + ]
866 + ]
867 + )
868 + );
680 869
681 - public function title_tag() {
682 - $this->customizer->add_setting( 'betterdocs_archive_title_tag', [
683 - 'default' => $this->defaults['betterdocs_archive_title_tag'],
684 - 'capability' => 'edit_theme_options',
685 - 'sanitize_callback' => [$this->sanitizer, 'select']
686 - ] );
870 + $this->customizer->add_setting(
871 + 'archive_search_padding_left',
872 + [
873 + 'default' => $this->defaults['archive_search_padding_left'],
874 + 'capability' => 'edit_theme_options',
875 + 'transport' => 'postMessage',
876 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
687 877
688 - $this->customizer->add_control(
689 - new WP_Customize_Control(
690 - $this->customizer,
691 - 'betterdocs_archive_title_tag',
692 - [
693 - 'label' => __( 'Category Title Tag', 'betterdocs' ),
694 - 'section' => 'betterdocs_archive_page_settings',
695 - 'settings' => 'betterdocs_archive_title_tag',
696 - 'type' => 'select',
697 - 'choices' => [
698 - 'h1' => 'h1',
699 - 'h2' => 'h2',
700 - 'h3' => 'h3',
701 - 'h4' => 'h4',
702 - 'h5' => 'h5',
703 - 'h6' => 'h6'
704 - ]
705 - ]
706 - )
707 - );
708 - }
878 + ]
879 + );
709 880
710 - public function title_color() {
711 - $this->customizer->add_setting( 'betterdocs_archive_title_color', [
712 - 'default' => $this->defaults['betterdocs_archive_title_color'],
713 - 'capability' => 'edit_theme_options',
714 - 'transport' => 'postMessage',
715 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
716 - ] );
881 + $this->customizer->add_control(
882 + new DimensionControl(
883 + $this->customizer,
884 + 'archive_search_padding_left',
885 + [
886 + 'type' => 'betterdocs-dimension',
887 + 'section' => 'betterdocs_archive_page_settings',
888 + 'settings' => 'archive_search_padding_left',
889 + 'label' => __( 'Left', 'betterdocs' ),
890 + 'input_attrs' => [
891 + 'class' => 'archive_search_padding_left betterdocs-dimension'
892 + ]
893 + ]
894 + )
895 + );
896 + }
717 897
718 - $this->customizer->add_control(
719 - new AlphaColorControl(
720 - $this->customizer,
721 - 'betterdocs_archive_title_color',
722 - [
723 - 'label' => __( 'Title Color', 'betterdocs' ),
724 - 'section' => 'betterdocs_archive_page_settings',
725 - 'settings' => 'betterdocs_archive_title_color'
726 - ]
727 - )
728 - );
729 - }
898 + public function content_area_settings() {
899 + $this->customizer->add_setting(
900 + 'betterdocs_archive_content_area_settings',
901 + [
902 + 'default' => $this->defaults['betterdocs_archive_content_area_settings'],
903 + 'sanitize_callback' => 'esc_html'
904 + ]
905 + );
730 906
731 - public function title_font_size() {
732 - $this->customizer->add_setting( 'betterdocs_archive_title_font_size', [
733 - 'default' => $this->defaults['betterdocs_archive_title_font_size'],
734 - 'capability' => 'edit_theme_options',
735 - 'transport' => 'postMessage',
736 - 'sanitize_callback' => [$this->sanitizer, 'integer']
907 + $this->customizer->add_control(
908 + new SeparatorControl(
909 + $this->customizer,
910 + 'betterdocs_archive_content_area_settings',
911 + [
912 + 'label' => __( 'Content Area', 'betterdocs' ),
913 + 'settings' => 'betterdocs_archive_content_area_settings',
914 + 'section' => 'betterdocs_archive_page_settings'
915 + ]
916 + )
917 + );
918 + }
737 919
738 - ] );
920 + public function archive_content_area_search_toogle() {
921 + $this->customizer->add_setting(
922 + 'archive_content_area_search_toogle',
923 + [
924 + 'default' => $this->defaults['archive_content_area_search_toogle'],
925 + 'capability' => 'edit_theme_options',
926 + 'sanitize_callback' => [ $this->sanitizer, 'checkbox' ]
927 + ]
928 + );
739 929
740 - $this->customizer->add_control( new RangeValueControl(
741 - $this->customizer, 'betterdocs_archive_title_font_size', [
742 - 'type' => 'betterdocs-range-value',
743 - 'section' => 'betterdocs_archive_page_settings',
744 - 'settings' => 'betterdocs_archive_title_font_size',
745 - 'label' => __( 'Title Font Size', 'betterdocs' ),
746 - 'input_attrs' => [
747 - 'min' => 0,
748 - 'max' => 50,
749 - 'step' => 1,
750 - 'suffix' => 'px' //optional suffix
751 - ]
752 - ] )
753 - );
754 - }
930 + $this->customizer->add_control(
931 + new ToggleControl(
932 + $this->customizer,
933 + 'archive_content_area_search_toogle',
934 + [
935 + 'label' => __( 'Enable Content Area Search', 'betterdocs' ),
936 + 'section' => 'betterdocs_archive_page_settings',
937 + 'settings' => 'archive_content_area_search_toogle',
938 + 'type' => 'light', // light, ios, flat
939 + ]
940 + )
941 + );
942 + }
755 943
756 - public function title_margin() {
757 - $this->customizer->add_setting( 'betterdocs_archive_title_margin', [
758 - 'default' => $this->defaults['betterdocs_archive_title_margin'],
759 - 'capability' => 'edit_theme_options',
760 - 'transport' => 'postMessage',
761 - 'sanitize_callback' => [$this->sanitizer, 'integer']
762 - ] );
944 + public function content_background_color() {
945 + $this->customizer->add_setting(
946 + 'betterdocs_archive_content_background_color',
947 + [
948 + 'default' => $this->defaults['betterdocs_archive_content_background_color'],
949 + 'capability' => 'edit_theme_options',
950 + 'transport' => 'postMessage',
951 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
952 + ]
953 + );
763 954
764 - $this->customizer->add_control( new TitleControl(
765 - $this->customizer, 'betterdocs_archive_title_margin', [
766 - 'type' => 'betterdocs-title',
767 - 'section' => 'betterdocs_archive_page_settings',
768 - 'settings' => 'betterdocs_archive_title_margin',
769 - 'label' => __( 'Archive Title Margin', 'betterdocs' ),
770 - 'input_attrs' => [
771 - 'id' => 'betterdocs_archive_title_margin',
772 - 'class' => 'betterdocs-dimension'
773 - ]
774 - ] )
775 - );
955 + $this->customizer->add_control(
956 + new AlphaColorControl(
957 + $this->customizer,
958 + 'betterdocs_archive_content_background_color',
959 + [
960 + 'label' => __( 'Content Area Background Color', 'betterdocs' ),
961 + 'section' => 'betterdocs_archive_page_settings',
962 + 'settings' => 'betterdocs_archive_content_background_color'
963 + ]
964 + )
965 + );
966 + }
776 967
777 - $this->customizer->add_setting( 'betterdocs_archive_title_margin_top', [
778 - 'default' => $this->defaults['betterdocs_archive_title_margin_top'],
779 - 'capability' => 'edit_theme_options',
780 - 'transport' => 'postMessage',
781 - 'sanitize_callback' => [$this->sanitizer, 'integer']
782 - ] );
968 + public function content_margin() {
969 + $this->customizer->add_setting(
970 + 'betterdocs_archive_content_margin',
971 + [
972 + 'default' => $this->defaults['betterdocs_archive_content_margin'],
973 + 'capability' => 'edit_theme_options',
974 + 'transport' => 'postMessage',
975 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
783 976
784 - $this->customizer->add_control( new DimensionControl(
785 - $this->customizer, 'betterdocs_archive_title_margin_top', [
786 - 'type' => 'betterdocs-dimension',
787 - 'section' => 'betterdocs_archive_page_settings',
788 - 'settings' => 'betterdocs_archive_title_margin_top',
789 - 'label' => __( 'Top', 'betterdocs' ),
790 - 'input_attrs' => [
791 - 'class' => 'betterdocs_archive_title_margin betterdocs-dimension'
792 - ]
793 - ] )
794 - );
977 + ]
978 + );
795 979
796 - $this->customizer->add_setting( 'betterdocs_archive_title_margin_right', [
797 - 'default' => $this->defaults['betterdocs_archive_title_margin_right'],
798 - 'capability' => 'edit_theme_options',
799 - 'transport' => 'postMessage',
800 - 'sanitize_callback' => [$this->sanitizer, 'integer']
980 + $this->customizer->add_control(
981 + new TitleControl(
982 + $this->customizer,
983 + 'betterdocs_archive_content_margin',
984 + [
985 + 'type' => 'betterdocs-title',
986 + 'section' => 'betterdocs_archive_page_settings',
987 + 'settings' => 'betterdocs_archive_content_margin',
988 + 'label' => __( 'Content Area Margin', 'betterdocs' ),
989 + 'input_attrs' => [
990 + 'id' => 'betterdocs_archive_content_margin',
991 + 'class' => 'betterdocs-dimension'
992 + ]
993 + ]
994 + )
995 + );
801 996
802 - ] );
997 + $this->customizer->add_setting(
998 + 'betterdocs_archive_content_margin_top',
999 + [
1000 + 'default' => $this->defaults['betterdocs_archive_content_margin_top'],
1001 + 'capability' => 'edit_theme_options',
1002 + 'transport' => 'postMessage',
1003 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1004 + ]
1005 + );
803 1006
804 - $this->customizer->add_control( new DimensionControl(
805 - $this->customizer, 'betterdocs_archive_title_margin_right', [
806 - 'type' => 'betterdocs-dimension',
807 - 'section' => 'betterdocs_archive_page_settings',
808 - 'settings' => 'betterdocs_archive_title_margin_right',
809 - 'label' => __( 'Right', 'betterdocs' ),
810 - 'input_attrs' => [
811 - 'class' => 'betterdocs_archive_title_margin betterdocs-dimension'
812 - ]
813 - ] )
814 - );
1007 + $this->customizer->add_control(
1008 + new DimensionControl(
1009 + $this->customizer,
1010 + 'betterdocs_archive_content_margin_top',
1011 + [
1012 + 'type' => 'betterdocs-dimension',
1013 + 'section' => 'betterdocs_archive_page_settings',
1014 + 'settings' => 'betterdocs_archive_content_margin_top',
1015 + 'label' => __( 'Top', 'betterdocs' ),
1016 + 'input_attrs' => [
1017 + 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
1018 + ]
1019 + ]
1020 + )
1021 + );
815 1022
816 - $this->customizer->add_setting( 'betterdocs_archive_title_margin_bottom', [
817 - 'default' => $this->defaults['betterdocs_archive_title_margin_bottom'],
818 - 'capability' => 'edit_theme_options',
819 - 'transport' => 'postMessage',
820 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1023 + $this->customizer->add_setting(
1024 + 'betterdocs_archive_content_margin_right',
1025 + [
1026 + 'default' => $this->defaults['betterdocs_archive_content_margin_right'],
1027 + 'capability' => 'edit_theme_options',
1028 + 'transport' => 'postMessage',
1029 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
821 1030
822 - ] );
1031 + ]
1032 + );
823 1033
824 - $this->customizer->add_control( new DimensionControl(
825 - $this->customizer, 'betterdocs_archive_title_margin_bottom', [
826 - 'type' => 'betterdocs-dimension',
827 - 'section' => 'betterdocs_archive_page_settings',
828 - 'settings' => 'betterdocs_archive_title_margin_bottom',
829 - 'label' => __( 'Bottom', 'betterdocs' ),
830 - 'input_attrs' => [
831 - 'class' => 'betterdocs_archive_title_margin betterdocs-dimension'
832 - ]
833 - ] )
834 - );
1034 + $this->customizer->add_control(
1035 + new DimensionControl(
1036 + $this->customizer,
1037 + 'betterdocs_archive_content_margin_right',
1038 + [
1039 + 'type' => 'betterdocs-dimension',
1040 + 'section' => 'betterdocs_archive_page_settings',
1041 + 'settings' => 'betterdocs_archive_content_margin_right',
1042 + 'label' => __( 'Right', 'betterdocs' ),
1043 + 'input_attrs' => [
1044 + 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
1045 + ]
1046 + ]
1047 + )
1048 + );
835 1049
836 - $this->customizer->add_setting( 'betterdocs_archive_title_margin_left', [
837 - 'default' => $this->defaults['betterdocs_archive_title_margin_left'],
838 - 'capability' => 'edit_theme_options',
839 - 'transport' => 'postMessage',
840 - 'sanitize_callback' => [$this->sanitizer, 'integer']
841 - ] );
1050 + $this->customizer->add_setting(
1051 + 'betterdocs_archive_content_margin_bottom',
1052 + [
1053 + 'default' => $this->defaults['betterdocs_archive_content_margin_bottom'],
1054 + 'capability' => 'edit_theme_options',
1055 + 'transport' => 'postMessage',
1056 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
842 1057
843 - $this->customizer->add_control( new DimensionControl(
844 - $this->customizer, 'betterdocs_archive_title_margin_left', [
845 - 'type' => 'betterdocs-dimension',
846 - 'section' => 'betterdocs_archive_page_settings',
847 - 'settings' => 'betterdocs_archive_title_margin_left',
848 - 'label' => __( 'Left', 'betterdocs' ),
849 - 'input_attrs' => [
850 - 'class' => 'betterdocs_archive_title_margin betterdocs-dimension'
851 - ]
852 - ] )
853 - );
854 - }
1058 + ]
1059 + );
855 1060
856 - public function description_color() {
857 - $this->customizer->add_setting( 'betterdocs_archive_description_color', [
858 - 'default' => $this->defaults['betterdocs_archive_description_color'],
859 - 'capability' => 'edit_theme_options',
860 - 'transport' => 'postMessage',
861 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
862 - ] );
1061 + $this->customizer->add_control(
1062 + new DimensionControl(
1063 + $this->customizer,
1064 + 'betterdocs_archive_content_margin_bottom',
1065 + [
1066 + 'type' => 'betterdocs-dimension',
1067 + 'section' => 'betterdocs_archive_page_settings',
1068 + 'settings' => 'betterdocs_archive_content_margin_bottom',
1069 + 'label' => __( 'Bottom', 'betterdocs' ),
1070 + 'input_attrs' => [
1071 + 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
1072 + ]
1073 + ]
1074 + )
1075 + );
863 1076
864 - $this->customizer->add_control(
865 - new AlphaColorControl(
866 - $this->customizer,
867 - 'betterdocs_archive_description_color',
868 - [
869 - 'label' => __( 'Description Color', 'betterdocs' ),
870 - 'section' => 'betterdocs_archive_page_settings',
871 - 'settings' => 'betterdocs_archive_description_color'
872 - ]
873 - )
874 - );
875 - }
1077 + $this->customizer->add_setting(
1078 + 'betterdocs_archive_content_margin_left',
1079 + [
1080 + 'default' => $this->defaults['betterdocs_archive_content_margin_left'],
1081 + 'capability' => 'edit_theme_options',
1082 + 'transport' => 'postMessage',
1083 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
876 1084
877 - public function description_font_size() {
878 - $this->customizer->add_setting( 'betterdocs_archive_description_font_size', [
879 - 'default' => $this->defaults['betterdocs_archive_description_font_size'],
880 - 'capability' => 'edit_theme_options',
881 - 'transport' => 'postMessage',
882 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1085 + ]
1086 + );
883 1087
884 - ] );
1088 + $this->customizer->add_control(
1089 + new DimensionControl(
1090 + $this->customizer,
1091 + 'betterdocs_archive_content_margin_left',
1092 + [
1093 + 'type' => 'betterdocs-dimension',
1094 + 'section' => 'betterdocs_archive_page_settings',
1095 + 'settings' => 'betterdocs_archive_content_margin_left',
1096 + 'label' => __( 'Left', 'betterdocs' ),
1097 + 'input_attrs' => [
1098 + 'class' => 'betterdocs_archive_content_margin betterdocs-dimension'
1099 + ]
1100 + ]
1101 + )
1102 + );
1103 + }
885 1104
886 - $this->customizer->add_control( new RangeValueControl(
887 - $this->customizer, 'betterdocs_archive_description_font_size', [
888 - 'type' => 'betterdocs-range-value',
889 - 'section' => 'betterdocs_archive_page_settings',
890 - 'settings' => 'betterdocs_archive_description_font_size',
891 - 'label' => __( 'Description Font Size', 'betterdocs' ),
892 - 'input_attrs' => [
893 - 'min' => 0,
894 - 'max' => 50,
895 - 'step' => 1,
896 - 'suffix' => 'px' //optional suffix
897 - ]
898 - ] )
899 - );
900 - }
1105 + public function content_padding() {
1106 + $this->customizer->add_setting(
1107 + 'betterdocs_archive_content_padding',
1108 + [
1109 + 'default' => $this->defaults['betterdocs_archive_content_padding'],
1110 + 'capability' => 'edit_theme_options',
1111 + 'transport' => 'postMessage',
1112 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
901 1113
902 - public function description_margin() {
903 - $this->customizer->add_setting( 'betterdocs_archive_description_margin', [
904 - 'default' => $this->defaults['betterdocs_archive_description_margin'],
905 - 'capability' => 'edit_theme_options',
906 - 'transport' => 'postMessage',
907 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1114 + ]
1115 + );
908 1116
909 - ] );
1117 + $this->customizer->add_control(
1118 + new TitleControl(
1119 + $this->customizer,
1120 + 'betterdocs_archive_content_padding',
1121 + [
1122 + 'type' => 'betterdocs-title',
1123 + 'section' => 'betterdocs_archive_page_settings',
1124 + 'settings' => 'betterdocs_archive_content_padding',
1125 + 'label' => __( 'Content Area Padding', 'betterdocs' ),
1126 + 'input_attrs' => [
1127 + 'id' => 'betterdocs_archive_content_padding',
1128 + 'class' => 'betterdocs-dimension'
1129 + ]
1130 + ]
1131 + )
1132 + );
910 1133
911 - $this->customizer->add_control( new TitleControl(
912 - $this->customizer, 'betterdocs_archive_description_margin', [
913 - 'type' => 'betterdocs-title',
914 - 'section' => 'betterdocs_archive_page_settings',
915 - 'settings' => 'betterdocs_archive_description_margin',
916 - 'label' => __( 'Archive Description Margin', 'betterdocs' ),
917 - 'input_attrs' => [
918 - 'id' => 'betterdocs_archive_description_margin',
919 - 'class' => 'betterdocs-dimension'
920 - ]
921 - ] )
922 - );
1134 + $this->customizer->add_setting(
1135 + 'betterdocs_archive_content_padding_top',
1136 + [
1137 + 'default' => $this->defaults['betterdocs_archive_content_padding_top'],
1138 + 'capability' => 'edit_theme_options',
1139 + 'transport' => 'postMessage',
1140 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1141 + ]
1142 + );
923 1143
924 - $this->customizer->add_setting( 'betterdocs_archive_description_margin_top', [
925 - 'default' => $this->defaults['betterdocs_archive_description_margin_top'],
926 - 'capability' => 'edit_theme_options',
927 - 'transport' => 'postMessage',
928 - 'sanitize_callback' => [$this->sanitizer, 'integer']
929 - ] );
1144 + $this->customizer->add_control(
1145 + new DimensionControl(
1146 + $this->customizer,
1147 + 'betterdocs_archive_content_padding_top',
1148 + [
1149 + 'type' => 'betterdocs-dimension',
1150 + 'section' => 'betterdocs_archive_page_settings',
1151 + 'settings' => 'betterdocs_archive_content_padding_top',
1152 + 'label' => __( 'Top', 'betterdocs' ),
1153 + 'input_attrs' => [
1154 + 'class' => 'betterdocs_archive_content_padding betterdocs-dimension'
1155 + ]
1156 + ]
1157 + )
1158 + );
930 1159
931 - $this->customizer->add_control( new DimensionControl(
932 - $this->customizer, 'betterdocs_archive_description_margin_top', [
933 - 'type' => 'betterdocs-dimension',
934 - 'section' => 'betterdocs_archive_page_settings',
935 - 'settings' => 'betterdocs_archive_description_margin_top',
936 - 'label' => __( 'Top', 'betterdocs' ),
937 - 'input_attrs' => [
938 - 'class' => 'betterdocs_archive_description_margin betterdocs-dimension'
939 - ]
940 - ] )
941 - );
1160 + $this->customizer->add_setting(
1161 + 'betterdocs_archive_content_padding_right',
1162 + [
1163 + 'default' => $this->defaults['betterdocs_archive_content_padding_right'],
1164 + 'capability' => 'edit_theme_options',
1165 + 'transport' => 'postMessage',
1166 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1167 + ]
1168 + );
942 1169
943 - $this->customizer->add_setting( 'betterdocs_archive_description_margin_right', [
944 - 'default' => $this->defaults['betterdocs_archive_description_margin_right'],
945 - 'capability' => 'edit_theme_options',
946 - 'transport' => 'postMessage',
947 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1170 + $this->customizer->add_control(
1171 + new DimensionControl(
1172 + $this->customizer,
1173 + 'betterdocs_archive_content_padding_right',
1174 + [
1175 + 'type' => 'betterdocs-dimension',
1176 + 'section' => 'betterdocs_archive_page_settings',
1177 + 'settings' => 'betterdocs_archive_content_padding_right',
1178 + 'label' => __( 'Right', 'betterdocs' ),
1179 + 'input_attrs' => [
1180 + 'class' => 'betterdocs_archive_content_padding betterdocs-dimension'
1181 + ]
1182 + ]
1183 + )
1184 + );
948 1185
949 - ] );
1186 + $this->customizer->add_setting(
1187 + 'betterdocs_archive_content_padding_bottom',
1188 + [
1189 + 'default' => $this->defaults['betterdocs_archive_content_padding_bottom'],
1190 + 'capability' => 'edit_theme_options',
1191 + 'transport' => 'postMessage',
1192 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
950 1193
951 - $this->customizer->add_control( new DimensionControl(
952 - $this->customizer, 'betterdocs_archive_description_margin_right', [
953 - 'type' => 'betterdocs-dimension',
954 - 'section' => 'betterdocs_archive_page_settings',
955 - 'settings' => 'betterdocs_archive_description_margin_right',
956 - 'label' => __( 'Right', 'betterdocs' ),
957 - 'input_attrs' => [
958 - 'class' => 'betterdocs_archive_description_margin betterdocs-dimension'
959 - ]
960 - ] )
961 - );
1194 + ]
1195 + );
962 1196
963 - $this->customizer->add_setting( 'betterdocs_archive_description_margin_bottom', [
964 - 'default' => $this->defaults['betterdocs_archive_description_margin_bottom'],
965 - 'capability' => 'edit_theme_options',
966 - 'transport' => 'postMessage',
967 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1197 + $this->customizer->add_control(
1198 + new DimensionControl(
1199 + $this->customizer,
1200 + 'betterdocs_archive_content_padding_bottom',
1201 + [
1202 + 'type' => 'betterdocs-dimension',
1203 + 'section' => 'betterdocs_archive_page_settings',
1204 + 'settings' => 'betterdocs_archive_content_padding_bottom',
1205 + 'label' => __( 'Bottom', 'betterdocs' ),
1206 + 'input_attrs' => [
1207 + 'class' => 'betterdocs_archive_content_padding betterdocs-dimension'
1208 + ]
1209 + ]
1210 + )
1211 + );
968 1212
969 - ] );
1213 + $this->customizer->add_setting(
1214 + 'betterdocs_archive_content_padding_left',
1215 + [
1216 + 'default' => $this->defaults['betterdocs_archive_content_padding_left'],
1217 + 'capability' => 'edit_theme_options',
1218 + 'transport' => 'postMessage',
1219 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
970 1220
971 - $this->customizer->add_control( new DimensionControl(
972 - $this->customizer, 'betterdocs_archive_description_margin_bottom', [
973 - 'type' => 'betterdocs-dimension',
974 - 'section' => 'betterdocs_archive_page_settings',
975 - 'settings' => 'betterdocs_archive_description_margin_bottom',
976 - 'label' => __( 'Bottom', 'betterdocs' ),
977 - 'input_attrs' => [
978 - 'class' => 'betterdocs_archive_description_margin betterdocs-dimension'
979 - ]
980 - ] )
981 - );
1221 + ]
1222 + );
982 1223
983 - $this->customizer->add_setting( 'betterdocs_archive_description_margin_left', [
984 - 'default' => $this->defaults['betterdocs_archive_description_margin_left'],
985 - 'capability' => 'edit_theme_options',
986 - 'transport' => 'postMessage',
987 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1224 + $this->customizer->add_control(
1225 + new DimensionControl(
1226 + $this->customizer,
1227 + 'betterdocs_archive_content_padding_left',
1228 + [
1229 + 'type' => 'betterdocs-dimension',
1230 + 'section' => 'betterdocs_archive_page_settings',
1231 + 'settings' => 'betterdocs_archive_content_padding_left',
1232 + 'label' => __( 'Left', 'betterdocs' ),
1233 + 'input_attrs' => [
1234 + 'class' => 'betterdocs_archive_content_padding betterdocs-dimension'
1235 + ]
1236 + ]
1237 + )
1238 + );
1239 + }
988 1240
989 - ] );
990 1241
991 - $this->customizer->add_control( new DimensionControl(
992 - $this->customizer, 'betterdocs_archive_description_margin_left', [
993 - 'type' => 'betterdocs-dimension',
994 - 'section' => 'betterdocs_archive_page_settings',
995 - 'settings' => 'betterdocs_archive_description_margin_left',
996 - 'label' => __( 'Left', 'betterdocs' ),
997 - 'input_attrs' => [
998 - 'class' => 'betterdocs_archive_description_margin betterdocs-dimension'
999 - ]
1000 - ] )
1001 - );
1002 - }
1242 + public function content_area_padding_layout_7() {
1243 + $this->customizer->add_setting(
1244 + 'content_area_padding_layout_7',
1245 + [
1246 + 'default' => $this->defaults['content_area_padding_layout_7'],
1247 + 'capability' => 'edit_theme_options',
1248 + 'transport' => 'postMessage',
1249 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1003 1250
1004 - public function list_icon_color() {
1005 - $this->customizer->add_setting( 'betterdocs_archive_list_icon_color', [
1006 - 'default' => $this->defaults['betterdocs_archive_list_icon_color'],
1007 - 'capability' => 'edit_theme_options',
1008 - 'transport' => 'postMessage',
1009 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1010 - ] );
1251 + ]
1252 + );
1011 1253
1012 - $this->customizer->add_control(
1013 - new AlphaColorControl(
1014 - $this->customizer,
1015 - 'betterdocs_archive_list_icon_color',
1016 - [
1017 - 'label' => __( 'List Icon Color', 'betterdocs' ),
1018 - 'section' => 'betterdocs_archive_page_settings',
1019 - 'settings' => 'betterdocs_archive_list_icon_color'
1020 - ]
1021 - )
1022 - );
1023 - }
1254 + $this->customizer->add_control(
1255 + new TitleControl(
1256 + $this->customizer,
1257 + 'content_area_padding_layout_7',
1258 + [
1259 + 'type' => 'betterdocs-title',
1260 + 'section' => 'betterdocs_archive_page_settings',
1261 + 'settings' => 'content_area_padding_layout_7',
1262 + 'label' => __( 'Content Area Padding', 'betterdocs' ),
1263 + 'input_attrs' => [
1264 + 'id' => 'content_area_padding_layout_7',
1265 + 'class' => 'betterdocs-dimension'
1266 + ]
1267 + ]
1268 + )
1269 + );
1024 1270
1025 - public function list_icon_font_size() {
1026 - $this->customizer->add_setting( 'betterdocs_archive_list_icon_font_size', [
1027 - 'default' => $this->defaults['betterdocs_archive_list_icon_font_size'],
1028 - 'capability' => 'edit_theme_options',
1029 - 'transport' => 'postMessage',
1030 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1271 + $this->customizer->add_setting(
1272 + 'content_area_padding_top_layout_7',
1273 + [
1274 + 'default' => $this->defaults['content_area_padding_top_layout_7'],
1275 + 'capability' => 'edit_theme_options',
1276 + 'transport' => 'postMessage',
1277 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1278 + ]
1279 + );
1031 1280
1032 - ] );
1281 + $this->customizer->add_control(
1282 + new DimensionControl(
1283 + $this->customizer,
1284 + 'content_area_padding_top_layout_7',
1285 + [
1286 + 'type' => 'betterdocs-dimension',
1287 + 'section' => 'betterdocs_archive_page_settings',
1288 + 'settings' => 'content_area_padding_top_layout_7',
1289 + 'label' => __( 'Top', 'betterdocs' ),
1290 + 'input_attrs' => [
1291 + 'class' => 'content_area_padding_layout_7 betterdocs-dimension'
1292 + ]
1293 + ]
1294 + )
1295 + );
1033 1296
1034 - $this->customizer->add_control( new RangeValueControl(
1035 - $this->customizer, 'betterdocs_archive_list_icon_font_size', [
1036 - 'type' => 'betterdocs-range-value',
1037 - 'section' => 'betterdocs_archive_page_settings',
1038 - 'settings' => 'betterdocs_archive_list_icon_font_size',
1039 - 'label' => __( 'List Icon Font Size', 'betterdocs' ),
1040 - 'input_attrs' => [
1041 - 'class' => '',
1042 - 'min' => 0,
1043 - 'max' => 50,
1044 - 'step' => 1,
1045 - 'suffix' => 'px' //optional suffix
1046 - ]
1047 - ] )
1048 - );
1049 - }
1297 + $this->customizer->add_setting(
1298 + 'content_area_padding_right_layout_7',
1299 + [
1300 + 'default' => $this->defaults['content_area_padding_right_layout_7'],
1301 + 'capability' => 'edit_theme_options',
1302 + 'transport' => 'postMessage',
1303 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1304 + ]
1305 + );
1050 1306
1051 - public function list_item_color() {
1052 - $this->customizer->add_setting( 'betterdocs_archive_list_item_color', [
1053 - 'default' => $this->defaults['betterdocs_archive_list_item_color'],
1054 - 'capability' => 'edit_theme_options',
1055 - 'transport' => 'postMessage',
1056 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1057 - ] );
1307 + $this->customizer->add_control(
1308 + new DimensionControl(
1309 + $this->customizer,
1310 + 'content_area_padding_right_layout_7',
1311 + [
1312 + 'type' => 'betterdocs-dimension',
1313 + 'section' => 'betterdocs_archive_page_settings',
1314 + 'settings' => 'content_area_padding_right_layout_7',
1315 + 'label' => __( 'Right', 'betterdocs' ),
1316 + 'input_attrs' => [
1317 + 'class' => 'content_area_padding_layout_7 betterdocs-dimension'
1318 + ]
1319 + ]
1320 + )
1321 + );
1058 1322
1059 - $this->customizer->add_control(
1060 - new AlphaColorControl(
1061 - $this->customizer,
1062 - 'betterdocs_archive_list_item_color',
1063 - [
1064 - 'label' => __( 'List Item Color', 'betterdocs' ),
1065 - 'section' => 'betterdocs_archive_page_settings',
1066 - 'settings' => 'betterdocs_archive_list_item_color'
1067 - ]
1068 - )
1069 - );
1070 - }
1323 + $this->customizer->add_setting(
1324 + 'content_area_padding_bottom_layout_7',
1325 + [
1326 + 'default' => $this->defaults['content_area_padding_bottom_layout_7'],
1327 + 'capability' => 'edit_theme_options',
1328 + 'transport' => 'postMessage',
1329 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1071 1330
1072 - public function list_item_hover_color() {
1073 - $this->customizer->add_setting( 'betterdocs_archive_list_item_hover_color', [
1074 - 'default' => $this->defaults['betterdocs_archive_list_item_hover_color'],
1075 - 'capability' => 'edit_theme_options',
1076 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1077 - ] );
1331 + ]
1332 + );
1078 1333
1079 - $this->customizer->add_control(
1080 - new AlphaColorControl(
1081 - $this->customizer,
1082 - 'betterdocs_archive_list_item_hover_color',
1083 - [
1084 - 'label' => __( 'List Item Hover Color', 'betterdocs' ),
1085 - 'section' => 'betterdocs_archive_page_settings',
1086 - 'settings' => 'betterdocs_archive_list_item_hover_color'
1087 - ]
1088 - )
1089 - );
1090 - }
1334 + $this->customizer->add_control(
1335 + new DimensionControl(
1336 + $this->customizer,
1337 + 'content_area_padding_bottom_layout_7',
1338 + [
1339 + 'type' => 'betterdocs-dimension',
1340 + 'section' => 'betterdocs_archive_page_settings',
1341 + 'settings' => 'content_area_padding_bottom_layout_7',
1342 + 'label' => __( 'Bottom', 'betterdocs' ),
1343 + 'input_attrs' => [
1344 + 'class' => 'content_area_padding_layout_7 betterdocs-dimension'
1345 + ]
1346 + ]
1347 + )
1348 + );
1091 1349
1092 - public function list_item_font_size() {
1093 - $this->customizer->add_setting( 'betterdocs_archive_list_item_font_size', [
1094 - 'default' => $this->defaults['betterdocs_archive_list_item_font_size'],
1095 - 'capability' => 'edit_theme_options',
1096 - 'transport' => 'postMessage',
1097 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1350 + $this->customizer->add_setting(
1351 + 'content_area_padding_left_layout_7',
1352 + [
1353 + 'default' => $this->defaults['content_area_padding_left_layout_7'],
1354 + 'capability' => 'edit_theme_options',
1355 + 'transport' => 'postMessage',
1356 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1098 1357
1099 - ] );
1358 + ]
1359 + );
1100 1360
1101 - $this->customizer->add_control( new RangeValueControl(
1102 - $this->customizer, 'betterdocs_archive_list_item_font_size', [
1103 - 'type' => 'betterdocs-range-value',
1104 - 'section' => 'betterdocs_archive_page_settings',
1105 - 'settings' => 'betterdocs_archive_list_item_font_size',
1106 - 'label' => __( 'List Item Font Size', 'betterdocs' ),
1107 - 'input_attrs' => [
1108 - 'class' => '',
1109 - 'min' => 0,
1110 - 'max' => 50,
1111 - 'step' => 1,
1112 - 'suffix' => 'px' //optional suffix
1113 - ]
1114 - ] )
1115 - );
1116 - }
1361 + $this->customizer->add_control(
1362 + new DimensionControl(
1363 + $this->customizer,
1364 + 'content_area_padding_left_layout_7',
1365 + [
1366 + 'type' => 'betterdocs-dimension',
1367 + 'section' => 'betterdocs_archive_page_settings',
1368 + 'settings' => 'content_area_padding_left_layout_7',
1369 + 'label' => __( 'Left', 'betterdocs' ),
1370 + 'input_attrs' => [
1371 + 'class' => 'content_area_padding_layout_7 betterdocs-dimension'
1372 + ]
1373 + ]
1374 + )
1375 + );
1376 + }
1117 1377
1118 - public function list_margin() {
1119 - $this->customizer->add_setting( 'betterdocs_archive_article_list_margin', [
1120 - 'default' => $this->defaults['betterdocs_archive_article_list_margin'],
1121 - 'capability' => 'edit_theme_options',
1122 - 'transport' => 'postMessage',
1123 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1378 + public function content_border_radius() {
1379 + $this->customizer->add_setting(
1380 + 'betterdocs_archive_content_border_radius',
1381 + [
1382 + 'default' => $this->defaults['betterdocs_archive_content_border_radius'],
1383 + 'capability' => 'edit_theme_options',
1384 + 'transport' => 'postMessage',
1385 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1124 1386
1125 - ] );
1387 + ]
1388 + );
1126 1389
1127 - $this->customizer->add_control( new TitleControl(
1128 - $this->customizer, 'betterdocs_archive_article_list_margin', [
1129 - 'type' => 'betterdocs-title',
1130 - 'section' => 'betterdocs_archive_page_settings',
1131 - 'settings' => 'betterdocs_archive_article_list_margin',
1132 - 'label' => __( 'Docs List Margin', 'betterdocs' ),
1133 - 'input_attrs' => [
1134 - 'id' => 'betterdocs_archive_article_list_margin',
1135 - 'class' => 'betterdocs-dimension'
1136 - ]
1137 - ] )
1138 - );
1390 + $this->customizer->add_control(
1391 + new RangeValueControl(
1392 + $this->customizer,
1393 + 'betterdocs_archive_content_border_radius',
1394 + [
1395 + 'type' => 'betterdocs-range-value',
1396 + 'section' => 'betterdocs_archive_page_settings',
1397 + 'settings' => 'betterdocs_archive_content_border_radius',
1398 + 'label' => __( 'Archive Content Border Radius', 'betterdocs' ),
1399 + 'input_attrs' => [
1400 + 'min' => 0,
1401 + 'max' => 100,
1402 + 'step' => 1,
1403 + 'suffix' => 'px' //optional suffix
1404 + ]
1405 + ]
1406 + )
1407 + );
1408 + }
1139 1409
1140 - $this->customizer->add_setting( 'betterdocs_archive_article_list_margin_top', [
1141 - 'default' => $this->defaults['betterdocs_archive_article_list_margin_top'],
1142 - 'capability' => 'edit_theme_options',
1143 - 'transport' => 'postMessage',
1144 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1145 - ] );
1410 + public function content_header_layout_7() {
1411 + $this->customizer->add_setting(
1412 + 'content_header_layout_7',
1413 + [
1414 + 'default' => $this->defaults['content_header_layout_7'],
1415 + 'sanitize_callback' => 'esc_html'
1416 + ]
1417 + );
1146 1418
1147 - $this->customizer->add_control( new DimensionControl(
1148 - $this->customizer, 'betterdocs_archive_article_list_margin_top', [
1149 - 'type' => 'betterdocs-dimension',
1150 - 'section' => 'betterdocs_archive_page_settings',
1151 - 'settings' => 'betterdocs_archive_article_list_margin_top',
1152 - 'label' => __( 'Top', 'betterdocs' ),
1153 - 'input_attrs' => [
1154 - 'class' => 'betterdocs_archive_article_list_margin betterdocs-dimension'
1155 - ]
1156 - ] )
1157 - );
1419 + $this->customizer->add_control(
1420 + new SeparatorControl(
1421 + $this->customizer,
1422 + 'content_header_layout_7',
1423 + [
1424 + 'label' => __( 'Content Header', 'betterdocs' ),
1425 + 'settings' => 'content_header_layout_7',
1426 + 'section' => 'betterdocs_archive_page_settings'
1427 + ]
1428 + )
1429 + );
1430 + }
1158 1431
1159 - $this->customizer->add_setting( 'betterdocs_archive_article_list_margin_right', [
1160 - 'default' => $this->defaults['betterdocs_archive_article_list_margin_right'],
1161 - 'capability' => 'edit_theme_options',
1162 - 'transport' => 'postMessage',
1163 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1432 + public function content_header_title_tag_layout7() {
1433 + $this->customizer->add_setting(
1434 + 'content_header_title_tag_layout7',
1435 + [
1436 + 'default' => $this->defaults['content_header_title_tag_layout7'],
1437 + 'capability' => 'edit_theme_options',
1438 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
1439 + ]
1440 + );
1164 1441
1165 - ] );
1442 + $this->customizer->add_control(
1443 + new WP_Customize_Control(
1444 + $this->customizer,
1445 + 'content_header_title_tag_layout7',
1446 + [
1447 + 'label' => __( 'Category Title Tag', 'betterdocs' ),
1448 + 'section' => 'betterdocs_archive_page_settings',
1449 + 'settings' => 'content_header_title_tag_layout7',
1450 + 'type' => 'select',
1451 + 'choices' => [
1452 + 'h1' => 'h1',
1453 + 'h2' => 'h2',
1454 + 'h3' => 'h3',
1455 + 'h4' => 'h4',
1456 + 'h5' => 'h5',
1457 + 'h6' => 'h6',
1458 + 'p' => 'p'
1459 + ]
1460 + ]
1461 + )
1462 + );
1463 + }
1166 1464
1167 - $this->customizer->add_control( new DimensionControl(
1168 - $this->customizer, 'betterdocs_archive_article_list_margin_right', [
1169 - 'type' => 'betterdocs-dimension',
1170 - 'section' => 'betterdocs_archive_page_settings',
1171 - 'settings' => 'betterdocs_archive_article_list_margin_right',
1172 - 'label' => __( 'Right', 'betterdocs' ),
1173 - 'input_attrs' => [
1174 - 'class' => 'betterdocs_archive_article_list_margin betterdocs-dimension'
1175 - ]
1176 - ] )
1177 - );
1465 + public function content_header_background_layout_7() {
1466 + $this->customizer->add_setting(
1467 + 'content_header_background_layout_7',
1468 + [
1469 + 'default' => $this->defaults['content_header_background_layout_7'],
1470 + 'capability' => 'edit_theme_options',
1471 + 'transport' => 'postMessage',
1472 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1473 + ]
1474 + );
1178 1475
1179 - $this->customizer->add_setting( 'betterdocs_archive_article_list_margin_bottom', [
1180 - 'default' => $this->defaults['betterdocs_archive_article_list_margin_bottom'],
1181 - 'capability' => 'edit_theme_options',
1182 - 'transport' => 'postMessage',
1183 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1476 + $this->customizer->add_control(
1477 + new AlphaColorControl(
1478 + $this->customizer,
1479 + 'content_header_background_layout_7',
1480 + [
1481 + 'label' => __( 'Background Color', 'betterdocs' ),
1482 + 'section' => 'betterdocs_archive_page_settings',
1483 + 'settings' => 'content_header_background_layout_7'
1484 + ]
1485 + )
1486 + );
1487 + }
1184 1488
1185 - ] );
1489 + public function content_header_background_hover_layout_7() {
1490 + $this->customizer->add_setting(
1491 + 'content_header_background_hover_layout_7',
1492 + [
1493 + 'default' => $this->defaults['content_header_background_hover_layout_7'],
1494 + 'capability' => 'edit_theme_options',
1495 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1496 + ]
1497 + );
1186 1498
1187 - $this->customizer->add_control( new DimensionControl(
1188 - $this->customizer, 'betterdocs_archive_article_list_margin_bottom', [
1189 - 'type' => 'betterdocs-dimension',
1190 - 'section' => 'betterdocs_archive_page_settings',
1191 - 'settings' => 'betterdocs_archive_article_list_margin_bottom',
1192 - 'label' => __( 'Bottom', 'betterdocs' ),
1193 - 'input_attrs' => [
1194 - 'class' => 'betterdocs_archive_article_list_margin betterdocs-dimension'
1195 - ]
1196 - ] )
1197 - );
1499 + $this->customizer->add_control(
1500 + new AlphaColorControl(
1501 + $this->customizer,
1502 + 'content_header_background_hover_layout_7',
1503 + [
1504 + 'label' => __( 'Background Hover Color', 'betterdocs' ),
1505 + 'section' => 'betterdocs_archive_page_settings',
1506 + 'settings' => 'content_header_background_hover_layout_7'
1507 + ]
1508 + )
1509 + );
1510 + }
1198 1511
1199 - $this->customizer->add_setting( 'betterdocs_archive_article_list_margin_left', [
1200 - 'default' => $this->defaults['betterdocs_archive_article_list_margin_left'],
1201 - 'capability' => 'edit_theme_options',
1202 - 'transport' => 'postMessage',
1203 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1512 + public function content_header_background_image_size() {
1513 + $this->customizer->add_setting(
1514 + 'content_header_background_image_size_layout_7',
1515 + [
1516 + 'default' => $this->defaults['content_header_background_image_size_layout_7'],
1517 + 'capability' => 'edit_theme_options',
1518 + 'transport' => 'postMessage',
1519 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1204 1520
1205 - ] );
1521 + ]
1522 + );
1206 1523
1207 - $this->customizer->add_control( new DimensionControl(
1208 - $this->customizer, 'betterdocs_archive_article_list_margin_left', [
1209 - 'type' => 'betterdocs-dimension',
1210 - 'section' => 'betterdocs_archive_page_settings',
1211 - 'settings' => 'betterdocs_archive_article_list_margin_left',
1212 - 'label' => __( 'Left', 'betterdocs' ),
1213 - 'input_attrs' => [
1214 - 'class' => 'betterdocs_archive_article_list_margin betterdocs-dimension'
1215 - ]
1216 - ] )
1217 - );
1218 - }
1524 + $this->customizer->add_control(
1525 + new RangeValueControl(
1526 + $this->customizer,
1527 + 'content_header_background_image_size_layout_7',
1528 + [
1529 + 'type' => 'betterdocs-range-value',
1530 + 'section' => 'betterdocs_archive_page_settings',
1531 + 'settings' => 'content_header_background_image_size_layout_7',
1532 + 'label' => __( 'Image Size', 'betterdocs' ),
1533 + 'input_attrs' => [
1534 + 'min' => 0,
1535 + 'max' => 100,
1536 + 'step' => 1,
1537 + 'suffix' => 'px'
1538 + ]
1539 + ]
1540 + )
1541 + );
1542 + }
1219 1543
1220 - public function article_subcategory_color() {
1221 - $this->customizer->add_setting( 'betterdocs_archive_article_subcategory_color', [
1222 - 'default' => $this->defaults['betterdocs_archive_article_subcategory_color'],
1223 - 'capability' => 'edit_theme_options',
1224 - 'transport' => 'postMessage',
1225 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1226 - ] );
1544 + public function content_header_background_title_font_size() {
1545 + $this->customizer->add_setting(
1546 + 'content_header_background_title_font_size_layout_7',
1547 + [
1548 + 'default' => $this->defaults['content_header_background_title_font_size_layout_7'],
1549 + 'capability' => 'edit_theme_options',
1550 + 'transport' => 'postMessage',
1551 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1227 1552
1228 - $this->customizer->add_control(
1229 - new AlphaColorControl(
1230 - $this->customizer,
1231 - 'betterdocs_archive_article_subcategory_color',
1232 - [
1233 - 'label' => __( 'Docs Subcategory Color', 'betterdocs' ),
1234 - 'section' => 'betterdocs_archive_page_settings',
1235 - 'settings' => 'betterdocs_archive_article_subcategory_color',
1236 - 'priority' => 44
1237 - ]
1238 - )
1239 - );
1240 - }
1553 + ]
1554 + );
1241 1555
1242 - public function article_subcategory_hover_color() {
1243 - $this->customizer->add_setting( 'betterdocs_archive_article_subcategory_hover_color', [
1244 - 'default' => $this->defaults['betterdocs_archive_article_subcategory_hover_color'],
1245 - 'capability' => 'edit_theme_options',
1246 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1247 - ] );
1556 + $this->customizer->add_control(
1557 + new RangeValueControl(
1558 + $this->customizer,
1559 + 'content_header_background_title_font_size_layout_7',
1560 + [
1561 + 'type' => 'betterdocs-range-value',
1562 + 'section' => 'betterdocs_archive_page_settings',
1563 + 'settings' => 'content_header_background_title_font_size_layout_7',
1564 + 'label' => __( 'Title Font Size', 'betterdocs' ),
1565 + 'input_attrs' => [
1566 + 'min' => 0,
1567 + 'max' => 50,
1568 + 'step' => 1,
1569 + 'suffix' => 'px'
1570 + ]
1571 + ]
1572 + )
1573 + );
1574 + }
1248 1575
1249 - $this->customizer->add_control(
1250 - new AlphaColorControl(
1251 - $this->customizer,
1252 - 'betterdocs_archive_article_subcategory_hover_color',
1253 - [
1254 - 'label' => __( 'Docs Subcategory Hover Color', 'betterdocs' ),
1255 - 'section' => 'betterdocs_archive_page_settings',
1256 - 'settings' => 'betterdocs_archive_article_subcategory_hover_color',
1257 - 'priority' => 44
1258 - ]
1259 - )
1260 - );
1261 - }
1576 + public function content_header_background_title_color() {
1577 + $this->customizer->add_setting(
1578 + 'content_header_background_title_color_layout_7',
1579 + [
1580 + 'default' => $this->defaults['content_header_background_title_color_layout_7'],
1581 + 'capability' => 'edit_theme_options',
1582 + 'transport' => 'postMessage',
1583 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1584 + ]
1585 + );
1262 1586
1263 - public function article_subcategory_font_size() {
1264 - $this->customizer->add_setting( 'betterdocs_archive_article_subcategory_font_size', [
1265 - 'default' => $this->defaults['betterdocs_archive_article_subcategory_font_size'],
1266 - 'capability' => 'edit_theme_options',
1267 - 'transport' => 'postMessage',
1268 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1587 + $this->customizer->add_control(
1588 + new AlphaColorControl(
1589 + $this->customizer,
1590 + 'content_header_background_title_color_layout_7',
1591 + [
1592 + 'label' => __( 'Title Color', 'betterdocs' ),
1593 + 'section' => 'betterdocs_archive_page_settings',
1594 + 'settings' => 'content_header_background_title_color_layout_7',
1595 + ]
1596 + )
1597 + );
1598 + }
1269 1599
1270 - ] );
1600 + public function content_header_background_count_font_size() {
1601 + $this->customizer->add_setting(
1602 + 'content_header_background_count_font_size_layout_7',
1603 + [
1604 + 'default' => $this->defaults['content_header_background_count_font_size_layout_7'],
1605 + 'capability' => 'edit_theme_options',
1606 + 'transport' => 'postMessage',
1607 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1271 1608
1272 - $this->customizer->add_control( new RangeValueControl(
1273 - $this->customizer, 'betterdocs_archive_article_subcategory_font_size', [
1274 - 'type' => 'betterdocs-range-value',
1275 - 'section' => 'betterdocs_archive_page_settings',
1276 - 'settings' => 'betterdocs_archive_article_subcategory_font_size',
1277 - 'label' => __( 'Docs Subcategory Font Size', 'betterdocs' ),
1278 - 'priority' => 44,
1279 - 'input_attrs' => [
1280 - 'class' => '',
1281 - 'min' => 0,
1282 - 'max' => 50,
1283 - 'step' => 1,
1284 - 'suffix' => 'px' //optional suffix
1285 - ]
1286 - ] )
1287 - );
1288 - }
1609 + ]
1610 + );
1289 1611
1290 - public function subcategory_icon_color() {
1291 - $this->customizer->add_setting( 'betterdocs_archive_subcategory_icon_color', [
1292 - 'default' => $this->defaults['betterdocs_archive_subcategory_icon_color'],
1293 - 'capability' => 'edit_theme_options',
1294 - 'transport' => 'postMessage',
1295 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1296 - ] );
1612 + $this->customizer->add_control(
1613 + new RangeValueControl(
1614 + $this->customizer,
1615 + 'content_header_background_count_font_size_layout_7',
1616 + [
1617 + 'type' => 'betterdocs-range-value',
1618 + 'section' => 'betterdocs_archive_page_settings',
1619 + 'settings' => 'content_header_background_count_font_size_layout_7',
1620 + 'label' => __( 'Count Font Size', 'betterdocs' ),
1621 + 'input_attrs' => [
1622 + 'min' => 0,
1623 + 'max' => 50,
1624 + 'step' => 1,
1625 + 'suffix' => 'px'
1626 + ]
1627 + ]
1628 + )
1629 + );
1630 + }
1297 1631
1298 - $this->customizer->add_control(
1299 - new AlphaColorControl(
1300 - $this->customizer,
1301 - 'betterdocs_archive_subcategory_icon_color',
1302 - [
1303 - 'label' => __( 'Subcategory Icon Color', 'betterdocs' ),
1304 - 'section' => 'betterdocs_archive_page_settings',
1305 - 'settings' => 'betterdocs_archive_subcategory_icon_color',
1306 - 'priority' => 44
1307 - ]
1308 - )
1309 - );
1310 - }
1632 + public function content_header_background_count_color() {
1633 + $this->customizer->add_setting(
1634 + 'content_header_background_count_color_layout_7',
1635 + [
1636 + 'default' => $this->defaults['content_header_background_count_color_layout_7'],
1637 + 'capability' => 'edit_theme_options',
1638 + 'transport' => 'postMessage',
1639 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1640 + ]
1641 + );
1311 1642
1312 - public function subcategory_icon_font_size() {
1313 - $this->customizer->add_setting( 'betterdocs_archive_subcategory_icon_font_size', [
1314 - 'default' => $this->defaults['betterdocs_archive_subcategory_icon_font_size'],
1315 - 'capability' => 'edit_theme_options',
1316 - 'transport' => 'postMessage',
1317 - 'sanitize_callback' => [$this->sanitizer, 'integer']
1643 + $this->customizer->add_control(
1644 + new AlphaColorControl(
1645 + $this->customizer,
1646 + 'content_header_background_count_color_layout_7',
1647 + [
1648 + 'label' => __( 'Count Color', 'betterdocs' ),
1649 + 'section' => 'betterdocs_archive_page_settings',
1650 + 'settings' => 'content_header_background_count_color_layout_7',
1651 + ]
1652 + )
1653 + );
1654 + }
1318 1655
1319 - ] );
1656 + public function archive_category_column_settings() {
1657 + $this->customizer->add_setting(
1658 + 'archive_category_column_settings_layout_7',
1659 + [
1660 + 'default' => $this->defaults['archive_category_column_settings_layout_7'],
1661 + 'sanitize_callback' => 'esc_html'
1662 + ]
1663 + );
1320 1664
1321 - $this->customizer->add_control( new RangeValueControl(
1322 - $this->customizer, 'betterdocs_archive_subcategory_icon_font_size', [
1323 - 'type' => 'betterdocs-range-value',
1324 - 'section' => 'betterdocs_archive_page_settings',
1325 - 'settings' => 'betterdocs_archive_subcategory_icon_font_size',
1326 - 'label' => __( 'Subcategory Icon Font Size', 'betterdocs' ),
1327 - 'priority' => 44,
1328 - 'input_attrs' => [
1329 - 'class' => '',
1330 - 'min' => 0,
1331 - 'max' => 50,
1332 - 'step' => 1,
1333 - 'suffix' => 'px' //optional suffix
1334 - ]
1335 - ] )
1336 - );
1337 - }
1665 + $this->customizer->add_control(
1666 + new SeparatorControl(
1667 + $this->customizer,
1668 + 'archive_category_column_settings_layout_7',
1669 + [
1670 + 'label' => __( 'Category Column Settings', 'betterdocs' ),
1671 + 'settings' => 'archive_category_column_settings_layout_7',
1672 + 'section' => 'betterdocs_archive_page_settings'
1673 + ]
1674 + )
1675 + );
1676 + }
1338 1677
1339 - public function subcategory_article_list_color() {
1340 - $this->customizer->add_setting( 'betterdocs_archive_subcategory_article_list_color', [
1341 - 'default' => $this->defaults['betterdocs_archive_subcategory_article_list_color'],
1342 - 'capability' => 'edit_theme_options',
1343 - 'transport' => 'postMessage',
1344 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1345 - ] );
1678 + public function archive_column_title_tag_layout7() {
1679 + $this->customizer->add_setting(
1680 + 'archive_column_title_tag_layout7',
1681 + [
1682 + 'default' => $this->defaults['archive_column_title_tag_layout7'],
1683 + 'capability' => 'edit_theme_options',
1684 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
1685 + ]
1686 + );
1346 1687
1347 - $this->customizer->add_control(
1348 - new AlphaColorControl(
1349 - $this->customizer,
1350 - 'betterdocs_archive_subcategory_article_list_color',
1351 - [
1352 - 'label' => __( 'Subcategory Docs List Color', 'betterdocs' ),
1353 - 'section' => 'betterdocs_archive_page_settings',
1354 - 'settings' => 'betterdocs_archive_subcategory_article_list_color',
1355 - 'priority' => 44
1356 - ]
1357 - )
1358 - );
1359 - }
1688 + $this->customizer->add_control(
1689 + new WP_Customize_Control(
1690 + $this->customizer,
1691 + 'archive_column_title_tag_layout7',
1692 + [
1693 + 'label' => __( 'Category Title Tag', 'betterdocs' ),
1694 + 'section' => 'betterdocs_archive_page_settings',
1695 + 'settings' => 'archive_column_title_tag_layout7',
1696 + 'type' => 'select',
1697 + 'choices' => [
1698 + 'h1' => 'h1',
1699 + 'h2' => 'h2',
1700 + 'h3' => 'h3',
1701 + 'h4' => 'h4',
1702 + 'h5' => 'h5',
1703 + 'h6' => 'h6',
1704 + 'p' => 'p'
1705 + ]
1706 + ]
1707 + )
1708 + );
1709 + }
1360 1710
1361 - public function article_list_hover_color() {
1362 - $this->customizer->add_setting( 'betterdocs_archive_subcategory_article_list_hover_color', [
1363 - 'default' => $this->defaults['betterdocs_archive_subcategory_article_list_hover_color'],
1364 - 'capability' => 'edit_theme_options',
1365 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1366 - ] );
1711 + public function archive_column_background_color_layout_7() {
1712 + $this->customizer->add_setting(
1713 + 'archive_column_background_color_layout_7',
1714 + [
1715 + 'default' => $this->defaults['archive_column_background_color_layout_7'],
1716 + 'capability' => 'edit_theme_options',
1717 + 'transport' => 'postMessage',
1718 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1719 + ]
1720 + );
1367 1721
1368 - $this->customizer->add_control(
1369 - new AlphaColorControl(
1370 - $this->customizer,
1371 - 'betterdocs_archive_subcategory_article_list_hover_color',
1372 - [
1373 - 'label' => __( 'Subcategory List Hover Color', 'betterdocs' ),
1374 - 'section' => 'betterdocs_archive_page_settings',
1375 - 'settings' => 'betterdocs_archive_subcategory_article_list_hover_color',
1376 - 'priority' => 44
1377 - ]
1378 - )
1379 - );
1380 - }
1722 + $this->customizer->add_control(
1723 + new AlphaColorControl(
1724 + $this->customizer,
1725 + 'archive_column_background_color_layout_7',
1726 + [
1727 + 'label' => __( 'Column Background Color', 'betterdocs' ),
1728 + 'section' => 'betterdocs_archive_page_settings',
1729 + 'settings' => 'archive_column_background_color_layout_7',
1730 + ]
1731 + )
1732 + );
1733 + }
1381 1734
1382 - public function subcategory_article_list_icon_color() {
1383 - $this->customizer->add_setting( 'betterdocs_archive_subcategory_article_list_icon_color', [
1384 - 'default' => $this->defaults['betterdocs_archive_subcategory_article_list_icon_color'],
1385 - 'capability' => 'edit_theme_options',
1386 - 'transport' => 'postMessage',
1387 - 'sanitize_callback' => [$this->sanitizer, 'rgba']
1388 - ] );
1389 1735
1390 - $this->customizer->add_control(
1391 - new AlphaColorControl(
1392 - $this->customizer,
1393 - 'betterdocs_archive_subcategory_article_list_icon_color',
1394 - [
1395 - 'label' => __( 'Subcategory List Icon Color', 'betterdocs' ),
1396 - 'section' => 'betterdocs_archive_page_settings',
1397 - 'settings' => 'betterdocs_archive_subcategory_article_list_icon_color',
1398 - 'priority' => 44
1399 - ]
1400 - )
1401 - );
1402 - }
1736 + public function archive_column_background_color_hover_layout_7() {
1737 + $this->customizer->add_setting(
1738 + 'betterdocs_archive_column_hover_bg_color_layout_7',
1739 + [
1740 + 'default' => $this->defaults['betterdocs_archive_column_hover_bg_color_layout_7'],
1741 + 'capability' => 'edit_theme_options',
1742 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1743 + ]
1744 + );
1745 +
1746 + $this->customizer->add_control(
1747 + new AlphaColorControl(
1748 + $this->customizer,
1749 + 'betterdocs_archive_column_hover_bg_color_layout_7',
1750 + [
1751 + 'label' => __( 'Column Hover Background Color', 'betterdocs' ),
1752 + 'section' => 'betterdocs_archive_page_settings',
1753 + 'settings' => 'betterdocs_archive_column_hover_bg_color_layout_7',
1754 + ]
1755 + )
1756 + );
1757 + }
1758 +
1759 + public function archive_column_padding_layout_7() {
1760 + $this->customizer->add_setting(
1761 + 'betterdocs_archive_page_column_padding_layout_7',
1762 + [
1763 + 'default' => $this->defaults['betterdocs_archive_page_column_padding_layout_7'],
1764 + 'capability' => 'edit_theme_options',
1765 + 'transport' => 'postMessage',
1766 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1767 +
1768 + ]
1769 + );
1770 +
1771 + $this->customizer->add_control(
1772 + new TitleControl(
1773 + $this->customizer,
1774 + 'betterdocs_archive_page_column_padding_layout_7',
1775 + [
1776 + 'type' => 'betterdocs-title',
1777 + 'section' => 'betterdocs_archive_page_settings',
1778 + 'settings' => 'betterdocs_archive_page_column_padding_layout_7',
1779 + 'label' => __( 'Column Padding', 'betterdocs' ),
1780 + 'input_attrs' => [
1781 + 'id' => 'betterdocs_archive_page_column_padding_layout_7',
1782 + 'class' => 'betterdocs-dimension'
1783 + ]
1784 + ]
1785 + )
1786 + );
1787 +
1788 + $this->customizer->add_setting(
1789 + 'betterdocs_archive_page_column_padding_top_layout_7',
1790 + [
1791 + 'default' => $this->defaults['betterdocs_archive_page_column_padding_top_layout_7'],
1792 + 'capability' => 'edit_theme_options',
1793 + 'transport' => 'postMessage',
1794 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1795 + ]
1796 + );
1797 +
1798 + $this->customizer->add_control(
1799 + new DimensionControl(
1800 + $this->customizer,
1801 + 'betterdocs_archive_page_column_padding_top_layout_7',
1802 + [
1803 + 'type' => 'betterdocs-dimension',
1804 + 'section' => 'betterdocs_archive_page_settings',
1805 + 'settings' => 'betterdocs_archive_page_column_padding_top_layout_7',
1806 + 'label' => __( 'Top', 'betterdocs' ),
1807 + 'input_attrs' => [
1808 + 'class' => 'betterdocs_archive_page_column_padding_layout_7 betterdocs-dimension'
1809 + ]
1810 + ]
1811 + )
1812 + );
1813 +
1814 + $this->customizer->add_setting(
1815 + 'betterdocs_archive_page_column_padding_right_layout_7',
1816 + [
1817 + 'default' => $this->defaults['betterdocs_archive_page_column_padding_right_layout_7'],
1818 + 'capability' => 'edit_theme_options',
1819 + 'transport' => 'postMessage',
1820 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1821 +
1822 + ]
1823 + );
1824 +
1825 + $this->customizer->add_control(
1826 + new DimensionControl(
1827 + $this->customizer,
1828 + 'betterdocs_archive_page_column_padding_right_layout_7',
1829 + [
1830 + 'type' => 'betterdocs-dimension',
1831 + 'section' => 'betterdocs_archive_page_settings',
1832 + 'settings' => 'betterdocs_archive_page_column_padding_right_layout_7',
1833 + 'label' => __( 'Right', 'betterdocs' ),
1834 + 'input_attrs' => [
1835 + 'class' => 'betterdocs_archive_page_column_padding_layout_7 betterdocs-dimension'
1836 + ]
1837 + ]
1838 + )
1839 + );
1840 +
1841 + $this->customizer->add_setting(
1842 + 'betterdocs_archive_page_column_padding_bottom_layout_7',
1843 + [
1844 + 'default' => $this->defaults['betterdocs_archive_page_column_padding_bottom_layout_7'],
1845 + 'capability' => 'edit_theme_options',
1846 + 'transport' => 'postMessage',
1847 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1848 +
1849 + ]
1850 + );
1851 +
1852 + $this->customizer->add_control(
1853 + new DimensionControl(
1854 + $this->customizer,
1855 + 'betterdocs_archive_page_column_padding_bottom_layout_7',
1856 + [
1857 + 'type' => 'betterdocs-dimension',
1858 + 'section' => 'betterdocs_archive_page_settings',
1859 + 'settings' => 'betterdocs_archive_page_column_padding_bottom_layout_7',
1860 + 'label' => __( 'Bottom', 'betterdocs' ),
1861 + 'input_attrs' => [
1862 + 'class' => 'betterdocs_archive_page_column_padding_layout_7 betterdocs-dimension'
1863 + ]
1864 + ]
1865 + )
1866 + );
1867 +
1868 + $this->customizer->add_setting(
1869 + 'betterdocs_archive_page_column_padding_left_layout_7',
1870 + [
1871 + 'default' => $this->defaults['betterdocs_archive_page_column_padding_left_layout_7'],
1872 + 'capability' => 'edit_theme_options',
1873 + 'transport' => 'postMessage',
1874 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1875 + ]
1876 + );
1877 +
1878 + $this->customizer->add_control(
1879 + new DimensionControl(
1880 + $this->customizer,
1881 + 'betterdocs_archive_page_column_padding_left_layout_7',
1882 + [
1883 + 'type' => 'betterdocs-dimension',
1884 + 'section' => 'betterdocs_archive_page_settings',
1885 + 'settings' => 'betterdocs_archive_page_column_padding_left_layout_7',
1886 + 'label' => __( 'Left', 'betterdocs' ),
1887 + 'input_attrs' => [
1888 + 'class' => 'betterdocs_archive_page_column_padding_layout_7 betterdocs-dimension'
1889 + ]
1890 + ]
1891 + )
1892 + );
1893 + }
1894 +
1895 + public function archive_column_border_color_layout_7() {
1896 + $this->customizer->add_setting(
1897 + 'archive_column_border_color_layout_7',
1898 + [
1899 + 'default' => $this->defaults['archive_column_border_color_layout_7'],
1900 + 'capability' => 'edit_theme_options',
1901 + 'transport' => 'postMessage',
1902 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1903 + ]
1904 + );
1905 +
1906 + $this->customizer->add_control(
1907 + new AlphaColorControl(
1908 + $this->customizer,
1909 + 'archive_column_border_color_layout_7',
1910 + [
1911 + 'label' => __( 'Column Border Color', 'betterdocs' ),
1912 + 'section' => 'betterdocs_archive_page_settings',
1913 + 'settings' => 'archive_column_border_color_layout_7',
1914 + ]
1915 + )
1916 + );
1917 + }
1918 +
1919 +
1920 + public function archive_category_icon_size_layout_7() {
1921 + $this->customizer->add_setting(
1922 + 'betterdocs_archive_page_cat_icon_size_layout_7',
1923 + [
1924 + 'default' => $this->defaults['betterdocs_archive_page_cat_icon_size_layout_7'],
1925 + 'capability' => 'edit_theme_options',
1926 + 'transport' => 'postMessage',
1927 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1928 + ]
1929 + );
1930 +
1931 + $this->customizer->add_control(
1932 + new RangeValueControl(
1933 + $this->customizer,
1934 + 'betterdocs_archive_page_cat_icon_size_layout_7',
1935 + [
1936 + 'type' => 'betterdocs-range-value',
1937 + 'section' => 'betterdocs_archive_page_settings',
1938 + 'settings' => 'betterdocs_archive_page_cat_icon_size_layout_7',
1939 + 'label' => __( 'Icon Size', 'betterdocs' ),
1940 + 'input_attrs' => [
1941 + 'class' => '',
1942 + 'min' => 0,
1943 + 'max' => 200,
1944 + 'step' => 1,
1945 + 'suffix' => 'px' //optional suffix
1946 + ]
1947 + ]
1948 + )
1949 + );
1950 + }
1951 +
1952 +
1953 + public function archive_category_title_font_size_layout_7() {
1954 +
1955 + $this->customizer->add_setting(
1956 + 'betterdocs_archive_page_cat_title_font_size_layout_7',
1957 + [
1958 + 'default' => $this->defaults['betterdocs_archive_page_cat_title_font_size_layout_7'],
1959 + 'capability' => 'edit_theme_options',
1960 + 'transport' => 'postMessage',
1961 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
1962 +
1963 + ]
1964 + );
1965 +
1966 + $this->customizer->add_control(
1967 + new RangeValueControl(
1968 + $this->customizer,
1969 + 'betterdocs_archive_page_cat_title_font_size_layout_7',
1970 + [
1971 + 'type' => 'betterdocs-range-value',
1972 + 'section' => 'betterdocs_archive_page_settings',
1973 + 'settings' => 'betterdocs_archive_page_cat_title_font_size_layout_7',
1974 + 'label' => __( 'Category Title Font Size', 'betterdocs' ),
1975 + 'input_attrs' => [
1976 + 'class' => '',
1977 + 'min' => 0,
1978 + 'max' => 100,
1979 + 'step' => 1,
1980 + 'suffix' => 'px' //optional suffix
1981 + ]
1982 + ]
1983 + )
1984 + );
1985 + }
1986 +
1987 + public function archive_category_title_color() {
1988 + $this->customizer->add_setting(
1989 + 'betterdocs_archive_page_cat_title_color_layout_7',
1990 + [
1991 + 'default' => $this->defaults['betterdocs_archive_page_cat_title_color_layout_7'],
1992 + 'capability' => 'edit_theme_options',
1993 + 'transport' => 'postMessage',
1994 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
1995 + ]
1996 + );
1997 +
1998 + $this->customizer->add_control(
1999 + new AlphaColorControl(
2000 + $this->customizer,
2001 + 'betterdocs_archive_page_cat_title_color_layout_7',
2002 + [
2003 + 'label' => __( 'Category Title Color', 'betterdocs' ),
2004 + 'section' => 'betterdocs_archive_page_settings',
2005 + 'settings' => 'betterdocs_archive_page_cat_title_color_layout_7',
2006 + ]
2007 + )
2008 + );
2009 + }
2010 +
2011 + public function archive_category_title_color_hover_layout_7() {
2012 + $this->customizer->add_setting(
2013 + 'archive_category_title_color_hover_layout_7',
2014 + [
2015 + 'default' => $this->defaults['archive_category_title_color_hover_layout_7'],
2016 + 'capability' => 'edit_theme_options',
2017 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2018 + ]
2019 + );
2020 +
2021 + $this->customizer->add_control(
2022 + new AlphaColorControl(
2023 + $this->customizer,
2024 + 'archive_category_title_color_hover_layout_7',
2025 + [
2026 + 'label' => __( 'Category Title Hover Color', 'betterdocs' ),
2027 + 'section' => 'betterdocs_archive_page_settings',
2028 + 'settings' => 'archive_category_title_color_hover_layout_7',
2029 + ]
2030 + )
2031 + );
2032 + }
2033 +
2034 + public function archive_category_margin_layout_7() {
2035 + $this->customizer->add_setting(
2036 + 'archive_category_margin_layout_7',
2037 + [
2038 + 'default' => $this->defaults['archive_category_margin_layout_7'],
2039 + 'capability' => 'edit_theme_options',
2040 + 'transport' => 'postMessage',
2041 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2042 + ]
2043 + );
2044 +
2045 + $this->customizer->add_control(
2046 + new TitleControl(
2047 + $this->customizer,
2048 + 'archive_category_margin_layout_7',
2049 + [
2050 + 'type' => 'betterdocs-title',
2051 + 'section' => 'betterdocs_archive_page_settings',
2052 + 'settings' => 'archive_category_margin_layout_7',
2053 + 'label' => __( 'Archive Title Margin', 'betterdocs' ),
2054 + 'input_attrs' => [
2055 + 'id' => 'archive_category_margin_layout_7',
2056 + 'class' => 'betterdocs-dimension'
2057 + ]
2058 + ]
2059 + )
2060 + );
2061 +
2062 + $this->customizer->add_setting(
2063 + 'archive_category_margin_top_layout_7',
2064 + [
2065 + 'default' => $this->defaults['archive_category_margin_top_layout_7'],
2066 + 'capability' => 'edit_theme_options',
2067 + 'transport' => 'postMessage',
2068 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2069 + ]
2070 + );
2071 +
2072 + $this->customizer->add_control(
2073 + new DimensionControl(
2074 + $this->customizer,
2075 + 'archive_category_margin_top_layout_7',
2076 + [
2077 + 'type' => 'betterdocs-dimension',
2078 + 'section' => 'betterdocs_archive_page_settings',
2079 + 'settings' => 'archive_category_margin_top_layout_7',
2080 + 'label' => __( 'Top', 'betterdocs' ),
2081 + 'input_attrs' => [
2082 + 'class' => 'archive_category_margin_layout_7 betterdocs-dimension'
2083 + ]
2084 + ]
2085 + )
2086 + );
2087 +
2088 + $this->customizer->add_setting(
2089 + 'archive_category_margin_right_layout_7',
2090 + [
2091 + 'default' => $this->defaults['archive_category_margin_right_layout_7'],
2092 + 'capability' => 'edit_theme_options',
2093 + 'transport' => 'postMessage',
2094 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2095 +
2096 + ]
2097 + );
2098 +
2099 + $this->customizer->add_control(
2100 + new DimensionControl(
2101 + $this->customizer,
2102 + 'archive_category_margin_right_layout_7',
2103 + [
2104 + 'type' => 'betterdocs-dimension',
2105 + 'section' => 'betterdocs_archive_page_settings',
2106 + 'settings' => 'archive_category_margin_right_layout_7',
2107 + 'label' => __( 'Right', 'betterdocs' ),
2108 + 'input_attrs' => [
2109 + 'class' => 'archive_category_margin_layout_7 betterdocs-dimension'
2110 + ]
2111 + ]
2112 + )
2113 + );
2114 +
2115 + $this->customizer->add_setting(
2116 + 'archive_category_margin_bottom_layout_7',
2117 + [
2118 + 'default' => $this->defaults['archive_category_margin_bottom_layout_7'],
2119 + 'capability' => 'edit_theme_options',
2120 + 'transport' => 'postMessage',
2121 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2122 +
2123 + ]
2124 + );
2125 +
2126 + $this->customizer->add_control(
2127 + new DimensionControl(
2128 + $this->customizer,
2129 + 'archive_category_margin_bottom_layout_7',
2130 + [
2131 + 'type' => 'betterdocs-dimension',
2132 + 'section' => 'betterdocs_archive_page_settings',
2133 + 'settings' => 'archive_category_margin_bottom_layout_7',
2134 + 'label' => __( 'Bottom', 'betterdocs' ),
2135 + 'input_attrs' => [
2136 + 'class' => 'archive_category_margin_layout_7 betterdocs-dimension'
2137 + ]
2138 + ]
2139 + )
2140 + );
2141 +
2142 + $this->customizer->add_setting(
2143 + 'archive_category_margin_left_layout_7',
2144 + [
2145 + 'default' => $this->defaults['archive_category_margin_left_layout_7'],
2146 + 'capability' => 'edit_theme_options',
2147 + 'transport' => 'postMessage',
2148 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2149 + ]
2150 + );
2151 +
2152 + $this->customizer->add_control(
2153 + new DimensionControl(
2154 + $this->customizer,
2155 + 'archive_category_margin_left_layout_7',
2156 + [
2157 + 'type' => 'betterdocs-dimension',
2158 + 'section' => 'betterdocs_archive_page_settings',
2159 + 'settings' => 'archive_category_margin_left_layout_7',
2160 + 'label' => __( 'Left', 'betterdocs' ),
2161 + 'input_attrs' => [
2162 + 'class' => 'archive_category_margin_layout_7 betterdocs-dimension'
2163 + ]
2164 + ]
2165 + )
2166 + );
2167 + }
2168 +
2169 + public function archive_page_item_count_font_size_layout_7() {
2170 + $this->customizer->add_setting(
2171 + 'betterdocs_archive_page_item_count_font_size_layout_7',
2172 + [
2173 + 'default' => $this->defaults['betterdocs_archive_page_item_count_font_size_layout_7'],
2174 + 'capability' => 'edit_theme_options',
2175 + 'transport' => 'postMessage',
2176 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2177 + ]
2178 + );
2179 +
2180 + $this->customizer->add_control(
2181 + new RangeValueControl(
2182 + $this->customizer,
2183 + 'betterdocs_archive_page_item_count_font_size_layout_7',
2184 + [
2185 + 'type' => 'betterdocs-range-value',
2186 + 'section' => 'betterdocs_archive_page_settings',
2187 + 'settings' => 'betterdocs_archive_page_item_count_font_size_layout_7',
2188 + 'label' => __( 'Column Count Font Size', 'betterdocs' ),
2189 + 'input_attrs' => [
2190 + 'class' => '',
2191 + 'min' => 0,
2192 + 'max' => 50,
2193 + 'step' => 1,
2194 + 'suffix' => 'px' //optional suffix
2195 + ]
2196 + ]
2197 + )
2198 + );
2199 + }
2200 +
2201 +
2202 + public function archive_doc_page_item_count_color_layout_7() {
2203 + $this->customizer->add_setting(
2204 + 'archive_betterdocs_doc_page_item_count_color_layout_7',
2205 + [
2206 + 'default' => $this->defaults['archive_betterdocs_doc_page_item_count_color_layout_7'],
2207 + 'capability' => 'edit_theme_options',
2208 + 'transport' => 'postMessage',
2209 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2210 + ]
2211 + );
2212 +
2213 + $this->customizer->add_control(
2214 + new AlphaColorControl(
2215 + $this->customizer,
2216 + 'archive_betterdocs_doc_page_item_count_color_layout_7',
2217 + [
2218 + 'label' => __( 'Column Count Color', 'betterdocs' ),
2219 + 'section' => 'betterdocs_archive_page_settings',
2220 + 'settings' => 'archive_betterdocs_doc_page_item_count_color_layout_7',
2221 + ]
2222 + )
2223 + );
2224 + }
2225 +
2226 + public function archive_page_item_count_hover_color_layout_7() {
2227 + $this->customizer->add_setting(
2228 + 'betterdocs_archive_page_item_count_hover_color_layout_7',
2229 + [
2230 + 'default' => $this->defaults['betterdocs_archive_page_item_count_hover_color_layout_7'],
2231 + 'capability' => 'edit_theme_options',
2232 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2233 + ]
2234 + );
2235 +
2236 + $this->customizer->add_control(
2237 + new AlphaColorControl(
2238 + $this->customizer,
2239 + 'betterdocs_archive_page_item_count_hover_color_layout_7',
2240 + [
2241 + 'label' => __( 'Column Count Hover Color', 'betterdocs' ),
2242 + 'section' => 'betterdocs_archive_page_settings',
2243 + 'settings' => 'betterdocs_archive_page_item_count_hover_color_layout_7',
2244 + ]
2245 + )
2246 + );
2247 + }
2248 +
2249 + public function archive_page_item_count_margin_layout_7() {
2250 + $this->customizer->add_setting(
2251 + 'archive_page_item_count_margin_layout_7',
2252 + [
2253 + 'default' => $this->defaults['archive_page_item_count_margin_layout_7'],
2254 + 'capability' => 'edit_theme_options',
2255 + 'transport' => 'postMessage',
2256 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2257 + ]
2258 + );
2259 +
2260 + $this->customizer->add_control(
2261 + new TitleControl(
2262 + $this->customizer,
2263 + 'archive_page_item_count_margin_layout_7',
2264 + [
2265 + 'type' => 'betterdocs-title',
2266 + 'section' => 'betterdocs_archive_page_settings',
2267 + 'settings' => 'archive_page_item_count_margin_layout_7',
2268 + 'label' => __( 'Column Count Margin', 'betterdocs' ),
2269 + 'input_attrs' => [
2270 + 'id' => 'archive_page_item_count_margin_layout_7',
2271 + 'class' => 'betterdocs-dimension'
2272 + ]
2273 + ]
2274 + )
2275 + );
2276 +
2277 + $this->customizer->add_setting(
2278 + 'archive_page_item_count_margin_top_layout_7',
2279 + [
2280 + 'default' => $this->defaults['archive_page_item_count_margin_top_layout_7'],
2281 + 'capability' => 'edit_theme_options',
2282 + 'transport' => 'postMessage',
2283 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2284 + ]
2285 + );
2286 +
2287 + $this->customizer->add_control(
2288 + new DimensionControl(
2289 + $this->customizer,
2290 + 'archive_page_item_count_margin_top_layout_7',
2291 + [
2292 + 'type' => 'betterdocs-dimension',
2293 + 'section' => 'betterdocs_archive_page_settings',
2294 + 'settings' => 'archive_page_item_count_margin_top_layout_7',
2295 + 'label' => __( 'Top', 'betterdocs' ),
2296 + 'input_attrs' => [
2297 + 'class' => 'archive_page_item_count_margin_layout_7 betterdocs-dimension'
2298 + ]
2299 + ]
2300 + )
2301 + );
2302 +
2303 + $this->customizer->add_setting(
2304 + 'archive_page_item_count_margin_right_layout_7',
2305 + [
2306 + 'default' => $this->defaults['archive_page_item_count_margin_right_layout_7'],
2307 + 'capability' => 'edit_theme_options',
2308 + 'transport' => 'postMessage',
2309 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2310 +
2311 + ]
2312 + );
2313 +
2314 + $this->customizer->add_control(
2315 + new DimensionControl(
2316 + $this->customizer,
2317 + 'archive_page_item_count_margin_right_layout_7',
2318 + [
2319 + 'type' => 'betterdocs-dimension',
2320 + 'section' => 'betterdocs_archive_page_settings',
2321 + 'settings' => 'archive_page_item_count_margin_right_layout_7',
2322 + 'label' => __( 'Right', 'betterdocs' ),
2323 + 'input_attrs' => [
2324 + 'class' => 'archive_page_item_count_margin_layout_7 betterdocs-dimension'
2325 + ]
2326 + ]
2327 + )
2328 + );
2329 +
2330 + $this->customizer->add_setting(
2331 + 'archive_page_item_count_margin_bottom_layout_7',
2332 + [
2333 + 'default' => $this->defaults['archive_page_item_count_margin_bottom_layout_7'],
2334 + 'capability' => 'edit_theme_options',
2335 + 'transport' => 'postMessage',
2336 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2337 +
2338 + ]
2339 + );
2340 +
2341 + $this->customizer->add_control(
2342 + new DimensionControl(
2343 + $this->customizer,
2344 + 'archive_page_item_count_margin_bottom_layout_7',
2345 + [
2346 + 'type' => 'betterdocs-dimension',
2347 + 'section' => 'betterdocs_archive_page_settings',
2348 + 'settings' => 'archive_page_item_count_margin_bottom_layout_7',
2349 + 'label' => __( 'Bottom', 'betterdocs' ),
2350 + 'input_attrs' => [
2351 + 'class' => 'archive_page_item_count_margin_layout_7 betterdocs-dimension'
2352 + ]
2353 + ]
2354 + )
2355 + );
2356 +
2357 + $this->customizer->add_setting(
2358 + 'archive_page_item_count_margin_left_layout_7',
2359 + [
2360 + 'default' => $this->defaults['archive_page_item_count_margin_left_layout_7'],
2361 + 'capability' => 'edit_theme_options',
2362 + 'transport' => 'postMessage',
2363 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2364 + ]
2365 + );
2366 +
2367 + $this->customizer->add_control(
2368 + new DimensionControl(
2369 + $this->customizer,
2370 + 'archive_page_item_count_margin_left_layout_7',
2371 + [
2372 + 'type' => 'betterdocs-dimension',
2373 + 'section' => 'betterdocs_archive_page_settings',
2374 + 'settings' => 'archive_page_item_count_margin_left_layout_7',
2375 + 'label' => __( 'Left', 'betterdocs' ),
2376 + 'input_attrs' => [
2377 + 'class' => 'archive_page_item_count_margin_layout_7 betterdocs-dimension'
2378 + ]
2379 + ]
2380 + )
2381 + );
2382 + }
2383 +
2384 + public function archive_last_updated_time_layout_7() {
2385 + $this->customizer->add_setting(
2386 + 'archive_last_updated_time_layout_7',
2387 + [
2388 + 'default' => $this->defaults['archive_last_updated_time_layout_7'],
2389 + 'sanitize_callback' => 'esc_html'
2390 + ]
2391 + );
2392 +
2393 + $this->customizer->add_control(
2394 + new SeparatorControl(
2395 + $this->customizer,
2396 + 'archive_last_updated_time_layout_7',
2397 + [
2398 + 'label' => __( 'Last Updated Time', 'betterdocs' ),
2399 + 'settings' => 'archive_last_updated_time_layout_7',
2400 + 'section' => 'betterdocs_archive_page_settings',
2401 + ]
2402 + )
2403 + );
2404 + }
2405 +
2406 + public function archive_last_updated_time_layout_7_font_size() {
2407 + $this->customizer->add_setting(
2408 + 'archive_last_updated_time_layout_7_font_size',
2409 + [
2410 + 'default' => $this->defaults['archive_last_updated_time_layout_7_font_size'],
2411 + 'capability' => 'edit_theme_options',
2412 + 'transport' => 'postMessage',
2413 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2414 +
2415 + ]
2416 + );
2417 +
2418 + $this->customizer->add_control(
2419 + new RangeValueControl(
2420 + $this->customizer,
2421 + 'archive_last_updated_time_layout_7_font_size',
2422 + [
2423 + 'type' => 'betterdocs-range-value',
2424 + 'section' => 'betterdocs_archive_page_settings',
2425 + 'settings' => 'archive_last_updated_time_layout_7_font_size',
2426 + 'label' => __( 'Font Size', 'betterdocs' ),
2427 + 'input_attrs' => [
2428 + 'class' => '',
2429 + 'min' => 0,
2430 + 'max' => 50,
2431 + 'step' => 1,
2432 + 'suffix' => 'px' //optional suffix
2433 + ]
2434 + ]
2435 + )
2436 + );
2437 + }
2438 +
2439 + public function archive_last_updated_time_layout_7_color() {
2440 + $this->customizer->add_setting(
2441 + 'archive_last_updated_time_layout_7_color',
2442 + [
2443 + 'default' => $this->defaults['archive_last_updated_time_layout_7_color'],
2444 + 'capability' => 'edit_theme_options',
2445 + 'transport' => 'postMessage',
2446 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2447 + ]
2448 + );
2449 +
2450 + $this->customizer->add_control(
2451 + new AlphaColorControl(
2452 + $this->customizer,
2453 + 'archive_last_updated_time_layout_7_color',
2454 + [
2455 + 'label' => __( 'Color', 'betterdocs' ),
2456 + 'section' => 'betterdocs_archive_page_settings',
2457 + 'settings' => 'archive_last_updated_time_layout_7_color',
2458 + ]
2459 + )
2460 + );
2461 + }
2462 +
2463 + public function archive_last_updated_time_layout_7_background_color() {
2464 + $this->customizer->add_setting(
2465 + 'archive_last_updated_time_layout_7_background_color',
2466 + [
2467 + 'default' => $this->defaults['archive_last_updated_time_layout_7_background_color'],
2468 + 'capability' => 'edit_theme_options',
2469 + 'transport' => 'postMessage',
2470 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2471 + ]
2472 + );
2473 +
2474 + $this->customizer->add_control(
2475 + new AlphaColorControl(
2476 + $this->customizer,
2477 + 'archive_last_updated_time_layout_7_background_color',
2478 + [
2479 + 'label' => __( 'Background Color', 'betterdocs' ),
2480 + 'section' => 'betterdocs_archive_page_settings',
2481 + 'settings' => 'archive_last_updated_time_layout_7_background_color',
2482 + ]
2483 + )
2484 + );
2485 + }
2486 +
2487 + public function archive_last_updated_time_layout_7_margin() {
2488 + $this->customizer->add_setting(
2489 + 'archive_last_updated_time_layout_7_margin',
2490 + [
2491 + 'default' => $this->defaults['archive_last_updated_time_layout_7_margin'],
2492 + 'capability' => 'edit_theme_options',
2493 + 'transport' => 'postMessage',
2494 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2495 + ]
2496 + );
2497 +
2498 + $this->customizer->add_control(
2499 + new TitleControl(
2500 + $this->customizer,
2501 + 'archive_last_updated_time_layout_7_margin',
2502 + [
2503 + 'type' => 'betterdocs-title',
2504 + 'section' => 'betterdocs_archive_page_settings',
2505 + 'settings' => 'archive_last_updated_time_layout_7_margin',
2506 + 'label' => __( 'Margin', 'betterdocs' ),
2507 + 'input_attrs' => [
2508 + 'id' => 'archive_last_updated_time_layout_7_margin',
2509 + 'class' => 'betterdocs-dimension'
2510 + ]
2511 + ]
2512 + )
2513 + );
2514 +
2515 + $this->customizer->add_setting(
2516 + 'archive_last_updated_time_layout_7_margin_top',
2517 + [
2518 + 'default' => $this->defaults['archive_last_updated_time_layout_7_margin_top'],
2519 + 'capability' => 'edit_theme_options',
2520 + 'transport' => 'postMessage',
2521 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2522 + ]
2523 + );
2524 +
2525 + $this->customizer->add_control(
2526 + new DimensionControl(
2527 + $this->customizer,
2528 + 'archive_last_updated_time_layout_7_margin_top',
2529 + [
2530 + 'type' => 'betterdocs-dimension',
2531 + 'section' => 'betterdocs_archive_page_settings',
2532 + 'settings' => 'archive_last_updated_time_layout_7_margin_top',
2533 + 'label' => __( 'Top', 'betterdocs' ),
2534 + 'input_attrs' => [
2535 + 'class' => 'archive_last_updated_time_layout_7_margin betterdocs-dimension'
2536 + ]
2537 + ]
2538 + )
2539 + );
2540 +
2541 + $this->customizer->add_setting(
2542 + 'archive_last_updated_time_layout_7_margin_right',
2543 + [
2544 + 'default' => $this->defaults['archive_last_updated_time_layout_7_margin_right'],
2545 + 'capability' => 'edit_theme_options',
2546 + 'transport' => 'postMessage',
2547 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2548 +
2549 + ]
2550 + );
2551 +
2552 + $this->customizer->add_control(
2553 + new DimensionControl(
2554 + $this->customizer,
2555 + 'archive_last_updated_time_layout_7_margin_right',
2556 + [
2557 + 'type' => 'betterdocs-dimension',
2558 + 'section' => 'betterdocs_archive_page_settings',
2559 + 'settings' => 'archive_last_updated_time_layout_7_margin_right',
2560 + 'label' => __( 'Right', 'betterdocs' ),
2561 + 'input_attrs' => [
2562 + 'class' => 'archive_last_updated_time_layout_7_margin betterdocs-dimension'
2563 + ]
2564 + ]
2565 + )
2566 + );
2567 +
2568 + $this->customizer->add_setting(
2569 + 'archive_last_updated_time_layout_7_margin_bottom',
2570 + [
2571 + 'default' => $this->defaults['archive_last_updated_time_layout_7_margin_bottom'],
2572 + 'capability' => 'edit_theme_options',
2573 + 'transport' => 'postMessage',
2574 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2575 +
2576 + ]
2577 + );
2578 +
2579 + $this->customizer->add_control(
2580 + new DimensionControl(
2581 + $this->customizer,
2582 + 'archive_last_updated_time_layout_7_margin_bottom',
2583 + [
2584 + 'type' => 'betterdocs-dimension',
2585 + 'section' => 'betterdocs_archive_page_settings',
2586 + 'settings' => 'archive_last_updated_time_layout_7_margin_bottom',
2587 + 'label' => __( 'Bottom', 'betterdocs' ),
2588 + 'input_attrs' => [
2589 + 'class' => 'archive_last_updated_time_layout_7_margin betterdocs-dimension'
2590 + ]
2591 + ]
2592 + )
2593 + );
2594 +
2595 + $this->customizer->add_setting(
2596 + 'archive_last_updated_time_layout_7_margin_left',
2597 + [
2598 + 'default' => $this->defaults['archive_last_updated_time_layout_7_margin_left'],
2599 + 'capability' => 'edit_theme_options',
2600 + 'transport' => 'postMessage',
2601 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2602 + ]
2603 + );
2604 +
2605 + $this->customizer->add_control(
2606 + new DimensionControl(
2607 + $this->customizer,
2608 + 'archive_last_updated_time_layout_7_margin_left',
2609 + [
2610 + 'type' => 'betterdocs-dimension',
2611 + 'section' => 'betterdocs_archive_page_settings',
2612 + 'settings' => 'archive_last_updated_time_layout_7_margin_left',
2613 + 'label' => __( 'Left', 'betterdocs' ),
2614 + 'input_attrs' => [
2615 + 'class' => 'archive_last_updated_time_layout_7_margin betterdocs-dimension'
2616 + ]
2617 + ]
2618 + )
2619 + );
2620 + }
2621 +
2622 + public function archive_last_updated_time_layout_7_padding() {
2623 + $this->customizer->add_setting(
2624 + 'archive_last_updated_time_layout_7_padding',
2625 + [
2626 + 'default' => $this->defaults['archive_last_updated_time_layout_7_padding'],
2627 + 'capability' => 'edit_theme_options',
2628 + 'transport' => 'postMessage',
2629 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2630 + ]
2631 + );
2632 +
2633 + $this->customizer->add_control(
2634 + new TitleControl(
2635 + $this->customizer,
2636 + 'archive_last_updated_time_layout_7_padding',
2637 + [
2638 + 'type' => 'betterdocs-title',
2639 + 'section' => 'betterdocs_archive_page_settings',
2640 + 'settings' => 'archive_last_updated_time_layout_7_padding',
2641 + 'label' => __( 'Count padding', 'betterdocs' ),
2642 + 'input_attrs' => [
2643 + 'id' => 'archive_last_updated_time_layout_7_padding',
2644 + 'class' => 'betterdocs-dimension'
2645 + ]
2646 + ]
2647 + )
2648 + );
2649 +
2650 + $this->customizer->add_setting(
2651 + 'archive_last_updated_time_layout_7_padding_top',
2652 + [
2653 + 'default' => $this->defaults['archive_last_updated_time_layout_7_padding_top'],
2654 + 'capability' => 'edit_theme_options',
2655 + 'transport' => 'postMessage',
2656 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2657 + ]
2658 + );
2659 +
2660 + $this->customizer->add_control(
2661 + new DimensionControl(
2662 + $this->customizer,
2663 + 'archive_last_updated_time_layout_7_padding_top',
2664 + [
2665 + 'type' => 'betterdocs-dimension',
2666 + 'section' => 'betterdocs_archive_page_settings',
2667 + 'settings' => 'archive_last_updated_time_layout_7_padding_top',
2668 + 'label' => __( 'Top', 'betterdocs' ),
2669 + 'input_attrs' => [
2670 + 'class' => 'archive_last_updated_time_layout_7_padding betterdocs-dimension'
2671 + ]
2672 + ]
2673 + )
2674 + );
2675 +
2676 + $this->customizer->add_setting(
2677 + 'archive_last_updated_time_layout_7_padding_right',
2678 + [
2679 + 'default' => $this->defaults['archive_last_updated_time_layout_7_padding_right'],
2680 + 'capability' => 'edit_theme_options',
2681 + 'transport' => 'postMessage',
2682 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2683 +
2684 + ]
2685 + );
2686 +
2687 + $this->customizer->add_control(
2688 + new DimensionControl(
2689 + $this->customizer,
2690 + 'archive_last_updated_time_layout_7_padding_right',
2691 + [
2692 + 'type' => 'betterdocs-dimension',
2693 + 'section' => 'betterdocs_archive_page_settings',
2694 + 'settings' => 'archive_last_updated_time_layout_7_padding_right',
2695 + 'label' => __( 'Right', 'betterdocs' ),
2696 + 'input_attrs' => [
2697 + 'class' => 'archive_last_updated_time_layout_7_padding betterdocs-dimension'
2698 + ]
2699 + ]
2700 + )
2701 + );
2702 +
2703 + $this->customizer->add_setting(
2704 + 'archive_last_updated_time_layout_7_padding_bottom',
2705 + [
2706 + 'default' => $this->defaults['archive_last_updated_time_layout_7_padding_bottom'],
2707 + 'capability' => 'edit_theme_options',
2708 + 'transport' => 'postMessage',
2709 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2710 +
2711 + ]
2712 + );
2713 +
2714 + $this->customizer->add_control(
2715 + new DimensionControl(
2716 + $this->customizer,
2717 + 'archive_last_updated_time_layout_7_padding_bottom',
2718 + [
2719 + 'type' => 'betterdocs-dimension',
2720 + 'section' => 'betterdocs_archive_page_settings',
2721 + 'settings' => 'archive_last_updated_time_layout_7_padding_bottom',
2722 + 'label' => __( 'Bottom', 'betterdocs' ),
2723 + 'input_attrs' => [
2724 + 'class' => 'archive_last_updated_time_layout_7_padding betterdocs-dimension'
2725 + ]
2726 + ]
2727 + )
2728 + );
2729 +
2730 + $this->customizer->add_setting(
2731 + 'archive_last_updated_time_layout_7_padding_left',
2732 + [
2733 + 'default' => $this->defaults['archive_last_updated_time_layout_7_padding_left'],
2734 + 'capability' => 'edit_theme_options',
2735 + 'transport' => 'postMessage',
2736 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2737 + ]
2738 + );
2739 +
2740 + $this->customizer->add_control(
2741 + new DimensionControl(
2742 + $this->customizer,
2743 + 'archive_last_updated_time_layout_7_padding_left',
2744 + [
2745 + 'type' => 'betterdocs-dimension',
2746 + 'section' => 'betterdocs_archive_page_settings',
2747 + 'settings' => 'archive_last_updated_time_layout_7_padding_left',
2748 + 'label' => __( 'Left', 'betterdocs' ),
2749 + 'input_attrs' => [
2750 + 'class' => 'archive_last_updated_time_layout_7_padding betterdocs-dimension'
2751 + ]
2752 + ]
2753 + )
2754 + );
2755 + }
2756 +
2757 +
2758 + public function archive_docs_list_layout_7() {
2759 + $this->customizer->add_setting(
2760 + 'archive_docs_list_layout_7',
2761 + [
2762 + 'default' => $this->defaults['archive_docs_list_layout_7'],
2763 + 'sanitize_callback' => 'esc_html'
2764 + ]
2765 + );
2766 +
2767 + $this->customizer->add_control(
2768 + new SeparatorControl(
2769 + $this->customizer,
2770 + 'archive_docs_list_layout_7',
2771 + [
2772 + 'label' => __( 'Archive Docs List', 'betterdocs' ),
2773 + 'settings' => 'archive_docs_list_layout_7',
2774 + 'section' => 'betterdocs_archive_page_settings',
2775 + ]
2776 + )
2777 + );
2778 + }
2779 +
2780 + public function archive_docs_list_title_tag_layout_7() {
2781 + $this->customizer->add_setting(
2782 + 'archive_docs_list_title_tag_layout_7',
2783 + [
2784 + 'default' => $this->defaults['archive_docs_list_title_tag_layout_7'],
2785 + 'capability' => 'edit_theme_options',
2786 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
2787 + ]
2788 + );
2789 +
2790 + $this->customizer->add_control(
2791 + new WP_Customize_Control(
2792 + $this->customizer,
2793 + 'archive_docs_list_title_tag_layout_7',
2794 + [
2795 + 'label' => __( 'Docs List Title Tag', 'betterdocs' ),
2796 + 'section' => 'betterdocs_archive_page_settings',
2797 + 'settings' => 'archive_docs_list_title_tag_layout_7',
2798 + 'type' => 'select',
2799 + 'choices' => [
2800 + 'h1' => 'h1',
2801 + 'h2' => 'h2',
2802 + 'h3' => 'h3',
2803 + 'h4' => 'h4',
2804 + 'h5' => 'h5',
2805 + 'h6' => 'h6',
2806 + 'p' => 'p'
2807 + ]
2808 + ]
2809 + )
2810 + );
2811 + }
2812 +
2813 + public function archive_docs_list_title_color_layout_7() {
2814 + $this->customizer->add_setting(
2815 + 'archive_docs_list_title_color_layout_7',
2816 + [
2817 + 'default' => $this->defaults['archive_docs_list_title_color_layout_7'],
2818 + 'capability' => 'edit_theme_options',
2819 + 'transport' => 'postMessage',
2820 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2821 + ]
2822 + );
2823 +
2824 + $this->customizer->add_control(
2825 + new AlphaColorControl(
2826 + $this->customizer,
2827 + 'archive_docs_list_title_color_layout_7',
2828 + [
2829 + 'label' => __( 'Title Color', 'betterdocs' ),
2830 + 'section' => 'betterdocs_archive_page_settings',
2831 + 'settings' => 'archive_docs_list_title_color_layout_7',
2832 + ]
2833 + )
2834 + );
2835 + }
2836 +
2837 + public function archive_docs_list_title_hover_color_layout_7() {
2838 + $this->customizer->add_setting(
2839 + 'archive_docs_list_title_hover_color_layout_7',
2840 + [
2841 + 'default' => $this->defaults['archive_docs_list_title_hover_color_layout_7'],
2842 + 'capability' => 'edit_theme_options',
2843 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
2844 + ]
2845 + );
2846 +
2847 + $this->customizer->add_control(
2848 + new AlphaColorControl(
2849 + $this->customizer,
2850 + 'archive_docs_list_title_hover_color_layout_7',
2851 + [
2852 + 'label' => __( 'Title Hover Color', 'betterdocs' ),
2853 + 'section' => 'betterdocs_archive_page_settings',
2854 + 'settings' => 'archive_docs_list_title_hover_color_layout_7',
2855 + ]
2856 + )
2857 + );
2858 + }
2859 +
2860 + public function archive_docs_list_title_font_size_layout_7() {
2861 + $this->customizer->add_setting(
2862 + 'archive_docs_list_title_font_size_layout_7',
2863 + [
2864 + 'default' => $this->defaults['archive_docs_list_title_font_size_layout_7'],
2865 + 'capability' => 'edit_theme_options',
2866 + 'transport' => 'postMessage',
2867 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2868 +
2869 + ]
2870 + );
2871 +
2872 + $this->customizer->add_control(
2873 + new RangeValueControl(
2874 + $this->customizer,
2875 + 'archive_docs_list_title_font_size_layout_7',
2876 + [
2877 + 'type' => 'betterdocs-range-value',
2878 + 'section' => 'betterdocs_archive_page_settings',
2879 + 'settings' => 'archive_docs_list_title_font_size_layout_7',
2880 + 'label' => __( 'Title Font Size', 'betterdocs' ),
2881 + 'input_attrs' => [
2882 + 'class' => '',
2883 + 'min' => 0,
2884 + 'max' => 50,
2885 + 'step' => 1,
2886 + 'suffix' => 'px' //optional suffix
2887 + ]
2888 + ]
2889 + )
2890 + );
2891 + }
2892 +
2893 + public function archive_docs_list_title_margin_layout_7() {
2894 + $this->customizer->add_setting(
2895 + 'archive_docs_list_title_margin_layout_7',
2896 + [
2897 + 'default' => $this->defaults['archive_docs_list_title_margin_layout_7'],
2898 + 'capability' => 'edit_theme_options',
2899 + 'transport' => 'postMessage',
2900 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2901 + ]
2902 + );
2903 +
2904 + $this->customizer->add_control(
2905 + new TitleControl(
2906 + $this->customizer,
2907 + 'archive_docs_list_title_margin_layout_7',
2908 + [
2909 + 'type' => 'betterdocs-title',
2910 + 'section' => 'betterdocs_archive_page_settings',
2911 + 'settings' => 'archive_docs_list_title_margin_layout_7',
2912 + 'label' => __( 'Title Margin', 'betterdocs' ),
2913 + 'input_attrs' => [
2914 + 'id' => 'archive_docs_list_title_margin_layout_7',
2915 + 'class' => 'betterdocs-dimension'
2916 + ]
2917 + ]
2918 + )
2919 + );
2920 +
2921 + $this->customizer->add_setting(
2922 + 'archive_docs_list_title_margin_top_layout_7',
2923 + [
2924 + 'default' => $this->defaults['archive_docs_list_title_margin_top_layout_7'],
2925 + 'capability' => 'edit_theme_options',
2926 + 'transport' => 'postMessage',
2927 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2928 + ]
2929 + );
2930 +
2931 + $this->customizer->add_control(
2932 + new DimensionControl(
2933 + $this->customizer,
2934 + 'archive_docs_list_title_margin_top_layout_7',
2935 + [
2936 + 'type' => 'betterdocs-dimension',
2937 + 'section' => 'betterdocs_archive_page_settings',
2938 + 'settings' => 'archive_docs_list_title_margin_top_layout_7',
2939 + 'label' => __( 'Top', 'betterdocs' ),
2940 + 'input_attrs' => [
2941 + 'class' => 'archive_docs_list_title_margin_layout_7 betterdocs-dimension'
2942 + ]
2943 + ]
2944 + )
2945 + );
2946 +
2947 + $this->customizer->add_setting(
2948 + 'archive_docs_list_title_margin_right_layout_7',
2949 + [
2950 + 'default' => $this->defaults['archive_docs_list_title_margin_right_layout_7'],
2951 + 'capability' => 'edit_theme_options',
2952 + 'transport' => 'postMessage',
2953 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2954 +
2955 + ]
2956 + );
2957 +
2958 + $this->customizer->add_control(
2959 + new DimensionControl(
2960 + $this->customizer,
2961 + 'archive_docs_list_title_margin_right_layout_7',
2962 + [
2963 + 'type' => 'betterdocs-dimension',
2964 + 'section' => 'betterdocs_archive_page_settings',
2965 + 'settings' => 'archive_docs_list_title_margin_right_layout_7',
2966 + 'label' => __( 'Right', 'betterdocs' ),
2967 + 'input_attrs' => [
2968 + 'class' => 'archive_docs_list_title_margin_layout_7 betterdocs-dimension'
2969 + ]
2970 + ]
2971 + )
2972 + );
2973 +
2974 + $this->customizer->add_setting(
2975 + 'archive_docs_list_title_margin_bottom_layout_7',
2976 + [
2977 + 'default' => $this->defaults['archive_docs_list_title_margin_bottom_layout_7'],
2978 + 'capability' => 'edit_theme_options',
2979 + 'transport' => 'postMessage',
2980 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
2981 +
2982 + ]
2983 + );
2984 +
2985 + $this->customizer->add_control(
2986 + new DimensionControl(
2987 + $this->customizer,
2988 + 'archive_docs_list_title_margin_bottom_layout_7',
2989 + [
2990 + 'type' => 'betterdocs-dimension',
2991 + 'section' => 'betterdocs_archive_page_settings',
2992 + 'settings' => 'archive_docs_list_title_margin_bottom_layout_7',
2993 + 'label' => __( 'Bottom', 'betterdocs' ),
2994 + 'input_attrs' => [
2995 + 'class' => 'archive_docs_list_title_margin_layout_7 betterdocs-dimension'
2996 + ]
2997 + ]
2998 + )
2999 + );
3000 +
3001 + $this->customizer->add_setting(
3002 + 'archive_docs_list_title_margin_left_layout_7',
3003 + [
3004 + 'default' => $this->defaults['archive_docs_list_title_margin_left_layout_7'],
3005 + 'capability' => 'edit_theme_options',
3006 + 'transport' => 'postMessage',
3007 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3008 + ]
3009 + );
3010 +
3011 + $this->customizer->add_control(
3012 + new DimensionControl(
3013 + $this->customizer,
3014 + 'archive_docs_list_title_margin_left_layout_7',
3015 + [
3016 + 'type' => 'betterdocs-dimension',
3017 + 'section' => 'betterdocs_archive_page_settings',
3018 + 'settings' => 'archive_docs_list_title_margin_left_layout_7',
3019 + 'label' => __( 'Left', 'betterdocs' ),
3020 + 'input_attrs' => [
3021 + 'class' => 'archive_docs_list_title_margin_layout_7 betterdocs-dimension'
3022 + ]
3023 + ]
3024 + )
3025 + );
3026 + }
3027 +
3028 +
3029 + public function archive_docs_list_icon_size_layout_7() {
3030 + $this->customizer->add_setting(
3031 + 'archive_docs_list_icon_size_layout_7',
3032 + [
3033 + 'default' => $this->defaults['archive_docs_list_icon_size_layout_7'],
3034 + 'capability' => 'edit_theme_options',
3035 + 'transport' => 'postMessage',
3036 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3037 +
3038 + ]
3039 + );
3040 +
3041 + $this->customizer->add_control(
3042 + new RangeValueControl(
3043 + $this->customizer,
3044 + 'archive_docs_list_icon_size_layout_7',
3045 + [
3046 + 'type' => 'betterdocs-range-value',
3047 + 'section' => 'betterdocs_archive_page_settings',
3048 + 'settings' => 'archive_docs_list_icon_size_layout_7',
3049 + 'label' => __( 'List Icon Size', 'betterdocs' ),
3050 + 'input_attrs' => [
3051 + 'class' => '',
3052 + 'min' => 0,
3053 + 'max' => 50,
3054 + 'step' => 1,
3055 + 'suffix' => 'px' //optional suffix
3056 + ]
3057 + ]
3058 + )
3059 + );
3060 + }
3061 +
3062 + public function archive_docs_list_excerpt_font_size_layout_7() {
3063 + $this->customizer->add_setting(
3064 + 'archive_docs_list_excerpt_font_size_layout_7',
3065 + [
3066 + 'default' => $this->defaults['archive_docs_list_excerpt_font_size_layout_7'],
3067 + 'capability' => 'edit_theme_options',
3068 + 'transport' => 'postMessage',
3069 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3070 +
3071 + ]
3072 + );
3073 +
3074 + $this->customizer->add_control(
3075 + new RangeValueControl(
3076 + $this->customizer,
3077 + 'archive_docs_list_excerpt_font_size_layout_7',
3078 + [
3079 + 'type' => 'betterdocs-range-value',
3080 + 'section' => 'betterdocs_archive_page_settings',
3081 + 'settings' => 'archive_docs_list_excerpt_font_size_layout_7',
3082 + 'label' => __( 'List Excerpt Font Size', 'betterdocs' ),
3083 + 'input_attrs' => [
3084 + 'class' => '',
3085 + 'min' => 0,
3086 + 'max' => 50,
3087 + 'step' => 1,
3088 + 'suffix' => 'px' //optional suffix
3089 + ]
3090 + ]
3091 + )
3092 + );
3093 + }
3094 +
3095 + public function archive_docs_list_excerpt_font_color_layout_7() {
3096 + $this->customizer->add_setting(
3097 + 'archive_docs_list_excerpt_font_color_layout_7',
3098 + [
3099 + 'default' => $this->defaults['archive_docs_list_excerpt_font_color_layout_7'],
3100 + 'capability' => 'edit_theme_options',
3101 + 'transport' => 'postMessage',
3102 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3103 + ]
3104 + );
3105 +
3106 + $this->customizer->add_control(
3107 + new AlphaColorControl(
3108 + $this->customizer,
3109 + 'archive_docs_list_excerpt_font_color_layout_7',
3110 + [
3111 + 'label' => __( 'List Excerpt Font Color', 'betterdocs' ),
3112 + 'section' => 'betterdocs_archive_page_settings',
3113 + 'settings' => 'archive_docs_list_excerpt_font_color_layout_7',
3114 + ]
3115 + )
3116 + );
3117 + }
3118 +
3119 + public function archive_docs_list_border_width_layout_8() {
3120 + $this->customizer->add_setting(
3121 + 'archive_docs_list_border_width_layout_8',
3122 + [
3123 + 'default' => $this->defaults['archive_docs_list_border_width_layout_8'],
3124 + 'capability' => 'edit_theme_options',
3125 + 'transport' => 'postMessage',
3126 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3127 + ]
3128 + );
3129 +
3130 + $this->customizer->add_control(
3131 + new RangeValueControl(
3132 + $this->customizer,
3133 + 'archive_docs_list_border_width_layout_8',
3134 + [
3135 + 'type' => 'betterdocs-range-value',
3136 + 'section' => 'betterdocs_archive_page_settings',
3137 + 'settings' => 'archive_docs_list_border_width_layout_8',
3138 + 'label' => __( 'List Border Width', 'betterdocs' ),
3139 + 'input_attrs' => [
3140 + 'class' => '',
3141 + 'min' => 0,
3142 + 'max' => 10,
3143 + 'step' => 1,
3144 + 'suffix' => 'px'
3145 + ]
3146 + ]
3147 + )
3148 + );
3149 + }
3150 +
3151 + public function archive_docs_list_border_color_layout_8() {
3152 + $this->customizer->add_setting(
3153 + 'archive_docs_list_border_color_layout_8',
3154 + [
3155 + 'default' => $this->defaults['archive_docs_list_border_color_layout_8'],
3156 + 'capability' => 'edit_theme_options',
3157 + 'transport' => 'postMessage',
3158 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3159 + ]
3160 + );
3161 +
3162 + $this->customizer->add_control(
3163 + new AlphaColorControl(
3164 + $this->customizer,
3165 + 'archive_docs_list_border_color_layout_8',
3166 + [
3167 + 'label' => __( 'List Border Color', 'betterdocs' ),
3168 + 'section' => 'betterdocs_archive_page_settings',
3169 + 'settings' => 'archive_docs_list_border_color_layout_8',
3170 + ]
3171 + )
3172 + );
3173 + }
3174 +
3175 + public function archive_docs_list_excerpt_margin_layout_7() {
3176 + $this->customizer->add_setting(
3177 + 'archive_docs_list_excerpt_margin_layout_7',
3178 + [
3179 + 'default' => $this->defaults['archive_docs_list_excerpt_margin_layout_7'],
3180 + 'capability' => 'edit_theme_options',
3181 + 'transport' => 'postMessage',
3182 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3183 + ]
3184 + );
3185 +
3186 + $this->customizer->add_control(
3187 + new TitleControl(
3188 + $this->customizer,
3189 + 'archive_docs_list_excerpt_margin_layout_7',
3190 + [
3191 + 'type' => 'betterdocs-title',
3192 + 'section' => 'betterdocs_archive_page_settings',
3193 + 'settings' => 'archive_docs_list_excerpt_margin_layout_7',
3194 + 'label' => __( 'List Excerpt Margin', 'betterdocs' ),
3195 + 'input_attrs' => [
3196 + 'id' => 'archive_docs_list_excerpt_margin_layout_7',
3197 + 'class' => 'betterdocs-dimension'
3198 + ]
3199 + ]
3200 + )
3201 + );
3202 +
3203 + $this->customizer->add_setting(
3204 + 'archive_docs_list_excerpt_margin_top_layout_7',
3205 + [
3206 + 'default' => $this->defaults['archive_docs_list_excerpt_margin_top_layout_7'],
3207 + 'capability' => 'edit_theme_options',
3208 + 'transport' => 'postMessage',
3209 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3210 + ]
3211 + );
3212 +
3213 + $this->customizer->add_control(
3214 + new DimensionControl(
3215 + $this->customizer,
3216 + 'archive_docs_list_excerpt_margin_top_layout_7',
3217 + [
3218 + 'type' => 'betterdocs-dimension',
3219 + 'section' => 'betterdocs_archive_page_settings',
3220 + 'settings' => 'archive_docs_list_excerpt_margin_top_layout_7',
3221 + 'label' => __( 'Top', 'betterdocs' ),
3222 + 'input_attrs' => [
3223 + 'class' => 'archive_docs_list_excerpt_margin_layout_7 betterdocs-dimension'
3224 + ]
3225 + ]
3226 + )
3227 + );
3228 +
3229 + $this->customizer->add_setting(
3230 + 'archive_docs_list_excerpt_margin_right_layout_7',
3231 + [
3232 + 'default' => $this->defaults['archive_docs_list_excerpt_margin_right_layout_7'],
3233 + 'capability' => 'edit_theme_options',
3234 + 'transport' => 'postMessage',
3235 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3236 +
3237 + ]
3238 + );
3239 +
3240 + $this->customizer->add_control(
3241 + new DimensionControl(
3242 + $this->customizer,
3243 + 'archive_docs_list_excerpt_margin_right_layout_7',
3244 + [
3245 + 'type' => 'betterdocs-dimension',
3246 + 'section' => 'betterdocs_archive_page_settings',
3247 + 'settings' => 'archive_docs_list_excerpt_margin_right_layout_7',
3248 + 'label' => __( 'Right', 'betterdocs' ),
3249 + 'input_attrs' => [
3250 + 'class' => 'archive_docs_list_excerpt_margin_layout_7 betterdocs-dimension'
3251 + ]
3252 + ]
3253 + )
3254 + );
3255 +
3256 + $this->customizer->add_setting(
3257 + 'archive_docs_list_excerpt_margin_bottom_layout_7',
3258 + [
3259 + 'default' => $this->defaults['archive_docs_list_excerpt_margin_bottom_layout_7'],
3260 + 'capability' => 'edit_theme_options',
3261 + 'transport' => 'postMessage',
3262 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3263 +
3264 + ]
3265 + );
3266 +
3267 + $this->customizer->add_control(
3268 + new DimensionControl(
3269 + $this->customizer,
3270 + 'archive_docs_list_excerpt_margin_bottom_layout_7',
3271 + [
3272 + 'type' => 'betterdocs-dimension',
3273 + 'section' => 'betterdocs_archive_page_settings',
3274 + 'settings' => 'archive_docs_list_excerpt_margin_bottom_layout_7',
3275 + 'label' => __( 'Bottom', 'betterdocs' ),
3276 + 'input_attrs' => [
3277 + 'class' => 'archive_docs_list_excerpt_margin_layout_7 betterdocs-dimension'
3278 + ]
3279 + ]
3280 + )
3281 + );
3282 +
3283 + $this->customizer->add_setting(
3284 + 'archive_docs_list_excerpt_margin_left_layout_7',
3285 + [
3286 + 'default' => $this->defaults['archive_docs_list_excerpt_margin_left_layout_7'],
3287 + 'capability' => 'edit_theme_options',
3288 + 'transport' => 'postMessage',
3289 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3290 + ]
3291 + );
3292 +
3293 + $this->customizer->add_control(
3294 + new DimensionControl(
3295 + $this->customizer,
3296 + 'archive_docs_list_excerpt_margin_left_layout_7',
3297 + [
3298 + 'type' => 'betterdocs-dimension',
3299 + 'section' => 'betterdocs_archive_page_settings',
3300 + 'settings' => 'archive_docs_list_excerpt_margin_left_layout_7',
3301 + 'label' => __( 'Left', 'betterdocs' ),
3302 + 'input_attrs' => [
3303 + 'class' => 'archive_docs_list_excerpt_margin_layout_7 betterdocs-dimension'
3304 + ]
3305 + ]
3306 + )
3307 + );
3308 + }
3309 +
3310 +
3311 +
3312 + public function title_tag() {
3313 + $this->customizer->add_setting(
3314 + 'betterdocs_archive_title_tag',
3315 + [
3316 + 'default' => $this->defaults['betterdocs_archive_title_tag'],
3317 + 'capability' => 'edit_theme_options',
3318 + 'sanitize_callback' => [ $this->sanitizer, 'select' ]
3319 + ]
3320 + );
3321 +
3322 + $this->customizer->add_control(
3323 + new WP_Customize_Control(
3324 + $this->customizer,
3325 + 'betterdocs_archive_title_tag',
3326 + [
3327 + 'label' => __( 'Category Title Tag', 'betterdocs' ),
3328 + 'section' => 'betterdocs_archive_page_settings',
3329 + 'settings' => 'betterdocs_archive_title_tag',
3330 + 'type' => 'select',
3331 + 'choices' => [
3332 + 'h1' => 'h1',
3333 + 'h2' => 'h2',
3334 + 'h3' => 'h3',
3335 + 'h4' => 'h4',
3336 + 'h5' => 'h5',
3337 + 'h6' => 'h6',
3338 + 'p' => 'p'
3339 + ]
3340 + ]
3341 + )
3342 + );
3343 + }
3344 +
3345 + public function title_color() {
3346 + $this->customizer->add_setting(
3347 + 'betterdocs_archive_title_color',
3348 + [
3349 + 'default' => $this->defaults['betterdocs_archive_title_color'],
3350 + 'capability' => 'edit_theme_options',
3351 + 'transport' => 'postMessage',
3352 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3353 + ]
3354 + );
3355 +
3356 + $this->customizer->add_control(
3357 + new AlphaColorControl(
3358 + $this->customizer,
3359 + 'betterdocs_archive_title_color',
3360 + [
3361 + 'label' => __( 'Title Color', 'betterdocs' ),
3362 + 'section' => 'betterdocs_archive_page_settings',
3363 + 'settings' => 'betterdocs_archive_title_color'
3364 + ]
3365 + )
3366 + );
3367 + }
3368 +
3369 + public function title_font_size() {
3370 + $this->customizer->add_setting(
3371 + 'betterdocs_archive_title_font_size',
3372 + [
3373 + 'default' => $this->defaults['betterdocs_archive_title_font_size'],
3374 + 'capability' => 'edit_theme_options',
3375 + 'transport' => 'postMessage',
3376 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3377 +
3378 + ]
3379 + );
3380 +
3381 + $this->customizer->add_control(
3382 + new RangeValueControl(
3383 + $this->customizer,
3384 + 'betterdocs_archive_title_font_size',
3385 + [
3386 + 'type' => 'betterdocs-range-value',
3387 + 'section' => 'betterdocs_archive_page_settings',
3388 + 'settings' => 'betterdocs_archive_title_font_size',
3389 + 'label' => __( 'Title Font Size', 'betterdocs' ),
3390 + 'input_attrs' => [
3391 + 'min' => 0,
3392 + 'max' => 50,
3393 + 'step' => 1,
3394 + 'suffix' => 'px' //optional suffix
3395 + ]
3396 + ]
3397 + )
3398 + );
3399 + }
3400 +
3401 + public function title_margin() {
3402 + $this->customizer->add_setting(
3403 + 'betterdocs_archive_title_margin',
3404 + [
3405 + 'default' => $this->defaults['betterdocs_archive_title_margin'],
3406 + 'capability' => 'edit_theme_options',
3407 + 'transport' => 'postMessage',
3408 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3409 + ]
3410 + );
3411 +
3412 + $this->customizer->add_control(
3413 + new TitleControl(
3414 + $this->customizer,
3415 + 'betterdocs_archive_title_margin',
3416 + [
3417 + 'type' => 'betterdocs-title',
3418 + 'section' => 'betterdocs_archive_page_settings',
3419 + 'settings' => 'betterdocs_archive_title_margin',
3420 + 'label' => __( 'Archive Title Margin', 'betterdocs' ),
3421 + 'input_attrs' => [
3422 + 'id' => 'betterdocs_archive_title_margin',
3423 + 'class' => 'betterdocs-dimension'
3424 + ]
3425 + ]
3426 + )
3427 + );
3428 +
3429 + $this->customizer->add_setting(
3430 + 'betterdocs_archive_title_margin_top',
3431 + [
3432 + 'default' => $this->defaults['betterdocs_archive_title_margin_top'],
3433 + 'capability' => 'edit_theme_options',
3434 + 'transport' => 'postMessage',
3435 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3436 + ]
3437 + );
3438 +
3439 + $this->customizer->add_control(
3440 + new DimensionControl(
3441 + $this->customizer,
3442 + 'betterdocs_archive_title_margin_top',
3443 + [
3444 + 'type' => 'betterdocs-dimension',
3445 + 'section' => 'betterdocs_archive_page_settings',
3446 + 'settings' => 'betterdocs_archive_title_margin_top',
3447 + 'label' => __( 'Top', 'betterdocs' ),
3448 + 'input_attrs' => [
3449 + 'class' => 'betterdocs_archive_title_margin betterdocs-dimension'
3450 + ]
3451 + ]
3452 + )
3453 + );
3454 +
3455 + $this->customizer->add_setting(
3456 + 'betterdocs_archive_title_margin_right',
3457 + [
3458 + 'default' => $this->defaults['betterdocs_archive_title_margin_right'],
3459 + 'capability' => 'edit_theme_options',
3460 + 'transport' => 'postMessage',
3461 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3462 +
3463 + ]
3464 + );
3465 +
3466 + $this->customizer->add_control(
3467 + new DimensionControl(
3468 + $this->customizer,
3469 + 'betterdocs_archive_title_margin_right',
3470 + [
3471 + 'type' => 'betterdocs-dimension',
3472 + 'section' => 'betterdocs_archive_page_settings',
3473 + 'settings' => 'betterdocs_archive_title_margin_right',
3474 + 'label' => __( 'Right', 'betterdocs' ),
3475 + 'input_attrs' => [
3476 + 'class' => 'betterdocs_archive_title_margin betterdocs-dimension'
3477 + ]
3478 + ]
3479 + )
3480 + );
3481 +
3482 + $this->customizer->add_setting(
3483 + 'betterdocs_archive_title_margin_bottom',
3484 + [
3485 + 'default' => $this->defaults['betterdocs_archive_title_margin_bottom'],
3486 + 'capability' => 'edit_theme_options',
3487 + 'transport' => 'postMessage',
3488 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3489 +
3490 + ]
3491 + );
3492 +
3493 + $this->customizer->add_control(
3494 + new DimensionControl(
3495 + $this->customizer,
3496 + 'betterdocs_archive_title_margin_bottom',
3497 + [
3498 + 'type' => 'betterdocs-dimension',
3499 + 'section' => 'betterdocs_archive_page_settings',
3500 + 'settings' => 'betterdocs_archive_title_margin_bottom',
3501 + 'label' => __( 'Bottom', 'betterdocs' ),
3502 + 'input_attrs' => [
3503 + 'class' => 'betterdocs_archive_title_margin betterdocs-dimension'
3504 + ]
3505 + ]
3506 + )
3507 + );
3508 +
3509 + $this->customizer->add_setting(
3510 + 'betterdocs_archive_title_margin_left',
3511 + [
3512 + 'default' => $this->defaults['betterdocs_archive_title_margin_left'],
3513 + 'capability' => 'edit_theme_options',
3514 + 'transport' => 'postMessage',
3515 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3516 + ]
3517 + );
3518 +
3519 + $this->customizer->add_control(
3520 + new DimensionControl(
3521 + $this->customizer,
3522 + 'betterdocs_archive_title_margin_left',
3523 + [
3524 + 'type' => 'betterdocs-dimension',
3525 + 'section' => 'betterdocs_archive_page_settings',
3526 + 'settings' => 'betterdocs_archive_title_margin_left',
3527 + 'label' => __( 'Left', 'betterdocs' ),
3528 + 'input_attrs' => [
3529 + 'class' => 'betterdocs_archive_title_margin betterdocs-dimension'
3530 + ]
3531 + ]
3532 + )
3533 + );
3534 + }
3535 +
3536 + public function description_color() {
3537 + $this->customizer->add_setting(
3538 + 'betterdocs_archive_description_color',
3539 + [
3540 + 'default' => $this->defaults['betterdocs_archive_description_color'],
3541 + 'capability' => 'edit_theme_options',
3542 + 'transport' => 'postMessage',
3543 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3544 + ]
3545 + );
3546 +
3547 + $this->customizer->add_control(
3548 + new AlphaColorControl(
3549 + $this->customizer,
3550 + 'betterdocs_archive_description_color',
3551 + [
3552 + 'label' => __( 'Description Color', 'betterdocs' ),
3553 + 'section' => 'betterdocs_archive_page_settings',
3554 + 'settings' => 'betterdocs_archive_description_color'
3555 + ]
3556 + )
3557 + );
3558 + }
3559 +
3560 + public function description_font_size() {
3561 + $this->customizer->add_setting(
3562 + 'betterdocs_archive_description_font_size',
3563 + [
3564 + 'default' => $this->defaults['betterdocs_archive_description_font_size'],
3565 + 'capability' => 'edit_theme_options',
3566 + 'transport' => 'postMessage',
3567 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3568 +
3569 + ]
3570 + );
3571 +
3572 + $this->customizer->add_control(
3573 + new RangeValueControl(
3574 + $this->customizer,
3575 + 'betterdocs_archive_description_font_size',
3576 + [
3577 + 'type' => 'betterdocs-range-value',
3578 + 'section' => 'betterdocs_archive_page_settings',
3579 + 'settings' => 'betterdocs_archive_description_font_size',
3580 + 'label' => __( 'Description Font Size', 'betterdocs' ),
3581 + 'input_attrs' => [
3582 + 'min' => 0,
3583 + 'max' => 50,
3584 + 'step' => 1,
3585 + 'suffix' => 'px' //optional suffix
3586 + ]
3587 + ]
3588 + )
3589 + );
3590 + }
3591 +
3592 + public function description_margin() {
3593 + $this->customizer->add_setting(
3594 + 'betterdocs_archive_description_margin',
3595 + [
3596 + 'default' => $this->defaults['betterdocs_archive_description_margin'],
3597 + 'capability' => 'edit_theme_options',
3598 + 'transport' => 'postMessage',
3599 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3600 +
3601 + ]
3602 + );
3603 +
3604 + $this->customizer->add_control(
3605 + new TitleControl(
3606 + $this->customizer,
3607 + 'betterdocs_archive_description_margin',
3608 + [
3609 + 'type' => 'betterdocs-title',
3610 + 'section' => 'betterdocs_archive_page_settings',
3611 + 'settings' => 'betterdocs_archive_description_margin',
3612 + 'label' => __( 'Archive Description Margin', 'betterdocs' ),
3613 + 'input_attrs' => [
3614 + 'id' => 'betterdocs_archive_description_margin',
3615 + 'class' => 'betterdocs-dimension'
3616 + ]
3617 + ]
3618 + )
3619 + );
3620 +
3621 + $this->customizer->add_setting(
3622 + 'betterdocs_archive_description_margin_top',
3623 + [
3624 + 'default' => $this->defaults['betterdocs_archive_description_margin_top'],
3625 + 'capability' => 'edit_theme_options',
3626 + 'transport' => 'postMessage',
3627 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3628 + ]
3629 + );
3630 +
3631 + $this->customizer->add_control(
3632 + new DimensionControl(
3633 + $this->customizer,
3634 + 'betterdocs_archive_description_margin_top',
3635 + [
3636 + 'type' => 'betterdocs-dimension',
3637 + 'section' => 'betterdocs_archive_page_settings',
3638 + 'settings' => 'betterdocs_archive_description_margin_top',
3639 + 'label' => __( 'Top', 'betterdocs' ),
3640 + 'input_attrs' => [
3641 + 'class' => 'betterdocs_archive_description_margin betterdocs-dimension'
3642 + ]
3643 + ]
3644 + )
3645 + );
3646 +
3647 + $this->customizer->add_setting(
3648 + 'betterdocs_archive_description_margin_right',
3649 + [
3650 + 'default' => $this->defaults['betterdocs_archive_description_margin_right'],
3651 + 'capability' => 'edit_theme_options',
3652 + 'transport' => 'postMessage',
3653 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3654 +
3655 + ]
3656 + );
3657 +
3658 + $this->customizer->add_control(
3659 + new DimensionControl(
3660 + $this->customizer,
3661 + 'betterdocs_archive_description_margin_right',
3662 + [
3663 + 'type' => 'betterdocs-dimension',
3664 + 'section' => 'betterdocs_archive_page_settings',
3665 + 'settings' => 'betterdocs_archive_description_margin_right',
3666 + 'label' => __( 'Right', 'betterdocs' ),
3667 + 'input_attrs' => [
3668 + 'class' => 'betterdocs_archive_description_margin betterdocs-dimension'
3669 + ]
3670 + ]
3671 + )
3672 + );
3673 +
3674 + $this->customizer->add_setting(
3675 + 'betterdocs_archive_description_margin_bottom',
3676 + [
3677 + 'default' => $this->defaults['betterdocs_archive_description_margin_bottom'],
3678 + 'capability' => 'edit_theme_options',
3679 + 'transport' => 'postMessage',
3680 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3681 +
3682 + ]
3683 + );
3684 +
3685 + $this->customizer->add_control(
3686 + new DimensionControl(
3687 + $this->customizer,
3688 + 'betterdocs_archive_description_margin_bottom',
3689 + [
3690 + 'type' => 'betterdocs-dimension',
3691 + 'section' => 'betterdocs_archive_page_settings',
3692 + 'settings' => 'betterdocs_archive_description_margin_bottom',
3693 + 'label' => __( 'Bottom', 'betterdocs' ),
3694 + 'input_attrs' => [
3695 + 'class' => 'betterdocs_archive_description_margin betterdocs-dimension'
3696 + ]
3697 + ]
3698 + )
3699 + );
3700 +
3701 + $this->customizer->add_setting(
3702 + 'betterdocs_archive_description_margin_left',
3703 + [
3704 + 'default' => $this->defaults['betterdocs_archive_description_margin_left'],
3705 + 'capability' => 'edit_theme_options',
3706 + 'transport' => 'postMessage',
3707 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3708 +
3709 + ]
3710 + );
3711 +
3712 + $this->customizer->add_control(
3713 + new DimensionControl(
3714 + $this->customizer,
3715 + 'betterdocs_archive_description_margin_left',
3716 + [
3717 + 'type' => 'betterdocs-dimension',
3718 + 'section' => 'betterdocs_archive_page_settings',
3719 + 'settings' => 'betterdocs_archive_description_margin_left',
3720 + 'label' => __( 'Left', 'betterdocs' ),
3721 + 'input_attrs' => [
3722 + 'class' => 'betterdocs_archive_description_margin betterdocs-dimension'
3723 + ]
3724 + ]
3725 + )
3726 + );
3727 + }
3728 +
3729 + public function list_icon() {
3730 + $this->customizer->add_setting(
3731 + 'betterdocs_archive_list_icon',
3732 + [
3733 + 'default' => $this->defaults['betterdocs_archive_list_icon'],
3734 + 'capability' => 'edit_theme_options',
3735 +
3736 + ]
3737 + );
3738 +
3739 + $this->customizer->add_control(
3740 + new WP_Customize_Image_Control(
3741 + $this->customizer,
3742 + 'betterdocs_archive_list_icon',
3743 + [
3744 + 'section' => 'betterdocs_archive_page_settings',
3745 + 'settings' => 'betterdocs_archive_list_icon',
3746 + 'label' => __( 'List Icon', 'betterdocs' )
3747 + ]
3748 + )
3749 + );
3750 + }
3751 +
3752 + public function list_icon_color() {
3753 + $this->customizer->add_setting(
3754 + 'betterdocs_archive_list_icon_color',
3755 + [
3756 + 'default' => $this->defaults['betterdocs_archive_list_icon_color'],
3757 + 'capability' => 'edit_theme_options',
3758 + 'transport' => 'postMessage',
3759 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3760 + ]
3761 + );
3762 +
3763 + $this->customizer->add_control(
3764 + new AlphaColorControl(
3765 + $this->customizer,
3766 + 'betterdocs_archive_list_icon_color',
3767 + [
3768 + 'label' => __( 'List Icon Color', 'betterdocs' ),
3769 + 'section' => 'betterdocs_archive_page_settings',
3770 + 'settings' => 'betterdocs_archive_list_icon_color'
3771 + ]
3772 + )
3773 + );
3774 + }
3775 +
3776 + public function list_icon_font_size() {
3777 + $this->customizer->add_setting(
3778 + 'betterdocs_archive_list_icon_font_size',
3779 + [
3780 + 'default' => $this->defaults['betterdocs_archive_list_icon_font_size'],
3781 + 'capability' => 'edit_theme_options',
3782 + 'transport' => 'postMessage',
3783 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3784 +
3785 + ]
3786 + );
3787 +
3788 + $this->customizer->add_control(
3789 + new RangeValueControl(
3790 + $this->customizer,
3791 + 'betterdocs_archive_list_icon_font_size',
3792 + [
3793 + 'type' => 'betterdocs-range-value',
3794 + 'section' => 'betterdocs_archive_page_settings',
3795 + 'settings' => 'betterdocs_archive_list_icon_font_size',
3796 + 'label' => __( 'List Icon Font Size', 'betterdocs' ),
3797 + 'input_attrs' => [
3798 + 'class' => '',
3799 + 'min' => 0,
3800 + 'max' => 50,
3801 + 'step' => 1,
3802 + 'suffix' => 'px' //optional suffix
3803 + ]
3804 + ]
3805 + )
3806 + );
3807 + }
3808 +
3809 + public function list_item_color() {
3810 + $this->customizer->add_setting(
3811 + 'betterdocs_archive_list_item_color',
3812 + [
3813 + 'default' => $this->defaults['betterdocs_archive_list_item_color'],
3814 + 'capability' => 'edit_theme_options',
3815 + 'transport' => 'postMessage',
3816 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3817 + ]
3818 + );
3819 +
3820 + $this->customizer->add_control(
3821 + new AlphaColorControl(
3822 + $this->customizer,
3823 + 'betterdocs_archive_list_item_color',
3824 + [
3825 + 'label' => __( 'List Item Color', 'betterdocs' ),
3826 + 'section' => 'betterdocs_archive_page_settings',
3827 + 'settings' => 'betterdocs_archive_list_item_color'
3828 + ]
3829 + )
3830 + );
3831 + }
3832 +
3833 + public function list_item_hover_color() {
3834 + $this->customizer->add_setting(
3835 + 'betterdocs_archive_list_item_hover_color',
3836 + [
3837 + 'default' => $this->defaults['betterdocs_archive_list_item_hover_color'],
3838 + 'capability' => 'edit_theme_options',
3839 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
3840 + ]
3841 + );
3842 +
3843 + $this->customizer->add_control(
3844 + new AlphaColorControl(
3845 + $this->customizer,
3846 + 'betterdocs_archive_list_item_hover_color',
3847 + [
3848 + 'label' => __( 'List Item Hover Color', 'betterdocs' ),
3849 + 'section' => 'betterdocs_archive_page_settings',
3850 + 'settings' => 'betterdocs_archive_list_item_hover_color'
3851 + ]
3852 + )
3853 + );
3854 + }
3855 +
3856 + public function list_item_font_size() {
3857 + $this->customizer->add_setting(
3858 + 'betterdocs_archive_list_item_font_size',
3859 + [
3860 + 'default' => $this->defaults['betterdocs_archive_list_item_font_size'],
3861 + 'capability' => 'edit_theme_options',
3862 + 'transport' => 'postMessage',
3863 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3864 +
3865 + ]
3866 + );
3867 +
3868 + $this->customizer->add_control(
3869 + new RangeValueControl(
3870 + $this->customizer,
3871 + 'betterdocs_archive_list_item_font_size',
3872 + [
3873 + 'type' => 'betterdocs-range-value',
3874 + 'section' => 'betterdocs_archive_page_settings',
3875 + 'settings' => 'betterdocs_archive_list_item_font_size',
3876 + 'label' => __( 'List Item Font Size', 'betterdocs' ),
3877 + 'input_attrs' => [
3878 + 'class' => '',
3879 + 'min' => 0,
3880 + 'max' => 50,
3881 + 'step' => 1,
3882 + 'suffix' => 'px' //optional suffix
3883 + ]
3884 + ]
3885 + )
3886 + );
3887 + }
3888 +
3889 + public function list_margin() {
3890 + $this->customizer->add_setting(
3891 + 'betterdocs_archive_article_list_margin',
3892 + [
3893 + 'default' => $this->defaults['betterdocs_archive_article_list_margin'],
3894 + 'capability' => 'edit_theme_options',
3895 + 'transport' => 'postMessage',
3896 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3897 +
3898 + ]
3899 + );
3900 +
3901 + $this->customizer->add_control(
3902 + new TitleControl(
3903 + $this->customizer,
3904 + 'betterdocs_archive_article_list_margin',
3905 + [
3906 + 'type' => 'betterdocs-title',
3907 + 'section' => 'betterdocs_archive_page_settings',
3908 + 'settings' => 'betterdocs_archive_article_list_margin',
3909 + 'label' => __( 'Docs List Margin', 'betterdocs' ),
3910 + 'input_attrs' => [
3911 + 'id' => 'betterdocs_archive_article_list_margin',
3912 + 'class' => 'betterdocs-dimension'
3913 + ]
3914 + ]
3915 + )
3916 + );
3917 +
3918 + $this->customizer->add_setting(
3919 + 'betterdocs_archive_article_list_margin_top',
3920 + [
3921 + 'default' => $this->defaults['betterdocs_archive_article_list_margin_top'],
3922 + 'capability' => 'edit_theme_options',
3923 + 'transport' => 'postMessage',
3924 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3925 + ]
3926 + );
3927 +
3928 + $this->customizer->add_control(
3929 + new DimensionControl(
3930 + $this->customizer,
3931 + 'betterdocs_archive_article_list_margin_top',
3932 + [
3933 + 'type' => 'betterdocs-dimension',
3934 + 'section' => 'betterdocs_archive_page_settings',
3935 + 'settings' => 'betterdocs_archive_article_list_margin_top',
3936 + 'label' => __( 'Top', 'betterdocs' ),
3937 + 'input_attrs' => [
3938 + 'class' => 'betterdocs_archive_article_list_margin betterdocs-dimension'
3939 + ]
3940 + ]
3941 + )
3942 + );
3943 +
3944 + $this->customizer->add_setting(
3945 + 'betterdocs_archive_article_list_margin_right',
3946 + [
3947 + 'default' => $this->defaults['betterdocs_archive_article_list_margin_right'],
3948 + 'capability' => 'edit_theme_options',
3949 + 'transport' => 'postMessage',
3950 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3951 +
3952 + ]
3953 + );
3954 +
3955 + $this->customizer->add_control(
3956 + new DimensionControl(
3957 + $this->customizer,
3958 + 'betterdocs_archive_article_list_margin_right',
3959 + [
3960 + 'type' => 'betterdocs-dimension',
3961 + 'section' => 'betterdocs_archive_page_settings',
3962 + 'settings' => 'betterdocs_archive_article_list_margin_right',
3963 + 'label' => __( 'Right', 'betterdocs' ),
3964 + 'input_attrs' => [
3965 + 'class' => 'betterdocs_archive_article_list_margin betterdocs-dimension'
3966 + ]
3967 + ]
3968 + )
3969 + );
3970 +
3971 + $this->customizer->add_setting(
3972 + 'betterdocs_archive_article_list_margin_bottom',
3973 + [
3974 + 'default' => $this->defaults['betterdocs_archive_article_list_margin_bottom'],
3975 + 'capability' => 'edit_theme_options',
3976 + 'transport' => 'postMessage',
3977 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
3978 +
3979 + ]
3980 + );
3981 +
3982 + $this->customizer->add_control(
3983 + new DimensionControl(
3984 + $this->customizer,
3985 + 'betterdocs_archive_article_list_margin_bottom',
3986 + [
3987 + 'type' => 'betterdocs-dimension',
3988 + 'section' => 'betterdocs_archive_page_settings',
3989 + 'settings' => 'betterdocs_archive_article_list_margin_bottom',
3990 + 'label' => __( 'Bottom', 'betterdocs' ),
3991 + 'input_attrs' => [
3992 + 'class' => 'betterdocs_archive_article_list_margin betterdocs-dimension'
3993 + ]
3994 + ]
3995 + )
3996 + );
3997 +
3998 + $this->customizer->add_setting(
3999 + 'betterdocs_archive_article_list_margin_left',
4000 + [
4001 + 'default' => $this->defaults['betterdocs_archive_article_list_margin_left'],
4002 + 'capability' => 'edit_theme_options',
4003 + 'transport' => 'postMessage',
4004 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4005 +
4006 + ]
4007 + );
4008 +
4009 + $this->customizer->add_control(
4010 + new DimensionControl(
4011 + $this->customizer,
4012 + 'betterdocs_archive_article_list_margin_left',
4013 + [
4014 + 'type' => 'betterdocs-dimension',
4015 + 'section' => 'betterdocs_archive_page_settings',
4016 + 'settings' => 'betterdocs_archive_article_list_margin_left',
4017 + 'label' => __( 'Left', 'betterdocs' ),
4018 + 'input_attrs' => [
4019 + 'class' => 'betterdocs_archive_article_list_margin betterdocs-dimension'
4020 + ]
4021 + ]
4022 + )
4023 + );
4024 + }
4025 +
4026 + public function article_subcategory_color() {
4027 + $this->customizer->add_setting(
4028 + 'betterdocs_archive_article_subcategory_color',
4029 + [
4030 + 'default' => $this->defaults['betterdocs_archive_article_subcategory_color'],
4031 + 'capability' => 'edit_theme_options',
4032 + 'transport' => 'postMessage',
4033 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4034 + ]
4035 + );
4036 +
4037 + $this->customizer->add_control(
4038 + new AlphaColorControl(
4039 + $this->customizer,
4040 + 'betterdocs_archive_article_subcategory_color',
4041 + [
4042 + 'label' => __( 'Docs Subcategory Color', 'betterdocs' ),
4043 + 'section' => 'betterdocs_archive_page_settings',
4044 + 'settings' => 'betterdocs_archive_article_subcategory_color',
4045 + 'priority' => 44
4046 + ]
4047 + )
4048 + );
4049 + }
4050 +
4051 + public function article_subcategory_hover_color() {
4052 + $this->customizer->add_setting(
4053 + 'betterdocs_archive_article_subcategory_hover_color',
4054 + [
4055 + 'default' => $this->defaults['betterdocs_archive_article_subcategory_hover_color'],
4056 + 'capability' => 'edit_theme_options',
4057 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4058 + ]
4059 + );
4060 +
4061 + $this->customizer->add_control(
4062 + new AlphaColorControl(
4063 + $this->customizer,
4064 + 'betterdocs_archive_article_subcategory_hover_color',
4065 + [
4066 + 'label' => __( 'Docs Subcategory Hover Color', 'betterdocs' ),
4067 + 'section' => 'betterdocs_archive_page_settings',
4068 + 'settings' => 'betterdocs_archive_article_subcategory_hover_color',
4069 + 'priority' => 44
4070 + ]
4071 + )
4072 + );
4073 + }
4074 +
4075 + public function article_subcategory_font_size() {
4076 + $this->customizer->add_setting(
4077 + 'betterdocs_archive_article_subcategory_font_size',
4078 + [
4079 + 'default' => $this->defaults['betterdocs_archive_article_subcategory_font_size'],
4080 + 'capability' => 'edit_theme_options',
4081 + 'transport' => 'postMessage',
4082 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4083 +
4084 + ]
4085 + );
4086 +
4087 + $this->customizer->add_control(
4088 + new RangeValueControl(
4089 + $this->customizer,
4090 + 'betterdocs_archive_article_subcategory_font_size',
4091 + [
4092 + 'type' => 'betterdocs-range-value',
4093 + 'section' => 'betterdocs_archive_page_settings',
4094 + 'settings' => 'betterdocs_archive_article_subcategory_font_size',
4095 + 'label' => __( 'Docs Subcategory Font Size', 'betterdocs' ),
4096 + 'priority' => 44,
4097 + 'input_attrs' => [
4098 + 'class' => '',
4099 + 'min' => 0,
4100 + 'max' => 50,
4101 + 'step' => 1,
4102 + 'suffix' => 'px' //optional suffix
4103 + ]
4104 + ]
4105 + )
4106 + );
4107 + }
4108 +
4109 + public function subcategory_icon_color() {
4110 + $this->customizer->add_setting(
4111 + 'betterdocs_archive_subcategory_icon_color',
4112 + [
4113 + 'default' => $this->defaults['betterdocs_archive_subcategory_icon_color'],
4114 + 'capability' => 'edit_theme_options',
4115 + 'transport' => 'postMessage',
4116 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4117 + ]
4118 + );
4119 +
4120 + $this->customizer->add_control(
4121 + new AlphaColorControl(
4122 + $this->customizer,
4123 + 'betterdocs_archive_subcategory_icon_color',
4124 + [
4125 + 'label' => __( 'Subcategory Icon Color', 'betterdocs' ),
4126 + 'section' => 'betterdocs_archive_page_settings',
4127 + 'settings' => 'betterdocs_archive_subcategory_icon_color',
4128 + 'priority' => 44
4129 + ]
4130 + )
4131 + );
4132 + }
4133 +
4134 + public function subcategory_icon_font_size() {
4135 + $this->customizer->add_setting(
4136 + 'betterdocs_archive_subcategory_icon_font_size',
4137 + [
4138 + 'default' => $this->defaults['betterdocs_archive_subcategory_icon_font_size'],
4139 + 'capability' => 'edit_theme_options',
4140 + 'transport' => 'postMessage',
4141 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4142 +
4143 + ]
4144 + );
4145 +
4146 + $this->customizer->add_control(
4147 + new RangeValueControl(
4148 + $this->customizer,
4149 + 'betterdocs_archive_subcategory_icon_font_size',
4150 + [
4151 + 'type' => 'betterdocs-range-value',
4152 + 'section' => 'betterdocs_archive_page_settings',
4153 + 'settings' => 'betterdocs_archive_subcategory_icon_font_size',
4154 + 'label' => __( 'Subcategory Icon Font Size', 'betterdocs' ),
4155 + 'priority' => 44,
4156 + 'input_attrs' => [
4157 + 'class' => '',
4158 + 'min' => 0,
4159 + 'max' => 50,
4160 + 'step' => 1,
4161 + 'suffix' => 'px' //optional suffix
4162 + ]
4163 + ]
4164 + )
4165 + );
4166 + }
4167 +
4168 + public function subcategory_article_list_color() {
4169 + $this->customizer->add_setting(
4170 + 'betterdocs_archive_subcategory_article_list_color',
4171 + [
4172 + 'default' => $this->defaults['betterdocs_archive_subcategory_article_list_color'],
4173 + 'capability' => 'edit_theme_options',
4174 + 'transport' => 'postMessage',
4175 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4176 + ]
4177 + );
4178 +
4179 + $this->customizer->add_control(
4180 + new AlphaColorControl(
4181 + $this->customizer,
4182 + 'betterdocs_archive_subcategory_article_list_color',
4183 + [
4184 + 'label' => __( 'Subcategory Docs List Color', 'betterdocs' ),
4185 + 'section' => 'betterdocs_archive_page_settings',
4186 + 'settings' => 'betterdocs_archive_subcategory_article_list_color',
4187 + 'priority' => 44
4188 + ]
4189 + )
4190 + );
4191 + }
4192 +
4193 + public function article_list_hover_color() {
4194 + $this->customizer->add_setting(
4195 + 'betterdocs_archive_subcategory_article_list_hover_color',
4196 + [
4197 + 'default' => $this->defaults['betterdocs_archive_subcategory_article_list_hover_color'],
4198 + 'capability' => 'edit_theme_options',
4199 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4200 + ]
4201 + );
4202 +
4203 + $this->customizer->add_control(
4204 + new AlphaColorControl(
4205 + $this->customizer,
4206 + 'betterdocs_archive_subcategory_article_list_hover_color',
4207 + [
4208 + 'label' => __( 'Subcategory List Hover Color', 'betterdocs' ),
4209 + 'section' => 'betterdocs_archive_page_settings',
4210 + 'settings' => 'betterdocs_archive_subcategory_article_list_hover_color',
4211 + 'priority' => 44
4212 + ]
4213 + )
4214 + );
4215 + }
4216 +
4217 + public function subcategory_article_list_icon_color() {
4218 + $this->customizer->add_setting(
4219 + 'betterdocs_archive_subcategory_article_list_icon_color',
4220 + [
4221 + 'default' => $this->defaults['betterdocs_archive_subcategory_article_list_icon_color'],
4222 + 'capability' => 'edit_theme_options',
4223 + 'transport' => 'postMessage',
4224 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4225 + ]
4226 + );
4227 +
4228 + $this->customizer->add_control(
4229 + new AlphaColorControl(
4230 + $this->customizer,
4231 + 'betterdocs_archive_subcategory_article_list_icon_color',
4232 + [
4233 + 'label' => __( 'Subcategory List Icon Color', 'betterdocs' ),
4234 + 'section' => 'betterdocs_archive_page_settings',
4235 + 'settings' => 'betterdocs_archive_subcategory_article_list_icon_color',
4236 + 'priority' => 44
4237 + ]
4238 + )
4239 + );
4240 + }
4241 +
4242 + public function archive_docs_pagination() {
4243 + $this->customizer->add_setting(
4244 + 'archive_docs_pagination',
4245 + [
4246 + 'default' => $this->defaults['archive_docs_pagination'],
4247 + 'sanitize_callback' => 'esc_html'
4248 + ]
4249 + );
4250 +
4251 + $this->customizer->add_control(
4252 + new SeparatorControl(
4253 + $this->customizer,
4254 + 'archive_docs_pagination',
4255 + [
4256 + 'label' => __( 'Archive Docs Pagination', 'betterdocs' ),
4257 + 'settings' => 'archive_docs_pagination',
4258 + 'section' => 'betterdocs_archive_page_settings',
4259 + 'priority' => 45
4260 + ]
4261 + )
4262 + );
4263 + }
4264 +
4265 + public function archive_docs_pagination_wrapper_height() {
4266 + $this->customizer->add_setting(
4267 + 'archive_docs_pagination_wrapper_height',
4268 + [
4269 + 'default' => $this->defaults['archive_docs_pagination_wrapper_height'],
4270 + 'capability' => 'edit_theme_options',
4271 + 'transport' => 'postMessage',
4272 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4273 + ]
4274 + );
4275 +
4276 + $this->customizer->add_control(
4277 + new RangeValueControl(
4278 + $this->customizer,
4279 + 'archive_docs_pagination_wrapper_height',
4280 + [
4281 + 'type' => 'betterdocs-range-value',
4282 + 'section' => 'betterdocs_archive_page_settings',
4283 + 'settings' => 'archive_docs_pagination_wrapper_height',
4284 + 'label' => __( 'Height', 'betterdocs' ),
4285 + 'priority' => 45,
4286 + 'input_attrs' => [
4287 + 'min' => 0,
4288 + 'max' => 100,
4289 + 'step' => 1,
4290 + 'suffix' => 'px' //optional suffix
4291 + ]
4292 + ]
4293 + )
4294 + );
4295 + }
4296 +
4297 + public function archive_docs_pagination_wrapper_width() {
4298 + $this->customizer->add_setting(
4299 + 'archive_docs_pagination_wrapper_width',
4300 + [
4301 + 'default' => $this->defaults['archive_docs_pagination_wrapper_width'],
4302 + 'capability' => 'edit_theme_options',
4303 + 'transport' => 'postMessage',
4304 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4305 +
4306 + ]
4307 + );
4308 +
4309 + $this->customizer->add_control(
4310 + new RangeValueControl(
4311 + $this->customizer,
4312 + 'archive_docs_pagination_wrapper_width',
4313 + [
4314 + 'type' => 'betterdocs-range-value',
4315 + 'section' => 'betterdocs_archive_page_settings',
4316 + 'settings' => 'archive_docs_pagination_wrapper_width',
4317 + 'label' => __( 'Width', 'betterdocs' ),
4318 + 'priority' => 45,
4319 + 'input_attrs' => [
4320 + 'min' => 0,
4321 + 'max' => 100,
4322 + 'step' => 1,
4323 + 'suffix' => 'px' //optional suffix
4324 + ]
4325 + ]
4326 + )
4327 + );
4328 + }
4329 +
4330 + public function archive_docs_pagination_wrapper_font_size() {
4331 + $this->customizer->add_setting(
4332 + 'archive_docs_pagination_wrapper_font_size',
4333 + [
4334 + 'default' => $this->defaults['archive_docs_pagination_wrapper_font_size'],
4335 + 'capability' => 'edit_theme_options',
4336 + 'transport' => 'postMessage',
4337 + 'sanitize_callback' => [ $this->sanitizer, 'integer' ]
4338 +
4339 + ]
4340 + );
4341 +
4342 + $this->customizer->add_control(
4343 + new RangeValueControl(
4344 + $this->customizer,
4345 + 'archive_docs_pagination_wrapper_font_size',
4346 + [
4347 + 'type' => 'betterdocs-range-value',
4348 + 'section' => 'betterdocs_archive_page_settings',
4349 + 'settings' => 'archive_docs_pagination_wrapper_font_size',
4350 + 'label' => __( 'Font Size', 'betterdocs' ),
4351 + 'priority' => 45,
4352 + 'input_attrs' => [
4353 + 'min' => 0,
4354 + 'max' => 100,
4355 + 'step' => 1,
4356 + 'suffix' => 'px' //optional suffix
4357 + ]
4358 + ]
4359 + )
4360 + );
4361 + }
4362 +
4363 + public function archive_docs_pagination_wrapper_color() {
4364 + $this->customizer->add_setting(
4365 + 'archive_docs_pagination_wrapper_color',
4366 + [
4367 + 'default' => $this->defaults['archive_docs_pagination_wrapper_color'],
4368 + 'capability' => 'edit_theme_options',
4369 + 'transport' => 'postMessage',
4370 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4371 + ]
4372 + );
4373 +
4374 + $this->customizer->add_control(
4375 + new AlphaColorControl(
4376 + $this->customizer,
4377 + 'archive_docs_pagination_wrapper_color',
4378 + [
4379 + 'label' => __( 'Color', 'betterdocs' ),
4380 + 'section' => 'betterdocs_archive_page_settings',
4381 + 'settings' => 'archive_docs_pagination_wrapper_color',
4382 + 'priority' => 45
4383 + ]
4384 + )
4385 + );
4386 + }
4387 +
4388 +
4389 + public function archive_docs_pagination_wrapper_active_color() {
4390 + $this->customizer->add_setting(
4391 + 'archive_docs_pagination_wrapper_active_color',
4392 + [
4393 + 'default' => $this->defaults['archive_docs_pagination_wrapper_active_color'],
4394 + 'capability' => 'edit_theme_options',
4395 + 'transport' => 'postMessage',
4396 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4397 + ]
4398 + );
4399 +
4400 + $this->customizer->add_control(
4401 + new AlphaColorControl(
4402 + $this->customizer,
4403 + 'archive_docs_pagination_wrapper_active_color',
4404 + [
4405 + 'label' => __( 'Active Color', 'betterdocs' ),
4406 + 'section' => 'betterdocs_archive_page_settings',
4407 + 'settings' => 'archive_docs_pagination_wrapper_active_color',
4408 + 'priority' => 45,
4409 + ]
4410 + )
4411 + );
4412 + }
4413 +
4414 + public function archive_docs_pagination_wrapper_active_border_color() {
4415 + $this->customizer->add_setting(
4416 + 'archive_docs_pagination_wrapper_active_border_color',
4417 + [
4418 + 'default' => $this->defaults['archive_docs_pagination_wrapper_active_border_color'],
4419 + 'capability' => 'edit_theme_options',
4420 + 'transport' => 'postMessage',
4421 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4422 + ]
4423 + );
4424 +
4425 + $this->customizer->add_control(
4426 + new AlphaColorControl(
4427 + $this->customizer,
4428 + 'archive_docs_pagination_wrapper_active_border_color',
4429 + [
4430 + 'label' => __( 'Active Border Color', 'betterdocs' ),
4431 + 'section' => 'betterdocs_archive_page_settings',
4432 + 'settings' => 'archive_docs_pagination_wrapper_active_border_color',
4433 + 'priority' => 45
4434 + ]
4435 + )
4436 + );
4437 + }
4438 +
4439 + public function archive_docs_pagination_wrapper_background_color_sleek() {
4440 + $this->customizer->add_setting(
4441 + 'archive_docs_pagination_wrapper_background_color_sleek',
4442 + [
4443 + 'default' => $this->defaults['archive_docs_pagination_wrapper_background_color_sleek'],
4444 + 'capability' => 'edit_theme_options',
4445 + 'transport' => 'postMessage',
4446 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4447 + ]
4448 + );
4449 +
4450 + $this->customizer->add_control(
4451 + new AlphaColorControl(
4452 + $this->customizer,
4453 + 'archive_docs_pagination_wrapper_background_color_sleek',
4454 + [
4455 + 'label' => __( 'Background Color', 'betterdocs' ),
4456 + 'section' => 'betterdocs_archive_page_settings',
4457 + 'settings' => 'archive_docs_pagination_wrapper_background_color_sleek',
4458 + 'priority' => 45
4459 + ]
4460 + )
4461 + );
4462 + }
4463 +
4464 + public function archive_docs_pagination_wrapper_background_color() {
4465 + $this->customizer->add_setting(
4466 + 'archive_docs_pagination_wrapper_background_color',
4467 + [
4468 + 'default' => $this->defaults['archive_docs_pagination_wrapper_background_color'],
4469 + 'capability' => 'edit_theme_options',
4470 + 'transport' => 'postMessage',
4471 + 'sanitize_callback' => [ $this->sanitizer, 'rgba' ]
4472 + ]
4473 + );
4474 +
4475 + $this->customizer->add_control(
4476 + new AlphaColorControl(
4477 + $this->customizer,
4478 + 'archive_docs_pagination_wrapper_background_color',
4479 + [
4480 + 'label' => __( 'Background Color', 'betterdocs' ),
4481 + 'section' => 'betterdocs_archive_page_settings',
4482 + 'settings' => 'archive_docs_pagination_wrapper_background_color',
4483 + 'priority' => 45
4484 + ]
4485 + )
4486 + );
4487 + }
1403 4488 }