Slider by WD – Responsive Slider - Version 1.1.12

Version Description

  • Fixed: Verify nonce on embed media.
  • Added: Carousel background image angle, grayscale, transparency options.
Download this release

Release Info

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

Code changes from version 1.1.11 to 1.1.12

admin/controllers/WDSControllerSliders_wds.php CHANGED
@@ -200,6 +200,9 @@ class WDSControllerSliders_wds {
200
  $smart_crop = ((isset($_POST['smart_crop'])) ? (int) esc_html(stripslashes($_POST['smart_crop'])) : 0);
201
  $crop_image_position = ((isset($_POST['crop_image_position'])) ? esc_html(stripslashes($_POST['crop_image_position'])) : 'middle-center');
202
  $javascript = ((isset($_POST['javascript'])) ? esc_html(stripslashes($_POST['javascript'])) : '');
 
 
 
203
 
204
  $data = array(
205
  'name' => $name,
@@ -304,6 +307,9 @@ class WDSControllerSliders_wds {
304
  'smart_crop' => $smart_crop,
305
  'crop_image_position' => $crop_image_position,
306
  'javascript' => $javascript,
 
 
 
307
  );
308
 
309
  if (!$slider_id) {
@@ -441,14 +447,14 @@ class WDSControllerSliders_wds {
441
  $duration_eff_in = ((isset($params_array['duration_eff_in'])) ? esc_html(stripslashes($params_array['duration_eff_in'])) : 3);
442
  $duration_eff_out = ((isset($params_array['duration_eff_out'])) ? esc_html(stripslashes($params_array['duration_eff_out'])) : 3);
443
 
444
- $hotp_width = ((isset($params_array['hotp_width'])) ? esc_html(stripslashes($params_array['hotp_width'])) : '');
445
- $hotp_fbgcolor = ((isset($params_array['hotp_fbgcolor'])) ? esc_html(stripslashes($params_array['hotp_fbgcolor'])) : '');
446
- $hotp_border_width = ((isset($params_array['hotp_border_width'])) ? esc_html(stripslashes($params_array['hotp_border_width'])) : '');
447
- $hotp_border_style = ((isset($params_array['hotp_border_style'])) ? esc_html(stripslashes($params_array['hotp_border_style'])) : '');
448
- $hotp_border_color = ((isset($params_array['hotp_border_color'])) ? esc_html(stripslashes($params_array['hotp_border_color'])) : '');
449
- $hotp_border_radius = ((isset($params_array['hotp_border_radius'])) ? esc_html(stripslashes($params_array['hotp_border_radius'])) : '');
450
  $hotp_text_position = ((isset($params_array['hotp_text_position'])) ? esc_html(stripslashes($params_array['hotp_text_position'])) : '');
451
- $google_fonts = ((isset($params_array['google_fonts'])) ? esc_html(stripslashes($params_array['google_fonts'])) : 0);
452
  if ($title) {
453
  if (strpos($layer_id, 'pr_') !== FALSE) {
454
  $save = $wpdb->insert($wpdb->prefix . 'wdslayer', array(
@@ -488,14 +494,14 @@ class WDSControllerSliders_wds {
488
  'duration_eff_in' => $duration_eff_in,
489
  'duration_eff_out' => $duration_eff_out,
490
  'target_attr_layer' => $target_attr_layer,
491
- 'hotp_width' => $hotp_width,
492
- 'hotp_fbgcolor' => $hotp_fbgcolor,
493
- 'hotp_border_width' => $hotp_border_width,
494
- 'hotp_border_style' => $hotp_border_style,
495
- 'hotp_border_color' => $hotp_border_color,
496
- 'hotp_border_radius' => $hotp_border_radius,
497
- 'hotp_text_position' => $hotp_text_position,
498
- 'google_fonts' => $google_fonts,
499
  ));
500
  }
501
  else {
@@ -535,12 +541,12 @@ class WDSControllerSliders_wds {
535
  'duration_eff_in' => $duration_eff_in,
536
  'duration_eff_out' => $duration_eff_out,
537
  'target_attr_layer' => $target_attr_layer,
538
- 'hotp_width' => $hotp_width,
539
- 'hotp_fbgcolor' => $hotp_fbgcolor,
540
- 'hotp_border_width' => $hotp_border_width,
541
- 'hotp_border_style' => $hotp_border_style,
542
- 'hotp_border_color' => $hotp_border_color,
543
- 'hotp_border_radius' => $hotp_border_radius,
544
  'hotp_text_position' => $hotp_text_position,
545
  'google_fonts' => $google_fonts,
546
  ), array('id' => $layer_id));
@@ -771,7 +777,10 @@ class WDSControllerSliders_wds {
771
  'carousel_image_parameters' => $slider_row->carousel_image_parameters,
772
  'carousel_fit_containerWidth' => $slider_row->carousel_fit_containerWidth,
773
  'carousel_width' => $slider_row->carousel_width,
774
- 'parallax_effect' => $slider_row->parallax_effect,
 
 
 
775
  ), array(
776
  '%s',
777
  '%d',
@@ -862,7 +871,10 @@ class WDSControllerSliders_wds {
862
  '%s',
863
  '%d',
864
  '%d',
865
- '%d',
 
 
 
866
  ));
867
  $new_slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
868
 
200
  $smart_crop = ((isset($_POST['smart_crop'])) ? (int) esc_html(stripslashes($_POST['smart_crop'])) : 0);
201
  $crop_image_position = ((isset($_POST['crop_image_position'])) ? esc_html(stripslashes($_POST['crop_image_position'])) : 'middle-center');
202
  $javascript = ((isset($_POST['javascript'])) ? esc_html(stripslashes($_POST['javascript'])) : '');
203
+ $carousel_degree = ((isset($_POST['carousel_degree'])) ? (int) esc_html(stripslashes($_POST['carousel_degree'])) : 0);
204
+ $carousel_grayscale = ((isset($_POST['carousel_grayscale'])) ? (int) esc_html(stripslashes($_POST['carousel_grayscale'])) : 0);
205
+ $carousel_transparency = ((isset($_POST['carousel_transparency'])) ? (int) esc_html(stripslashes($_POST['carousel_transparency'])) : 0);
206
 
207
  $data = array(
208
  'name' => $name,
307
  'smart_crop' => $smart_crop,
308
  'crop_image_position' => $crop_image_position,
309
  'javascript' => $javascript,
310
+ 'carousel_degree' => $carousel_degree,
311
+ 'carousel_grayscale' => $carousel_grayscale,
312
+ 'carousel_transparency' => $carousel_transparency,
313
  );
314
 
315
  if (!$slider_id) {
447
  $duration_eff_in = ((isset($params_array['duration_eff_in'])) ? esc_html(stripslashes($params_array['duration_eff_in'])) : 3);
448
  $duration_eff_out = ((isset($params_array['duration_eff_out'])) ? esc_html(stripslashes($params_array['duration_eff_out'])) : 3);
449
 
450
+ $hotp_width = ((isset($params_array['hotp_width'])) ? esc_html(stripslashes($params_array['hotp_width'])) : '');
451
+ $hotp_fbgcolor = ((isset($params_array['hotp_fbgcolor'])) ? esc_html(stripslashes($params_array['hotp_fbgcolor'])) : '');
452
+ $hotp_border_width = ((isset($params_array['hotp_border_width'])) ? esc_html(stripslashes($params_array['hotp_border_width'])) : '');
453
+ $hotp_border_style = ((isset($params_array['hotp_border_style'])) ? esc_html(stripslashes($params_array['hotp_border_style'])) : '');
454
+ $hotp_border_color = ((isset($params_array['hotp_border_color'])) ? esc_html(stripslashes($params_array['hotp_border_color'])) : '');
455
+ $hotp_border_radius = ((isset($params_array['hotp_border_radius'])) ? esc_html(stripslashes($params_array['hotp_border_radius'])) : '');
456
  $hotp_text_position = ((isset($params_array['hotp_text_position'])) ? esc_html(stripslashes($params_array['hotp_text_position'])) : '');
457
+ $google_fonts = ((isset($params_array['google_fonts'])) ? esc_html(stripslashes($params_array['google_fonts'])) : 0);
458
  if ($title) {
459
  if (strpos($layer_id, 'pr_') !== FALSE) {
460
  $save = $wpdb->insert($wpdb->prefix . 'wdslayer', array(
494
  'duration_eff_in' => $duration_eff_in,
495
  'duration_eff_out' => $duration_eff_out,
496
  'target_attr_layer' => $target_attr_layer,
497
+ 'hotp_width' => $hotp_width,
498
+ 'hotp_fbgcolor' => $hotp_fbgcolor,
499
+ 'hotp_border_width' => $hotp_border_width,
500
+ 'hotp_border_style' => $hotp_border_style,
501
+ 'hotp_border_color' => $hotp_border_color,
502
+ 'hotp_border_radius' => $hotp_border_radius,
503
+ 'hotp_text_position' => $hotp_text_position,
504
+ 'google_fonts' => $google_fonts,
505
  ));
506
  }
507
  else {
541
  'duration_eff_in' => $duration_eff_in,
542
  'duration_eff_out' => $duration_eff_out,
543
  'target_attr_layer' => $target_attr_layer,
544
+ 'hotp_width' => $hotp_width,
545
+ 'hotp_fbgcolor' => $hotp_fbgcolor,
546
+ 'hotp_border_width' => $hotp_border_width,
547
+ 'hotp_border_style' => $hotp_border_style,
548
+ 'hotp_border_color' => $hotp_border_color,
549
+ 'hotp_border_radius' => $hotp_border_radius,
550
  'hotp_text_position' => $hotp_text_position,
551
  'google_fonts' => $google_fonts,
552
  ), array('id' => $layer_id));
777
  'carousel_image_parameters' => $slider_row->carousel_image_parameters,
778
  'carousel_fit_containerWidth' => $slider_row->carousel_fit_containerWidth,
779
  'carousel_width' => $slider_row->carousel_width,
780
+ 'parallax_effect' => $slider_row->parallax_effect,
781
+ 'carousel_degree' => $slider_row->carousel_degree,
782
+ 'carousel_grayscale' => $slider_row->carousel_grayscale,
783
+ 'carousel_transparency' => $slider_row->carousel_transparency,
784
  ), array(
785
  '%s',
786
  '%d',
871
  '%s',
872
  '%d',
873
  '%d',
874
+ '%d',
875
+ '%d',
876
+ '%d',
877
+ '%d',
878
  ));
879
  $new_slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
880
 
admin/models/WDSModelSliders_wds.php CHANGED
@@ -211,6 +211,9 @@ class WDSModelSliders_wds {
211
  $row->smart_crop = 0;
212
  $row->crop_image_position = 'center center';
213
  $row->javascript = '';
 
 
 
214
  }
215
  return $row;
216
  }
211
  $row->smart_crop = 0;
212
  $row->crop_image_position = 'center center';
213
  $row->javascript = '';
214
+ $row->carousel_degree = 0;
215
+ $row->carousel_grayscale = 0;
216
+ $row->carousel_transparency = 0;
217
  }
218
  return $row;
219
  }
admin/views/WDSViewSliders_wds.php CHANGED
@@ -921,11 +921,13 @@ class WDSViewSliders_wds {
921
  <tr>
922
  <td class="spider_label"><label>Carousel: </label></td>
923
  <td>
924
- <input disabled="disabled" type="radio" id="carousel1" name="carousel" <?php echo (($row->carousel) ? 'checked="checked"' : ''); ?> value="1" /><label for="carousel1">Yes</label>
925
- <input disabled="disabled" type="radio" id="carousel0" name="carousel" <?php echo (($row->carousel) ? '' : 'checked="checked"'); ?> value="0" /><label for="carousel0">No</label>
926
  <div class="spider_description">If you activate this feature the effects you had chosen in Global settings for your slider will not play.</div>
927
  </td>
928
  </tr>
 
 
929
  <tr>
930
  <td class="spider_label"><label for="carousel_image_counts">Number of images for carousel: </label></td>
931
  <td>
@@ -955,6 +957,27 @@ class WDSViewSliders_wds {
955
  <div class="spider_description"></div>
956
  </td>
957
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
958
  </tbody>
959
  </table>
960
  </div>
@@ -2938,7 +2961,8 @@ class WDSViewSliders_wds {
2938
  jQuery(document).ready(function() {
2939
  image_for_next_prev_butt('<?php echo $row->rl_butt_img_or_not; ?>');
2940
  image_for_bull_butt('<?php echo $row->bull_butt_img_or_not; ?>');
2941
- image_for_play_pause_butt('<?php echo $row->play_paus_butt_img_or_not; ?>');
 
2942
  wds_whr('width');
2943
  wds_drag_layer('<?php echo $slide_row->id; ?>');
2944
  wds_layer_weights('<?php echo $slide_row->id; ?>');
921
  <tr>
922
  <td class="spider_label"><label>Carousel: </label></td>
923
  <td>
924
+ <input disabled="disabled" type="radio" id="carousel1" name="carousel" <?php echo (($row->carousel) ? 'checked="checked"' : ''); ?> value="1" onClick="showhide_for_carousel_fildes(1)" /><label for="carousel1">Yes</label>
925
+ <input disabled="disabled" type="radio" id="carousel0" name="carousel" <?php echo (($row->carousel) ? '' : 'checked="checked"'); ?> value="0" onClick="showhide_for_carousel_fildes(0)" /><label for="carousel0">No</label>
926
  <div class="spider_description">If you activate this feature the effects you had chosen in Global settings for your slider will not play.</div>
927
  </td>
928
  </tr>
929
+ </tbody>
930
+ <tbody id="carousel_fildes">
931
  <tr>
932
  <td class="spider_label"><label for="carousel_image_counts">Number of images for carousel: </label></td>
933
  <td>
957
  <div class="spider_description"></div>
958
  </td>
959
  </tr>
960
+ <tr>
961
+ <td class="spider_label"><label for="carousel_degree">Background image angle: </label></td>
962
+ <td>
963
+ <input type="text" id="carousel_degree" name="carousel_degree" value="<?php echo $row->carousel_degree; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)" /> deg
964
+ <div class="spider_description"></div>
965
+ </td>
966
+ </tr>
967
+ <tr>
968
+ <td class="spider_label"><label for="carousel_grayscale">Background image grayscale: </label></td>
969
+ <td>
970
+ <input type="text" name="carousel_grayscale" id="carousel_grayscale" value="<?php echo $row->carousel_grayscale; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/>%
971
+ <div class="spider_description">You can change the color scheme for background images to grayscale. Values must be between 0 to 100</div>
972
+ </td>
973
+ </tr>
974
+ <tr>
975
+ <td class="spider_label"><label for="carousel_transparency">Background image transparency: </label></td>
976
+ <td>
977
+ <input type="text" name="carousel_transparency" id="carousel_transparency" value="<?php echo $row->carousel_transparency; ?>" class="spider_int_input" onkeypress="return spider_check_isnum(event)"/>%
978
+ <div class="spider_description">You can set transparency level for background images. Values should be between 0 to 100</div>
979
+ </td>
980
+ </tr>
981
  </tbody>
982
  </table>
983
  </div>
2961
  jQuery(document).ready(function() {
2962
  image_for_next_prev_butt('<?php echo $row->rl_butt_img_or_not; ?>');
2963
  image_for_bull_butt('<?php echo $row->bull_butt_img_or_not; ?>');
2964
+ image_for_play_pause_butt('<?php echo $row->play_paus_butt_img_or_not; ?>');
2965
+ showhide_for_carousel_fildes('<?php echo $row->carousel; ?>');
2966
  wds_whr('width');
2967
  wds_drag_layer('<?php echo $slide_row->id; ?>');
2968
  wds_layer_weights('<?php echo $slide_row->id; ?>');
css/wds_tables.css CHANGED
@@ -1682,3 +1682,10 @@ tbody .action_buttons{
1682
  width:auto !important;
1683
  }
1684
  }
 
 
 
 
 
 
 
1682
  width:auto !important;
1683
  }
1684
  }
1685
+
1686
+ .wds_free_button {
1687
+ background-color: #6EC9E6!important;
1688
+ border-color:#5BA6B9 !important;
1689
+ opacity: 1;
1690
+ filter: Alpha(opacity=100);
1691
+ }
js/wds.js CHANGED
@@ -45,6 +45,9 @@ function spider_ajax_save(form_id, event) {
45
  post_data["carousel_image_parameters"] = jQuery("#carousel_image_parameters").val();
46
  post_data["carousel_fit_containerWidth"] = jQuery("input[name=carousel_fit_containerWidth]:checked").val();
47
  post_data["carousel_width"] = jQuery("#carousel_width").val();
 
 
 
48
 
49
  /* Navigation.*/
50
  post_data["prev_next_butt"] = jQuery("input[name=prev_next_butt]:checked").val();
@@ -1238,6 +1241,17 @@ function image_for_bull_butt(display) {
1238
  }
1239
  }
1240
 
 
 
 
 
 
 
 
 
 
 
 
1241
  function image_for_play_pause_butt(display) {
1242
  switch (display) {
1243
  case 'our' : {
45
  post_data["carousel_image_parameters"] = jQuery("#carousel_image_parameters").val();
46
  post_data["carousel_fit_containerWidth"] = jQuery("input[name=carousel_fit_containerWidth]:checked").val();
47
  post_data["carousel_width"] = jQuery("#carousel_width").val();
48
+ post_data["carousel_degree"] = jQuery("#carousel_degree").val();
49
+ post_data["carousel_grayscale"] = jQuery("#carousel_grayscale").val();
50
+ post_data["carousel_transparency"] = jQuery("#carousel_transparency").val();
51
 
52
  /* Navigation.*/
53
  post_data["prev_next_butt"] = jQuery("input[name=prev_next_butt]:checked").val();
1241
  }
1242
  }
1243
 
1244
+ function showhide_for_carousel_fildes(display) {
1245
+ if (display == 1) {
1246
+ jQuery("#carousel1").attr('checked', 'checked');
1247
+ jQuery("#carousel_fildes").css('display', '');
1248
+ }
1249
+ else {
1250
+ jQuery("#carousel0" ).attr('checked', 'checked');
1251
+ jQuery("#carousel_fildes").css('display', 'none');
1252
+ }
1253
+ }
1254
+
1255
  function image_for_play_pause_butt(display) {
1256
  switch (display) {
1257
  case 'our' : {
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, mp3, video, embed media, hotspot
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
- Stable tag: 1.1.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -159,6 +159,10 @@ After downloading the ZIP file of the slider plugin,
159
 
160
  == Changelog ==
161
 
 
 
 
 
162
  = 1.1.11 =
163
  * Added: New year promo notice
164
 
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, mp3, video, embed media, hotspot
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
+ Stable tag: 1.1.12
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
159
 
160
  == Changelog ==
161
 
162
+ = 1.1.12 =
163
+ * Fixed: Verify nonce on embed media.
164
+ * Added: Carousel background image angle, grayscale, transparency options.
165
+
166
  = 1.1.11 =
167
  * Added: New year promo notice
168
 
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.1.11
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -410,10 +410,13 @@ function wds_activate() {
410
  'possib_add_ffamily' => '',
411
  'show_thumbnail' => 0,
412
  'thumb_size' => '0.2',
413
- 'fixed_bg' => 0,
414
- 'smart_crop' => 0,
415
- 'crop_image_position' => 'center center',
416
- 'javascript' => '',
 
 
 
417
  )
418
  );
419
  }
@@ -427,7 +430,7 @@ register_activation_hook(__FILE__, 'wds_activate');
427
 
428
  function wds_install() {
429
  $version = get_option("wds_version");
430
- $new_version = '1.1.11';
431
  if ($version && version_compare($version, $new_version, '<')) {
432
  require_once WD_S_DIR . "/sliders-update.php";
433
  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.1.12
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
410
  'possib_add_ffamily' => '',
411
  'show_thumbnail' => 0,
412
  'thumb_size' => '0.2',
413
+ 'fixed_bg' => 0,
414
+ 'smart_crop' => 0,
415
+ 'crop_image_position' => 'center center',
416
+ 'javascript' => '',
417
+ 'carousel_degree' => 0,
418
+ 'carousel_grayscale' => 0,
419
+ 'carousel_transparency' => 0,
420
  )
421
  );
422
  }
430
 
431
  function wds_install() {
432
  $version = get_option("wds_version");
433
+ $new_version = '1.1.12';
434
  if ($version && version_compare($version, $new_version, '<')) {
435
  require_once WD_S_DIR . "/sliders-update.php";
436
  wds_update($version);
sliders-insert.php CHANGED
@@ -106,6 +106,9 @@ function wds_insert() {
106
  `smart_crop` tinyint(1) NOT NULL,
107
  `crop_image_position` varchar(16) NOT NULL,
108
  `javascript` text NOT NULL,
 
 
 
109
  PRIMARY KEY (`id`)
110
  ) DEFAULT CHARSET=utf8;";
111
  $wpdb->query($wdsslider);
106
  `smart_crop` tinyint(1) NOT NULL,
107
  `crop_image_position` varchar(16) NOT NULL,
108
  `javascript` text NOT NULL,
109
+ `carousel_degree` int(4) NOT NULL,
110
+ `carousel_grayscale` int(4) NOT NULL,
111
+ `carousel_transparency` int(4) NOT NULL,
112
  PRIMARY KEY (`id`)
113
  ) DEFAULT CHARSET=utf8;";
114
  $wpdb->query($wdsslider);
sliders-update.php CHANGED
@@ -104,6 +104,11 @@ function wds_update($version) {
104
  if (version_compare($version, '1.1.7') == -1) {
105
  $wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslider` ADD `javascript` text NOT NULL DEFAULT ''");
106
  }
 
 
 
 
 
107
  return;
108
  }
109
 
104
  if (version_compare($version, '1.1.7') == -1) {
105
  $wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdsslider` ADD `javascript` text NOT NULL DEFAULT ''");
106
  }
107
+ if (version_compare($version, '1.1.12') == -1) {
108
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `carousel_degree` int(4) NOT NULL DEFAULT 0");
109
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `carousel_grayscale` int(4) NOT NULL DEFAULT 0");
110
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `carousel_transparency` int(4) NOT NULL DEFAULT 0");
111
+ }
112
  return;
113
  }
114