Slider by WD – Responsive Slider - Version 1.0.18

Version Description

Fixed: Conflict with some themes.

Download this release

Release Info

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

Code changes from version 1.0.17 to 1.0.18

Files changed (3) hide show
  1. frontend/views/WDSViewSlider.php +185 -148
  2. readme.txt +6 -2
  3. slider-wd.php +2 -2
frontend/views/WDSViewSlider.php CHANGED
@@ -863,7 +863,9 @@ class WDSViewSlider {
863
  onclick="<?php echo $layer->link ? 'window.open(\'' . $layer->link . '\', \'' . ($layer->target_attr_layer ? '_blank' : '_self') . '\');' : ''; ?>event.stopPropagation();"
864
  wds_scale="<?php echo $layer->image_scale; ?>"
865
  wds_image_width="<?php echo $layer->image_width; ?>"
866
- wds_image_height="<?php echo $layer->image_height; ?>" />
 
 
867
  <?php
868
  break;
869
  }
@@ -960,7 +962,12 @@ class WDSViewSlider {
960
 
961
  <script>
962
  var wds_trans_in_progress_<?php echo $wds; ?> = false;
963
- var wds_transition_duration_<?php echo $wds; ?> = <?php echo (($slideshow_interval < 4) && ($slideshow_interval != 0)) ? ($slideshow_interval * 1000) / 4 : $slider_row->effect_duration; ?>;
 
 
 
 
 
964
  var wds_playInterval_<?php echo $wds; ?>;
965
  var progress = 0;
966
  var bottom_right_deggree_<?php echo $wds; ?>;
@@ -973,64 +980,72 @@ class WDSViewSlider {
973
  duration: <?php echo $slideshow_interval * 1000; ?>,
974
  step: function(now) {
975
  curent_time_deggree_<?php echo $wds; ?> = now;
976
- if (now >= 0 && now < 271) {
977
- jQuery('#top_right_<?php echo $wds; ?>').css({
978
- '-moz-transform':'rotate('+now+'deg)',
979
- '-webkit-transform':'rotate('+now+'deg)',
980
- '-o-transform':'rotate('+now+'deg)',
981
- '-ms-transform':'rotate('+now+'deg)',
982
- 'transform':'rotate('+now+'deg)',
 
983
 
984
- '-webkit-transform-origin': 'left bottom',
985
- '-ms-transform-origin': 'left bottom',
986
- '-moz-transform-origin': 'left bottom',
987
- 'transform-origin': 'left bottom'
988
- });
 
989
  }
990
- if (now >= 90 && now < 271) {
991
- bottom_right_deggree_<?php echo $wds; ?> = now - 90;
992
- jQuery('#bottom_right_<?php echo $wds; ?>').css({
993
- '-moz-transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
994
- '-webkit-transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
995
- '-o-transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
996
- '-ms-transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
997
- 'transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
 
998
 
999
- '-webkit-transform-origin': 'left top',
1000
- '-ms-transform-origin': 'left top',
1001
- '-moz-transform-origin': 'left top',
1002
- 'transform-origin': 'left top'
1003
- });
 
1004
  }
1005
- if (now >= 180 && now < 361) {
1006
- bottom_left_deggree_<?php echo $wds; ?> = now - 180;
1007
- jQuery('#bottom_left_<?php echo $wds; ?>').css({
1008
- '-moz-transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
1009
- '-webkit-transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
1010
- '-o-transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
1011
- '-ms-transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
1012
- 'transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
 
1013
 
1014
- '-webkit-transform-origin': 'right top',
1015
- '-ms-transform-origin': 'right top',
1016
- '-moz-transform-origin': 'right top',
1017
- 'transform-origin': 'right top'
1018
- });
 
1019
  }
1020
- if (now >= 270 && now < 361) {
1021
- top_left_deggree_<?php echo $wds; ?> = now - 270;
1022
- jQuery('#top_left_<?php echo $wds; ?>').css({
1023
- '-moz-transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
1024
- '-webkit-transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
1025
- '-o-transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
1026
- '-ms-transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
1027
- 'transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
 
1028
 
1029
- '-webkit-transform-origin': 'right bottom',
1030
- '-ms-transform-origin': 'right bottom',
1031
- '-moz-transform-origin': 'right bottom',
1032
- 'transform-origin': 'right bottom'
1033
- });
 
1034
  }
1035
  }
1036
  });
