Slider by WD – Responsive Slider - Version 1.2.47

Version Description

  • Fixed: Icons in "Navigation / Bullets" buttons list.
Download this release

Release Info

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

Code changes from version 1.2.46 to 1.2.47

admin/controllers/elementorWidget.php CHANGED
@@ -25,7 +25,7 @@ class WDSElementor extends \Elementor\Widget_Base {
25
  * @return string Widget icon.
26
  */
27
  public function get_icon() {
28
- return 'fa twbb-slider-wd twbb-widget-icon';
29
  }
30
 
31
  /**
25
  * @return string Widget icon.
26
  */
27
  public function get_icon() {
28
+ return 'twbb-slider-wd twbb-widget-icon';
29
  }
30
 
31
  /**
admin/views/WDSViewWDSExport.php CHANGED
@@ -1,27 +1,13 @@
1
  <?php
2
 
3
  class WDSViewWDSExport {
4
- ////////////////////////////////////////////////////////////////////////////////////////
5
- // Events //
6
- ////////////////////////////////////////////////////////////////////////////////////////
7
- ////////////////////////////////////////////////////////////////////////////////////////
8
- // Constants //
9
- ////////////////////////////////////////////////////////////////////////////////////////
10
- ////////////////////////////////////////////////////////////////////////////////////////
11
- // Variables //
12
- ////////////////////////////////////////////////////////////////////////////////////////
13
  private $model;
14
 
15
- ////////////////////////////////////////////////////////////////////////////////////////
16
- // Constructor & Destructor //
17
- ////////////////////////////////////////////////////////////////////////////////////////
18
  public function __construct($model) {
19
  $this->model = $model;
20
  }
21
 
22
- ////////////////////////////////////////////////////////////////////////////////////////
23
- // Public Methods //
24
- ////////////////////////////////////////////////////////////////////////////////////////
25
  public function display($slider_id) {
26
  if ($slider_id) {
27
  $this->export_onee();
@@ -40,6 +26,7 @@ class WDSViewWDSExport {
40
  $data = $this->model->export_one();
41
  $this->export($data);
42
  }
 
43
  public function export($data) {
44
  $t = isset($_GET["imagesexport"]) ? esc_html($_GET["imagesexport"]) : FALSE;
45
  $filename = "sliders_" . date('Ymd His');
@@ -48,7 +35,7 @@ class WDSViewWDSExport {
48
  $zip->open($filename, ZipArchive::CREATE);
49
  $xml_str .= '<sliders version="' . get_option('wds_version').'">';
50
  foreach ($data as $key => $value) {
51
- $xml_str .= '<slider>';
52
  foreach ($value as $key_slider => $value_slider) {
53
  if (!is_array($value_slider)) {
54
  if (strpos($value_slider, site_url()) !== FALSE) {
@@ -58,8 +45,10 @@ class WDSViewWDSExport {
58
  else {
59
  $file_url = html_entity_decode($value_slider, ENT_QUOTES);
60
  $base_name = basename($file_url);
61
- $download_file = file_get_contents(str_replace(" ", "%20", $file_url));
62
- $zip->addFromString(WDS()->site_url_buttons_placeholder . $base_name, $download_file);
 
 
63
  if ($key_slider != "built_in_watermark_url") {
64
  if ($key_slider != "music_url") {
65
  // Create thumbnail url to check if it exist.
@@ -70,7 +59,9 @@ class WDSViewWDSExport {
70
  // If thumbnail exist (buttons default images).
71
  $download_file = file_get_contents(str_replace(" ", "%20", str_replace($base_name, 'thumb/' . $base_name, $file_url)));
72
  }
73
- $zip->addFromString(WDS()->site_url_buttons_placeholder . '_thumb_' . $base_name, $download_file);
 
 
74
  }
75
  }
76
  $value_slider = WDS()->site_url_buttons_placeholder . basename($value_slider);
@@ -88,12 +79,16 @@ class WDSViewWDSExport {
88
  if ($value_slides->type == 'image') {
89
  if (strpos($value_slides->image_url, site_url()) !== FALSE) {
90
  $download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $image_url), ENT_QUOTES));
91
- $zip->addFromString(basename(html_entity_decode($image_url, ENT_QUOTES)), $download_file);
 
 
92
  $value_slides->image_url = WDS()->site_url_placeholder. basename($image_url);
93
  }
94
  if (strpos($value_slides->thumb_url , site_url()) !== FALSE) {
95
  $download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $value_slides->thumb_url), ENT_QUOTES));
96
- $zip->addFromString('thumb_' . basename(html_entity_decode($image_url, ENT_QUOTES)), $download_file);
 
 
97
  $value_slides->thumb_url = WDS()->site_url_placeholder . basename($image_url);
98
  }
99
  }
@@ -103,13 +98,17 @@ class WDSViewWDSExport {
103
  }
104
  if (strpos($value_slides->thumb_url , site_url()) !== FALSE) {
105
  $download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $value_slides->thumb_url), ENT_QUOTES));
106
- $zip->addFromString('featured_' . basename(html_entity_decode($value_slides->thumb_url, ENT_QUOTES)), $download_file);
 
 
107
  $value_slides->thumb_url = WDS()->site_url_placeholder . basename($value_slides->thumb_url);
108
  }
109
  if (strpos($value_slides->image_url, site_url()) !== FALSE) {
110
- $download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $image_url), ENT_QUOTES));
 
111
  $zip->addFromString(basename(html_entity_decode($image_url, ENT_QUOTES)), $download_file);
112
- $value_slides->image_url = WDS()->site_url_placeholder. basename($image_url);
 
113
  }
114
  }
115
  }
@@ -136,7 +135,9 @@ class WDSViewWDSExport {
136
  $file_url = html_entity_decode($value_layers->image_url, ENT_QUOTES);
137
  $base_name = basename($file_url);
138
  $download_file = file_get_contents(str_replace(" ", "%20", $file_url));
139
- $zip->addFromString($base_name, $download_file);
 
 
140
  // Create thumbnail url to check if it exist.
141
  $thumb_url = str_replace($base_name, 'thumb/' . $base_name, $file_url);
142
  // Thumbnail filname from url.
@@ -145,23 +146,24 @@ class WDSViewWDSExport {
145
  // If thumbnail exist (layer images uploaded with spider uploader).
146
  $download_file = file_get_contents(str_replace(" ", "%20", str_replace($base_name, 'thumb/' . $base_name, $file_url)));
147
  }
148
- $zip->addFromString('thumb_' . $base_name, $download_file);
149
-
 
150
  $value_layers->image_url = WDS()->site_url_placeholder . basename($value_layers->image_url);
151
  }
152
  }
153
  elseif (strpos($value_layers->image_url, site_url()) !== FALSE) {
154
- $value_layers->image_url = '';
155
  }
156
  }
157
- foreach ($value_layers as $key_layer => $value_layer) {
158
  $xml_str .= '<' . $key_layer .'>' . htmlspecialchars($value_layer, ENT_QUOTES) . '</' . $key_layer .'>';
159
  }
160
  $xml_str .= '</layer>';
161
  }
162
  }
163
  else {
164
- $xml_str .= '<'.$key_slide .' value="' . htmlspecialchars($value_slide, ENT_QUOTES) . '" />';
165
  }
166
  }
167
  $xml_str .= '</slide>';
@@ -171,22 +173,13 @@ class WDSViewWDSExport {
171
  $xml_str .= '</slider>';
172
  }
173
  $xml_str .= '</sliders>';
174
- $zip->addFromString($filename . ".xml", $xml_str);
175
  $zip->close();
176
  header("Content-Disposition: attachment; filename=\"$filename.zip\"");
177
  header("Content-Type:text/xml, charset=utf-8");
178
- ob_end_clean();
179
  readfile($filename);
180
  @unlink($filename);
181
  die('');
182
  }
183
- ////////////////////////////////////////////////////////////////////////////////////////
184
- // Getters & Setters //
185
- ////////////////////////////////////////////////////////////////////////////////////////
186
- ////////////////////////////////////////////////////////////////////////////////////////
187
- // Private Methods //
188
- ////////////////////////////////////////////////////////////////////////////////////////
189
- ////////////////////////////////////////////////////////////////////////////////////////
190
- // Listeners //
191
- ////////////////////////////////////////////////////////////////////////////////////////
192
  }
1
  <?php
2
 
3
  class WDSViewWDSExport {
4
+
 
 
 
 
 
 
 
 
5
  private $model;
6
 
 
 
 
7
  public function __construct($model) {
8
  $this->model = $model;
9
  }
10
 
 
 
 
11
  public function display($slider_id) {
12
  if ($slider_id) {
13
  $this->export_onee();
26
  $data = $this->model->export_one();
27
  $this->export($data);
28
  }
29
+
30
  public function export($data) {
31
  $t = isset($_GET["imagesexport"]) ? esc_html($_GET["imagesexport"]) : FALSE;
32
  $filename = "sliders_" . date('Ymd His');
35
  $zip->open($filename, ZipArchive::CREATE);
36
  $xml_str .= '<sliders version="' . get_option('wds_version').'">';
37
  foreach ($data as $key => $value) {
38
+ $xml_str .= '<slider>';
39
  foreach ($value as $key_slider => $value_slider) {
40
  if (!is_array($value_slider)) {
41
  if (strpos($value_slider, site_url()) !== FALSE) {
45
  else {
46
  $file_url = html_entity_decode($value_slider, ENT_QUOTES);
47
  $base_name = basename($file_url);
48
+ $download_file = file_get_contents( str_replace(" ", "%20", $file_url) );
49
+ if ( !empty($download_file) ) {
50
+ $zip->addFromString(WDS()->site_url_buttons_placeholder . $base_name, $download_file);
51
+ }
52
  if ($key_slider != "built_in_watermark_url") {
53
  if ($key_slider != "music_url") {
54
  // Create thumbnail url to check if it exist.
59
  // If thumbnail exist (buttons default images).
60
  $download_file = file_get_contents(str_replace(" ", "%20", str_replace($base_name, 'thumb/' . $base_name, $file_url)));
61
  }
62
+ if ( !empty($download_file) ) {
63
+ $zip->addFromString(WDS()->site_url_buttons_placeholder . '_thumb_' . $base_name, $download_file);
64
+ }
65
  }
66
  }
67
  $value_slider = WDS()->site_url_buttons_placeholder . basename($value_slider);
79
  if ($value_slides->type == 'image') {
80
  if (strpos($value_slides->image_url, site_url()) !== FALSE) {
81
  $download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $image_url), ENT_QUOTES));
82
+ if ( !empty($download_file) ) {
83
+ $zip->addFromString(basename(html_entity_decode($image_url, ENT_QUOTES)), $download_file);
84
+ }
85
  $value_slides->image_url = WDS()->site_url_placeholder. basename($image_url);
86
  }
87
  if (strpos($value_slides->thumb_url , site_url()) !== FALSE) {
88
  $download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $value_slides->thumb_url), ENT_QUOTES));
89
+ if ( !empty($download_file) ) {
90
+ $zip->addFromString('thumb_' . basename(html_entity_decode($image_url, ENT_QUOTES)), $download_file);
91
+ }
92
  $value_slides->thumb_url = WDS()->site_url_placeholder . basename($image_url);
93
  }
94
  }
98
  }
99
  if (strpos($value_slides->thumb_url , site_url()) !== FALSE) {
100
  $download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $value_slides->thumb_url), ENT_QUOTES));
101
+ if ( !empty($download_file) ) {
102
+ $zip->addFromString('featured_' . basename(html_entity_decode($value_slides->thumb_url, ENT_QUOTES)), $download_file);
103
+ }
104
  $value_slides->thumb_url = WDS()->site_url_placeholder . basename($value_slides->thumb_url);
105
  }
106
  if (strpos($value_slides->image_url, site_url()) !== FALSE) {
107
+ $download_file = file_get_contents(html_entity_decode(str_replace(" ", "%20", $image_url), ENT_QUOTES));
108
+ if ( !empty($download_file) ) {
109
  $zip->addFromString(basename(html_entity_decode($image_url, ENT_QUOTES)), $download_file);
110
+ }
111
+ $value_slides->image_url = WDS()->site_url_placeholder. basename($image_url);
112
  }
113
  }
114
  }
135
  $file_url = html_entity_decode($value_layers->image_url, ENT_QUOTES);
136
  $base_name = basename($file_url);
137
  $download_file = file_get_contents(str_replace(" ", "%20", $file_url));
138
+ if ( !empty($download_file) ) {
139
+ $zip->addFromString($base_name, $download_file);
140
+ }
141
  // Create thumbnail url to check if it exist.
142
  $thumb_url = str_replace($base_name, 'thumb/' . $base_name, $file_url);
143
  // Thumbnail filname from url.
146
  // If thumbnail exist (layer images uploaded with spider uploader).
147
  $download_file = file_get_contents(str_replace(" ", "%20", str_replace($base_name, 'thumb/' . $base_name, $file_url)));
148
  }
149
+ if ( !empty($download_file) ) {
150
+ $zip->addFromString('thumb_' . $base_name, $download_file);
151
+ }
152
  $value_layers->image_url = WDS()->site_url_placeholder . basename($value_layers->image_url);
153
  }
154
  }
155
  elseif (strpos($value_layers->image_url, site_url()) !== FALSE) {
156
+ $value_layers->image_url = '';
157
  }
158
  }
159
+ foreach ($value_layers as $key_layer => $value_layer) {
160
  $xml_str .= '<' . $key_layer .'>' . htmlspecialchars($value_layer, ENT_QUOTES) . '</' . $key_layer .'>';
161
  }
162
  $xml_str .= '</layer>';
163
  }
164
  }
165
  else {
166
+ $xml_str .= '<'.$key_slide .' value="' . htmlspecialchars($value_slide, ENT_QUOTES) . '" />';
167
  }
168
  }
169
  $xml_str .= '</slide>';
173
  $xml_str .= '</slider>';
174
  }
175
  $xml_str .= '</sliders>';
176
+ $zip->addFromString($filename . ".xml", $xml_str);
177
  $zip->close();
178
  header("Content-Disposition: attachment; filename=\"$filename.zip\"");
179
  header("Content-Type:text/xml, charset=utf-8");
180
+ ob_end_clean();
181
  readfile($filename);
182
  @unlink($filename);
183
  die('');
184
  }
 
 
 
 
 
 
 
 
 
185
  }
js/wds.js CHANGED
@@ -629,78 +629,81 @@ function wds_onload() {
629
  }
630
 
631
  jQuery('.wds_rl_butt_groups').each(function(i) {
632
- var type_key = jQuery(this).val();
633
- if( typeof wds_rl_butt_type[type_key] !== "undefined" && typeof wds_rl_butt_type[type_key]["type_name"] !== "undefined" ) {
634
- var src_top_left = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/1.png';
635
- var src_top_right = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/2.png';
636
- var src_bottom_left = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/3.png';
637
- var src_bottom_right = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/4.png';
638
-
639
- jQuery(this).find('.src_top_left').attr('src', src_top_left);
640
- jQuery(this).find('.src_top_right').attr('src', src_top_right);
641
- jQuery(this).find('.src_bottom_left').attr('src', src_bottom_left);
642
- jQuery(this).find('.src_bottom_right').attr('src', src_bottom_right);
643
- }
644
  });
645
 
646
  jQuery('.wds_rl_butt_col_groups').each(function(i) {
647
- var color_key = jQuery(this).val();
648
- src_col_top_left = rl_butt_dir + wds_rl_butt_type[type_cur_fold]["type_name"] + '/' + wds_rl_butt_type[type_cur_fold][color_key] + '/1.png';
649
- src_col_top_right = rl_butt_dir + wds_rl_butt_type[type_cur_fold]["type_name"] + '/' + wds_rl_butt_type[type_cur_fold][color_key] + '/2.png';
650
- src_col_bottom_left = rl_butt_dir + wds_rl_butt_type[type_cur_fold]["type_name"] + '/' + wds_rl_butt_type[type_cur_fold][color_key] + '/3.png';
651
- src_col_bottom_right = rl_butt_dir + wds_rl_butt_type[type_cur_fold]["type_name"] + '/' + wds_rl_butt_type[type_cur_fold][color_key] + '/4.png';
652
-
653
- jQuery(this).find('.src_col_top_left').attr('src', src_col_top_left);
654
- jQuery(this).find('.src_col_top_right').attr('src', src_col_top_right);
655
- jQuery(this).find('.src_col_bottom_left').attr('src', src_col_bottom_left);
656
- jQuery(this).find('.src_col_bottom_right').attr('src', src_col_bottom_right);
 
657
  });
658
 
659
  jQuery('.wds_pp_butt_groups').each(function(i) {
660
- var pp_type_key = jQuery(this).val();
661
- if( typeof wds_pp_butt_type[pp_type_key] !== "undefined" && typeof wds_pp_butt_type[pp_type_key]["type_name"] !== "undefined" ) {
662
- var pp_src_top_left = pp_butt_dir + wds_pp_butt_type[pp_type_key]["type_name"] + '/1/1.png';
663
- var pp_src_top_right = pp_butt_dir + wds_pp_butt_type[pp_type_key]["type_name"] + '/1/2.png';
664
- var pp_src_bottom_left = pp_butt_dir + wds_pp_butt_type[pp_type_key]["type_name"] + '/1/3.png';
665
- var pp_src_bottom_right = pp_butt_dir + wds_pp_butt_type[pp_type_key]["type_name"] + '/1/4.png';
666
-
667
- jQuery(this).find('.pp_src_top_left').attr('src', pp_src_top_left);
668
- jQuery(this).find('.pp_src_top_right').attr('src', pp_src_top_right);
669
- jQuery(this).find('.pp_src_bottom_left').attr('src', pp_src_bottom_left);
670
- jQuery(this).find('.pp_src_bottom_right').attr('src', pp_src_bottom_right);
671
- }
672
  });
673
 
674
  jQuery('.wds_pp_butt_col_groups').each(function(i) {
675
- var pp_color_key = jQuery(this).val();
676
- var pp_src_col_top_left = pp_butt_dir + wds_pp_butt_type[pp_type_cur_fold]["type_name"] + '/' + wds_pp_butt_type[pp_type_cur_fold][pp_color_key] + '/1.png';
677
- var pp_src_col_top_right = pp_butt_dir + wds_pp_butt_type[pp_type_cur_fold]["type_name"] + '/' + wds_pp_butt_type[pp_type_cur_fold][pp_color_key] + '/2.png';
678
- var pp_src_col_bottom_left = pp_butt_dir + wds_pp_butt_type[pp_type_cur_fold]["type_name"] + '/' + wds_pp_butt_type[pp_type_cur_fold][pp_color_key] + '/3.png';
679
- var pp_src_col_bottom_right = pp_butt_dir + wds_pp_butt_type[pp_type_cur_fold]["type_name"] + '/' + wds_pp_butt_type[pp_type_cur_fold][pp_color_key] + '/4.png';
680
-
681
- jQuery(this).find('.pp_src_col_top_left').attr('src', pp_src_col_top_left);
682
- jQuery(this).find('.pp_src_col_top_right').attr('src', pp_src_col_top_right);
683
- jQuery(this).find('.pp_src_col_bottom_left').attr('src', pp_src_col_bottom_left);
684
- jQuery(this).find('.pp_src_col_bottom_right').attr('src', pp_src_col_bottom_right);
 
685
  });
686
 
687
  jQuery('.wds_bull_butt_groups').each(function(i) {
688
- bull_type_key = jQuery(this).val();
689
- if( typeof wds_blt_img_type[bull_type_key] !== "undefined" && typeof wds_blt_img_type[bull_type_key]["type_name"] !== "undefined" ) {
690
- bull_src_left = blt_img_dir + wds_blt_img_type[bull_type_key]["type_name"] + '/1/1.png';
691
- bull_src_right = blt_img_dir + wds_blt_img_type[bull_type_key]["type_name"] + '/1/2.png';
692
- jQuery(this).find('.bull_src_left').attr('src', bull_src_left);
693
- jQuery(this).find('.bull_src_right').attr('src', bull_src_right);
694
- }
695
  });
696
 
697
  jQuery('.wds_bull_butt_col_groups').each(function(i) {
698
- bull_color_key = jQuery(this).val();
699
- bull_col_src_left = blt_img_dir + wds_blt_img_type[bull_type_cur_fold]["type_name"] + '/' + wds_blt_img_type[bull_type_cur_fold][bull_color_key] + '/1.png';
700
- bull_col_src_right = blt_img_dir + wds_blt_img_type[bull_type_cur_fold]["type_name"] + '/' + wds_blt_img_type[bull_type_cur_fold][bull_color_key] + '/2.png';
701
-
702
- jQuery(this).find('.bull_col_src_left').attr('src', bull_col_src_left);
703
- jQuery(this).find('.bull_col_src_right').attr('src', bull_col_src_right);
 
704
  });
705
  jQuery('input:radio').on('change', function(){
706
  var radios = jQuery(this).closest('td').find('label').removeClass('selected_color');
@@ -1209,7 +1212,7 @@ function wds_change_fillmode_type(that, id) {
1209
  }
1210
 
1211
  function change_rl_butt_type(that) {
1212
- var type_key = jQuery(that).val();
1213
  src = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/1.png';
1214
  var options = '';
1215
  var divs = '';
@@ -1241,7 +1244,7 @@ function change_rl_butt_type(that) {
1241
  }
1242
 
1243
  function change_play_paus_butt_type(that) {
1244
- var type_key = jQuery(that).val();
1245
  var src = pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/1/1.png';
1246
  var options = '';
1247
  var divs = '';
@@ -1273,7 +1276,7 @@ function change_play_paus_butt_type(that) {
1273
  }
1274
 
1275
  function change_rl_butt_color(that, type_key) {
1276
- var color_key = jQuery(that).val();
1277
  jQuery(".spider_options_color_cont .spider_option_cont").css({backgroundColor: ""});
1278
  jQuery(that).css({backgroundColor: "#3399FF"});
1279
  var src = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/' + wds_rl_butt_type[type_key][color_key];
@@ -1289,7 +1292,7 @@ function change_rl_butt_color(that, type_key) {
1289
  }
1290
 
1291
  function change_play_paus_butt_color(that, type_key) {
1292
- var color_key = jQuery(that).val();
1293
  jQuery(".spider_pp_options_color_cont .spider_option_cont").css({backgroundColor: ""});
1294
  jQuery(that).css({backgroundColor: "#3399FF"});
1295
  var src = pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/' + wds_pp_butt_type[type_key][color_key];
@@ -1419,7 +1422,7 @@ function wds_change_bullets_custom_src() {
1419
  }
1420
 
1421
  function change_bullets_images_type(that) {
1422
- var type_key = jQuery(that).val();
1423
  var src = blt_img_dir + wds_blt_img_type[type_key]["type_name"] + '/1/1.png';
1424
  var options = '';
1425
  var divs = '';
@@ -1448,7 +1451,7 @@ function change_bullets_images_type(that) {
1448
  }
1449
 
1450
  function change_bullets_images_color(that, type_key) {
1451
- var color_key = jQuery(that).val();
1452
  jQuery(".spider_bull_options_color_cont .spider_option_cont").css({backgroundColor: ""});
1453
  jQuery(that).css({backgroundColor: "#3399FF"});
1454
  var src = blt_img_dir + wds_blt_img_type[type_key]["type_name"] + '/' + wds_blt_img_type[type_key][color_key];
629
  }
630
 
631
  jQuery('.wds_rl_butt_groups').each(function(i) {
632
+ var type_key = jQuery(this).attr('value');
633
+ if( typeof type_key !== 'undefined' && typeof wds_rl_butt_type[type_key] !== 'undefined' && typeof wds_rl_butt_type[type_key]['type_name'] !== 'undefined' ) {
634
+ var src_top_left = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/1.png';
635
+ var src_top_right = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/2.png';
636
+ var src_bottom_left = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/3.png';
637
+ var src_bottom_right = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/4.png';
638
+
639
+ jQuery(this).find('.src_top_left').attr('src', src_top_left);
640
+ jQuery(this).find('.src_top_right').attr('src', src_top_right);
641
+ jQuery(this).find('.src_bottom_left').attr('src', src_bottom_left);
642
+ jQuery(this).find('.src_bottom_right').attr('src', src_bottom_right);
643
+ }
644
  });
645
 
646
  jQuery('.wds_rl_butt_col_groups').each(function(i) {
647
+ var color_key = jQuery(this).attr('value');
648
+ if ( typeof color_key !== 'undefined' && typeof wds_rl_butt_type[type_cur_fold] !== 'undefined' && typeof wds_rl_butt_type[type_cur_fold]['type_name'] !== 'undefined' && typeof wds_rl_butt_type[type_cur_fold][color_key] !== 'undefined' ) {
649
+ src_col_top_left = rl_butt_dir + wds_rl_butt_type[type_cur_fold]["type_name"] + '/' + wds_rl_butt_type[type_cur_fold][color_key] + '/1.png';
650
+ src_col_top_right = rl_butt_dir + wds_rl_butt_type[type_cur_fold]["type_name"] + '/' + wds_rl_butt_type[type_cur_fold][color_key] + '/2.png';
651
+ src_col_bottom_left = rl_butt_dir + wds_rl_butt_type[type_cur_fold]["type_name"] + '/' + wds_rl_butt_type[type_cur_fold][color_key] + '/3.png';
652
+ src_col_bottom_right = rl_butt_dir + wds_rl_butt_type[type_cur_fold]["type_name"] + '/' + wds_rl_butt_type[type_cur_fold][color_key] + '/4.png';
653
+ jQuery(this).find('.src_col_top_left').attr('src', src_col_top_left);
654
+ jQuery(this).find('.src_col_top_right').attr('src', src_col_top_right);
655
+ jQuery(this).find('.src_col_bottom_left').attr('src', src_col_bottom_left);
656
+ jQuery(this).find('.src_col_bottom_right').attr('src', src_col_bottom_right);
657
+ }
658
  });
659
 
660
  jQuery('.wds_pp_butt_groups').each(function(i) {
661
+ var pp_type_key = jQuery(this).attr('value');
662
+ if( typeof pp_type_key !== 'undefined' && typeof wds_pp_butt_type[pp_type_key] !== 'undefined' && typeof wds_pp_butt_type[pp_type_key]['type_name'] !== 'undefined' ) {
663
+ var pp_src_top_left = pp_butt_dir + wds_pp_butt_type[pp_type_key]["type_name"] + '/1/1.png';
664
+ var pp_src_top_right = pp_butt_dir + wds_pp_butt_type[pp_type_key]["type_name"] + '/1/2.png';
665
+ var pp_src_bottom_left = pp_butt_dir + wds_pp_butt_type[pp_type_key]["type_name"] + '/1/3.png';
666
+ var pp_src_bottom_right = pp_butt_dir + wds_pp_butt_type[pp_type_key]["type_name"] + '/1/4.png';
667
+
668
+ jQuery(this).find('.pp_src_top_left').attr('src', pp_src_top_left);
669
+ jQuery(this).find('.pp_src_top_right').attr('src', pp_src_top_right);
670
+ jQuery(this).find('.pp_src_bottom_left').attr('src', pp_src_bottom_left);
671
+ jQuery(this).find('.pp_src_bottom_right').attr('src', pp_src_bottom_right);
672
+ }
673
  });
674
 
675
  jQuery('.wds_pp_butt_col_groups').each(function(i) {
676
+ var pp_color_key = jQuery(this).attr('value');
677
+ if ( typeof pp_color_key !== 'undefined' && typeof wds_pp_butt_type[pp_type_cur_fold] !== 'undefined' && typeof wds_pp_butt_type[pp_type_cur_fold]['type_name'] !== 'undefined' && typeof wds_pp_butt_type[pp_type_cur_fold][pp_color_key] !== 'undefined' ) {
678
+ var pp_src_col_top_left = pp_butt_dir + wds_pp_butt_type[pp_type_cur_fold]['type_name'] + '/' + wds_pp_butt_type[pp_type_cur_fold][pp_color_key] + '/1.png';
679
+ var pp_src_col_top_right = pp_butt_dir + wds_pp_butt_type[pp_type_cur_fold]['type_name'] + '/' + wds_pp_butt_type[pp_type_cur_fold][pp_color_key] + '/2.png';
680
+ var pp_src_col_bottom_left = pp_butt_dir + wds_pp_butt_type[pp_type_cur_fold]['type_name'] + '/' + wds_pp_butt_type[pp_type_cur_fold][pp_color_key] + '/3.png';
681
+ var pp_src_col_bottom_right = pp_butt_dir + wds_pp_butt_type[pp_type_cur_fold]['type_name'] + '/' + wds_pp_butt_type[pp_type_cur_fold][pp_color_key] + '/4.png';
682
+ jQuery(this).find('.pp_src_col_top_left').attr('src', pp_src_col_top_left);
683
+ jQuery(this).find('.pp_src_col_top_right').attr('src', pp_src_col_top_right);
684
+ jQuery(this).find('.pp_src_col_bottom_left').attr('src', pp_src_col_bottom_left);
685
+ jQuery(this).find('.pp_src_col_bottom_right').attr('src', pp_src_col_bottom_right);
686
+ }
687
  });
688
 
689
  jQuery('.wds_bull_butt_groups').each(function(i) {
690
+ bull_type_key = jQuery(this).attr('value');
691
+ if( typeof bull_type_key !== 'undefined' && typeof wds_blt_img_type[bull_type_key] !== 'undefined' && typeof wds_blt_img_type[bull_type_key]['type_name'] !== 'undefined' ) {
692
+ bull_src_left = blt_img_dir + wds_blt_img_type[bull_type_key]["type_name"] + '/1/1.png';
693
+ bull_src_right = blt_img_dir + wds_blt_img_type[bull_type_key]["type_name"] + '/1/2.png';
694
+ jQuery(this).find('.bull_src_left').attr('src', bull_src_left);
695
+ jQuery(this).find('.bull_src_right').attr('src', bull_src_right);
696
+ }
697
  });
698
 
699
  jQuery('.wds_bull_butt_col_groups').each(function(i) {
700
+ bull_color_key = jQuery(this).attr('value');
701
+ if ( typeof bull_color_key !== 'undefined' && typeof wds_blt_img_type[bull_type_cur_fold] !== 'undefined' && typeof wds_blt_img_type[bull_type_cur_fold][bull_color_key] !== 'undefined' ) {
702
+ bull_col_src_left = blt_img_dir + wds_blt_img_type[bull_type_cur_fold]["type_name"] + '/' + wds_blt_img_type[bull_type_cur_fold][bull_color_key] + '/1.png';
703
+ bull_col_src_right = blt_img_dir + wds_blt_img_type[bull_type_cur_fold]["type_name"] + '/' + wds_blt_img_type[bull_type_cur_fold][bull_color_key] + '/2.png';
704
+ jQuery(this).find('.bull_col_src_left').attr('src', bull_col_src_left);
705
+ jQuery(this).find('.bull_col_src_right').attr('src', bull_col_src_right);
706
+ }
707
  });
708
  jQuery('input:radio').on('change', function(){
709
  var radios = jQuery(this).closest('td').find('label').removeClass('selected_color');
1212
  }
1213
 
1214
  function change_rl_butt_type(that) {
1215
+ var type_key = jQuery(that).attr('value');
1216
  src = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/1/1.png';
1217
  var options = '';
1218
  var divs = '';
1244
  }
1245
 
1246
  function change_play_paus_butt_type(that) {
1247
+ var type_key = jQuery(that).attr('value');
1248
  var src = pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/1/1.png';
1249
  var options = '';
1250
  var divs = '';
1276
  }
1277
 
1278
  function change_rl_butt_color(that, type_key) {
1279
+ var color_key = jQuery(that).attr('value');
1280
  jQuery(".spider_options_color_cont .spider_option_cont").css({backgroundColor: ""});
1281
  jQuery(that).css({backgroundColor: "#3399FF"});
1282
  var src = rl_butt_dir + wds_rl_butt_type[type_key]["type_name"] + '/' + wds_rl_butt_type[type_key][color_key];
1292
  }
1293
 
1294
  function change_play_paus_butt_color(that, type_key) {
1295
+ var color_key = jQuery(that).attr('value');
1296
  jQuery(".spider_pp_options_color_cont .spider_option_cont").css({backgroundColor: ""});
1297
  jQuery(that).css({backgroundColor: "#3399FF"});
1298
  var src = pp_butt_dir + wds_pp_butt_type[type_key]["type_name"] + '/' + wds_pp_butt_type[type_key][color_key];
1422
  }
1423
 
1424
  function change_bullets_images_type(that) {
1425
+ var type_key = jQuery(that).attr('value');
1426
  var src = blt_img_dir + wds_blt_img_type[type_key]["type_name"] + '/1/1.png';
1427
  var options = '';
1428
  var divs = '';
1451
  }
1452
 
1453
  function change_bullets_images_color(that, type_key) {
1454
+ var color_key = jQuery(that).attr('value');
1455
  jQuery(".spider_bull_options_color_cont .spider_option_cont").css({backgroundColor: ""});
1456
  jQuery(that).css({backgroundColor: "#3399FF"});
1457
  var src = blt_img_dir + wds_blt_img_type[type_key]["type_name"] + '/' + wds_blt_img_type[type_key][color_key];
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.8
6
  Requires PHP: 5.2
7
- Stable tag: 1.2.46
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -13,7 +13,7 @@ Slider by 10Web plugin is the perfect slider solution for Wordpress. Create a gr
13
  == Description ==
14
 
15
 
16
- https://www.youtube.com/watch?v=xebpM_-GwG0&index=1&list=PLnxWPiY5tLFWQf5XaEYYPZj0gdggUrVxP
17
 
18
  = Useful Links: =
19
  [Special Offer for all Premium Plugins](https://10web.io/plugins-bundle-pricing/)
@@ -444,6 +444,9 @@ The plugin takes the full width of the widget area if the **Boxed Layout** in **
444
 
445
 
446
  == Changelog ==
 
 
 
447
  = 1.2.46 =
448
  * Fixed: Slide options styles.
449
 
4
  Requires at least: 3.4
5
  Tested up to: 5.8
6
  Requires PHP: 5.2
7
+ Stable tag: 1.2.47
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
13
  == Description ==
14
 
15
 
16
+ https://www.youtube.com/watch?v=xebpM_-GwG0
17
 
18
  = Useful Links: =
19
  [Special Offer for all Premium Plugins](https://10web.io/plugins-bundle-pricing/)
444
 
445
 
446
  == Changelog ==
447
+ = 1.2.47 =
448
+ * Fixed: Icons in "Navigation / Bullets" buttons list.
449
+
450
  = 1.2.46 =
451
  * Fixed: Slide options styles.
452
 
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.46
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.46';
83
- $this->db_version = '1.2.46';
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.47
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.47';
83
+ $this->db_version = '1.2.47';
84
  $this->prefix = 'wds';
85
  $this->nicename = __('Slider', $this->prefix);
86
  $this->use_home_url();