Slider by WD – Responsive Slider - Version 1.0.10

Version Description

Fixed: Slide change direction from 9 to 10. Fixed: Layers with "Start with slide" option.

Download this release

Release Info

Developer webdorado
Plugin Icon 128x128 Slider by WD – Responsive Slider
Version 1.0.10
Comparing to
See all releases

Code changes from version 1.0.9 to 1.0.10

Files changed (3) hide show
  1. frontend/views/WDSViewSlider.php +43 -69
  2. readme.txt +5 -1
  3. slider-wd.php +2 -2
frontend/views/WDSViewSlider.php CHANGED
@@ -112,9 +112,10 @@ class WDSViewSlider {
112
  $slide_ids[] += $slide_row->id;
113
  }
114
  $current_image_id = $slide_ids[array_rand($slide_ids)];
 
115
  }
116
  else {
117
- if ($slider_row->start_slide_num > 0 && $slider_row->start_slide_num <= count($slide_rows)) {
118
  $start_slide_num = $slider_row->start_slide_num - 1;
119
  }
120
  else {
@@ -969,7 +970,7 @@ class WDSViewSlider {
969
  duration: <?php echo $slideshow_interval * 1000; ?>,
970
  step: function(now) {
971
  curent_time_deggree_<?php echo $wds; ?> = now;
972
- if (now >= 0 && now <= 270) {
973
  jQuery('#top_right_<?php echo $wds; ?>').css({
974
  '-moz-transform':'rotate('+now+'deg)',
975
  '-webkit-transform':'rotate('+now+'deg)',
@@ -983,7 +984,7 @@ class WDSViewSlider {
983
  'transform-origin': 'left bottom'
984
  });
985
  }
986
- if (now >= 90 && now <= 270) {
987
  bottom_right_deggree_<?php echo $wds; ?> = now - 90;
988
  jQuery('#bottom_right_<?php echo $wds; ?>').css({
989
  '-moz-transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
@@ -998,7 +999,7 @@ class WDSViewSlider {
998
  'transform-origin': 'left top'
999
  });
1000
  }
1001
- if (now >= 180 && now <= 360) {
1002
  bottom_left_deggree_<?php echo $wds; ?> = now - 180;
1003
  jQuery('#bottom_left_<?php echo $wds; ?>').css({
1004
  '-moz-transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
@@ -1013,7 +1014,7 @@ class WDSViewSlider {
1013
  'transform-origin': 'right top'
1014
  });
1015
  }
1016
- if (now >= 270 && now <= 360) {
1017
  top_left_deggree_<?php echo $wds; ?> = now - 270;
1018
  jQuery('#top_left_<?php echo $wds; ?>').css({
1019
  '-moz-transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
@@ -1318,10 +1319,10 @@ class WDSViewSlider {
1318
  return;
1319
  }
1320
  var direction = 'right';
1321
- if (wds_current_key_<?php echo $wds; ?> > key) {
1322
  var direction = 'left';
1323
  }
1324
- else if (wds_current_key_<?php echo $wds; ?> == key) {
1325
  return;
1326
  }
1327
  /* Set active thumbnail position.*/
@@ -1372,43 +1373,13 @@ class WDSViewSlider {
1372
  }
1373
  }
1374
  }, wds_duration_for_clear_effects_<?php echo $wds; ?>);
1375
- /* Effects out part.*/
1376
- function set_layer_effect_out(i) {
1377
- wds_clear_layers_effects_out_<?php echo $wds; ?>[key][i] = setTimeout(function() {
1378
- if (wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_layer_effect_out"] != 'none') {
1379
- if (wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_type"] != 'social') {
1380
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_id"]).css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_duration_eff_out"] / 1000 + 's');
1381
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_id"]).removeClass().addClass( wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_layer_effect_out"] + ' animated');
1382
- }
1383
- else {
1384
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_id"]).css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_duration_eff_out"] / 1000 + 's');
1385
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_id"]).removeClass().addClass( wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_layer_effect_out"] + ' fa fa-' + wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_social_button"] + ' animated');
1386
- }
1387
- }
1388
- }, wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_end"]);
1389
- }
1390
- /* Effects in part.*/
1391
- function set_layer_effect_in(j) {
1392
- wds_clear_layers_effects_in_<?php echo $wds; ?>[key][j] = setTimeout(function() {
1393
- if (wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_type"] != 'social') {
1394
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_id"]).css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_duration_eff_out"] / 1000 + 's');
1395
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_id"]).removeClass().addClass( wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_layer_effect_in"] + ' animated');
1396
- }
1397
- else {
1398
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_id"]).css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_duration_eff_out"] / 1000 + 's');
1399
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_id"]).removeClass().addClass( wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_layer_effect_in"] + ' fa fa-' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_social_button"] + ' animated');
1400
- }
1401
- }, wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_start"]);
1402
- }
1403
  /* Loop through layers in.*/