@@ -1392,75 +1407,77 @@ class WDSViewSlider {
1392
  }
1393
  jQuery(".wds_line_timer_<?php echo $wds; ?>").css({width: 0});
1394
  wds_<?php echo $slideshow_effect; ?>_<?php echo $wds; ?>(current_image_class, next_image_class, direction);
1395
- if (('<?php echo $slider_row->timer_bar_type; ?>' != 'none') && (<?php echo $enable_slideshow_autoplay; ?> || jQuery('.wds_ctrl_btn_<?php echo $wds; ?>').hasClass('fa-pause'))) {
1396
- if('<?php echo $slider_row->timer_bar_type; ?>' == 'top' || '<?php echo $slider_row->timer_bar_type; ?>' == 'bottom') {
1397
- if (!jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1398
- jQuery(".wds_line_timer_<?php echo $wds; ?>").animate({
1399
- width: "100%"
1400
- }, {
1401
- duration: <?php echo $slideshow_interval * 1000; ?>,
1402
- specialEasing: {width: "linear"}
1403
- });
1404
- }
1405
- }
1406
- else if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none') {
1407
- if (typeof circle_timer_animate_<?php echo $wds; ?> !== 'undefined') {
1408
- circle_timer_animate_<?php echo $wds; ?>.stop();
1409
  }
1410
- jQuery('#top_right_<?php echo $wds; ?>').css({
1411
- '-moz-transform':'rotate(0deg)',
1412
- '-webkit-transform':'rotate(0deg)',
1413
- '-o-transform':'rotate(0deg)',
1414
- '-ms-transform':'rotate(0deg)',
1415
- 'transform':'rotate(0deg)',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1416
 
1417
- '-webkit-transform-origin': 'left bottom',
1418
- '-ms-transform-origin': 'left bottom',
1419
- '-moz-transform-origin': 'left bottom',
1420
- 'transform-origin': 'left bottom'
1421
- });
1422
- jQuery('#bottom_right_<?php echo $wds; ?>').css({
1423
- '-moz-transform':'rotate(0deg)',
1424
- '-webkit-transform':'rotate(0deg)',
1425
- '-o-transform':'rotate(0deg)',
1426
- '-ms-transform':'rotate(0deg)',
1427
- 'transform':'rotate(0deg)',
1428
-
1429
- '-webkit-transform-origin': 'left top',
1430
- '-ms-transform-origin': 'left top',
1431
- '-moz-transform-origin': 'left top',
1432
- 'transform-origin': 'left top'
1433
- });
1434
- jQuery('#bottom_left_<?php echo $wds; ?>').css({
1435
- '-moz-transform':'rotate(0deg)',
1436
- '-webkit-transform':'rotate(0deg)',
1437
- '-o-transform':'rotate(0deg)',
1438
- '-ms-transform':'rotate(0deg)',
1439
- 'transform':'rotate(0deg)',
1440
-
1441
- '-webkit-transform-origin': 'right top',
1442
- '-ms-transform-origin': 'right top',
1443
- '-moz-transform-origin': 'right top',
1444
- 'transform-origin': 'right top'
1445
- });
1446
- jQuery('#top_left_<?php echo $wds; ?>').css({
1447
- '-moz-transform':'rotate(0deg)',
1448
- '-webkit-transform':'rotate(0deg)',
1449
- '-o-transform':'rotate(0deg)',
1450
- '-ms-transform':'rotate(0deg)',
1451
- 'transform':'rotate(0deg)',
1452
-
1453
- '-webkit-transform-origin': 'right bottom',
1454
- '-ms-transform-origin': 'right bottom',
1455
- '-moz-transform-origin': 'right bottom',
1456
- 'transform-origin': 'right bottom'
1457
- });
1458
- if (!jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1459
- /* Begin circle timer on next.*/
1460
- circle_timer_<?php echo $wds; ?>(0);
1461
- }
1462
- else {
1463
- curent_time_deggree_<?php echo $wds; ?> = 0;
1464
  }
1465
  }
