SiteOrigin Widgets Bundle - Version 1.8.3

Version Description

  • 26 April 2017 =
  • Contact Form: Improved type Validation and added empty name check
  • Contact Form: Add Field Design Settings
  • Testimonial: Add responsive image sizes settings
  • Added checks to prevent PHP warnings
  • Improved handling of empty order fields.
  • Small code refactoring in price table widget.
  • Ensure all SiteOrigin widgets are grouped together in Page Builder.
  • Slider: Remove slider sentinel contents to avoid things like duplicated video iframe for embedded videos
  • Fix TinyMCE z-index.
  • Headline: Fixed typo that tied subheadline new window to headline
  • Ensure fittext is done before setting up hero slider.
  • Ensure google font fields work in live editors/previews.
  • Features: Allow specifying position of features widgets icons.
  • Added * next to labels of required fields.
  • Make required field indicator optional and display legend when enabled.
  • Set default color option in wpColorPicker.
  • Small refactor to make more use of get_template_variables.
  • Button: Added field for rel attribute.
  • Maps: Added setting for global Google API key.
  • Small fix to allow checkboxes to act as 'conditional' state emitters.
  • Features: Change text form field to a tinymce field
  • Properly work with new Page Builder caching system
  • Ensure footer templates only printed when editing with Elementor.
  • Small IE8 fix
  • Contact: Prevent form fields from having 0px height if no height specified.
  • Fixed Google Maps info windows.
  • Image: Don't output empty attributes.
  • Don't attempt to load maps API if already loaded.
Download this release

Release Info

Developer gpriday
Plugin Icon 128x128 SiteOrigin Widgets Bundle
Version 1.8.3
Comparing to
See all releases

Code changes from version 1.8.2 to 1.8.3

Files changed (70) hide show
  1. admin/admin.css +1 -448
  2. admin/tpl/admin.php +4 -1
  3. base/base.php +13 -8
  4. base/css/admin.css +1 -653
  5. base/css/post-selector.css +1 -23
  6. base/css/preview.css +1 -8
  7. base/inc/attachments.php +53 -1
  8. base/inc/fields/color.class.php +8 -0
  9. base/inc/fields/css/icon-field.css +1 -121
  10. base/inc/fields/css/measurement-field.css +1 -7
  11. base/inc/fields/css/media-field.css +1 -281
  12. base/inc/fields/css/order-field.css +1 -12
  13. base/inc/fields/css/tinymce-field.css +1 -3
  14. base/inc/fields/image-size.class.php +1 -31
  15. base/inc/fields/link.class.php +2 -8
  16. base/inc/fields/measurement.class.php +2 -1
  17. base/inc/fields/text-input-base.class.php +16 -0
  18. base/inc/post-selector.php +4 -2
  19. base/inc/shortcode.php +1 -1
  20. base/js/admin.js +16 -8
  21. base/js/admin.min.js +1 -1
  22. base/js/posts-selector.js +15 -15
  23. base/js/posts-selector.min.js +1 -1
  24. base/siteorigin-widget.class.php +9 -2
  25. compat/beaver-builder/styles.css +1 -190
  26. compat/elementor/styles.css +1 -225
  27. compat/visual-composer/styles.css +13 -0
  28. css/slider/slider.css +1 -235
  29. js/slider/jquery.slider.js +17 -0
  30. js/slider/jquery.slider.min.js +1 -1
  31. js/sow.jquery.fittext.js +4 -1
  32. js/sow.jquery.fittext.min.js +1 -1
  33. lang/so-widgets-bundle.pot +2562 -0
  34. languages/siteorigin-widgets.po +0 -736
  35. readme.txt +32 -2
  36. so-widgets-bundle.php +8 -5
  37. widgets/button/button.php +51 -4
  38. widgets/button/css/style.css +1 -45
  39. widgets/button/tpl/default.php +13 -24
  40. widgets/contact/contact.php +589 -451
  41. widgets/contact/fields/name.class.php +1 -1
  42. widgets/contact/fields/subject.class.php +1 -1
  43. widgets/contact/fields/text.class.php +1 -1
  44. widgets/contact/fields/textarea.class.php +1 -1
  45. widgets/contact/styles/default.less +30 -3
  46. widgets/cta/css/style.css +1 -42
  47. widgets/features/css/style.css +1 -139
  48. widgets/features/features.php +16 -2
  49. widgets/features/styles/default.less +157 -22
  50. widgets/features/tpl/default.php +2 -2
  51. widgets/google-map/css/style.css +1 -11
  52. widgets/google-map/google-map.php +33 -7
  53. widgets/google-map/js/js-map.js +81 -87
  54. widgets/google-map/js/js-map.min.js +1 -1
  55. widgets/headline/headline.php +1 -1
  56. widgets/image-grid/css/image-grid.css +1 -11
  57. widgets/image/image.php +38 -5
  58. widgets/image/tpl/default.php +6 -31
  59. widgets/post-carousel/css/style.css +1 -170
  60. widgets/post-carousel/post-carousel.php +28 -4
  61. widgets/post-carousel/styles/default.less +39 -0
  62. widgets/post-carousel/tpl/carousel-post-loop.php +1 -1
  63. widgets/price-table/price-table.php +30 -1
  64. widgets/price-table/tpl/atom.php +19 -11
  65. widgets/slider/slider.php +22 -12
  66. widgets/testimonial/css/style.css +1 -56
  67. widgets/testimonial/styles/default.less +30 -3
  68. widgets/testimonial/testimonial.php +19 -1
  69. widgets/video/css/html-player-responsive.css +1 -5
  70. widgets/video/css/skin.css +1 -154