1404
  for (var j = 0; j < next_slide_layers_count; j++) {
1405
- set_layer_effect_in(j);
1406
  }
1407
  /* Loop through layers out if pause button not pressed.*/
1408
- if (jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-pause")) {
1409
- for (var i = 0; i < next_slide_layers_count; i++) {
1410
- set_layer_effect_out(i);
1411
- }
1412
  }
1413
  setTimeout(function() {
1414
  if (typeof jQuery().finish !== 'undefined') {
@@ -1543,11 +1514,11 @@ class WDSViewSlider {
1543
  var wds_imageWidth = jQuery(this).attr("wds_image_width");
1544
  var wds_imageHeight = jQuery(this).attr("wds_image_height");
1545
  var wds_width = wds_imageWidth;
1546
- if (wds_origWidth <= wds_imageWidth) {
1547
  wds_width = wds_origWidth;
1548
  }
1549
  var wds_height = wds_imageHeight;
1550
- if (wds_origHeight <= wds_imageHeight) {
1551
  wds_height = wds_origHeight;
1552
  }
1553
  jQuery(this).css({
@@ -1560,7 +1531,7 @@ class WDSViewSlider {
1560
  height: (parseFloat(wds_imageHeight) * ratio) + "px"
1561
  });
1562
  }
1563
- else if (wds_origWidth <= wds_imageWidth || wds_origHeight <= wds_imageHeight) {
1564
  if (wds_origWidth / wds_imageWidth > wds_origHeight / wds_imageHeight) {
1565
  jQuery(this).css({
1566
  width: (parseFloat(wds_imageWidth) * ratio) + "px"
@@ -1585,6 +1556,7 @@ class WDSViewSlider {
1585
  })
1586
  });
1587
  }
 
1588
  function wds_genBgPos_<?php echo $wds; ?>() {
1589
  var bgSizeArray = [0, 70];
1590
  var bgSize = bgSizeArray[Math.floor(Math.random() * bgSizeArray.length)];
@@ -1613,8 +1585,9 @@ class WDSViewSlider {
1613
  });
1614
  }
1615
  jQuery(window).load(function () {
1616
- <?php if ($enable_slideshow_autoplay && $slider_row->stop_animation) {
1617
- ?>
 
1618
  jQuery("#wds_container1_<?php echo $wds; ?>").mouseover(function(e) {
1619
  wds_stop_animation_<?php echo $wds; ?>();
1620
  });
@@ -1631,8 +1604,9 @@ class WDSViewSlider {
1631
  }
1632
  wds_play_animation_<?php echo $wds; ?>();
1633
  });
1634
- <?php
1635
- } ?>
 
1636
  jQuery(".wds_slideshow_image_<?php echo $wds; ?> span, .wds_slideshow_image_<?php echo $wds; ?> i").each(function () {
1637
  jQuery(this).attr("wds_fpaddingl", jQuery(this).css("paddingLeft"));
1638
  jQuery(this).attr("wds_fpaddingr", jQuery(this).css("paddingRight"));
@@ -1770,15 +1744,15 @@ class WDSViewSlider {
1770
  }
1771
  wds_preload_<?php echo $wds; ?>(0);
1772
  <?php } ?>
1773
- var first_slide_layers_count_<?php echo $wds; ?> = wds_data_<?php echo $wds; ?>[0]["slide_layers_count"];
1774
  if (first_slide_layers_count_<?php echo $wds; ?>) {
1775
  /* Loop through layers in.*/
1776
  for (var j = 0; j < first_slide_layers_count_<?php echo $wds; ?>; j++) {
1777
- set_layer_effect_in_onload_<?php echo $wds; ?>(j);
1778
  }
1779
  /* Loop through layers out.*/
1780
  for (var i = 0; i < first_slide_layers_count_<?php echo $wds; ?>; i++) {
1781
- set_layer_effect_out_onload_<?php echo $wds; ?>(i);
1782
  }
1783
  }
1784
  });
@@ -1822,39 +1796,39 @@ class WDSViewSlider {
1822
  }
1823
  }
1824
  /* Effects in part.*/
1825
- function set_layer_effect_in_onload_<?php echo $wds; ?>(j) {
1826
- wds_clear_layers_effects_in_<?php echo $wds; ?>[0][j] = setTimeout(function(){
1827
- if (wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_type"] != 'social') {
1828
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[0]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_id"]).css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_duration_eff_out"] / 1000 + 's');
1829
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[0]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_id"]).removeClass().addClass( wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_layer_effect_in"] + ' animated');
1830
  }
