Slider by WD – Responsive Slider - Version 1.1.32

Version Description

  • Fixed: Conflict with "Wordfence Security" plugin.
  • Added: Hotspot text on click/hover(optional).
Download this release

Release Info

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

Code changes from version 1.1.31 to 1.1.32

filemanager/UploadHandler.php CHANGED
@@ -19,8 +19,11 @@ else {
19
  die('Access Denied');
20
  }
21
 
 
 
 
22
  $upload_handler = new UploadHandler(array(
23
- 'upload_dir' => (isset($_GET['dir']) ? esc_html($_GET['dir']) : ''),
24
  'accept_file_types' => '/\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|zip)$/i'
25
  ));
26
 
19
  die('Access Denied');
20
  }
21
 
22
+ require_once(WD_S_DIR . '/filemanager/controller.php');
23
+ $controller = new FilemanagerController();
24
+
25
  $upload_handler = new UploadHandler(array(
26
+ 'upload_dir' => $controller->uploads_dir . (isset($_GET['dir']) ? esc_html($_GET['dir']) : ''),
27
  'accept_file_types' => '/\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|zip)$/i'
28
  ));
29
 
filemanager/view.php CHANGED
@@ -294,7 +294,7 @@ class FilemanagerView {
294
  <div id="btnBrowseContainer">
295
  <?php
296
  $query_url = wp_nonce_url(admin_url('admin-ajax.php'), 'wds_UploadHandler', 'nonce_wd');
297
- $query_url = add_query_arg(array('action' => 'wds_UploadHandler', 'dir' => $this->controller->get_uploads_dir() . '/' . (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : '') . '/'), $query_url);
298
  ?>
299
  <input id="jQueryUploader" type="file" name="files[]"
300
  data-url="<?php echo $query_url; ?>"
294
  <div id="btnBrowseContainer">
295
  <?php
296
  $query_url = wp_nonce_url(admin_url('admin-ajax.php'), 'wds_UploadHandler', 'nonce_wd');
297
+ $query_url = add_query_arg(array('action' => 'wds_UploadHandler', 'dir' => (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : '') . '/'), $query_url);
298
  ?>
299
  <input id="jQueryUploader" type="file" name="files[]"
300
  data-url="<?php echo $query_url; ?>"
frontend/views/WDSViewSlider.php CHANGED
@@ -963,7 +963,7 @@ class WDSViewSlider {
963
  <div class="wds_btn_cont wds_contTable">
964
  <span class="wds_btn_cont wds_contTableCell" style="position: relative; text-align: left;">
965
  <span class="wds_left_btn_cont">
966
- <span class="wds_left-ico_<?php echo $wds; ?>" onclick="wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) >= 0 ? (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length : wds_data_<?php echo $wds; ?>.length - 1, wds_data_<?php echo $wds; ?>); return false;">
967
  <?php
968
  if ($slider_row->rl_butt_img_or_not == 'style') {
969
  ?>
@@ -980,7 +980,7 @@ class WDSViewSlider {
980
  <div class="wds_btn_cont wds_contTable">
981
  <span class="wds_btn_cont wds_contTableCell" style="position: relative; text-align: right;">
982
  <span class="wds_right_btn_cont">
983
- <span class="wds_right-ico_<?php echo $wds; ?>" onclick="wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) + iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length, wds_data_<?php echo $wds; ?>); return false;">
984
  <?php
985
  if ($slider_row->rl_butt_img_or_not == 'style') {
986
  ?>
@@ -1364,7 +1364,7 @@ class WDSViewSlider {
1364
  function wds_scaleIn_<?php echo $wds; ?>(current_image_class, next_image_class, direction) {
1365
  wds_grid_<?php echo $wds; ?>(1, 1, 0, 0, 0, 0.5, 0, current_image_class, next_image_class, direction, 0, 0, 'ease-in-out');
1366
  }
1367
- function iterator_<?php echo $wds; ?>() {
1368
  var iterator = 1;
1369
  if (<?php echo $enable_slideshow_shuffle; ?>) {
1370
  iterator = Math.floor((wds_data_<?php echo $wds; ?>.length - 1) * Math.random() + 1);
@@ -1809,7 +1809,7 @@ class WDSViewSlider {
1809
  if (typeof jQuery().swiperight !== 'undefined') {
1810
  if (jQuery.isFunction(jQuery().swiperight)) {
1811
  jQuery('#wds_container1_<?php echo $wds; ?>').swiperight(function () {
1812
- wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) >= 0 ? (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length : wds_data_<?php echo $wds; ?>.length - 1, wds_data_<?php echo $wds; ?>);
1813
  <?php if(isset($callback_items["onSwipeS"])) echo $callback_items["onSwipeS"]; ?>
1814
  return false;
1815
  });
@@ -1818,7 +1818,7 @@ class WDSViewSlider {
1818
  if (typeof jQuery().swipeleft !== 'undefined') {
1819
  if (jQuery.isFunction(jQuery().swipeleft)) {
1820
  jQuery('#wds_container1_<?php echo $wds; ?>').swipeleft(function () {
1821
- wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) + iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length, wds_data_<?php echo $wds; ?>);
1822
  <?php if(isset($callback_items["onSwipeS"])) echo $callback_items["onSwipeS"]; ?>
1823
  return false;
1824
  });
@@ -1900,11 +1900,11 @@ class WDSViewSlider {
1900
  var delta = evt.detail ? evt.detail*(-40) : evt.wheelDelta; /* Check for detail first, because it is used by Opera and FF.*/
1901
  if (delta > 0) {
1902
  /* Scroll up.*/
1903
- wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) >= 0 ? (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length : wds_data_<?php echo $wds; ?>.length - 1, wds_data_<?php echo $wds; ?>);
1904
  }
1905
  else {
1906
  /* Scroll down.*/
1907
- wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) + iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length, wds_data_<?php echo $wds; ?>);
1908
  }
1909
  return false;
1910
  });
@@ -1913,10 +1913,10 @@ class WDSViewSlider {
1913
  if (<?php echo $keyboard_nav; ?>) {
1914
  jQuery(document).on('keydown', function (e) {
1915
  if (e.keyCode === 39 || e.keyCode === 38) { /* Right arrow.*/
1916
- wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) + iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length, wds_data_<?php echo $wds; ?>);
1917
  }
1918
  else if (e.keyCode === 37 || e.keyCode === 40) { /* Left arrow.*/
1919
- wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) >= 0 ? (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length : wds_data_<?php echo $wds; ?>.length - 1, wds_data_<?php echo $wds; ?>);
1920
  }
1921
  else if (e.keyCode === 32) { /* Space.*/
1922
  wds_play_pause_<?php echo $wds; ?>();
963
  <div class="wds_btn_cont wds_contTable">
964
  <span class="wds_btn_cont wds_contTableCell" style="position: relative; text-align: left;">
965
  <span class="wds_left_btn_cont">
966
+ <span class="wds_left-ico_<?php echo $wds; ?>" onclick="wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - wds_iterator_<?php echo $wds; ?>()) >= 0 ? (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - wds_iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length : wds_data_<?php echo $wds; ?>.length - 1, wds_data_<?php echo $wds; ?>); return false;">
967
  <?php
968
  if ($slider_row->rl_butt_img_or_not == 'style') {
969
  ?>
980
  <div class="wds_btn_cont wds_contTable">
981
  <span class="wds_btn_cont wds_contTableCell" style="position: relative; text-align: right;">
982
  <span class="wds_right_btn_cont">
983
+ <span class="wds_right-ico_<?php echo $wds; ?>" onclick="wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) + wds_iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length, wds_data_<?php echo $wds; ?>); return false;">
984
  <?php
985
  if ($slider_row->rl_butt_img_or_not == 'style') {
986
  ?>
1364
  function wds_scaleIn_<?php echo $wds; ?>(current_image_class, next_image_class, direction) {
1365
  wds_grid_<?php echo $wds; ?>(1, 1, 0, 0, 0, 0.5, 0, current_image_class, next_image_class, direction, 0, 0, 'ease-in-out');
1366
  }
1367
+ function wds_iterator_<?php echo $wds; ?>() {
1368
  var iterator = 1;
1369
  if (<?php echo $enable_slideshow_shuffle; ?>) {
1370
  iterator = Math.floor((wds_data_<?php echo $wds; ?>.length - 1) * Math.random() + 1);
1809
  if (typeof jQuery().swiperight !== 'undefined') {
1810
  if (jQuery.isFunction(jQuery().swiperight)) {
1811
  jQuery('#wds_container1_<?php echo $wds; ?>').swiperight(function () {
1812
+ wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - wds_iterator_<?php echo $wds; ?>()) >= 0 ? (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - wds_iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length : wds_data_<?php echo $wds; ?>.length - 1, wds_data_<?php echo $wds; ?>);
1813
  <?php if(isset($callback_items["onSwipeS"])) echo $callback_items["onSwipeS"]; ?>
1814
  return false;
1815
  });
1818
  if (typeof jQuery().swipeleft !== 'undefined') {
1819
  if (jQuery.isFunction(jQuery().swipeleft)) {
1820
  jQuery('#wds_container1_<?php echo $wds; ?>').swipeleft(function () {
1821
+ wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) + wds_iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length, wds_data_<?php echo $wds; ?>);
1822
  <?php if(isset($callback_items["onSwipeS"])) echo $callback_items["onSwipeS"]; ?>
1823
  return false;
1824
  });
1900
  var delta = evt.detail ? evt.detail*(-40) : evt.wheelDelta; /* Check for detail first, because it is used by Opera and FF.*/
1901
  if (delta > 0) {
1902
  /* Scroll up.*/
1903
+ wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - wds_iterator_<?php echo $wds; ?>()) >= 0 ? (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - wds_iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length : wds_data_<?php echo $wds; ?>.length - 1, wds_data_<?php echo $wds; ?>);
1904
  }
1905
  else {
1906
  /* Scroll down.*/
1907
+ wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) + wds_iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length, wds_data_<?php echo $wds; ?>);
1908
  }
1909
  return false;
1910
  });
1913
  if (<?php echo $keyboard_nav; ?>) {
1914
  jQuery(document).on('keydown', function (e) {
1915
  if (e.keyCode === 39 || e.keyCode === 38) { /* Right arrow.*/
1916
+ wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) + wds_iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length, wds_data_<?php echo $wds; ?>);
1917
  }
1918
  else if (e.keyCode === 37 || e.keyCode === 40) { /* Left arrow.*/
1919
+ wds_change_image_<?php echo $wds; ?>(parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()), (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - wds_iterator_<?php echo $wds; ?>()) >= 0 ? (parseInt(jQuery('#wds_current_image_key_<?php echo $wds; ?>').val()) - wds_iterator_<?php echo $wds; ?>()) % wds_data_<?php echo $wds; ?>.length : wds_data_<?php echo $wds; ?>.length - 1, wds_data_<?php echo $wds; ?>);
1920
  }
1921
  else if (e.keyCode === 32) { /* Space.*/
1922
  wds_play_pause_<?php echo $wds; ?>();
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.31
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -160,6 +160,10 @@ After downloading the ZIP file of the slider plugin,
160
 
161
  == Changelog ==
162
 
 
 
 
 
163
  = 1.1.31 =
164
  * Fixed: Add post page styles on Wordpress 4.5
165
  * Fixed: Undefined iframes in frontend.
@@ -531,25 +535,24 @@ So, please try the following: make sure to upload photos without using any link
531
 
532
  ==Wordpress Slider WD Step by step guide==
533
 
534
- = Step 1: Installing the Slider WD. =
535
-
536
- 1.1 Minimum requirements.
537
 
538
- * Wordpress 3.0+
539
- * PHP 5.x
540
- * MySQL 5.x
541
 
542
  1.2 Installation.
543
 
544
- 1. Log in to your WordPress Administrator panel.
545
- 2. Go to Plugins page, click Add > New > Upload.
546
- 3. Click "Choose file" ("Browse") and select the Sliders zip file.
547
- For Mac Users
548
- Go to your Downloads folder and locate the folder with the Slider WD. Right-click on the folder and select Compress. Now you have a newly created .zip file which can be installed as described here.
549
- 4. Click "Upload&Install" button.
550
- 5. Click "Activate Plugin" button for activating the plugin.
551
 
552
- If any problem occurs with Slider WD, please [click here to contact us](https://web-dorado.com/support/contact-us.html).
 
 
 
 
553
 
554
  = Step 2: Adding images to Sliders. =
555
  Go to Slider WD >Sliders > Add New.
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.32
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.32 =
164
+ * Fixed: Conflict with "Wordfence Security" plugin.
165
+ * Added: Hotspot text on click/hover(optional).
166
+
167
  = 1.1.31 =
168
  * Fixed: Add post page styles on Wordpress 4.5
169
  * Fixed: Undefined iframes in frontend.
535
 
536
  ==Wordpress Slider WD Step by step guide==
537
 
538
+ = Step 1: Installation of Slider WD plugin. =
539
+ 1.1 Minimal requirements.
 
540
 
541
+ WordPress 3.4+
542
+ PHP 5.x
543
+ MySQL 5.x
544
 
545
  1.2 Installation.
546
 
547
+ Log-in to your WordPress administrator panel.
548
+ Select Plugins page from toolbar menu, click Add New.
549
+ Search for Slider WD in the right-top search bar if you want to download the Free version or click Upload Plugin button > "Choose file" ("Browse") and select the Sliders zip file if you are installing the Professional version of Slider WD.
 
 
 
 
550
 
551
+ For Mac Users
552
+ Go to your Downloads folder and locate the folder with the Slider WD. Right-click on the folder and select Compress. This will create a .zip file which can be installed as described below:
553
+ Click "Upload & Install" button.
554
+ Click "Activate Plugin" button for activating the plugin.
555
+ If any problem occurs with installation of Slider WD, please let us know using ["Contact Us"](https://web-dorado.com/support/contact-us.html) form.
556
 
557
  = Step 2: Adding images to Sliders. =
558
  Go to Slider WD >Sliders > Add New.
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.31
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -435,7 +435,7 @@ register_activation_hook(__FILE__, 'wds_activate');
435
 
436
  function wds_install() {
437
  $version = get_option("wds_version");
438
- $new_version = '1.1.31';
439
  if ($version && version_compare($version, $new_version, '<')) {
440
  require_once WD_S_DIR . "/sliders-update.php";
441
  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.1.32
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
435
 
436
  function wds_install() {
437
  $version = get_option("wds_version");
438
+ $new_version = '1.1.32';
439
  if ($version && version_compare($version, $new_version, '<')) {
440
  require_once WD_S_DIR . "/sliders-update.php";
441
  wds_update($version);
sliders-insert.php CHANGED
@@ -185,6 +185,7 @@ function wds_insert() {
185
  `youtube_rel_layer_video` tinyint(1) NOT NULL,
186
  `hotspot_animation` tinyint(1) NOT NULL,
187
  `layer_callback_list` varchar(32) NOT NULL,
 
188
  PRIMARY KEY (`id`)
189
  ) DEFAULT CHARSET=utf8;";
190
  $wpdb->query($wdslayer);
185
  `youtube_rel_layer_video` tinyint(1) NOT NULL,
186
  `hotspot_animation` tinyint(1) NOT NULL,
187
  `layer_callback_list` varchar(32) NOT NULL,
188
+ `hotspot_text_display` varchar(8) NOT NULL,
189
  PRIMARY KEY (`id`)
190
  ) DEFAULT CHARSET=utf8;";
191
  $wpdb->query($wdslayer);
sliders-update.php CHANGED
@@ -133,6 +133,9 @@ function wds_update($version) {
133
  }
134
  if (version_compare($version, '1.1.29') == -1) {
135
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `layer_callback_list` varchar(32) NOT NULL DEFAULT ''");
 
 
 
136
  }
137
  return;
138
  }
133
  }
134
  if (version_compare($version, '1.1.29') == -1) {
135
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `layer_callback_list` varchar(32) NOT NULL DEFAULT ''");
136
+ }
137
+ if (version_compare($version, '1.1.32') == -1) {
138
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `hotspot_text_display` varchar(8) NOT NULL DEFAULT 'hover'");
139
  }
140
  return;
141
  }