PluginProbe ʕ •ᴥ•ʔ
SiteOrigin CSS / 1.6.1
SiteOrigin CSS v1.6.1
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
installer 1 year ago controller-config.php 1 year ago legacy.php 3 years ago
controller-config.php
535 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
224 array(
225 'title' => esc_html__( 'Background Size', 'so-css' ),
226 'type' => 'select',
227 'args' => array(
228 'property' => 'background-size',
229 'options' => array(
230 'auto' => esc_html__( 'auto', 'so-css' ),
231 'length' => esc_html__( 'length', 'so-css' ),
232 'percentage' => esc_html__( 'percentage', 'so-css' ),
233 'cover' => esc_html__( 'cover', 'so-css' ),
234 'contain' => esc_html__( 'contain', 'so-css' ),
235 ),
236 ),
237 ),
238
239 array(
240 'title' => esc_html__( 'Background Attachment', 'so-css' ),
241 'type' => 'select',
242 'args' => array(
243 'property' => 'background-attachment',
244 'options' => array(
245 'scroll' => esc_html__( 'scroll', 'so-css' ),
246 'fixed' => esc_html__( 'fixed', 'so-css' ),
247 ),
248 ),
249 ),
250
251 array(
252 'title' => esc_html__( 'Box Shadow', 'so-css' ),
253 'type' => 'shadow',
254 'args' => array(
255 'property' => 'box-shadow',
256 ),
257 ),
258
259 array(
260 'title' => esc_html__( 'Opacity', 'so-css' ),
261 'type' => 'number',
262 'args' => array(
263 'property' => 'opacity',
264 'default' => 1,
265 'min' => 0,
266 'max' => 1,
267 'increment' => 0.05,
268 'decrement' => -0.05,
269 ),
270 ),
271
272 array(
273 'title' => esc_html__( 'Borders', 'so-css' ),
274 'type' => 'sides',
275 'args' => array(
276 'controllers' => array(
277 array(
278 'type' => 'measurement',
279 'args' => array(
280 'property' => 'border-{dir}-width',
281 'propertyAll' => 'border-width',
282 'defaultUnit' => 'px',
283 ),
284 ),
285 array(
286 'type' => 'select',
287 'args' => array(
288 'property' => 'border-{dir}-style',
289 'propertyAll' => 'border-style',
290 'options' => array(
291 'hidden' => 'Hidden',
292 'dotted' => 'Dotted',
293 'dashed' => 'Dashed',
294 'solid' => 'Solid',
295 'double' => 'Double',
296 'groove' => 'Groove',
297 'ridge' => 'Ridge',
298 'inset' => 'Inset',
299 'outset' => 'Outset',
300 ),
301 ),
302 ),
303 array(
304 'type' => 'color',
305 'args' => array(
306 'property' => 'border-{dir}-color',
307 'propertyAll' => 'border-color',
308 ),
309 ),
310 ),
311 'hasAll' => true,
312 ),
313 ),
314
315 array(
316 'title' => esc_html__( 'Border Radius', 'so-css' ),
317 'type' => 'sides',
318 'args' => array(
319 'controllers' => array(
320 array(
321 'type' => 'measurement',
322 'args' => array(
323 'property' => 'border-{dir}-radius',
324 'propertyAll' => 'border-radius',
325 'defaultUnit' => 'px',
326 ),
327 ),
328 ),
329 'isRadius' => true,
330 'hasAll' => true,
331 ),
332 ),
333 ),
334 ),
335
336 //////////////////////////////////////////////////////////////////////
337
338 'layout' => array(
339 'title' => esc_html__( 'Layout', 'so-css' ),
340 'icon' => 'columns',
341 'controllers' => array(
342 array(
343 'title' => esc_html__( 'Margin', 'so-css' ),
344 'type' => 'sides',
345 'args' => array(
346 'controllers' => array(
347 array(
348 'type' => 'measurement',
349 'args' => array(
350 'property' => 'margin-{dir}',
351 'propertyAll' => 'margin',
352 'defaultUnit' => 'px',
353 ),
354 ),
355 ),
356 'hasAll' => true,
357 ),
358 ),
359 array(
360 'title' => esc_html__( 'Padding', 'so-css' ),
361 'type' => 'sides',
362 'args' => array(
363 'controllers' => array(
364 array(
365 'type' => 'measurement',
366 'args' => array(
367 'property' => 'padding-{dir}',
368 'propertyAll' => 'padding',
369 'defaultUnit' => 'px',
370 ),
371 ),
372 ),
373 'hasAll' => true,
374 ),
375 ),
376 array(
377 'title' => esc_html__( 'Position', 'so-css' ),
378 'type' => 'select',
379 'args' => array(
380 'property' => 'position',
381 'options' => array(
382 'absolute' => esc_html__( 'Absolute', 'so-css' ),
383 'fixed' => esc_html__( 'Fixed', 'so-css' ),
384 'relative' => esc_html__( 'Relative', 'so-css' ),
385 'static' => esc_html__( 'Static', 'so-css' ),
386 'inherit' => esc_html__( 'Inherit', 'so-css' ),
387 ),
388 ),
389 ),
390 array(
391 'title' => esc_html__( 'Absolute Position', 'so-css' ),
392 'type' => 'sides',
393 'args' => array(
394 'controllers' => array(
395 array(
396 'type' => 'measurement',
397 'args' => array(
398 'property' => '{dir}',
399 'defaultUnit' => 'px',
400 ),
401 ),
402 ),
403 'hasAll' => false,
404 ),
405 ),
406 array(
407 'title' => esc_html__( 'Width', 'so-css' ),
408 'type' => 'measurement',
409 'args' => array(
410 'property' => 'width',
411 'defaultUnit' => 'px',
412 ),
413 ),
414 array(
415 'title' => esc_html__( 'Height', 'so-css' ),
416 'type' => 'measurement',
417 'args' => array(
418 'property' => 'height',
419 'defaultUnit' => '%',
420 ),
421 ),
422 array(
423 'title' => esc_html__( 'Display', 'so-css' ),
424 'type' => 'select',
425 'args' => array(
426 'property' => 'display',
427 'options' => array(
428 'none' => esc_html__( 'None', 'so-css' ),
429 'inline' => esc_html__( 'Inline', 'so-css' ),
430 'block' => esc_html__( 'Block', 'so-css' ),
431 'flex' => esc_html__( 'Flex', 'so-css' ),
432 'inline-block' => esc_html__( 'Inline Block', 'so-css' ),
433 'inline-flex' => esc_html__( 'Inline Flex', 'so-css' ),
434 'inline-table' => esc_html__( 'Inline Table', 'so-css' ),
435 'list-item' => esc_html__( 'List Item', 'so-css' ),
436 'run-in' => esc_html__( 'Run In', 'so-css' ),
437 'table' => esc_html__( 'Table', 'so-css' ),
438 'table-caption' => esc_html__( 'Table Caption', 'so-css' ),
439 'table-column-group' => esc_html__( 'Table Column Group', 'so-css' ),
440 'table-header-group' => esc_html__( 'Table Header Group', 'so-css' ),
441 'table-footer-group' => esc_html__( 'Table Footer Group', 'so-css' ),
442 'table-row-group' => esc_html__( 'Table Row Group', 'so-css' ),
443 'table-cell' => esc_html__( 'Table Cell', 'so-css' ),
444 'table-column' => esc_html__( 'Table Column', 'so-css' ),
445 'table-row' => esc_html__( 'Table Row', 'so-css' ),
446 ),
447 ),
448 ),
449 array(
450 'title' => esc_html__( 'Float', 'so-css' ),
451 'type' => 'select',
452 'args' => array(
453 'property' => 'float',
454 'options' => array(
455 'none' => esc_html__( 'None', 'so-css' ),
456 'left' => esc_html__( 'Left', 'so-css' ),
457 'right' => esc_html__( 'Right', 'so-css' ),
458 ),
459 ),
460 ),
461 array(
462 'title' => esc_html__( 'Clear', 'so-css' ),
463 'type' => 'select',
464 'args' => array(
465 'property' => 'clear',
466 'options' => array(
467 'none' => esc_html__( 'None', 'so-css' ),
468 'left' => esc_html__( 'Left', 'so-css' ),
469 'right' => esc_html__( 'Right', 'so-css' ),
470 'both' => esc_html__( 'Both', 'so-css' ),
471 ),
472 ),
473 ),
474 array(
475 'title' => esc_html__( 'Visibility', 'so-css' ),
476 'type' => 'select',
477 'args' => array(
478 'property' => 'visibility',
479 'options' => array(
480 'visible' => esc_html__( 'Visible', 'so-css' ),
481 'hidden' => esc_html__( 'Hidden', 'so-css' ),
482 'collapse' => esc_html__( 'Collapse', 'so-css' ),
483 ),
484 ),
485 ),
486 array(
487 'title' => esc_html__( 'Overflow', 'so-css' ),
488 'type' => 'select',
489 'args' => array(
490 'property' => 'overflow',
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 X', 'so-css' ),
501 'type' => 'select',
502 'args' => array(
503 'property' => 'overflow-x',
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__( 'Overflow Y', 'so-css' ),
514 'type' => 'select',
515 'args' => array(
516 'property' => 'overflow-y',
517 'options' => array(
518 'visible' => esc_html__( 'Visible', 'so-css' ),
519 'hidden' => esc_html__( 'Hidden', 'so-css' ),
520 'scroll' => esc_html__( 'Scroll', 'so-css' ),
521 'auto' => esc_html__( 'Auto', 'so-css' ),
522 ),
523 ),
524 ),
525 array(
526 'title' => esc_html__( 'Z-Index', 'so-css' ),
527 'type' => 'number',
528 'args' => array(
529 'property' => 'z-index',
530 ),
531 ),
532 ),
533 ),
534 );
535