1831
  else {
1832
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[0]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_id"]).css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_duration_eff_out"] / 1000 + 's');
1833
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[0]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_id"]).removeClass().addClass( wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_layer_effect_in"] + ' fa fa-' + wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_social_button"] + ' animated');
1834
  }
1835
  /* Play video on layer in.*/
1836
- if ((wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_type"] == "video") && (wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_video_autoplay"] == "on")) {
1837
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[0]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_id"]).find("iframe").each(function () {
1838
  jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');
1839
  jQuery(this)[0].contentWindow.postMessage('{ "method": "play" }', "*");
1840
  });
1841
  }
1842
- }, wds_data_<?php echo $wds; ?>[0]["layer_" + j + "_start"]);
1843
  }
1844
  /* Effects out part.*/
1845
- function set_layer_effect_out_onload_<?php echo $wds; ?>(i) {
1846
- wds_clear_layers_effects_out_<?php echo $wds; ?>[0][i] = setTimeout(function() {
1847
- if (wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_layer_effect_out"] != 'none') {
1848
- if (wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_type"] != 'social') {
1849
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[0]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_id"]).css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_duration_eff_out"] / 1000 + 's');
1850
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[0]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_id"]).removeClass().addClass( wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_layer_effect_out"] + ' animated');
1851
  }
1852
  else {
1853
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[0]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_id"]).css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_duration_eff_out"] / 1000 + 's');
1854
- jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[0]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_id"]).removeClass().addClass( wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_layer_effect_out"] + ' fa fa-' + wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_social_button"] + ' animated');
1855
  }
1856
  }
1857
- }, wds_data_<?php echo $wds; ?>[0]["layer_" + i + "_end"]);
1858
  }
1859
  function play_<?php echo $wds; ?>() {
1860
  if (('<?php echo $slider_row->timer_bar_type; ?>' != 'none') && (<?php echo $enable_slideshow_autoplay; ?> || jQuery('.wds_ctrl_btn_<?php echo $wds; ?>').hasClass('fa-pause'))) {
112
  $slide_ids[] += $slide_row->id;
113
  }
114
  $current_image_id = $slide_ids[array_rand($slide_ids)];
115
+ $start_slide_num = array_search($current_image_id, $slide_ids);
116
  }
