Version Description
- Fixed: Slider direction with two slides.
Download this release
Release Info
Developer | webdorado |
Plugin | Slider by WD – Responsive Slider |
Version | 1.1.80 |
Comparing to | |
See all releases |
Code changes from version 1.1.79 to 1.1.80
- frontend/views/WDSViewSlider.php +8 -9
- readme.txt +4 -1
- slider-wd.php +2 -2
frontend/views/WDSViewSlider.php
CHANGED
@@ -1507,7 +1507,7 @@ class WDSViewSlider {
|
|
1507 |
return;
|
1508 |
}
|
1509 |
if (btn == "") {
|
1510 |
-
var direction =
|
1511 |
var int_curr_key = parseInt(wds_current_key_<?php echo $wds; ?>);
|
1512 |
var int_key = parseInt(key);
|
1513 |
var last_pos = wds_data_<?php echo $wds; ?>.length - 1;
|
@@ -1517,14 +1517,18 @@ class WDSViewSlider {
|
|
1517 |
else if (int_curr_key == int_key) {
|
1518 |
return;
|
1519 |
}
|
|
|
1520 |
if (int_key == 0) {
|
1521 |
if (int_curr_key == last_pos) {
|
1522 |
direction = 'right';
|
1523 |
}
|
1524 |
}
|
|
|
1525 |
if (int_key == last_pos) {
|
1526 |
if (int_curr_key == 0) {
|
1527 |
-
|
|
|
|
|
1528 |
}
|
1529 |
}
|
1530 |
}
|
@@ -1533,13 +1537,8 @@ class WDSViewSlider {
|
|
1533 |
}
|
1534 |
if (<?php echo $enable_slideshow_autoplay; ?>) {
|
1535 |
if (<?php echo $twoway_slideshow; ?>) {
|
1536 |
-
|
1537 |
-
|
1538 |
-
}
|
1539 |
-
else if (direction == "right") {
|
1540 |
-
wds_global_btn_<?php echo $wds; ?> = "right";
|
1541 |
-
}
|
1542 |
-
}
|
1543 |
}
|
1544 |
/* Set active thumbnail position.*/
|
1545 |
wds_current_filmstrip_pos_<?php echo $wds; ?> = key * (jQuery(".wds_slideshow_filmstrip_thumbnail_<?php echo $wds; ?>").<?php echo $width_or_height; ?>() + 2 + 2 * 0);
|
1507 |
return;
|
1508 |
}
|
1509 |
if (btn == "") {
|
1510 |
+
var direction = "right";
|
1511 |
var int_curr_key = parseInt(wds_current_key_<?php echo $wds; ?>);
|
1512 |
var int_key = parseInt(key);
|
1513 |
var last_pos = wds_data_<?php echo $wds; ?>.length - 1;
|
1517 |
else if (int_curr_key == int_key) {
|
1518 |
return;
|
1519 |
}
|
1520 |
+
/* From last slide to first.*/
|
1521 |
if (int_key == 0) {
|
1522 |
if (int_curr_key == last_pos) {
|
1523 |
direction = 'right';
|
1524 |
}
|
1525 |
}
|
1526 |
+
/* From first slide to last if there are more than two slides in the slider.*/
|
1527 |
if (int_key == last_pos) {
|
1528 |
if (int_curr_key == 0) {
|
1529 |
+
if (last_pos > 1) {
|
1530 |
+
direction = 'left';
|
1531 |
+
}
|
1532 |
}
|
1533 |
}
|
1534 |
}
|
1537 |
}
|
1538 |
if (<?php echo $enable_slideshow_autoplay; ?>) {
|
1539 |
if (<?php echo $twoway_slideshow; ?>) {
|
1540 |
+
wds_global_btn_<?php echo $wds; ?> = direction;
|
1541 |
+
}
|
|
|
|
|
|
|
|
|
|
|
1542 |
}
|
1543 |
/* Set active thumbnail position.*/
|
1544 |
wds_current_filmstrip_pos_<?php echo $wds; ?> = key * (jQuery(".wds_slideshow_filmstrip_thumbnail_<?php echo $wds; ?>").<?php echo $width_or_height; ?>() + 2 + 2 * 0);
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-slider-plugin.html
|
|
4 |
Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gallery slider, images slider, Photo Slider, post slider, slider plugin
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.7
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -129,6 +129,9 @@ After downloading the ZIP file of the slider plugin,
|
|
129 |
|
130 |
== Changelog ==
|
131 |
|
|
|
|
|
|
|
132 |
= 1.1.79 =
|
133 |
* Changed: Minimum font size validation.
|
134 |
|
4 |
Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gallery slider, images slider, Photo Slider, post slider, slider plugin
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 4.7
|
7 |
+
Stable tag: 1.1.80
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
129 |
|
130 |
== Changelog ==
|
131 |
|
132 |
+
= 1.1.80 =
|
133 |
+
* Fixed: Slider direction with two slides.
|
134 |
+
|
135 |
= 1.1.79 =
|
136 |
* Changed: Minimum font size validation.
|
137 |
|
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.80
|
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.80');
|
18 |
|
19 |
function wds_use_home_url() {
|
20 |
$home_url = str_replace("http://", "", home_url());
|