Version Description
- Improved integration with themes.
Download this release
Release Info
Developer | codeinwp |
Plugin | Slider by Nivo – Responsive WordPress Image Slider |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
- CHANGELOG.md +5 -0
- assets/css/nivo-slider.css +1 -1
- assets/js/core-admin.js +314 -314
- assets/js/jquery.nivo.slider.pack.js +546 -2
- includes/class-nivo-slider.php +1 -1
- nivo-slider-lite.php +1 -1
- readme.txt +3 -0
- vendor/autoload.php +1 -1
- vendor/autoload_52.php +1 -1
- vendor/composer/autoload_real.php +3 -3
- vendor/composer/autoload_real_52.php +3 -3
CHANGELOG.md
CHANGED
@@ -1,4 +1,9 @@
|
|
1 |
|
|
|
|
|
|
|
|
|
|
|
2 |
### v2.0.2 - 2017-05-06
|
3 |
**Changes:**
|
4 |
- Removed redundant code.
|
1 |
|
2 |
+
### v2.0.3 - 2017-05-10
|
3 |
+
**Changes:**
|
4 |
+
- Small changes to .js for better integration with Shop-Isle-Pro
|
5 |
+
- Fixes height calculations.
|
6 |
+
|
7 |
### v2.0.2 - 2017-05-06
|
8 |
**Changes:**
|
9 |
- Removed redundant code.
|
assets/css/nivo-slider.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/*
|
2 |
* jQuery Nivo Slider v3.2
|
3 |
* http://nivo.dev7studios.com
|
4 |
-
* Version: 2.0.
|
5 |
* Copyright 2012, Dev7studios
|
6 |
* Free to use and abuse under the MIT license.
|
7 |
* http://www.opensource.org/licenses/mit-license.php
|
1 |
/*
|
2 |
* jQuery Nivo Slider v3.2
|
3 |
* http://nivo.dev7studios.com
|
4 |
+
* Version: 2.0.3
|
5 |
* Copyright 2012, Dev7studios
|
6 |
* Free to use and abuse under the MIT license.
|
7 |
* http://www.opensource.org/licenses/mit-license.php
|
assets/js/core-admin.js
CHANGED
@@ -1,316 +1,316 @@
|
|
1 |
-
jQuery(document).ready(function ($) {
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
|
316 |
});
|
1 |
+
jQuery( document ).ready(function ($) {
|
2 |
+
$( '.nivo-switch input' ).on('change', function () {
|
3 |
+
var status = $( this ).is( ':checked' );
|
4 |
+
status = (status) ? 'yes' : 'no';
|
5 |
+
$.ajax({
|
6 |
+
url: nivo_plugin.track_url,
|
7 |
+
data: {status: status},
|
8 |
+
method: "get",
|
9 |
+
success: function (data, textStatus, jqXHR) {
|
10 |
+
}
|
11 |
+
});
|
12 |
+
});
|
13 |
+
function get_image_source_setting() {
|
14 |
+
return $( 'select[name="' + nivo_plugin.labels.post_meta_key + '[' + nivo_plugin.labels.source_name + ']"] option:selected' ).val();
|
15 |
+
}
|
16 |
+
|
17 |
+
// Edit screen Images
|
18 |
+
if (nivo_plugin.post_id != '') {
|
19 |
+
load_image_source(); // Initial load
|
20 |
+
}
|
21 |
+
|
22 |
+
$( 'select[name="' + nivo_plugin.labels.post_meta_key + '[' + nivo_plugin.labels.source_name + ']"]' ).change(function () {
|
23 |
+
load_image_source();
|
24 |
+
display_params();
|
25 |
+
});
|
26 |
+
|
27 |
+
$( 'select[name="' + nivo_plugin.labels.post_meta_key + '[' + nivo_plugin.labels.type_name + '_gallery]"]' ).change(function () {
|
28 |
+
load_image_source();
|
29 |
+
});
|
30 |
+
|
31 |
+
$( 'select[name="' + nivo_plugin.labels.post_meta_key + '[' + nivo_plugin.labels.type_name + '_category]"]' ).change(function () {
|
32 |
+
load_image_source();
|
33 |
+
});
|
34 |
+
|
35 |
+
function escapeHTML(unsafe_str) {
|
36 |
+
return unsafe_str
|
37 |
+
.replace( /&/g, '&' )
|
38 |
+
.replace( /</g, '<' )
|
39 |
+
.replace( />/g, '>' )
|
40 |
+
.replace( /\"/g, '"' )
|
41 |
+
.replace( /\'/g, ''' ); // ''' is not valid HTML 4
|
42 |
+
}
|
43 |
+
|
44 |
+
function load_images() {
|
45 |
+
var image_source = $( 'select[name="' + nivo_plugin.labels.post_meta_key + '[' + nivo_plugin.labels.source_name + ']"] option:selected' ).val();
|
46 |
+
var image_method = $( 'select[name="' + nivo_plugin.labels.post_meta_key + '[' + image_source + '_type]"] option:selected' ).val();
|
47 |
+
var image_param = $( '#' + image_source + '_' + image_method ).val();
|
48 |
+
|
49 |
+
var number_images = $( 'input[name="' + nivo_plugin.labels.post_meta_key + '[number_images]"]' ).val();
|
50 |
+
|
51 |
+
if (image_param != '') {
|
52 |
+
$( '#' + nivo_plugin.labels.post_type + '-images' ).html( '<li class="loading"><div class="spinner"></div></li>' );
|
53 |
+
$.ajax({
|
54 |
+
url: ajaxurl,
|
55 |
+
type: 'POST',
|
56 |
+
dataType: 'json',
|
57 |
+
data: {
|
58 |
+
action: nivo_plugin.labels.post_type + '_load_images',
|
59 |
+
id: nivo_plugin.post_id,
|
60 |
+
nonce: nivo_plugin.nonce,
|
61 |
+
source: image_source,
|
62 |
+
gallery: $( 'select[name="' + nivo_plugin.labels.post_meta_key + '[' + nivo_plugin.labels.type_name + '_gallery]"] option:selected' ).val(),
|
63 |
+
category: $( 'select[name="' + nivo_plugin.labels.post_meta_key + '[' + nivo_plugin.labels.type_name + '_category]"] option:selected' ).val(),
|
64 |
+
method: image_method,
|
65 |
+
param: image_param,
|
66 |
+
number_images: number_images
|
67 |
+
},
|
68 |
+
success: function (response) {
|
69 |
+
if (response.error) {
|
70 |
+
$( '#' + nivo_plugin.labels.post_type + '-images' ).html( '' );
|
71 |
+
alert( response.message );
|
72 |
+
} else {
|
73 |
+
$( '#' + nivo_plugin.labels.post_type + '-images' ).html( '' );
|
74 |
+
for (var i in response.images) {
|
75 |
+
var image = response.images[i];
|
76 |
+
var output = '<li id="attachment-' + image.id + '">' +
|
77 |
+
'<img src="' + image.image_src + '" alt="' + escapeHTML( image.post_title ) + '" title="' + escapeHTML( image.post_title ) + '" class="attachment-thumbnail" />' +
|
78 |
+
'</li>';
|
79 |
+
$( '#' + nivo_plugin.labels.post_type + '-images' ).append( output );
|
80 |
+
}
|
81 |
+
}
|
82 |
+
},
|
83 |
+
error: function (response, status, error) {
|
84 |
+
$( '#' + nivo_plugin.labels.post_type + '-images' ).html( '<li class="loading">Error ' + error.replace( /(<([^>]+)>)/ig, "" ) + '</li>' );
|
85 |
+
//alert('Error: ' + error.replace(/(<([^>]+)>)/ig,""));
|
86 |
+
}
|
87 |
+
});
|
88 |
+
}
|
89 |
+
}
|
90 |
+
|
91 |
+
function load_image_source() {
|
92 |
+
var selected_source = get_image_source_setting();
|
93 |
+
$( '.nivo_type' ).hide();
|
94 |
+
if (selected_source != nivo_plugin.labels.manual_name) {
|
95 |
+
$( '#nivo_type_' + selected_source ).show();
|
96 |
+
$( '.manual.description' ).hide();
|
97 |
+
$( '.nivo_non_manual' ).show();
|
98 |
+
$( '#manual_images_upload' ).hide();
|
99 |
+
} else {
|
100 |
+
$( '.manual.description' ).show();
|
101 |
+
$( '.nivo_non_manual' ).hide();
|
102 |
+
$( '#manual_images_upload' ).show();
|
103 |
+
}
|
104 |
+
|
105 |
+
if (selected_source == 'category' || selected_source == 'sticky' || selected_source == 'custom') {
|
106 |
+
$( 'tr.nivo_captions' ).show();
|
107 |
+
} else {
|
108 |
+
$( 'tr.nivo_captions' ).hide();
|
109 |
+
}
|
110 |
+
|
111 |
+
if (selected_source == 'category' ||
|
112 |
+
selected_source == 'gallery' ||
|
113 |
+
selected_source == 'sticky' ||
|
114 |
+
selected_source == 'custom' ||
|
115 |
+
selected_source == nivo_plugin.labels.manual_name
|
116 |
+
) {
|
117 |
+
$( 'tr.wp-image-size' ).show();
|
118 |
+
} else {
|
119 |
+
$( 'tr.wp-image-size' ).hide();
|
120 |
+
}
|
121 |
+
|
122 |
+
load_images();
|
123 |
+
}
|
124 |
+
|
125 |
+
// Dependant Select visibilty
|
126 |
+
$( '#' + nivo_plugin.labels.post_type + '-settings select' ).each(function (index, element) {
|
127 |
+
dependant_visible( this );
|
128 |
+
});
|
129 |
+
|
130 |
+
$( '#' + nivo_plugin.labels.post_type + '-settings' ).on('change', 'select', function () {
|
131 |
+
dependant_visible( this );
|
132 |
+
});
|
133 |
+
|
134 |
+
$( '#' + nivo_plugin.labels.post_type + '-settings input:checkbox' ).each(function (index, element) {
|
135 |
+
dependant_visible( this );
|
136 |
+
});
|
137 |
+
|
138 |
+
$( '#' + nivo_plugin.labels.post_type + '-settings' ).on('change', 'input:checkbox', function () {
|
139 |
+
dependant_visible( this );
|
140 |
+
});
|
141 |
+
|
142 |
+
function dependant_visible(element) {
|
143 |
+
var id = $( element ).attr( 'id' );
|
144 |
+
if ($( 'tr.parent-' + id ).length > 0) {
|
145 |
+
|
146 |
+
if ($( element ).is( ':checkbox' )) {
|
147 |
+
var value = ( $( element ).is( ':checked' ) ) ? 'on' : 'off';
|
148 |
+
} else if ($( element ).is( 'select' )) {
|
149 |
+
var value = $( 'option:selected', element ).val();
|
150 |
+
}
|
151 |
+
$( 'tr.parent-' + id ).hide();
|
152 |
+
$( 'tr.parent-' + id + '.' + value ).show();
|
153 |
+
}
|
154 |
+
}
|
155 |
+
|
156 |
+
// Reload images
|
157 |
+
$( '#' + nivo_plugin.labels.post_type + '-settings' ).on('change', 'input.reload', function () {
|
158 |
+
load_images();
|
159 |
+
});
|
160 |
+
|
161 |
+
$( '#' + nivo_plugin.labels.post_type + '-settings' ).on('change', 'select.reload', function () {
|
162 |
+
load_images();
|
163 |
+
});
|
164 |
+
|
165 |
+
/**
|
166 |
+
* MMP integration
|
167 |
+
*
|
168 |
+
*/
|
169 |
+
|
170 |
+
function display_params() {
|
171 |
+
var source = $( 'select[name="' + nivo_plugin.labels.post_meta_key + '[' + nivo_plugin.labels.source_name + ']"] option:selected' ).val();
|
172 |
+
var method = $( 'select[name="' + nivo_plugin.labels.post_meta_key + '[' + source + '_type]"] option:selected' ).val();
|
173 |
+
$( '.image_source_param' ).hide();
|
174 |
+
if (typeof method != 'undefined') {
|
175 |
+
$( '#' + source + '_param_' + method ).show();
|
176 |
+
}
|
177 |
+
}
|
178 |
+
|
179 |
+
display_params();
|
180 |
+
|
181 |
+
$( '#' + nivo_plugin.labels.post_type + '-settings' ).on('change', 'select.image_source_type', function () {
|
182 |
+
display_params();
|
183 |
+
load_images();
|
184 |
+
});
|
185 |
+
|
186 |
+
$( '#' + nivo_plugin.labels.post_type + '-settings' ).on('change', '.image_source_param', function () {
|
187 |
+
load_images();
|
188 |
+
});
|
189 |
+
|
190 |
+
$( '.image_source_param' ).keydown(function (e) {
|
191 |
+
if (e.which == 13) {
|
192 |
+
e.preventDefault();
|
193 |
+
load_images();
|
194 |
+
}
|
195 |
+
});
|
196 |
+
|
197 |
+
$( 'input.reload' ).keydown(function (e) {
|
198 |
+
if (e.which == 13) {
|
199 |
+
e.preventDefault();
|
200 |
+
load_images();
|
201 |
+
}
|
202 |
+
});
|
203 |
+
|
204 |
+
$( '.reattach-images' ).on('click', function (e) {
|
205 |
+
e.preventDefault();
|
206 |
+
var post_id = $( this ).attr( 'data-post' );
|
207 |
+
$spinner = $( this ).next( '.spinner' );
|
208 |
+
if (post_id != '') {
|
209 |
+
$spinner.show();
|
210 |
+
$( this ).hide();
|
211 |
+
$.ajax({
|
212 |
+
url: ajaxurl,
|
213 |
+
type: 'POST',
|
214 |
+
dataType: 'json',
|
215 |
+
data: {
|
216 |
+
action: nivo_plugin.labels.post_type + '_reattach_images',
|
217 |
+
nonce: nivo_plugin.nonce,
|
218 |
+
post_id: post_id
|
219 |
+
},
|
220 |
+
success: function (response) {
|
221 |
+
if (response.error) {
|
222 |
+
alert( response.message );
|
223 |
+
$spinner.hide();
|
224 |
+
} else {
|
225 |
+
// images attached
|
226 |
+
window.location = response.redirect;
|
227 |
+
}
|
228 |
+
},
|
229 |
+
error: function (response, status, error) {
|
230 |
+
alert( 'Error: ' + error.replace( /(<([^>]+)>)/ig, "" ) );
|
231 |
+
$spinner.hide();
|
232 |
+
}
|
233 |
+
});
|
234 |
+
}
|
235 |
+
});
|
236 |
+
|
237 |
+
/**
|
238 |
+
* License Calls
|
239 |
+
*
|
240 |
+
*
|
241 |
+
**/
|
242 |
+
|
243 |
+
var license_input = nivo_plugin.labels.options_key + '[license_key]';
|
244 |
+
var license_status = nivo_plugin.labels.options_key + '[license_status]';
|
245 |
+
$( '#activate-license' ).on('click', function () {
|
246 |
+
var license_key = $( 'input[name="' + license_input + '"]' ).val();
|
247 |
+
if (license_key != '') {
|
248 |
+
$( '#nivo_license .spinner' ).show();
|
249 |
+
document.getElementById( "activate-license" ).disabled = true;
|
250 |
+
$.ajax({
|
251 |
+
url: ajaxurl,
|
252 |
+
type: 'POST',
|
253 |
+
dataType: 'json',
|
254 |
+
data: {
|
255 |
+
action: nivo_plugin.labels.post_type + '_activate_license',
|
256 |
+
nonce: nivo_plugin.nonce,
|
257 |
+
license_key: license_key
|
258 |
+
},
|
259 |
+
success: function (response) {
|
260 |
+
if (response.error) {
|
261 |
+
alert( response.message );
|
262 |
+
$( '#nivo_license .spinner' ).hide();
|
263 |
+
document.getElementById( "activate-license" ).disabled = false;
|
264 |
+
} else {
|
265 |
+
$( 'input[name="' + license_status + '"]' ).val( response.license_status );
|
266 |
+
if (response.license_status == 'valid') {
|
267 |
+
window.location = response.redirect;
|
268 |
+
} else {
|
269 |
+
alert( 'License ' + response.license_status );
|
270 |
+
$( '#nivo_license .spinner' ).hide();
|
271 |
+
document.getElementById( "activate-license" ).disabled = false;
|
272 |
+
}
|
273 |
+
}
|
274 |
+
},
|
275 |
+
error: function (response, status, error) {
|
276 |
+
alert( 'Error: ' + error.replace( /(<([^>]+)>)/ig, "" ) );
|
277 |
+
$( '#nivo_license .spinner' ).hide();
|
278 |
+
document.getElementById( "activate-license" ).disabled = false;
|
279 |
+
}
|
280 |
+
});
|
281 |
+
}
|
282 |
+
});
|
283 |
+
|
284 |
+
$( '#deactivate-license' ).on('click', function () {
|
285 |
+
$( '#nivo_license .spinner' ).show();
|
286 |
+
document.getElementById( "deactivate-license" ).disabled = true;
|
287 |
+
$.ajax({
|
288 |
+
url: ajaxurl,
|
289 |
+
type: 'POST',
|
290 |
+
dataType: 'json',
|
291 |
+
data: {
|
292 |
+
action: nivo_plugin.labels.post_type + '_deactivate_license',
|
293 |
+
nonce: nivo_plugin.nonce
|
294 |
+
},
|
295 |
+
success: function (response) {
|
296 |
+
if (response.error) {
|
297 |
+
alert( response.message );
|
298 |
+
$( '#nivo_license .spinner' ).hide();
|
299 |
+
document.getElementById( "deactivate-license" ).disabled = false;
|
300 |
+
} else {
|
301 |
+
if (response.license_status == 'deactivated') {
|
302 |
+
$( 'input[name="' + license_status + '"]' ).val( '' );
|
303 |
+
}
|
304 |
+
window.location = response.redirect;
|
305 |
+
}
|
306 |
+
},
|
307 |
+
error: function (response, status, error) {
|
308 |
+
alert( 'Error: ' + error.replace( /(<([^>]+)>)/ig, "" ) );
|
309 |
+
$( '#nivo_license .spinner' ).hide();
|
310 |
+
document.getElementById( "deactivate-license" ).disabled = false;
|
311 |
+
}
|
312 |
+
});
|
313 |
+
|
314 |
+
});
|
315 |
|
316 |
});
|
assets/js/jquery.nivo.slider.pack.js
CHANGED
@@ -6,5 +6,549 @@
|
|
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
* Free to use and abuse under the MIT license.
|
7 |
* http://www.opensource.org/licenses/mit-license.php
|
8 |
*/
|
9 |
+
/* global jQuery, console */
|
10 |
+
(function (e) {
|
11 |
+
"use strict";
|
12 |
+
var t = function (t, n) {
|
13 |
+
var r = e.extend({}, e.fn.nivoSlider.defaults, n);
|
14 |
+
var i = {
|
15 |
+
currentSlide: 0,
|
16 |
+
currentImage: "",
|
17 |
+
totalSlides: 0,
|
18 |
+
running: false,
|
19 |
+
paused: false,
|
20 |
+
stop: false,
|
21 |
+
controlNavEl: false
|
22 |
+
};
|
23 |
+
var s = e(t);
|
24 |
+
s.data("nivo:vars", i).addClass("nivoSlider");
|
25 |
+
var o = s.children();
|
26 |
+
o.each(function () {
|
27 |
+
var t = e(this);
|
28 |
+
var n = "";
|
29 |
+
if (!t.is("img")) {
|
30 |
+
if (t.is("a")) {
|
31 |
+
t.addClass("nivo-imageLink");
|
32 |
+
n = t;
|
33 |
+
}
|
34 |
+
t = t.find("img:first");
|
35 |
+
}
|
36 |
+
var r = r === 0 ? t.attr("width") : t.width(), s = s === 0 ? t.attr("height") : t.height();
|
37 |
+
if (n !== "") {
|
38 |
+
n.css("display", "none");
|
39 |
+
}
|
40 |
+
t.css("display", "none");
|
41 |
+
i.totalSlides++;
|
42 |
+
});
|
43 |
+
if (r.randomStart) {
|
44 |
+
r.startSlide = Math.floor(Math.random() * i.totalSlides);
|
45 |
+
}
|
46 |
+
if (r.startSlide > 0) {
|
47 |
+
if (r.startSlide >= i.totalSlides) {
|
48 |
+
r.startSlide = i.totalSlides - 1;
|
49 |
+
}
|
50 |
+
i.currentSlide = r.startSlide;
|
51 |
+
}
|
52 |
+
if (e(o[i.currentSlide]).is("img")) {
|
53 |
+
i.currentImage = e(o[i.currentSlide]);
|
54 |
+
} else {
|
55 |
+
i.currentImage = e(o[i.currentSlide]).find("img:first");
|
56 |
+
}
|
57 |
+
if (e(o[i.currentSlide]).is("a")) {
|
58 |
+
e(o[i.currentSlide]).css("display", "block");
|
59 |
+
}
|
60 |
+
var u = e("<img/>").addClass("nivo-main-image");
|
61 |
+
u.attr("src", i.currentImage.attr("src")).show();
|
62 |
+
s.append(u);
|
63 |
+
e(window).resize(function () {
|
64 |
+
s.children("img").width(s.width());
|
65 |
+
u.attr("src", i.currentImage.attr("src"));
|
66 |
+
u.stop().height("auto");
|
67 |
+
e(".nivo-slice").remove();
|
68 |
+
e(".nivo-box").remove();
|
69 |
+
});
|
70 |
+
s.append(e('<div class="nivo-caption"></div>'));
|
71 |
+
var a = function (t) {
|
72 |
+
var n = e(".nivo-caption", s);
|
73 |
+
if (i.currentImage.attr("title") != "" && i.currentImage.attr("title") != undefined) {
|
74 |
+
var r = i.currentImage.attr("title");
|
75 |
+
if (r.substr(0, 1) == "#") { r = e(r).html(); }
|
76 |
+
if (n.css("display") == "block") {
|
77 |
+
setTimeout(function () {
|
78 |
+
n.html(r);
|
79 |
+
}, t.animSpeed);
|
80 |
+
} else {
|
81 |
+
n.html(r);
|
82 |
+
n.stop().fadeIn(t.animSpeed);
|
83 |
+
}
|
84 |
+
} else {
|
85 |
+
n.stop().fadeOut(t.animSpeed);
|
86 |
+
}
|
87 |
+
};
|
88 |
+
a(r);
|
89 |
+
var f = 0;
|
90 |
+
if (!r.manualAdvance && o.length > 1) {
|
91 |
+
f = setInterval(function () {
|
92 |
+
d(s, o, r, false);
|
93 |
+
}, r.pauseTime);
|
94 |
+
}
|
95 |
+
if (r.directionNav) {
|
96 |
+
s.append('<div class="nivo-directionNav"><a class="nivo-prevNav">' + r.prevText + '</a><a class="nivo-nextNav">' + r.nextText + "</a></div>");
|
97 |
+
e(s).on("click", "a.nivo-prevNav", function () {
|
98 |
+
if (i.running) {
|
99 |
+
return false;
|
100 |
+
}
|
101 |
+
clearInterval(f);
|
102 |
+
f = "";
|
103 |
+
i.currentSlide -= 2;
|
104 |
+
d(s, o, r, "prev");
|
105 |
+
});
|
106 |
+
e(s).on("click", "a.nivo-nextNav", function () {
|
107 |
+
if (i.running) {
|
108 |
+
return false;
|
109 |
+
}
|
110 |
+
clearInterval(f);
|
111 |
+
f = "";
|
112 |
+
d(s, o, r, "next");
|
113 |
+
});
|
114 |
+
}
|
115 |
+
if (r.controlNav) {
|
116 |
+
i.controlNavEl = e('<div class="nivo-controlNav"></div>');
|
117 |
+
s.after(i.controlNavEl);
|
118 |
+
for (var l = 0; l < o.length; l++) {
|
119 |
+
if (r.controlNavThumbs) {
|
120 |
+
i.controlNavEl.addClass("nivo-thumbs-enabled");
|
121 |
+
var c = o.eq(l);
|
122 |
+
if (!c.is("img")) {
|
123 |
+
c = c.find("img:first");
|
124 |
+
}
|
125 |
+
if (c.attr("data-thumb")) { i.controlNavEl.append('<a class="nivo-control" rel="' + l + '"><img src="' + c.attr("data-thumb") + '" alt="" /></a>'); }
|
126 |
+
} else {
|
127 |
+
i.controlNavEl.append('<a class="nivo-control" rel="' + l + '">' + (l + 1) + "</a>");
|
128 |
+
}
|
129 |
+
}
|
130 |
+
e("a:eq(" + i.currentSlide + ")", i.controlNavEl).addClass("active");
|
131 |
+
e("a", i.controlNavEl).bind("click", function () {
|
132 |
+
if (i.running) { return false; }
|
133 |
+
if (e(this).hasClass("active")) { return false; }
|
134 |
+
clearInterval(f);
|
135 |
+
f = "";
|
136 |
+
u.attr("src", i.currentImage.attr("src"));
|
137 |
+
i.currentSlide = e(this).attr("rel") - 1;
|
138 |
+
d(s, o, r, "control");
|
139 |
+
});
|
140 |
+
}
|
141 |
+
if (r.pauseOnHover) {
|
142 |
+
s.hover(function () {
|
143 |
+
i.paused = true;
|
144 |
+
clearInterval(f);
|
145 |
+
f = "";
|
146 |
+
}, function () {
|
147 |
+
i.paused = false;
|
148 |
+
if (f === "" && !r.manualAdvance) {
|
149 |
+
f = setInterval(function () {
|
150 |
+
d(s, o, r, false);
|
151 |
+
}, r.pauseTime);
|
152 |
+
}
|
153 |
+
});
|
154 |
+
}
|
155 |
+
s.bind("nivo:animFinished", function () {
|
156 |
+
u.attr("src", i.currentImage.attr("src"));
|
157 |
+
i.running = false;
|
158 |
+
e(o).each(function () {
|
159 |
+
if (e(this).is("a")) {
|
160 |
+
e(this).css("display", "none");
|
161 |
+
}
|
162 |
+
});
|
163 |
+
if (e(o[i.currentSlide]).is("a")) {
|
164 |
+
e(o[i.currentSlide]).css("display", "block");
|
165 |
+
}
|
166 |
+
if (f === "" && !i.paused && !r.manualAdvance) {
|
167 |
+
f = setInterval(function () {
|
168 |
+
d(s, o, r, false);
|
169 |
+
}, r.pauseTime);
|
170 |
+
}
|
171 |
+
r.afterChange.call(this);
|
172 |
+
});
|
173 |
+
var h = function (t, n, r) {
|
174 |
+
if (e(r.currentImage).parent().is("a")) { e(r.currentImage).parent().css("display", "block"); }
|
175 |
+
e('img[src="' + r.currentImage.attr("src") + '"]', t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility", "hidden").show();
|
176 |
+
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();
|
177 |
+
for (var s = 0; s < n.slices; s++) {
|
178 |
+
var o = Math.round(t.width() / n.slices);
|
179 |
+
if (s === n.slices - 1) {
|
180 |
+
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({
|
181 |
+
left: o * s + "px",
|
182 |
+
width: t.width() - o * s + "px",
|
183 |
+
height: i + "px",
|
184 |
+
opacity: "0",
|
185 |
+
overflow: "hidden"
|
186 |
+
}));
|
187 |
+
} else {
|
188 |
+
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({
|
189 |
+
left: o * s + "px",
|
190 |
+
width: o + "px",
|
191 |
+
height: i + "px",
|
192 |
+
opacity: "0",
|
193 |
+
overflow: "hidden"
|
194 |
+
}));
|
195 |
+
}
|
196 |
+
}
|
197 |
+
e(".nivo-slice", t).height(i);
|
198 |
+
u.stop().animate({height: e(r.currentImage).height()}, n.animSpeed);
|
199 |
+
};
|
200 |
+
var p = function (t, n, r) {
|
201 |
+
if (e(r.currentImage).parent().is("a")) { e(r.currentImage).parent().css("display", "block"); }
|
202 |
+
e('img[src="' + r.currentImage.attr("src") + '"]', t).not(".nivo-main-image,.nivo-control img").width(t.width()).css("visibility", "hidden").show();
|
203 |
+
var i = Math.round(t.width() / n.boxCols),
|
204 |
+
s = Math.round(e('img[src="' + r.currentImage.attr("src") + '"]', t).not(".nivo-main-image,.nivo-control img").height() / n.boxRows);
|
205 |
+
for (var o = 0; o < n.boxRows; o++) {
|
206 |
+
for (var a = 0; a < n.boxCols; a++) {
|
207 |
+
if (a === n.boxCols - 1) {
|
208 |
+
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({
|
209 |
+
opacity: 0,
|
210 |
+
left: i * a + "px",
|
211 |
+
top: s * o + "px",
|
212 |
+
width: t.width() - i * a + "px"
|
213 |
+
}));
|
214 |
+
e('.nivo-box[name="' + a + '"]', t).height(e('.nivo-box[name="' + a + '"] img', t).height() + "px");
|
215 |
+
} else {
|
216 |
+
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({
|
217 |
+
opacity: 0,
|
218 |
+
left: i * a + "px",
|
219 |
+
top: s * o + "px",
|
220 |
+
width: i + "px"
|
221 |
+
}));
|
222 |
+
e('.nivo-box[name="' + a + '"]', t).height(e('.nivo-box[name="' + a + '"] img', t).height() + "px");
|
223 |
+
}
|
224 |
+
}
|
225 |
+
}
|
226 |
+
u.stop().animate({height: e(r.currentImage).height()}, n.animSpeed);
|
227 |
+
};
|
228 |
+
var d = function (t, n, r, i) {
|
229 |
+
var s = t.data("nivo:vars");
|
230 |
+
if (s && s.currentSlide === s.totalSlides - 1) {
|
231 |
+
r.lastSlide.call(this);
|
232 |
+
}
|
233 |
+
if ((!s || s.stop) && !i) {
|
234 |
+
return false;
|
235 |
+
}
|
236 |
+
r.beforeChange.call(this);
|
237 |
+
if (!i) {
|
238 |
+
u.attr("src", s.currentImage.attr("src"));
|
239 |
+
} else {
|
240 |
+
if (i === "prev") {
|
241 |
+
u.attr("src", s.currentImage.attr("src"));
|
242 |
+
}
|
243 |
+
if (i === "next") {
|
244 |
+
u.attr("src", s.currentImage.attr("src"));
|
245 |
+
}
|
246 |
+
}
|
247 |
+
s.currentSlide++;
|
248 |
+
if (s.currentSlide === s.totalSlides) {
|
249 |
+
s.currentSlide = 0;
|
250 |
+
r.slideshowEnd.call(this);
|
251 |
+
}
|
252 |
+
if (s.currentSlide < 0) {
|
253 |
+
s.currentSlide = s.totalSlides - 1;
|
254 |
+
}
|
255 |
+
if (e(n[s.currentSlide]).is("img")) {
|
256 |
+
s.currentImage = e(n[s.currentSlide]);
|
257 |
+
} else {
|
258 |
+
s.currentImage = e(n[s.currentSlide]).find("img:first");
|
259 |
+
}
|
260 |
+
if (r.controlNav) {
|
261 |
+
e("a", s.controlNavEl).removeClass("active");
|
262 |
+
e("a:eq(" + s.currentSlide + ")", s.controlNavEl).addClass("active");
|
263 |
+
}
|
264 |
+
a(r);
|
265 |
+
e(".nivo-slice", t).remove();
|
266 |
+
e(".nivo-box", t).remove();
|
267 |
+
var o = r.effect, f = "";
|
268 |
+
if (r.effect === "random") {
|
269 |
+
f = new Array("sliceDownRight", "sliceDownLeft", "sliceUpRight", "sliceUpLeft", "sliceUpDown", "sliceUpDownLeft", "fold", "fade", "boxRandom", "boxRain", "boxRainReverse", "boxRainGrow", "boxRainGrowReverse");
|
270 |
+
o = f[Math.floor(Math.random() * (f.length + 1))];
|
271 |
+
if (o === undefined) {
|
272 |
+
o = "fade";
|
273 |
+
}
|
274 |
+
}
|
275 |
+
if (r.effect.indexOf(",") !== -1) {
|
276 |
+
f = r.effect.split(",");
|
277 |
+
o = f[Math.floor(Math.random() * f.length)];
|
278 |
+
if (o === undefined) {
|
279 |
+
o = "fade";
|
280 |
+
}
|
281 |
+
}
|
282 |
+
if (s.currentImage.attr("data-transition")) {
|
283 |
+
o = s.currentImage.attr("data-transition");
|
284 |
+
}
|
285 |
+
s.running = true;
|
286 |
+
var l = 0, c = 0, d = "", m = "", g = "", y = "";
|
287 |
+
if (o === "sliceDown" || o === "sliceDownRight" || o === "sliceDownLeft") {
|
288 |
+
h(t, r, s);
|
289 |
+
l = 0;
|
290 |
+
c = 0;
|
291 |
+
d = e(".nivo-slice", t);
|
292 |
+
if (o === "sliceDownLeft") {
|
293 |
+
d = e(".nivo-slice", t)._reverse();
|
294 |
+
}
|
295 |
+
d.each(function () {
|
296 |
+
var n = e(this);
|
297 |
+
n.css({top: "0px"});
|
298 |
+
if (c === r.slices - 1) {
|
299 |
+
setTimeout(function () {
|
300 |
+
n.animate({opacity: "1.0"}, r.animSpeed, "", function () {
|
301 |
+
t.trigger("nivo:animFinished");
|
302 |
+
});
|
303 |
+
}, 100 + l);
|
304 |
+
} else {
|
305 |
+
setTimeout(function () {
|
306 |
+
n.animate({opacity: "1.0"}, r.animSpeed);
|
307 |
+
}, 100 + l);
|
308 |
+
}
|
309 |
+
l += 50;
|
310 |
+
c++;
|
311 |
+
});
|
312 |
+
} else if (o === "sliceUp" || o === "sliceUpRight" || o === "sliceUpLeft") {
|
313 |
+
h(t, r, s);
|
314 |
+
l = 0;
|
315 |
+
c = 0;
|
316 |
+
d = e(".nivo-slice", t);
|
317 |
+
if (o === "sliceUpLeft") {
|
318 |
+
d = e(".nivo-slice", t)._reverse();
|
319 |
+
}
|
320 |
+
d.each(function () {
|
321 |
+
var n = e(this);
|
322 |
+
n.css({bottom: "0px"});
|
323 |
+
if (c === r.slices - 1) {
|
324 |
+
setTimeout(function () {
|
325 |
+
n.animate({opacity: "1.0"}, r.animSpeed, "", function () {
|
326 |
+
t.trigger("nivo:animFinished");
|
327 |
+
});
|
328 |
+
}, 100 + l);
|
329 |
+
} else {
|
330 |
+
setTimeout(function () {
|
331 |
+
n.animate({opacity: "1.0"}, r.animSpeed);
|
332 |
+
}, 100 + l);
|
333 |
+
}
|
334 |
+
l += 50;
|
335 |
+
c++;
|
336 |
+
});
|
337 |
+
} else if (o === "sliceUpDown" || o === "sliceUpDownRight" || o === "sliceUpDownLeft") {
|
338 |
+
h(t, r, s);
|
339 |
+
l = 0;
|
340 |
+
c = 0;
|
341 |
+
var b = 0;
|
342 |
+
d = e(".nivo-slice", t);
|
343 |
+
if (o === "sliceUpDownLeft") {
|
344 |
+
d = e(".nivo-slice", t)._reverse();
|
345 |
+
}
|
346 |
+
d.each(function () {
|
347 |
+
var n = e(this);
|
348 |
+
if (c === 0) {
|
349 |
+
n.css("top", "0px");
|
350 |
+
c++;
|
351 |
+
} else {
|
352 |
+
n.css("bottom", "0px");
|
353 |
+
c = 0;
|
354 |
+
}
|
355 |
+
if (b === r.slices - 1) {
|
356 |
+
setTimeout(function () {
|
357 |
+
n.animate({opacity: "1.0"}, r.animSpeed, "", function () {
|
358 |
+
t.trigger("nivo:animFinished");
|
359 |
+
});
|
360 |
+
}, 100 + l);
|
361 |
+
} else {
|
362 |
+
setTimeout(function () {
|
363 |
+
n.animate({opacity: "1.0"}, r.animSpeed);
|
364 |
+
}, 100 + l);
|
365 |
+
}
|
366 |
+
l += 50;
|
367 |
+
b++;
|
368 |
+
});
|
369 |
+
} else if (o === "fold") {
|
370 |
+
h(t, r, s);
|
371 |
+
l = 0;
|
372 |
+
c = 0;
|
373 |
+
e(".nivo-slice", t).each(function () {
|
374 |
+
var n = e(this);
|
375 |
+
var i = n.width();
|
376 |
+
n.css({top: "0px", width: "0px"});
|
377 |
+
if (c === r.slices - 1) {
|
378 |
+
setTimeout(function () {
|
379 |
+
n.animate({width: i, opacity: "1.0"}, r.animSpeed, "", function () {
|
380 |
+
t.trigger("nivo:animFinished");
|
381 |
+
});
|
382 |
+
}, 100 + l);
|
383 |
+
} else {
|
384 |
+
setTimeout(function () {
|
385 |
+
n.animate({width: i, opacity: "1.0"}, r.animSpeed);
|
386 |
+
}, 100 + l);
|
387 |
+
}
|
388 |
+
l += 50;
|
389 |
+
c++;
|
390 |
+
});
|
391 |
+
} else if (o === "fade") {
|
392 |
+
h(t, r, s);
|
393 |
+
m = e(".nivo-slice:first", t);
|
394 |
+
m.css({width: t.width() + "px"});
|
395 |
+
m.animate({opacity: "1.0"}, r.animSpeed * 2, "", function () {
|
396 |
+
t.trigger("nivo:animFinished");
|
397 |
+
});
|
398 |
+
} else if (o === "slideInRight") {
|
399 |
+
h(t, r, s);
|
400 |
+
m = e(".nivo-slice:first", t);
|
401 |
+
m.css({width: "0px", opacity: "1"});
|
402 |
+
m.animate({width: t.width() + "px"}, r.animSpeed * 2, "", function () {
|
403 |
+
t.trigger("nivo:animFinished");
|
404 |
+
});
|
405 |
+
} else if (o === "slideInLeft") {
|
406 |
+
h(t, r, s);
|
407 |
+
m = e(".nivo-slice:first", t);
|
408 |
+
m.css({width: "0px", opacity: "1", left: "", right: "0px"});
|
409 |
+
m.animate({width: t.width() + "px"}, r.animSpeed * 2, "", function () {
|
410 |
+
m.css({left: "0px", right: ""});
|
411 |
+
t.trigger("nivo:animFinished");
|
412 |
+
});
|
413 |
+
} else if (o === "boxRandom") {
|
414 |
+
p(t, r, s);
|
415 |
+
g = r.boxCols * r.boxRows;
|
416 |
+
c = 0;
|
417 |
+
l = 0;
|
418 |
+
y = v(e(".nivo-box", t));
|
419 |
+
y.each(function () {
|
420 |
+
var n = e(this);
|
421 |
+
if (c === g - 1) {
|
422 |
+
setTimeout(function () {
|
423 |
+
n.animate({opacity: "1"}, r.animSpeed, "", function () {
|
424 |
+
t.trigger("nivo:animFinished");
|
425 |
+
});
|
426 |
+
}, 100 + l);
|
427 |
+
} else {
|
428 |
+
setTimeout(function () {
|
429 |
+
n.animate({opacity: "1"}, r.animSpeed);
|
430 |
+
}, 100 + l);
|
431 |
+
}
|
432 |
+
l += 20;
|
433 |
+
c++;
|
434 |
+
});
|
435 |
+
} else if (o === "boxRain" || o === "boxRainReverse" || o === "boxRainGrow" || o === "boxRainGrowReverse") {
|
436 |
+
p(t, r, s);
|
437 |
+
g = r.boxCols * r.boxRows;
|
438 |
+
c = 0;
|
439 |
+
l = 0;
|
440 |
+
var w = 0;
|
441 |
+
var E = 0;
|
442 |
+
var S = [];
|
443 |
+
S[w] = [];
|
444 |
+
y = e(".nivo-box", t);
|
445 |
+
if (o === "boxRainReverse" || o === "boxRainGrowReverse") {
|
446 |
+
y = e(".nivo-box", t)._reverse()
|
447 |
+
}
|
448 |
+
y.each(function () {
|
449 |
+
S[w][E] = e(this);
|
450 |
+
E++;
|
451 |
+
if (E === r.boxCols) {
|
452 |
+
w++;
|
453 |
+
E = 0;
|
454 |
+
S[w] = [];
|
455 |
+
}
|
456 |
+
});
|
457 |
+
for (var x = 0; x < r.boxCols * 2; x++) {
|
458 |
+
var T = x;
|
459 |
+
for (var N = 0; N < r.boxRows; N++) {
|
460 |
+
if (T >= 0 && T < r.boxCols) {
|
461 |
+
(function (n, i, s, u, a) {
|
462 |
+
var f = e(S[n][i]);
|
463 |
+
var l = f.width();
|
464 |
+
var c = f.height();
|
465 |
+
if (o === "boxRainGrow" || o === "boxRainGrowReverse") {
|
466 |
+
f.width(0).height(0);
|
467 |
+
}
|
468 |
+
if (u === a - 1) {
|
469 |
+
setTimeout(function () {
|
470 |
+
f.animate({
|
471 |
+
opacity: "1",
|
472 |
+
width: l,
|
473 |
+
height: c
|
474 |
+
}, r.animSpeed / 1.3, "", function () {
|
475 |
+
t.trigger("nivo:animFinished");
|
476 |
+
});
|
477 |
+
}, 100 + s);
|
478 |
+
} else {
|
479 |
+
setTimeout(function () {
|
480 |
+
f.animate({opacity: "1", width: l, height: c}, r.animSpeed / 1.3);
|
481 |
+
}, 100 + s);
|
482 |
+
}
|
483 |
+
})(N, T, l, c, g);
|
484 |
+
c++;
|
485 |
+
}
|
486 |
+
T--;
|
487 |
+
}
|
488 |
+
l += 100;
|
489 |
+
}
|
490 |
+
}
|
491 |
+
};
|
492 |
+
var v = function (e) {
|
493 |
+
for (var t, n, r = e.length; r; t = parseInt(Math.random() * r, 10), n = e[--r], e[r] = e[t], e[t] = n);
|
494 |
+
return e;
|
495 |
+
};
|
496 |
+
var m = function (e) {
|
497 |
+
if (this.console && typeof console.log !== "undefined") {
|
498 |
+
console.log(e);
|
499 |
+
}
|
500 |
+
};
|
501 |
+
this.stop = function () {
|
502 |
+
if (!e(t).data("nivo:vars").stop) {
|
503 |
+
e(t).data("nivo:vars").stop = true;
|
504 |
+
m("Stop Slider");
|
505 |
+
}
|
506 |
+
};
|
507 |
+
this.start = function () {
|
508 |
+
if (e(t).data("nivo:vars").stop) {
|
509 |
+
e(t).data("nivo:vars").stop = false;
|
510 |
+
m("Start Slider");
|
511 |
+
}
|
512 |
+
};
|
513 |
+
r.afterLoad.call(this);
|
514 |
+
return this;
|
515 |
+
};
|
516 |
+
e.fn.nivoSlider = function (n) {
|
517 |
+
return this.each(function (r, i) {
|
518 |
+
var s = e(this);
|
519 |
+
if (s.data("nivoslider")) {
|
520 |
+
return s.data("nivoslider");
|
521 |
+
}
|
522 |
+
var o = new t(this, n);
|
523 |
+
s.data("nivoslider", o);
|
524 |
+
});
|
525 |
+
};
|
526 |
+
e.fn.nivoSlider.defaults = {
|
527 |
+
effect: "random",
|
528 |
+
slices: 15,
|
529 |
+
boxCols: 8,
|
530 |
+
boxRows: 4,
|
531 |
+
animSpeed: 500,
|
532 |
+
pauseTime: 3e3,
|
533 |
+
startSlide: 0,
|
534 |
+
directionNav: true,
|
535 |
+
controlNav: true,
|
536 |
+
controlNavThumbs: false,
|
537 |
+
pauseOnHover: true,
|
538 |
+
manualAdvance: false,
|
539 |
+
prevText: "Prev",
|
540 |
+
nextText: "Next",
|
541 |
+
randomStart: false,
|
542 |
+
beforeChange: function () {
|
543 |
+
},
|
544 |
+
afterChange: function () {
|
545 |
+
},
|
546 |
+
slideshowEnd: function () {
|
547 |
+
},
|
548 |
+
lastSlide: function () {
|
549 |
+
},
|
550 |
+
afterLoad: function () {
|
551 |
+
}
|
552 |
+
};
|
553 |
+
e.fn._reverse = [].reverse;
|
554 |
+
})(jQuery)
|
includes/class-nivo-slider.php
CHANGED
@@ -69,7 +69,7 @@ class Nivo_Slider {
|
|
69 |
public function __construct() {
|
70 |
|
71 |
$this->plugin_name = 'nivo-slider';
|
72 |
-
$this->version = '2.0.
|
73 |
|
74 |
$this->load_dependencies();
|
75 |
$this->set_locale();
|
69 |
public function __construct() {
|
70 |
|
71 |
$this->plugin_name = 'nivo-slider';
|
72 |
+
$this->version = '2.0.3';
|
73 |
|
74 |
$this->load_dependencies();
|
75 |
$this->set_locale();
|
nivo-slider-lite.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Slider by Nivo - Responsive Image Slider
|
4 |
* Plugin URI: https://themeisle.com/plugins/nivo-slider-lite
|
5 |
* Description: Nivo Slider is The Most Popular And Easiest to Use WordPress Slider Plugin.
|
6 |
-
* Version: 2.0.
|
7 |
* Author: ThemeIsle
|
8 |
* Author URI: https://themeisle.com/
|
9 |
* Text Domain: nivo-slider
|
3 |
* Plugin Name: Slider by Nivo - Responsive Image Slider
|
4 |
* Plugin URI: https://themeisle.com/plugins/nivo-slider-lite
|
5 |
* Description: Nivo Slider is The Most Popular And Easiest to Use WordPress Slider Plugin.
|
6 |
+
* Version: 2.0.3
|
7 |
* Author: ThemeIsle
|
8 |
* Author URI: https://themeisle.com/
|
9 |
* Text Domain: nivo-slider
|
readme.txt
CHANGED
@@ -68,6 +68,9 @@ Purchasing a license gets you access to the full version of the Nivo Slider Word
|
|
68 |
|
69 |
== Changelog ==
|
70 |
|
|
|
|
|
|
|
71 |
= 2.0.2 =
|
72 |
* Removed redundant code
|
73 |
* Added future support for carousels.
|
68 |
|
69 |
== Changelog ==
|
70 |
|
71 |
+
= 2.0.3 =
|
72 |
+
* Improved integration with themes.
|
73 |
+
|
74 |
= 2.0.2 =
|
75 |
* Removed redundant code
|
76 |
* Added future support for carousels.
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer' . '/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit4183cc7ba490ca464f467ce34c46d135::getLoader();
|
vendor/autoload_52.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once dirname(__FILE__) . '/composer'.'/autoload_real_52.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInitb3926e6b65e8bccfc5b4ea8a754f61dc::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInitdcb3f2ffd0b1ac86e8242114b17737d7
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit4183cc7ba490ca464f467ce34c46d135
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit4183cc7ba490ca464f467ce34c46d135', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit4183cc7ba490ca464f467ce34c46d135', 'loadClassLoader'));
|
25 |
|
26 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
27 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_real_52.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
-
class
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
@@ -19,9 +19,9 @@ class ComposerAutoloaderInit85235d05e00da9c65534155cb2cea960 {
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|
2 |
|
3 |
// autoload_real_52.php generated by xrstf/composer-php52
|
4 |
|
5 |
+
class ComposerAutoloaderInitb3926e6b65e8bccfc5b4ea8a754f61dc {
|
6 |
private static $loader;
|
7 |
|
8 |
public static function loadClassLoader($class) {
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInitb3926e6b65e8bccfc5b4ea8a754f61dc', 'loadClassLoader'), true /*, true */);
|
23 |
self::$loader = $loader = new xrstf_Composer52_ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInitb3926e6b65e8bccfc5b4ea8a754f61dc', 'loadClassLoader'));
|
25 |
|
26 |
$vendorDir = dirname(dirname(__FILE__));
|
27 |
$baseDir = dirname($vendorDir);
|