1466
  }
@@ -1484,7 +1501,7 @@ class WDSViewSlider {
1484
  var slide_orig_width = <?php echo $image_width; ?>;
1485
  var slide_orig_height = <?php echo $image_height; ?>;
1486
  var slide_width = jQuery("#wds_container1_<?php echo $wds; ?>").parent().width();
1487
- if (slide_orig_width <= slide_width) {
1488
  slide_width = slide_orig_width;
1489
  }
1490
  var ratio = slide_width / slide_orig_width;
@@ -1678,11 +1695,15 @@ class WDSViewSlider {
1678
  jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("class", "wds_ctrl_btn_<?php echo $wds; ?> wds_slideshow_play_pause_<?php echo $wds; ?> fa fa-pause");
1679
 
1680
  /* Finish current animation and begin the other.*/
1681
- if (<?php echo $enable_slideshow_autoplay; ?> && ('<?php echo $slider_row->timer_bar_type; ?>' != 'top' && '<?php echo $slider_row->timer_bar_type; ?>' != 'bottom')) {
1682
- if (typeof circle_timer_animate_<?php echo $wds; ?> !== 'undefined') {
1683
- circle_timer_animate_<?php echo $wds; ?>.stop();
 
 
 
 
 
1684
  }
1685
- circle_timer_<?php echo $wds; ?>(curent_time_deggree_<?php echo $wds; ?>);
1686
  }
1687
  play_<?php echo $wds; ?>();
1688
  if (<?php echo $enable_slideshow_music ?>) {
@@ -1734,8 +1755,12 @@ class WDSViewSlider {
1734
  if (<?php echo $enable_slideshow_music ?>) {
1735
  document.getElementById("wds_audio_<?php echo $wds; ?>").play();
1736
  }
1737
- if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none' && '<?php echo $slider_row->timer_bar_type; ?>' != 'top' && '<?php echo $slider_row->timer_bar_type; ?>' != 'bottom') {
1738
- circle_timer_<?php echo $wds; ?>(0);
 
 
 
 
1739
  }
1740
  }
1741
  <?php if ($slider_row->preload_images) { ?>
@@ -1788,11 +1813,15 @@ class WDSViewSlider {
1788
  return;
1789
  }
1790
  play_<?php echo $wds; ?>();
1791
- if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none' && '<?php echo $slider_row->timer_bar_type; ?>' != 'bottom' && '<?php echo $slider_row->timer_bar_type; ?>' != 'top') {
1792
- if (typeof circle_timer_animate_<?php echo $wds; ?> !== 'undefined') {
1793
- circle_timer_animate_<?php echo $wds; ?>.stop();
 
 
 
 
 
1794
  }
1795
- circle_timer_<?php echo $wds; ?>(curent_time_deggree_<?php echo $wds; ?>);
1796
  }
1797
  if (<?php echo $enable_slideshow_music ?>) {
1798
  document.getElementById("wds_audio_<?php echo $wds; ?>").play();
@@ -1810,11 +1839,13 @@ class WDSViewSlider {
1810
  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');
1811
  }
1812
  /* Play video on layer in.*/
1813
- if ((wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_type"] == "video") && (wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_video_autoplay"] == "on")) {
1814
- 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 () {
1815
- jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');
1816
- jQuery(this)[0].contentWindow.postMessage('{ "method": "play" }', "*");
1817
- });
 
 
1818
  }
1819
  }, wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_start"]);
1820
  }
