PluginProbe ʕ •ᴥ•ʔ
SiteOrigin CSS / 1.3.0
SiteOrigin CSS v1.3.0
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 5 years ago legacy.php 11 years ago
controller-config.php
523 lines
1 <?php
2
3 return array (
4 'text' => array(
5 'title' => __('Text', 'so-css'),
6 'icon' => 'align-left',
7 'controllers' => array(
8 array(
9 'title' => __('Text Color', 'so-css'),
10 'type' => 'color',
11 'args' => array(
12 'property' => 'color'
13 )
14 ),
15 array(
16 'title' => __('Font Size', 'so-css'),
17 'type' => 'measurement',
18 'args' => array(
19 'property' => 'font-size',
20 'defaultUnit' => 'px',
21 )
22 ),
23 array(
24 'title' => __('Line Height', 'so-css'),
25 'type' => 'measurement',
26 'args' => array(
27 'property' => 'line-height',
28 'defaultUnit' => 'em',
29 )
30 ),
31 array(
32 'title' => __('Font Weight', 'so-css'),
33 'type' => 'select',
34 'args' => array(
35 'property' => 'font-weight',
36 'options' => array(
37 'normal' => __('Normal', 'so-css'),
38 'bold' => __('Bold', 'so-css'),
39 'bolder' => __('Bolder', 'so-css'),
40 'lighter' => __('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' => __('Font Style', 'so-css'),
55 'type' => 'select',
56 'args' => array(
57 'property' => 'font-style',
58 'options' => array(
59 'none' => __('None', 'so-css'),
60 'normal' => __('Normal', 'so-css'),
61 'italic' => __('Italic', 'so-css'),
62 ),
63 'option_icons' => array(
64 'normal' => 'font',
65 'italic' => 'italic',
66 )
67 )
68 ),
69 array(
70 'title' => __('Text Decoration', 'so-css'),
71 'type' => 'select',
72 'args' => array(
73 'property' => 'text-decoration',
74 'options' => array(
75 'none' => __('None', 'so-css'),
76 'underline' => __('Underline', 'so-css'),
77 'overline' => __('Overline', 'so-css'),
78 'line-through' => __('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' => __('Font Variant', 'so-css'),
89 'type' => 'select',
90 'args' => array(
91 'property' => 'font-variant',
92 'options' => array(
93 'normal' => __('Normal', 'so-css'),
94 'small-caps' => __('Small Caps', 'so-css'),
95 )
96 )
97 ),
98 array(
99 'title' => __('Text Transform', 'so-css'),
100 'type' => 'select',
101 'args' => array(
102 'property' => 'text-transform',
103 'options' => array(
104 'none' => __('None', 'so-css'),
105 'capitalize' => __('Capitalize', 'so-css'),
106 'uppercase' => __('Uppercase', 'so-css'),
107 'lowercase' => __('Lowercase', 'so-css'),
108 )
109 )
110 ),
111 array(
112 'title' => __('Font Family', 'so-css'),
113 'type' => 'font_select',
114 'args' => array(
115 'property' => 'font-family',
116 )
117 ),
118 array(
119 'title' => __('Text Align', 'so-css'),
120 'type' => 'select',
121 'args' => array(
122 'property' => 'text-align',
123 'options' => array(
124 'left' => __('Left', 'so-css'),
125 'right' => __('Right', 'so-css'),
126 'center' => __('Center', 'so-css'),
127 'justify' => __('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' => __('Text Indent', 'so-css'),
139 'type' => 'measurement',
140 'args' => array(
141 'property' => 'text-indent'
142 )
143 ),
144 array(
145 'title' => __('Letter Spacing', 'so-css'),
146 'type' => 'measurement',
147 'args' => array(
148 'property' => 'letter-spacing'
149 )
150 ),
151 array(
152 'title' => __('Word Spacing', 'so-css'),
153 'type' => 'measurement',
154 'args' => array(
155 'property' => 'word-spacing'
156 )
157 ),
158 array(
159 'title' => __('White Space', 'so-css'),
160 'type' => 'select',
161 'args' => array(
162 'property' => 'white-space',
163 'options' => array(
164 'normal' => __('Normal', 'so-css'),
165 'encountered' => __('Encountered', 'so-css'),
166 'pre' => __('Pre', 'so-css'),
167 'pre-line' => __('Pre Line', 'so-css'),
168 'pre-wrap' => __('Pre Wrap', 'so-css'),
169 )
170 )
171 ),
172 array(
173 'title' => __('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' => __('Decoration', 'so-css'),
186 'icon' => 'eyedropper',
187 'controllers' => array(
188 array(
189 'title' => __('Background Color', 'so-css'),
190 'type' => 'color',
191 'args' => array(
192 'property' => 'background-color'
193 )
194 ),
195 array(
196 'title' => __('Background Image', 'so-css'),
197 'type' => 'image',
198 'args' => array(
199 'property' => 'background-image',
200 'value' => 'url("{{url}}")',
201 )
202 ),
203 array(
204 'title' => __('Background Position', 'so-css'),
205 'type' => 'position',
206 'args' => array(
207 'property' => 'background-position'
208 )
209 ),
210 array(
211 'title' => __('Background Repeat', 'so-css'),
212 'type' => 'select',
213 'args' => array(
214 'property' => 'background-repeat',
215 'options' => array(
216 'repeat' => __( 'repeat', 'so-css' ),
217 'repeat-x' => __( 'repeat-x', 'so-css' ),
218 'repeat-y' => __( 'repeat-y', 'so-css' ),
219 'no-repeat' => __( 'no-repeat', 'so-css' ),
220 )
221 )
222 ),
223 array(
224 'title' => __('Background Size', 'so-css'),
225 'type' => 'select',
226 'args' => array(
227 'property' => 'background-size',
228 'options' => array(
229 'auto' => __( 'auto', 'so-css' ),
230 'length' => __( 'length', 'so-css' ),
231 'percentage' => __( 'percentage', 'so-css' ),
232 'cover' => __( 'cover', 'so-css' ),
233 'contain' => __( 'contain', 'so-css' ),
234 )
235 )
236 ),
237
238 array(
239 'title' => __('Box Shadow', 'so-css'),
240 'type' => 'shadow',
241 'args' => array(
242 'property' => 'box-shadow',
243 )
244 ),
245
246 array(
247 'title' => __('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' => __('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' => __( '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' => __('Layout', 'so-css'),
327 'icon' => 'columns',
328 'controllers' => array(
329 array(
330 'title' => __('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' => __('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' => __('Position', 'so-css'),
365 'type' => 'select',
366 'args' => array(
367 'property' => 'position',
368 'options' => array(
369 'absolute' => __( 'Absolute', 'so-css' ),
370 'fixed' => __( 'Fixed', 'so-css' ),
371 'relative' => __( 'Relative', 'so-css' ),
372 'static' => __( 'Static', 'so-css' ),
373 'inherit' => __( 'Inherit', 'so-css' ),
374 )
375 )
376 ),
377 array(
378 'title' => __('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' => __('Width', 'so-css'),
395 'type' => 'measurement',
396 'args' => array(
397 'property' => 'width',
398 'defaultUnit' => 'px',
399 )
400 ),
401 array(
402 'title' => __('Height', 'so-css'),
403 'type' => 'measurement',
404 'args' => array(
405 'property' => 'height',
406 'defaultUnit' => '%',
407 )
408 ),
409 array(
410 'title' => __('Display', 'so-css'),
411 'type' => 'select',
412 'args' => array(
413 'property' => 'display',
414 'options' => array(
415 'none' => __( 'None', 'so-css'),
416 'inline' => __( 'Inline', 'so-css'),
417 'block' => __( 'Block', 'so-css'),
418 'flex' => __( 'Flex', 'so-css'),
419 'inline-block' => __( 'Inline Block', 'so-css'),
420 'inline-flex' => __( 'Inline Flex', 'so-css'),
421 'inline-table' => __( 'Inline Table', 'so-css'),
422 'list-item' => __( 'List Item', 'so-css'),
423 'run-in' => __( 'Run In', 'so-css'),
424 'table' => __( 'Table', 'so-css'),
425 'table-caption' => __( 'Table Caption', 'so-css'),
426 'table-column-group' => __( 'Table Column Group', 'so-css'),
427 'table-header-group' => __( 'Table Header Group', 'so-css'),
428 'table-footer-group' => __( 'Table Footer Group', 'so-css'),
429 'table-row-group' => __( 'Table Row Group', 'so-css'),
430 'table-cell' => __( 'Table Cell', 'so-css'),
431 'table-column' => __( 'Table Column', 'so-css'),
432 'table-row' => __( 'Table Row', 'so-css'),
433 )
434 )
435 ),
436 array(
437 'title' => __('Float', 'so-css'),
438 'type' => 'select',
439 'args' => array(
440 'property' => 'float',
441 'options' => array(
442 'none' => __( 'None', 'so-css'),
443 'left' => __( 'Left', 'so-css'),
444 'right' => __( 'Right', 'so-css'),
445 )
446 )
447 ),
448 array(
449 'title' => __('Clear', 'so-css'),
450 'type' => 'select',
451 'args' => array(
452 'property' => 'clear',
453 'options' => array(
454 'none' => __( 'None', 'so-css'),
455 'left' => __( 'Left', 'so-css'),
456 'right' => __( 'Right', 'so-css'),
457 'both' => __( 'Both', 'so-css'),
458 )
459 )
460 ),
461 array(
462 'title' => __('Visibility', 'so-css'),
463 'type' => 'select',
464 'args' => array(
465 'property' => 'visibility',
466 'options' => array(
467 'visible' => __( 'Visible', 'so-css'),
468 'hidden' => __( 'Hidden', 'so-css'),
469 'collapse' => __( 'Collapse', 'so-css'),
470 )
471 )
472 ),
473 array(
474 'title' => __('Overflow', 'so-css'),
475 'type' => 'select',
476 'args' => array(
477 'property' => 'overflow',
478 'options' => array(
479 'visible' => __( 'Visible', 'so-css'),
480 'hidden' => __( 'Hidden', 'so-css'),
481 'scroll' => __( 'Scroll', 'so-css'),
482 'auto' => __( 'Auto', 'so-css'),
483 )
484 )
485 ),
486 array(
487 'title' => __('Overflow X', 'so-css'),
488 'type' => 'select',
489 'args' => array(
490 'property' => 'overflow-x',
491 'options' => array(
492 'visible' => __( 'Visible', 'so-css'),
493 'hidden' => __( 'Hidden', 'so-css'),
494 'scroll' => __( 'Scroll', 'so-css'),
495 'auto' => __( 'Auto', 'so-css'),
496 )
497 )
498 ),
499 array(
500 'title' => __('Overflow Y', 'so-css'),
501 'type' => 'select',
502 'args' => array(
503 'property' => 'overflow-y',
504 'options' => array(
505 'visible' => __( 'Visible', 'so-css'),
506 'hidden' => __( 'Hidden', 'so-css'),
507 'scroll' => __( 'Scroll', 'so-css'),
508 'auto' => __( 'Auto', 'so-css'),
509 )
510 )
511 ),
512 array(
513 'title' => __('Z-Index', 'so-css'),
514 'type' => 'number',
515 'args' => array(
516 'property' => 'z-index',
517 )
518 ),
519 )
520 ),
521
522 );
523