117
  else {
118
+ if ($slider_row->start_slide_num > 0 && $slider_row->start_slide_num <= $slides_count) {
119
  $start_slide_num = $slider_row->start_slide_num - 1;
120
  }
121
  else {
970
  duration: <?php echo $slideshow_interval * 1000; ?>,
971
  step: function(now) {
972
  curent_time_deggree_<?php echo $wds; ?> = now;
973
+ if (now >= 0 && now < 271) {
974
  jQuery('#top_right_<?php echo $wds; ?>').css({
975
  '-moz-transform':'rotate('+now+'deg)',
976
  '-webkit-transform':'rotate('+now+'deg)',
984
  'transform-origin': 'left bottom'
985
  });
986
  }
987
+ if (now >= 90 && now < 271) {
988
  bottom_right_deggree_<?php echo $wds; ?> = now - 90;
989
  jQuery('#bottom_right_<?php echo $wds; ?>').css({
990
  '-moz-transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
999
  'transform-origin': 'left top'
1000
  });
1001
  }
1002
+ if (now >= 180 && now < 361) {
1003
  bottom_left_deggree_<?php echo $wds; ?> = now - 180;
1004
  jQuery('#bottom_left_<?php echo $wds; ?>').css({
1005
  '-moz-transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
1014
  'transform-origin': 'right top'
1015
  });
1016
  }
1017
+ if (now >= 270 && now < 361) {
1018
  top_left_deggree_<?php echo $wds; ?> = now - 270;
1019
  jQuery('#top_left_<?php echo $wds; ?>').css({
1020
  '-moz-transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
1319
  return;
1320
  }
1321
  var direction = 'right';
1322
+ if (parseInt(wds_current_key_<?php echo $wds; ?>) > parseInt(key)) {
1323
  var direction = 'left';
1324
  }
1325
+ else if (parseInt(wds_current_key_<?php echo $wds; ?>) == parseInt(key)) {
1326
  return;
1327
  }
1328
  /* Set active thumbnail position.*/
1373
  }
1374
  }
1375
  }, wds_duration_for_clear_effects_<?php echo $wds; ?>);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1376
  /* Loop through layers in.*/
1377
  for (var j = 0; j < next_slide_layers_count; j++) {
1378
+ wds_set_layer_effect_in_<?php echo $wds; ?>(j, key);
1379
  }
1380
  /* Loop through layers out if pause button not pressed.*/
1381
+ for (var i = 0; i < next_slide_layers_count; i++) {
1382
+ wds_set_layer_effect_out_<?php echo $wds; ?>(i, key);
 
 
1383
  }
1384
  setTimeout(function() {
1385
  if (typeof jQuery().finish !== 'undefined') {
1514
  var wds_imageWidth = jQuery(this).attr("wds_image_width");
1515
  var wds_imageHeight = jQuery(this).attr("wds_image_height");
1516
  var wds_width = wds_imageWidth;
1517
+ if (wds_imageWidth > wds_origWidth) {
1518
  wds_width = wds_origWidth;
1519
  }
1520
  var wds_height = wds_imageHeight;
1521
+ if (wds_imageHeight > wds_origHeight) {
1522
  wds_height = wds_origHeight;
1523
  }
1524
  jQuery(this).css({
1531
  height: (parseFloat(wds_imageHeight) * ratio) + "px"
1532
  });
1533
  }
1534
+ else if (wds_imageWidth > wds_origWidth || wds_imageHeight > wds_origHeight) {
1535
  if (wds_origWidth / wds_imageWidth > wds_origHeight / wds_imageHeight) {
1536
  jQuery(this).css({
1537
  width: (parseFloat(wds_imageWidth) * ratio) + "px"
1556
  })
1557
  });
1558
  }
1559
+ /* Generate background position for Zoom Fade effect.*/
1560
  function wds_genBgPos_<?php echo $wds; ?>() {
1561
  var bgSizeArray = [0, 70];
1562
  var bgSize = bgSizeArray[Math.floor(Math.random() * bgSizeArray.length)];
1585
  });
1586
  }
1587
  jQuery(window).load(function () {
1588
+ <?php
1589
+ if ($enable_slideshow_autoplay && $slider_row->stop_animation) {
1590
+ ?>
1591
  jQuery("#wds_container1_<?php echo $wds; ?>").mouseover(function(e) {
1592
  wds_stop_animation_<?php echo $wds; ?>();
1593
  });
1604
  }
1605
  wds_play_animation_<?php echo $wds; ?>();
1606
  });