@@ -1834,13 +1865,15 @@ class WDSViewSlider {
1834
  }, wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_end"]);
1835
  }
1836
  function play_<?php echo $wds; ?>() {
1837
- if (('<?php echo $slider_row->timer_bar_type; ?>' != 'none') && (<?php echo $enable_slideshow_autoplay; ?> || jQuery('.wds_ctrl_btn_<?php echo $wds; ?>').hasClass('fa-pause'))) {
1838
- jQuery(".wds_line_timer_<?php echo $wds; ?>").animate({
1839
- width: "100%"
1840
- }, {
1841
- duration: <?php echo $slideshow_interval * 1000; ?>,
1842
- specialEasing: {width: "linear"}
1843
- });
 
 
1844
  }
1845
  window.clearInterval(wds_playInterval_<?php echo $wds; ?>);
1846
  /* Play.*/
@@ -1856,11 +1889,15 @@ class WDSViewSlider {
1856
  if (!jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1857
  if (<?php echo $enable_slideshow_autoplay; ?>) {
1858
  play_<?php echo $wds; ?>();
1859
- if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none' && '<?php echo $slider_row->timer_bar_type; ?>' != 'top' && '<?php echo $slider_row->timer_bar_type; ?>' != 'bottom') {
1860
- if (typeof circle_timer_animate_<?php echo $wds; ?> !== 'undefined') {
1861
- circle_timer_animate_<?php echo $wds; ?>.stop();
 
 
 
 
 
1862
  }
1863
- circle_timer_<?php echo $wds; ?>(curent_time_deggree_<?php echo $wds; ?>);
1864
  }
1865
  }
1866
  }
@@ -1895,7 +1932,7 @@ class WDSViewSlider {
1895
  die();
1896
  }
1897
  }
1898
-
1899
  ////////////////////////////////////////////////////////////////////////////////////////
1900
  // Getters & Setters //
1901
  ////////////////////////////////////////////////////////////////////////////////////////
863
  onclick="<?php echo $layer->link ? 'window.open(\'' . $layer->link . '\', \'' . ($layer->target_attr_layer ? '_blank' : '_self') . '\');' : ''; ?>event.stopPropagation();"
864
  wds_scale="<?php echo $layer->image_scale; ?>"
865
  wds_image_width="<?php echo $layer->image_width; ?>"
866
+ wds_image_height="<?php echo $layer->image_height; ?>"
867
+ alt="<?php echo $layer->alt; ?>"
868
+ title="<?php echo $layer->alt; ?>" />
869
  <?php
870
  break;
871
  }
962
 
963
  <script>
964
  var wds_trans_in_progress_<?php echo $wds; ?> = false;
965
+ var wds_transition_duration_<?php echo $wds; ?> = <?php echo $slider_row->effect_duration; ?>;
966
+ if (<?php echo $slideshow_interval; ?> < 4) {
967
+ if (<?php echo $slideshow_interval; ?> != 0) {
968
+ wds_transition_duration_<?php echo $wds; ?> = (<?php echo $slideshow_interval; ?> * 1000) / 4;
969
+ }
970
+ }
971
  var wds_playInterval_<?php echo $wds; ?>;
972
  var progress = 0;
973
  var bottom_right_deggree_<?php echo $wds; ?>;
980
  duration: <?php echo $slideshow_interval * 1000; ?>,
