Version Description
Download this release
Release Info
Developer | webdorado |
Plugin | Slider by WD – Responsive Slider |
Version | 1.1.39 |
Comparing to | |
See all releases |
Code changes from version 1.1.38 to 1.1.39
- admin/views/WDSViewSliders_wds.php +1 -1
- frontend/views/WDSViewSlider.php +30 -3
- js/wds.js +4 -1
- readme.txt +7 -1
- slider-wd.php +2 -2
admin/views/WDSViewSliders_wds.php
CHANGED
@@ -153,7 +153,7 @@ class WDSViewSliders_wds {
|
|
153 |
<td class="table_small_col check-column"><input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" onclick="spider_check_all(this)" type="checkbox" /></td>
|
154 |
<td class="table_small_col"><?php echo $row_data->id; ?></td>
|
155 |
<td class="mobile_hide table_big_col">
|
156 |
-
<img title="<?php echo $row_data->name; ?>" style="border: 1px solid #CCCCCC; max-width: 70px; max-height: 50px;" src="<?php echo
|
157 |
</td>
|
158 |
<td class="wds_640">
|
159 |
<a onclick="spider_set_input_value('task', 'edit');
|
153 |
<td class="table_small_col check-column"><input id="check_<?php echo $row_data->id; ?>" name="check_<?php echo $row_data->id; ?>" onclick="spider_check_all(this)" type="checkbox" /></td>
|
154 |
<td class="table_small_col"><?php echo $row_data->id; ?></td>
|
155 |
<td class="mobile_hide table_big_col">
|
156 |
+
<img title="<?php echo $row_data->name; ?>" style="border: 1px solid #CCCCCC; max-width: 70px; max-height: 50px;" src="<?php echo add_query_arg('date', date('Y-m-y H:i:s'), $prev_img_url); ?>">
|
157 |
</td>
|
158 |
<td class="wds_640">
|
159 |
<a onclick="spider_set_input_value('task', 'edit');
|
frontend/views/WDSViewSlider.php
CHANGED
@@ -1382,6 +1382,22 @@ class WDSViewSlider {
|
|
1382 |
return iterator;
|
1383 |
}
|
1384 |
function wds_change_image_<?php echo $wds; ?>(current_key, key, wds_data_<?php echo $wds; ?>, from_effect) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1385 |
<?php
|
1386 |
if ($slider_row->effect == 'zoomFade') {
|
1387 |
?>
|
@@ -1955,10 +1971,21 @@ class WDSViewSlider {
|
|
1955 |
}
|
1956 |
<?php if ($slider_row->preload_images) { ?>
|
1957 |
function wds_preload_<?php echo $wds; ?>(preload_key) {
|
|
|
1958 |
jQuery('<img />')
|
1959 |
-
.load(function() {
|
1960 |
-
|
1961 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1962 |
}
|
1963 |
wds_preload_<?php echo $wds; ?>(0);
|
1964 |
<?php } ?>
|
1382 |
return iterator;
|
1383 |
}
|
1384 |
function wds_change_image_<?php echo $wds; ?>(current_key, key, wds_data_<?php echo $wds; ?>, from_effect) {
|
1385 |
+
if (wds_data_<?php echo $wds; ?>[key]["is_video"] == 'image') {
|
1386 |
+
jQuery('<img />').attr("src", wds_data_<?php echo $wds; ?>[key]["image_url"])
|
1387 |
+
.load(function() {
|
1388 |
+
jQuery(this).remove();
|
1389 |
+
wds_change_image_when_loaded_<?php echo $wds; ?>(current_key, key, wds_data_<?php echo $wds; ?>, from_effect);
|
1390 |
+
})
|
1391 |
+
.error(function() {
|
1392 |
+
jQuery(this).remove();
|
1393 |
+
wds_change_image_when_loaded_<?php echo $wds; ?>(current_key, key, wds_data_<?php echo $wds; ?>, from_effect);
|
1394 |
+
});
|
1395 |
+
}
|
1396 |
+
else {
|
1397 |
+
wds_change_image_when_loaded_<?php echo $wds; ?>(current_key, key, wds_data_<?php echo $wds; ?>, from_effect);
|
1398 |
+
}
|
1399 |
+
}
|
1400 |
+
function wds_change_image_when_loaded_<?php echo $wds; ?>(current_key, key, wds_data_<?php echo $wds; ?>, from_effect) {
|
1401 |
<?php
|
1402 |
if ($slider_row->effect == 'zoomFade') {
|
1403 |
?>
|
1971 |
}
|
1972 |
<?php if ($slider_row->preload_images) { ?>
|
1973 |
function wds_preload_<?php echo $wds; ?>(preload_key) {
|
1974 |
+
if (wds_data_<?php echo $wds; ?>[preload_key]["is_video"] == 'image') {
|
1975 |
jQuery('<img />')
|
1976 |
+
.load(function() {
|
1977 |
+
jQuery(this).remove();
|
1978 |
+
if (preload_key < wds_data_<?php echo $wds; ?>.length - 1) wds_preload_<?php echo $wds; ?>(preload_key + 1);
|
1979 |
+
})
|
1980 |
+
.error(function() {
|
1981 |
+
jQuery(this).remove();
|
1982 |
+
if (preload_key < wds_data_<?php echo $wds; ?>.length - 1) wds_preload_<?php echo $wds; ?>(preload_key + 1);
|
1983 |
+
})
|
1984 |
+
.attr("src", wds_data_<?php echo $wds; ?>[preload_key]["image_url"]);
|
1985 |
+
}
|
1986 |
+
else {
|
1987 |
+
if (preload_key < wds_data_<?php echo $wds; ?>.length - 1) wds_preload_<?php echo $wds; ?>(preload_key + 1);
|
1988 |
+
}
|
1989 |
}
|
1990 |
wds_preload_<?php echo $wds; ?>(0);
|
1991 |
<?php } ?>
|
js/wds.js
CHANGED
@@ -2511,7 +2511,10 @@ function wds_add_slide() {
|
|
2511 |
else {
|
2512 |
var slideID = "pr_" + ++slides_count;
|
2513 |
}
|
2514 |
-
var order_id =
|
|
|
|
|
|
|
2515 |
var uploader_href_for_add_slide = uploader_href.replace('slideID', slideID);
|
2516 |
var uploader_href_for_add_layer = uploader_href_for_add_slide.replace('add_update_slide', 'add_layer');
|
2517 |
if (spider_uploader) {
|
2511 |
else {
|
2512 |
var slideID = "pr_" + ++slides_count;
|
2513 |
}
|
2514 |
+
var order_id = 1;
|
2515 |
+
if (typeof order_arr !== 'undefined' && order_arr.length > 0) {
|
2516 |
+
order_id = Math.max.apply(Math, order_arr) + 1;
|
2517 |
+
}
|
2518 |
var uploader_href_for_add_slide = uploader_href.replace('slideID', slideID);
|
2519 |
var uploader_href_for_add_layer = uploader_href_for_add_slide.replace('add_update_slide', 'add_layer');
|
2520 |
if (spider_uploader) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-slider-plugin.html
|
|
4 |
Tags: image slider, slider, slideshow, image, images, responsive, shortcode, widget, jquery, gallery, swipe, layer
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -160,6 +160,12 @@ After downloading the ZIP file of the slider plugin,
|
|
160 |
|
161 |
== Changelog ==
|
162 |
|
|
|
|
|
|
|
|
|
|
|
|
|
163 |
= 1.1.38 =
|
164 |
* Fixed: Slider display bug after previous update.
|
165 |
|
4 |
Tags: image slider, slider, slideshow, image, images, responsive, shortcode, widget, jquery, gallery, swipe, layer
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.5
|
7 |
+
Stable tag: 1.1.39
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
160 |
|
161 |
== Changelog ==
|
162 |
|
163 |
+
= 1.1.38 =
|
164 |
+
* Fixed: Minor bugs.
|
165 |
+
* Changed: Do not change the slide until slide loads.
|
166 |
+
* Fixed: Instagram slides.
|
167 |
+
* Fixed: Embed media by YouTube short url.
|
168 |
+
|
169 |
= 1.1.38 =
|
170 |
* Fixed: Slider display bug after previous update.
|
171 |
|
slider-wd.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Slider WD
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-slider-plugin.html
|
6 |
* Description: This is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.
|
7 |
-
* Version: 1.1.
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -14,7 +14,7 @@ define('WD_S_NAME', plugin_basename(dirname(__FILE__)));
|
|
14 |
define('WD_S_DIR', WP_PLUGIN_DIR . "/" . WD_S_NAME);
|
15 |
define('WD_S_URL', plugins_url(WD_S_NAME));
|
16 |
|
17 |
-
define('WD_S_VERSION', '1.1.
|
18 |
|
19 |
function wds_use_home_url() {
|
20 |
$home_url = str_replace("http://", "", home_url());
|
4 |
* Plugin Name: Slider WD
|
5 |
* Plugin URI: https://web-dorado.com/products/wordpress-slider-plugin.html
|
6 |
* Description: This is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.
|
7 |
+
* Version: 1.1.39
|
8 |
* Author: WebDorado
|
9 |
* Author URI: https://web-dorado.com/
|
10 |
* License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
|
14 |
define('WD_S_DIR', WP_PLUGIN_DIR . "/" . WD_S_NAME);
|
15 |
define('WD_S_URL', plugins_url(WD_S_NAME));
|
16 |
|
17 |
+
define('WD_S_VERSION', '1.1.39');
|
18 |
|
19 |
function wds_use_home_url() {
|
20 |
$home_url = str_replace("http://", "", home_url());
|