1607
+ <?php
1608
+ }
1609
+ ?>
1610
  jQuery(".wds_slideshow_image_<?php echo $wds; ?> span, .wds_slideshow_image_<?php echo $wds; ?> i").each(function () {
1611
  jQuery(this).attr("wds_fpaddingl", jQuery(this).css("paddingLeft"));
1612
  jQuery(this).attr("wds_fpaddingr", jQuery(this).css("paddingRight"));
1744
  }
1745
  wds_preload_<?php echo $wds; ?>(0);
1746
  <?php } ?>
1747
+ var first_slide_layers_count_<?php echo $wds; ?> = wds_data_<?php echo $wds; ?>[<?php echo $start_slide_num; ?>]["slide_layers_count"];
1748
  if (first_slide_layers_count_<?php echo $wds; ?>) {
1749
  /* Loop through layers in.*/
1750
  for (var j = 0; j < first_slide_layers_count_<?php echo $wds; ?>; j++) {
1751
+ wds_set_layer_effect_in_<?php echo $wds; ?>(j, <?php echo $start_slide_num; ?>);
1752
  }
1753
  /* Loop through layers out.*/
1754
  for (var i = 0; i < first_slide_layers_count_<?php echo $wds; ?>; i++) {
1755
+ wds_set_layer_effect_out_<?php echo $wds; ?>(i, <?php echo $start_slide_num; ?>);
1756
  }
1757
  }
1758
  });
1796
  }
1797
  }
1798
  /* Effects in part.*/
1799
+ function wds_set_layer_effect_in_<?php echo $wds; ?>(j, key) {
1800
+ wds_clear_layers_effects_in_<?php echo $wds; ?>[key][j] = setTimeout(function(){
1801
+ if (wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_type"] != 'social') {
1802
+ jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_id"]).css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_duration_eff_out"] / 1000 + 's');
1803
+ jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_id"]).removeClass().addClass( wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_layer_effect_in"] + ' animated');
1804
  }
1805
  else {
1806
+ jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_id"]).css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_duration_eff_out"] / 1000 + 's');
1807
+ jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_id"]).removeClass().addClass( wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_layer_effect_in"] + ' fa fa-' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_social_button"] + ' animated');
1808
  }
1809
  /* Play video on layer in.*/
1810
+ if ((wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_type"] == "video") && (wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_video_autoplay"] == "on")) {
1811
+ jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_id"]).find("iframe").each(function () {
1812
  jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');
1813
  jQuery(this)[0].contentWindow.postMessage('{ "method": "play" }', "*");
1814
  });
1815
  }
1816
+ }, wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_start"]);
1817
  }
1818
  /* Effects out part.*/
1819
+ function wds_set_layer_effect_out_<?php echo $wds; ?>(i, key) {
1820
+ wds_clear_layers_effects_out_<?php echo $wds; ?>[key][i] = setTimeout(function() {
1821
+ if (wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_layer_effect_out"] != 'none') {
1822
+ if (wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_type"] != 'social') {
1823
+ jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_id"]).css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_duration_eff_out"] / 1000 + 's');
1824
+ jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_id"]).removeClass().addClass( wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_layer_effect_out"] + ' animated');
1825
  }
1826
  else {
1827
+ jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_id"]).css('-webkit-animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_duration_eff_out"] / 1000 + 's').css('animation-duration' , wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_duration_eff_out"] / 1000 + 's');
1828
+ jQuery('#wds_<?php echo $wds; ?>_slide' + wds_data_<?php echo $wds; ?>[key]["id"] + '_layer' + wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_id"]).removeClass().addClass( wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_layer_effect_out"] + ' fa fa-' + wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_social_button"] + ' animated');
1829
  }
1830
  }
1831
+ }, wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_end"]);
1832
  }
