MetaSlider - Version 2.6.3

Version Description

[23/01/14] =

  • Improvement: Various admin screen styling improvements
  • Fix: Add 'ms-' prefix to Advanced settings toggle boxes and Preview button (avoid theme conflicts)
  • Fix: RTL fixes
  • Improvement: Filters added for complete slideshow output
  • Improvement: Filter added for slide image label
  • Improvement: 'No Conflict' mode refactored
  • Improvement: 'slider' parameter added to flexslider before/start/after etc callbacks
  • Change: Renamed in admin menu from "Meta Slider Lite" to "Meta Slider"
Download this release

Release Info

Developer matchalabs
Plugin Icon 128x128 MetaSlider
Version 2.6.3
Comparing to
See all releases

Code changes from version 2.5.1 to 2.6.3

assets/metaslider/admin.css CHANGED
@@ -1,496 +1,823 @@
1
- .metaslider #poststuff #post-body.columns-2 {
2
- margin-right: 320px;
3
}
4
.metaslider #post-body.columns-2 #postbox-container-1 {
5
- margin-right: -320px;
6
- width: 300px;
7
}
8
.resize_overlay {
9
- position: absolute;
10
- width: inherit;
11
- background: transparent url(resizing.gif) no-repeat;
12
- width: 16px;
13
- height: 11px;
14
- top: 3px;
15
- left: 3px;
16
- z-index: 9999;
17
}
18
.media-frame-menu .media-menu > a.disabled {
19
- display: block;
20
- position: relative;
21
- padding: 4px 20px;
22
- margin: 0;
23
- line-height: 18px;
24
- font-size: 14px;
25
- color: #cccccc;
26
- text-shadow: 0 1px 0 #fff;
27
- text-decoration: none;
28
}
29
.attachment-filters {
30
- display: none;
31
}
32
.media-frame-menu .separator {
33
- display: none;
34
}
35
.msTipsy .tipsy-arrow-s {
36
- border-top-color: #555;
37
}
38
.msTipsy .tipsy-arrow-w {
39
- border-right-color: #555;
40
}
41
.msTipsy .tipsy-arrow-n {
42
- border-bottom-color: #555;
43
}
44
.msTipsy .tipsy-inner {
45
- color: white;
46
- background-color: #555;
47
}
48
.msTipsy .tipsy-arrow-e {
49
- border-left-color: #555;
50
}
51
#cboxLoadedContent {
52
- overflow: hidden !important;
53
}
54
#cboxLoadedContent iframe {
55
- border: 0 none;
56
- display: block;
57
- height: 100%;
58
- overflow: hidden;
59
- width: 100%;
60
}
61
- .metaslider .left table tr.slide input.alt,
62
.metaslider .left table tr.slide input.url {
63
- width: 100%;
64
- margin: 0 0 8px 0;
65
- padding: 5px;
66
}
67
.bubble {
68
- position: relative;
69
- height: 20px;
70
- padding: 0px 5px;
71
- background: #b6e026;
72
- border: #b6e026 solid 2px;
73
- -webkit-border-radius: 5px;
74
- -moz-border-radius: 5px;
75
- border-radius: 5px;
76
- display: inline-block;
77
- text-align: center;
78
- vertical-align: middle;
79
- line-height: 20px;
80
- margin-left: 6px;
81
- color: black;
82
- text-shadow: none;
83
- bottom: 2px;
84
}
85
.bubble:after {
86
- content: "";
87
- position: absolute;
88
- top: 5px;
89
- left: -6px;
90
- border-style: solid;
91
- border-width: 5px 6px 5px 0;
92
- border-color: transparent #b6e026;
93
- display: block;
94
- width: 0;
95
- z-index: 1;
96
}
97
.bubble:before {
98
- content: "";
99
- position: absolute;
100
- top: 4px;
101
- left: -9px;
102
- border-style: solid;
103
- border-width: 6px 7px 6px 0;
104
- border-color: transparent #b6e026;
105
- display: block;
106
- width: 0;
107
- z-index: 0;
108
}
109
.metaslider .section {
110
- cursor: pointer;
111
}
112
.metaslider .hidden {
113
- display: none;
114
}
115
.metaslider .probutton,
116
.metaslider .probutton:hover {
117
- width: 36%;
118
- margin: 20px 32% 10px 32%;
119
- float: left;
120
- font-size: 1.4em;
121
- padding: 15px 0;
122
- border-color: #3793B7;
123
- background-color: #41add7;
124
- background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #41add7), color-stop(100%, #218cb7));
125
- background-image: -webkit-linear-gradient(top, #41add7, #218cb7);
126
- background-image: -moz-linear-gradient(top, #41add7, #218cb7);
127
- background-image: -o-linear-gradient(top, #41add7, #218cb7);
128
- background-image: linear-gradient(top, #41add7, #218cb7);
129
- -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.2);
130
- -moz-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.2);
131
- box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.2);
132
- border-radius: 4px;
133
- -webkit-box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
134
- box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
135
- color: #fff;
136
- font-family: 'PT Sans', helvetica, arial, sans-serif;
137
- text-shadow: 0 -1px 1px #1a5ad9;
138
- color: white;
139
- text-align: center;
140
- text-decoration: none;
141
- border-radius: 5px;
142
- line-height: 2em;
143
}
144
.metaslider .super {
145
- text-transform: uppercase;
146
- font-size: 0.7em;
147
- vertical-align: top;
148
- line-height: 2em;
149
}
150
.metaslider .subtext {
151
- float: left;
152
- width: 100%;
153
- text-align: center;
154
- font-style: italic;
155
}
156
.metaslider .logo {
157
- text-transform: uppercase;
158
}
159
.metaslider .tipsy-tooltip {
160
- cursor: help;
161
- }
162
- .metaslider .nav-tab-active input {
163
- padding: 0;
164
- margin: 0;
165
- border: 0;
166
- width: 100px;
167
- font-size: 13px;
168
- }
169
- .metaslider .button {
170
- font-family: sans-serif;
171
- }
172
- .metaslider .widefat th {
173
- padding: 6px 7px 5px;
174
- font-size: 15px;
175
- line-height: 1.4em;
176
- }
177
- .metaslider .nav-tab-wrapper :first-child {
178
- margin-left: 5px;
179
}
180
.metaslider .ui-sortable-helper {
181
- box-shadow: 3px 3px 5px #cccccc;
182
- }
183
- .metaslider .left {
184
- }
185
- @media (max-width: 900px) {
186
- .metaslider .left {
187
- width: 100%;
188
- float: none;
189
- }
190
}
191
.metaslider .left table {
192
- width: 100%;
193
}
194
.metaslider .left table thead input {
195
- margin-left: 5px;
196
- }
197
- .metaslider .left table thead .add-slide {
198
- padding-left: 0.4em;
199
- padding-right: 0.6em;
200
}
201
.metaslider .left table thead .add-slide .wp-media-buttons-icon {
202
- background: url('../../../../../wp-admin/images/media-button.png') no-repeat top left;
203
- display: inline-block;
204
- width: 16px;
205
- height: 16px;
206
- vertical-align: text-top;
207
- margin: 0 2px;
208
}
209
.metaslider .left table tr.slide {
210
- background: #f9f9f9;
211
- height: 167px;
212
}
213
- .metaslider .left table tr.slide label input {
214
- margin: 1px 0 10px 3px;
215
}
216
.metaslider .left table tr.slide textarea {
217
- width: 100%;
218
- height: 75px;
219
- margin: 0 0 5px 0;
220
}
221
.metaslider .left table tr.slide td.col-1 {
222
- cursor: move;
223
}
224
.metaslider .left table tr.slide td.col-1 .thumb {
225
- position: relative;
226
- height: 150px;
227
- width: 150px;
228
- background-size: auto 150px;
229
- background-position: center;
230
}
231
.metaslider .left table tr.slide td.col-1 .thumb .delete-slide {
232
- position: absolute;
233
- top: 0px;
234
- left: 0px;
235
- background: #EE2C2C;
236
- color: white;
237
- width: 16px;
238
- height: 16px;
239
- float: left;
240
- text-align: center;
241
- display: none;
242
}
243
.metaslider .left table tr.slide td.col-1 .thumb .slide-details {
244
- bottom: 0;
245
- left: 0;
246
- position: absolute;
247
- background: #333;
248
- color: white;
249
- padding: 0 5px;
250
- text-transform: uppercase;
251
- font-size: 9px;
252
- opacity: 0.6;
253
- word-wrap: break-word;
254
- max-width: 140px;
255
- padding: 0 5px;
256
}
257
.metaslider .left table tr.slide td.col-1:hover .delete-slide {
258
- display: block;
259
}
260
- .metaslider .left table tr.slide .new_window {
261
- position: relative;
262
- float: right;
263
- padding: 0px;
264
- color: #a9a9a9;
265
- line-height: 20px;
266
- top: -31px;
267
- right: 6px;
268
}
269
- .metaslider .left table tr.slide .new_window input {
270
- margin: 0 0 0 3px;
271
}
272
- .metaslider .left table tr.slide .new_window label {
273
- width: 120px;
274
- text-align: right;
275
- font-size: 11px;
276
}
277
.metaslider .left table td {
278
- border-top: 0;
279
- padding: 8px;
280
}
281
.metaslider .left table td.col-2 {
282
- padding: 8px 8px 8px 0;
283
}
284
- .metaslider .right {
285
}
286
287
.metaslider .right .highlight {
288
- background: #f1f1f1;
289
- border-top: 3px solid #f9f9f9;
290
- border-bottom: 3px solid #f9f9f9;
291
}
292
- .metaslider .right .settings .slider-lib-row {
293
- padding: 6px 3px;
294
- text-shadow: 1px 1px 1px grey;
295
}
296
- .metaslider .right .settings #save {
297
- margin-right: 0;
298
}
299
- .metaslider .right .settings input {
300
- margin-right: 5px;
301
}
302
- .metaslider .right .settings label {
303
- margin-right: 10px;
304
}
305
- .metaslider .right .settings .slider-lib {
306
- float: left;
307
- width: 23%;
308
- margin: 1%;
309
- list-style-type: none;
310
- text-align: center;
311
}
312
- .metaslider .right .settings .width,
313
- .metaslider .right .settings .height {
314
- padding-right: 0;
315
- margin-right: 0;
316
}
317
- .metaslider .right input[type="number"] {
318
- width: 50px;
319
}
320
.metaslider .right input[type="text"],
321
.metaslider .right select {
322
- width: 100px;
323
- }
324
- .metaslider .right .settings .slider-lib input {
325
- margin: 3px 0 0 0;
326
- }
327
- .metaslider .right .settings .slider-lib label {
328
- color: white;
329
- border-radius: 2px;
330
- float: left;
331
- width: 100%;
332
- padding: 5px 0px;
333
- vertical-align: bottom;
334
- }
335
- .metaslider .right .settings .slider-lib.nivo label {
336
- background: #b6e026;
337
- background: -moz-linear-gradient(top, #b6e026 0%, #abdc28 100%);
338
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #b6e026), color-stop(100%, #abdc28));
339
- background: -webkit-linear-gradient(top, #b6e026 0%, #abdc28 100%);
340
- background: -o-linear-gradient(top, #b6e026 0%, #abdc28 100%);
341
- background: -ms-linear-gradient(top, #b6e026 0%, #abdc28 100%);
342
- background: linear-gradient(to bottom, #b6e026 0%, #abdc28 100%);
343
- }
344
- .metaslider .right .settings .slider-lib.responsive label {
345
- background: #959595;
346
- background: -moz-linear-gradient(top, #959595 0%, #0d0d0d 46%, #010101 50%, #0a0a0a 53%, #4e4e4e 76%, #383838 87%, #1b1b1b 100%);
347
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #959595), color-stop(46%, #0d0d0d), color-stop(50%, #010101), color-stop(53%, #0a0a0a), color-stop(76%, #4e4e4e), color-stop(87%, #383838), color-stop(100%, #1b1b1b));
348
- background: -webkit-linear-gradient(top, #959595 0%, #0d0d0d 46%, #010101 50%, #0a0a0a 53%, #4e4e4e 76%, #383838 87%, #1b1b1b 100%);
349
- background: -o-linear-gradient(top, #959595 0%, #0d0d0d 46%, #010101 50%, #0a0a0a 53%, #4e4e4e 76%, #383838 87%, #1b1b1b 100%);
350
- background: -ms-linear-gradient(top, #959595 0%, #0d0d0d 46%, #010101 50%, #0a0a0a 53%, #4e4e4e 76%, #383838 87%, #1b1b1b 100%);
351
- background: linear-gradient(to bottom, #959595 0%, #0d0d0d 46%, #010101 50%, #0a0a0a 53%, #4e4e4e 76%, #383838 87%, #1b1b1b 100%);
352
- }
353
- .metaslider .right .settings .slider-lib.coin label {
354
- background: #ffd65e;
355
- background: -moz-linear-gradient(top, #ffd65e 0%, #febf04 100%);
356
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffd65e), color-stop(100%, #febf04));
357
- background: -webkit-linear-gradient(top, #ffd65e 0%, #febf04 100%);
358
- background: -o-linear-gradient(top, #ffd65e 0%, #febf04 100%);
359
- background: -ms-linear-gradient(top, #ffd65e 0%, #febf04 100%);
360
- background: linear-gradient(to bottom, #ffd65e 0%, #febf04 100%);
361
- }
362
- .metaslider .right .settings .slider-lib.flex label {
363
- background: #00b7ea;
364
- background: -moz-linear-gradient(top, #00b7ea 0%, #009ec3 100%);
365
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #00b7ea), color-stop(100%, #009ec3));
366
- background: -webkit-linear-gradient(top, #00b7ea 0%, #009ec3 100%);
367
- background: -o-linear-gradient(top, #00b7ea 0%, #009ec3 100%);
368
- background: -ms-linear-gradient(top, #00b7ea 0%, #009ec3 100%);
369
- background: linear-gradient(to bottom, #00b7ea 0%, #009ec3 100%);
370
- }
371
- @media (max-width: 1120px) {
372
- .metaslider .right .settings .configuration {
373
- display: none;
374
- }
375
}
376
- @media (max-width: 900px) {
377
- .metaslider .right .settings .configuration {
378
display: inline;
379
- }
380
}
381
- @media (max-width: 900px) {
382
- .metaslider .right .settings .button {
383
- width: auto;
384
- float: right;
385
- }
386
}
387
- .metaslider .right .shortcode {
388
- width: 100%;
389
- margin-top: 20px;
390
}
391
- .metaslider .right .shortcode td {
392
- border-bottom: 0;
393
- border-top: 0;
394
}
395
- .metaslider .right .shortcode input,
396
- .metaslider .right .shortcode input:active {
397
- font-family: monospace;
398
- width: 100%;
399
- background: transparent;
400
- border: 0;
401
- box-shadow: none;
402
}
403
.metaslider .right table td {
404
- border-top: 0;
405
- height: 28px;
406
- vertical-align: middle;
407
- padding: 0 6px;
408
- border-bottom: 0;
409
}
410
.metaslider table td,
411
- .metaslider table td input,
412
.metaslider table td select,
413
- .metaslider table td textarea {
414
- font-size: 12px;
415
- }
416
- .metaslider .right table td,
417
- .metaslider .right table td input,
418
- .metaslider .right table td select,
419
- .metaslider .right table td textarea {
420
- font-size: 11px;
421
- }
422
- .metaslider .right table td input[type='checkbox'] {
423
- margin-left: 2px;
424
- }
425
- .metaslider .right table .slider-lib-row {
426
- padding: 3px;
427
- }
428
- .metaslider .nav-tab,
429
- .metaslider h2.nav-tab-wrapper {
430
- font-size: 13px;
431
- }
432
- ul.info {
433
- width: 100%;
434
- margin-top: 20px;
435
- border-radius: 5px;
436
- }
437
- ul.info li {
438
- text-align: right;
439
- display: inline;
440
- width: 33%;
441
- float: left;
442
- }
443
- .delete-slider {
444
- margin: 0 5px 3px 0 !important;
445
- }
446
- #ms-pro-meta-link-wrap {
447
- float: right;
448
- height: 23px;
449
- padding: 0;
450
- margin: 0 0 0 6px;
451
- font-family: sans-serif;
452
- border-right: 1px solid #ccc;
453
- border-left: 1px solid #ccc;
454
- border-bottom: 1px solid #ccc;
455
- background: #e3e3e3;
456
- background-image: -webkit-gradient(linear,left bottom,left top,from(#dfdfdf),to(#f1f1f1));
457
- background-image: -webkit-linear-gradient(bottom,#dfdfdf,#f1f1f1);
458
- background-image: -moz-linear-gradient(bottom,#dfdfdf,#f1f1f1);
459
- background-image: -o-linear-gradient(bottom,#dfdfdf,#f1f1f1);
460
- background-image: linear-gradient(to top,#dfdfdf,#f1f1f1);
461
- -webkit-border-bottom-left-radius: 3px;
462
- -webkit-border-bottom-right-radius: 3px;
463
- border-bottom-left-radius: 3px;
464
- border-bottom-right-radius: 3px;
465
- position: relative;
466
- top: -1px;
467
}
468
469
.metaslider .warning {
470
- background-color: #ffebe8;
471
- border: 1px solid #c00;
472
- margin-bottom: 5px;
473
- border-radius: 3px;
474
- padding: 5px 10px;
475
- }
476
-
477
- #ms-pro-meta-link-wrap a {
478
- text-decoration: none;
479
- z-index: 1;
480
- padding: 1px 6px 0 6px;
481
- height: 22px;
482
- line-height: 22px;
483
- font-size: 12px;
484
- display: block;
485
- text-shadow: rgba(255,255,255,0.7) 0 1px 0;
486
- background: none;
487
}
488
input:-ms-input-placeholder {
489
- color:LightGray;
490
}
491
textarea:-ms-input-placeholder {
492
- color:LightGray;
493
}
494
.attachment-display-settings {
495
- display: none;
496
}
1
+ .metaslider.wrap div.updated,
2
+ .metaslider.wrap div.error {
3
+ clear: both
4
}
5
+
6
.metaslider #post-body.columns-2 #postbox-container-1 {
7
+ margin-right: -320px;
8
+ width: 300px;
9
+ }
10
+
11
+ .metaslider #poststuff #post-body.columns-2 {
12
+ margin-right: 320px;
13
+ }
14
+
15
+ .rtl .metaslider #post-body.columns-2 #postbox-container-1 {
16
+ margin-left: -320px;
17
+ margin-right: 0;
18
}
19
+
20
+ .rtl .metaslider #poststuff #post-body.columns-2 {
21
+ margin-left: 320px;
22
+ margin-right: 0;
23
+ }
24
+
25
+
26
+ .metaslider .left input,
27
+ .metaslider .left textarea {
28
+ border: 1px solid #ccc;
29
+ border-radius: 0;
30
+ resize: none;
31
+ box-shadow: inherit;
32
+ }
33
+
34
.resize_overlay {
35
+ position: absolute;
36
+ width: inherit;
37
+ background: transparent url(resizing.gif) no-repeat;
38
+ width: 16px;
39
+ height: 11px;
40
+ top: 3px;
41
+ left: 3px;
42
+ z-index: 9999;
43
}
44
+
45
.media-frame-menu .media-menu > a.disabled {
46
+ display: block;
47
+ position: relative;
48
+ padding: 4px 20px;
49
+ margin: 0;
50
+ line-height: 18px;
51
+ font-size: 14px;
52
+ color: #cccccc;
53
+ text-shadow: 0 1px 0 #fff;
54
+ text-decoration: none;
55
}
56
+
57
.attachment-filters {
58
+ display: none
59
}
60
+
61
.media-frame-menu .separator {
62
+ display: none
63
}
64
+
65
.msTipsy .tipsy-arrow-s {
66
+ border-top-color: #555
67
}
68
+
69
.msTipsy .tipsy-arrow-w {
70
+ border-right-color: #555
71
}
72
+
73
.msTipsy .tipsy-arrow-n {
74
+ border-bottom-color: #555
75
}
76
+
77
.msTipsy .tipsy-inner {
78
+ color: white;
79
+ background-color: #555;
80
}
81
+
82
.msTipsy .tipsy-arrow-e {
83
+ border-left-color: #555
84
}
85
+
86
#cboxLoadedContent {
87
+ overflow: hidden !important
88
}
89
+
90
#cboxLoadedContent iframe {
91
+ border: 0 none;
92
+ display: block;
93
+ height: 100%;
94
+ width: 100%;
95
}
96
+
97
+ .metaslider .right input[type=submit] {
98
+ margin: 0 3px
99
+ }
100
+
101
+ .metaslider #poststuff .right h3.configuration {
102
+ padding: 7px 7px 7px 12px;
103
+ line-height: 27px;
104
+ }
105
+
106
+ .metaslider #poststuff .left h3 {
107
+ padding: 7px 5px;
108
+ line-height: 27px;
109
+ }
110
+
111
+ .metaslider #poststuff .left th {
112
+ padding: 0 7px;
113
+ }
114
+
115
.metaslider .left table tr.slide input.url {
116
+ width: 100%;
117
+ margin: 0;
118
+ padding: 4px;
119
}
120
+
121
.bubble {
122
+ position: relative;
123
+ height: 20px;
124
+ padding: 0px 5px;
125
+ background: #b6e026;
126
+ border: #b6e026 solid 2px;
127
+ -webkit-border-radius: 5px;
128
+ -moz-border-radius: 5px;
129
+ border-radius: 5px;
130
+ display: inline-block;
131
+ text-align: center;
132
+ vertical-align: middle;
133
+ line-height: 20px;
134
+ margin-left: 6px;
135
+ color: black;
136
+ text-shadow: none;
137
+ bottom: 2px;
138
}
139
+
140
.bubble:after {
141
+ content: "";
142
+ position: absolute;
143
+ top: 5px;
144
+ left: -6px;
145
+ border-style: solid;
146
+ border-width: 5px 6px 5px 0;
147
+ border-color: transparent #b6e026;
148
+ display: block;
149
+ width: 0;
150
+ z-index: 1;
151
}
152
+
153
.bubble:before {
154
+ content: "";
155
+ position: absolute;
156
+ top: 4px;
157
+ left: -9px;
158
+ border-style: solid;
159
+ border-width: 6px 7px 6px 0;
160
+ border-color: transparent #b6e026;
161
+ display: block;
162
+ width: 0;
163
+ z-index: 0;
164
}
165
+
166
.metaslider .section {
167
+ cursor: pointer
168
}
169
+
170
.metaslider .hidden {
171
+ display: none
172
}
173
+
174
.metaslider .probutton,
175
.metaslider .probutton:hover {
176
+ width: 36%;
177
+ margin: 20px 32% 10px 32%;
178
+ float: left;
179
+ font-size: 1.4em;
180
+ padding: 15px 0;
181
+ border-color: #3793B7;
182
+ background-color: #41add7;
183
+ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #41add7), color-stop(100%, #218cb7));
184
+ background-image: -webkit-linear-gradient(top, #41add7, #218cb7);
185
+ background-image: -moz-linear-gradient(top, #41add7, #218cb7);
186
+ background-image: -o-linear-gradient(top, #41add7, #218cb7);
187
+ background-image: linear-gradient(top, #41add7, #218cb7);
188
+ -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.2);
189
+ -moz-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.2);
190
+ box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.2);
191
+ border-radius: 4px;
192
+ -webkit-box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
193
+ box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
194
+ color: #fff;
195
+ font-family: 'PT Sans', helvetica, arial, sans-serif;
196
+ text-shadow: 0 -1px 1px #1a5ad9;
197
+ color: white;
198
+ text-align: center;
199
+ text-decoration: none;
200
+ border-radius: 5px;
201
+ line-height: 2em;
202
}
203
+
204
.metaslider .super {
205
+ text-transform: uppercase;
206
+ font-size: 0.7em;
207
+ vertical-align: top;
208
+ line-height: 2em;
209
}
210
+
211
.metaslider .subtext {
212
+ float: left;
213
+ width: 100%;
214
+ text-align: center;
215
+ font-style: italic;
216
}
217
+
218
.metaslider .logo {
219
+ text-transform: uppercase
220
}
221
+
222
.metaslider .tipsy-tooltip {
223
+ cursor: default
224
}
225
+
226
.metaslider .ui-sortable-helper {
227
+ box-shadow: 3px 3px 5px #cccccc
228
}
229
+
230
.metaslider .left table {
231
+ width: 100%
232
}
233
+
234
.metaslider .left table thead input {
235
+ margin-left: 5px
236
}
237
+
238
.metaslider .left table thead .add-slide .wp-media-buttons-icon {
239
+ background: url('../../../../../wp-admin/images/media-button.png') no-repeat top left;
240
+ display: inline-block;
241
+ width: 16px;
242
+ height: 16px;
243
+ vertical-align: text-top;
244
+ margin: 0 2px;
245
}
246
+
247
.metaslider .left table tr.slide {
248
+ height: 167px
249
+ }
250
+
251
+ .metaslider .left table tr.slide:nth-child(even) {
252
+ background: white
253
}
254
+
255
+ .metaslider .left table tr.slide:nth-child(odd) {
256
+ background: #f9f9f9
257
}
258
+
259
.metaslider .left table tr.slide textarea {
260
+ width: 100%;
261
+ height: 60px;
262
+ margin: 0 0 5px 0;
263
+ padding: 2px 5px;
264
}
265
+
266
.metaslider .left table tr.slide td.col-1 {
267
+ cursor: move
268
}
269
+
270
.metaslider .left table tr.slide td.col-1 .thumb {
271
+ position: relative;
272
+ height: 150px;
273
+ width: 150px;
274
+ background-size: auto 150px;
275
+ background-position: center;
276
+ border: 1px solid #ddd;
277
}
278
+
279
.metaslider .left table tr.slide td.col-1 .thumb .delete-slide {
280
+ position: absolute;
281
+ top: 0px;
282
+ left: 0px;
283
+ background: #EE2C2C;
284
+ color: white;
285
+ width: 16px;
286
+ height: 16px;
287
+ float: left;
288
+ text-align: center;
289
+ display: none;
290
}
291
+
292
.metaslider .left table tr.slide td.col-1 .thumb .slide-details {
293
+ bottom: 0;
294
+ left: 0;
295
+ position: absolute;
296
+ background: #333;
297
+ color: white;
298
+ padding: 5px;
299
+ font-size: 12px;
300
+ opacity: 0.8;
301
+ word-wrap: break-word;
302
+ width: 140px;
303
+ padding: 3px 5px;
304
}
305
+
306
.metaslider .left table tr.slide td.col-1:hover .delete-slide {
307
+ display: block
308
}
309
+
310
+ .branch-3-5 .metaslider .left table tr.slide .tabs-content .new_window,
311
+ .branch-3-6 .metaslider .left table tr.slide .tabs-content .new_window,
312
+ .branch-3-7 .metaslider .left table tr.slide .tabs-content .new_window {
313
+ right: 6px;
314
+ bottom: 20px;
315
}
316
+
317
+ .branch-3-5 .metaslider .left table tr.slide .tabs-content .new_window label,
318
+ .branch-3-6 .metaslider .left table tr.slide .tabs-content .new_window label,
319
+ .branch-3-7 .metaslider .left table tr.slide .tabs-content .new_window label {
320
+ line-height: 18px;
321
+ vertical-align: top;
322
}
323
+
324
+ .branch-3-5 .metaslider .left table tr.slide .tabs-content .new_window input,
325
+ .branch-3-6 .metaslider .left table tr.slide .tabs-content .new_window input,
326
+ .branch-3-7 .metaslider .left table tr.slide .tabs-content .new_window input {
327
+ margin: -2px 0 0 4px;
328
+ }
329
+
330
+ .metaslider .left table tr.slide .tabs-content .new_window {
331
+ position: relative;
332
+ float: right;
333
+ padding: 0px;
334
+ color: #a9a9a9;
335
+ line-height: 20px;
336
+ bottom: 22px;
337
+ right: 0;
338
+ }
339
+
340
+ .rtl .metaslider .left table tr.slide .tabs-content .new_window {
341
+ position: relative;
342
+ float: left;
343
+ }
344
+
345
+
346
+ .metaslider .left table tr.slide .tabs-content .new_window input {
347
+ margin-left: 3px
348
+ }
349
+
350
+ .rtl .metaslider .left table tr.slide .tabs-content .new_window input {
351
+ margin-right: 3px
352
+ }
353
+
354
+ .metaslider .left table tr.slide .tabs-content .new_window label {
355
+ width: 120px;
356
+ text-align: right;
357
+ font-size: 11px;
358
+ }
359
+
360
+ .metaslider tr.radio {
361
+ display: table-row;
362
}
363
.metaslider .left table td {
364
+ border-top: 0;
365
+ border-bottom: 1px solid #e1e1e1;
366
+ padding: 12px;
367
}
368
+
369
.metaslider .left table td.col-2 {
370
+ padding: 12px 12px 12px 0;
371
}
372
+
373
+ .rtl .metaslider .left table td.col-2 {
374
+ padding: 12px 0 12px 12px;
375
}
376
377
.metaslider .right .highlight {
378
+ background: transparent;
379
+ border: 0;
380
+ font-weight: bold;
381
+ }
382
+
383
+ /* *
384
+ * Change background color for label next to checked radio button
385
+ * to make it look like highlighted button
386
+ ================================================== */
387
+
388
+ .metaslider .right .slider-lib-row input[type=radio]:checked + label {
389
+ background-image: none;
390
+ background-color: #d0d0d0;
391
+ }
392
+
393
+ .metaslider .right .slider-lib-row input[type=radio] {
394
+ display: none
395
}
396
+
397
+ .ie8 .metaslider .right .slider-lib-row input[type=radio] {
398
+ display: inline
399
}
400
+
401
+ .metaslider .right .slider-lib-row input[type=radio] + label {
402
+ display: inline-block;
403
+ margin: -2px;
404
+ padding: 4px 0;
405
+ margin-bottom: 0;
406
+ font-size: 11px;
407
+ line-height: 20px;
408
+ color: #333;
409
+ text-align: center;
410
+ vertical-align: middle;
411
+ cursor: pointer;
412
+ background-color: #f5f5f5;
413
+ background-image: -moz-linear-gradient(top,#fff,#e6e6e6);
414
+ background-image: -webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));
415
+ background-image: -webkit-linear-gradient(top,#fff,#e6e6e6);
416
+ background-image: -o-linear-gradient(top,#fff,#e6e6e6);
417
+ background-image: linear-gradient(to bottom,#fff,#e6e6e6);
418
+ background-repeat: repeat-x;
419
+ border: 1px solid #ddd;
420
+ border-color: #e6e6e6 #e6e6e6 #bfbfbf;
421
+ border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
422
+ border-bottom-color: #b3b3b3;
423
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);
424
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
425
+ -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);
426
+ -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);
427
+ box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);
428
+ width: 24%;
429
}
430
+
431
+ input[type=radio]:checked + label {
432
+ background-image: none;
433
+ outline: 0;
434
+ -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);
435
+ -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);
436
+ box-shadow: inset 0 2px 4px rgba(0,0,0,0.15),0 1px 2px rgba(0,0,0,0.05);
437
+ background-color: #e0e0e0;
438
}
439
+
440
+ .metaslider .right #nivo + label:hover,
441
+ .metaslider .right #nivo:checked + label {
442
+ color: white;
443
+ background: #b6e026;
444
+ background: -moz-linear-gradient(top, #b6e026 0%, #abdc28 100%);
445
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #b6e026), color-stop(100%, #abdc28));
446
+ background: -webkit-linear-gradient(top, #b6e026 0%, #abdc28 100%);
447
+ background: -o-linear-gradient(top, #b6e026 0%, #abdc28 100%);
448
+ background: -ms-linear-gradient(top, #b6e026 0%, #abdc28 100%);
449
+ background: linear-gradient(to bottom, #b6e026 0%, #abdc28 100%);
450
}
451
+
452
+ .metaslider .right #responsive + label:hover,
453
+ .metaslider .right #responsive:checked + label,
454
+ .metaslider .right #responsive:checked {
455
+ color: white;
456
+ background: #ff5db1; /* Old browsers */
457
+ background: -moz-linear-gradient(top, #ff5db1 0%, #ef017c 100%); /* FF3.6+ */
458
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff5db1), color-stop(100%,#ef017c)); /* Chrome,Safari4+ */
459
+ background: -webkit-linear-gradient(top, #ff5db1 0%,#ef017c 100%); /* Chrome10+,Safari5.1+ */
460
+ background: -o-linear-gradient(top, #ff5db1 0%,#ef017c 100%); /* Opera 11.10+ */
461
+ background: -ms-linear-gradient(top, #ff5db1 0%,#ef017c 100%); /* IE10+ */
462
+ background: linear-gradient(to bottom, #ff5db1 0%,#ef017c 100%); /* W3C */
463
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff5db1', endColorstr='#ef017c',GradientType=0 ); /* IE6-9 */
464
}
465
+
466
+ .metaslider .right #coin + label:hover,
467
+ .metaslider .right #coin:checked + label {
468
+ color: white;
469
+ background: #ffd65e;
470
+ background: -moz-linear-gradient(top, #ffd65e 0%, #febf04 100%);
471
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffd65e), color-stop(100%, #febf04));
472
+ background: -webkit-linear-gradient(top, #ffd65e 0%, #febf04 100%);
473
+ background: -o-linear-gradient(top, #ffd65e 0%, #febf04 100%);
474
+ background: -ms-linear-gradient(top, #ffd65e 0%, #febf04 100%);
475
+ background: linear-gradient(to bottom, #ffd65e 0%, #febf04 100%);
476
+ }
477
+
478
+ .metaslider .right #flex + label:hover,
479
+ .metaslider .right #flex:checked + label {
480
+ color: white;
481
+ background: #00b7ea;
482
+ background: -moz-linear-gradient(top, #00b7ea 0%, #009ec3 100%);
483
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #00b7ea), color-stop(100%, #009ec3));
484
+ background: -webkit-linear-gradient(top, #00b7ea 0%, #009ec3 100%);
485
+ background: -o-linear-gradient(top, #00b7ea 0%, #009ec3 100%);
486
+ background: -ms-linear-gradient(top, #00b7ea 0%, #009ec3 100%);
487
+ background: linear-gradient(to bottom, #00b7ea 0%, #009ec3 100%);
488
+ }
489
+
490
+ .metaslider .right .slider-lib-row {
491
+ padding: 17px 0 9px 0;
492
+ text-align: center;
493
+ }
494
+
495
+ .metaslider .right #save {
496
+ margin-right: 0
497
}
498
+ .rtl .metaslider .right #save {
499
+ margin-right: 4px;
500
+ margin-left: 0;
501
}
502
+
503
+ .metaslider .right .number input:focus {
504
+ outline: none;
505
+ outline-style: none;
506
+ box-shadow: none;
507
+ border-color: #ddd;
508
+ }
509
+
510
+ .metaslider .right .number .after,
511
+ .metaslider .right .number input {
512
+ display: inline-block;
513
+ float: left;
514
+ height: 26px;
515
+ margin: 0;
516
+ }
517
+
518
+ .rtl .metaslider .right .number .after,
519
+ .rtl .metaslider .right .number input {
520
+ float: right;
521
+ }
522
+ .rtl .metaslider .right .number .after {
523
+ border-left: 1px solid #ddd;
524
+ border-right: 0;
525
+ }
526
+ .rtl .metaslider .right .number input {
527
+ border-right: 1px solid #ddd;
528
+ border-left: 0;
529
+ }
530
+
531
+ .metaslider .right .radio ul {
532
+ margin: 0;
533
+ }
534
+ .metaslider .right .radio li {
535
+ margin: 0 0 2px 0;
536
+ clear: both;
537
+ }
538
+ .metaslider .right .radio input[type="radio"] {
539
+ margin-top: 0;
540
+ }
541
+ .rtl .metaslider .right .radio input[type="radio"] {
542
+ float: right;
543
+ }
544
+
545
+ .metaslider .right .number input {
546
+ width: 70px;
547
+ margin-right: 0;
548
+ box-shadow: none;
549
+ border-right: 0;
550
+ }
551
+
552
+ .metaslider .right .number .after {
553
+ border: 1px solid #ddd;
554
+ border-left: 0;
555
+ box-shadow: none;
556
+ font-size: 11px;
557
+ height: 24px;
558
+ line-height: 24px;
559
+ padding: 0 3px;
560
+ background: white;
561
+ }
562
+
563
.metaslider .right input[type="text"],
564
.metaslider .right select {
565
+ width: 130px
566
+ }
567
+
568
+ .metaslider .right #poststuff .closed .inside {
569
+ display: none
570
+ }
571
+
572
+ .metaslider .right #poststuff .postbox .inside {
573
+ padding: 0 12px;
574
+ margin: 0;
575
+ }
576
+
577
+ .metaslider .shortcode .inside {
578
+ padding: 15px 10px
579
}
580
+
581
+ .metaslider .social .inside {
582
+ padding: 10px
583
+ }
584
+
585
+ .metaslider .social .inside ul.info {
586
+ width: 100%;
587
+ margin: 0;
588
+ height: 20px;
589
+ }
590
+
591
+ .metaslider .social .inside ul.info li {
592
display: inline;
593
+ float: left;
594
+ text-align: right;
595
}
596
+
597
+ .metaslider .shortcode input[type=text],
598
+ .metaslider .shortcode input[type=text]:active,
599
+ .metaslider .shortcode textarea,
600
+ .metaslider .shortcode textarea:active {
601
+ font-family: monospace;
602
+ font-size: 11px;
603
+ width: 100%;
604
+ background: transparent;
605
+ border: 0;
606
+ box-shadow: none;
607
+ }
608
+
609
+ .metaslider .shortcode textarea {
610
+ height: 65px
611
+ }
612
+
613
+ .metaslider .shortcode ul.tabs {
614
+ margin: 0
615
}
616
+
617
+ .metaslider .shortcode ul.tabs li.selected {
618
+ background: #fdfdfd;
619
+ border-bottom: 1px solid #fdfdfd;
620
+ }
621
+
622
+ .metaslider .shortcode .tabs-content {
623
+ clear: both;
624
+ background: #fdfdfd;
625
+ border-left: 1px solid #ccc;
626
+ border-right: 1px solid #ccc;
627
+ border-bottom: 1px solid #ccc;
628
+ padding: 10px;
629
}
630
+
631
+ .metaslider .right .postbox table {
632
+ border: 0
633
}
634
+
635
+ .metaslider .right .postbox h3 {
636
+ cursor: inherit
637
+ }
638
+
639
+ .metaslider .right .postbox.ms-toggle h3 {
640
+ cursor: pointer
641
}
642
+
643
+ .metaslider .right table {
644
+ margin: 0 0 5px 0
645
+ }
646
+
647
.metaslider .right table td {
648
+ vertical-align: middle;
649
+ padding: 8px 4px;
650
+ border: 0;
651
+ height: 21px;
652
}
653
+
654
.metaslider table td,
655
+ .metaslider table td input[type=text],
656
+ .metaslider table td input[type=number],
657
.metaslider table td select,
658
+ .metaslider table td textarea,
659
+ .metaslider table td label {
660
+ font-size: 12px
661
+ }
662
+
663
+ .metaslider select {
664
+ height: auto
665
+ }
666
+
667
+ .metaslider .nav-tab-wrapper {
668
+ padding: 0;
669
+ width: 100%;
670
+ float: left;
671
+ margin: 20px 0;
672
+ }
673
+
674
+ .metaslider .nav-tab {
675
+ background: white;
676
+ padding: 9px 13px;
677
+ font-weight: normal;
678
+ margin: 0 4px 0 0;
679
+ }
680
+
681
+ .metaslider .nav-tab:hover {
682
+ background: transparent
683
+ }
684
+ .branch-3-5 .metaslider .nav-tab-active,
685
+ .branch-3-6 .metaslider .nav-tab-active,
686
+ .branch-3-7 .metaslider .nav-tab-active {
687
+ border-bottom: 1px solid white;
688
+ }
689
+
690
+ .metaslider .nav-tab-active {
691
+ background: transparent;
692
+ padding: 9px 13px 8px;
693
+ border-bottom: 1px solid #f1f1f1;
694
+ margin-top: auto;
695
+ position: relative;
696
+ top: 1px;
697
+ }
698
+
699
+ .metaslider .nav-tab-active input {
700
+ padding: 0 13px 0 0;
701
+ margin: 0;
702
+ border: 0;
703
+ width: 100px;
704
+ font-size: 13px;
705
+ background: transparent url(edit.png) no-repeat center right;
706
+ box-shadow: none;
707
}
708
709
.metaslider .warning {
710
+ background-color: #ffebe8;
711
+ border: 1px solid #c00;
712
+ margin-bottom: 5px;
713
+ border-radius: 3px;
714
+ padding: 5px 10px;
715
}
716
+
717
input:-ms-input-placeholder {
718
+ color: LightGray
719
}
720
+
721
textarea:-ms-input-placeholder {
722
+ color: LightGray
723
}
724
+
725
.attachment-display-settings {
726
+ display: none
727
+ }
728
+
729
+ .metaslider .tabs-content,
730
+ .metaslider .tabs-content ul,
731
+ .metaslider .tabs-content li {
732
+ font-size: 12px
733
+ }
734
+
735
+ .metaslider .tabs-content input,
736
+ .metaslider .tabs-content select {
737
+ font-size: 11px
738
+ }
739
+
740
+ .metaslider .slide.image .tabs-content {
741
+ overflow: hidden
742
+ }
743
+
744
+ .metaslider .left .tabs-content {
745
+ height: 118px;
746
+ overflow-x: scroll;
747
+ clear: both;
748
+ }
749
+
750
+ .metaslider .tabs-content .row {
751
+ float: left;
752
+ clear: both;
753
+ width: 100%;
754
+ vertical-align: middle;
755
+ margin-bottom: 5px;
756
+ }
757
+
758
+ .metaslider .tabs-content .row label {
759
+ color: #999;
760
+ display: inline-block;
761
+ text-indent: 3px;
762
+ }
763
+
764
+ .metaslider .tabs-content .row input {
765
+ margin-right: 5px;
766
+ margin-bottom: 0px;
767
+ margin-left: 0px;
768
+ }
769
+
770
+ .metaslider .tabs-content .row input[type=text] {
771
+ width: 100%
772
+ }
773
+
774
+ .metaslider .tabs-content ul {
775
+ margin: 0
776
+ }
777
+
778
+ .metaslider .tabs-content li {
779
+ margin: 0 0 3px 0
780
+ }
781
+
782
+ .metaslider .tabs-content select {
783
+ font-size: 11px
784
+ }
785
+
786
+ .metaslider .tabs-content p {
787
+ font-style: italic;
788
+ color: #999999;
789
+ }
790
+
791
+ .metaslider ul.tabs {
792
+ float: left;
793
+ width: 100%;
794
+ margin: 0 0 10px 0;
795
+ border-bottom: 1px solid #ccc;
796
+ }
797
+
798
+ .metaslider ul.tabs li {
799
+ margin: 0 0 0 5px;
800
+ cursor: pointer;
801
+ padding: 3px 5px;
802
+ display: inline-block;
803
+ line-height: 14px;
804
+ color: #ccc;
805
+ position: relative;
806
+ top: 1px;
807
+ border: 1px solid transparent;
808
+ }
809
+
810
+ .metaslider ul.tabs li:hover {
811
+ color: #333
812
+ }
813
+
814
+ .metaslider ul.tabs li.selected {
815
+ font-weight: bold;
816
+ color: #666;
817
+ border: 1px solid #ccc;
818
+ border-bottom: 1px solid white;
819
+ }
820
+
821
+ .metaslider .left table tr.slide:nth-child(odd) ul.tabs li.selected {
822
+ border-bottom: 1px solid #f9f9f9
823
}
assets/metaslider/admin.js CHANGED
@@ -1,11 +1,13 @@
1
jQuery(document).ready(function($) {
2
3
- jQuery("#ms-pro-meta-link-wrap").appendTo('#screen-meta-links').show();
4
5
// Enable the correct options for this slider type
6
var switchType = function(slider) {
7
jQuery('.metaslider .option:not(.' + slider + ')').attr('disabled', 'disabled').parents('tr').hide();
8
jQuery('.metaslider .option.' + slider).removeAttr('disabled').parents('tr').show();
9
10
// make sure that the selected option is available for this slider type
11
if (jQuery('.effect option:selected').attr('disabled') === 'disabled') {
@@ -16,17 +18,13 @@ jQuery(document).ready(function($) {
16
if (jQuery('.theme option:selected').attr('disabled') === 'disabled') {
17
jQuery('.theme option:enabled:first').attr('selected', 'selected');
18
}
19
-
20
- // slides - set red background on incompatible slides
21
- jQuery('.metaslider .slide:not(.' + slider + ')').css('background', '#FFD9D9');
22
- jQuery('.metaslider .slide.' + slider).css('background', '');
23
};
24
25
// enable the correct options on page load
26
switchType(jQuery('.metaslider .select-slider:checked').attr('rel'));
27
28
// handle slide libary switching
29
- jQuery('.metaslider .select-slider').click(function() {
30
switchType(jQuery(this).attr('rel'));
31
});
32
@@ -79,7 +77,7 @@ jQuery(document).ready(function($) {
79
_wpnonce: metaslider.resize_nonce
80
};
81
82
- jQuery.ajax({
83
type: "POST",
84
data : data,
85
cache: false,
@@ -88,37 +86,32 @@ jQuery(document).ready(function($) {
88
if (console && console.log) {
89
console.log(data);
90
}
91
-
92
resizing.remove();
93
- }
94
});
95
}
96
});
97
});
98
99
// show the confirm dialogue
100
- jQuery(".confirm").live('click', function() {
101
return confirm(metaslider.confirm);
102
});
103
104
- $('.useWithCaution').change(function(){
105
if(!this.checked) {
106
- return alert(metaslider.useWithCaution);
107
}
108
});
109
110
- // show the confirm dialogue
111
- jQuery(".toggle").live('click', function(e) {
112
- e.preventDefault();
113
- jQuery(this).next('.message').toggle();
114
- });
115
-
116
// helptext tooltips
117
- jQuery(".metaslider .tipsy-tooltip").tipsy({className: 'msTipsy', live: true, delayIn: 500, html: true, fade: true, gravity: 'e'});
118
- jQuery(".metaslider .tipsy-tooltip-top").tipsy({live: true, delayIn: 500, html: true, fade: true, gravity: 'se'});
119
120
// Select input field contents when clicked
121
- jQuery(".metaslider .shortcode input").click(function() {
122
this.select();
123
});
124
@@ -132,35 +125,41 @@ jQuery(document).ready(function($) {
132
jQuery(".metaslider input[type=submit]").removeAttr('disabled');
133
}
134
135
- setTimeout(checkPendingRequest, 1000);
136
}
137
138
checkPendingRequest();
139
140
// return lightbox width
141
var getLightboxWidth = function() {
142
- var width = parseInt(jQuery('input.width').val(), 10) + 'px';
143
144
- if (jQuery('#carouselMode').is(':checked')) {
145
width = '75%';
146
}
147
-
148
return width;
149
};
150
151
// return lightbox height
152
var getLightboxHeight = function() {
153
var height = parseInt(jQuery('input.height').val(), 10);
154
155
- if (!isNaN(height)) {
156
- height = height + 80 + 'px'
157
- } else {
158
height = '70%';
159
}
160
161
return height;
162
};
163
164
// IE10 treats placeholder text as the actual value of a textarea
165
// http://stackoverflow.com/questions/13764607/html5-placeholder-attribute-on-textarea-via-jquery-in-ie10
166
var fixIE10PlaceholderText = function() {
@@ -171,8 +170,20 @@ jQuery(document).ready(function($) {
171
});
172
}
173
174
// AJAX save & preview
175
- jQuery(".metaslider form").find("input[type=submit]").click(function(e) {
176
e.preventDefault();
177
178
// update slide order
@@ -189,7 +200,7 @@ jQuery(document).ready(function($) {
189
jQuery(".metaslider .spinner").show();
190
jQuery(".metaslider input[type=submit]").attr('disabled', 'disabled');
191
192
- jQuery.ajax({
193
type: "POST",
194
data : data,
195
cache: false,
@@ -209,7 +220,7 @@ jQuery(document).ready(function($) {
209
210
fixIE10PlaceholderText();
211
212
- if (button.id === 'preview') {
213
jQuery.colorbox({
214
iframe: true,
215
href: metaslider.iframeurl + "?slider_id=" + jQuery(button).data("slider_id"),
@@ -220,7 +231,7 @@ jQuery(document).ready(function($) {
220
fastIframe: false
221
});
222
}
223
- }
224
});
225
});
226
});
1
jQuery(document).ready(function($) {
2
3
+ jQuery("#screen-options-link-wrap").appendTo('#screen-meta-links').show();
4
5
// Enable the correct options for this slider type
6
var switchType = function(slider) {
7
jQuery('.metaslider .option:not(.' + slider + ')').attr('disabled', 'disabled').parents('tr').hide();
8
jQuery('.metaslider .option.' + slider).removeAttr('disabled').parents('tr').show();
9
+ jQuery('.metaslider .radio:not(.' + slider + ')').attr('disabled', 'disabled');
10
+ jQuery('.metaslider .radio.' + slider).removeAttr('disabled');
11
12
// make sure that the selected option is available for this slider type
13
if (jQuery('.effect option:selected').attr('disabled') === 'disabled') {
18
if (jQuery('.theme option:selected').attr('disabled') === 'disabled') {
19
jQuery('.theme option:enabled:first').attr('selected', 'selected');
20
}
21
};
22
23
// enable the correct options on page load
24
switchType(jQuery('.metaslider .select-slider:checked').attr('rel'));
25
26
// handle slide libary switching
27
+ jQuery('.metaslider .select-slider').on('click', function() {
28
switchType(jQuery(this).attr('rel'));
29
});
30
77
_wpnonce: metaslider.resize_nonce
78
};
79
80
+ jQuery.ajax({
81
type: "POST",
82
data : data,
83
cache: false,
86
if (console && console.log) {
87
console.log(data);
88
}
89
+
90
resizing.remove();
91
+ }
92
});
93
}
94
});
95
});
96
97
// show the confirm dialogue
98
+ jQuery(".confirm").on('click', function() {
99
return confirm(metaslider.confirm);
100
});
101
102
+ $('.useWithCaution').on('change', function(){
103
if(!this.checked) {
104
+ alert(metaslider.useWithCaution);
105
+ return true;
106
}
107
});
108
109
// helptext tooltips
110
+ jQuery(".metaslider .tipsy-tooltip").tipsy({className: 'msTipsy', live: true, delayIn: 500, html: true, gravity: 'e'});
111
+ jQuery(".metaslider .tipsy-tooltip-top").tipsy({live: true, delayIn: 500, html: true, gravity: 'se'});
112
113
// Select input field contents when clicked
114
+ jQuery(".metaslider .shortcode input, .metaslider .shortcode textarea").on('click', function() {
115
this.select();
116
});
117
125
jQuery(".metaslider input[type=submit]").removeAttr('disabled');
126
}
127
128
+ setTimeout(checkPendingRequest, 1000);
129
}
130
131
checkPendingRequest();
132
133
// return lightbox width
134
var getLightboxWidth = function() {
135
+ var width = parseInt(jQuery('input.width').val(), 10);
136
137
+ if (jQuery('.carouselMode').is(':checked')) {
138
width = '75%';
139
}
140
+
141
return width;
142
};
143
144
// return lightbox height
145
var getLightboxHeight = function() {
146
var height = parseInt(jQuery('input.height').val(), 10);
147
+ var thumb_height = parseInt(jQuery('input.thumb_height').val(), 10);
148
149
+ if (isNaN(height)) {
150
height = '70%';
151
+ } else {
152
+ height = height + 50;
153
+
154
+ if (!isNaN(thumb_height)) {
155
+ height = height + thumb_height;
156
+ }
157
}
158
159
return height;
160
};
161
162
+
163
// IE10 treats placeholder text as the actual value of a textarea
164
// http://stackoverflow.com/questions/13764607/html5-placeholder-attribute-on-textarea-via-jquery-in-ie10
165
var fixIE10PlaceholderText = function() {
170
});
171
}
172
173
+ jQuery(".metaslider .ms-toggle .hndle, .metaslider .ms-toggle .handlediv").on('click', function() {
174
+ $(this).parent().toggleClass('closed');
175
+ });
176
+
177
+ jQuery('.metaslider').on('click', 'ul.tabs li', function() {
178
+ var tab = $(this);
179
+ tab.parent().parent().children('.tabs-content').children('div.tab').hide();
180
+ tab.parent().parent().children('.tabs-content').children('div.'+tab.attr('rel')).show();
181
+ tab.siblings().removeClass('selected');
182
+ tab.addClass('selected');
183
+ });
184
+
185
// AJAX save & preview
186
+ jQuery(".metaslider form").find("input[type=submit]").on('click', function(e) {
187
e.preventDefault();
188
189
// update slide order
200
jQuery(".metaslider .spinner").show();
201
jQuery(".metaslider input[type=submit]").attr('disabled', 'disabled');
202
203
+ jQuery.ajax({
204
type: "POST",
205
data : data,
206
cache: false,
220
221
fixIE10PlaceholderText();
222
223
+ if (button.id === 'ms-preview') {
224
jQuery.colorbox({
225
iframe: true,
226
href: metaslider.iframeurl + "?slider_id=" + jQuery(button).data("slider_id"),
231
fastIframe: false
232
});
233
}
234
+ }
235
});
236
});
237
});
assets/metaslider/admin.less DELETED
@@ -1,527 +0,0 @@
1
- .attachment-filters {
2
- display: none;
3
- }
4
- .media-frame-menu {
5
- .separator {
6
- display: none;
7
- }
8
- }
9
- .msTipsy {
10
- .tipsy-arrow-s {
11
- border-top-color: #555;
12
- }
13
- .tipsy-arrow-w {
14
- border-right-color: #555;
15
- }
16
- .tipsy-arrow-n {
17
- border-bottom-color: #555;
18
- }
19
- .tipsy-inner {
20
- color: white;
21
- background-color: #555;
22
- }
23
- .tipsy-arrow-e {
24
- border-left-color: #555;
25
- }
26
- }
27
- #cboxLoadedContent {
28
- overflow: hidden !important;
29
- iframe {
30
- border: 0 none;
31
- display: block;
32
- height: 100%;
33
- overflow: hidden;
34
- width: 100%;
35
- }
36
- }
37
- .metaslider .left table tr.slide input.alt,
38
- .metaslider .left table tr.slide input.url {
39
- width: 100%;
40
- margin: 0 0 8px 0;
41
- }
42
- #goProWrap {
43
- border-right: 1px solid #ccc;
44
- border-left: 1px solid #ccc;
45
- border-bottom: 1px solid #ccc;
46
- -webkit-border-bottom-left-radius: 3px;
47
- -webkit-border-bottom-right-radius: 3px;
48
- border-bottom-left-radius: 3px;
49
- border-bottom-right-radius: 3px;
50
- background: #e3e3e3;
51
- background-image: -webkit-gradient(linear,left bottom,left top,from(#dfdfdf),to(#f1f1f1));
52
- background-image: -webkit-linear-gradient(bottom,#dfdfdf,#f1f1f1);
53
- background-image: -moz-linear-gradient(bottom,#dfdfdf,#f1f1f1);
54
- background-image: -o-linear-gradient(bottom,#dfdfdf,#f1f1f1);
55
- background-image: linear-gradient(to top,#dfdfdf,#f1f1f1);
56
- float: right;
57
-
58
- span {
59
- z-index: 1;
60
- padding: 0 6px;
61
- height: 22px;
62
- line-height: 22px;
63
- font-size: 12px;
64
- display: block;
65
- text-shadow: rgba(255,255,255,0.7) 0 1px 0;
66
- }
67
-
68
- a {
69
- text-decoration: none;
70
- }
71
- }
72
-
73
- .bubble
74
- {
75
- position: relative;
76
- height: 20px;
77
- padding: 0px 5px;
78
- background: #FFFFFF;
79
- border: #FF0000 solid 2px;
80
- -webkit-border-radius: 5px;
81
- -moz-border-radius: 5px;
82
- border-radius: 5px;
83
- display: inline-block;
84
- text-align: center;
85
- vertical-align: middle;
86
- line-height: 20px;
87
- margin-left: 10px;
88
- }
89
-
90
- .bubble:after
91
- {
92
- content: "";
93
- position: absolute;
94
- top: 5px;
95
- left: -6px;
96
- border-style: solid;
97
- border-width: 5px 6px 5px 0;
98
- border-color: transparent #FFFFFF;
99
- display: block;
100
- width: 0;
101
- z-index: 1;
102
- }
103
-
104
- .bubble:before
105
- {
106
- content: "";
107
- position: absolute;
108
- top: 4px;
109
- left: -9px;
110
- border-style: solid;
111
- border-width: 6px 7px 6px 0;
112
- border-color: transparent #FF0000;
113
- display: block;
114
- width: 0;
115
- z-index: 0;
116
- }
117
-
118
-
119
- .metaslider {
120
-
121
-
122
- .warning {
123
- background-color: #ffebe8;
124
- border: 1px solid #c00;
125
- margin-bottom: 5px;
126
- border-radius: 3px;
127
- padding: 5px 10px;
128
- }
129
- .section {
130
- cursor: pointer;
131
- }
132
-
133
- .hidden {
134
- display: none;
135
- }
136
-
137
- .probutton, .probutton:hover {
138
- width: 36%;
139
- margin: 20px 32% 10px 32%;
140
- float: left;
141
- font-size: 1.4em;
142
- padding: 15px 0;
143
- border-color: #3793B7;
144
- background-color: #41add7;
145
- background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #41add7), color-stop(100%, #218CB7));
146
- background-image: -webkit-linear-gradient(top, #41add7, #218CB7);
147
- background-image: -moz-linear-gradient(top, #41add7, #218CB7);
148
- background-image: -o-linear-gradient(top, #41add7, #218CB7);
149
- background-image: linear-gradient(top, #41add7, #218CB7);
150
- -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.2);
151
- -moz-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.2);
152
- box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.2);
153
- border-radius: 4px;
154
- -webkit-box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
155
- box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
156
- color: #fff;
157
- font-family: 'PT Sans', helvetica, arial, sans-serif;
158
- text-shadow: 0 -1px 1px #1a5ad9;
159
- color: white;
160
- text-align: center;
161
- text-decoration: none;
162
- border-radius: 5px;
163
- line-height: 2em;
164
- }
165
- .super {
166
- text-transform: uppercase;
167
- font-size: 0.7em;
168
- vertical-align: top;
169
- line-height: 2em;
170
- }
171
- .subtext {
172
- float: left;
173
- width: 100%;
174
- text-align: center;
175
- font-style: italic;
176
- }
177
- .logo {
178
- text-transform: uppercase;
179
- }
180
- .tipsy-tooltip {
181
- font-size: 0.9em;
182
- }
183
- .nav-tab-active {
184
- input {
185
- padding: 0;
186
- margin: 0;
187
- border: 0;
188
- width: 100px;
189
- font-size: 13px;
190
- }
191
- }
192
- .button {
193
- font-family: sans-serif;
194
- }
195
- .widefat {
196
- th {
197
- padding: 6px 7px 5px;
198
- font-size: 15px;
199
- line-height: 1.4em;
200
- }
201
- }
202
- .nav-tab-wrapper {
203
- :first-child {
204
- margin-left: 5px;
205
- }
206
- }
207
-
208
- .ui-sortable-helper {
209
- box-shadow: 3px 3px 5px #cccccc;
210
- }
211
-
212
-
213
- .left {
214
- width: 68%;
215
- margin-top: 20px;
216
- float: left;
217
- clear: none;
218
-
219
-
220
- @media (max-width: 900px) {
221
- width: 100%;
222
- float: none;
223
- }
224
-
225
- table {
226
- width: 100%;
227
- thead {
228
- input {
229
- margin-left: 5px;
230
- }
231
-
232
- .add-slide {
233
- padding-left: 0.4em;
234
- padding-right: 0.6em;
235
- .wp-media-buttons-icon {
236
- background: url('../../../../../wp-admin/images/media-button.png') no-repeat top left;
237
- display: inline-block;
238
- width: 16px;
239
- height: 16px;
240
- vertical-align: text-top;
241
- margin: 0 2px;
242
- }
243
- }
244
- }
245
-
246
- tr.slide {
247
- background: #f9f9f9;
248
- height: 167px;
249
-
250
- label {
251
- input {
252
- margin: 1px 0 10px 3px;
253
- }
254
- }
255
-
256
- textarea {
257
- width: 100%;
258
- height: 75px;
259
- margin: 0 0 5px 0;
260
- }
261
-
262
- td.col-1 {
263
- cursor: move;
264
- .thumb {
265
- position: relative;
266
- height: 150px;
267
- width: 150px;
268
- background-size: auto 150px;
269
- background-position: center;
270
-
271
- .delete-slide {
272
- position: absolute;
273
- top: 0px;
274
- left: 0px;
275
- background: #EE2C2C;
276
- color: white;
277
- width: 16px;
278
- height: 16px;
279
- float: left;
280
- text-align: center;
281
- display: none;
282
- }
283
-
284
- .slide-details {
285
- bottom: 0;
286
- left: 0;
287
- position: absolute;
288
- background: #333;
289
- color: white;
290
- padding: 0 5px;
291
- text-transform: uppercase;
292
- font-size: 9px;
293
- opacity: 0.6;
294
- }
295
- }
296
-
297
- }
298
-
299
- td.col-1:hover {
300
- .delete-slide {
301
- display: block;
302
- }
303
- }
304
-
305
- .new_window {
306
- position: relative;
307
- float: right;
308
- font-size: 10px;
309
- padding: 0px 3px;
310
- color: #a9a9a9;
311
- label {
312
- position: absolute;
313
- width: 120px;
314
- right: 6px;
315
- text-align: right;
316
- top: -28px;
317
- }
318
- }
319
- }
320
-
321
- td {
322
- border-top: 0;
323
- padding: 8px;
324
- }
325
- td.col-2 {
326
- padding: 8px 8px 8px 0;
327
- }
328
- }
329
- }
330
-
331
- .right {
332
- width: 30%;
333
- float: right;
334
- margin-top: 20px;
335
- clear: none;
336
-
337
-
338
- @media (max-width: 900px) {
339
- width: 100%;
340
- float: none;
341
- }
342
-
343
-
344
- .highlight {
345
- background: #f1f1f1;
346
- border-top: 3px solid #f9f9f9;
347
- border-bottom: 3px solid #f9f9f9;
348
- }
349
-
350
- .settings {
351
- .slider-lib-row {
352
- padding: 6px 3px;
353
- text-shadow: 1px 1px 1px grey;
354
- }
355
- #save {
356
- margin-right: 0;
357
- }
358
- input {
359
- margin-right: 5px;
360
- }
361
- label {
362
- margin-right: 10px;
363
- }
364
- .slider-lib {
365
- float: left;
366
- width: 23%;
367
- margin: 1%;
368
- list-style-type: none;
369
- text-align: center;
370
-
371
- input {
372
- margin: 3px 0 0 0;
373
- }
374
-
375
- @media (max-width: 1120px) {
376
- width: 48%;
377
- margin: 1%;
378
- }
379
-
380
- @media (max-width: 900px) {
381
- width: 23%;
382
- margin: 1%;
383
- }
384
-
385
- label {
386
- color: white;
387
- border-radius: 2px;
388
- float: left;
389
- width: 100%;
390
- padding: 5px 0px;
391
- vertical-align: bottom;
392
- }
393
- }
394
-
395
- .slider-lib.nivo {
396
- label {
397
- background: #b6e026;
398
- background: -moz-linear-gradient(top, #b6e026 0%, #abdc28 100%);
399
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b6e026), color-stop(100%,#abdc28));
400
- background: -webkit-linear-gradient(top, #b6e026 0%,#abdc28 100%);
401
- background: -o-linear-gradient(top, #b6e026 0%,#abdc28 100%);
402
- background: -ms-linear-gradient(top, #b6e026 0%,#abdc28 100%);
403
- background: linear-gradient(to bottom, #b6e026 0%,#abdc28 100%);
404
- }
405
- }
406
- .slider-lib.responsive {
407
- label {
408
- background: #959595;
409
- background: -moz-linear-gradient(top, #959595 0%, #0d0d0d 46%, #010101 50%, #0a0a0a 53%, #4e4e4e 76%, #383838 87%, #1b1b1b 100%);
410
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#959595), color-stop(46%,#0d0d0d), color-stop(50%,#010101), color-stop(53%,#0a0a0a), color-stop(76%,#4e4e4e), color-stop(87%,#383838), color-stop(100%,#1b1b1b));
411
- background: -webkit-linear-gradient(top, #959595 0%,#0d0d0d 46%,#010101 50%,#0a0a0a 53%,#4e4e4e 76%,#383838 87%,#1b1b1b 100%);
412
- background: -o-linear-gradient(top, #959595 0%,#0d0d0d 46%,#010101 50%,#0a0a0a 53%,#4e4e4e 76%,#383838 87%,#1b1b1b 100%);
413
- background: -ms-linear-gradient(top, #959595 0%,#0d0d0d 46%,#010101 50%,#0a0a0a 53%,#4e4e4e 76%,#383838 87%,#1b1b1b 100%);
414
- background: linear-gradient(to bottom, #959595 0%,#0d0d0d 46%,#010101 50%,#0a0a0a 53%,#4e4e4e 76%,#383838 87%,#1b1b1b 100%);
415
- }
416
- }
417
- .slider-lib.coin {
418
- label {
419
- background: #ffd65e;
420
- background: -moz-linear-gradient(top, #ffd65e 0%, #febf04 100%);
421
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffd65e), color-stop(100%,#febf04));
422
- background: -webkit-linear-gradient(top, #ffd65e 0%,#febf04 100%);
423
- background: -o-linear-gradient(top, #ffd65e 0%,#febf04 100%);
424
- background: -ms-linear-gradient(top, #ffd65e 0%,#febf04 100%);
425
- background: linear-gradient(to bottom, #ffd65e 0%,#febf04 100%);
426
- }
427
- }
428
- .slider-lib.flex {
429
- label {
430
- background: #00b7ea;
431
- background: -moz-linear-gradient(top, #00b7ea 0%, #009ec3 100%);
432
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00b7ea), color-stop(100%,#009ec3));
433
- background: -webkit-linear-gradient(top, #00b7ea 0%,#009ec3 100%);
434
- background: -o-linear-gradient(top, #00b7ea 0%,#009ec3 100%);
435
- background: -ms-linear-gradient(top, #00b7ea 0%,#009ec3 100%);
436
- background: linear-gradient(to bottom, #00b7ea 0%,#009ec3 100%);
437
- }
438
- }
439
-
440
-
441
- .configuration {
442
- @media (max-width: 1120px) {
443
- display: none;
444
- }
445
- @media (max-width: 900px) {
446
- display: inline;
447
- }
448
- }
449
-
450
- .button {
451
- @media (max-width: 900px) {
452
- width: auto;
453
- float: right;
454
- }
455
- }
456
- }
457
-
458
-
459
- .shortcode {
460
- width: 100%;
461
- margin-top: 20px;
462
- td {
463
- border-bottom: 0;
464
- border-top: 0;
465
- font-size: 0.9em;
466
- }
467
- input, input:active {
468
- font-family: monospace;
469
- width: 100%;
470
- font-size: 0.9em;
471
- background: transparent;
472
- border: 0;
473
- box-shadow: none;
474
- }
475
- }
476
-
477
- table {
478
- td {
479
- border-bottom: 0;
480
- border-top: 0;
481
- height: 28px;
482
- font-size: 0.9em;
483
- vertical-align: middle;
484
- padding: 0 6px;
485
- border-bottom: 0;
486
-
487
- input[type='checkbox'] {
488
- margin-left: 2px;
489
- }
490
- }
491
-
492
- .slider-lib-row {
493
- padding: 3px;
494
- }
495
- }
496
- }
497
- }
498
- .metaslider .nav-tab,.metaslider h2.nav-tab-wrapper {
499
- font-size: 13px;
500
- }
501
-
502
- ul.info {
503
- width: 100%;
504
- margin-top: 20px;
505
- border-radius: 5px;
506
-
507
-
508
- li {
509
- text-align: right;
510
- display: inline;
511
- width: 33%;
512
- float: left;
513
- }
514
- }
515
-
516
- .delete-slider {
517
- margin: 0 5px 3px 0 !important;
518
- }
519
- input:-ms-input-placeholder {
520
- color:LightGray;
521
- }
522
- textarea:-ms-input-placeholder {
523
- color:LightGray;
524
- }
525
- .attachment-display-settings {
526
- display: none;
527
- }
assets/metaslider/edit.png ADDED
Binary file
assets/metaslider/public.css CHANGED
@@ -1,6 +1,6 @@
1
/**
2
* The files in /assets are unmodified.
3
- * This file contains
4
* - resets, in an attempt to ensure sliders display properly in all themes
5
* - modifications to the default sliders CSS
6
*/
@@ -25,9 +25,18 @@
25
padding: 0;
26
}
27
28
.metaslider li:before,
29
.metaslider li:after {
30
content: "" !important;
31
}
32
33
.metaslider .caption-wrap {
@@ -48,13 +57,18 @@
48
}
49
50
/** quick resets **/
51
.art-article .metaslider img,
52
- #widgets .metaslider ul,
53
#widgets .metaslider ol,
54
#content .metaslider ul,
55
#content .metaslider ol,
56
.entry .metaslider ul,
57
.entry .metaslider ol,
58
.metaslider .flexslider ul,
59
.metaslider .flexslider .slides li,
60
.metaslider .flexslider .slides ul,
@@ -77,4 +91,8 @@
77
list-style: none;
78
padding: 0;
79
line-height: normal;
80
}
1
/**
2
* The files in /assets are unmodified.
3
+ * This file contains
4
* - resets, in an attempt to ensure sliders display properly in all themes
5
* - modifications to the default sliders CSS
6
*/
25
padding: 0;
26
}
27
28
+ .metaslider .theme-default .nivoSlider {
29
+ -webkit-box-shadow: 0 0 0;
30
+ -moz-box-shadow: 0 0 0;
31
+ box-shadow: 0 0 0;
32
+ }
33
+
34
.metaslider li:before,
35
.metaslider li:after {
36
content: "" !important;
37
+ display: block !important;
38
+ bottom: auto !important;
39
+ margin: 0 !important;
40
}
41
42
.metaslider .caption-wrap {
57
}
58
59
/** quick resets **/
60
+ .article .metaslider ol,
61
.art-article .metaslider img,
62
+ #widgets .metaslider ul,
63
#widgets .metaslider ol,
64
#content .metaslider ul,
65
#content .metaslider ol,
66
+ #content .metaslider li,
67
.entry .metaslider ul,
68
.entry .metaslider ol,
69
+ .entry-content .metaslider ul,
70
+ .entry-content .metaslider ol,
71
+ .entry-content .metaslider img
72
.metaslider .flexslider ul,
73
.metaslider .flexslider .slides li,
74
.metaslider .flexslider .slides ul,
91
list-style: none;
92
padding: 0;
93
line-height: normal;
94
+ }
95
+ .metaslider .slides img {
96
+ width: 100%;
97
+ display: block;
98
}
assets/sliders/flexslider/flexslider.css CHANGED
@@ -55,7 +55,7 @@ html[xmlns] .slides {display: block;}
55
.flexslider:hover .flex-next {opacity: 0.8; right: 5px;}
56
.flexslider:hover .flex-prev {opacity: 0.8; left: 5px;}
57
.flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover {opacity: 1;}
58
- .flex-direction-nav .flex-disabled {opacity: .3!important; filter:alpha(opacity=30); cursor: default;}
59
60
/* Control Nav */
61
.flex-control-nav {width: 100%; position: absolute; bottom: -40px; text-align: center;}
@@ -75,6 +75,8 @@ html[xmlns] .slides {display: block;}
75
.flex-direction-nav .flex-next {opacity: 1; right: 0;}
76
}
77
78
/** Custom Meta Slider CSS **/
79
.flexslider {
80
background: none;
@@ -122,4 +124,17 @@ html[xmlns] .slides {display: block;}
122
123
.flex-control-nav {
124
margin: auto;
125
}
55
.flexslider:hover .flex-next {opacity: 0.8; right: 5px;}
56
.flexslider:hover .flex-prev {opacity: 0.8; left: 5px;}
57
.flexslider:hover .flex-next:hover, .flexslider:hover .flex-prev:hover {opacity: 1;}
58
+ .flex-direction-nav .flex-disabled {cursor: default; pointer-events: none;}
59
60
/* Control Nav */
61
.flex-control-nav {width: 100%; position: absolute; bottom: -40px; text-align: center;}
75
.flex-direction-nav .flex-next {opacity: 1; right: 0;}
76
}
77
78
+
79
+
80
/** Custom Meta Slider CSS **/
81
.flexslider {
82
background: none;
124
125
.flex-control-nav {
126
margin: auto;
127
+ }
128
+
129
+ .metaslider .flexslider.filmstrip {
130
+ margin-top: 10px;
131
+ }
132
+ .metaslider .flexslider.filmstrip .slides li {
133
+ cursor: pointer;
134
+ opacity: 0.5;
135
+ }
136
+ .metaslider .flexslider.filmstrip .slides li.flex-active-slide,
137
+ .metaslider .flexslider.filmstrip .slides li:hover,
138
+ .metaslider .flexslider.filmstrip .slides li:focus {
139
+ opacity: 1.0 !important;
140
}
assets/sliders/nivoslider/jquery.nivo.slider.pack.js CHANGED
@@ -5,6 +5,8 @@
5
* Copyright 2012, Dev7studios
6
* Free to use and abuse under the MIT license.
7
* http://www.opensource.org/licenses/mit-license.php
8
*/
9
10
- (function(e){var t=function(t,n){var r=e.extend({},e.fn.nivoSlider.defaults,n);var i={currentSlide:0,currentImage:"",totalSlides:0,running:false,paused:false,stop:false,controlNavEl:false};var s=e(t);s.data("nivo:vars",i).addClass("nivoSlider");var o=s.children();o.each(function(){var t=e(this);var n="";if(!t.is("img")){if(t.is("a")){t.addClass("nivo-imageLink");n=t}t=t.find("img:first")}var r=r===0?t.attr("width"):t.width(),s=s===0?t.attr("height"):t.height();if(n!==""){n.css("display","none")}t.css("display","none");i.totalSlides++});if(r.randomStart){r.startSlide=Math.floor(Math.random()*i.totalSlides)}if(r.startSlide>0){if(r.startSlide>=i.totalSlides){r.startSlide=i.totalSlides-1}i.currentSlide=r.startSlide}if(e(o[i.currentSlide]).is("img")){i.currentImage=e(o[i.currentSlide])}else{i.currentImage=e(o[i.currentSlide]).find("img:first")}if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}var u=e("<img/>").addClass("nivo-main-image");u.attr("src",i.currentImage.attr("src")).show();s.append(u);e(window).resize(function(){s.children("img").width(s.width());u.attr("src",i.currentImage.attr("src"));u.stop().height("auto");e(".nivo-slice").remove();e(".nivo-box").remove()});s.append(e('<div class="nivo-caption"></div>'));var a=function(t){var n=e(".nivo-caption",s);if(i.currentImage.attr("title")!=""&&i.currentImage.attr("title")!=undefined){var r=i.currentImage.attr("title");if(r.substr(0,1)=="#")r=e(r).html();if(n.css("display")=="block"){setTimeout(function(){n.html(r)},t.animSpeed)}else{n.html(r);n.stop().fadeIn(t.animSpeed)}}else{n.stop().fadeOut(t.animSpeed)}};a(r);var f=0;if(!r.manualAdvance&&o.length>1){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}if(r.directionNav){s.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+r.prevText+'</a><a class="nivo-nextNav">'+r.nextText+"</a></div>");e(s).on("click","a.nivo-prevNav",function(){if(i.running){return false}clearInterval(f);f="";i.currentSlide-=2;d(s,o,r,"prev")});e(s).on("click","a.nivo-nextNav",function(){if(i.running){return false}clearInterval(f);f="";d(s,o,r,"next")})}if(r.controlNav){i.controlNavEl=e('<div class="nivo-controlNav"></div>');s.after(i.controlNavEl);for(var l=0;l<o.length;l++){if(r.controlNavThumbs){i.controlNavEl.addClass("nivo-thumbs-enabled");var c=o.eq(l);if(!c.is("img")){c=c.find("img:first")}if(c.attr("data-thumb"))i.controlNavEl.append('<a class="nivo-control" rel="'+l+'"><img src="'+c.attr("data-thumb")+'" alt="" /></a>')}else{i.controlNavEl.append('<a class="nivo-control" rel="'+l+'">'+(l+1)+"</a>")}}e("a:eq("+i.currentSlide+")",i.controlNavEl).addClass("active");e("a",i.controlNavEl).bind("click",function(){if(i.running)return false;if(e(this).hasClass("active"))return false;clearInterval(f);f="";u.attr("src",i.currentImage.attr("src"));i.currentSlide=e(this).attr("rel")-1;d(s,o,r,"control")})}if(r.pauseOnHover){s.hover(function(){i.paused=true;clearInterval(f);f=""},function(){i.paused=false;if(f===""&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}})}s.bind("nivo:animFinished",function(){u.attr("src",i.currentImage.attr("src"));i.running=false;e(o).each(function(){if(e(this).is("a")){e(this).css("display","none")}});if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}if(f===""&&!i.paused&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}r.afterChange.call(this)});var h=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().is("a")?e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().height():e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height();for(var s=0;s<n.slices;s++){var o=Math.round(t.width()/n.slices);if(s===n.slices-1){t.append(e('<div class="nivo-slice" name="'+s+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(o+s*o-o)+'px;" /></div>').css({left:o*s+"px",width:t.width()-o*s+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}else{t.append(e('<div class="nivo-slice" name="'+s+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(o+s*o-o)+'px;" /></div>').css({left:o*s+"px",width:o+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}}e(".nivo-slice",t).height(i);u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var p=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=Math.round(t.width()/n.boxCols),s=Math.round(e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height()/n.boxRows);for(var o=0;o<n.boxRows;o++){for(var a=0;a<n.boxCols;a++){if(a===n.boxCols-1){t.append(e('<div class="nivo-box" name="'+a+'" rel="'+o+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+s*o+"px; left:-"+i*a+'px;" /></div>').css({opacity:0,left:i*a+"px",top:s*o+"px",width:t.width()-i*a+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}else{t.append(e('<div class="nivo-box" name="'+a+'" rel="'+o+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+s*o+"px; left:-"+i*a+'px;" /></div>').css({opacity:0,left:i*a+"px",top:s*o+"px",width:i+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}}}u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var d=function(t,n,r,i){var s=t.data("nivo:vars");if(s&&s.currentSlide===s.totalSlides-1){r.lastSlide.call(this)}if((!s||s.stop)&&!i){return false}r.beforeChange.call(this);if(!i){u.attr("src",s.currentImage.attr("src"))}else{if(i==="prev"){u.attr("src",s.currentImage.attr("src"))}if(i==="next"){u.attr("src",s.currentImage.attr("src"))}}s.currentSlide++;if(s.currentSlide===s.totalSlides){s.currentSlide=0;r.slideshowEnd.call(this)}if(s.currentSlide<0){s.currentSlide=s.totalSlides-1}if(e(n[s.currentSlide]).is("img")){s.currentImage=e(n[s.currentSlide])}else{s.currentImage=e(n[s.currentSlide]).find("img:first")}if(r.controlNav){e("a",s.controlNavEl).removeClass("active");e("a:eq("+s.currentSlide+")",s.controlNavEl).addClass("active")}a(r);e(".nivo-slice",t).remove();e(".nivo-box",t).remove();var o=r.effect,f="";if(r.effect==="random"){f=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse");o=f[Math.floor(Math.random()*(f.length+1))];if(o===undefined){o="fade"}}if(r.effect.indexOf(",")!==-1){f=r.effect.split(",");o=f[Math.floor(Math.random()*f.length)];if(o===undefined){o="fade"}}if(s.currentImage.attr("data-transition")){o=s.currentImage.attr("data-transition")}s.running=true;var l=0,c=0,d="",m="",g="",y="";if(o==="sliceDown"||o==="sliceDownRight"||o==="sliceDownLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({top:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUp"||o==="sliceUpRight"||o==="sliceUpLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceUpLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({bottom:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUpDown"||o==="sliceUpDownRight"||o==="sliceUpDownLeft"){h(t,r,s);l=0;c=0;var b=0;d=e(".nivo-slice",t);if(o==="sliceUpDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);if(c===0){n.css("top","0px");c++}else{n.css("bottom","0px");c=0}if(b===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;b++})}else if(o==="fold"){h(t,r,s);l=0;c=0;e(".nivo-slice",t).each(function(){var n=e(this);var i=n.width();n.css({top:"0px",width:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="fade"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:t.width()+"px"});m.animate({opacity:"1.0"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInRight"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInLeft"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1",left:"",right:"0px"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){m.css({left:"0px",right:""});t.trigger("nivo:animFinished")})}else if(o==="boxRandom"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;y=v(e(".nivo-box",t));y.each(function(){var n=e(this);if(c===g-1){setTimeout(function(){n.animate({opacity:"1"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1"},r.animSpeed)},100+l)}l+=20;c++})}else if(o==="boxRain"||o==="boxRainReverse"||o==="boxRainGrow"||o==="boxRainGrowReverse"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;var w=0;var E=0;var S=[];S[w]=[];y=e(".nivo-box",t);if(o==="boxRainReverse"||o==="boxRainGrowReverse"){y=e(".nivo-box",t)._reverse()}y.each(function(){S[w][E]=e(this);E++;if(E===r.boxCols){w++;E=0;S[w]=[]}});for(var x=0;x<r.boxCols*2;x++){var T=x;for(var N=0;N<r.boxRows;N++){if(T>=0&&T<r.boxCols){(function(n,i,s,u,a){var f=e(S[n][i]);var l=f.width();var c=f.height();if(o==="boxRainGrow"||o==="boxRainGrowReverse"){f.width(0).height(0)}if(u===a-1){setTimeout(function(){f.animate({opacity:"1",width:l,height:c},r.animSpeed/1.3,"",function(){t.trigger("nivo:animFinished")})},100+s)}else{setTimeout(function(){f.animate({opacity:"1",width:l,height:c},r.animSpeed/1.3)},100+s)}})(N,T,l,c,g);c++}T--}l+=100}}};var v=function(e){for(var t,n,r=e.length;r;t=parseInt(Math.random()*r,10),n=e[--r],e[r]=e[t],e[t]=n);return e};var m=function(e){if(this.console&&typeof console.log!=="undefined"){console.log(e)}};this.stop=function(){if(!e(t).data("nivo:vars").stop){e(t).data("nivo:vars").stop=true;m("Stop Slider")}};this.start=function(){if(e(t).data("nivo:vars").stop){e(t).data("nivo:vars").stop=false;m("Start Slider")}};r.afterLoad.call(this);return this};e.fn.nivoSlider=function(n){return this.each(function(r,i){var s=e(this);if(s.data("nivoslider")){return s.data("nivoslider")}var o=new t(this,n);s.data("nivoslider",o)})};e.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3e3,startSlide:0,directionNav:true,controlNav:true,controlNavThumbs:false,pauseOnHover:true,manualAdvance:false,prevText:"Prev",nextText:"Next",randomStart:false,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}};e.fn._reverse=[].reverse})(jQuery)
5
* Copyright 2012, Dev7studios
6
* Free to use and abuse under the MIT license.
7
* http://www.opensource.org/licenses/mit-license.php
8
+ *
9
+ * Meta Slider modifications: caption taken from 'data-title' attribute instead of 'title' attribute.
10
*/
11
12
+ (function(e){var t=function(t,n){var r=e.extend({},e.fn.nivoSlider.defaults,n);var i={currentSlide:0,currentImage:"",totalSlides:0,running:false,paused:false,stop:false,controlNavEl:false};var s=e(t);s.data("nivo:vars",i).addClass("nivoSlider");var o=s.children();o.each(function(){var t=e(this);var n="";if(!t.is("img")){if(t.is("a")){t.addClass("nivo-imageLink");n=t}t=t.find("img:first")}var r=r===0?t.attr("width"):t.width(),s=s===0?t.attr("height"):t.height();if(n!==""){n.css("display","none")}t.css("display","none");i.totalSlides++});if(r.randomStart){r.startSlide=Math.floor(Math.random()*i.totalSlides)}if(r.startSlide>0){if(r.startSlide>=i.totalSlides){r.startSlide=i.totalSlides-1}i.currentSlide=r.startSlide}if(e(o[i.currentSlide]).is("img")){i.currentImage=e(o[i.currentSlide])}else{i.currentImage=e(o[i.currentSlide]).find("img:first")}if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}var u=e("<img/>").addClass("nivo-main-image");u.attr("src",i.currentImage.attr("src")).show();s.append(u);e(window).resize(function(){s.children("img").width(s.width());u.attr("src",i.currentImage.attr("src"));u.stop().height("auto");e(".nivo-slice").remove();e(".nivo-box").remove()});s.append(e('<div class="nivo-caption"></div>'));var a=function(t){var n=e(".nivo-caption",s);if(i.currentImage.attr("data-title")!=""&&i.currentImage.attr("data-title")!=undefined){var r=i.currentImage.attr("data-title");if(r.substr(0,1)=="#")r=e(r).html();if(n.css("display")=="block"){setTimeout(function(){n.html(r)},t.animSpeed)}else{n.html(r);n.stop().fadeIn(t.animSpeed)}}else{n.stop().fadeOut(t.animSpeed)}};a(r);var f=0;if(!r.manualAdvance&&o.length>1){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}if(r.directionNav){s.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+r.prevText+'</a><a class="nivo-nextNav">'+r.nextText+"</a></div>");e(s).on("click","a.nivo-prevNav",function(){if(i.running){return false}clearInterval(f);f="";i.currentSlide-=2;d(s,o,r,"prev")});e(s).on("click","a.nivo-nextNav",function(){if(i.running){return false}clearInterval(f);f="";d(s,o,r,"next")})}if(r.controlNav){i.controlNavEl=e('<div class="nivo-controlNav"></div>');s.after(i.controlNavEl);for(var l=0;l<o.length;l++){if(r.controlNavThumbs){i.controlNavEl.addClass("nivo-thumbs-enabled");var c=o.eq(l);if(!c.is("img")){c=c.find("img:first")}if(c.attr("data-thumb"))i.controlNavEl.append('<a class="nivo-control" rel="'+l+'"><img src="'+c.attr("data-thumb")+'" alt="" /></a>')}else{i.controlNavEl.append('<a class="nivo-control" rel="'+l+'">'+(l+1)+"</a>")}}e("a:eq("+i.currentSlide+")",i.controlNavEl).addClass("active");e("a",i.controlNavEl).bind("click",function(){if(i.running)return false;if(e(this).hasClass("active"))return false;clearInterval(f);f="";u.attr("src",i.currentImage.attr("src"));i.currentSlide=e(this).attr("rel")-1;d(s,o,r,"control")})}if(r.pauseOnHover){s.hover(function(){i.paused=true;clearInterval(f);f=""},function(){i.paused=false;if(f===""&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}})}s.bind("nivo:animFinished",function(){u.attr("src",i.currentImage.attr("src"));i.running=false;e(o).each(function(){if(e(this).is("a")){e(this).css("display","none")}});if(e(o[i.currentSlide]).is("a")){e(o[i.currentSlide]).css("display","block")}if(f===""&&!i.paused&&!r.manualAdvance){f=setInterval(function(){d(s,o,r,false)},r.pauseTime)}r.afterChange.call(this)});var h=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().is("a")?e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").parent().height():e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height();for(var s=0;s<n.slices;s++){var o=Math.round(t.width()/n.slices);if(s===n.slices-1){t.append(e('<div class="nivo-slice" name="'+s+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(o+s*o-o)+'px;" /></div>').css({left:o*s+"px",width:t.width()-o*s+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}else{t.append(e('<div class="nivo-slice" name="'+s+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block !important; top:0; left:-"+(o+s*o-o)+'px;" /></div>').css({left:o*s+"px",width:o+"px",height:i+"px",opacity:"0",overflow:"hidden"}))}}e(".nivo-slice",t).height(i);u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var p=function(t,n,r){if(e(r.currentImage).parent().is("a"))e(r.currentImage).parent().css("display","block");e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility","hidden").show();var i=Math.round(t.width()/n.boxCols),s=Math.round(e('img[src="'+r.currentImage.attr("src")+'"]',t).not(".nivo-main-image,.nivo-control img").height()/n.boxRows);for(var o=0;o<n.boxRows;o++){for(var a=0;a<n.boxCols;a++){if(a===n.boxCols-1){t.append(e('<div class="nivo-box" name="'+a+'" rel="'+o+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+s*o+"px; left:-"+i*a+'px;" /></div>').css({opacity:0,left:i*a+"px",top:s*o+"px",width:t.width()-i*a+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}else{t.append(e('<div class="nivo-box" name="'+a+'" rel="'+o+'"><img src="'+r.currentImage.attr("src")+'" style="position:absolute; width:'+t.width()+"px; height:auto; display:block; top:-"+s*o+"px; left:-"+i*a+'px;" /></div>').css({opacity:0,left:i*a+"px",top:s*o+"px",width:i+"px"}));e('.nivo-box[name="'+a+'"]',t).height(e('.nivo-box[name="'+a+'"] img',t).height()+"px")}}}u.stop().animate({height:e(r.currentImage).height()},n.animSpeed)};var d=function(t,n,r,i){var s=t.data("nivo:vars");if(s&&s.currentSlide===s.totalSlides-1){r.lastSlide.call(this)}if((!s||s.stop)&&!i){return false}r.beforeChange.call(this);if(!i){u.attr("src",s.currentImage.attr("src"))}else{if(i==="prev"){u.attr("src",s.currentImage.attr("src"))}if(i==="next"){u.attr("src",s.currentImage.attr("src"))}}s.currentSlide++;if(s.currentSlide===s.totalSlides){s.currentSlide=0;r.slideshowEnd.call(this)}if(s.currentSlide<0){s.currentSlide=s.totalSlides-1}if(e(n[s.currentSlide]).is("img")){s.currentImage=e(n[s.currentSlide])}else{s.currentImage=e(n[s.currentSlide]).find("img:first")}if(r.controlNav){e("a",s.controlNavEl).removeClass("active");e("a:eq("+s.currentSlide+")",s.controlNavEl).addClass("active")}a(r);e(".nivo-slice",t).remove();e(".nivo-box",t).remove();var o=r.effect,f="";if(r.effect==="random"){f=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse");o=f[Math.floor(Math.random()*(f.length+1))];if(o===undefined){o="fade"}}if(r.effect.indexOf(",")!==-1){f=r.effect.split(",");o=f[Math.floor(Math.random()*f.length)];if(o===undefined){o="fade"}}if(s.currentImage.attr("data-transition")){o=s.currentImage.attr("data-transition")}s.running=true;var l=0,c=0,d="",m="",g="",y="";if(o==="sliceDown"||o==="sliceDownRight"||o==="sliceDownLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({top:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUp"||o==="sliceUpRight"||o==="sliceUpLeft"){h(t,r,s);l=0;c=0;d=e(".nivo-slice",t);if(o==="sliceUpLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);n.css({bottom:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="sliceUpDown"||o==="sliceUpDownRight"||o==="sliceUpDownLeft"){h(t,r,s);l=0;c=0;var b=0;d=e(".nivo-slice",t);if(o==="sliceUpDownLeft"){d=e(".nivo-slice",t)._reverse()}d.each(function(){var n=e(this);if(c===0){n.css("top","0px");c++}else{n.css("bottom","0px");c=0}if(b===r.slices-1){setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1.0"},r.animSpeed)},100+l)}l+=50;b++})}else if(o==="fold"){h(t,r,s);l=0;c=0;e(".nivo-slice",t).each(function(){var n=e(this);var i=n.width();n.css({top:"0px",width:"0px"});if(c===r.slices-1){setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({width:i,opacity:"1.0"},r.animSpeed)},100+l)}l+=50;c++})}else if(o==="fade"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:t.width()+"px"});m.animate({opacity:"1.0"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInRight"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){t.trigger("nivo:animFinished")})}else if(o==="slideInLeft"){h(t,r,s);m=e(".nivo-slice:first",t);m.css({width:"0px",opacity:"1",left:"",right:"0px"});m.animate({width:t.width()+"px"},r.animSpeed*2,"",function(){m.css({left:"0px",right:""});t.trigger("nivo:animFinished")})}else if(o==="boxRandom"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;y=v(e(".nivo-box",t));y.each(function(){var n=e(this);if(c===g-1){setTimeout(function(){n.animate({opacity:"1"},r.animSpeed,"",function(){t.trigger("nivo:animFinished")})},100+l)}else{setTimeout(function(){n.animate({opacity:"1"},r.animSpeed)},100+l)}l+=20;c++})}else if(o==="boxRain"||o==="boxRainReverse"||o==="boxRainGrow"||o==="boxRainGrowReverse"){p(t,r,s);g=r.boxCols*r.boxRows;c=0;l=0;var w=0;var E=0;var S=[];S[w]=[];y=e(".nivo-box",t);if(o==="boxRainReverse"||o==="boxRainGrowReverse"){y=e(".nivo-box",t)._reverse()}y.each(function(){S[w][E]=e(this);E++;if(E===r.boxCols){w++;E=0;S[w]=[]}});for(var x=0;x<r.boxCols*2;x++){var T=x;for(var N=0;N<r.boxRows;N++){if(T>=0&&T<r.boxCols){(function(n,i,s,u,a){var f=e(S[n][i]);var l=f.width();var c=f.height();if(o==="boxRainGrow"||o==="boxRainGrowReverse"){f.width(0).height(0)}if(u===a-1){setTimeout(function(){f.animate({opacity:"1",width:l,height:c},r.animSpeed/1.3,"",function(){t.trigger("nivo:animFinished")})},100+s)}else{setTimeout(function(){f.animate({opacity:"1",width:l,height:c},r.animSpeed/1.3)},100+s)}})(N,T,l,c,g);c++}T--}l+=100}}};var v=function(e){for(var t,n,r=e.length;r;t=parseInt(Math.random()*r,10),n=e[--r],e[r]=e[t],e[t]=n);return e};var m=function(e){if(this.console&&typeof console.log!=="undefined"){console.log(e)}};this.stop=function(){if(!e(t).data("nivo:vars").stop){e(t).data("nivo:vars").stop=true;m("Stop Slider")}};this.start=function(){if(e(t).data("nivo:vars").stop){e(t).data("nivo:vars").stop=false;m("Start Slider")}};r.afterLoad.call(this);return this};e.fn.nivoSlider=function(n){return this.each(function(r,i){var s=e(this);if(s.data("nivoslider")){return s.data("nivoslider")}var o=new t(this,n);s.data("nivoslider",o)})};e.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3e3,startSlide:0,directionNav:true,controlNav:true,controlNavThumbs:false,pauseOnHover:true,manualAdvance:false,prevText:"Prev",nextText:"Next",randomStart:false,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}};e.fn._reverse=[].reverse})(jQuery)
assets/tipsy/tipsy.css CHANGED
@@ -1,4 +1,4 @@
1
- .tipsy { font-size: 10px; position: absolute; padding: 5px; z-index: 100000; }
2
.tipsy-inner { background-color: #000; color: #FFF; max-width: 200px; padding: 5px 8px 4px 8px; text-align: center; }
3
4
/* Rounded corners */
1
+ .tipsy { font-size: 12px; position: absolute; padding: 5px; z-index: 100000; }
2
.tipsy-inner { background-color: #000; color: #FFF; max-width: 200px; padding: 5px 8px 4px 8px; text-align: center; }
3
4
/* Rounded corners */
inc/metaslider.imagehelper.class.php CHANGED
@@ -166,7 +166,18 @@ class MetaSliderImageHelper {
166
return $this->url;
167
}
168
169
- // source image size
170
$orig_size = $this->get_original_image_dimensions();
171
172
// bail out if we can't find the image dimensions
166
return $this->url;
167
}
168
169
+ // if the file exists, just return it without going any further
170
+ $dest_file_name = $this->get_destination_file_name(array(
171
+ 'width' => $this->container_width,
172
+ 'height' => $this->container_height
173
+ )
174
+ );
175
+
176
+ if (file_exists($dest_file_name)) {
177
+ return str_replace(basename($this->url), basename($dest_file_name), $this->url);
178
+ }
179
+
180
+ // file doesn't exist, detect required size
181
$orig_size = $this->get_original_image_dimensions();
182
183
// bail out if we can't find the image dimensions
inc/metaslider.widget.class.php CHANGED
@@ -82,27 +82,24 @@ class MetaSlider_Widget extends WP_Widget {
82
$title = $instance['title'];
83
}
84
85
- // list the tabs
86
- $args = array(
87
'post_type' => 'ml-slider',
88
'post_status' => 'publish',
89
'orderby' => 'date',
90
'order' => 'ASC',
91
'posts_per_page' => -1
92
- );
93
-
94
- $the_query = new WP_Query($args);
95
-
96
- while ($the_query->have_posts()) {
97
- $the_query->the_post();
98
- $active = $selected_slider == $the_query->post->ID ? true : false;
99
100
$sliders[] = array(
101
'active' => $active,
102
- 'title' => get_the_title(),
103
- 'id' => $the_query->post->ID
104
);
105
- }
106
107
?>
108
<p>
82
$title = $instance['title'];
83
}
84
85
+
86
+ $posts = get_posts(array(
87
'post_type' => 'ml-slider',
88
'post_status' => 'publish',
89
'orderby' => 'date',
90
'order' => 'ASC',
91
'posts_per_page' => -1
92
+ ));
93
+
94
+ foreach($posts as $post) {
95
+ $active = $selected_slider == $post->ID ? true : false;
96
97
$sliders[] = array(
98
'active' => $active,
99
+ 'title' => $post->post_title,
100
+ 'id' => $post->ID
101