Slider by WD – Responsive Slider - Version 1.0.33

Version Description

Added: Option to display bullets on hover.

Download this release

Release Info

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

Code changes from version 1.0.32 to 1.0.33

admin/controllers/WDSControllerSliders_wds.php CHANGED
@@ -189,6 +189,7 @@ class WDSControllerSliders_wds {
189
  $carousel_width = 1000;
190
  $parallax_effect = 0;
191
  $mouse_swipe_nav = ((isset($_POST['mouse_swipe_nav'])) ? (int) esc_html(stripslashes($_POST['mouse_swipe_nav'])) : 0);
 
192
 
193
  $data = array(
194
  'name' => $name,
@@ -282,6 +283,7 @@ class WDSControllerSliders_wds {
282
  'carousel_width' => $carousel_width,
283
  'parallax_effect' => $parallax_effect,
284
  'mouse_swipe_nav' => $mouse_swipe_nav,
 
285
  );
286
 
287
  if (!$slider_id) {
189
  $carousel_width = 1000;
190
  $parallax_effect = 0;
191
  $mouse_swipe_nav = ((isset($_POST['mouse_swipe_nav'])) ? (int) esc_html(stripslashes($_POST['mouse_swipe_nav'])) : 0);
192
+ $bull_hover = ((isset($_POST['bull_hover'])) ? (int) esc_html(stripslashes($_POST['bull_hover'])) : 1);
193
 
194
  $data = array(
195
  'name' => $name,
283
  'carousel_width' => $carousel_width,
284
  'parallax_effect' => $parallax_effect,
285
  'mouse_swipe_nav' => $mouse_swipe_nav,
286
+ 'bull_hover' => $bull_hover,
287
  );
288
 
289
  if (!$slider_id) {
admin/models/WDSModelSliders_wds.php CHANGED
@@ -200,6 +200,7 @@ class WDSModelSliders_wds {
200
  $row->carousel_width = 1000;
201
  $row->parallax_effect = 0;
202
  $row->mouse_swipe_nav = 0;
 
203
  }
204
  return $row;
205
  }
200
  $row->carousel_width = 1000;
201
  $row->parallax_effect = 0;
202
  $row->mouse_swipe_nav = 0;
203
+ $row->bull_hover = 1;
204
  }
205
  return $row;
206
  }
admin/views/WDSViewSliders_wds.php CHANGED
@@ -1202,6 +1202,16 @@ class WDSViewSliders_wds {
1202
  <div class="spider_description">Choose whether to have navigation bullets or not.</div>
1203
  </td>
1204
  </tr>
 
 
 
 
 
 
 
 
 
 
1205
  <tr>
1206
  <td class="spider_label"><label>Position: </label></td>
1207
  <td>
1202
  <div class="spider_description">Choose whether to have navigation bullets or not.</div>
1203
  </td>
1204
  </tr>
1205
+ <tr>
1206
+ <td class="spider_label_options">
1207
+ <label>Show bullets: </label>
1208
+ </td>
1209
+ <td>
1210
+ <input type="radio" name="bull_hover" id="bull_hover_0" value="0" <?php if ($row->bull_hover == 0) echo 'checked="checked"'; ?> /><label for="bull_hover_0">On hover</label>
1211
+ <input type="radio" name="bull_hover" id="bull_hover_1" value="1" <?php if ($row->bull_hover == 1) echo 'checked="checked"'; ?> /><label for="bull_hover_1">Always</label>
1212
+ <div class="spider_description">Select between the option of always displaying the bullets or only when hovered.</div>
1213
+ </td>
1214
+ </tr>
1215
  <tr>
1216
  <td class="spider_label"><label>Position: </label></td>
1217
  <td>
frontend/views/WDSViewSlider.php CHANGED
@@ -35,6 +35,7 @@ class WDSViewSlider {
35
  $resolutions = array(320, 480, 640, 768, 800, 1024, 1366, 1824, 3000);
36
  $image_right_click = $slider_row->image_right_click;
37
 
 
38
  $bull_position = $slider_row->bull_position;
39
  $bull_style_active = str_replace('-o', '', $slider_row->bull_style);
40
  $bull_style_deactive = $slider_row->bull_style;
@@ -471,6 +472,10 @@ class WDSViewSlider {
471
  }
472
 
473
  /* Dots.*/
 
 
 
 
474
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_slideshow_dots_container_<?php echo $wds; ?> {
475
  display: block;
476
  overflow: hidden;
@@ -1618,7 +1623,7 @@ class WDSViewSlider {
1618
  });
1619
  }
1620
  if ("<?php echo $current_image_url; ?>" != '') {
1621
- jQuery("<img/>").attr("src", "<?php echo $current_image_url; ?>").load(function() {
1622
  jQuery(this).remove();
1623
  wds_ready_<?php echo $wds; ?>();
1624
  });
@@ -1668,6 +1673,13 @@ class WDSViewSlider {
1668
  jQuery("#wds_slideshow_play_pause_<?php echo $wds; ?>").css({opacity: 0, filter: "Alpha(opacity=0)"});
1669
  });
1670
  }
 
 
 
 
 
 
 
1671
 
1672
  wds_resize_slider_<?php echo $wds; ?>();
1673
  jQuery("#wds_container2_<?php echo $wds; ?>").css({visibility: 'visible'});
@@ -1790,7 +1802,7 @@ class WDSViewSlider {
1790
  }
1791
  <?php if ($slider_row->preload_images) { ?>
1792
  function wds_preload_<?php echo $wds; ?>(preload_key) {
1793
- jQuery("<img/>")
1794
  .load(function() { if (preload_key < wds_data_<?php echo $wds; ?>.length - 1) wds_preload_<?php echo $wds; ?>(preload_key + 1); })
1795
  .error(function() { if (preload_key < wds_data_<?php echo $wds; ?>.length - 1) wds_preload_<?php echo $wds; ?>(preload_key + 1); })
1796
  .attr("src", (wds_data_<?php echo $wds; ?>[preload_key]["is_video"] == 'image' ? wds_data_<?php echo $wds; ?>[preload_key]["image_url"] : ""));
35
  $resolutions = array(320, 480, 640, 768, 800, 1024, 1366, 1824, 3000);
36
  $image_right_click = $slider_row->image_right_click;
37
 
38
+ $bull_hover = isset($slider_row->bull_hover) ? $slider_row->bull_hover : 1;
39
  $bull_position = $slider_row->bull_position;
40
  $bull_style_active = str_replace('-o', '', $slider_row->bull_style);
41
  $bull_style_deactive = $slider_row->bull_style;
472
  }
473
 
474
  /* Dots.*/
475
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_slideshow_dots_container_<?php echo $wds; ?> {
476
+ opacity: <?php echo $bull_hover; ?>;
477
+ filter: "Alpha(opacity=<?php echo $bull_hover * 100; ?>)";
478
+ }
479
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_slideshow_dots_container_<?php echo $wds; ?> {
480
  display: block;
481
  overflow: hidden;
1623
  });
1624
  }