981
  step: function(now) {
982
  curent_time_deggree_<?php echo $wds; ?> = now;
983
+ if (now >= 0) {
984
+ if (now < 271) {
985
+ jQuery('#top_right_<?php echo $wds; ?>').css({
986
+ '-moz-transform':'rotate('+now+'deg)',
987
+ '-webkit-transform':'rotate('+now+'deg)',
988
+ '-o-transform':'rotate('+now+'deg)',
989
+ '-ms-transform':'rotate('+now+'deg)',
990
+ 'transform':'rotate('+now+'deg)',
991
 
992
+ '-webkit-transform-origin': 'left bottom',
993
+ '-ms-transform-origin': 'left bottom',
994
+ '-moz-transform-origin': 'left bottom',
995
+ 'transform-origin': 'left bottom'
996
+ });
997
+ }
998
  }
999
+ if (now >= 90) {
1000
+ if (now < 271) {
1001
+ bottom_right_deggree_<?php echo $wds; ?> = now - 90;
1002
+ jQuery('#bottom_right_<?php echo $wds; ?>').css({
1003
+ '-moz-transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
1004
+ '-webkit-transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
1005
+ '-o-transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
1006
+ '-ms-transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
1007
+ 'transform':'rotate('+bottom_right_deggree_<?php echo $wds; ?> +'deg)',
1008
 
1009
+ '-webkit-transform-origin': 'left top',
1010
+ '-ms-transform-origin': 'left top',
1011
+ '-moz-transform-origin': 'left top',
1012
+ 'transform-origin': 'left top'
1013
+ });
1014
+ }
1015
  }
1016
+ if (now >= 180) {
1017
+ if (now < 361) {
1018
+ bottom_left_deggree_<?php echo $wds; ?> = now - 180;
1019
+ jQuery('#bottom_left_<?php echo $wds; ?>').css({
1020
+ '-moz-transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
1021
+ '-webkit-transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
1022
+ '-o-transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
1023
+ '-ms-transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
1024
+ 'transform':'rotate('+bottom_left_deggree_<?php echo $wds; ?> +'deg)',
1025
 
1026
+ '-webkit-transform-origin': 'right top',
1027
+ '-ms-transform-origin': 'right top',
1028
+ '-moz-transform-origin': 'right top',
1029
+ 'transform-origin': 'right top'
1030
+ });
1031
+ }
1032
  }
1033
+ if (now >= 270) {
1034
+ if (now < 361) {
1035
+ top_left_deggree_<?php echo $wds; ?> = now - 270;
1036
+ jQuery('#top_left_<?php echo $wds; ?>').css({
1037
+ '-moz-transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
1038
+ '-webkit-transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
1039
+ '-o-transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
1040
+ '-ms-transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
1041
+ 'transform':'rotate('+top_left_deggree_<?php echo $wds; ?> +'deg)',
1042
 
1043
+ '-webkit-transform-origin': 'right bottom',
1044
+ '-ms-transform-origin': 'right bottom',
1045
+ '-moz-transform-origin': 'right bottom',
1046
+ 'transform-origin': 'right bottom'
1047
+ });
1048
+ }
1049
  }
1050
  }
1051
  });
1407
  }
1408
  jQuery(".wds_line_timer_<?php echo $wds; ?>").css({width: 0});
1409
  wds_<?php echo $slideshow_effect; ?>_<?php echo $wds; ?>(current_image_class, next_image_class, direction);
