Slider by WD – Responsive Slider - Version 1.0.23

Version Description

New: Hotspot layer (pro version).

Download this release

Release Info

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

Code changes from version 1.0.22 to 1.0.23

admin/controllers/WDSControllerSliders_wds.php CHANGED
@@ -592,6 +592,15 @@ class WDSControllerSliders_wds {
592
  $layer_effect_out = ((isset($params_array['layer_effect_out'])) ? esc_html(stripslashes($params_array['layer_effect_out'])) : '');
593
  $duration_eff_in = ((isset($params_array['duration_eff_in'])) ? esc_html(stripslashes($params_array['duration_eff_in'])) : 3);
594
  $duration_eff_out = ((isset($params_array['duration_eff_out'])) ? esc_html(stripslashes($params_array['duration_eff_out'])) : 3);
 
 
 
 
 
 
 
 
 
595
  if ($title) {
596
  if (strpos($layer_id, 'pr_') !== FALSE) {
597
  $save = $wpdb->insert($wpdb->prefix . 'wdslayer', array(
@@ -631,44 +640,13 @@ class WDSControllerSliders_wds {
631
  'duration_eff_in' => $duration_eff_in,
632
  'duration_eff_out' => $duration_eff_out,
633
  'target_attr_layer' => $target_attr_layer,
634
- ), array(
635
- '%d',
636
- '%s',
637
- '%s',
638
- '%d',
639
- '%s',
640
- '%s',
641
- '%d',
642
- '%d',
643
- '%d',
644
- '%d',
645
- '%d',
646
- '%s',
647
- '%d',
648
- '%s',
649
- '%s',
650
- '%s',
651
- '%s',
652
- '%d',
653
- '%d',
654
- '%s',
655
- '%s',
656
- '%s',
657
- '%s',
658
- '%s',
659
- '%d',
660
- '%d',
661
- '%s',
662
- '%s',
663
- '%d',
664
- '%s',
665
- '%s',
666
- '%s',
667
- '%s',
668
- '%s',
669
- '%d',
670
- '%d',
671
- '%d',
672
  ));
673
  }
674
  else {
@@ -708,6 +686,13 @@ class WDSControllerSliders_wds {
708
  'duration_eff_in' => $duration_eff_in,
709
  'duration_eff_out' => $duration_eff_out,
710
  'target_attr_layer' => $target_attr_layer,
 
 
 
 
 
 
 
711
  ), array('id' => $layer_id));
712
  }
713
  }
@@ -1095,44 +1080,13 @@ class WDSControllerSliders_wds {
1095
  'duration_eff_in' => $layer_id->duration_eff_in,
1096
  'duration_eff_out' => $layer_id->duration_eff_out,
1097
  'target_attr_layer' => $layer_id->target_attr_layer,
1098
- ), array(
1099
- '%d',
1100
- '%s',
1101
- '%s',
1102
- '%d',
1103
- '%s',
1104
- '%s',
1105
- '%d',
1106
- '%d',
1107
- '%d',
1108
- '%d',
1109
- '%d',
1110
- '%s',
1111
- '%d',
1112
- '%s',
1113
- '%s',
1114
- '%s',
1115
- '%s',
1116
- '%d',
1117
- '%d',
1118
- '%s',
1119
- '%s',
1120
- '%s',
1121
- '%s',
1122
- '%s',
1123
- '%d',
1124
- '%d',
1125
- '%s',
1126
- '%s',
1127
- '%d',
1128
- '%s',
1129
- '%s',
1130
- '%s',
1131
- '%s',
1132
- '%s',
1133
- '%d',
1134
- '%d',
1135
- '%d',
1136
  ));
1137
 
1138
  }
592
  $layer_effect_out = ((isset($params_array['layer_effect_out'])) ? esc_html(stripslashes($params_array['layer_effect_out'])) : '');
593
  $duration_eff_in = ((isset($params_array['duration_eff_in'])) ? esc_html(stripslashes($params_array['duration_eff_in'])) : 3);
594
  $duration_eff_out = ((isset($params_array['duration_eff_out'])) ? esc_html(stripslashes($params_array['duration_eff_out'])) : 3);