1625
  if ("<?php echo $current_image_url; ?>" != '') {
1626
+ jQuery('<img />').attr("src", "<?php echo $current_image_url; ?>").load(function() {
1627
  jQuery(this).remove();
1628
  wds_ready_<?php echo $wds; ?>();
1629
  });
1673
  jQuery("#wds_slideshow_play_pause_<?php echo $wds; ?>").css({opacity: 0, filter: "Alpha(opacity=0)"});
1674
  });
1675
  }
1676
+ if (!<?php echo $bull_hover; ?>) {
1677
+ jQuery("#wds_container2_<?php echo $wds; ?>").hover(function () {
1678
+ jQuery(".wds_slideshow_dots_container_<?php echo $wds; ?>").animate({opacity: 1, filter: "Alpha(opacity=100)"}, 700, "swing");
1679
+ }, function () {
1680
+ jQuery(".wds_slideshow_dots_container_<?php echo $wds; ?>").css({opacity: 0, filter: "Alpha(opacity=0)"});
1681
+ });
1682
+ }
1683
 
1684
  wds_resize_slider_<?php echo $wds; ?>();
1685
  jQuery("#wds_container2_<?php echo $wds; ?>").css({visibility: 'visible'});
1802
  }
1803
  <?php if ($slider_row->preload_images) { ?>
1804
  function wds_preload_<?php echo $wds; ?>(preload_key) {
1805
+ jQuery('<img />')
1806
  .load(function() { if (preload_key < wds_data_<?php echo $wds; ?>.length - 1) wds_preload_<?php echo $wds; ?>(preload_key + 1); })
1807
  .error(function() { if (preload_key < wds_data_<?php echo $wds; ?>.length - 1) wds_preload_<?php echo $wds; ?>(preload_key + 1); })
1808
  .attr("src", (wds_data_<?php echo $wds; ?>[preload_key]["is_video"] == 'image' ? wds_data_<?php echo $wds; ?>[preload_key]["image_url"] : ""));
js/wds.js CHANGED
@@ -116,6 +116,7 @@ function spider_ajax_save(form_id, event) {
116
 
117
  post_data["spider_uploader"] = jQuery("input[name=spider_uploader]:checked").val();
118
  post_data["mouse_swipe_nav"] = jQuery("input[name=mouse_swipe_nav]:checked").val();
 
119
 
120
  /* Css.*/
121
  post_data["css"] = jQuery("#css").val();
116
 
117
  post_data["spider_uploader"] = jQuery("input[name=spider_uploader]:checked").val();
118
  post_data["mouse_swipe_nav"] = jQuery("input[name=mouse_swipe_nav]:checked").val();
119
+ post_data["bull_hover"] = jQuery("input[name=bull_hover]:checked").val();
120
 
121
  /* Css.*/
122
  post_data["css"] = jQuery("#css").val();
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.32
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -142,6 +142,9 @@ After downloading the ZIP file of the slider plugin,
142
 
143
  == Changelog ==
144
 
 
 
 
145
  = 1.0.32 =
146
  Added: Option for mouse swipe navigation.
147
 
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.33
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
142
 
143
  == Changelog ==
144
 
145
+ = 1.0.33 =
146
+ Added: Option to display bullets on hover.
147
+
148
  = 1.0.32 =
149
  Added: Option for mouse swipe navigation.
150
 
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.32
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -370,6 +370,7 @@ function wds_activate() {
370
  'carousel_width' => 1000,
371
  'parallax_effect' => 0,
372
  'mouse_swipe_nav' => 0,
 
373
  )
374
  );
375
  }
@@ -383,7 +384,7 @@ register_activation_hook(__FILE__, 'wds_activate');
383
 
384
  function wds_install() {
385
  $version = get_option("wds_version");
386
- $new_version = '1.0.32';
387
  if ($version && version_compare($version, $new_version, '<')) {
388
  require_once WD_S_DIR . "/sliders-update.php";
389
  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.33
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
370
  'carousel_width' => 1000,
371
  'parallax_effect' => 0,
372
  'mouse_swipe_nav' => 0,
373
+ 'bull_hover' => 1,
374
  )
375
  );
376
  }