1410
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none') {
1411
+ if (<?php echo $enable_slideshow_autoplay; ?> || jQuery('.wds_ctrl_btn_<?php echo $wds; ?>').hasClass('fa-pause')) {
1412
+ if ('<?php echo $slider_row->timer_bar_type; ?>' == 'top' || '<?php echo $slider_row->timer_bar_type; ?>' == 'bottom') {
1413
+ if (!jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1414
+ jQuery(".wds_line_timer_<?php echo $wds; ?>").animate({
1415
+ width: "100%"
1416
+ }, {
1417
+ duration: <?php echo $slideshow_interval * 1000; ?>,
1418
+ specialEasing: {width: "linear"}
1419
+ });
1420
+ }
 
 
 
1421
  }
1422
+ else if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none') {
1423
+ if (typeof circle_timer_animate_<?php echo $wds; ?> !== 'undefined') {
1424
+ circle_timer_animate_<?php echo $wds; ?>.stop();
1425
+ }
1426
+ jQuery('#top_right_<?php echo $wds; ?>').css({
1427
+ '-moz-transform':'rotate(0deg)',
1428
+ '-webkit-transform':'rotate(0deg)',
1429
+ '-o-transform':'rotate(0deg)',
1430
+ '-ms-transform':'rotate(0deg)',
1431
+ 'transform':'rotate(0deg)',
1432
+
1433
+ '-webkit-transform-origin': 'left bottom',
1434
+ '-ms-transform-origin': 'left bottom',
1435
+ '-moz-transform-origin': 'left bottom',
1436
+ 'transform-origin': 'left bottom'
1437
+ });
1438
+ jQuery('#bottom_right_<?php echo $wds; ?>').css({
1439
+ '-moz-transform':'rotate(0deg)',
1440
+ '-webkit-transform':'rotate(0deg)',
1441
+ '-o-transform':'rotate(0deg)',
1442
+ '-ms-transform':'rotate(0deg)',
1443
+ 'transform':'rotate(0deg)',
1444
 
1445
+ '-webkit-transform-origin': 'left top',
1446
+ '-ms-transform-origin': 'left top',
1447
+ '-moz-transform-origin': 'left top',
1448
+ 'transform-origin': 'left top'
1449
+ });
1450
+ jQuery('#bottom_left_<?php echo $wds; ?>').css({
1451
+ '-moz-transform':'rotate(0deg)',
1452
+ '-webkit-transform':'rotate(0deg)',
1453
+ '-o-transform':'rotate(0deg)',
1454
+ '-ms-transform':'rotate(0deg)',
1455
+ 'transform':'rotate(0deg)',
1456
+
1457
+ '-webkit-transform-origin': 'right top',
1458
+ '-ms-transform-origin': 'right top',
1459
+ '-moz-transform-origin': 'right top',
1460
+ 'transform-origin': 'right top'
1461
+ });
1462
+ jQuery('#top_left_<?php echo $wds; ?>').css({
1463
+ '-moz-transform':'rotate(0deg)',
1464
+ '-webkit-transform':'rotate(0deg)',
1465
+ '-o-transform':'rotate(0deg)',
1466
+ '-ms-transform':'rotate(0deg)',
1467
+ 'transform':'rotate(0deg)',
1468
+
1469
+ '-webkit-transform-origin': 'right bottom',
1470
+ '-ms-transform-origin': 'right bottom',
1471
+ '-moz-transform-origin': 'right bottom',
1472
+ 'transform-origin': 'right bottom'
1473
+ });
1474
+ if (!jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1475
+ /* Begin circle timer on next.*/
1476
+ circle_timer_<?php echo $wds; ?>(0);
1477
+ }
1478
+ else {
1479
+ curent_time_deggree_<?php echo $wds; ?> = 0;
1480
+ }
 
 
 
 
 
 
 
 
 
 
 
1481
  }
1482
  }
1483
  }
1501
  var slide_orig_width = <?php echo $image_width; ?>;
1502
  var slide_orig_height = <?php echo $image_height; ?>;
1503
  var slide_width = jQuery("#wds_container1_<?php echo $wds; ?>").parent().width();
1504
+ if (slide_width > slide_orig_width) {
1505
  slide_width = slide_orig_width;
1506
  }
1507
  var ratio = slide_width / slide_orig_width;
1695
  jQuery(".wds_slideshow_play_pause_<?php echo $wds; ?>").attr("class", "wds_ctrl_btn_<?php echo $wds; ?> wds_slideshow_play_pause_<?php echo $wds; ?> fa fa-pause");
1696
 
1697
  /* Finish current animation and begin the other.*/
1698
+ if (<?php echo $enable_slideshow_autoplay; ?>) {
1699
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'top') {
1700
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'bottom') {
1701
+ if (typeof circle_timer_animate_<?php echo $wds; ?> !== 'undefined') {
1702
+ circle_timer_animate_<?php echo $wds; ?>.stop();
1703
+ }
1704
+ circle_timer_<?php echo $wds; ?>(curent_time_deggree_<?php echo $wds; ?>);
1705
+ }
1706
  }
 