595
+
596
+ $hotp_width = ((isset($params_array['hotp_width'])) ? esc_html(stripslashes($params_array['hotp_width'])) : '');
597
+ $hotp_fbgcolor = ((isset($params_array['hotp_fbgcolor'])) ? esc_html(stripslashes($params_array['hotp_fbgcolor'])) : '');
598
+ $hotp_border_width = ((isset($params_array['hotp_border_width'])) ? esc_html(stripslashes($params_array['hotp_border_width'])) : '');
599
+ $hotp_border_style = ((isset($params_array['hotp_border_style'])) ? esc_html(stripslashes($params_array['hotp_border_style'])) : '');
600
+ $hotp_border_color = ((isset($params_array['hotp_border_color'])) ? esc_html(stripslashes($params_array['hotp_border_color'])) : '');
601
+ $hotp_border_radius = ((isset($params_array['hotp_border_radius'])) ? esc_html(stripslashes($params_array['hotp_border_radius'])) : '');
602
+ $hotp_text_position = ((isset($params_array['hotp_text_position'])) ? esc_html(stripslashes($params_array['hotp_text_position'])) : '');
603
+
604
  if ($title) {
605
  if (strpos($layer_id, 'pr_') !== FALSE) {
606
  $save = $wpdb->insert($wpdb->prefix . 'wdslayer', array(
640
  'duration_eff_in' => $duration_eff_in,
641
  'duration_eff_out' => $duration_eff_out,
642
  'target_attr_layer' => $target_attr_layer,
643
+ 'hotp_width' => $hotp_width,
644
+ 'hotp_fbgcolor' => $hotp_fbgcolor,
645
+ 'hotp_border_width' => $hotp_border_width,
646
+ 'hotp_border_style' => $hotp_border_style,
647
+ 'hotp_border_color' => $hotp_border_color,
648
+ 'hotp_border_radius' => $hotp_border_radius,
649
+ 'hotp_text_position' => $hotp_text_position,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
650
  ));
651
  }
652
  else {
686
  'duration_eff_in' => $duration_eff_in,
687
  'duration_eff_out' => $duration_eff_out,
688
  'target_attr_layer' => $target_attr_layer,
689
+ 'hotp_width' => $hotp_width,
690
+ 'hotp_fbgcolor' => $hotp_fbgcolor,
691
+ 'hotp_border_width' => $hotp_border_width,
692
+ 'hotp_border_style' => $hotp_border_style,
693
+ 'hotp_border_color' => $hotp_border_color,
694
+ 'hotp_border_radius' => $hotp_border_radius,
695
+ 'hotp_text_position' => $hotp_text_position,
696
  ), array('id' => $layer_id));
697
  }
698
  }
1080
  'duration_eff_in' => $layer_id->duration_eff_in,
1081
  'duration_eff_out' => $layer_id->duration_eff_out,
1082
  'target_attr_layer' => $layer_id->target_attr_layer,
1083
+ 'hotp_width' => $layer_id->hotp_width,
1084
+ 'hotp_fbgcolor' => $layer_id->hotp_fbgcolor,
1085
+ 'hotp_border_width' => $layer_id->hotp_border_width,
1086
+ 'hotp_border_style' => $layer_id->hotp_border_style,
1087
+ 'hotp_border_color' => $layer_id->hotp_border_color,
1088
+ 'hotp_border_radius' => $layer_id->hotp_border_radius,
1089
+ 'hotp_text_position' => $layer_id->hotp_text_position,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1090
  ));
1091
 
1092
  }