384
 
385
  function wds_install() {
386
  $version = get_option("wds_version");
387
+ $new_version = '1.0.33';
388
  if ($version && version_compare($version, $new_version, '<')) {
389
  require_once WD_S_DIR . "/sliders-update.php";
390
  wds_update($version);
sliders-insert.php CHANGED
@@ -95,6 +95,7 @@ function wds_insert() {
95
  `carousel_width` int(4) NOT NULL,
96
  `parallax_effect` tinyint(1) NOT NULL,
97
  `mouse_swipe_nav` tinyint(1) NOT NULL,
 
98
  PRIMARY KEY (`id`)
99
  ) DEFAULT CHARSET=utf8;";
100
  $wpdb->query($wdsslider);
95
  `carousel_width` int(4) NOT NULL,
96
  `parallax_effect` tinyint(1) NOT NULL,
97
  `mouse_swipe_nav` tinyint(1) NOT NULL,
98
+ `bull_hover` int(1) NOT NULL,
99
  PRIMARY KEY (`id`)
100
  ) DEFAULT CHARSET=utf8;";
101
  $wpdb->query($wdsslider);
sliders-update.php CHANGED
@@ -69,6 +69,10 @@ function wds_update($version) {
69
  // Mouse swipe navigation.
70
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `mouse_swipe_nav` tinyint(1) NOT NULL DEFAULT 0");
71
  }
 
 
 
 
72
  return;
73
  }
74
 
69
  // Mouse swipe navigation.
70
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `mouse_swipe_nav` tinyint(1) NOT NULL DEFAULT 0");
71
  }
72
+ if (version_compare($version, '1.0.33') == -1) {
73
+ // Show bullets on hover.
74
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `bull_hover` int(1) NOT NULL DEFAULT 1");
75
+ }
76
  return;
77
  }
78