SiteOrigin CSS - Version 1.4.2

Version Description

  • 08 November 2021 =
  • Fixed string translation functions.
Download this release

Release Info

Developer SiteOrigin
Plugin Icon 128x128 SiteOrigin CSS
Version 1.4.2
Comparing to
See all releases

Code changes from version 1.4.1 to 1.4.2

Files changed (6) hide show
  1. inc/controller-config.php +121 -121
  2. lang/so-css.pot +456 -0
  3. readme.txt +5 -2
  4. so-css.php +28 -28
  5. tpl/js-templates.php +1 -1
  6. tpl/page.php +7 -7
inc/controller-config.php CHANGED
@@ -2,18 +2,18 @@
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',
@@ -21,7 +21,7 @@ return array (
21
  )
22
  ),
23
  array(
24
- 'title' => esc_html( 'Line Height', 'so-css' ),
25
  'type' => 'measurement',
26
  'args' => array(
27
  'property' => 'line-height',
@@ -29,15 +29,15 @@ return array (
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',
@@ -51,14 +51,14 @@ return array (
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',
@@ -67,15 +67,15 @@ return array (
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',
@@ -85,46 +85,46 @@ return array (
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',
@@ -135,42 +135,42 @@ return array (
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',
@@ -182,18 +182,18 @@ return array (
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',
@@ -201,42 +201,42 @@ return array (
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',
@@ -244,7 +244,7 @@ return array (
244
  ),
245
 
246
  array(
247
- 'title' => esc_html( 'Opacity', 'so-css' ),
248
  'type' => 'number',
249
  'args' => array(
250
  'property' => 'opacity',
@@ -257,7 +257,7 @@ return array (
257
  ),
258
 
259
  array(
260
- 'title' => esc_html( 'Borders', 'so-css' ),
261
  'type' => 'sides',
262
  'args' => array(
263
  'controllers' => array(
@@ -300,7 +300,7 @@ return array (
300
  ),
301
 
302
  array(
303
- 'title' => esc_html( 'Border Radius', 'so-css' ),
304
  'type' => 'sides',
305
  'args' => array(
306
  'controllers' => array(
@@ -323,11 +323,11 @@ return array (
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(
@@ -344,7 +344,7 @@ return array (
344
  )
345
  ),
346
  array(
347
- 'title' => esc_html( 'Padding', 'so-css' ),
348
  'type' => 'sides',
349
  'args' => array(
350
  'controllers' => array(
@@ -361,21 +361,21 @@ return array (
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(
@@ -391,7 +391,7 @@ return array (
391
  )
392
  ),
393
  array(
394
- 'title' => esc_html( 'Width', 'so-css' ),
395
  'type' => 'measurement',
396
  'args' => array(
397
  'property' => 'width',
@@ -399,7 +399,7 @@ return array (
399
  )
400
  ),
401
  array(
402
- 'title' => esc_html( 'Height', 'so-css' ),
403
  'type' => 'measurement',
404
  'args' => array(
405
  'property' => 'height',
@@ -407,110 +407,110 @@ return array (
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',
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',
21
  )
22
  ),
23
  array(
24
+ 'title' => esc_html__( 'Line Height', 'so-css' ),
25
  'type' => 'measurement',
26
  'args' => array(
27
  'property' => 'line-height',
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',
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',
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',
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',
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',
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',
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',
244
  ),
245
 
246
  array(
247
+ 'title' => esc_html__( 'Opacity', 'so-css' ),
248
  'type' => 'number',
249
  'args' => array(
250
  'property' => 'opacity',
257
  ),
258
 
259
  array(
260
+ 'title' => esc_html__( 'Borders', 'so-css' ),
261
  'type' => 'sides',
262
  'args' => array(
263
  'controllers' => array(
300
  ),
301
 
302
  array(
303
+ 'title' => esc_html__( 'Border Radius', 'so-css' ),
304
  'type' => 'sides',
305
  'args' => array(
306
  'controllers' => array(
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(
344
  )
345
  ),
346
  array(
347
+ 'title' => esc_html__( 'Padding', 'so-css' ),
348
  'type' => 'sides',
349
  'args' => array(
350
  'controllers' => array(
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(
391
  )
392
  ),
393
  array(
394
+ 'title' => esc_html__( 'Width', 'so-css' ),
395
  'type' => 'measurement',
396
  'args' => array(
397
  'property' => 'width',
399
  )
400
  ),
401
  array(
402
+ 'title' => esc_html__( 'Height', 'so-css' ),
403
  'type' => 'measurement',
404
  'args' => array(
405
  'property' => 'height',
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',
lang/so-css.pot CHANGED
@@ -36,6 +36,50 @@ msgstr ""
36
  msgid "https://siteorigin.com/css/"
37
  msgstr ""
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  #: so-css.php:452, tpl/page.php:99, tpl/page.php:127
40
  msgid "Save CSS"
41
  msgstr ""
@@ -56,6 +100,14 @@ msgstr ""
56
  msgid "Revert to this revision"
57
  msgstr ""
58
 
 
 
 
 
 
 
 
 
59
  #: so-css.php:624
60
  msgid "%d chars"
61
  msgstr ""
@@ -64,6 +116,406 @@ msgstr ""
64
  msgid "Latest"
65
  msgstr ""
66
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  #: tpl/inspector-templates.php:4
68
  msgid "Navigate To: "
69
  msgstr ""
@@ -84,6 +536,10 @@ msgstr ""
84
  msgid "Invalid URI. Please make sure you're using a URL from the same site."
85
  msgstr ""
86
 
 
 
 
 
87
  #: tpl/page.php:28
88
  msgid "Site design updated."
89
  msgstr ""
36
  msgid "https://siteorigin.com/css/"
37
  msgstr ""
38
 
39
+ #: so-css.php:264, so-css.php:264, so-css.php:295
40
+ msgid "Custom CSS"
41
+ msgstr ""
42
+
43
+ #: so-css.php:297
44
+ msgid "SiteOrigin CSS adds any custom CSS you enter here into your site's header. "
45
+ msgstr ""
46
+
47
+ #: so-css.php:298
48
+ msgid "These changes will persist across updates so it's best to make all your changes here. "
49
+ msgstr ""
50
+
51
+ #: so-css.php:362
52
+ msgid "Unchanged"
53
+ msgstr ""
54
+
55
+ #: so-css.php:363
56
+ msgid "Select"
57
+ msgstr ""
58
+
59
+ #: so-css.php:364
60
+ msgid "Select Image"
61
+ msgstr ""
62
+
63
+ #: so-css.php:365
64
+ msgid "Are you sure you want to leave without saving?"
65
+ msgstr ""
66
+
67
+ #: so-css.php:434
68
+ msgid "CSS Editor"
69
+ msgstr ""
70
+
71
+ #: so-css.php:435
72
+ msgid "Support"
73
+ msgstr ""
74
+
75
+ #: so-css.php:437
76
+ msgid "Addons"
77
+ msgstr ""
78
+
79
+ #: so-css.php:451
80
+ msgid "Changes apply to %s and its child themes"
81
+ msgstr ""
82
+
83
  #: so-css.php:452, tpl/page.php:99, tpl/page.php:127
84
  msgid "Save CSS"
85
  msgstr ""
100
  msgid "Revert to this revision"
101
  msgstr ""
102
 
103
+ #: so-css.php:537, so-css.php:558, so-css.php:577
104
+ msgid "The supplied nonce is invalid."
105
+ msgstr ""
106
+
107
+ #: so-css.php:538, so-css.php:559, so-css.php:578
108
+ msgid "Invalid nonce."
109
+ msgstr ""
110
+
111
  #: so-css.php:624
112
  msgid "%d chars"
113
  msgstr ""
116
  msgid "Latest"
117
  msgstr ""
118
 
119
+ #: so-css.php:630
120
+ msgid "No revisions yet."
121
+ msgstr ""
122
+
123
+ #: inc/controller-config.php:5
124
+ msgid "Text"
125
+ msgstr ""
126
+
127
+ #: inc/controller-config.php:9
128
+ msgid "Text Color"
129
+ msgstr ""
130
+
131
+ #: inc/controller-config.php:16
132
+ msgid "Font Size"
133
+ msgstr ""
134
+
135
+ #: inc/controller-config.php:24
136
+ msgid "Line Height"
137
+ msgstr ""
138
+
139
+ #: inc/controller-config.php:32
140
+ msgid "Font Weight"
141
+ msgstr ""
142
+
143
+ #: inc/controller-config.php:37, inc/controller-config.php:60, inc/controller-config.php:93, inc/controller-config.php:164
144
+ msgid "Normal"
145
+ msgstr ""
146
+
147
+ #: inc/controller-config.php:38
148
+ msgid "Bold"
149
+ msgstr ""
150
+
151
+ #: inc/controller-config.php:39
152
+ msgid "Bolder"
153
+ msgstr ""
154
+
155
+ #: inc/controller-config.php:40
156
+ msgid "Lighter"
157
+ msgstr ""
158
+
159
+ #: inc/controller-config.php:54
160
+ msgid "Font Style"
161
+ msgstr ""
162
+
163
+ #: inc/controller-config.php:59, inc/controller-config.php:75, inc/controller-config.php:104, inc/controller-config.php:415, inc/controller-config.php:442, inc/controller-config.php:454
164
+ msgid "None"
165
+ msgstr ""
166
+
167
+ #: inc/controller-config.php:61
168
+ msgid "Italic"
169
+ msgstr ""
170
+
171
+ #: inc/controller-config.php:70
172
+ msgid "Text Decoration"
173
+ msgstr ""
174
+
175
+ #: inc/controller-config.php:76
176
+ msgid "Underline"
177
+ msgstr ""
178
+
179
+ #: inc/controller-config.php:77
180
+ msgid "Overline"
181
+ msgstr ""
182
+
183
+ #: inc/controller-config.php:78
184
+ msgid "Line Through"
185
+ msgstr ""
186
+
187
+ #: inc/controller-config.php:88
188
+ msgid "Font Variant"
189
+ msgstr ""
190
+
191
+ #: inc/controller-config.php:94
192
+ msgid "Small Caps"
193
+ msgstr ""
194
+
195
+ #: inc/controller-config.php:99
196
+ msgid "Text Transform"
197
+ msgstr ""
198
+
199
+ #: inc/controller-config.php:105
200
+ msgid "Capitalize"
201
+ msgstr ""
202
+
203
+ #: inc/controller-config.php:106
204
+ msgid "Uppercase"
205
+ msgstr ""
206
+
207
+ #: inc/controller-config.php:107
208
+ msgid "Lowercase"
209
+ msgstr ""
210
+
211
+ #: inc/controller-config.php:112
212
+ msgid "Font Family"
213
+ msgstr ""
214
+
215
+ #: inc/controller-config.php:119
216
+ msgid "Text Align"
217
+ msgstr ""
218
+
219
+ #: inc/controller-config.php:124, inc/controller-config.php:443, inc/controller-config.php:455
220
+ msgid "Left"
221
+ msgstr ""
222
+
223
+ #: inc/controller-config.php:125, inc/controller-config.php:444, inc/controller-config.php:456
224
+ msgid "Right"
225
+ msgstr ""
226
+
227
+ #: inc/controller-config.php:126
228
+ msgid "Center"
229
+ msgstr ""
230
+
231
+ #: inc/controller-config.php:127
232
+ msgid "Justify"
233
+ msgstr ""
234
+
235
+ #: inc/controller-config.php:138
236
+ msgid "Text Indent"
237
+ msgstr ""
238
+
239
+ #: inc/controller-config.php:145
240
+ msgid "Letter Spacing"
241
+ msgstr ""
242
+
243
+ #: inc/controller-config.php:152
244
+ msgid "Word Spacing"
245
+ msgstr ""
246
+
247
+ #: inc/controller-config.php:159
248
+ msgid "White Space"
249
+ msgstr ""
250
+
251
+ #: inc/controller-config.php:165
252
+ msgid "Encountered"
253
+ msgstr ""
254
+
255
+ #: inc/controller-config.php:166
256
+ msgid "Pre"
257
+ msgstr ""
258
+
259
+ #: inc/controller-config.php:167
260
+ msgid "Pre Line"
261
+ msgstr ""
262
+
263
+ #: inc/controller-config.php:168
264
+ msgid "Pre Wrap"
265
+ msgstr ""
266
+
267
+ #: inc/controller-config.php:173
268
+ msgid "Text Shadow"
269
+ msgstr ""
270
+
271
+ #: inc/controller-config.php:185
272
+ msgid "Decoration"
273
+ msgstr ""
274
+
275
+ #: inc/controller-config.php:189
276
+ msgid "Background Color"
277
+ msgstr ""
278
+
279
+ #: inc/controller-config.php:196
280
+ msgid "Background Image"
281
+ msgstr ""
282
+
283
+ #: inc/controller-config.php:204
284
+ msgid "Background Position"
285
+ msgstr ""
286
+
287
+ #: inc/controller-config.php:211
288
+ msgid "Background Repeat"
289
+ msgstr ""
290
+
291
+ #: inc/controller-config.php:216
292
+ msgid "repeat"
293
+ msgstr ""
294
+
295
+ #: inc/controller-config.php:217
296
+ msgid "repeat-x"
297
+ msgstr ""
298
+
299
+ #: inc/controller-config.php:218
300
+ msgid "repeat-y"
301
+ msgstr ""
302
+
303
+ #: inc/controller-config.php:219
304
+ msgid "no-repeat"
305
+ msgstr ""
306
+
307
+ #: inc/controller-config.php:224
308
+ msgid "Background Size"
309
+ msgstr ""
310
+
311
+ #: inc/controller-config.php:229
312
+ msgid "auto"
313
+ msgstr ""
314
+
315
+ #: inc/controller-config.php:230
316
+ msgid "length"
317
+ msgstr ""
318
+
319
+ #: inc/controller-config.php:231
320
+ msgid "percentage"
321
+ msgstr ""
322
+
323
+ #: inc/controller-config.php:232
324
+ msgid "cover"
325
+ msgstr ""
326
+
327
+ #: inc/controller-config.php:233
328
+ msgid "contain"
329
+ msgstr ""
330
+
331
+ #: inc/controller-config.php:239
332
+ msgid "Box Shadow"
333
+ msgstr ""
334
+
335
+ #: inc/controller-config.php:247
336
+ msgid "Opacity"
337
+ msgstr ""
338
+
339
+ #: inc/controller-config.php:260
340
+ msgid "Borders"
341
+ msgstr ""
342
+
343
+ #: inc/controller-config.php:303
344
+ msgid "Border Radius"
345
+ msgstr ""
346
+
347
+ #: inc/controller-config.php:326
348
+ msgid "Layout"
349
+ msgstr ""
350
+
351
+ #: inc/controller-config.php:330
352
+ msgid "Margin"
353
+ msgstr ""
354
+
355
+ #: inc/controller-config.php:347
356
+ msgid "Padding"
357
+ msgstr ""
358
+
359
+ #: inc/controller-config.php:364
360
+ msgid "Position"
361
+ msgstr ""
362
+
363
+ #: inc/controller-config.php:369
364
+ msgid "Absolute"
365
+ msgstr ""
366
+
367
+ #: inc/controller-config.php:370
368
+ msgid "Fixed"
369
+ msgstr ""
370
+
371
+ #: inc/controller-config.php:371
372
+ msgid "Relative"
373
+ msgstr ""
374
+
375
+ #: inc/controller-config.php:372
376
+ msgid "Static"
377
+ msgstr ""
378
+
379
+ #: inc/controller-config.php:373
380
+ msgid "Inherit"
381
+ msgstr ""
382
+
383
+ #: inc/controller-config.php:378
384
+ msgid "Absolute Position"
385
+ msgstr ""
386
+
387
+ #: inc/controller-config.php:394
388
+ msgid "Width"
389
+ msgstr ""
390
+
391
+ #: inc/controller-config.php:402
392
+ msgid "Height"
393
+ msgstr ""
394
+
395
+ #: inc/controller-config.php:410
396
+ msgid "Display"
397
+ msgstr ""
398
+
399
+ #: inc/controller-config.php:416
400
+ msgid "Inline"
401
+ msgstr ""
402
+
403
+ #: inc/controller-config.php:417
404
+ msgid "Block"
405
+ msgstr ""
406
+
407
+ #: inc/controller-config.php:418
408
+ msgid "Flex"
409
+ msgstr ""
410
+
411
+ #: inc/controller-config.php:419
412
+ msgid "Inline Block"
413
+ msgstr ""
414
+
415
+ #: inc/controller-config.php:420
416
+ msgid "Inline Flex"
417
+ msgstr ""
418
+
419
+ #: inc/controller-config.php:421
420
+ msgid "Inline Table"
421
+ msgstr ""
422
+
423
+ #: inc/controller-config.php:422
424
+ msgid "List Item"
425
+ msgstr ""
426
+
427
+ #: inc/controller-config.php:423
428
+ msgid "Run In"
429
+ msgstr ""
430
+
431
+ #: inc/controller-config.php:424
432
+ msgid "Table"
433
+ msgstr ""
434
+
435
+ #: inc/controller-config.php:425
436
+ msgid "Table Caption"
437
+ msgstr ""
438
+
439
+ #: inc/controller-config.php:426
440
+ msgid "Table Column Group"
441
+ msgstr ""
442
+
443
+ #: inc/controller-config.php:427
444
+ msgid "Table Header Group"
445
+ msgstr ""
446
+
447
+ #: inc/controller-config.php:428
448
+ msgid "Table Footer Group"
449
+ msgstr ""
450
+
451
+ #: inc/controller-config.php:429
452
+ msgid "Table Row Group"
453
+ msgstr ""
454
+
455
+ #: inc/controller-config.php:430
456
+ msgid "Table Cell"
457
+ msgstr ""
458
+
459
+ #: inc/controller-config.php:431
460
+ msgid "Table Column"
461
+ msgstr ""
462
+
463
+ #: inc/controller-config.php:432
464
+ msgid "Table Row"
465
+ msgstr ""
466
+
467
+ #: inc/controller-config.php:437
468
+ msgid "Float"
469
+ msgstr ""
470
+
471
+ #: inc/controller-config.php:449
472
+ msgid "Clear"
473
+ msgstr ""
474
+
475
+ #: inc/controller-config.php:457
476
+ msgid "Both"
477
+ msgstr ""
478
+
479
+ #: inc/controller-config.php:462
480
+ msgid "Visibility"
481
+ msgstr ""
482
+
483
+ #: inc/controller-config.php:467, inc/controller-config.php:479, inc/controller-config.php:492, inc/controller-config.php:505
484
+ msgid "Visible"
485
+ msgstr ""
486
+
487
+ #: inc/controller-config.php:468, inc/controller-config.php:480, inc/controller-config.php:493, inc/controller-config.php:506
488
+ msgid "Hidden"
489
+ msgstr ""
490
+
491
+ #: inc/controller-config.php:469
492
+ msgid "Collapse"
493
+ msgstr ""
494
+
495
+ #: inc/controller-config.php:474
496
+ msgid "Overflow"
497
+ msgstr ""
498
+
499
+ #: inc/controller-config.php:481, inc/controller-config.php:494, inc/controller-config.php:507
500
+ msgid "Scroll"
501
+ msgstr ""
502
+
503
+ #: inc/controller-config.php:482, inc/controller-config.php:495, inc/controller-config.php:508
504
+ msgid "Auto"
505
+ msgstr ""
506
+
507
+ #: inc/controller-config.php:487
508
+ msgid "Overflow X"
509
+ msgstr ""
510
+
511
+ #: inc/controller-config.php:500
512
+ msgid "Overflow Y"
513
+ msgstr ""
514
+
515
+ #: inc/controller-config.php:513
516
+ msgid "Z-Index"
517
+ msgstr ""
518
+
519
  #: tpl/inspector-templates.php:4
520
  msgid "Navigate To: "
521
  msgstr ""
536
  msgid "Invalid URI. Please make sure you're using a URL from the same site."
537
  msgstr ""
538
 
539
+ #: tpl/js-templates.php:69
540
+ msgid "Get a %sGoogle Font%s selector."
541
+ msgstr ""
542
+
543
  #: tpl/page.php:28
544
  msgid "Site design updated."
545
  msgstr ""
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Tags: css, visual css, css editor, design, customize
3
  Requires at least: 3.9
4
  Tested up to: 5.8
5
- Stable tag: 1.4.1
6
- Build time: 2021-11-02T22:36:20+02:00
7
  License: GPLv2 or later
8
  Contributors: gpriday, alexgso
9
  Donate link: https://siteorigin.com/downloads/premium/
@@ -71,6 +71,9 @@ SiteOrigin Premium includes access to our professional email support service, pe
71
 
72
  == Changelog ==
73
 
 
 
 
74
  = 1.4.1 - 02 November 2021 =
75
  * Removed Save button rounding.
76
  * Fixed Visual Editor `Navigate To` link functionality.
2
  Tags: css, visual css, css editor, design, customize
3
  Requires at least: 3.9
4
  Tested up to: 5.8
5
+ Stable tag: 1.4.2
6
+ Build time: 2021-11-08T20:49:29+02:00
7
  License: GPLv2 or later
8
  Contributors: gpriday, alexgso
9
  Donate link: https://siteorigin.com/downloads/premium/
71
 
72
  == Changelog ==
73
 
74
+ = 1.4.2 - 08 November 2021 =
75
+ * Fixed string translation functions.
76
+
77
  = 1.4.1 - 02 November 2021 =
78
  * Removed Save button rounding.
79
  * Fixed Visual Editor `Navigate To` link functionality.
so-css.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: SiteOrigin CSS
4
  Description: An advanced CSS editor from SiteOrigin.
5
- Version: 1.4.1
6
  Author: SiteOrigin
7
  Author URI: https://siteorigin.com
8
  Plugin URI: https://siteorigin.com/css/
@@ -14,7 +14,7 @@ Text Domain: so-css
14
  // Handle the legacy CSS editor that came with SiteOrigin themes
15
  include plugin_dir_path( __FILE__ ) . 'inc/legacy.php';
16
 
17
- define( 'SOCSS_VERSION', '1.4.1' );
18
  define( 'SOCSS_JS_SUFFIX', '.min' );
19
 
20
  /**
@@ -261,7 +261,7 @@ class SiteOrigin_CSS {
261
  * Action to run on the admin action.
262
  */
263
  function action_admin_menu() {
264
- add_theme_page( esc_html( 'Custom CSS', 'so-css' ), esc_html( 'Custom CSS', 'so-css' ), 'edit_theme_options', 'so_custom_css', array(
265
  $this,
266
  'display_admin_page'
267
  ) );
@@ -292,10 +292,10 @@ class SiteOrigin_CSS {
292
  $screen = get_current_screen();
293
  $screen->add_help_tab( array(
294
  'id' => 'custom-css',
295
- 'title' => esc_html( 'Custom CSS', 'so-css' ),
296
  'content' => '<p>'
297
- . sprintf( esc_html( "SiteOrigin CSS adds any custom CSS you enter here into your site's header. ", 'so-css' ) )
298
- . esc_html( "These changes will persist across updates so it's best to make all your changes here. ", 'so-css' )
299
  . '</p>'
300
  ) );
301
  }
@@ -359,10 +359,10 @@ class SiteOrigin_CSS {
359
  'propertyControllers' => apply_filters( 'siteorigin_css_property_controllers', $this->get_property_controllers() ),
360
 
361
  'loc' => array(
362
- 'unchanged' => esc_html( 'Unchanged', 'so-css' ),
363
- 'select' => esc_html( 'Select', 'so-css' ),
364
- 'select_image' => esc_html( 'Select Image', 'so-css' ),
365
- 'leave' => esc_html( 'Are you sure you want to leave without saving?', 'so-css' ),
366
  )
367
  ) );
368
 
@@ -431,10 +431,10 @@ class SiteOrigin_CSS {
431
  if ( isset( $links['edit'] ) ) {
432
  unset( $links['edit'] );
433
  }
434
- $links['css_editor'] = '<a href="' . admin_url( 'themes.php?page=so_custom_css' ) . '">' . esc_html( 'CSS Editor', 'so-css' ) . '</a>';
435
- $links['support'] = '<a href="https://siteorigin.com/thread/" target="_blank">' . esc_html( 'Support', 'so-css' ) . '</a>';
436
  if ( apply_filters( 'siteorigin_premium_upgrade_teaser', true ) && ! defined( 'SITEORIGIN_PREMIUM_VERSION' ) ) {
437
- $links['addons'] = '<a href="https://siteorigin.com/downloads/premium/?featured_addon=plugin/web-font-selector" style="color: #3db634" target="_blank" rel="noopener noreferrer">' . esc_html( 'Addons', 'so-css' ) . '</a>';
438
  }
439
  return $links;
440
  }
@@ -445,30 +445,30 @@ class SiteOrigin_CSS {
445
  $theme = filter_input( INPUT_GET, 'theme' );
446
  $time = filter_input( INPUT_GET, 'time', FILTER_VALIDATE_INT );
447
 
448
- $page_title = __( 'SiteOrigin CSS', 'so-css' );
449
  $theme_obj = wp_get_theme();
450
  $theme_name = $theme_obj->get( 'Name' );
451
- $editor_description = sprintf( esc_html( 'Changes apply to %s and its child themes', 'so-css' ), $theme_name );
452
- $save_button_label = __( 'Save CSS', 'so-css' );
453
  $form_save_url = admin_url( 'themes.php?page=so_custom_css' );
454
 
455
  if ( ! empty( $socss_post_id ) ) {
456
  $selected_post = get_post( $socss_post_id );
457
 
458
  $page_title = sprintf(
459
- __( 'Editing CSS for: %s', 'so-css' ),
460
  $selected_post->post_title
461
  );
462
 
463
  $editor_description = sprintf(
464
- __( 'Changes apply to the %s %s when the current theme is %s or its child themes', 'so-css' ),
465
  $selected_post->post_type,
466
  $selected_post->post_title,
467
  $theme_name
468
  );
469
  $post_type_obj = get_post_type_object( $selected_post->post_type );
470
  $post_type_labels = $post_type_obj->labels;
471
- $save_button_label = sprintf( __( 'Save %s CSS', 'so-css' ), $post_type_labels->singular_name );
472
  $form_save_url = add_query_arg( 'socss_post_id', urlencode( $socss_post_id ), $form_save_url );
473
  }
474
  $custom_css = $this->get_custom_css( $this->theme, $socss_post_id );
@@ -481,7 +481,7 @@ class SiteOrigin_CSS {
481
  }
482
 
483
  if ( ! empty ( $current_revision ) ) {
484
- $save_button_label = __( 'Revert to this revision', 'so-css' );
485
  }
486
 
487
  if ( ! empty( $custom_css_revisions ) ) {
@@ -534,8 +534,8 @@ class SiteOrigin_CSS {
534
  function admin_action_get_post_css() {
535
  if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( $_GET['_wpnonce'], 'get_post_css' ) ) {
536
  wp_die(
537
- esc_html( 'The supplied nonce is invalid.', 'so-css' ),
538
- esc_html( 'Invalid nonce.', 'so-css' ),
539
  403
540
  );
541
  }
@@ -555,8 +555,8 @@ class SiteOrigin_CSS {
555
  function admin_action_get_revisions_list() {
556
  if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( $_GET['_wpnonce'], 'get_revisions_list' ) ) {
557
  wp_die(
558
- esc_html( 'The supplied nonce is invalid.', 'so-css' ),
559
- esc_html( 'Invalid nonce.', 'so-css' ),
560
  403
561
  );
562
  }
@@ -574,8 +574,8 @@ class SiteOrigin_CSS {
574
  function admin_action_save_css() {
575
  if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( $_GET['_wpnonce'], 'so-css-ajax' ) ) {
576
  wp_die(
577
- esc_html( 'The supplied nonce is invalid.', 'so-css' ),
578
- esc_html( 'Invalid nonce.', 'so-css' ),
579
  403
580
  );
581
  }
@@ -621,13 +621,13 @@ class SiteOrigin_CSS {
621
  <?php if ( ! $is_current ) : ?>
622
  </a>
623
  <?php endif; ?>
624
- (<?php printf( __('%d chars', 'so-css'), strlen( $css ) ) ?>)<?php if ( $i == 0 ) : ?> (<?php _e( 'Latest', 'so-css' ) ?>)<?php endif; ?>
625
  </li>
626
  <?php
627
  $i++;
628
  }
629
  } else {
630
- printf( '<em>%s</em>', esc_html( 'No revisions yet.', 'so-css' ) );
631
  }
632
  }
633
 
2
  /*
3
  Plugin Name: SiteOrigin CSS
4
  Description: An advanced CSS editor from SiteOrigin.
5
+ Version: 1.4.2
6
  Author: SiteOrigin
7
  Author URI: https://siteorigin.com
8
  Plugin URI: https://siteorigin.com/css/
14
  // Handle the legacy CSS editor that came with SiteOrigin themes
15
  include plugin_dir_path( __FILE__ ) . 'inc/legacy.php';
16
 
17
+ define( 'SOCSS_VERSION', '1.4.2' );
18
  define( 'SOCSS_JS_SUFFIX', '.min' );
19
 
20
  /**
261
  * Action to run on the admin action.
262
  */
263
  function action_admin_menu() {
264
+ add_theme_page( esc_html__( 'Custom CSS', 'so-css' ), esc_html__( 'Custom CSS', 'so-css' ), 'edit_theme_options', 'so_custom_css', array(
265
  $this,
266
  'display_admin_page'
267
  ) );
292
  $screen = get_current_screen();
293
  $screen->add_help_tab( array(
294
  'id' => 'custom-css',
295
+ 'title' => esc_html__( 'Custom CSS', 'so-css' ),
296
  'content' => '<p>'
297
+ . sprintf( esc_html__( "SiteOrigin CSS adds any custom CSS you enter here into your site's header. ", 'so-css' ) )
298
+ . esc_html__( "These changes will persist across updates so it's best to make all your changes here. ", 'so-css' )
299
  . '</p>'
300
  ) );
301
  }
359
  'propertyControllers' => apply_filters( 'siteorigin_css_property_controllers', $this->get_property_controllers() ),
360
 
361
  'loc' => array(
362
+ 'unchanged' => esc_html__( 'Unchanged', 'so-css' ),
363
+ 'select' => esc_html__( 'Select', 'so-css' ),
364
+ 'select_image' => esc_html__( 'Select Image', 'so-css' ),
365
+ 'leave' => esc_html__( 'Are you sure you want to leave without saving?', 'so-css' ),
366
  )
367
  ) );
368
 
431
  if ( isset( $links['edit'] ) ) {
432
  unset( $links['edit'] );
433
  }
434
+ $links['css_editor'] = '<a href="' . admin_url( 'themes.php?page=so_custom_css' ) . '">' . esc_html__( 'CSS Editor', 'so-css' ) . '</a>';
435
+ $links['support'] = '<a href="https://siteorigin.com/thread/" target="_blank">' . esc_html__( 'Support', 'so-css' ) . '</a>';
436
  if ( apply_filters( 'siteorigin_premium_upgrade_teaser', true ) && ! defined( 'SITEORIGIN_PREMIUM_VERSION' ) ) {
437
+ $links['addons'] = '<a href="https://siteorigin.com/downloads/premium/?featured_addon=plugin/web-font-selector" style="color: #3db634" target="_blank" rel="noopener noreferrer">' . esc_html__( 'Addons', 'so-css' ) . '</a>';
438
  }
439
  return $links;
440
  }
445
  $theme = filter_input( INPUT_GET, 'theme' );
446
  $time = filter_input( INPUT_GET, 'time', FILTER_VALIDATE_INT );
447
 
448
+ $page_title = esc_html__( 'SiteOrigin CSS', 'so-css' );
449
  $theme_obj = wp_get_theme();
450
  $theme_name = $theme_obj->get( 'Name' );
451
+ $editor_description = sprintf( esc_html__( 'Changes apply to %s and its child themes', 'so-css' ), $theme_name );
452
+ $save_button_label = esc_html__( 'Save CSS', 'so-css' );
453
  $form_save_url = admin_url( 'themes.php?page=so_custom_css' );
454
 
455
  if ( ! empty( $socss_post_id ) ) {
456
  $selected_post = get_post( $socss_post_id );
457
 
458
  $page_title = sprintf(
459
+ esc_html__( 'Editing CSS for: %s', 'so-css' ),
460
  $selected_post->post_title
461
  );
462
 
463
  $editor_description = sprintf(
464
+ esc_html__( 'Changes apply to the %s %s when the current theme is %s or its child themes', 'so-css' ),
465
  $selected_post->post_type,
466
  $selected_post->post_title,
467
  $theme_name
468
  );
469
  $post_type_obj = get_post_type_object( $selected_post->post_type );
470
  $post_type_labels = $post_type_obj->labels;
471
+ $save_button_label = sprintf( esc_html__( 'Save %s CSS', 'so-css' ), $post_type_labels->singular_name );
472
  $form_save_url = add_query_arg( 'socss_post_id', urlencode( $socss_post_id ), $form_save_url );
473
  }
474
  $custom_css = $this->get_custom_css( $this->theme, $socss_post_id );
481
  }
482
 
483
  if ( ! empty ( $current_revision ) ) {
484
+ $save_button_label = esc_html__( 'Revert to this revision', 'so-css' );
485
  }
486
 
487
  if ( ! empty( $custom_css_revisions ) ) {
534
  function admin_action_get_post_css() {
535
  if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( $_GET['_wpnonce'], 'get_post_css' ) ) {
536
  wp_die(
537
+ esc_html__( 'The supplied nonce is invalid.', 'so-css' ),
538
+ esc_html__( 'Invalid nonce.', 'so-css' ),
539
  403
540
  );
541
  }
555
  function admin_action_get_revisions_list() {
556
  if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( $_GET['_wpnonce'], 'get_revisions_list' ) ) {
557
  wp_die(
558
+ esc_html__( 'The supplied nonce is invalid.', 'so-css' ),
559
+ esc_html__( 'Invalid nonce.', 'so-css' ),
560
  403
561
  );
562
  }
574
  function admin_action_save_css() {
575
  if ( ! isset( $_GET['_wpnonce'] ) || ! wp_verify_nonce( $_GET['_wpnonce'], 'so-css-ajax' ) ) {
576
  wp_die(
577
+ esc_html__( 'The supplied nonce is invalid.', 'so-css' ),
578
+ esc_html__( 'Invalid nonce.', 'so-css' ),
579
  403
580
  );
581
  }
621
  <?php if ( ! $is_current ) : ?>
622
  </a>
623
  <?php endif; ?>
624
+ (<?php printf( esc_html__( '%d chars', 'so-css' ), strlen( $css ) ) ?>)<?php if ( $i == 0 ) : ?> (<?php esc_html_e( 'Latest', 'so-css' ); ?>)<?php endif; ?>
625
  </li>
626
  <?php
627
  $i++;
628
  }
629
  } else {
630
+ printf( '<em>%s</em>', esc_html__( 'No revisions yet.', 'so-css' ) );
631
  }
632
  }
633
 
tpl/js-templates.php CHANGED
@@ -66,7 +66,7 @@
66
  <small style="color: #888">
67
  <?php
68
  printf(
69
- esc_html( 'Get a %sGoogle Font%s selector.', 'so-css' ) ,
70
  '<a href="https://siteorigin.com/downloads/premium/?featured_addon=plugin/web-font-selector" target="_blank">',
71
  '</a>'
72
  );
66
  <small style="color: #888">
67
  <?php
68
  printf(
69
+ esc_html__( 'Get a %sGoogle Font%s selector.', 'so-css' ) ,
70
  '<a href="https://siteorigin.com/downloads/premium/?featured_addon=plugin/web-font-selector" target="_blank">',
71
  '</a>'
72
  );
tpl/page.php CHANGED
@@ -25,12 +25,12 @@ if ( ! empty( $current_revision ) ) {
25
 
26
 
27
  <?php if( isset($_POST['siteorigin_custom_css']) ) : ?>
28
- <div class="notice notice-success"><p><?php _e('Site design updated.', 'so-css') ?></p></div>
29
  <?php endif; ?>
30
 
31
  <?php if ( ! empty( $current_revision ) ) : ?>
32
  <div class="notice notice-warning">
33
- <p><?php printf( __( 'Editing revision dated %s. Click %sRevert to this revision%s to keep using it.', 'so-css'), $revision_date, '<em>', '</em>' ) ?></p>
34
  </div>
35
  <?php endif; ?>
36
 
@@ -42,9 +42,9 @@ if ( ! empty( $current_revision ) ) {
42
 
43
  <?php if( $this->display_teaser() ) : ?>
44
  <div class="postbox">
45
- <h3 class="hndle"><span><?php _e('Get The Full Experience', 'so-css') ?></span></h3>
46
  <div class="inside">
47
- <?php printf( __( '%sSiteOrigin Premium%s adds a <strong>Google Web Font</strong> selector to SiteOrigin CSS so you can easily change any font.', 'so-css' ) , '<a href="https://siteorigin.com/downloads/premium/?featured_addon=plugin/web-font-selector" target="_blank">', '</a>' ); ?>
48
  </div>
49
  </div>
50
  <?php endif; ?>
@@ -52,8 +52,8 @@ if ( ! empty( $current_revision ) ) {
52
  <?php if( !get_user_meta( $user->ID, 'socss_hide_gs' ) ) : ?>
53
  <div class="postbox" id="so-custom-css-getting-started">
54
  <h3 class="hndle">
55
- <span><?php _e('Getting Started Video', 'so-css') ?></span>
56
- <a href="<?php echo wp_nonce_url( admin_url('admin-ajax.php?action=socss_hide_getting_started'), 'hide' ) ?>" class="hide"><?php _e('Dismiss', 'so-css') ?></a>
57
  </h3>
58
  <div class="inside">
59
  <a href="https://siteorigin.com/css/getting-started/" target="_blank"><img src="<?php echo plugin_dir_url(__FILE__).'../css/images/video.jpg' ?>" /></a>
@@ -62,7 +62,7 @@ if ( ! empty( $current_revision ) ) {
62
  <?php endif; ?>
63
 
64
  <div class="postbox" id="so-custom-css-revisions">
65
- <h3 class="hndle"><span><?php _e('CSS Revisions', 'so-css') ?></span></h3>
66
  <div class="inside">
67
  <ol class="custom-revisions-list" data-confirm="<?php esc_attr_e('Are you sure you want to load this revision?', 'so-css') ?>">
68
  <?php
25
 
26
 
27
  <?php if( isset($_POST['siteorigin_custom_css']) ) : ?>
28
+ <div class="notice notice-success"><p><?php esc_html_e( 'Site design updated.', 'so-css' ); ?></p></div>
29
  <?php endif; ?>
30
 
31
  <?php if ( ! empty( $current_revision ) ) : ?>
32
  <div class="notice notice-warning">
33
+ <p><?php printf( esc_html__( 'Editing revision dated %s. Click %sRevert to this revision%s to keep using it.', 'so-css' ), $revision_date, '<em>', '</em>' ); ?></p>
34
  </div>
35
  <?php endif; ?>
36
 
42
 
43
  <?php if( $this->display_teaser() ) : ?>
44
  <div class="postbox">
45
+ <h3 class="hndle"><span><?php esc_html_e( 'Get The Full Experience', 'so-css' ); ?></span></h3>
46
  <div class="inside">
47
+ <?php printf( esc_html__( '%sSiteOrigin Premium%s adds a <strong>Google Web Font</strong> selector to SiteOrigin CSS so you can easily change any font.', 'so-css' ) , '<a href="https://siteorigin.com/downloads/premium/?featured_addon=plugin/web-font-selector" target="_blank">', '</a>' ); ?>
48
  </div>
49
  </div>
50
  <?php endif; ?>
52
  <?php if( !get_user_meta( $user->ID, 'socss_hide_gs' ) ) : ?>
53
  <div class="postbox" id="so-custom-css-getting-started">
54
  <h3 class="hndle">
55
+ <span><?php esc_html_e( 'Getting Started Video', 'so-css' ); ?></span>
56
+ <a href="<?php echo wp_nonce_url( admin_url('admin-ajax.php?action=socss_hide_getting_started'), 'hide' ) ?>" class="hide"><?php esc_html_e( 'Dismiss', 'so-css' ); ?></a>
57
  </h3>
58
  <div class="inside">
59
  <a href="https://siteorigin.com/css/getting-started/" target="_blank"><img src="<?php echo plugin_dir_url(__FILE__).'../css/images/video.jpg' ?>" /></a>
62
  <?php endif; ?>
63
 
64
  <div class="postbox" id="so-custom-css-revisions">
65
+ <h3 class="hndle"><span><?php esc_html_e( 'CSS Revisions', 'so-css' ); ?></span></h3>
66
  <div class="inside">
67
  <ol class="custom-revisions-list" data-confirm="<?php esc_attr_e('Are you sure you want to load this revision?', 'so-css') ?>">
68
  <?php