admin/views/WDSViewSliders_wds.php CHANGED
@@ -1863,6 +1863,7 @@ class WDSViewSliders_wds {
1863
  ?>
1864
  <input type="button" class="button-secondary button button-small wds_free_button" onclick="alert('This functionality is disabled in free version.'); return false;" value="Add Video Layer" />
1865
  <input type="button" class="button-secondary button button-small wds_free_button" onclick="alert('This functionality is disabled in free version.'); return false;" value="Add Social Button Layer" />
 
1866
  </td>
1867
  </tr>
1868
  </tbody>
1863
  ?>
1864
  <input type="button" class="button-secondary button button-small wds_free_button" onclick="alert('This functionality is disabled in free version.'); return false;" value="Add Video Layer" />
1865
  <input type="button" class="button-secondary button button-small wds_free_button" onclick="alert('This functionality is disabled in free version.'); return false;" value="Add Social Button Layer" />
1866
+ <input type="button" class="button-secondary button button-small wds_free_button" onclick="alert('This functionality is disabled in free version.'); return false;" value="Add Hotspot Layer" />
1867
  </td>
1868
  </tr>
1869
  </tbody>
js/wds.js CHANGED
@@ -2013,7 +2013,7 @@ function wds_add_layer(type, id, layerID, duplicate, files, edit) {
2013
  "class": "wds_draggable_" + id + " wds_draggable",
2014
  onclick: "wds_showhide_layer('" + tbodyID + "', 1)",
2015
  style: "z-index: " + layerID.replace("pr_", "") + "; " +
2016
- "word-break: keep-all;" +
2017
  "display: inline-block; " +
2018
  "position: absolute;" +
2019
  "left: 0; top: 0; " +
@@ -2130,7 +2130,7 @@ function wds_drag_layer(id) {
2130
  jQuery(".wds_draggable_" + id).draggable({ containment: "#wds_preview_wrapper_" + id, scroll: false });
2131
  jQuery(".wds_draggable_" + id).bind('dragstart', function(event) {
2132
  jQuery(this).addClass('wds_active_layer');
2133
- }).bind('drag',function(event) {
2134
  var prefix = jQuery(this).attr("id");
2135
  jQuery("#" + prefix + "_left").val(parseInt(jQuery(this).offset().left - jQuery(".wds_preview_image" + id).offset().left));
2136
  jQuery("#" + prefix + "_top").val(parseInt(jQuery(this).offset().top - jQuery(".wds_preview_image" + id).offset().top));
@@ -2358,7 +2358,8 @@ function wds_add_slide() {
2358
  ' <input class="button-' + (!fv ? "primary" : "secondary wds_free_button") + ' button button-small" type="button" value="Add Text Layer" onclick="' + (!fv ? "wds_add_layer(\'text\', \'' + slideID + '\')" : "alert('This functionality is disabled in free version.')") + '; return false;">' +
2359
  img_layer_upload_by +
2360
  ' <input class="button-secondary button button-small wds_free_button" type="button" value="Add Video Layer" onclick="alert(\'This functionality is disabled in free version.\'); return false;" />' +
2361
- ' <input class="button-secondary button button-small wds_free_button" type="button" value="Add Social Buttons Layer" onclick="alert(\'This functionality is disabled in free version.\'); return false;"></td>' +
 
2362
  '</tr></tbody></table>' +
2363
  '<input id="slide' + slideID + '_layer_ids_string" name="slide' + slideID + '_layer_ids_string" type="hidden" value="" />' +
2364
  '<input id="slide' + slideID + '_del_layer_ids_string" name="slide' + slideID + '_del_layer_ids_string" type="hidden" value="" />' +
2013
  "class": "wds_draggable_" + id + " wds_draggable",
2014
  onclick: "wds_showhide_layer('" + tbodyID + "', 1)",
2015
  style: "z-index: " + layerID.replace("pr_", "") + "; " +
2016
+ "word-break: normal;" +
2017
  "display: inline-block; " +
2018
  "position: absolute;" +
2019
  "left: 0; top: 0; " +
2130
  jQuery(".wds_draggable_" + id).draggable({ containment: "#wds_preview_wrapper_" + id, scroll: false });
2131
  jQuery(".wds_draggable_" + id).bind('dragstart', function(event) {
2132
  jQuery(this).addClass('wds_active_layer');
2133
+ }).bind('drag', function(event) {
2134
  var prefix = jQuery(this).attr("id");
2135
  jQuery("#" + prefix + "_left").val(parseInt(jQuery(this).offset().left - jQuery(".wds_preview_image" + id).offset().left));
2136
  jQuery("#" + prefix + "_top").val(parseInt(jQuery(this).offset().top - jQuery(".wds_preview_image" + id).offset().top));
2358
  ' <input class="button-' + (!fv ? "primary" : "secondary wds_free_button") + ' button button-small" type="button" value="Add Text Layer" onclick="' + (!fv ? "wds_add_layer(\'text\', \'' + slideID + '\')" : "alert('This functionality is disabled in free version.')") + '; return false;">' +
2359
  img_layer_upload_by +
2360
  ' <input class="button-secondary button button-small wds_free_button" type="button" value="Add Video Layer" onclick="alert(\'This functionality is disabled in free version.\'); return false;" />' +
2361
+ ' <input class="button-secondary button button-small wds_free_button" type="button" value="Add Social Buttons Layer" onclick="alert(\'This functionality is disabled in free version.\'); return false;">' +
2362
+ ' <input class="button-secondary button button-small wds_free_button" type="button" value="Add Hotspot Layer" onclick="alert(\'This functionality is disabled in free version.\'); return false;"></td>' +
2363
  '</tr></tbody></table>' +
2364
  '<input id="slide' + slideID + '_layer_ids_string" name="slide' + slideID + '_layer_ids_string" type="hidden" value="" />' +
2365
  '<input id="slide' + slideID + '_del_layer_ids_string" name="slide' + slideID + '_del_layer_ids_string" type="hidden" value="" />' +
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.22
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -139,6 +139,9 @@ After downloading the ZIP file of the slider plugin,
139
 
140
  == Changelog ==
141
 
 
 
 
142
  = 1.2.22 =
143
  New: Search by name in file manager.
144
 
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.23
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
139
 
140
  == Changelog ==
141
 
142
+ = 1.0.23 =
143
+ New: Hotspot layer (pro version).
144
+
145
  = 1.2.22 =
146
  New: Search by name in file manager.
147
 
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.22
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -12,14 +12,9 @@
12
 
13
  define('WD_S_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
14
  define('WD_S_URL', plugins_url(plugin_basename(dirname(__FILE__))));
15
- global $wpdb;
16
- if (/*$wpdb->query("SHOW TABLES LIKE '" . $wpdb->prefix . "bwg_option'")*/ false) {
17
- $WD_S_UPLOAD_DIR = $wpdb->get_var($wpdb->prepare('SELECT images_directory FROM ' . $wpdb->prefix . 'bwg_option WHERE id="%d"', 1)) . '/slider-wd';
18
- }
19
- else {
20
- $upload_dir = wp_upload_dir();
21
- $WD_S_UPLOAD_DIR = str_replace(ABSPATH, '', $upload_dir['basedir']) . '/slider-wd';
22
- }
23
 
24
  // Plugin menu.
25
  function wds_options_panel() {
@@ -339,7 +334,7 @@ register_activation_hook(__FILE__, 'wds_activate');
339
 
340
  function wds_install() {
341
  $version = get_option("wds_version");
342
- $new_version = '1.0.22';
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.23
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
12
 
13
  define('WD_S_DIR', WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__)));
14
  define('WD_S_URL', plugins_url(plugin_basename(dirname(__FILE__))));
15
+
16
+ $upload_dir = wp_upload_dir();
17
+ $WD_S_UPLOAD_DIR = str_replace(ABSPATH, '', $upload_dir['basedir']) . '/slider-wd';
 
 
 
 
 
18
 
19
  // Plugin menu.
20
  function wds_options_panel() {
334
 
335
  function wds_install() {
336
  $version = get_option("wds_version");
337
+ $new_version = '1.0.23';
338
  if ($version && version_compare($version, $new_version, '<')) {
339
  require_once WD_S_DIR . "/sliders-update.php";
340
  wds_update($version);
sliders-insert.php CHANGED
@@ -148,6 +148,13 @@ function wds_insert() {
148
  `layer_effect_out` varchar(16) NOT NULL,
149
  `duration_eff_out` bigint(20) NOT NULL,
150
  `target_attr_layer` tinyint(1) NOT NULL,
 
 
 
 
 
 
 
151
  PRIMARY KEY (`id`)
152
  ) DEFAULT CHARSET=utf8;";
153
  $wpdb->query($wdslayer);
148
  `layer_effect_out` varchar(16) NOT NULL,
149
  `duration_eff_out` bigint(20) NOT NULL,
150
  `target_attr_layer` tinyint(1) NOT NULL,
151
+ `hotp_width` int(4) NOT NULL,
152
+ `hotp_fbgcolor` varchar(8) NOT NULL,
153
+ `hotp_border_width` int(4) NOT NULL,
154
+ `hotp_border_style` varchar(16) NOT NULL,
155
+ `hotp_border_color` varchar(8) NOT NULL,
156
+ `hotp_border_radius` varchar(32) NOT NULL,
157
+ `hotp_text_position` varchar(6) NOT NULL,
158
  PRIMARY KEY (`id`)
159
  ) DEFAULT CHARSET=utf8;";
160
  $wpdb->query($wdslayer);
sliders-update.php CHANGED
@@ -48,6 +48,15 @@ function wds_update($version) {
48
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `carousel_image_parameters` varchar(8) NOT NULL DEFAULT 0.85");
49
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `carousel_fit_containerWidth` tinyint(1) NOT NULL DEFAULT 0");
50
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `carousel_width` int(4) NOT NULL DEFAULT 1000");
 
 
 
 
 
 
 
 
 
51
  }
52
  return;
53
  }
48
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `carousel_image_parameters` varchar(8) NOT NULL DEFAULT 0.85");
49
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `carousel_fit_containerWidth` tinyint(1) NOT NULL DEFAULT 0");
50
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `carousel_width` int(4) NOT NULL DEFAULT 1000");
51
+ }
52
+ if (version_compare($version, '1.0.23') == -1) {
53
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `hotp_width` int(4) NOT NULL");
54
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `hotp_fbgcolor` varchar(8) NOT NULL");
55
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `hotp_border_width` int(4) NOT NULL");
56
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `hotp_border_style` varchar(16) NOT NULL");
57
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `hotp_border_color` varchar(8) NOT NULL");
58
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `hotp_border_radius` varchar(32) NOT NULL");
59
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdslayer ADD `hotp_text_position` varchar(6) NOT NULL");
60
  }
61
  return;
62
  }