Slider by WD – Responsive Slider - Version 1.2.35

Version Description

  • Fixed: Conflict with php 7.4.
Download this release

Release Info

Developer 10web
Plugin Icon 128x128 Slider by WD – Responsive Slider
Version 1.2.35
Comparing to
See all releases

Code changes from version 1.2.34 to 1.2.35

admin/models/Sliders.php CHANGED
@@ -48,7 +48,7 @@ class SlidersModel_wds {
48
  */
49
  public function get_layers_row_data( $slide_ids = array() ) {
50
  global $wpdb;
51
- $rows = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdslayer` WHERE `slide_id` IN (' . implode($slide_ids, ',') . ') ORDER BY `depth` ASC');
52
  $data = array();
53
  if ( !empty($rows) ) {
54
  foreach ( $rows as $row ) {
@@ -407,7 +407,7 @@ class SlidersModel_wds {
407
  $sliders_data[$id] = $slider;
408
  }
409
  // Get slides by slider ids.
410
- $slides = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdsslide` WHERE `slider_id` IN(' . implode($slider_ids, ',') . ')');
411
  if ( !empty($slides)) {
412
  $slides_data = array();
413
  foreach ( $slides as $slide ) {
@@ -419,7 +419,7 @@ class SlidersModel_wds {
419
  $slides_data[$slider_id][$id] = $slide;
420
  }
421
  // Get layers by slide ids.
422
- $layers = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdslayer` WHERE `slide_id` IN (' . implode($slide_ids,',') . ')');
423
  $layers_data = array();
424
  if ( !empty($layers) ) {
425
  foreach ( $layers as $layer ) {
@@ -461,7 +461,7 @@ class SlidersModel_wds {
461
  $ids[] = $k;
462
  }
463
  }
464
- $str_ids = implode( $ids, ',');
465
  $where = ($all ? '' : ' WHERE `id` IN (' . $str_ids . ')');
466
  $sliders = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdsslider` '. $where .' ORDER BY FIELD(`id`,' . $str_ids . ');');
467
  if ( !empty($sliders) ) {
@@ -476,7 +476,7 @@ class SlidersModel_wds {
476
  unset($slider_data->id);
477
  $slider_data->name = rtrim($name, ', ');
478
  $sliders_data[$id] = $slider_data;
479
- $str_slider_ids = implode( array_keys($slider_ids), ',' );
480
  $slides = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdsslide` WHERE `slider_id` IN ('. $str_slider_ids . ') ORDER BY FIELD(`slider_id`,' . $str_slider_ids . ')');
481
 
482
  $order_slide = 1;
@@ -491,7 +491,7 @@ class SlidersModel_wds {
491
  $order_slide++;
492
  }
493
  // Get layers by slide ids.
494
- $layers = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdslayer` WHERE `slide_id` IN (' . implode($slide_ids,',') . ') ORDER BY `slide_id` ASC');
495
  $layers_data = array();
496
  if ( !empty($layers) ) {
497
  foreach ( $layers as $layer ) {
48
  */
49
  public function get_layers_row_data( $slide_ids = array() ) {
50
  global $wpdb;
51
+ $rows = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdslayer` WHERE `slide_id` IN (' . implode(',', $slide_ids) . ') ORDER BY `depth` ASC');
52
  $data = array();
53
  if ( !empty($rows) ) {
54
  foreach ( $rows as $row ) {
407
  $sliders_data[$id] = $slider;
408
  }
409
  // Get slides by slider ids.
410
+ $slides = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdsslide` WHERE `slider_id` IN(' . implode(',', $slider_ids) . ')');
411
  if ( !empty($slides)) {
412
  $slides_data = array();
413
  foreach ( $slides as $slide ) {
419
  $slides_data[$slider_id][$id] = $slide;
420
  }
421
  // Get layers by slide ids.
422
+ $layers = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdslayer` WHERE `slide_id` IN (' . implode(',', $slide_ids) . ')');
423
  $layers_data = array();
424
  if ( !empty($layers) ) {
425
  foreach ( $layers as $layer ) {
461
  $ids[] = $k;
462
  }
463
  }
464
+ $str_ids = implode( ',', $ids );
465
  $where = ($all ? '' : ' WHERE `id` IN (' . $str_ids . ')');
466
  $sliders = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdsslider` '. $where .' ORDER BY FIELD(`id`,' . $str_ids . ');');
467
  if ( !empty($sliders) ) {
476
  unset($slider_data->id);
477
  $slider_data->name = rtrim($name, ', ');
478
  $sliders_data[$id] = $slider_data;
479
+ $str_slider_ids = implode( ',', array_keys($slider_ids) );
480
  $slides = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdsslide` WHERE `slider_id` IN ('. $str_slider_ids . ') ORDER BY FIELD(`slider_id`,' . $str_slider_ids . ')');
481
 
482
  $order_slide = 1;
491
  $order_slide++;
492
  }
493
  // Get layers by slide ids.
494
+ $layers = $wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'wdslayer` WHERE `slide_id` IN (' . implode(',', $slide_ids) . ') ORDER BY `slide_id` ASC');
495
  $layers_data = array();
496
  if ( !empty($layers) ) {
497
  foreach ( $layers as $layer ) {
admin/views/Sliders.php CHANGED
@@ -1263,7 +1263,7 @@ class SlidersView_wds extends AdminView_wds {
1263
  </span>
1264
  <span class="wd-group" id="tr_thumb_size">
1265
  <label class="wd-label" for="wds_thumb_size"><?php _e('Thumbnail Size:', WDS()->prefix); ?></label>
1266
- <input onblur="wds_check_number()" type="text" id="wds_thumb_size" name="wds_thumb_size" size="15" value="<?php echo $row->thumb_size; ?>" style="display:inline-block;" />
1267
  <p class="description"><?php _e('Value must be between 0 to 1.', WDS()->prefix); ?></p>
1268
  </span>
1269
  <span class="wd-group">
1263
  </span>
1264
  <span class="wd-group" id="tr_thumb_size">
1265
  <label class="wd-label" for="wds_thumb_size"><?php _e('Thumbnail Size:', WDS()->prefix); ?></label>
1266
+ <input onblur="wds_check_number()" type="number" step="0.1" min="0" max="1" id="wds_thumb_size" name="wds_thumb_size" size="15" value="<?php echo $row->thumb_size; ?>" style="display:inline-block;" />
1267
  <p class="description"><?php _e('Value must be between 0 to 1.', WDS()->prefix); ?></p>
1268
  </span>
1269
  <span class="wd-group">
filemanager/UploadHandler.php CHANGED
@@ -580,7 +580,7 @@ class wds_UploadHandler {
580
  break;
581
  default:
582
  $file->error = 'Failed to create scaled versions: '
583
- .implode($failed_versions,', ');
584
  }
585
  }
586
 
580
  break;
581
  default:
582
  $file->error = 'Failed to create scaled versions: '
583
+ .implode(', ', $failed_versions);
584
  }
585
  }
586
 
framework/WDW_S_Library.php CHANGED
@@ -1461,8 +1461,8 @@ class WDW_S_Library {
1461
  z-index: 3;
1462
  -webkit-transition: left 1s, right 1s;
1463
  transition: left 1s, right 1s;
1464
- width: <?php echo 100 * $thumb_size ?>%;
1465
- height: <?php echo 100 * $thumb_size ?>%;
1466
  }
1467
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> {
1468
  margin: <?php echo $slider_row->glb_margin; ?>px <?php echo ($slider_row->full_width == '1') ? 0 : ''; ?>;
1461
  z-index: 3;
1462
  -webkit-transition: left 1s, right 1s;
1463
  transition: left 1s, right 1s;
1464
+ width: <?php echo floatval(100 * $thumb_size); ?>%;
1465
+ height: <?php echo floatval(100 * $thumb_size) ?>%;
1466
  }
1467
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> {
1468
  margin: <?php echo $slider_row->glb_margin; ?>px <?php echo ($slider_row->full_width == '1') ? 0 : ''; ?>;
frontend/models/WDSModelSlider.php CHANGED
@@ -246,7 +246,7 @@ class WDSModelSlider {
246
  INNER JOIN `'. $wpdb->prefix .'wdsslide` AS `slide` ON `layer`.`slide_id` = `slide`.`id`
247
  INNER JOIN `'. $wpdb->prefix .'wdsslider` AS `slider` ON `slider`.`id` = `slide`.`slider_id`
248
  WHERE
249
- `layer`.`slide_id` IN ('. implode( $slide_ids, ',' ) .')
250
  OR (
251
  `slider`.`id` = '. $slider_id .' AND
252
  `layer`.`static_layer` = 1
246
  INNER JOIN `'. $wpdb->prefix .'wdsslide` AS `slide` ON `layer`.`slide_id` = `slide`.`id`
247
  INNER JOIN `'. $wpdb->prefix .'wdsslider` AS `slider` ON `slider`.`id` = `slide`.`slider_id`
248
  WHERE
249
+ `layer`.`slide_id` IN ('. implode( ',', $slide_ids ) .')
250
  OR (
251
  `slider`.`id` = '. $slider_id .' AND
252
  `layer`.`static_layer` = 1
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gall
4
  Requires at least: 3.4
5
  Tested up to: 5.5
6
  Requires PHP: 5.2
7
- Stable tag: 1.2.34
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -445,6 +445,9 @@ The plugin takes the full width of the widget area if the **Boxed Layout** in **
445
 
446
  == Changelog ==
447
 
 
 
 
448
  = 1.2.34 =
449
  * Fixed: Do not load image on changing between images.
450
 
4
  Requires at least: 3.4
5
  Tested up to: 5.5
6
  Requires PHP: 5.2
7
+ Stable tag: 1.2.35
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
445
 
446
  == Changelog ==
447
 
448
+ = 1.2.35 =
449
+ * Fixed: Conflict with php 7.4.
450
+
451
  = 1.2.34 =
452
  * Fixed: Do not load image on changing between images.
453
 
slider-wd.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Slider by 10Web
4
  * Plugin URI: https://10web.io/plugins/wordpress-slider/?utm_source=slider&utm_medium=free_plugin
5
  * 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.
6
- * Version: 1.2.34
7
  * Author: 10Web
8
  * Author URI: https://10web.io/pricing/?utm_source=slider&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -79,8 +79,8 @@ final class WDS {
79
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
80
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
81
  $this->main_file = plugin_basename(__FILE__);
82
- $this->plugin_version = '1.2.34';
83
- $this->db_version = '1.2.34';
84
  $this->prefix = 'wds';
85
  $this->nicename = __('Slider', $this->prefix);
86
  $this->use_home_url();
3
  * Plugin Name: Slider by 10Web
4
  * Plugin URI: https://10web.io/plugins/wordpress-slider/?utm_source=slider&utm_medium=free_plugin
5
  * 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.
6
+ * Version: 1.2.35
7
  * Author: 10Web
8
  * Author URI: https://10web.io/pricing/?utm_source=slider&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
79
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
80
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
81
  $this->main_file = plugin_basename(__FILE__);
82
+ $this->plugin_version = '1.2.35';
83
+ $this->db_version = '1.2.35';
84
  $this->prefix = 'wds';
85
  $this->nicename = __('Slider', $this->prefix);
86
  $this->use_home_url();