1707
  }
1708
  play_<?php echo $wds; ?>();
1709
  if (<?php echo $enable_slideshow_music ?>) {
1755
  if (<?php echo $enable_slideshow_music ?>) {
1756
  document.getElementById("wds_audio_<?php echo $wds; ?>").play();
1757
  }
1758
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none') {
1759
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'top') {
1760
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'bottom') {
1761
+ circle_timer_<?php echo $wds; ?>(0);
1762
+ }
1763
+ }
1764
  }
1765
  }
1766
  <?php if ($slider_row->preload_images) { ?>
1813
  return;
1814
  }
1815
  play_<?php echo $wds; ?>();
1816
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none') {
1817
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'bottom') {
1818
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'top') {
1819
+ if (typeof circle_timer_animate_<?php echo $wds; ?> !== 'undefined') {
1820
+ circle_timer_animate_<?php echo $wds; ?>.stop();
1821
+ }
1822
+ circle_timer_<?php echo $wds; ?>(curent_time_deggree_<?php echo $wds; ?>);
1823
+ }
1824
  }
 
1825
  }
1826
  if (<?php echo $enable_slideshow_music ?>) {
1827
  document.getElementById("wds_audio_<?php echo $wds; ?>").play();
1839
  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');
1840
  }
1841
  /* Play video on layer in.*/
1842
+ if (wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_type"] == "video") {
1843
+ if (wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_video_autoplay"] == "on") {
1844
+ 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 () {
1845
+ jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}', '*');
1846
+ jQuery(this)[0].contentWindow.postMessage('{ "method": "play" }', "*");
1847
+ });
1848
+ }
1849
  }
1850
  }, wds_data_<?php echo $wds; ?>[key]["layer_" + j + "_start"]);
1851
  }
1865
  }, wds_data_<?php echo $wds; ?>[key]["layer_" + i + "_end"]);
1866
  }
1867
  function play_<?php echo $wds; ?>() {
1868
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none') {
1869
+ if (<?php echo $enable_slideshow_autoplay; ?> || jQuery('.wds_ctrl_btn_<?php echo $wds; ?>').hasClass('fa-pause')) {
1870
+ jQuery(".wds_line_timer_<?php echo $wds; ?>").animate({
1871
+ width: "100%"
1872
+ }, {
1873
+ duration: <?php echo $slideshow_interval * 1000; ?>,
1874
+ specialEasing: {width: "linear"}
1875
+ });
1876
+ }
1877
  }
1878
  window.clearInterval(wds_playInterval_<?php echo $wds; ?>);
1879
  /* Play.*/
1889
  if (!jQuery(".wds_ctrl_btn_<?php echo $wds; ?>").hasClass("fa-play")) {
1890
  if (<?php echo $enable_slideshow_autoplay; ?>) {
1891
  play_<?php echo $wds; ?>();
1892
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'none') {
1893
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'top') {
1894
+ if ('<?php echo $slider_row->timer_bar_type; ?>' != 'bottom') {
1895
+ if (typeof circle_timer_animate_<?php echo $wds; ?> !== 'undefined') {
1896
+ circle_timer_animate_<?php echo $wds; ?>.stop();
1897
+ }
1898
+ circle_timer_<?php echo $wds; ?>(curent_time_deggree_<?php echo $wds; ?>);
1899
+ }
1900
  }
 
1901
  }
1902
  }
1903
  }
1932
  die();
1933
  }
1934
  }
1935
+
1936
  ////////////////////////////////////////////////////////////////////////////////////////
1937
  // Getters & Setters //