admin/admin.css CHANGED
@@ -1,448 +1 @@
1
- #sow-widgets-page {
2
- margin: 0 0 0 -20px;
3
- }
4
- #sow-widgets-page .page-banner {
5
- display: block;
6
- padding: 15px 30px 5px 30px;
7
- background: #f6f6f6;
8
- position: relative;
9
- }
10
- #sow-widgets-page .page-banner .icon {
11
- float: left;
12
- display: inline-block;
13
- width: 50px;
14
- height: 43px;
15
- position: relative;
16
- margin: 8px 22px 0 0;
17
- }
18
- #sow-widgets-page .page-banner .icon img {
19
- position: absolute;
20
- }
21
- #sow-widgets-page .page-banner .icon img.icon-back {
22
- top: 0;
23
- left: 0;
24
- }
25
- #sow-widgets-page .page-banner .icon img.icon-gear {
26
- top: 0;
27
- left: 12px;
28
- -webkit-animation: spin 60s linear infinite;
29
- -moz-animation: spin 60s linear infinite;
30
- animation: spin 60s linear infinite;
31
- }
32
- @-moz-keyframes spin {
33
- 100% {
34
- -moz-transform: rotate(360deg);
35
- }
36
- }
37
- @-webkit-keyframes spin {
38
- 100% {
39
- -webkit-transform: rotate(360deg);
40
- }
41
- }
42
- @keyframes spin {
43
- 100% {
44
- -webkit-transform: rotate(360deg);
45
- transform: rotate(360deg);
46
- }
47
- }
48
- #sow-widgets-page .page-banner .icon img.icon-front {
49
- top: 0;
50
- left: 0;
51
- }
52
- #sow-widgets-page .page-banner h1 {
53
- font: 300 2.3em/1.4em "proxima-nova", "Open Sans", Helvetica, Arial, sans-serif;
54
- color: #666;
55
- }
56
- #sow-widgets-page .page-banner #sow-widget-search {
57
- position: absolute;
58
- bottom: -35px;
59
- right: 19px;
60
- }
61
- #sow-widgets-page .page-banner #sow-widget-search input {
62
- box-sizing: border-box;
63
- width: 200px;
64
- }
65
- #sow-widgets-page .page-banner #sow-widget-search .results {
66
- display: none;
67
- box-sizing: border-box;
68
- position: absolute;
69
- top: 100%;
70
- left: 1px;
71
- width: 200px;
72
- background: #ffffff;
73
- border: 1px solid #e0e0e0;
74
- padding: 0;
75
- margin: -2px 0 0 0;
76
- -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
77
- -moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
78
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075);
79
- }
80
- #sow-widgets-page .page-banner #sow-widget-search .results li {
81
- margin: 0;
82
- padding: 5px;
83
- font-size: 0.95em;
84
- font-weight: bold;
85
- color: #777;
86
- cursor: pointer;
87
- }
88
- #sow-widgets-page .page-banner #sow-widget-search .results li:hover {
89
- background: #f7f7f7;
90
- }
91
- #sow-widgets-page .page-nav {
92
- background: #f6f6f6;
93
- border-bottom: 1px solid #d6d6d6;
94
- padding: 5px 0 0 30px;
95
- margin: 0;
96
- font-size: 0;
97
- }
98
- #sow-widgets-page .page-nav li {
99
- display: inline-block;
100
- margin: 0 0 -1px 0;
101
- background: #f6f6f6;
102
- line-height: 1em;
103
- font-size: 12px;
104
- position: relative;
105
- border: 1px solid #d6d6d6;
106
- border-width: 1px 0 1px 1px;
107
- transition: all 0.2s;
108
- }
109
- #sow-widgets-page .page-nav li:last-child {
110
- border-right-width: 1px;
111
- }
112
- #sow-widgets-page .page-nav li a {
113
- display: block;
114
- text-decoration: none;
115
- color: #555;
116
- padding: 12px 25px;
117
- font-weight: bold;
118
- box-shadow: none !important;
119
- }
120
- #sow-widgets-page .page-nav li:hover {
121
- background: #f3f3f3;
122
- }
123
- #sow-widgets-page .page-nav li.active {
124
- background: #f0f0f0;
125
- border-bottom-color: #f0f0f0;
126
- }
127
- #sow-widgets-page #widgets-list {
128
- zoom: 1;
129
- margin: 25px 18px 0 18px;
130
- position: relative;
131
- }
132
- #sow-widgets-page #widgets-list:before {
133
- content: '';
134
- display: block;
135
- }
136
- #sow-widgets-page #widgets-list:after {
137
- content: '';
138
- display: table;
139
- clear: both;
140
- }
141
- #sow-widgets-page #widgets-list .so-widget-wrap {
142
- float: left;
143
- -ms-box-sizing: border-box;
144
- -moz-box-sizing: border-box;
145
- -webkit-box-sizing: border-box;
146
- box-sizing: border-box;
147
- padding: 0 12px 24px 12px;
148
- width: 25%;
149
- }
150
- @media screen and (max-width: 1800px) {
151
- #sow-widgets-page #widgets-list .so-widget-wrap {
152
- width: 33.333%;
153
- }
154
- }
155
- @media screen and (max-width: 1280px) {
156
- #sow-widgets-page #widgets-list .so-widget-wrap {
157
- width: 50%;
158
- }
159
- }
160
- @media screen and (max-width: 960px) {
161
- #sow-widgets-page #widgets-list .so-widget-wrap {
162
- width: 100%;
163
- }
164
- }
165
- #sow-widgets-page #widgets-list .so-widget {
166
- border: 1px solid #D9D9D9;
167
- float: left;
168
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.05);
169
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.05);
170
- box-shadow: 0 1px 2px rgba(0,0,0,0.05);
171
- padding: 0;
172
- width: 100%;
173
- background: #fefefe;
174
- position: relative;
175
- overflow: hidden;
176
- }
177
- #sow-widgets-page #widgets-list .so-widget .so-widget-banner {
178
- width: 128px;
179
- height: 128px;
180
- float: left;
181
- margin: 20px;
182
- overflow: hidden;
183
- }
184
- #sow-widgets-page #widgets-list .so-widget .so-widget-banner img,
185
- #sow-widgets-page #widgets-list .so-widget .so-widget-banner svg {
186
- height: 128px;
187
- width: auto;
188
- }
189
- #sow-widgets-page #widgets-list .so-widget .so-widget-text {
190
- padding: 20px 20px 20px 0;
191
- margin-left: 178px;
192
- }
193
- #sow-widgets-page #widgets-list .so-widget .so-widget-text .so-widget-active-indicator {
194
- float: right;
195
- margin: 0 0 10px 10px;
196
- background: #00a0d2;
197
- padding: 4px 10px;
198
- color: #fff;
199
- border-radius: 3px;
200
- -webkit-transition: all 0.35s ease;
201
- -moz-transition: all 0.35s ease;
202
- -o-transition: all 0.35s ease;
203
- transition: all 0.35s ease;
204
- }
205
- #sow-widgets-page #widgets-list .so-widget .so-widget-text h3 {
206
- color: #0073aa;
207
- font-size: 1.4em;
208
- font-weight: 500;
209
- margin-top: 0;
210
- }
211
- #sow-widgets-page #widgets-list .so-widget .so-widget-text .so-widget-description {
212
- margin: 0;
213
- line-height: 1.35em;
214
- color: #777777;
215
- }
216
- #sow-widgets-page #widgets-list .so-widget .so-widget-text .so-widget-byline {
217
- font-size: 0.9em;
218
- margin-top: 10px;
219
- color: #999;
220
- font-style: italic;
221
- }
222
- #sow-widgets-page #widgets-list .so-widget .so-widget-text .so-widget-byline a {
223
- color: #666;
224
- text-decoration: none;
225
- }
226
- #sow-widgets-page #widgets-list .so-widget .so-widget-text .so-widget-byline a:hover {
227
- color: #555;
228
- text-decoration: underline;
229
- }
230
- #sow-widgets-page #widgets-list .so-widget .so-widget-toggle-active {
231
- margin-top: 15px;
232
- display: inline-block;
233
- }
234
- #sow-widgets-page #widgets-list .so-widget .so-widget-toggle-active button:focus {
235
- outline: none;
236
- }
237
- #sow-widgets-page #widgets-list .so-widget.so-widget-is-active .so-widget-toggle-active .so-widget-activate {
238
- display: none;
239
- }
240
- #sow-widgets-page #widgets-list .so-widget.so-widget-is-inactive .so-widget-toggle-active .so-widget-deactivate {
241
- display: none;
242
- }
243
- #sow-widgets-page #widgets-list .so-widget.so-widget-is-inactive .so-widget-active-indicator {
244
- opacity: 0;
245
- }
246
- #sow-widgets-page #widgets-list .so-widget.so-widget-is-inactive h3 {
247
- color: #666;
248
- }
249
- #sow-widgets-page #widgets-list .so-widget.so-widget-is-inactive svg,
250
- #sow-widgets-page #widgets-list .so-widget.so-widget-is-inactive img {
251
- filter: url(filters.svg#grayscale);
252
- filter: gray;
253
- -webkit-filter: grayscale(1);
254
- opacity: 0.7;
255
- }
256
- #sow-widgets-page #widgets-list .so-widget .so-widget-settings {
257
- margin-top: 15px;
258
- display: inline-block;
259
- }
260
- #sow-widgets-page #widgets-list.so-animated img,
261
- #sow-widgets-page #widgets-list.so-animated svg {
262
- -webkit-transition: all 0.45s ease;
263
- -moz-transition: all 0.45s ease;
264
- -o-transition: all 0.45s ease;
265
- transition: all 0.45s ease;
266
- }
267
- #sow-widgets-page .developers-link {
268
- padding: 0 30px;
269
- text-align: right;
270
- color: #777;
271
- font-style: italic;
272
- }
273
- #sow-widgets-page #sow-settings-dialog {
274
- display: none;
275
- }
276
- #sow-widgets-page #sow-settings-dialog .so-overlay,
277
- #sow-widgets-page #sow-settings-dialog .so-content,
278
- #sow-widgets-page #sow-settings-dialog .so-title-bar,
279
- #sow-widgets-page #sow-settings-dialog .so-toolbar,
280
- #sow-widgets-page #sow-settings-dialog .so-left-sidebar,
281
- #sow-widgets-page #sow-settings-dialog .so-right-sidebar {
282
- z-index: 100001;
283
- position: fixed;
284
- -ms-box-sizing: border-box;
285
- -moz-box-sizing: border-box;
286
- -webkit-box-sizing: border-box;
287
- box-sizing: border-box;
288
- padding: 15px;
289
- }
290
- #sow-widgets-page #sow-settings-dialog .so-overlay {
291
- top: 0;
292
- left: 0;
293
- right: 0;
294
- bottom: 0;
295
- background: rgba(0, 0, 0, 0.5);
296
- }
297
- #sow-widgets-page #sow-settings-dialog .so-content {
298
- overflow-y: auto;
299
- top: 80px;
300
- left: 30px;
301
- right: 30px;
302
- bottom: 88px;
303
- background-color: #fdfdfd;
304
- overflow-x: hidden;
305
- -webkit-box-shadow: inset 0 2px 2px rgba(0,0,0,0.03);
306
- -moz-box-shadow: inset 0 2px 2px rgba(0,0,0,0.03);
307
- box-shadow: inset 0 2px 2px rgba(0,0,0,0.03);
308
- }
309
- #sow-widgets-page #sow-settings-dialog .so-content > *:first-child,
310
- #sow-widgets-page #sow-settings-dialog .so-content form > *:first-child {
311
- margin-top: 0;
312
- }
313
- #sow-widgets-page #sow-settings-dialog .so-content > *:last-child,
314
- #sow-widgets-page #sow-settings-dialog .so-content form > *:last-child {
315
- margin-bottom: 0;
316
- }
317
- #sow-widgets-page #sow-settings-dialog .so-content .so-content-tabs > * {
318
- display: none;
319
- }
320
- #sow-widgets-page #sow-settings-dialog .so-content.so-loading {
321
- background-image: url("images/wpspin_light.gif");
322
- background-position: center center;
323
- background-repeat: no-repeat;
324
- }
325
- @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
326
- #sow-widgets-page #sow-settings-dialog .so-content.so-loading {
327
- background-image: url(images/wpspin_light-2x.gif);
328
- background-size: 16px 16px;
329
- }
330
- }
331
- #sow-widgets-page #sow-settings-dialog .so-title-bar {
332
- left: 30px;
333
- right: 30px;
334
- top: 30px;
335
- height: 50px;
336
- background-color: #fafafa;
337
- border-bottom: 1px solid #D8D8D8;
338
- /* These are the action buttons in the title bar */
339
- }
340
- #sow-widgets-page #sow-settings-dialog .so-title-bar h3.so-title {
341
- margin: 0 !important;
342
- padding: 0 !important;
343
- }
344
- #sow-widgets-page #sow-settings-dialog .so-title-bar a {
345
- cursor: pointer;
346
- position: absolute;
347
- box-sizing: border-box;
348
- width: 50px;
349
- height: 50px;
350
- display: block;
351
- top: 0;
352
- right: 0;
353
- -webkit-transition: all 0.2s ease;
354
- -moz-transition: all 0.2s ease;
355
- -o-transition: all 0.2s ease;
356
- transition: all 0.2s ease;
357
- background: #fafafa;
358
- border-left: 1px solid #d8d8d8;
359
- border-bottom: 1px solid #d8d8d8;
360
- }
361
- #sow-widgets-page #sow-settings-dialog .so-title-bar a:hover {
362
- background: #e9e9e9;
363
- }
364
- #sow-widgets-page #sow-settings-dialog .so-title-bar a:hover .so-dialog-icon {
365
- color: #333333;
366
- }
367
- #sow-widgets-page #sow-settings-dialog .so-title-bar a .so-dialog-icon {
368
- position: absolute;
369
- top: 50%;
370
- left: 50%;
371
- text-decoration: none;
372
- width: 20px;
373
- height: 20px;
374
- margin-left: -10px;
375
- margin-top: -10px;
376
- color: #666666;
377
- text-align: center;
378
- }
379
- #sow-widgets-page #sow-settings-dialog .so-title-bar a .so-dialog-icon:before {
380
- font: 400 20px/1em dashicons;
381
- top: 7px;
382
- left: 13px;
383
- }
384
- #sow-widgets-page #sow-settings-dialog .so-title-bar a.so-close {
385
- right: 0;
386
- }
387
- #sow-widgets-page #sow-settings-dialog .so-title-bar a.so-close .so-dialog-icon:before {
388
- content: "\f335";
389
- }
390
- #sow-widgets-page #sow-settings-dialog .so-toolbar {
391
- left: 30px;
392
- right: 30px;
393
- bottom: 30px;
394
- height: 58px;
395
- background-color: #fafafa;
396
- border-top: 1px solid #D8D8D8;
397
- z-index: 100002;
398
- }
399
- #sow-widgets-page #sow-settings-dialog .so-toolbar .so-status {
400
- float: left;
401
- padding-top: 6px;
402
- padding-bottom: 6px;
403
- font-style: italic;
404
- color: #999999;
405
- line-height: 1em;
406
- }
407
- #sow-widgets-page #sow-settings-dialog .so-toolbar .so-status.so-panels-loading {
408
- padding-left: 26px;
409
- background-position: left center;
410
- }
411
- #sow-widgets-page #sow-settings-dialog .so-toolbar .so-buttons {
412
- float: right;
413
- }
414
- #sow-widgets-page #sow-settings-dialog .so-toolbar .so-buttons .action-buttons {
415
- position: absolute;
416
- left: 15px;
417
- top: 50%;
418
- margin-top: -0.65em;
419
- }
420
- #sow-widgets-page #sow-settings-dialog .so-toolbar .so-buttons .action-buttons a {
421
- cursor: pointer;
422
- display: inline;
423
- padding: 0.2em 0.5em;
424
- line-height: 1em;
425
- margin-right: 0.5em;
426
- text-decoration: none;
427
- }
428
- #sow-widgets-page #sow-settings-dialog .so-toolbar .so-buttons .action-buttons .so-delete {
429
- color: #a00;
430
- }
431
- #sow-widgets-page #sow-settings-dialog .so-toolbar .so-buttons .action-buttons .so-delete:hover {
432
- background: #a00;
433
- color: #FFFFFF;
434
- }
435
- #sow-widgets-page #sow-settings-dialog .so-toolbar .so-buttons .action-buttons .so-duplicate:hover {
436
- text-decoration: underline;
437
- }
438
- #sow-widgets-page #sow-settings-dialog .siteorigin-widget-help-link {
439
- display: none;
440
- }
441
- #sow-widgets-page #so-widget-settings-save {
442
- width: 0;
443
- height: 0;
444
- border: none;
445
- }
446
- body.plugins_page_so-widgets-plugins #contextual-help-link-wrap {
447
- z-index: 10;
448
- }
1
+ #sow-widgets-page{margin:0 0 0 -20px}#sow-widgets-page .page-banner{display:block;padding:15px 30px 5px 30px;background:#f6f6f6;position:relative}#sow-widgets-page .page-banner .icon{float:left;display:inline-block;width:50px;height:43px;position:relative;margin:8px 22px 0 0}#sow-widgets-page .page-banner .icon img{position:absolute}#sow-widgets-page .page-banner .icon img.icon-back{top:0;left:0}#sow-widgets-page .page-banner .icon img.icon-gear{top:0;left:12px;-webkit-animation:spin 60s linear infinite;-moz-animation:spin 60s linear infinite;animation:spin 60s linear infinite}@-moz-keyframes spin{100%{-moz-transform:rotate(360deg)}}@-webkit-keyframes spin{100%{-webkit-transform:rotate(360deg)}}@keyframes spin{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}#sow-widgets-page .page-banner .icon img.icon-front{top:0;left:0}#sow-widgets-page .page-banner h1{font:300 2.3em/1.4em "proxima-nova","Open Sans",Helvetica,Arial,sans-serif;color:#666}#sow-widgets-page .page-banner #sow-widget-search{position:absolute;bottom:-35px;right:19px}#sow-widgets-page .page-banner #sow-widget-search input{box-sizing:border-box;width:200px}#sow-widgets-page .page-banner #sow-widget-search .results{display:none;box-sizing:border-box;position:absolute;top:100%;left:1px;width:200px;background:#ffffff;border:1px solid #e0e0e0;padding:0;margin:-2px 0 0 0;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.075);-moz-box-shadow:0 1px 1px rgba(0,0,0,0.075);box-shadow:0 1px 1px rgba(0,0,0,0.075)}#sow-widgets-page .page-banner #sow-widget-search .results li{margin:0;padding:5px;font-size:.95em;font-weight:bold;color:#777;cursor:pointer}#sow-widgets-page .page-banner #sow-widget-search .results li:hover{background:#f7f7f7}#sow-widgets-page .page-nav{background:#f6f6f6;border-bottom:1px solid #d6d6d6;padding:5px 0 0 30px;margin:0;font-size:0}#sow-widgets-page .page-nav li{display:inline-block;margin:0 0 -1px 0;background:#f6f6f6;line-height:1em;font-size:12px;position:relative;border:1px solid #d6d6d6;border-width:1px 0 1px 1px;transition:all .2s}#sow-widgets-page .page-nav li:last-child{border-right-width:1px}#sow-widgets-page .page-nav li a{display:block;text-decoration:none;color:#555;padding:12px 25px;font-weight:bold;box-shadow:none !important}#sow-widgets-page .page-nav li:hover{background:#f3f3f3}#sow-widgets-page .page-nav li.active{background:#f0f0f0;border-bottom-color:#f0f0f0}#sow-widgets-page #widgets-list{zoom:1;margin:25px 18px 0 18px;position:relative}#sow-widgets-page #widgets-list:before{content:'';display:block}#sow-widgets-page #widgets-list:after{content:'';display:table;clear:both}#sow-widgets-page #widgets-list .so-widget-wrap{float:left;-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 12px 24px 12px;width:25%}@media screen and (max-width:1800px){#sow-widgets-page #widgets-list .so-widget-wrap{width:33.333%}}@media screen and (max-width:1280px){#sow-widgets-page #widgets-list .so-widget-wrap{width:50%}}@media screen and (max-width:960px){#sow-widgets-page #widgets-list .so-widget-wrap{width:100%}}#sow-widgets-page #widgets-list .so-widget{border:1px solid #D9D9D9;float:left;-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.05);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.05);box-shadow:0 1px 2px rgba(0,0,0,0.05);padding:0;width:100%;background:#fefefe;position:relative;overflow:hidden}#sow-widgets-page #widgets-list .so-widget .so-widget-banner{width:128px;height:128px;float:left;margin:20px;overflow:hidden}#sow-widgets-page #widgets-list .so-widget .so-widget-banner img,#sow-widgets-page #widgets-list .so-widget .so-widget-banner svg{height:128px;width:auto}#sow-widgets-page #widgets-list .so-widget .so-widget-text{padding:20px 20px 20px 0;margin-left:178px}#sow-widgets-page #widgets-list .so-widget .so-widget-text .so-widget-active-indicator{float:right;margin:0 0 10px 10px;background:#00a0d2;padding:4px 10px;color:#fff;border-radius:3px;-webkit-transition:all .35s ease;-moz-transition:all .35s ease;-o-transition:all .35s ease;transition:all .35s ease}#sow-widgets-page #widgets-list .so-widget .so-widget-text h3{color:#0073aa;font-size:1.4em;font-weight:500;margin-top:0}#sow-widgets-page #widgets-list .so-widget .so-widget-text .so-widget-description{margin:0;line-height:1.35em;color:#777777}#sow-widgets-page #widgets-list .so-widget .so-widget-text .so-widget-byline{font-size:.9em;margin-top:10px;color:#999;font-style:italic}#sow-widgets-page #widgets-list .so-widget .so-widget-text .so-widget-byline a{color:#666;text-decoration:none}#sow-widgets-page #widgets-list .so-widget .so-widget-text .so-widget-byline a:hover{color:#555;text-decoration:underline}#sow-widgets-page #widgets-list .so-widget .so-widget-toggle-active{margin-top:15px;display:inline-block}#sow-widgets-page #widgets-list .so-widget .so-widget-toggle-active button:focus{outline:none}#sow-widgets-page #widgets-list .so-widget.so-widget-is-active .so-widget-toggle-active .so-widget-activate{display:none}#sow-widgets-page #widgets-list .so-widget.so-widget-is-inactive .so-widget-toggle-active .so-widget-deactivate{display:none}#sow-widgets-page #widgets-list .so-widget.so-widget-is-inactive .so-widget-active-indicator{opacity:0}#sow-widgets-page #widgets-list .so-widget.so-widget-is-inactive h3{color:#666}#sow-widgets-page #widgets-list .so-widget.so-widget-is-inactive svg,#sow-widgets-page #widgets-list .so-widget.so-widget-is-inactive img{filter:url(filters.svg#grayscale);filter:gray;-webkit-filter:grayscale(1);opacity:.7}#sow-widgets-page #widgets-list .so-widget .so-widget-settings{margin-top:15px;display:inline-block}#sow-widgets-page #widgets-list.so-animated img,#sow-widgets-page #widgets-list.so-animated svg{-webkit-transition:all .45s ease;-moz-transition:all .45s ease;-o-transition:all .45s ease;transition:all .45s ease}#sow-widgets-page .developers-link{padding:0 30px;text-align:right;color:#777;font-style:italic}#sow-widgets-page #sow-settings-dialog{display:none}#sow-widgets-page #sow-settings-dialog .so-overlay,#sow-widgets-page #sow-settings-dialog .so-content,#sow-widgets-page #sow-settings-dialog .so-title-bar,#sow-widgets-page #sow-settings-dialog .so-toolbar,#sow-widgets-page #sow-settings-dialog .so-left-sidebar,#sow-widgets-page #sow-settings-dialog .so-right-sidebar{z-index:100001;position:fixed;-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;padding:15px}#sow-widgets-page #sow-settings-dialog .so-overlay{top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.5)}#sow-widgets-page #sow-settings-dialog .so-content{overflow-y:auto;top:80px;left:30px;right:30px;bottom:88px;background-color:#fdfdfd;overflow-x:hidden;-webkit-box-shadow:inset 0 2px 2px rgba(0,0,0,0.03);-moz-box-shadow:inset 0 2px 2px rgba(0,0,0,0.03);box-shadow:inset 0 2px 2px rgba(0,0,0,0.03)}#sow-widgets-page #sow-settings-dialog .so-content>*:first-child,#sow-widgets-page #sow-settings-dialog .so-content form>*:first-child{margin-top:0}#sow-widgets-page #sow-settings-dialog .so-content>*:last-child,#sow-widgets-page #sow-settings-dialog .so-content form>*:last-child{margin-bottom:0}#sow-widgets-page #sow-settings-dialog .so-content .so-content-tabs>*{display:none}#sow-widgets-page #sow-settings-dialog .so-content.so-loading{background-image:url("images/wpspin_light.gif");background-position:center center;background-repeat:no-repeat}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#sow-widgets-page #sow-settings-dialog .so-content.so-loading{background-image:url(images/wpspin_light-2x.gif);background-size:16px 16px}}#sow-widgets-page #sow-settings-dialog .so-title-bar{left:30px;right:30px;top:30px;height:50px;background-color:#fafafa;border-bottom:1px solid #D8D8D8}#sow-widgets-page #sow-settings-dialog .so-title-bar h3.so-title{margin:0 !important;padding:0 !important}#sow-widgets-page #sow-settings-dialog .so-title-bar a{cursor:pointer;position:absolute;box-sizing:border-box;width:50px;height:50px;display:block;top:0;right:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;background:#fafafa;border-left:1px solid #d8d8d8;border-bottom:1px solid #d8d8d8}#sow-widgets-page #sow-settings-dialog .so-title-bar a:hover{background:#e9e9e9}#sow-widgets-page #sow-settings-dialog .so-title-bar a:hover .so-dialog-icon{color:#333333}#sow-widgets-page #sow-settings-dialog .so-title-bar a .so-dialog-icon{position:absolute;top:50%;left:50%;text-decoration:none;width:20px;height:20px;margin-left:-10px;margin-top:-10px;color:#666666;text-align:center}#sow-widgets-page #sow-settings-dialog .so-title-bar a .so-dialog-icon:before{font:400 20px/1em dashicons;top:7px;left:13px}#sow-widgets-page #sow-settings-dialog .so-title-bar a.so-close{right:0}#sow-widgets-page #sow-settings-dialog .so-title-bar a.so-close .so-dialog-icon:before{content:"\f335"}#sow-widgets-page #sow-settings-dialog .so-toolbar{left:30px;right:30px;bottom:30px;height:58px;background-color:#fafafa;border-top:1px solid #D8D8D8;z-index:100002}#sow-widgets-page #sow-settings-dialog .so-toolbar .so-status{float:left;padding-top:6px;padding-bottom:6px;font-style:italic;color:#999999;line-height:1em}#sow-widgets-page #sow-settings-dialog .so-toolbar .so-status.so-panels-loading{padding-left:26px;background-position:left center}#sow-widgets-page #sow-settings-dialog .so-toolbar .so-buttons{float:right}#sow-widgets-page #sow-settings-dialog .so-toolbar .so-buttons .action-buttons{position:absolute;left:15px;top:50%;margin-top:-0.65em}#sow-widgets-page #sow-settings-dialog .so-toolbar .so-buttons .action-buttons a{cursor:pointer;display:inline;padding:.2em .5em;line-height:1em;margin-right:.5em;text-decoration:none}#sow-widgets-page #sow-settings-dialog .so-toolbar .so-buttons .action-buttons .so-delete{color:#a00}#sow-widgets-page #sow-settings-dialog .so-toolbar .so-buttons .action-buttons .so-delete:hover{background:#a00;color:#FFFFFF}#sow-widgets-page #sow-settings-dialog .so-toolbar .so-buttons .action-buttons .so-duplicate:hover{text-decoration:underline}#sow-widgets-page #sow-settings-dialog .siteorigin-widget-help-link{display:none}#sow-widgets-page #so-widget-settings-save{width:0;height:0;border:none}body.plugins_page_so-widgets-plugins #contextual-help-link-wrap{z-index:10}
admin/tpl/admin.php CHANGED
@@ -68,10 +68,13 @@
68
</div>
69
70
<?php
71
$widget_object = !empty( $widget_objects[ $file ] ) ? $widget_objects[ $file ] : false;
72
if( !empty( $widget_object ) && $widget_object->has_form( 'settings' ) ) {
73
$form_url = add_query_arg( array(
74
- 'id' => $file,
75
'action' => 'so_widgets_setting_form',
76
),
77
admin_url( 'admin-ajax.php' )
68
</div>
69
70
<?php
71
+ /** @var SiteOrigin_Widget $widget_object */
72
$widget_object = !empty( $widget_objects[ $file ] ) ? $widget_objects[ $file ] : false;
73
if( !empty( $widget_object ) && $widget_object->has_form( 'settings' ) ) {
74
+ $rel_path = str_replace( WP_PLUGIN_DIR, '', $file );
75
+
76
$form_url = add_query_arg( array(
77
+ 'id' => $rel_path,
78
'action' => 'so_widgets_setting_form',
79
),
80
admin_url( 'admin-ajax.php' )
base/base.php CHANGED
@@ -16,9 +16,11 @@ include plugin_dir_path(__FILE__).'inc/shortcode.php';
16
*/
17
function siteorigin_widget_add_inline_css($css){
18
global $siteorigin_widgets_inline_styles;
19
- if(empty($siteorigin_widgets_inline_styles)) $siteorigin_widgets_inline_styles = '';
20
21
- $siteorigin_widgets_inline_styles .= $css;
22
}
23
24
/**
@@ -26,11 +28,14 @@ function siteorigin_widget_add_inline_css($css){
26
*/
27
function siteorigin_widget_print_styles(){
28
global $siteorigin_widgets_inline_styles;
29
- if(!empty($siteorigin_widgets_inline_styles)) {
30
- ?><style type="text/css"><?php echo($siteorigin_widgets_inline_styles) ?></style><?php
31
- }
32
-
33
- $siteorigin_widgets_inline_styles = '';
34
}
35
add_action('wp_head', 'siteorigin_widget_print_styles');
36
add_action('wp_footer', 'siteorigin_widget_print_styles');
@@ -125,7 +130,7 @@ function siteorigin_widget_get_font($font_value) {
125
*/
126
function siteorigin_widget_add_bundle_groups($widgets){
127
foreach( $widgets as $class => &$widget ) {
128
- if( preg_match('/SiteOrigin_Widget_(.*)_Widget/i', $class, $matches) ) {
129
$widget['icon'] = 'so-widget-icon so-widget-icon-'.strtolower($matches[1]);
130
$widget['groups'] = array('so-widgets-bundle');
131
}
16
*/
17
function siteorigin_widget_add_inline_css($css){
18
global $siteorigin_widgets_inline_styles;
19
+ if ( empty( $siteorigin_widgets_inline_styles ) ) {
20
+ $siteorigin_widgets_inline_styles = array();
21
+ }
22
23
+ $siteorigin_widgets_inline_styles[] = $css;
24
}
25
26
/**
28
*/
29
function siteorigin_widget_print_styles(){
30
global $siteorigin_widgets_inline_styles;
31
+ if ( ! empty( $siteorigin_widgets_inline_styles ) ) {
32
+ foreach ($siteorigin_widgets_inline_styles as $widget_css) {
33
+ ?>
34
+ <style type="text/css"><?php echo($widget_css) ?></style><?php
35
+ }
36
+ }
37
+
38
+ $siteorigin_widgets_inline_styles = array();
39
}
40
add_action('wp_head', 'siteorigin_widget_print_styles');
41
add_action('wp_footer', 'siteorigin_widget_print_styles');
130
*/
131
function siteorigin_widget_add_bundle_groups($widgets){
132
foreach( $widgets as $class => &$widget ) {
133
+ if( preg_match('/SiteOrigin_Widgets?_(.*)_Widget/i', $class, $matches) ) {
134
$widget['icon'] = 'so-widget-icon so-widget-icon-'.strtolower($matches[1]);
135
$widget['groups'] = array('so-widgets-bundle');
136
}
base/css/admin.css CHANGED
@@ -1,653 +1 @@
1
- .siteorigin-widget-form-no-styles {
2
- display: none !important;
3
- }
4
- .siteorigin-widget-teaser {
5
- padding: 10px 12px;
6
- border: 1px solid #5fc133;
7
- background: #edfbe7;
8
- color: #394a3a;
9
- margin-bottom: 20px;
10
- }
11
- .siteorigin-widget-teaser .dashicons {
12
- float: right;
13
- margin: 1px 2px 6px 10px;
14
- cursor: pointer;
15
- font-size: 18px;
16
- width: 18px;
17
- height: 18px;
18
- }
19
- .siteorigin-widget-form {
20
- display: block !important;
21
- margin: 15px 0;
22
- }
23
- .siteorigin-widget-form > div:first-child {
24
- margin-top: 0;
25
- }
26
- .siteorigin-widget-form a {
27
- box-shadow: none;
28
- }
29
- .siteorigin-widget-form.siteorigin-widget-form-main {
30
- min-width: 600px;
31
- }
32
- .siteorigin-widget-form .siteorigin-widget-field {
33
- margin: 1em 0;
34
- }
35
- .siteorigin-widget-form .siteorigin-widget-field label {
36
- display: block;
37
- margin-bottom: 3px;
38
- }
39
- .siteorigin-widget-form .siteorigin-widget-field label.siteorigin-widget-field-label {
40
- font-weight: bold;
41
- }
42
- .siteorigin-widget-form .siteorigin-widget-field label.so-checkbox-label {
43
- -webkit-user-select: none;
44
- -moz-user-select: none;
45
- -ms-user-select: none;
46
- user-select: none;
47
- }
48
- .siteorigin-widget-form .siteorigin-widget-field .siteorigin-widget-description {
49
- font-size: 0.9em;
50
- margin-top: 0.2em;
51
- color: #999;
52
- font-style: italic;
53
- }
54
- .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-separator {
55
- margin: 1.75em 0;
56
- }
57
- .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-is-optional .field-optional {
58
- font-weight: normal;
59
- font-size: 0.8em;
60
- vertical-align: super;
61
- padding-left: 0.5em;
62
- color: #54a242;
63
- font-style: italic;
64
- }
65
- .siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-is-required .field-required {
66
- font-weight: normal;
67
- font-size: 0.8em;
68
- vertical-align: super;
69
- padding-left: 0.5em;
70
- color: #F02311;
71
- font-style: italic;
72
- }
73
- .siteorigin-widget-form .siteorigin-widget-field input[type="text"] {
74
- width: 100%;
75
- }
76
- .siteorigin-widget-form .siteorigin-widget-field input.siteorigin-widget-input-color {
77
- width: auto;
78
- }
79
- .siteorigin-widget-form .siteorigin-widget-field textarea.siteorigin-widget-code-input {
80
- font-family: "Courier New", Courier, monospace;
81
- }
82
- .siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-slider-wrapper {
83
- margin: 10px 0;
84
- border: 1px solid #E0E0E0;
85
- padding: 12px 15px;
86
- background: #F4F4F4;
87
- -webkit-border-radius: 4px;
88
- -moz-border-radius: 4px;
89
- border-radius: 4px;
90
- max-width: 500px;
91
- display: block;
92
- margin-left: 55px;
93
- }
94
- .siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-slider-value {
95
- display: block;
96
- float: left;
97
- margin-top: 0;
98
- border: 1px solid #E0E0E0;
99
- padding: 11px 0;
100
- background: #F4F4F4;
101
- font-weight: bold;
102
- color: #666;
103
- width: 45px;
104
- text-align: center;
105
- }
106
- .siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-value-slider {
107
- position: relative;
108
- height: 5px;
109
- background: #A0A0A0;
110
- -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
111
- -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
112
- box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
113
- -webkit-border-radius: 4px;
114
- -moz-border-radius: 4px;
115
- border-radius: 4px;
116
- }
117
- .siteorigin-widget-form .siteorigin-widget-field-type-slider .ui-slider-handle {
118
- cursor: move;
119
- -ms-box-sizing: border-box;
120
- -moz-box-sizing: border-box;
121
- -webkit-box-sizing: border-box;
122
- box-sizing: border-box;
123
- border: 1px solid #a4a3a8;
124
- z-index: 10;
125
- position: absolute;
126
- width: 18px;
127
- height: 18px;
128
- margin-top: -7px;
129
- margin-left: -9px;
130
- background: #F9F9F9;
131
- -webkit-border-radius: 10px;
132
- -moz-border-radius: 10px;
133
- border-radius: 10px;
134
- top: 0;
135
- left: 0;
136
- -webkit-box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1);
137
- -moz-box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1);
138
- box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1);
139
- }
140
- .siteorigin-widget-form .siteorigin-widget-field-type-slider input[type="number"] {
141
- display: none;
142
- }
143
- .siteorigin-widget-form .siteorigin-widget-field-repeater {
144
- /* This is for sub level forms */
145
- }
146
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top {
147
- background: #F0F0F0;
148
- border: 1px solid #D0D0D0;
149
- padding: 10px;
150
- position: relative;
151
- }
152
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top h3 {
153
- font-size: 13px;
154
- margin: 0;
155
- padding: 0 !important;
156
- }
157
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand,
158
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy,
159
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove {
160
- width: 14px;
161
- height: 14px;
162
- position: absolute;
163
- top: 50%;
164
- margin-top: -7px;
165
- cursor: pointer;
166
- font-size: 14px;
167
- line-height: 14px;
168
- text-align: center;
169
- }
170
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:before,
171
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:before,
172
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:before {
173
- font-family: dashicons;
174
- vertical-align: middle;
175
- color: #999999;
176
- }
177
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand {
178
- right: 48px;
179
- }
180
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:before {
181
- content: "\f140";
182
- }
183
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:hover:before {
184
- color: #50575D;
185
- }
186
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy {
187
- right: 28px;
188
- }
189
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:before {
190
- content: "\f105";
191
- }
192
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:hover:before {
193
- color: #50575D;
194
- }
195
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove {
196
- right: 12px;
197
- }
198
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:before {
199
- content: '\f158';
200
- }
201
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:hover {
202
- background: #ff0000;
203
- }
204
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:hover:before {
205
- color: #FFFFFF;
206
- }
207
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items {
208
- background: #FCFCFC;
209
- border: 1px solid #EEEEEE;
210
- border-top: 0;
211
- border-bottom: 0;
212
- }
213
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item {
214
- background: #FCFCFC;
215
- border-bottom: 1px solid #EEEEEE;
216
- }
217
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top {
218
- padding: 10px;
219
- cursor: move;
220
- position: relative;
221
- background: #F6F6F6;
222
- }
223
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top h4 {
224
- font-size: 12px;
225
- margin: 0;
226
- }
227
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item h4 {
228
- font-size: 15px;
229
- margin: 0;
230
- }
231
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item:last-child {
232
- border-bottom: 0;
233
- }
234
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-form {
235
- border-top: 1px solid #EEEEEE;
236
- display: none;
237
- padding: 1px 10px;
238
- }
239
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add {
240
- padding: 7px 10px;
241
- background: #F0F0F0;
242
- border: 1px dashed #D0D0D0;
243
- font-size: 12px;
244
- line-height: 1em;
245
- text-align: center;
246
- cursor: pointer;
247
- }
248
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add:hover {
249
- background: #F4F4F4;
250
- }
251
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top {
252
- background: #eaf2f6;
253
- border-color: #c9d0d4;
254
- }
255
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top h3 {
256
- color: #42484b;
257
- }
258
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items {
259
- background: #f6fdff;
260
- border-color: #e8eff3;
261
- }
262
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item {
263
- background: #f8fdff;
264
- border-bottom-color: #e8eff3;
265
- }
266
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top {
267
- background: #f0f8fc;
268
- }
269
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-form {
270
- border-top-color: #e8eff3;
271
- }
272
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add {
273
- background: #eaf2f6;
274
- border-color: #c9d0d4;
275
- color: #42484b;
276
- }
277
- .siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add:hover {
278
- background: #edf5f9;
279
- }
280
- .siteorigin-widget-form .siteorigin-widget-field-type-widget > label,
281
- .siteorigin-widget-form .siteorigin-widget-field-type-section > label {
282
- background: #F0F0F0;
283
- border: 1px solid #D0D0D0;
284
- padding: 10px;
285
- display: block;
286
- margin-bottom: 0;
287
- }
288
- .siteorigin-widget-form .siteorigin-widget-field-type-widget > label:before,
289
- .siteorigin-widget-form .siteorigin-widget-field-type-section > label:before {
290
- float: left;
291
- margin: 3px 6px 0 0;
292
- display: block;
293
- width: 14px;
294
- height: 14px;
295
- font-size: 14px;
296
- line-height: 1;
297
- font-family: "dashicons";
298
- content: "\f132";
299
- }
300
- .siteorigin-widget-form .siteorigin-widget-field-type-widget > label.siteorigin-widget-section-visible:before,
301
- .siteorigin-widget-form .siteorigin-widget-field-type-section > label.siteorigin-widget-section-visible:before {
302
- content: "\f460";
303
- }
304
- .siteorigin-widget-form .siteorigin-widget-field-type-widget .siteorigin-widget-section,
305
- .siteorigin-widget-form .siteorigin-widget-field-type-section .siteorigin-widget-section {
306
- padding: 1px 10px;
307
- background: #FCFCFC;
308
- border: 1px solid #EEEEEE;
309
- border-top: 0;
310
- }
311
- .siteorigin-widget-form .siteorigin-widget-field-type-widget .siteorigin-widget-section.siteorigin-widget-section-hide,
312
- .siteorigin-widget-form .siteorigin-widget-field-type-section .siteorigin-widget-section.siteorigin-widget-section-hide {
313
- display: none;
314
- }
315
- .siteorigin-widget-form .siteorigin-widget-field-type-link {
316
- position: relative;
317
- }
318
- .siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector {
319
- padding: 20px;
320
- display: none;
321
- position: absolute;
322
- top: 110%;
323
- right: 0px;
324
- width: 360px;
325
- z-index: 10;
326
- border: 1px solid #c0c0c0;
327
- background: #F6F6F6;
328
- -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
329
- -moz-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
330
- box-shadow: 0 2px 4px rgba(0,0,0,0.2);
331
- -webkit-border-radius: 3px;
332
- -moz-border-radius: 3px;
333
- border-radius: 3px;
334
- }
335
- .siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .content-text-search {
336
- width: 100%;
337
- margin-bottom: 15px;
338
- }
339
- .siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts {
340
- margin: 0;
341
- padding: 0;
342
- background: #fff;
343
- max-height: 300px;
344
- overflow-y: scroll;
345
- border: 1px solid #e4e4e4;
346
- }
347
- .siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li {
348
- cursor: pointer;
349
- padding: 5px 10px;
350
- color: #32373c;
351
- border-bottom: 1px solid #f1f1f1;
352
- margin: 0;
353
- font-size: 0.95em;
354
- }
355
- .siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li:hover {
356
- background: #eaf2fa;
357
- }
358
- .siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li:last-child {
359
- border-bottom: 0;
360
- }
361
- .siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li span {
362
- font-size: 0.9em;
363
- display: inline-block;
364
- float: right;
365
- color: #999;
366
- margin-left: 10px;
367
- }
368
- .siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading {
369
- min-height: 40px;
370
- background: #FFFFFF url("img/wpspin_light.gif") center center no-repeat;
371
- }
372
- @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
373
- .siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading {
374
- background-image: url("img/wpspin_light-2x.gif");
375
- background-size: 16px 16px;
376
- }
377
- }
378
- .siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading li {
379
- display: none;
380
- }
381
- .siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .buttons {
382
- margin-top: 15px;
383
- text-align: right;
384
- }
385
- .siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .buttons a {
386
- display: inline-block;
387
- }
388
- .siteorigin-widget-form .siteorigin-widget-field-type-link .url-input-wrapper {
389
- display: block;
390
- margin-right: 130px;
391
- }
392
- .siteorigin-widget-form .siteorigin-widget-field-type-link .select-content-button {
393
- float: right;
394
- width: 120px;
395
- text-align: center;
396
- }
397
- .siteorigin-widget-form .siteorigin-widget-description {
398
- clear: both;
399
- }
400
- .siteorigin-widgets-query-builder .query-builder-content {
401
- padding: 20px;
402
- }
403
- .siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field {
404
- margin-bottom: 10px;
405
- }
406
- .siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field label span {
407
- display: block;
408
- font-size: 13px;
409
- line-height: 24px;
410
- color: #666;
411
- }
412
- .siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field .sow-select-posts {
413
- margin-top: 2px;
414
- }
415
- .siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field input[type="text"] {
416
- width: 400px;
417
- }
418
- .siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field input[type="number"] {
419
- width: 150px;
420
- }
421
- .siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field input[type="date"] {
422
- width: 150px;
423
- margin: 0 10px;
424
- }
425
- .siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field .sow-order-button {
426
- display: inline-block;
427
- width: 19px;
428
- height: 19px;
429
- margin: 0 0 -6px 10px;
430
- cursor: pointer;
431
- background: url(img/ordering-icons.png);
432
- }
433
- .siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field .sow-order-button.sow-order-button-desc {
434
- background-position: left top;
435
- }
436
- .siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field .sow-order-button.sow-order-button-asc {
437
- background-position: left bottom;
438
- }
439
- .siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field small {
440
- display: block;
441
- }
442
- .siteorigin-widgets-query-builder .media-toolbar-secondary .sow-post-count-message {
443
- margin-top: 21px;
444
- }
445
- .siteorigin-widgets-query-builder .media-toolbar-secondary .sow-post-selector-summary {
446
- margin-top: 10px;
447
- display: block;
448
- width: 41px;
449
- height: 41px;
450
- float: left;
451
- overflow: hidden;
452
- background: green;
453
- margin-right: 10px;
454
- }
455
- .siteorigin-widgets-query-builder .media-toolbar-secondary .sow-post-selector-summary:last-child {
456
- margin-right: 0;
457
- }
458
- .siteorigin-widgets-query-builder .sow-post-selector-summary {
459
- display: block;
460
- float: left;
461
- margin: 0 15px 15px 0;
462
- width: 130px;
463
- }
464
- .siteorigin-widgets-query-builder .sow-post-selector-summary .sow-thumbnail {
465
- width: 130px;
466
- height: 130px;
467
- margin-bottom: 4px;
468
- }
469
- .siteorigin-widgets-query-builder .sow-post-selector-summary .sow-thumbnail img {
470
- width: 100%;
471
- height: auto;
472
- }
473
- .siteorigin-widgets-query-builder .sow-post-selector-summary .sow-title {
474
- height: 2.5em;
475
- overflow: hidden;
476
- line-height: 1.2em;
477
- text-align: center;
478
- }
479
- .siteorigin-widgets-query-builder .sow-post-selector-summary.sow-post-loading .sow-thumbnail {
480
- background: url(img/loading.gif) center center no-repeat #EEEEEE;
481
- }
482
- .siteorigin-widgets-query-builder .sow-post-selector-summary.sow-post-loading .sow-thumbnail img {
483
- display: none;
484
- }
485
- .siteorigin-widgets-query-builder .sow-post-selector-summary .sow-remove {
486
- display: none;
487
- }
488
- .siteorigin-widgets-query-builder #sow-post-selector .sow-autocomplete-field {
489
- text-align: right;
490
- margin-bottom: 20px;
491
- }
492
- .siteorigin-widgets-query-builder #sow-post-selector .sow-autocomplete-field input[type=text] {
493
- width: 320px;
494
- margin-left: 10px;
495
- }
496
- .siteorigin-widgets-query-builder #sow-post-selector .sow-autocomplete-field .ui-autocomplete {
497
- max-height: 182px;
498
- overflow-y: auto;
499
- /* prevent horizontal scrollbar */
500
- overflow-x: hidden;
501
- }
502
- .siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable .ui-state-highlight {
503
- display: block;
504
- float: left;
505
- margin: 0 15px 15px 0;
506
- background: #F3F3F3;
507
- }
508
- .siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable .sow-post-selector-summary {
509
- cursor: move;
510
- position: relative;
511
- }
512
- .siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable .sow-post-selector-summary .sow-remove {
513
- position: absolute;
514
- top: -5px;
515
- right: -5px;
516
- width: 19px;
517
- height: 19px;
518
- z-index: 10;
519
- text-decoration: none;
520
- background: #333333;
521
- text-align: center;
522
- }
523
- .siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable .sow-post-selector-summary .sow-remove:before {
524
- content: '\f158';
525
- font: 14px/1 dashicons;
526
- vertical-align: middle;
527
- color: #EEEEEE;
528
- }
529
- .siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable .sow-post-selector-summary .sow-remove:hover {
530
- background: #444444;
531
- }
532
- .siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable .sow-post-selector-summary .sow-remove:hover:before {
533
- color: #FFFFFF;
534
- }
535
- .siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable .sow-post-selector-summary:hover .sow-remove {
536
- display: block;
537
- }
538
- .siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable:after {
539
- content: "";
540
- display: table;
541
- clear: both;
542
- }
543
- .siteorigin-widgets-query-builder .media-modal-close .media-modal-icon {
544
- position: absolute;
545
- top: 50%;
546
- left: 50%;
547
- text-decoration: none;
548
- width: 20px;
549
- height: 20px;
550
- margin-left: -10px;
551
- margin-top: -10px;
552
- color: #666666;
553
- text-align: center;
554
- }
555
- .siteorigin-widgets-query-builder .media-modal-close .media-modal-icon:before {
556
- font: 400 20px/1em dashicons;
557
- top: 7px;
558
- left: 13px;
559
- }
560
- .siteorigin-widget-preview {
561
- display: block !important;
562
- }
563
- .siteorigin-widget-help-link {
564
- display: block;
565
- margin: 1em 0;
566
- }
567
- .so-widgets-dialog .so-widgets-dialog-overlay {
568
- position: fixed;
569
- z-index: 500000;
570
- top: 0;
571
- left: 0;
572
- right: 0;
573
- bottom: 0;
574
- background: rgba(0, 0, 0, 0.7);
575
- }
576
- .so-widgets-dialog .so-widgets-toolbar,
577
- .so-widgets-dialog .so-widgets-dialog-frame {
578
- position: fixed;
579
- z-index: 500001;
580
- -ms-box-sizing: border-box;
581
- -moz-box-sizing: border-box;
582
- -webkit-box-sizing: border-box;
583
- box-sizing: border-box;
584
- }
585
- .so-widgets-dialog .so-widgets-toolbar {
586
- left: 30px;
587
- right: 30px;
588
- top: 30px;
589
- height: 50px;
590
- background: #fafafa;
591
- border-bottom: 1px solid #D8D8D8;
592
- }
593
- .so-widgets-dialog .so-widgets-toolbar h3 {
594
- margin: 15px 0 15px 20px;
595
- }
596
- .so-widgets-dialog .so-widgets-toolbar .close {
597
- position: absolute;
598
- box-sizing: border-box;
599
- width: 50px;
600
- height: 50px;
601
- display: block;
602
- cursor: pointer;
603
- top: 0;
604
- right: 0;
605
- -webkit-transition: all 0.2s ease;
606
- -moz-transition: all 0.2s ease;
607
- -o-transition: all 0.2s ease;
608
- transition: all 0.2s ease;
609
- background: #fafafa;
610
- border-left: 1px solid #d8d8d8;
611
- border-bottom: 1px solid #d8d8d8;
612
- }
613
- .so-widgets-dialog .so-widgets-toolbar .close:hover {
614
- background: #e9e9e9;
615
- }
616
- .so-widgets-dialog .so-widgets-toolbar .close:hover .so-dialog-icon {
617
- color: #333333;
618
- }
619
- .so-widgets-dialog .so-widgets-toolbar .close .dashicons {
620
- position: absolute;
621
- top: 50%;
622
- left: 50%;
623
- text-decoration: none;
624
- width: 21px;
625
- height: 21px;
626
- margin-left: -11px;
627
- margin-top: -10px;
628
- font-size: 21px;
629
- color: #666666;
630
- text-align: center;
631
- }
632
- .so-widgets-dialog .so-widgets-dialog-frame {
633
- top: 80px;
634
- left: 30px;
635
- right: 30px;
636
- bottom: 30px;
637
- background: #FFFFFF url("img/wpspin_light.gif") center center no-repeat;
638
- }
639
- @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
640
- .so-widgets-dialog .so-widgets-dialog-frame {
641
- background-image: url("img/wpspin_light-2x.gif");
642
- background-size: 16px 16px;
643
- }
644
- }
645
- .so-widgets-dialog .so-widgets-dialog-frame iframe {
646
- width: 100%;
647
- height: 100%;
648
- }
649
- /* Icons */
650
- .widget-icon.so-widget-icon {
651
- background-size: cover;
652
- background-image: url("img/bundle-icon.png");
653
- }
1
+ .siteorigin-widget-form-no-styles{display:none !important}.siteorigin-widget-teaser{padding:10px 12px;border:1px solid #5fc133;background:#edfbe7;color:#394a3a;margin-bottom:20px}.siteorigin-widget-teaser .dashicons{float:right;margin:1px 2px 6px 10px;cursor:pointer;font-size:18px;width:18px;height:18px}.siteorigin-widget-form{display:block !important;margin:15px 0}.siteorigin-widget-form>div:first-child{margin-top:0}.siteorigin-widget-form a{box-shadow:none}.siteorigin-widget-form.siteorigin-widget-form-main{min-width:600px}.siteorigin-widget-form .siteorigin-widget-field{margin:1em 0}.siteorigin-widget-form .siteorigin-widget-field label{display:block;margin-bottom:3px}.siteorigin-widget-form .siteorigin-widget-field label.siteorigin-widget-field-label{font-weight:bold}.siteorigin-widget-form .siteorigin-widget-field label.so-checkbox-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.siteorigin-widget-form .siteorigin-widget-field .siteorigin-widget-description{font-size:.9em;margin-top:.2em;color:#999;font-style:italic}.siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-separator{margin:1.75em 0}.siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-is-optional .field-optional{font-weight:normal;font-size:.8em;vertical-align:super;padding-left:.5em;color:#54a242;font-style:italic}.siteorigin-widget-form .siteorigin-widget-field.siteorigin-widget-field-is-required .field-required{font-weight:normal;font-size:.8em;vertical-align:super;padding-left:.5em;color:#F02311;font-style:italic}.siteorigin-widget-form .siteorigin-widget-field input[type="text"]{width:100%}.siteorigin-widget-form .siteorigin-widget-field input.siteorigin-widget-input-color{width:auto}.siteorigin-widget-form .siteorigin-widget-field textarea.siteorigin-widget-code-input{font-family:"Courier New",Courier,monospace}.siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-slider-wrapper{margin:10px 0;border:1px solid #E0E0E0;padding:12px 15px;background:#F4F4F4;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;max-width:500px;display:block;margin-left:55px}.siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-slider-value{display:block;float:left;margin-top:0;border:1px solid #E0E0E0;padding:11px 0;background:#F4F4F4;font-weight:bold;color:#666;width:45px;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-type-slider .siteorigin-widget-value-slider{position:relative;height:5px;background:#A0A0A0;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,0.25);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,0.25);box-shadow:inset 0 1px 2px rgba(0,0,0,0.25);-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.siteorigin-widget-form .siteorigin-widget-field-type-slider .ui-slider-handle{cursor:move;-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #a4a3a8;z-index:10;position:absolute;width:18px;height:18px;margin-top:-7px;margin-left:-9px;background:#F9F9F9;-webkit-border-radius:10px;-moz-border-radius:10px;border-radius:10px;top:0;left:0;-webkit-box-shadow:inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1);-moz-box-shadow:inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1);box-shadow:inset 0 1px 0 #FFFFFF, 0 1px 1px rgba(0,0,0,0.1)}.siteorigin-widget-form .siteorigin-widget-field-type-slider input[type="number"]{display:none}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top{background:#F0F0F0;border:1px solid #D0D0D0;padding:10px;position:relative}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top h3{font-size:13px;margin:0;padding:0 !important}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove{width:14px;height:14px;position:absolute;top:50%;margin-top:-7px;cursor:pointer;font-size:14px;line-height:14px;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:before,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:before,.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:before{font-family:dashicons;vertical-align:middle;color:#999999}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand{right:48px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:before{content:"\f140"}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-expand:hover:before{color:#50575D}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy{right:28px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:before{content:"\f105"}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-copy:hover:before{color:#50575D}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove{right:12px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:before{content:'\f158'}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:hover{background:#ff0000}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-remove:hover:before{color:#FFFFFF}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items{background:#FCFCFC;border:1px solid #EEEEEE;border-top:0;border-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item{background:#FCFCFC;border-bottom:1px solid #EEEEEE}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top{padding:10px;cursor:move;position:relative;background:#F6F6F6}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top h4{font-size:12px;margin:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item h4{font-size:15px;margin:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item:last-child{border-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-form{border-top:1px solid #EEEEEE;display:none;padding:1px 10px}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add{padding:7px 10px;background:#F0F0F0;border:1px dashed #D0D0D0;font-size:12px;line-height:1em;text-align:center;cursor:pointer}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add:hover{background:#F4F4F4}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top{background:#eaf2f6;border-color:#c9d0d4}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-top h3{color:#42484b}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items{background:#f6fdff;border-color:#e8eff3}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item{background:#f8fdff;border-bottom-color:#e8eff3}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-top{background:#f0f8fc}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-items .siteorigin-widget-field-repeater-item .siteorigin-widget-field-repeater-item-form{border-top-color:#e8eff3}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add{background:#eaf2f6;border-color:#c9d0d4;color:#42484b}.siteorigin-widget-form .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater .siteorigin-widget-field-repeater-add:hover{background:#edf5f9}.siteorigin-widget-form .siteorigin-widget-field-type-widget>label,.siteorigin-widget-form .siteorigin-widget-field-type-section>label{background:#F0F0F0;border:1px solid #D0D0D0;padding:10px;display:block;margin-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-type-widget>label:before,.siteorigin-widget-form .siteorigin-widget-field-type-section>label:before{float:left;margin:3px 6px 0 0;display:block;width:14px;height:14px;font-size:14px;line-height:1;font-family:"dashicons";content:"\f132"}.siteorigin-widget-form .siteorigin-widget-field-type-widget>label.siteorigin-widget-section-visible:before,.siteorigin-widget-form .siteorigin-widget-field-type-section>label.siteorigin-widget-section-visible:before{content:"\f460"}.siteorigin-widget-form .siteorigin-widget-field-type-widget .siteorigin-widget-section,.siteorigin-widget-form .siteorigin-widget-field-type-section .siteorigin-widget-section{padding:1px 10px;background:#FCFCFC;border:1px solid #EEEEEE;border-top:0}.siteorigin-widget-form .siteorigin-widget-field-type-widget .siteorigin-widget-section.siteorigin-widget-section-hide,.siteorigin-widget-form .siteorigin-widget-field-type-section .siteorigin-widget-section.siteorigin-widget-section-hide{display:none}.siteorigin-widget-form .siteorigin-widget-field-type-link{position:relative}.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector{padding:20px;display:none;position:absolute;top:110%;right:0;width:360px;z-index:10;border:1px solid #c0c0c0;background:#F6F6F6;-webkit-box-shadow:0 2px 4px rgba(0,0,0,0.2);-moz-box-shadow:0 2px 4px rgba(0,0,0,0.2);box-shadow:0 2px 4px rgba(0,0,0,0.2);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .content-text-search{width:100%;margin-bottom:15px}.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts{margin:0;padding:0;background:#fff;max-height:300px;overflow-y:scroll;border:1px solid #e4e4e4}.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li{cursor:pointer;padding:5px 10px;color:#32373c;border-bottom:1px solid #f1f1f1;margin:0;font-size:.95em}.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li:hover{background:#eaf2fa}.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li:last-child{border-bottom:0}.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts li span{font-size:.9em;display:inline-block;float:right;color:#999;margin-left:10px}.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading{min-height:40px;background:#FFFFFF url("img/wpspin_light.gif") center center no-repeat}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading{background-image:url("img/wpspin_light-2x.gif");background-size:16px 16px}}.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .posts.loading li{display:none}.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .buttons{margin-top:15px;text-align:right}.siteorigin-widget-form .siteorigin-widget-field-type-link .existing-content-selector .buttons a{display:inline-block}.siteorigin-widget-form .siteorigin-widget-field-type-link .url-input-wrapper{display:block;margin-right:130px}.siteorigin-widget-form .siteorigin-widget-field-type-link .select-content-button{float:right;width:120px;text-align:center}.siteorigin-widget-form .siteorigin-widget-description{clear:both}.siteorigin-widgets-query-builder .query-builder-content{padding:20px}.siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field{margin-bottom:10px}.siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field label span{display:block;font-size:13px;line-height:24px;color:#666}.siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field .sow-select-posts{margin-top:2px}.siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field input[type="text"]{width:400px}.siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field input[type="number"]{width:150px}.siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field select[multiple]{min-width:150px;max-height:83px}.siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field input[type="date"]{width:150px;margin:0 10px}.siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field .sow-order-button{display:inline-block;width:19px;height:19px;margin:0 0 -6px 10px;cursor:pointer;background:url(img/ordering-icons.png)}.siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field .sow-order-button.sow-order-button-desc{background-position:left top}.siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field .sow-order-button.sow-order-button-asc{background-position:left bottom}.siteorigin-widgets-query-builder .query-builder-content .query-builder-form-field small{display:block}.siteorigin-widgets-query-builder .media-toolbar-secondary .sow-post-count-message{margin-top:21px}.siteorigin-widgets-query-builder .media-toolbar-secondary .sow-post-selector-summary{margin-top:10px;display:block;width:41px;height:41px;float:left;overflow:hidden;background:green;margin-right:10px}.siteorigin-widgets-query-builder .media-toolbar-secondary .sow-post-selector-summary:last-child{margin-right:0}.siteorigin-widgets-query-builder .sow-post-selector-summary{display:block;float:left;margin:0 15px 15px 0;width:130px}.siteorigin-widgets-query-builder .sow-post-selector-summary .sow-thumbnail{width:130px;height:130px;margin-bottom:4px}.siteorigin-widgets-query-builder .sow-post-selector-summary .sow-thumbnail img{width:100%;height:auto}.siteorigin-widgets-query-builder .sow-post-selector-summary .sow-title{height:2.5em;overflow:hidden;line-height:1.2em;text-align:center}.siteorigin-widgets-query-builder .sow-post-selector-summary.sow-post-loading .sow-thumbnail{background:url(img/loading.gif) center center no-repeat #EEEEEE}.siteorigin-widgets-query-builder .sow-post-selector-summary.sow-post-loading .sow-thumbnail img{display:none}.siteorigin-widgets-query-builder .sow-post-selector-summary .sow-remove{display:none}.siteorigin-widgets-query-builder #sow-post-selector .sow-autocomplete-field{text-align:right;margin-bottom:20px}.siteorigin-widgets-query-builder #sow-post-selector .sow-autocomplete-field input[type=text]{width:320px;margin-left:10px}.siteorigin-widgets-query-builder #sow-post-selector .sow-autocomplete-field .ui-autocomplete{max-height:182px;overflow-y:auto;overflow-x:hidden}.siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable .ui-state-highlight{display:block;float:left;margin:0 15px 15px 0;background:#F3F3F3}.siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable .sow-post-selector-summary{cursor:move;position:relative}.siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable .sow-post-selector-summary .sow-remove{position:absolute;top:-5px;right:-5px;width:19px;height:19px;z-index:10;text-decoration:none;background:#333333;text-align:center}.siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable .sow-post-selector-summary .sow-remove:before{content:'\f158';font:14px/1 dashicons;vertical-align:middle;color:#EEEEEE}.siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable .sow-post-selector-summary .sow-remove:hover{background:#444444}.siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable .sow-post-selector-summary .sow-remove:hover:before{color:#FFFFFF}.siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable .sow-post-selector-summary:hover .sow-remove{display:block}.siteorigin-widgets-query-builder #sow-post-selector .sow-posts-sortable:after{content:"";display:table;clear:both}.siteorigin-widgets-query-builder .media-modal-close .media-modal-icon{position:absolute;top:50%;left:50%;text-decoration:none;width:20px;height:20px;margin-left:-10px;margin-top:-10px;color:#666666;text-align:center}.siteorigin-widgets-query-builder .media-modal-close .media-modal-icon:before{font:400 20px/1em dashicons;top:7px;left:13px}.siteorigin-widget-preview{display:block !important}.siteorigin-widget-help-link{display:block;margin:1em 0}.so-widgets-dialog .so-widgets-dialog-overlay{position:fixed;z-index:500000;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.7)}.so-widgets-dialog .so-widgets-toolbar,.so-widgets-dialog .so-widgets-dialog-frame{position:fixed;z-index:500001;-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.so-widgets-dialog .so-widgets-toolbar{left:30px;right:30px;top:30px;height:50px;background:#fafafa;border-bottom:1px solid #D8D8D8}.so-widgets-dialog .so-widgets-toolbar h3{margin:15px 0 15px 20px}.so-widgets-dialog .so-widgets-toolbar .close{position:absolute;box-sizing:border-box;width:50px;height:50px;display:block;cursor:pointer;top:0;right:0;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;background:#fafafa;border-left:1px solid #d8d8d8;border-bottom:1px solid #d8d8d8}.so-widgets-dialog .so-widgets-toolbar .close:hover{background:#e9e9e9}.so-widgets-dialog .so-widgets-toolbar .close:hover .so-dialog-icon{color:#333333}.so-widgets-dialog .so-widgets-toolbar .close .dashicons{position:absolute;top:50%;left:50%;text-decoration:none;width:21px;height:21px;margin-left:-11px;margin-top:-10px;font-size:21px;color:#666666;text-align:center}.so-widgets-dialog .so-widgets-dialog-frame{top:80px;left:30px;right:30px;bottom:30px;background:#FFFFFF url("img/wpspin_light.gif") center center no-repeat}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.so-widgets-dialog .so-widgets-dialog-frame{background-image:url("img/wpspin_light-2x.gif");background-size:16px 16px}}.so-widgets-dialog .so-widgets-dialog-frame iframe{width:100%;height:100%}.widget-icon.so-widget-icon{background-size:cover;background-image:url("img/bundle-icon.png")}
base/css/post-selector.css CHANGED
@@ -1,23 +1 @@
1
- .sow-select-posts {
2
- margin-top: 6px;
3
- position: relative;
4
- }
5
- .sow-select-posts .sow-current-count {
6
- position: absolute;
7
- top: -10px;
8
- right: -10px;
9
- border-radius: 9px;
10
- background: #f92700;
11
- border: 1px solid #da0900;
12
- display: block;
13
- line-height: 14px;
14
- font-size: 7px;
15
- width: 17px;
16
- height: 17px;
17
- text-align: center;
18
- vertical-align: middle;
19
- font-weight: bold;
20
- color: #FFFFFF;
21
- box-sizing: border-box;
22
- padding-top: 1px;
23
- }
1
+ .sow-select-posts{margin-top:6px;position:relative}.sow-select-posts .sow-current-count{position:absolute;top:-10px;right:-10px;border-radius:9px;background:#f92700;border:1px solid #da0900;display:block;line-height:14px;font-size:7px;width:17px;height:17px;text-align:center;vertical-align:middle;font-weight:bold;color:#FFFFFF;box-sizing:border-box;padding-top:1px}
base/css/preview.css CHANGED
@@ -1,8 +1 @@
1
- body {
2
- margin: 20px !important;
3
- background: #FFFFFF !important;
4
- background-image: none !important;
5
- }
6
- h3.widget-title {
7
- margin-top: 0;
8
- }
1
+ body{margin:20px !important;background:#FFFFFF !important;background-image:none !important}h3.widget-title{margin-top:0}
base/inc/attachments.php CHANGED
@@ -44,14 +44,66 @@ function siteorigin_widgets_get_attachment_image( $attachment, $size, $fallback
44
'src' => $src[0],
45
);
46
47
if( !empty($src[1]) ) $atts['width'] = $src[1];
48
if( !empty($src[2]) ) $atts['height'] = $src[2];
49
50
$return = '<img ';
51
foreach( $atts as $id => $val ) {
52
- $return .= $id . '="' . esc_attr($val) . '" ';
53
}
54
$return .= '>';
55
return $return;
56
}
57
}
44
'src' => $src[0],
45
);
46
47
+ if ( function_exists( 'wp_get_attachment_image_srcset' ) ) {
48
+ $atts['srcset'] = wp_get_attachment_image_srcset( $attachment, $size );
49
+ }
50
+ if ( function_exists( 'wp_get_attachment_image_sizes' ) ) {
51
+ $atts['sizes'] = wp_get_attachment_image_sizes( $attachment, $size );
52
+ }
53
+
54
if( !empty($src[1]) ) $atts['width'] = $src[1];
55
if( !empty($src[2]) ) $atts['height'] = $src[2];
56
57
$return = '<img ';
58
foreach( $atts as $id => $val ) {
59
+ $return .= $id . '="' . esc_attr( $val ) . '" ';
60
}
61
$return .= '>';
62
return $return;
63
}
64
}
65
+
66
+ /**
67
+ * Get size information for all currently-registered image sizes.
68
+ * From codex example here: https://codex.wordpress.org/Function_Reference/get_intermediate_image_sizes
69
+ *
70
+ * @global $_wp_additional_image_sizes
71
+ * @uses get_intermediate_image_sizes()
72
+ * @return array $sizes Data for all currently-registered image sizes.
73
+ */
74
+ function siteorigin_widgets_get_image_sizes() {
75
+ global $_wp_additional_image_sizes;
76
+
77
+ $sizes = array();
78
+
79
+ foreach ( get_intermediate_image_sizes() as $_size ) {
80
+ if ( in_array( $_size, array('thumbnail', 'medium', 'medium_large', 'large') ) ) {
81
+ $sizes[ $_size ]['width'] = get_option( "{$_size}_size_w" );
82
+ $sizes[ $_size ]['height'] = get_option( "{$_size}_size_h" );
83
+ $sizes[ $_size ]['crop'] = (bool) get_option( "{$_size}_crop" );
84
+ } elseif ( isset( $_wp_additional_image_sizes[ $_size ] ) ) {
85
+ $sizes[ $_size ] = array(
86
+ 'width' => $_wp_additional_image_sizes[ $_size ]['width'],
87
+ 'height' => $_wp_additional_image_sizes[ $_size ]['height'],
88
+ 'crop' => $_wp_additional_image_sizes[ $_size ]['crop'],
89
+ );
90
+ }
91
+ }
92
+
93
+ return $sizes;
94
+ }
95
+
96
+
97
+ /**
98
+ * @param $size
99
+ *
100
+ * @return mixed
101
+ */
102
+ function siteorigin_widgets_get_image_size( $size ) {
103
+ $sizes = siteorigin_widgets_get_image_sizes();
104
+ if ( ! empty( $sizes[ $size ] ) ) {
105
+ return $sizes[ $size ];
106
+ }
107
+
108
+ return null;
109
+ }
base/inc/fields/color.class.php CHANGED
@@ -11,6 +11,14 @@ class SiteOrigin_Widget_Field_Color extends SiteOrigin_Widget_Field_Text_Input_B
11
return $input_classes;
12
}
13
14
protected function sanitize_field_input( $value, $instance ) {
15
$sanitized_value = $value;
16
if( ! preg_match('|^#|', $sanitized_value) ) {
11
return $input_classes;
12
}
13
14
+ protected function get_input_data_attributes() {
15
+ $data_attributes = parent::get_input_data_attributes();
16
+ if ( ! empty( $this->default ) ) {
17
+ $data_attributes['default-color'] = $this->default;
18
+ }
19
+ return $data_attributes;
20
+ }
21
+
22
protected function sanitize_field_input( $value, $instance ) {
23
$sanitized_value = $value;
24
if( ! preg_match('|^#|', $sanitized_value) ) {
base/inc/fields/css/icon-field.css CHANGED
@@ -1,121 +1 @@
1
- .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current {
2
- display: inline-block;
3
- background: #f9f9f9;
4
- background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #f2f2f2), color-stop(1, #f9f9f9));
5
- background: -ms-linear-gradient(bottom, #f2f2f2, #f9f9f9);
6
- background: -moz-linear-gradient(center bottom, #f2f2f2 0%, #f9f9f9 100%);
7
- background: -o-linear-gradient(#f9f9f9, #f2f2f2);
8
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f2f2f2', GradientType=0);
9
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1);
10
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.1);
11
- box-shadow: 0 1px 2px rgba(0,0,0,0.1);
12
- -webkit-border-radius: 3px;
13
- -moz-border-radius: 3px;
14
- border-radius: 3px;
15
- vertical-align: middle;
16
- border: 1px solid #bbbbbb;
17
- height: 35px;
18
- }
19
- .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current:hover {
20
- background: #ffffff;
21
- background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #f7f7f7), color-stop(1, #ffffff));
22
- background: -ms-linear-gradient(bottom, #f7f7f7, #ffffff);
23
- background: -moz-linear-gradient(center bottom, #f7f7f7 0%, #ffffff 100%);
24
- background: -o-linear-gradient(#ffffff, #f7f7f7);
25
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f7f7f7', GradientType=0);
26
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.15);
27
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.15);
28
- box-shadow: 0 1px 2px rgba(0,0,0,0.15);
29
- }
30
- .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current .siteorigin-widget-icon {
31
- -ms-box-sizing: border-box;
32
- -moz-box-sizing: border-box;
33
- -webkit-box-sizing: border-box;
34
- box-sizing: border-box;
35
- float: left;
36
- margin: 4px;
37
- padding: 3px;
38
- border: 1px solid #999;
39
- background: #f3f3f3;
40
- height: 27px;
41
- width: 32px;
42
- text-align: center;
43
- }
44
- .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current .siteorigin-widget-icon span {
45
- color: #333;
46
- font-size: 20px;
47
- }
48
- .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current label {
49
- display: block;
50
- float: left;
51
- color: #666;
52
- text-decoration: none;
53
- text-shadow: 0 1px 0 #FFF;
54
- font-weight: 600;
55
- font-size: 11px;
56
- padding: 9px 10px 7px 7px;
57
- outline: none;
58
- cursor: pointer;
59
- }
60
- .siteorigin-widget-form .siteorigin-widget-field-type-icon .so-icon-remove {
61
- cursor: pointer;
62
- display: inline-block;
63
- text-decoration: none;
64
- color: #AAA;
65
- font-size: 11px;
66
- line-height: 1em;
67
- padding: 11px 0 11px 6px;
68
- }
69
- .siteorigin-widget-form .siteorigin-widget-field-type-icon.siteorigin-widget-active .so-icon-remove {
70
- display: none;
71
- }
72
- .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector {
73
- display: none;
74
- padding: 10px;
75
- border: 1px solid #D8D8D8;
76
- background: #FFFFFF;
77
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.0275);
78
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.0275);
79
- box-shadow: 0 1px 2px rgba(0,0,0,0.0275);
80
- margin-top: 10px;
81
- }
82
- .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector select.siteorigin-widget-icon-family {
83
- font-size: 11px;
84
- display: inline-block;
85
- }
86
- .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-search {
87
- font-size: 11px;
88
- display: inline-block;
89
- width: 260px;
90
- padding: 6px 8px;
91
- }
92
- .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-icons {
93
- height: 160px;
94
- overflow-y: scroll;
95
- margin-top: 10px;
96
- }
97
- .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-icons .siteorigin-widget-icon-icons-icon {
98
- -ms-box-sizing: border-box;
99
- -moz-box-sizing: border-box;
100
- -webkit-box-sizing: border-box;
101
- box-sizing: border-box;
102
- float: left;
103
- width: 58px;
104
- height: 48px;
105
- margin: 3px;
106
- padding: 4px 0;
107
- border: 1px solid #D0D0D0;
108
- background: #FFFFFF;
109
- font-size: 40px;
110
- overflow: hidden;
111
- cursor: pointer;
112
- text-align: center;
113
- }
114
- .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-icons .siteorigin-widget-icon-icons-icon.siteorigin-widget-active {
115
- background: #f6fafc;
116
- border: 1px solid #43aaec;
117
- color: #078dce;
118
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.25);
119
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.25);
120
- box-shadow: 0 1px 2px rgba(0,0,0,0.25);
121
- }
1
+ .siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current{display:inline-block;background:#f9f9f9;background:-webkit-gradient(linear, left bottom, left top, color-stop(0, #f2f2f2), color-stop(1, #f9f9f9));background:-ms-linear-gradient(bottom, #f2f2f2, #f9f9f9);background:-moz-linear-gradient(center bottom, #f2f2f2 0, #f9f9f9 100%);background:-o-linear-gradient(#f9f9f9, #f2f2f2);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f2f2f2', GradientType=0);-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.1);box-shadow:0 1px 2px rgba(0,0,0,0.1);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;vertical-align:middle;border:1px solid #bbbbbb;height:35px}.siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current:hover{background:#ffffff;background:-webkit-gradient(linear, left bottom, left top, color-stop(0, #f7f7f7), color-stop(1, #ffffff));background:-ms-linear-gradient(bottom, #f7f7f7, #ffffff);background:-moz-linear-gradient(center bottom, #f7f7f7 0, #ffffff 100%);background:-o-linear-gradient(#ffffff, #f7f7f7);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f7f7f7', GradientType=0);-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.15);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.15);box-shadow:0 1px 2px rgba(0,0,0,0.15)}.siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current .siteorigin-widget-icon{-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;margin:4px;padding:3px;border:1px solid #999;background:#f3f3f3;height:27px;width:32px;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current .siteorigin-widget-icon span{color:#333;font-size:20px}.siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector-current label{display:block;float:left;color:#666;text-decoration:none;text-shadow:0 1px 0 #FFF;font-weight:600;font-size:11px;padding:9px 10px 7px 7px;outline:none;cursor:pointer}.siteorigin-widget-form .siteorigin-widget-field-type-icon .so-icon-remove{cursor:pointer;display:inline-block;text-decoration:none;color:#AAA;font-size:11px;line-height:1em;padding:11px 0 11px 6px}.siteorigin-widget-form .siteorigin-widget-field-type-icon.siteorigin-widget-active .so-icon-remove{display:none}.siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector{display:none;padding:10px;border:1px solid #D8D8D8;background:#FFFFFF;-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.0275);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.0275);box-shadow:0 1px 2px rgba(0,0,0,0.0275);margin-top:10px}.siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector select.siteorigin-widget-icon-family{font-size:11px;display:inline-block}.siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-search{font-size:11px;display:inline-block;width:260px;padding:6px 8px}.siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-icons{height:160px;overflow-y:scroll;margin-top:10px}.siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-icons .siteorigin-widget-icon-icons-icon{-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;width:58px;height:48px;margin:3px;padding:4px 0;border:1px solid #D0D0D0;background:#FFFFFF;font-size:40px;overflow:hidden;cursor:pointer;text-align:center}.siteorigin-widget-form .siteorigin-widget-field-type-icon .siteorigin-widget-icon-selector .siteorigin-widget-icon-icons .siteorigin-widget-icon-icons-icon.siteorigin-widget-active{background:#f6fafc;border:1px solid #43aaec;color:#078dce;-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.25);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.25);box-shadow:0 1px 2px rgba(0,0,0,0.25)}
base/inc/fields/css/measurement-field.css CHANGED
@@ -1,7 +1 @@
1
- .siteorigin-widget-form .siteorigin-widget-field input[type="text"].siteorigin-widget-input-measurement {
2
- float: left;
3
- max-width: 58px;
4
- margin: 1px;
5
- height: 28px;
6
- vertical-align: middle;
7
- }
1
+ .siteorigin-widget-form .siteorigin-widget-field input[type="text"].siteorigin-widget-input-measurement{float:left;max-width:58px;margin:1px;height:28px;vertical-align:middle}
base/inc/fields/css/media-field.css CHANGED
@@ -1,281 +1 @@
1
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper {
2
- position: relative;
3
- display: block;
4
- float: left;
5
- background: #f9f9f9;
6
- background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #f2f2f2), color-stop(1, #f9f9f9));
7
- background: -ms-linear-gradient(bottom, #f2f2f2, #f9f9f9);
8
- background: -moz-linear-gradient(center bottom, #f2f2f2 0%, #f9f9f9 100%);
9
- background: -o-linear-gradient(#f9f9f9, #f2f2f2);
10
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f2f2f2', GradientType=0);
11
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1);
12
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.1);
13
- box-shadow: 0 1px 2px rgba(0,0,0,0.1);
14
- -webkit-border-radius: 3px;
15
- -moz-border-radius: 3px;
16
- border-radius: 3px;
17
- border: 1px solid #bbbbbb;
18
- height: 32px;
19
- }
20
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper:hover {
21
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.15);
22
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.15);
23
- box-shadow: 0 1px 2px rgba(0,0,0,0.15);
24
- }
25
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current {
26
- -ms-box-sizing: border-box;
27
- -moz-box-sizing: border-box;
28
- -webkit-box-sizing: border-box;
29
- box-sizing: border-box;
30
- float: left;
31
- height: 32px;
32
- padding: 4px;
33
- border-right: 1px solid #bbb;
34
- position: relative;
35
- box-shadow: 1px 0 0 #FFF;
36
- }
37
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .title {
38
- display: none;
39
- position: absolute;
40
- bottom: 34px;
41
- left: 0;
42
- padding: 4px 12px;
43
- background: #333;
44
- color: #CCC;
45
- font-weight: bold;
46
- width: auto;
47
- white-space: nowrap;
48
- }
49
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .thumbnail-wrapper {
50
- border: 1px solid #999;
51
- line-height: 0;
52
- box-shadow: 0px 1px 1px #FFF;
53
- width: 22px;
54
- height: 22px;
55
- background: #cfcfcf;
56
- background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #cccccc), color-stop(1, #cfcfcf));
57
- background: -ms-linear-gradient(bottom, #cccccc, #cfcfcf);
58
- background: -moz-linear-gradient(center bottom, #cccccc 0%, #cfcfcf 100%);
59
- background: -o-linear-gradient(#cfcfcf, #cccccc);
60
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cfcfcf', endColorstr='#cccccc', GradientType=0);
61
- box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
62
- }
63
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .thumbnail-wrapper img {
64
- height: 100%;
65
- width: 100%;
66
- box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
67
- }
68
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .media-upload-button,
69
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button {
70
- display: block;
71
- float: left;
72
- color: #666;
73
- text-decoration: none;
74
- text-shadow: 0 1px 0 #FFF;
75
- font-weight: 600;
76
- font-size: 11px;
77
- padding: 7px 8px;
78
- outline: none;
79
- cursor: pointer;
80
- -webkit-border-radius: 2px;
81
- -moz-border-radius: 2px;
82
- border-radius: 2px;
83
- }
84
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .media-upload-button:hover,
85
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button:hover {
86
- background: rgba(255, 255, 255, 0.75);
87
- }
88
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button {
89
- border-left: 1px solid #bbbbbb;
90
- }
91
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper:hover .media-upload-button {
92
- color: #707070;
93
- }
94
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button {
95
- display: block;
96
- text-decoration: none;
97
- float: left;
98
- color: #AAA;
99
- font-size: 11px;
100
- line-height: 1em;
101
- padding: 11px 0 11px 6px;
102
- -webkit-transition: all 0.25s ease;
103
- -moz-transition: all 0.25s ease;
104
- -o-transition: all 0.25s ease;
105
- transition: all 0.25s ease;
106
- position: static;
107
- opacity: 1;
108
- }
109
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button.remove-hide {
110
- pointer-events: none;
111
- opacity: 0;
112
- }
113
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button:hover {
114
- color: #BC0B0B;
115
- }
116
- .siteorigin-widget-form .siteorigin-widget-field-type-media .media-fallback-external {
117
- float: left;
118
- padding: 4px 8px;
119
- margin-top: 2px !important;
120
- margin-left: 25px !important;
121
- max-width: 320px;
122
- }
123
- #so-widgets-image-search-frame {
124
- position: absolute;
125
- top: 0;
126
- left: 0;
127
- right: 0;
128
- bottom: 0;
129
- background-color: #fff;
130
- padding: 25px;
131
- overflow-y: scroll;
132
- overflow-x: hidden;
133
- }
134
- #so-widgets-image-search-frame #so-widgets-image-search-form {
135
- display: block;
136
- width: 100%;
137
- position: relative;
138
- padding-right: 368px;
139
- margin-bottom: 2px;
140
- box-sizing: border-box;
141
- }
142
- #so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-input {
143
- padding: 9px 12px;
144
- margin-bottom: 0px;
145
- box-shadow: none;
146
- }
147
- #so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-input:focus {
148
- box-shadow: none;
149
- }
150
- #so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-button {
151
- position: absolute;
152
- padding: 9px 14px;
153
- font-size: 1.2em;
154
- height: 100%;
155
- top: 0;
156
- right: 320px;
157
- border-width: 1px;
158
- box-shadow: none;
159
- }
160
- #so-widgets-image-search-frame #so-widgets-image-search-suggestions {
161
- position: absolute;
162
- right: 0;
163
- top: 0;
164
- width: 300px;
165
- height: 40px;
166
- text-align: right;
167
- display: none;
168
- font-size: 1.1em;
169
- overflow: hidden;
170
- }
171
- #so-widgets-image-search-frame #so-widgets-image-search-suggestions strong {
172
- display: block;
173
- }
174
- #so-widgets-image-search-frame #so-widgets-image-search-suggestions ul {
175
- display: block;
176
- list-style: none;
177
- margin: 0;
178
- padding: 0;
179
- }
180
- #so-widgets-image-search-frame #so-widgets-image-search-suggestions ul li {
181
- display: inline-block;
182
- margin-right: 4px;
183
- }
184
- #so-widgets-image-search-frame #so-widgets-image-search-powered {
185
- font-size: 0.85em;
186
- margin-bottom: 15px;
187
- color: #888;
188
- }
189
- #so-widgets-image-search-frame .so-widgets-image-results {
190
- zoom: 1;
191
- margin: 0 -8px;
192
- }
193
- #so-widgets-image-search-frame .so-widgets-image-results:before {
194
- content: '';
195
- display: block;
196
- }
197
- #so-widgets-image-search-frame .so-widgets-image-results:after {
198
- content: '';
199
- display: table;
200
- clear: both;
201
- }
202
- #so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result {
203
- -ms-box-sizing: border-box;
204
- -moz-box-sizing: border-box;
205
- -webkit-box-sizing: border-box;
206
- box-sizing: border-box;
207
- float: left;
208
- margin: 8px;
209
- }
210
- #so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result a {
211
- position: relative;
212
- background-repeat: no-repeat;
213
- background-size: cover;
214
- display: block;
215
- width: 260px;
216
- height: 180px;
217
- background-color: #e8e8e8;
218
- }
219
- #so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result a .so-widgets-result-sponsored {
220
- font-size: 0.8em;
221
- position: absolute;
222
- top: 5px;
223
- right: 5px;
224
- color: #fff;
225
- background: #59946B;
226
- line-height: 1em;
227
- padding: 5px;
228
- border-radius: 2px;
229
- }
230
- #so-widgets-image-search-frame .so-widgets-results-loading {
231
- display: none;
232
- font-size: 1.1em;
233
- padding: 15px 5px;
234
- background-color: #f7f7f7;
235
- text-align: center;
236
- margin-top: 20px;
237
- }
238
- #so-widgets-image-search-frame .so-widgets-results-loading .so-widgets-loading-icon {
239
- margin: 0 6px -3px 0;
240
- display: inline-block;
241
- width: 16px;
242
- height: 16px;
243
- background-image: url("images/wpspin_light.gif");
244
- background-position: center center;
245
- background-repeat: no-repeat;
246
- }
247
- @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
248
- #so-widgets-image-search-frame .so-widgets-results-loading .so-widgets-loading-icon {
249
- background-image: url(images/wpspin_light-2x.gif);
250
- background-size: 16px 16px;
251
- }
252
- }
253
- #so-widgets-image-search-frame .so-widgets-results-more {
254
- display: none;
255
- text-align: center;
256
- margin-top: 20px;
257
- padding-bottom: 20px;
258
- }
259
- #so-widgets-image-search-frame .so-widgets-preview-window {
260
- display: none;
261
- position: fixed;
262
- background-color: #ffffff;
263
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
264
- padding: 10px;
265
- pointer-events: none;
266
- }
267
- #so-widgets-image-search-frame .so-widgets-preview-window .so-widgets-preview-window-inside {
268
- background-size: cover;
269
- overflow: hidden;
270
- }
271
- #so-widgets-image-search-frame .so-widgets-preview-window img {
272
- width: 100%;
273
- height: auto;
274
- }
275
- #so-widgets-image-search-frame.so-widgets-importing .so-widgets-preview-window,
276
- #so-widgets-image-search-frame.so-widgets-importing #so-widgets-image-search-form,
277
- #so-widgets-image-search-frame.so-widgets-importing #so-widgets-image-search-powered,
278
- #so-widgets-image-search-frame.so-widgets-importing .so-widgets-image-results {
279
- visibility: hidden !important;
280
- display: none !important;
281
- }
1
+ .siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper{position:relative;display:block;float:left;background:#f9f9f9;background:-webkit-gradient(linear, left bottom, left top, color-stop(0, #f2f2f2), color-stop(1, #f9f9f9));background:-ms-linear-gradient(bottom, #f2f2f2, #f9f9f9);background:-moz-linear-gradient(center bottom, #f2f2f2 0, #f9f9f9 100%);background:-o-linear-gradient(#f9f9f9, #f2f2f2);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#f2f2f2', GradientType=0);-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.1);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.1);box-shadow:0 1px 2px rgba(0,0,0,0.1);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;border:1px solid #bbbbbb;height:32px}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper:hover{-webkit-box-shadow:0 1px 2px rgba(0,0,0,0.15);-moz-box-shadow:0 1px 2px rgba(0,0,0,0.15);box-shadow:0 1px 2px rgba(0,0,0,0.15)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current{-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;height:32px;padding:4px;border-right:1px solid #bbb;position:relative;box-shadow:1px 0 0 #FFF}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .title{display:none;position:absolute;bottom:34px;left:0;padding:4px 12px;background:#333;color:#CCC;font-weight:bold;width:auto;white-space:nowrap}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .thumbnail-wrapper{border:1px solid #999;line-height:0;box-shadow:0 1px 1px #FFF;width:22px;height:22px;background:#cfcfcf;background:-webkit-gradient(linear, left bottom, left top, color-stop(0, #cccccc), color-stop(1, #cfcfcf));background:-ms-linear-gradient(bottom, #cccccc, #cfcfcf);background:-moz-linear-gradient(center bottom, #cccccc 0, #cfcfcf 100%);background:-o-linear-gradient(#cfcfcf, #cccccc);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#cfcfcf', endColorstr='#cccccc', GradientType=0);box-shadow:inset 0 1px 3px rgba(0,0,0,0.2)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .current .thumbnail-wrapper img{height:100%;width:100%;box-shadow:inset 0 1px 3px rgba(0,0,0,0.2)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .media-upload-button,.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button{display:block;float:left;color:#666;text-decoration:none;text-shadow:0 1px 0 #FFF;font-weight:600;font-size:11px;padding:7px 8px;outline:none;cursor:pointer;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .media-upload-button:hover,.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button:hover{background:rgba(255,255,255,0.75)}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper .find-image-button{border-left:1px solid #bbbbbb}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-field-wrapper:hover .media-upload-button{color:#707070}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button{display:block;text-decoration:none;float:left;color:#AAA;font-size:11px;line-height:1em;padding:11px 0 11px 6px;-webkit-transition:all .25s ease;-moz-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;position:static;opacity:1}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button.remove-hide{pointer-events:none;opacity:0}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-remove-button:hover{color:#BC0B0B}.siteorigin-widget-form .siteorigin-widget-field-type-media .media-fallback-external{float:left;padding:4px 8px;margin-top:2px !important;margin-left:25px !important;max-width:320px}#so-widgets-image-search-frame{position:absolute;top:0;left:0;right:0;bottom:0;background-color:#fff;padding:25px;overflow-y:scroll;overflow-x:hidden}#so-widgets-image-search-frame #so-widgets-image-search-form{display:block;width:100%;position:relative;padding-right:368px;margin-bottom:2px;box-sizing:border-box}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-input{padding:9px 12px;margin-bottom:0;box-shadow:none}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-input:focus{box-shadow:none}#so-widgets-image-search-frame #so-widgets-image-search-form .so-widgets-search-button{position:absolute;padding:9px 14px;font-size:1.2em;height:100%;top:0;right:320px;border-width:1px;box-shadow:none}#so-widgets-image-search-frame #so-widgets-image-search-suggestions{position:absolute;right:0;top:0;width:300px;height:40px;text-align:right;display:none;font-size:1.1em;overflow:hidden}#so-widgets-image-search-frame #so-widgets-image-search-suggestions strong{display:block}#so-widgets-image-search-frame #so-widgets-image-search-suggestions ul{display:block;list-style:none;margin:0;padding:0}#so-widgets-image-search-frame #so-widgets-image-search-suggestions ul li{display:inline-block;margin-right:4px}#so-widgets-image-search-frame #so-widgets-image-search-powered{font-size:.85em;margin-bottom:15px;color:#888}#so-widgets-image-search-frame .so-widgets-image-results{zoom:1;margin:0 -8px}#so-widgets-image-search-frame .so-widgets-image-results:before{content:'';display:block}#so-widgets-image-search-frame .so-widgets-image-results:after{content:'';display:table;clear:both}#so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result{-ms-box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;float:left;margin:8px}#so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result a{position:relative;background-repeat:no-repeat;background-size:cover;display:block;width:260px;height:180px;background-color:#e8e8e8}#so-widgets-image-search-frame .so-widgets-image-results .so-widgets-result a .so-widgets-result-sponsored{font-size:.8em;position:absolute;top:5px;right:5px;color:#fff;background:#59946B;line-height:1em;padding:5px;border-radius:2px}#so-widgets-image-search-frame .so-widgets-results-loading{display:none;font-size:1.1em;padding:15px 5px;background-color:#f7f7f7;text-align:center;margin-top:20px}#so-widgets-image-search-frame .so-widgets-results-loading .so-widgets-loading-icon{margin:0 6px -3px 0;display:inline-block;width:16px;height:16px;background-image:url("images/wpspin_light.gif");background-position:center center;background-repeat:no-repeat}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){#so-widgets-image-search-frame .so-widgets-results-loading .so-widgets-loading-icon{background-image:url(images/wpspin_light-2x.gif);background-size:16px 16px}}#so-widgets-image-search-frame .so-widgets-results-more{display:none;text-align:center;margin-top:20px;padding-bottom:20px}#so-widgets-image-search-frame .so-widgets-preview-window{display:none;position:fixed;background-color:#ffffff;box-shadow:0 1px 3px rgba(0,0,0,0.35);padding:10px;pointer-events:none}#so-widgets-image-search-frame .so-widgets-preview-window .so-widgets-preview-window-inside{background-size:cover;overflow:hidden}#so-widgets-image-search-frame .so-widgets-preview-window img{width:100%;height:auto}#so-widgets-image-search-frame.so-widgets-importing .so-widgets-preview-window,#so-widgets-image-search-frame.so-widgets-importing #so-widgets-image-search-form,#so-widgets-image-search-frame.so-widgets-importing #so-widgets-image-search-powered,#so-widgets-image-search-frame.so-widgets-importing .so-widgets-image-results{visibility:hidden !important;display:none !important}
base/inc/fields/css/order-field.css CHANGED
@@ -1,12 +1 @@
1
- .siteorigin-widget-field-type-order .siteorigin-widget-order-items .siteorigin-widget-order-item {
2
- display: block;
3
- max-width: 200px;
4
- background-color: #f4f4f4;
5
- margin-bottom: 2px;
6
- padding: 4px 6px;
7
- cursor: move;
8
- border: 1px solid #e0e0e0;
9
- }
10
- .siteorigin-widget-field-type-order .siteorigin-widget-order-items .siteorigin-widget-order-item:last-child {
11
- margin-bottom: 0;
12
- }
1
+ .siteorigin-widget-field-type-order .siteorigin-widget-order-items .siteorigin-widget-order-item{display:block;max-width:200px;background-color:#f4f4f4;margin-bottom:2px;padding:4px 6px;cursor:move;border:1px solid #e0e0e0}.siteorigin-widget-field-type-order .siteorigin-widget-order-items .siteorigin-widget-order-item:last-child{margin-bottom:0}
base/inc/fields/css/tinymce-field.css CHANGED
@@ -1,3 +1 @@
1
- .wp-customizer .mce-floatpanel {
2
- z-index: 1000000 !important;
3
- }
1
+ .wp-customizer .mce-floatpanel{z-index:1000000 !important}.wp-customizer #mceu_44-body{z-index:1000000 !important}
base/inc/fields/image-size.class.php CHANGED
@@ -6,7 +6,7 @@
6
class SiteOrigin_Widget_Field_Image_Size extends SiteOrigin_Widget_Field_Select {
7
8
protected function get_default_options() {
9
- $image_size_configs = $this->get_image_sizes();
10
// Hardcoded 'full' and 'thumb' because they're not registered image sizes.
11
// 'full' will result in the original uploaded image size being used.
12
// 'thumb' is a small thumbnail image size defined by the current theme.
@@ -23,34 +23,4 @@ class SiteOrigin_Widget_Field_Image_Size extends SiteOrigin_Widget_Field_Select
23
);
24
}
25
26
- /**
27
- * Get size information for all currently-registered image sizes.
28
- * From codex example here: https://codex.wordpress.org/Function_Reference/get_intermediate_image_sizes
29
- *
30
- * @global $_wp_additional_image_sizes
31
- * @uses get_intermediate_image_sizes()
32
- * @return array $sizes Data for all currently-registered image sizes.
33
- */
34
- private function get_image_sizes() {
35
- global $_wp_additional_image_sizes;
36
-
37
- $sizes = array();
38
-
39
- foreach ( get_intermediate_image_sizes() as $_size ) {
40
- if ( in_array( $_size, array('thumbnail', 'medium', 'medium_large', 'large') ) ) {
41
- $sizes[ $_size ]['width'] = get_option( "{$_size}_size_w" );
42
- $sizes[ $_size ]['height'] = get_option( "{$_size}_size_h" );
43
- $sizes[ $_size ]['crop'] = (bool) get_option( "{$_size}_crop" );
44
- } elseif ( isset( $_wp_additional_image_sizes[ $_size ] ) ) {
45
- $sizes[ $_size ] = array(
46
- 'width' => $_wp_additional_image_sizes[ $_size ]['width'],
47
- 'height' => $_wp_additional_image_sizes[ $_size ]['height'],
48
- 'crop' => $_wp_additional_image_sizes[ $_size ]['crop'],
49
- );
50
- }
51
- }
52
-
53
- return $sizes;
54
- }
55
-
56
}
6
class SiteOrigin_Widget_Field_Image_Size extends SiteOrigin_Widget_Field_Select {
7
8
protected function get_default_options() {
9
+ $image_size_configs = siteorigin_widgets_get_image_sizes();
10
// Hardcoded 'full' and 'thumb' because they're not registered image sizes.
11
// 'full' will result in the original uploaded image size being used.
12
// 'thumb' is a small thumbnail image size defined by the current theme.
23
);
24
}
25
26
}
base/inc/fields/link.class.php CHANGED
@@ -15,19 +15,13 @@ class SiteOrigin_Widget_Field_Link extends SiteOrigin_Widget_Field_Text_Input_Ba
15
16
protected function render_before_field( $value, $instance ) {
17
parent::render_before_field( $value, $instance );
18
- if( is_string( $this->post_types ) ) {
19
- $this->post_types = array( $this->post_types );
20
- }
21
- else if ( ! is_array( $this->post_types ) ) {
22
- $this->post_types = array();
23
- }
24
-
25
?>
26
<a href="#" class="select-content-button button button-small"><?php esc_html_e('Select Content', 'so-widgets-bundle') ?></a>
27
<div class="existing-content-selector">
28
29
<input type="text" class="content-text-search"
30
- data-post-types="<?php echo esc_attr( implode( ',', $this->post_types ) ) ?>"
31
placeholder="<?php esc_attr_e( 'Search Content', 'so-widgets-bundle' ) ?>"/>
32
33
<ul class="posts"></ul>
15
16
protected function render_before_field( $value, $instance ) {
17
parent::render_before_field( $value, $instance );
18
+ $post_types = ! empty( $this->post_types ) && is_array( $this->post_types ) ? implode( ',', $this->post_types ) : '';
19
?>
20
<a href="#" class="select-content-button button button-small"><?php esc_html_e('Select Content', 'so-widgets-bundle') ?></a>
21
<div class="existing-content-selector">
22
23
<input type="text" class="content-text-search"
24
+ data-post-types="<?php echo esc_attr( $post_types ) ?>"
25
placeholder="<?php esc_attr_e( 'Search Content', 'so-widgets-bundle' ) ?>"/>
26
27
<ul class="posts"></ul>
base/inc/fields/measurement.class.php CHANGED
@@ -85,7 +85,8 @@ class SiteOrigin_Widget_Field_Measurement extends SiteOrigin_Widget_Field_Text_I
85
$unit = 'px';
86
}
87
88
- $value = ( $value === '' ) ? false : ( (float) $value ) . $unit;
89
return $value;
90
}
91
85
$unit = 'px';
86
}
87
88
+ // `strlen( $value ) == 0` should prevent 0, 0.0, or '0' from being seen as empty.