1833
  function play_<?php echo $wds; ?>() {
1834
  if (('<?php echo $slider_row->timer_bar_type; ?>' != 'none') && (<?php echo $enable_slideshow_autoplay; ?> || jQuery('.wds_ctrl_btn_<?php echo $wds; ?>').hasClass('fa-pause'))) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://web-dorado.com/products/wordpress-slider-plugin.html
4
  Tags: best slider plugin, carousel, carousel slider, coin slider, content slider, content slideshow, custom video slider, flex slider, free video slider, free video slideshow, Horizontal slider, Image Rotator, image slider, image slideshow, javascript slider, javascript slideshow, jquery slider, jquery slideshow, Photo Slider, posts slider, responsive slider, responsive slideshow, sidebar, slide, slide show, slider, slider plugin, slider widget, slides, slideshow,slideshow manager, slideshow plugin, vertical slider, video slider, video slideshow,vimeo slideshow, vimeo slider, widget slider, widget slideshow, wordpress slider, wordpress slideshow, wp slider, youtube slider, youtube slideshow, post slider, fullscreen Slider, css3 slider, responsive image slider, banner slider, social slider, cycle slider, text slider, revolution slider, thumbnail slider, touch slider, sliders, parallax slider, 3D slider, coinslider, featured-content-slider, image, images, picture, pictures, picture slider, responsive, shortcode, widget, vertical slides, autoplay, auto, jquery, rotate, flexslider, gallery, photo gallery, javascript, rotator, wordpress picture slider, wordpress responsive slider, animation, best slider, fullwidth slider, mobile slider, swipe, layer, layer slider, product slider
5
  Requires at least: 3.4
6
  Tested up to: 4.1
7
- Stable tag: 1.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -136,6 +136,10 @@ After downloading the ZIP file of the slider plugin,
136
 
137
  == Changelog ==
138
 
 
 
 
 
139
  = 1.0.9 =
140
  Update licensing page
141
 
4
  Tags: best slider plugin, carousel, carousel slider, coin slider, content slider, content slideshow, custom video slider, flex slider, free video slider, free video slideshow, Horizontal slider, Image Rotator, image slider, image slideshow, javascript slider, javascript slideshow, jquery slider, jquery slideshow, Photo Slider, posts slider, responsive slider, responsive slideshow, sidebar, slide, slide show, slider, slider plugin, slider widget, slides, slideshow,slideshow manager, slideshow plugin, vertical slider, video slider, video slideshow,vimeo slideshow, vimeo slider, widget slider, widget slideshow, wordpress slider, wordpress slideshow, wp slider, youtube slider, youtube slideshow, post slider, fullscreen Slider, css3 slider, responsive image slider, banner slider, social slider, cycle slider, text slider, revolution slider, thumbnail slider, touch slider, sliders, parallax slider, 3D slider, coinslider, featured-content-slider, image, images, picture, pictures, picture slider, responsive, shortcode, widget, vertical slides, autoplay, auto, jquery, rotate, flexslider, gallery, photo gallery, javascript, rotator, wordpress picture slider, wordpress responsive slider, animation, best slider, fullwidth slider, mobile slider, swipe, layer, layer slider, product slider
5
  Requires at least: 3.4
6
  Tested up to: 4.1
7
+ Stable tag: 1.0.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
136
 
137
  == Changelog ==
138
 
139
+ = 1.0.10 =
140
+ Fixed: Slide change direction from 9 to 10.
141
+ Fixed: Layers with "Start with slide" option.
142
+
143
  = 1.0.9 =
144
  Update licensing page
145
 
slider-wd.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Slider WD
5
  * Plugin URI: http://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.0.9
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -319,7 +319,7 @@ register_activation_hook(__FILE__, 'wds_activate');
319
 
320
  function wds_install() {
321
  $version = get_option("wds_version");
322
- $new_version = '1.0.9';
323
  if ($version && version_compare($version, $new_version, '<')) {
324
  require_once WD_S_DIR . "/sliders-update.php";
325
  wds_update($version);
4
  * Plugin Name: Slider WD
5
  * Plugin URI: http://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.0.10
8
  * Author: WebDorado
9
  * Author URI: http://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
319
 
320
  function wds_install() {
321
  $version = get_option("wds_version");
322
+ $new_version = '1.0.10';
323
  if ($version && version_compare($version, $new_version, '<')) {
324
  require_once WD_S_DIR . "/sliders-update.php";
325
  wds_update($version);