1938
  ////////////////////////////////////////////////////////////////////////////////////////
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://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.2
7
- Stable tag: 1.0.17
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -18,6 +18,7 @@ https://www.youtube.com/watch?v=xebpM_-GwG0&index=1&list=PLnxWPiY5tLFWQf5XaEYYPZ
18
  [WordPress Slider Plugin](http://web-dorado.com/products/wordpress-slider-plugin.html)
19
  [User Manual](http://web-dorado.com/wordpress-slider-wd-guide-step-1.html)
20
  [Support Forum](http://web-dorado.com/forum/slider-plugin.html)
 
21
 
22
  Slider WD is an effective tool for adding responsive sliders to your website. The slider plugin can be added both as a widget and plugin, as well as be included in the theme for displaying the slider within the theme using PHP function. Slider WD allows adding both images and videos (currently supporting YouTube and Vimeo to be displayed as slider slides). The numerous transition effects and layer support enhance the functionality of the product.
23
 
@@ -51,7 +52,7 @@ The number of the slides for each slider is not limited. Various layers can be a
51
  Upgrade to [WordPress Slider Pro](http://web-dorado.com/products/wordpress-slider-plugin.html) to add features:
52
  * 26 transition effects for Slider
53
  * 38 layer effects
54
- * 3 types of Layers (text, image, social sharing)
55
  * Share feature for sliders (Google+, Tumblr, Twitter, Pinterest and Facebook)
56
  * Slider Filmstrip possibility
57
  * Navigation button/bullet styles
@@ -138,6 +139,9 @@ After downloading the ZIP file of the slider plugin,
138
 
139
  == Changelog ==
140
 
 
 
 
141
  = 1.0.17 =
142
  New: Slider Export/Import.
143
  Fixed: Delete slides whitout layers on slider delete.
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.2
7
+ Stable tag: 1.0.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
18
  [WordPress Slider Plugin](http://web-dorado.com/products/wordpress-slider-plugin.html)
19
  [User Manual](http://web-dorado.com/wordpress-slider-wd-guide-step-1.html)
20
  [Support Forum](http://web-dorado.com/forum/slider-plugin.html)
21
+ [How to change and modify Slider WD Settings](https://www.youtube.com/watch?v=Peny_dkHaMo&list=PLnxWPiY5tLFWQf5XaEYYPZj0gdggUrVxP&index=3)
22
 
23
  Slider WD is an effective tool for adding responsive sliders to your website. The slider plugin can be added both as a widget and plugin, as well as be included in the theme for displaying the slider within the theme using PHP function. Slider WD allows adding both images and videos (currently supporting YouTube and Vimeo to be displayed as slider slides). The numerous transition effects and layer support enhance the functionality of the product.
24
 
52
  Upgrade to [WordPress Slider Pro](http://web-dorado.com/products/wordpress-slider-plugin.html) to add features:
53
  * 26 transition effects for Slider
54
  * 38 layer effects
55
+ * 3 types of Layers (text, image, social sharing)- [Video Manual](https://www.youtube.com/watch?v=obnyK-Czf0k&list=PLnxWPiY5tLFWQf5XaEYYPZj0gdggUrVxP&index=2)
56
  * Share feature for sliders (Google+, Tumblr, Twitter, Pinterest and Facebook)
57
  * Slider Filmstrip possibility
58
  * Navigation button/bullet styles
139
 
140
  == Changelog ==
141
 
142
+ = 1.0.18 =
143
+ Fixed: Conflict with some themes.
144
+
145
  = 1.0.17 =
146
  New: Slider Export/Import.
147
  Fixed: Delete slides whitout layers on slider delete.
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.0.17
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -339,7 +339,7 @@ register_activation_hook(__FILE__, 'wds_activate');
339
 
340
  function wds_install() {
341
  $version = get_option("wds_version");
342
- $new_version = '1.0.17';
343
  if ($version && version_compare($version, $new_version, '<')) {
344
  require_once WD_S_DIR . "/sliders-update.php";
345
  wds_update($version);
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.0.18
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
339
 
340
  function wds_install() {
341
  $version = get_option("wds_version");
342
+ $new_version = '1.0.18';
343
  if ($version && version_compare($version, $new_version, '<')) {
344
  require_once WD_S_DIR . "/sliders-update.php";
345
  wds_update($version);