PluginProbe ʕ •ᴥ•ʔ
SiteOrigin CSS / 1.5.6
SiteOrigin CSS v1.5.6
1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.10 1.5.11 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0
so-css / inc / controller-config.php
so-css / inc Last commit date
controller-config.php 3 years ago legacy.php 3 years ago
controller-config.php
522 lines
1 <?php
2
3 return array(
4 'text' => array(
5 'title' => esc_html__( 'Text', 'so-css' ),
6 'icon' => 'align-left',
7 'controllers' => array(
8 array(
9 'title' => esc_html__( 'Text Color', 'so-css' ),
10 'type' => 'color',
11 'args' => array(
12 'property' => 'color',
13 ),
14 ),
15 array(
16 'title' => esc_html__( 'Font Size', 'so-css' ),
17 'type' => 'measurement',
18 'args' => array(
19 'property' => 'font-size',
20 'defaultUnit' => 'px',
21 ),
22 ),
23 array(
24 'title' => esc_html__( 'Line Height', 'so-css' ),
25 'type' => 'measurement',
26 'args' => array(
27 'property' => 'line-height',
28 'defaultUnit' => 'em',
29 ),
30 ),
31 array(
32 'title' => esc_html__( 'Font Weight', 'so-css' ),
33 'type' => 'select',
34 'args' => array(
35 'property' => 'font-weight',
36 'options' => array(
37 'normal' => esc_html__( 'Normal', 'so-css' ),
38 'bold' => esc_html__( 'Bold', 'so-css' ),
39 'bolder' => esc_html__( 'Bolder', 'so-css' ),
40 'lighter' => esc_html__( 'Lighter', 'so-css' ),
41 '100' => '100',
42 '200' => '200',
43 '300' => '300',
44 '400' => '400',
45 '500' => '500',
46 '600' => '600',
47 '700' => '700',
48 '800' => '800',
49 '900' => '900',
50 ),
51 ),
52 ),
53 array(
54 'title' => esc_html__( 'Font Style', 'so-css' ),
55 'type' => 'select',
56 'args' => array(
57 'property' => 'font-style',
58 'options' => array(
59 'none' => esc_html__( 'None', 'so-css' ),
60 'normal' => esc_html__( 'Normal', 'so-css' ),
61 'italic' => esc_html__( 'Italic', 'so-css' ),
62 ),
63 'option_icons' => array(
64 'normal' => 'font',
65 'italic' => 'italic',
66 ),
67 ),
68 ),
69 array(
70 'title' => esc_html__( 'Text Decoration', 'so-css' ),
71 'type' => 'select',
72 'args' => array(
73 'property' => 'text-decoration',
74 'options' => array(
75 'none' => esc_html__( 'None', 'so-css' ),
76 'underline' => esc_html__( 'Underline', 'so-css' ),
77 'overline' => esc_html__( 'Overline', 'so-css' ),
78 'line-through' => esc_html__( 'Line Through', 'so-css' ),
79 ),
80 'option_icons' => array(
81 'none' => 'font',
82 'underline' => 'underline',
83 'line-through' => 'strikethrough',
84 ),
85 ),
86 ),
87 array(
88 'title' => esc_html__( 'Font Variant', 'so-css' ),
89 'type' => 'select',
90 'args' => array(
91 'property' => 'font-variant',
92 'options' => array(
93 'normal' => esc_html__( 'Normal', 'so-css' ),
94 'small-caps' => esc_html__( 'Small Caps', 'so-css' ),
95 ),
96 ),
97 ),
98 array(
99 'title' => esc_html__( 'Text Transform', 'so-css' ),
100 'type' => 'select',
101 'args' => array(
102 'property' => 'text-transform',
103 'options' => array(
104 'none' => esc_html__( 'None', 'so-css' ),
105 'capitalize' => esc_html__( 'Capitalize', 'so-css' ),
106 'uppercase' => esc_html__( 'Uppercase', 'so-css' ),
107 'lowercase' => esc_html__( 'Lowercase', 'so-css' ),
108 ),
109 ),
110 ),
111 array(
112 'title' => esc_html__( 'Font Family', 'so-css' ),
113 'type' => 'font_select',
114 'args' => array(
115 'property' => 'font-family',
116 ),
117 ),
118 array(
119 'title' => esc_html__( 'Text Align', 'so-css' ),
120 'type' => 'select',
121 'args' => array(
122 'property' => 'text-align',
123 'options' => array(
124 'left' => esc_html__( 'Left', 'so-css' ),
125 'right' => esc_html__( 'Right', 'so-css' ),
126 'center' => esc_html__( 'Center', 'so-css' ),
127 'justify' => esc_html__( 'Justify', 'so-css' ),
128 ),
129 'option_icons' => array(
130 'left' => 'align-left',
131 'right' => 'align-right',
132 'center' => 'align-center',
133 'justify' => 'align-justify',
134 ),
135 ),
136 ),
137 array(
138 'title' => esc_html__( 'Text Indent', 'so-css' ),
139 'type' => 'measurement',
140 'args' => array(
141 'property' => 'text-indent',
142 ),
143 ),
144 array(
145 'title' => esc_html__( 'Letter Spacing', 'so-css' ),
146 'type' => 'measurement',
147 'args' => array(
148 'property' => 'letter-spacing',
149 ),
150 ),
151 array(
152 'title' => esc_html__( 'Word Spacing', 'so-css' ),
153 'type' => 'measurement',
154 'args' => array(
155 'property' => 'word-spacing',
156 ),
157 ),
158 array(
159 'title' => esc_html__( 'White Space', 'so-css' ),
160 'type' => 'select',
161 'args' => array(
162 'property' => 'white-space',
163 'options' => array(
164 'normal' => esc_html__( 'Normal', 'so-css' ),
165 'encountered' => esc_html__( 'Encountered', 'so-css' ),
166 'pre' => esc_html__( 'Pre', 'so-css' ),
167 'pre-line' => esc_html__( 'Pre Line', 'so-css' ),
168 'pre-wrap' => esc_html__( 'Pre Wrap', 'so-css' ),
169 ),
170 ),
171 ),
172 array(
173 'title' => esc_html__( 'Text Shadow', 'so-css' ),
174 'type' => 'shadow',
175 'args' => array(
176 'property' => 'text-shadow',
177 ),
178 ),
179 ),
180 ),
181
182 //////////////////////////////////////////////////////////////////////
183
184 'decoration' => array(
185 'title' => esc_html__( 'Decoration', 'so-css' ),
186 'icon' => 'eyedropper',
187 'controllers' => array(
188 array(
189 'title' => esc_html__( 'Background Color', 'so-css' ),
190 'type' => 'color',
191 'args' => array(
192 'property' => 'background-color',
193 ),
194 ),
195 array(
196 'title' => esc_html__( 'Background Image', 'so-css' ),
197 'type' => 'image',
198 'args' => array(
199 'property' => 'background-image',
200 'value' => 'url("{{url}}")',
201 ),
202 ),
203 array(
204 'title' => esc_html__( 'Background Position', 'so-css' ),
205 'type' => 'position',
206 'args' => array(
207 'property' => 'background-position',
208 ),
209 ),
210 array(
211 'title' => esc_html__( 'Background Repeat', 'so-css' ),
212 'type' => 'select',
213 'args' => array(
214 'property' => 'background-repeat',
215 'options' => array(
216 'repeat' => esc_html__( 'repeat', 'so-css' ),
217 'repeat-x' => esc_html__( 'repeat-x', 'so-css' ),
218 'repeat-y' => esc_html__( 'repeat-y', 'so-css' ),
219 'no-repeat' => esc_html__( 'no-repeat', 'so-css' ),
220 ),
221 ),
222 ),
223 array(
224 'title' => esc_html__( 'Background Size', 'so-css' ),
225 'type' => 'select',
226 'args' => array(
227 'property' => 'background-size',
228 'options' => array(
229 'auto' => esc_html__( 'auto', 'so-css' ),
230 'length' => esc_html__( 'length', 'so-css' ),
231 'percentage' => esc_html__( 'percentage', 'so-css' ),
232 'cover' => esc_html__( 'cover', 'so-css' ),
233 'contain' => esc_html__( 'contain', 'so-css' ),
234 ),
235 ),
236 ),
237
238 array(
239 'title' => esc_html__( 'Box Shadow', 'so-css' ),
240 'type' => 'shadow',
241 'args' => array(
242 'property' => 'box-shadow',
243 ),
244 ),
245
246 array(
247 'title' => esc_html__( 'Opacity', 'so-css' ),
248 'type' => 'number',
249 'args' => array(
250 'property' => 'opacity',
251 'default' => 1,
252 'min' => 0,
253 'max' => 1,
254 'increment' => 0.05,
255 'decrement' => -0.05,
256 ),
257 ),
258
259 array(
260 'title' => esc_html__( 'Borders', 'so-css' ),
261 'type' => 'sides',
262 'args' => array(
263 'controllers' => array(
264 array(
265 'type' => 'measurement',
266 'args' => array(
267 'property' => 'border-{dir}-width',
268 'propertyAll' => 'border-width',
269 'defaultUnit' => 'px',
270 ),
271 ),
272 array(
273 'type' => 'select',
274 'args' => array(
275 'property' => 'border-{dir}-style',
276 'propertyAll' => 'border-style',
277 'options' => array(
278 'hidden' => 'Hidden',
279 'dotted' => 'Dotted',
280 'dashed' => 'Dashed',
281 'solid' => 'Solid',
282 'double' => 'Double',
283 'groove' => 'Groove',
284 'ridge' => 'Ridge',
285 'inset' => 'Inset',
286 'outset' => 'Outset',
287 ),
288 ),
289 ),
290 array(
291 'type' => 'color',
292 'args' => array(
293 'property' => 'border-{dir}-color',
294 'propertyAll' => 'border-color',
295 ),
296 ),
297 ),
298 'hasAll' => true,
299 ),
300 ),
301
302 array(
303 'title' => esc_html__( 'Border Radius', 'so-css' ),
304 'type' => 'sides',
305 'args' => array(
306 'controllers' => array(
307 array(
308 'type' => 'measurement',
309 'args' => array(
310 'property' => 'border-{dir}-radius',
311 'propertyAll' => 'border-radius',
312 'defaultUnit' => 'px',
313 ),
314 ),
315 ),
316 'isRadius' => true,
317 'hasAll' => true,
318 ),
319 ),
320 ),
321 ),
322
323 //////////////////////////////////////////////////////////////////////
324
325 'layout' => array(
326 'title' => esc_html__( 'Layout', 'so-css' ),
327 'icon' => 'columns',
328 'controllers' => array(
329 array(
330 'title' => esc_html__( 'Margin', 'so-css' ),
331 'type' => 'sides',
332 'args' => array(
333 'controllers' => array(
334 array(
335 'type' => 'measurement',
336 'args' => array(
337 'property' => 'margin-{dir}',
338 'propertyAll' => 'margin',
339 'defaultUnit' => 'px',
340 ),
341 ),
342 ),
343 'hasAll' => true,
344 ),
345 ),
346 array(
347 'title' => esc_html__( 'Padding', 'so-css' ),
348 'type' => 'sides',
349 'args' => array(
350 'controllers' => array(
351 array(
352 'type' => 'measurement',
353 'args' => array(
354 'property' => 'padding-{dir}',
355 'propertyAll' => 'padding',
356 'defaultUnit' => 'px',
357 ),
358 ),
359 ),
360 'hasAll' => true,
361 ),
362 ),
363 array(
364 'title' => esc_html__( 'Position', 'so-css' ),
365 'type' => 'select',
366 'args' => array(
367 'property' => 'position',
368 'options' => array(
369 'absolute' => esc_html__( 'Absolute', 'so-css' ),
370 'fixed' => esc_html__( 'Fixed', 'so-css' ),
371 'relative' => esc_html__( 'Relative', 'so-css' ),
372 'static' => esc_html__( 'Static', 'so-css' ),
373 'inherit' => esc_html__( 'Inherit', 'so-css' ),
374 ),
375 ),
376 ),
377 array(
378 'title' => esc_html__( 'Absolute Position', 'so-css' ),
379 'type' => 'sides',
380 'args' => array(
381 'controllers' => array(
382 array(
383 'type' => 'measurement',
384 'args' => array(
385 'property' => '{dir}',
386 'defaultUnit' => 'px',
387 ),
388 ),
389 ),
390 'hasAll' => false,
391 ),
392 ),
393 array(
394 'title' => esc_html__( 'Width', 'so-css' ),
395 'type' => 'measurement',
396 'args' => array(
397 'property' => 'width',
398 'defaultUnit' => 'px',
399 ),
400 ),
401 array(
402 'title' => esc_html__( 'Height', 'so-css' ),
403 'type' => 'measurement',
404 'args' => array(
405 'property' => 'height',
406 'defaultUnit' => '%',
407 ),
408 ),
409 array(
410 'title' => esc_html__( 'Display', 'so-css' ),
411 'type' => 'select',
412 'args' => array(
413 'property' => 'display',
414 'options' => array(
415 'none' => esc_html__( 'None', 'so-css' ),
416 'inline' => esc_html__( 'Inline', 'so-css' ),
417 'block' => esc_html__( 'Block', 'so-css' ),
418 'flex' => esc_html__( 'Flex', 'so-css' ),
419 'inline-block' => esc_html__( 'Inline Block', 'so-css' ),
420 'inline-flex' => esc_html__( 'Inline Flex', 'so-css' ),
421 'inline-table' => esc_html__( 'Inline Table', 'so-css' ),
422 'list-item' => esc_html__( 'List Item', 'so-css' ),
423 'run-in' => esc_html__( 'Run In', 'so-css' ),
424 'table' => esc_html__( 'Table', 'so-css' ),
425 'table-caption' => esc_html__( 'Table Caption', 'so-css' ),
426 'table-column-group' => esc_html__( 'Table Column Group', 'so-css' ),
427 'table-header-group' => esc_html__( 'Table Header Group', 'so-css' ),
428 'table-footer-group' => esc_html__( 'Table Footer Group', 'so-css' ),
429 'table-row-group' => esc_html__( 'Table Row Group', 'so-css' ),
430 'table-cell' => esc_html__( 'Table Cell', 'so-css' ),
431 'table-column' => esc_html__( 'Table Column', 'so-css' ),
432 'table-row' => esc_html__( 'Table Row', 'so-css' ),
433 ),
434 ),
435 ),
436 array(
437 'title' => esc_html__( 'Float', 'so-css' ),
438 'type' => 'select',
439 'args' => array(
440 'property' => 'float',
441 'options' => array(
442 'none' => esc_html__( 'None', 'so-css' ),
443 'left' => esc_html__( 'Left', 'so-css' ),
444 'right' => esc_html__( 'Right', 'so-css' ),
445 ),
446 ),
447 ),
448 array(
449 'title' => esc_html__( 'Clear', 'so-css' ),
450 'type' => 'select',
451 'args' => array(
452 'property' => 'clear',
453 'options' => array(
454 'none' => esc_html__( 'None', 'so-css' ),
455 'left' => esc_html__( 'Left', 'so-css' ),
456 'right' => esc_html__( 'Right', 'so-css' ),
457 'both' => esc_html__( 'Both', 'so-css' ),
458 ),
459 ),
460 ),
461 array(
462 'title' => esc_html__( 'Visibility', 'so-css' ),
463 'type' => 'select',
464 'args' => array(
465 'property' => 'visibility',
466 'options' => array(
467 'visible' => esc_html__( 'Visible', 'so-css' ),
468 'hidden' => esc_html__( 'Hidden', 'so-css' ),
469 'collapse' => esc_html__( 'Collapse', 'so-css' ),
470 ),
471 ),
472 ),
473 array(
474 'title' => esc_html__( 'Overflow', 'so-css' ),
475 'type' => 'select',
476 'args' => array(
477 'property' => 'overflow',
478 'options' => array(
479 'visible' => esc_html__( 'Visible', 'so-css' ),
480 'hidden' => esc_html__( 'Hidden', 'so-css' ),
481 'scroll' => esc_html__( 'Scroll', 'so-css' ),
482 'auto' => esc_html__( 'Auto', 'so-css' ),
483 ),
484 ),
485 ),
486 array(
487 'title' => esc_html__( 'Overflow X', 'so-css' ),
488 'type' => 'select',
489 'args' => array(
490 'property' => 'overflow-x',
491 'options' => array(
492 'visible' => esc_html__( 'Visible', 'so-css' ),
493 'hidden' => esc_html__( 'Hidden', 'so-css' ),
494 'scroll' => esc_html__( 'Scroll', 'so-css' ),
495 'auto' => esc_html__( 'Auto', 'so-css' ),
496 ),
497 ),
498 ),
499 array(
500 'title' => esc_html__( 'Overflow Y', 'so-css' ),
501 'type' => 'select',
502 'args' => array(
503 'property' => 'overflow-y',
504 'options' => array(
505 'visible' => esc_html__( 'Visible', 'so-css' ),
506 'hidden' => esc_html__( 'Hidden', 'so-css' ),
507 'scroll' => esc_html__( 'Scroll', 'so-css' ),
508 'auto' => esc_html__( 'Auto', 'so-css' ),
509 ),
510 ),
511 ),
512 array(
513 'title' => esc_html__( 'Z-Index', 'so-css' ),
514 'type' => 'number',
515 'args' => array(
516 'property' => 'z-index',
517 ),
518 ),
519 ),
520 ),
521 );
522