Slider by WD – Responsive Slider - Version 1.2.30

Version Description

  • Added: Option to hide filmstrip on mobile screens.
Download this release

Release Info

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

Code changes from version 1.2.29 to 1.2.30

admin/controllers/Sliders.php CHANGED
@@ -421,6 +421,7 @@ class SlidersController_wds {
421
  if ( isset($params_array['enable_filmstrip']) && $params_array['enable_filmstrip'] == 0 ) {
422
  $film_pos = 'none';
423
  }
 
424
  $film_thumb_width = (int) WDW_S_Library::esc_sanitize_data($params_array, 'film_thumb_width', '', 100);
425
  $film_thumb_height = (int) WDW_S_Library::esc_sanitize_data($params_array, 'film_thumb_height', '', 50);
426
  $film_bg_color = WDW_S_Library::esc_sanitize_data($params_array, 'film_bg_color', 'sanitize_text_field', '000000');
@@ -439,7 +440,7 @@ class SlidersController_wds {
439
  $built_in_watermark_font_size = (int) WDW_S_Library::esc_sanitize_data($params_array, 'built_in_watermark_font_size', '', 20);
440
  $built_in_watermark_font = WDW_S_Library::esc_sanitize_data($params_array, 'built_in_watermark_font', 'sanitize_text_field');
441
  $built_in_watermark_color = WDW_S_Library::esc_sanitize_data($params_array, 'built_in_watermark_color', 'sanitize_text_field', 'FFFFFF');
442
- $css = (isset($params_array['css']) ? htmlspecialchars_decode((stripslashes($params_array['css'])), ENT_QUOTES) : '');
443
  $timer_bar_type = WDW_S_Library::esc_sanitize_data($params_array, 'timer_bar_type', 'sanitize_text_field', 'top');
444
  if ( isset($params_array['enable_time_bar']) && $params_array['enable_time_bar'] == 0 ) {
445
  $timer_bar_type = 'none';
@@ -546,6 +547,7 @@ class SlidersController_wds {
546
  'bull_act_color' => $bull_act_color,
547
  'bull_margin' => $bull_margin,
548
  'film_pos' => $film_pos,
 
549
  'film_thumb_width' => $film_thumb_width,
550
  'film_thumb_height' => $film_thumb_height,
551
  'film_bg_color' => $film_bg_color,
421
  if ( isset($params_array['enable_filmstrip']) && $params_array['enable_filmstrip'] == 0 ) {
422
  $film_pos = 'none';
423
  }
424
+ $film_small_screen = (int) WDW_S_Library::esc_sanitize_data($params_array, 'film_small_screen', '', 0);
425
  $film_thumb_width = (int) WDW_S_Library::esc_sanitize_data($params_array, 'film_thumb_width', '', 100);
426
  $film_thumb_height = (int) WDW_S_Library::esc_sanitize_data($params_array, 'film_thumb_height', '', 50);
427
  $film_bg_color = WDW_S_Library::esc_sanitize_data($params_array, 'film_bg_color', 'sanitize_text_field', '000000');
440
  $built_in_watermark_font_size = (int) WDW_S_Library::esc_sanitize_data($params_array, 'built_in_watermark_font_size', '', 20);
441
  $built_in_watermark_font = WDW_S_Library::esc_sanitize_data($params_array, 'built_in_watermark_font', 'sanitize_text_field');
442
  $built_in_watermark_color = WDW_S_Library::esc_sanitize_data($params_array, 'built_in_watermark_color', 'sanitize_text_field', 'FFFFFF');
443
+ $css = (isset($params_array['css']) ? htmlspecialchars_decode((addslashes($params_array['css'])), ENT_QUOTES) : '');
444
  $timer_bar_type = WDW_S_Library::esc_sanitize_data($params_array, 'timer_bar_type', 'sanitize_text_field', 'top');
445
  if ( isset($params_array['enable_time_bar']) && $params_array['enable_time_bar'] == 0 ) {
446
  $timer_bar_type = 'none';
547
  'bull_act_color' => $bull_act_color,
548
  'bull_margin' => $bull_margin,
549
  'film_pos' => $film_pos,
550
+ 'film_small_screen' => $film_small_screen,
551
  'film_thumb_width' => $film_thumb_width,
552
  'film_thumb_height' => $film_thumb_height,
553
  'film_bg_color' => $film_bg_color,
admin/models/Sliders.php CHANGED
@@ -119,6 +119,7 @@ class SlidersModel_wds {
119
  if ( $row ) {
120
  $row->enable_bullets = $row->bull_position == 'none' ? 0 : 1;
121
  $row->enable_filmstrip = $row->film_pos == 'none' ? 0 : 1;
 
122
  $row->enable_time_bar = $row->timer_bar_type == 'none' ? 0 : 1;
123
  $row->music_url = str_replace('{site_url}', site_url(), $row->music_url);
124
  $row->built_in_watermark_url = str_replace('{site_url}', site_url(), $row->built_in_watermark_url);
@@ -205,6 +206,7 @@ class SlidersModel_wds {
205
  $row->bull_act_color = 'FFFFFF';
206
  $row->bull_margin = 3;
207
  $row->enable_filmstrip = 0;
 
208
  $row->film_pos = 'none';
209
  $row->film_thumb_width = 100;
210
  $row->film_thumb_height = 50;
119
  if ( $row ) {
120
  $row->enable_bullets = $row->bull_position == 'none' ? 0 : 1;
121
  $row->enable_filmstrip = $row->film_pos == 'none' ? 0 : 1;
122
+ $row->film_small_screen = (isset($row->film_small_screen)) ? $row->film_small_screen : 0;
123
  $row->enable_time_bar = $row->timer_bar_type == 'none' ? 0 : 1;
124
  $row->music_url = str_replace('{site_url}', site_url(), $row->music_url);
125
  $row->built_in_watermark_url = str_replace('{site_url}', site_url(), $row->built_in_watermark_url);
206
  $row->bull_act_color = 'FFFFFF';
207
  $row->bull_margin = 3;
208
  $row->enable_filmstrip = 0;
209
+ $row->film_small_screen = 0;
210
  $row->film_pos = 'none';
211
  $row->film_thumb_width = 100;
212
  $row->film_thumb_height = 50;
admin/views/Sliders.php CHANGED
@@ -1550,6 +1550,11 @@ class SlidersView_wds extends AdminView_wds {
1550
  <label <?php echo (($row->enable_filmstrip) ? '' : 'class="selected_color"'); ?> for="enable_filmstrip0"><?php _e('No', WDS()->prefix); ?></label>
1551
  <p class="description"><?php _e('Enable this option to display thumbnails of the slides in a filmstrip.', WDS()->prefix); ?></p>
1552
  </span>
 
 
 
 
 
1553
  <span class="wd-group" id="filmstrip_position">
1554
  <label class="wd-label"><?php _e('Position:', WDS()->prefix); ?></label>
1555
  <select <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> class="select_icon select_icon_320" name="film_pos" id="film_pos">
@@ -1789,7 +1794,7 @@ class SlidersView_wds extends AdminView_wds {
1789
  <span class="wd-group">
1790
  <label class="wd-label" for="css"><?php _e('Css:', WDS()->prefix); ?></label>
1791
  <p class="description"><?php _e('Write additional CSS code to apply custom styles to the slider.', WDS()->prefix); ?></p>
1792
- <textarea id="css" name="css" rows="15" style="width: 50%;"><?php echo htmlspecialchars($row->css); ?></textarea>
1793
  </span>
1794
  </div>
1795
  </div>
1550
  <label <?php echo (($row->enable_filmstrip) ? '' : 'class="selected_color"'); ?> for="enable_filmstrip0"><?php _e('No', WDS()->prefix); ?></label>
1551
  <p class="description"><?php _e('Enable this option to display thumbnails of the slides in a filmstrip.', WDS()->prefix); ?></p>
1552
  </span>
1553
+ <span class="wd-group" id="filmstrip_small_screen">
1554
+ <label class="wd-label" for="film_small_screen"><?php _e('Hide filmstrip on small screens:', WDS()->prefix); ?></label>
1555
+ <input <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> type="text" name="film_small_screen" id="film_small_screen" value="<?php echo $row->film_small_screen; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/> px
1556
+ <p class="description"><?php _e('Hide slider filmstrip when screen size is smaller than this value.', WDS()->prefix); ?></p>
1557
+ </span>
1558
  <span class="wd-group" id="filmstrip_position">
1559
  <label class="wd-label"><?php _e('Position:', WDS()->prefix); ?></label>
1560
  <select <?php echo (WDS()->is_free ? 'disabled="disabled" title="' . __('This functionality is disabled in free version.', WDS()->prefix) . '"' : ''); ?> class="select_icon select_icon_320" name="film_pos" id="film_pos">
1794
  <span class="wd-group">
1795
  <label class="wd-label" for="css"><?php _e('Css:', WDS()->prefix); ?></label>
1796
  <p class="description"><?php _e('Write additional CSS code to apply custom styles to the slider.', WDS()->prefix); ?></p>
1797
+ <textarea id="css" name="css" rows="15" style="width: 50%;"><?php echo html_entity_decode($row->css); ?></textarea>
1798
  </span>
1799
  </div>
1800
  </div>
css/wds_tables.css CHANGED
@@ -320,6 +320,10 @@
320
  width: 45px;
321
  }
322
 
 
 
 
 
323
  .spider_char_input {
324
  width: 115px;
325
  }
320
  width: 45px;
321
  }
322
 
323
+ #film_small_screen {
324
+ width: 50px;
325
+ }
326
+
327
  .spider_char_input {
328
  width: 115px;
329
  }
framework/WDW_S_Library.php CHANGED
@@ -1418,8 +1418,24 @@ class WDW_S_Library {
1418
  $crop_image_position = isset($slider_row->crop_image_position) ? $slider_row->crop_image_position : 'center center';
1419
  $hide_on_mobile = (isset($slider_row->hide_on_mobile) ? $slider_row->hide_on_mobile : 0);
1420
  $full_width_for_mobile = isset($slider_row->full_width_for_mobile) ? (int) $slider_row->full_width_for_mobile : 0;
 
1421
  ob_start();
 
1422
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1423
  .wds_slider_<?php echo $wds; ?> video::-webkit-media-controls-panel {
1424
  display: none!important;
1425
  -webkit-appearance: none;
@@ -2184,7 +2200,7 @@ class WDW_S_Library {
2184
  <?php
2185
  if ($hide_on_mobile) {
2186
  ?>
2187
- @media screen and (max-width: <?php echo $hide_on_mobile; ?>px){
2188
  #wds_container1_<?php echo $wds; ?> {
2189
  display: none;
2190
  }
@@ -2193,7 +2209,7 @@ class WDW_S_Library {
2193
  }
2194
  if ($full_width_for_mobile) {
2195
  ?>
2196
- @media screen and (max-width: <?php echo $full_width_for_mobile; ?>px) {
2197
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> {
2198
  margin:<?php echo $slider_row->glb_margin; ?>px 0;
2199
  position: relative;
@@ -2204,7 +2220,7 @@ class WDW_S_Library {
2204
  }
2205
  <?php
2206
  }
2207
- echo $slider_row->css;
2208
  foreach ($slide_rows as $key => $slide_row) {
2209
  $fillmode = 'fill';
2210
  if ( !empty($slider_row->bg_fit) ) {
1418
  $crop_image_position = isset($slider_row->crop_image_position) ? $slider_row->crop_image_position : 'center center';
1419
  $hide_on_mobile = (isset($slider_row->hide_on_mobile) ? $slider_row->hide_on_mobile : 0);
1420
  $full_width_for_mobile = isset($slider_row->full_width_for_mobile) ? (int) $slider_row->full_width_for_mobile : 0;
1421
+ $film_small_screen = (isset($slider_row->film_small_screen) ? $slider_row->film_small_screen : 0);
1422
  ob_start();
1423
+ if ($film_small_screen) {
1424
  ?>
1425
+ @media screen and (max-width: <?php echo intval($film_small_screen-1); ?>px){
1426
+ #wds_container1_<?php echo $wds; ?> .wds_slideshow_filmstrip_container {
1427
+ display: none!important;
1428
+ }
1429
+ #wds_container1_<?php echo $wds; ?> .wds_slideshow_image_container {
1430
+ width: 100%!important;
1431
+ height: 100%!important;
1432
+ left: 0px!important;
1433
+ top: 0px!important;
1434
+ }
1435
+ }
1436
+ <?php
1437
+ }
1438
+ ?>
1439
  .wds_slider_<?php echo $wds; ?> video::-webkit-media-controls-panel {
1440
  display: none!important;
1441
  -webkit-appearance: none;
2200
  <?php
2201
  if ($hide_on_mobile) {
2202
  ?>
2203
+ @media screen and (max-width: <?php echo intval($hide_on_mobile-1); ?>px){
2204
  #wds_container1_<?php echo $wds; ?> {
2205
  display: none;
2206
  }
2209
  }
2210
  if ($full_width_for_mobile) {
2211
  ?>
2212
+ @media screen and (max-width: <?php echo intval($full_width_for_mobile-1); ?>px) {
2213
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> {
2214
  margin:<?php echo $slider_row->glb_margin; ?>px 0;
2215
  position: relative;
2220
  }
2221
  <?php
2222
  }
2223
+ echo html_entity_decode($slider_row->css);
2224
  foreach ($slide_rows as $key => $slide_row) {
2225
  $fillmode = 'fill';
2226
  if ( !empty($slider_row->bg_fit) ) {
frontend/views/WDSViewSlider.php CHANGED
@@ -47,6 +47,7 @@ class WDSViewSlider {
47
  $slideshow_music_url = $slider_row->music_url;
48
  $filmstrip_direction = ($slider_row->film_pos == 'right' || $slider_row->film_pos == 'left') ? 'vertical' : 'horizontal';
49
  $filmstrip_position = $slider_row->film_pos;
 
50
  $filmstrip_thumb_margin_hor = $slider_row->film_tmb_margin;
51
  if ($filmstrip_position != 'none') {
52
  if ($filmstrip_direction == 'horizontal') {
@@ -102,7 +103,7 @@ class WDSViewSlider {
102
  <?php
103
  if ($filmstrip_position != 'none' && $slides_count > 1) {
104
  ?>
105
- <div class="wds_slideshow_filmstrip_container_<?php echo $wds; ?>">
106
  <div class="wds_slideshow_filmstrip_left_<?php echo $wds; ?>"><i class="fa <?php echo ($filmstrip_direction == 'horizontal'? 'fa-angle-left' : 'fa-angle-up'); ?>"></i></div>
107
  <div class="wds_slideshow_filmstrip_<?php echo $wds; ?>">
108
  <div class="wds_slideshow_filmstrip_thumbnails_<?php echo $wds; ?>">
@@ -140,7 +141,7 @@ class WDSViewSlider {
140
  <?php
141
  }
142
  ?>
143
- <div id="wds_slideshow_image_container_<?php echo $wds; ?>" class="wds_slideshow_image_container_<?php echo $wds; ?>">
144
  <?php
145
  if ($bull_position != 'none' && $slides_count > 1) {
146
  ?>
47
  $slideshow_music_url = $slider_row->music_url;
48
  $filmstrip_direction = ($slider_row->film_pos == 'right' || $slider_row->film_pos == 'left') ? 'vertical' : 'horizontal';
49
  $filmstrip_position = $slider_row->film_pos;
50
+ $filmstrip_small_screen = $slider_row->film_small_screen;
51
  $filmstrip_thumb_margin_hor = $slider_row->film_tmb_margin;
52
  if ($filmstrip_position != 'none') {
53
  if ($filmstrip_direction == 'horizontal') {
103
  <?php
104
  if ($filmstrip_position != 'none' && $slides_count > 1) {
105
  ?>
106
+ <div class="wds_slideshow_filmstrip_container_<?php echo $wds; ?> wds_slideshow_filmstrip_container" <?php if($filmstrip_small_screen > 0) { ?> data-small_screen="<?php echo $filmstrip_small_screen ?>" <?php } ?>>
107
  <div class="wds_slideshow_filmstrip_left_<?php echo $wds; ?>"><i class="fa <?php echo ($filmstrip_direction == 'horizontal'? 'fa-angle-left' : 'fa-angle-up'); ?>"></i></div>
108
  <div class="wds_slideshow_filmstrip_<?php echo $wds; ?>">
109
  <div class="wds_slideshow_filmstrip_thumbnails_<?php echo $wds; ?>">
141
  <?php
142
  }
143
  ?>
144
+ <div id="wds_slideshow_image_container_<?php echo $wds; ?>" class="wds_slideshow_image_container_<?php echo $wds; ?> wds_slideshow_image_container">
145
  <?php
146
  if ($bull_position != 'none' && $slides_count > 1) {
147
  ?>
js/wds.js CHANGED
@@ -202,6 +202,7 @@ function wds_spider_ajax_save(form_id, event) {
202
 
203
  /* Filmstrip.*/
204
  slider_data["enable_filmstrip"] = jQuery("input[name=enable_filmstrip]:checked").val();
 
205
  slider_data["film_pos"] = jQuery("#film_pos").val();
206
  slider_data["film_thumb_width"] = jQuery("#film_thumb_width").val();
207
  slider_data["film_thumb_height"] = jQuery("#film_thumb_height").val();
202
 
203
  /* Filmstrip.*/
204
  slider_data["enable_filmstrip"] = jQuery("input[name=enable_filmstrip]:checked").val();
205
+ slider_data["film_small_screen"] = jQuery("#film_small_screen").val();
206
  slider_data["film_pos"] = jQuery("#film_pos").val();
207
  slider_data["film_thumb_width"] = jQuery("#film_thumb_width").val();
208
  slider_data["film_thumb_height"] = jQuery("#film_thumb_height").val();
js/wds_frontend.js CHANGED
@@ -1967,7 +1967,7 @@ function wds_resize_instagram_post( wds ) {
1967
  }
1968
 
1969
  function wds_resize_slider( wds ) {
1970
- if( jQuery(window).width() <= parseInt(wds_params[wds].full_width_for_mobile) ||
1971
  (wds_params[wds].full_width == '1') ){
1972
  var full_width = '1';
1973
  } else {
1967
  }
1968
 
1969
  function wds_resize_slider( wds ) {
1970
+ if( jQuery(window).width() < parseInt(wds_params[wds].full_width_for_mobile) ||
1971
  (wds_params[wds].full_width == '1') ){
1972
  var full_width = '1';
1973
  } else {
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.3
6
  Requires PHP: 5.2
7
- Stable tag: 1.2.29
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.29 =
449
  * Improved: Add slider images to the XML generated with Yoast or Seo by 10Web.
450
 
4
  Requires at least: 3.4
5
  Tested up to: 5.3
6
  Requires PHP: 5.2
7
+ Stable tag: 1.2.30
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.30 =
449
+ * Added: Option to hide filmstrip on mobile screens.
450
+
451
  = 1.2.29 =
452
  * Improved: Add slider images to the XML generated with Yoast or Seo by 10Web.
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.29
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
@@ -78,8 +78,8 @@ final class WDS {
78
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
79
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
80
  $this->main_file = plugin_basename(__FILE__);
81
- $this->plugin_version = '1.2.29';
82
- $this->db_version = '1.2.29';
83
  $this->prefix = 'wds';
84
  $this->nicename = __('Slider', $this->prefix);
85
  $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.30
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
78
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
79
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
80
  $this->main_file = plugin_basename(__FILE__);
81
+ $this->plugin_version = '1.2.30';
82
+ $this->db_version = '1.2.30';
83
  $this->prefix = 'wds';
84
  $this->nicename = __('Slider', $this->prefix);
85
  $this->use_home_url();
sliders-insert.php CHANGED
@@ -49,6 +49,7 @@ function wds_insert() {
49
  `bull_act_color` varchar(8) NOT NULL,
50
  `bull_margin` int(4) NOT NULL,
51
  `film_pos` varchar(16) NOT NULL,
 
52
  `film_thumb_width` int(4) NOT NULL,
53
  `film_thumb_height` int(4) NOT NULL,
54
  `film_bg_color` varchar(8) NOT NULL,
@@ -253,6 +254,7 @@ function wds_insert() {
253
  'bull_act_color' => 'FFFFFF',
254
  'bull_margin' => 3,
255
  'film_pos' => 'none',
 
256
  'film_thumb_width' => 100,
257
  'film_thumb_height' => 50,
258
  'film_bg_color' => '000000',
49
  `bull_act_color` varchar(8) NOT NULL,
50
  `bull_margin` int(4) NOT NULL,
51
  `film_pos` varchar(16) NOT NULL,
52
+ `film_small_screen` int(4) NOT NULL,
53
  `film_thumb_width` int(4) NOT NULL,
54
  `film_thumb_height` int(4) NOT NULL,
55
  `film_bg_color` varchar(8) NOT NULL,
254
  'bull_act_color' => 'FFFFFF',
255
  'bull_margin' => 3,
256
  'film_pos' => 'none',
257
+ 'film_small_screen' => 0,
258
  'film_thumb_width' => 100,
259
  'film_thumb_height' => 50,
260
  'film_bg_color' => '000000',
sliders-update.php CHANGED
@@ -233,5 +233,9 @@ function wds_update($version) {
233
  }
234
  }
235
  }
 
 
 
 
236
  return;
237
  }
233
  }
234
  }
235
  }
236
+ if (version_compare($version, '1.2.30') == -1) {
237
+ $wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslider` ADD `film_small_screen` int(4) NOT NULL DEFAULT 0");
238
+ }
239
+
240
  return;
241
  }