Slider by WD – Responsive Slider - Version 1.1.62

Version Description

  • Added: Static layers.
Download this release

Release Info

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

Code changes from version 1.1.61 to 1.1.62

admin/controllers/WDSControllerSliders_wds.php CHANGED
@@ -481,6 +481,7 @@ class WDSControllerSliders_wds {
481
  $text_alignment = ((isset($params_array_layer['text_alignment'])) ? esc_html(stripslashes($params_array_layer['text_alignment'])) : 'center');
482
  $link_to_slide = ((isset($params_array_layer['link_to_slide'])) ? (int) esc_html(stripslashes($params_array_layer['link_to_slide'])) : 0);
483
  $align_layer = ((isset($params_array_layer['align_layer'])) ? (int) esc_html(stripslashes($params_array_layer['align_layer'])) : 0);
 
484
  if ($title) {
485
  if (strpos($layer_id, 'pr_') !== FALSE) {
486
  $save = $wpdb->insert($wpdb->prefix . 'wdslayer', array(
@@ -538,6 +539,7 @@ class WDSControllerSliders_wds {
538
  'text_alignment' => $text_alignment,
539
  'link_to_slide' => $link_to_slide,
540
  'align_layer' => $align_layer,
 
541
  ));
542
  }
543
  else {
@@ -591,6 +593,7 @@ class WDSControllerSliders_wds {
591
  'text_alignment' => $text_alignment,
592
  'link_to_slide' => $link_to_slide,
593
  'align_layer' => $align_layer,
 
594
  ), array('id' => $layer_id));
595
  }
596
  }
@@ -932,6 +935,7 @@ class WDSControllerSliders_wds {
932
  'text_alignment' => $layer_id->text_alignment,
933
  'link_to_slide' => $layer_id->link_to_slide,
934
  'align_layer' => $layer_id->align_layer,
 
935
  ));
936
  }
937
  }
481
  $text_alignment = ((isset($params_array_layer['text_alignment'])) ? esc_html(stripslashes($params_array_layer['text_alignment'])) : 'center');
482
  $link_to_slide = ((isset($params_array_layer['link_to_slide'])) ? (int) esc_html(stripslashes($params_array_layer['link_to_slide'])) : 0);
483
  $align_layer = ((isset($params_array_layer['align_layer'])) ? (int) esc_html(stripslashes($params_array_layer['align_layer'])) : 0);
484
+ $static_layer = ((isset($params_array_layer['static_layer'])) ? (int) esc_html(stripslashes($params_array_layer['static_layer'])) : 0);
485
  if ($title) {
486
  if (strpos($layer_id, 'pr_') !== FALSE) {
487
  $save = $wpdb->insert($wpdb->prefix . 'wdslayer', array(
539
  'text_alignment' => $text_alignment,
540
  'link_to_slide' => $link_to_slide,
541
  'align_layer' => $align_layer,
542
+ 'static_layer' => $static_layer,
543
  ));
544
  }
545
  else {
593
  'text_alignment' => $text_alignment,
594
  'link_to_slide' => $link_to_slide,
595
  'align_layer' => $align_layer,
596
+ 'static_layer' => $static_layer,
597
  ), array('id' => $layer_id));
598
  }
599
  }
935
  'text_alignment' => $layer_id->text_alignment,
936
  'link_to_slide' => $layer_id->link_to_slide,
937
  'align_layer' => $layer_id->align_layer,
938
+ 'static_layer' => $layer_id->static_layer,
939
  ));
940
  }
941
  }
admin/views/WDSViewSliders_wds.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  class WDSViewSliders_wds {
4
  ////////////////////////////////////////////////////////////////////////////////////////
5
  // Events //
@@ -2482,6 +2481,15 @@ class WDSViewSliders_wds {
2482
  <textarea id="<?php echo $prefix; ?>_text" class='wds_textarea' name="<?php echo $prefix; ?>_text" style="width: 222px; height: 60px; resize: vertical;" onkeyup="wds_new_line('<?php echo $prefix; ?>');"><?php echo $layer->text; ?></textarea>
2483
  <input type="button" class="wds_editor_btn button-secondary" onclick="alert('This functionality is disabled in free version.')" value="Editor" />
2484
  <div class="spider_description"></div>
 
 
 
 
 
 
 
 
 
2485
  </td>
2486
  </tr>
2487
  <tr class="wds_layer_tr" >
@@ -2753,6 +2761,15 @@ class WDSViewSliders_wds {
2753
  <table class="layer_table_left">
2754
  <tr class="wds_layer_tr" >
2755
  <td class="spider_label">
 
 
 
 
 
 
 
 
 
2756
  <label>Dimensions: </label>
2757
  </td>
2758
  <td>
@@ -2931,6 +2948,15 @@ class WDSViewSliders_wds {
2931
  <table class="layer_table_left">
2932
  <tr class="wds_layer_tr">
2933
  <td class="spider_label">
 
 
 
 
 
 
 
 
 
2934
  <label>Position: </label>
2935
  </td>
2936
  <td>
1
  <?php
 
2
  class WDSViewSliders_wds {
3
  ////////////////////////////////////////////////////////////////////////////////////////
4
  // Events //
2481
  <textarea id="<?php echo $prefix; ?>_text" class='wds_textarea' name="<?php echo $prefix; ?>_text" style="width: 222px; height: 60px; resize: vertical;" onkeyup="wds_new_line('<?php echo $prefix; ?>');"><?php echo $layer->text; ?></textarea>
2482
  <input type="button" class="wds_editor_btn button-secondary" onclick="alert('This functionality is disabled in free version.')" value="Editor" />
2483
  <div class="spider_description"></div>
2484
+ </td>
2485
+ </tr>
2486
+ <tr class="wds_layer_tr">
2487
+ <td class="spider_label">
2488
+ <label for="<?php echo $prefix; ?>_static_layer">Static layer: </label>
2489
+ </td>
2490
+ <td>
2491
+ <input id="<?php echo $prefix; ?>_static_layer" type="checkbox" name="<?php echo $prefix; ?>_static_layer" <?php echo checked(1, $layer->static_layer); ?> value="1" />
2492
+ <div class="spider_description">The layer will be visible on all slides.</div>
2493
  </td>
2494
  </tr>
2495
  <tr class="wds_layer_tr" >
2761
  <table class="layer_table_left">
2762
  <tr class="wds_layer_tr" >
2763
  <td class="spider_label">
2764
+ <label for="<?php echo $prefix; ?>_static_layer">Static layer: </label>
2765
+ </td>
2766
+ <td>
2767
+ <input id="<?php echo $prefix; ?>_static_layer" type="checkbox" name="<?php echo $prefix; ?>_static_layer" <?php echo checked(1, $layer->static_layer); ?> value="1" />
2768
+ <div class="spider_description">The layer will be visible on all slides.</div>
2769
+ </td>
2770
+ </tr>
2771
+ <tr class="wds_layer_tr">
2772
+ <td title="Set width and height of the image." class="wds_tooltip spider_label">
2773
  <label>Dimensions: </label>
2774
  </td>
2775
  <td>
2948
  <table class="layer_table_left">
2949
  <tr class="wds_layer_tr">
2950
  <td class="spider_label">
2951
+ <label for="<?php echo $prefix; ?>_static_layer">Static layer: </label>
2952
+ </td>
2953
+ <td>
2954
+ <input id="<?php echo $prefix; ?>_static_layer" type="checkbox" name="<?php echo $prefix; ?>_static_layer" <?php echo checked(1, $layer->static_layer); ?> value="1" />
2955
+ <div class="spider_description">The layer will be visible on all slides.</div>
2956
+ </td>
2957
+ </tr>
2958
+ <tr class="wds_layer_tr">
2959
+ <td title="In addition you can drag and drop the layer to a desired position." class="wds_tooltip spider_label">
2960
  <label>Position: </label>
2961
  </td>
2962
  <td>
frontend/models/WDSModelSlider.php CHANGED
@@ -48,9 +48,9 @@ class WDSModelSlider {
48
  return $row;
49
  }
50
 
51
- public function get_layers_row_data($slide_id) {
52
  global $wpdb;
53
- $rows = $wpdb->get_results($wpdb->prepare("SELECT * FROM " . $wpdb->prefix . "wdslayer WHERE slide_id='%d' ORDER BY `depth` ASC", $slide_id));
54
  foreach ($rows as $row) {
55
  $row->image_url = str_replace('{site_url}', site_url(), $row->image_url);
56
  }
48
  return $row;
49
  }
50
 
51
+ public function get_layers_row_data($slide_id, $id) {
52
  global $wpdb;
53
+ $rows = $wpdb->get_results($wpdb->prepare("SELECT layer.* FROM " . $wpdb->prefix . "wdslayer as layer INNER JOIN " . $wpdb->prefix . "wdsslide as slide on layer.slide_id=slide.id INNER JOIN " . $wpdb->prefix . "wdsslider as slider on slider.id=slide.slider_id WHERE layer.slide_id=%d OR (slider.id=%d AND layer.static_layer=1) ORDER BY layer.`depth` ASC", $slide_id, $id));
54
  foreach ($rows as $row) {
55
  $row->image_url = str_replace('{site_url}', site_url(), $row->image_url);
56
  }
frontend/views/WDSViewSlider.php CHANGED
@@ -734,10 +734,13 @@ class WDSViewSlider {
734
  ?>
735
  <?php echo $slider_row->css; ?>
736
  <?php
 
 
 
 
737
  foreach ($slide_rows as $key => $slide_row) {
738
- $layers_row = $this->model->get_layers_row_data($slide_row->id);
739
- if ($layers_row) {
740
- foreach ($layers_row as $key => $layer) {
741
  if ($layer->published) {
742
  $prefix = 'wds_' . $wds . '_slide' . $slide_row->id . '_layer' . $layer->id;
743
  switch ($layer->type) {
@@ -809,9 +812,8 @@ class WDSViewSlider {
809
  wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["full_width"] = "<?php echo $slider_row->full_width; ?>";
810
  wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["image_thumb_url"] = "<?php echo (htmlspecialchars_decode($slide_row->thumb_url, ENT_QUOTES)); ?>";
811
  <?php
812
- $layers_row = $this->model->get_layers_row_data($slide_row->id);
813
- if ($layers_row) {
814
- foreach ($layers_row as $layer_key => $layer) {
815
  if (!isset($layer->align_layer)) {
816
  $layer->align_layer = 0;
817
  }
@@ -919,7 +921,7 @@ class WDSViewSlider {
919
  if ($slide_row->id == $current_image_id) {
920
  $play_pause_button_display = '';
921
  $current_image_url = $slide_row->image_url;
922
- $current_image_url = addslashes(htmlspecialchars_decode($current_image_url, ENT_QUOTES));
923
  $current_key = $key;
924
  $image_div_num = '';
925
  }
@@ -935,9 +937,8 @@ class WDSViewSlider {
935
  onclick="<?php echo $slide_row->link ? 'window.open(\'' . $slide_row->link . '\', \'' . ($slide_row->target_attr_slide ? '_blank' : '_self') . '\')' : ''; ?>"
936
  style="<?php echo $slide_row->link ? 'cursor: pointer;' : ''; ?><?php echo ((!$slider_row->preload_images || $image_div_num == '') ? "background-image: url('" . addslashes(htmlspecialchars_decode ($slide_row->image_url,ENT_QUOTES)) . "');" : ""); ?>">
937
  <?php
938
- $layers_row = $this->model->get_layers_row_data($slide_row->id);
939
- if ($layers_row) {
940
- foreach ($layers_row as $layer_key => $layer) {
941
  if ($layer->published) {
942
  $prefix = 'wds_' . $wds . '_slide' . $slide_row->id . '_layer' . $layer->id;
943
  $left_percent = $slider_row->width ? 100 * $layer->left / $slider_row->width : 0;
734
  ?>
735
  <?php echo $slider_row->css; ?>
736
  <?php
737
+ $layers_rows = array();
738
+ foreach ($slide_rows as $slide_row) {
739
+ $layers_rows[$slide_row->id] = $this->model->get_layers_row_data($slide_row->id, $id);
740
+ }
741
  foreach ($slide_rows as $key => $slide_row) {
742
+ if (isset($layers_rows[$slide_row->id]) && !empty($layers_rows[$slide_row->id])) {
743
+ foreach ($layers_rows[$slide_row->id] as $key => $layer) {
 
744
  if ($layer->published) {
745
  $prefix = 'wds_' . $wds . '_slide' . $slide_row->id . '_layer' . $layer->id;
746
  switch ($layer->type) {
812
  wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["full_width"] = "<?php echo $slider_row->full_width; ?>";
813
  wds_data_<?php echo $wds; ?>["<?php echo $key; ?>"]["image_thumb_url"] = "<?php echo (htmlspecialchars_decode($slide_row->thumb_url, ENT_QUOTES)); ?>";
814
  <?php
815
+ if (isset($layers_rows[$slide_row->id]) && !empty($layers_rows[$slide_row->id])) {
816
+ foreach ($layers_rows[$slide_row->id] as $layer_key => $layer) {
 
817
  if (!isset($layer->align_layer)) {
818
  $layer->align_layer = 0;
819
  }
921
  if ($slide_row->id == $current_image_id) {
922
  $play_pause_button_display = '';
923
  $current_image_url = $slide_row->image_url;
924
+ $current_image_url = addslashes(htmlspecialchars_decode($current_image_url, ENT_QUOTES));
925
  $current_key = $key;
926
  $image_div_num = '';
927
  }
937
  onclick="<?php echo $slide_row->link ? 'window.open(\'' . $slide_row->link . '\', \'' . ($slide_row->target_attr_slide ? '_blank' : '_self') . '\')' : ''; ?>"
938
  style="<?php echo $slide_row->link ? 'cursor: pointer;' : ''; ?><?php echo ((!$slider_row->preload_images || $image_div_num == '') ? "background-image: url('" . addslashes(htmlspecialchars_decode ($slide_row->image_url,ENT_QUOTES)) . "');" : ""); ?>">
939
  <?php
940
+ if (isset($layers_rows[$slide_row->id]) && !empty($layers_rows[$slide_row->id])) {
941
+ foreach ($layers_rows[$slide_row->id] as $layer_key => $layer) {
 
942
  if ($layer->published) {
943
  $prefix = 'wds_' . $wds . '_slide' . $slide_row->id . '_layer' . $layer->id;
944
  $left_percent = $slider_row->width ? 100 * $layer->left / $slider_row->width : 0;
js/wds.js CHANGED
@@ -185,6 +185,7 @@ function spider_ajax_save(form_id, event) {
185
  json_data["type"] = type;
186
  json_data["title"] = jQuery("#" + prefix + "_title").val();
187
  json_data["depth"] = jQuery("#" + prefix + "_depth").val();
 
188
  switch (type) {
189
  case "text": {
190
  json_data["text"] = jQuery("#" + prefix + "_text").val().replace(/[\\"]/g, '\\$&').replace(/\u0000/g, '\\0');
@@ -1890,6 +1891,12 @@ function wds_duplicate_layer(type, id, layerID, new_id) {
1890
  else {
1891
  jQuery("#" + new_prefix + "_align_layer").removeAttr("checked");
1892
  }
 
 
 
 
 
 
1893
  if (type == "text") {
1894
  wds_new_line(new_prefix);
1895
  jQuery("#" + new_prefix).attr({
@@ -2236,6 +2243,7 @@ function wds_add_layer(type, id, layerID, duplicate, files, edit) {
2236
  var text_alignment = '<td class="spider_label"><label for="' + prefix + '_text_alignment">Text alignment: </label></td>' +
2237
  '<td><select class="select_icon" style="width: 70px;" name="' + prefix + '_text_alignment" id="' + prefix + '_text_alignment" onchange="jQuery(\'#' + prefix + '\').css({textAlign: jQuery(this).val()})">' + text_alignments_option + '</select><div class="spider_description"></div></td>';
2238
 
 
2239
  switch(type) {
2240
  case 'text': {
2241
  jQuery("#wds_preview_image" + id).append(jQuery("<span />").attr({
@@ -2261,6 +2269,8 @@ function wds_add_layer(type, id, layerID, duplicate, files, edit) {
2261
  '<table class="layer_table_left" style="width: 60%">' +
2262
  '<tr class="wds_layer_tr">' +
2263
  text +
 
 
2264
  '</tr><tr class="wds_layer_tr">' +
2265
  text_dimensions +
2266
  '</tr><tr class="wds_layer_tr">' +
@@ -2314,6 +2324,8 @@ function wds_add_layer(type, id, layerID, duplicate, files, edit) {
2314
  '<tr><td colspan=2>'+
2315
  '<table class="layer_table_left" style="width: 60%">' +
2316
  '<tr class="wds_layer_tr">' +
 
 
2317
  dimensions +
2318
  '</tr><tr class="wds_layer_tr">' +
2319
  alt +
185
  json_data["type"] = type;
186
  json_data["title"] = jQuery("#" + prefix + "_title").val();
187
  json_data["depth"] = jQuery("#" + prefix + "_depth").val();
188
+ json_data["static_layer"] = jQuery("input[name=" + prefix + "_static_layer]:checked").val();
189
  switch (type) {
190
  case "text": {
191
  json_data["text"] = jQuery("#" + prefix + "_text").val().replace(/[\\"]/g, '\\$&').replace(/\u0000/g, '\\0');
1891
  else {
1892
  jQuery("#" + new_prefix + "_align_layer").removeAttr("checked");
1893
  }
1894
+ if (jQuery("#" + prefix + "_static_layer").is(":checked")) {
1895
+ jQuery("#" + new_prefix + "_static_layer").attr("checked", "checked");
1896
+ }
1897
+ else {
1898
+ jQuery("#" + new_prefix + "_static_layer").removeAttr("checked");
1899
+ }
1900
  if (type == "text") {
1901
  wds_new_line(new_prefix);
1902
  jQuery("#" + new_prefix).attr({
2243
  var text_alignment = '<td class="spider_label"><label for="' + prefix + '_text_alignment">Text alignment: </label></td>' +
2244
  '<td><select class="select_icon" style="width: 70px;" name="' + prefix + '_text_alignment" id="' + prefix + '_text_alignment" onchange="jQuery(\'#' + prefix + '\').css({textAlign: jQuery(this).val()})">' + text_alignments_option + '</select><div class="spider_description"></div></td>';
2245
 
2246
+ var static_layer = '<td class="spider_label"><label for="' + prefix + '_static_layer">Static layer: </label></td>' + '<td><input id="' + prefix + '_static_layer" type="checkbox" name="' + prefix + '_static_layer" value="1" /><div class="spider_description">The layer will be visible on all slides.</div></td>';
2247
  switch(type) {
2248
  case 'text': {
2249
  jQuery("#wds_preview_image" + id).append(jQuery("<span />").attr({
2269
  '<table class="layer_table_left" style="width: 60%">' +
2270
  '<tr class="wds_layer_tr">' +
2271
  text +
2272
+ '</tr><tr class="wds_layer_tr">' +
2273
+ static_layer +
2274
  '</tr><tr class="wds_layer_tr">' +
2275
  text_dimensions +
2276
  '</tr><tr class="wds_layer_tr">' +
2324
  '<tr><td colspan=2>'+
2325
  '<table class="layer_table_left" style="width: 60%">' +
2326
  '<tr class="wds_layer_tr">' +
2327
+ static_layer +
2328
+ '</tr><tr class="wds_layer_tr">' +
2329
  dimensions +
2330
  '</tr><tr class="wds_layer_tr">' +
2331
  alt +
readme.txt CHANGED
@@ -3,12 +3,12 @@ Contributors: webdorado
3
  Donate link: https://web-dorado.com/products/wordpress-slider-plugin.html
4
  Tags: image slider, slider, slideshow, image, images, responsive, shortcode, widget, jquery, gallery, swipe, layer
5
  Requires at least: 3.4
6
- Tested up to: 4.6
7
- Stable tag: 1.1.61
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Slider WD plugin is a great tool for creating responsive sliders. It uses various transition effects.
12
 
13
  == Description ==
14
 
@@ -125,6 +125,9 @@ After downloading the ZIP file of the slider plugin,
125
 
126
  == Changelog ==
127
 
 
 
 
128
  = 1.1.61 =
129
  * Added: Alignment for text layer.
130
 
3
  Donate link: https://web-dorado.com/products/wordpress-slider-plugin.html
4
  Tags: image slider, slider, slideshow, image, images, responsive, shortcode, widget, jquery, gallery, swipe, layer
5
  Requires at least: 3.4
6
+ Tested up to: 4.7
7
+ Stable tag: 1.1.62
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Slider WD plugin is a great tool for creating responsive sliders. Slider WD uses various transition effects.
12
 
13
  == Description ==
14
 
125
 
126
  == Changelog ==
127
 
128
+ = 1.1.62 =
129
+ * Added: Static layers.
130
+
131
  = 1.1.61 =
132
  * Added: Alignment for text layer.
133
 
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.61
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -14,7 +14,7 @@ define('WD_S_NAME', plugin_basename(dirname(__FILE__)));
14
  define('WD_S_DIR', WP_PLUGIN_DIR . "/" . WD_S_NAME);
15
  define('WD_S_URL', plugins_url(WD_S_NAME));
16
 
17
- define('WD_S_VERSION', '1.1.61');
18
 
19
  function wds_use_home_url() {
20
  $home_url = str_replace("http://", "", home_url());
@@ -247,7 +247,7 @@ function wds_preview() {
247
 
248
  function wds_media_button($context) {
249
  global $pagenow;
250
- if (in_array($pagenow, array('post.php', 'page.php', 'post-new.php', 'post-edit.php'))) {
251
  $context .= '
252
  <a onclick="tb_click.call(this); wds_thickDims(); return false;" href="' . add_query_arg(array('action' => 'WDSShortcode', 'TB_iframe' => '1'), admin_url('admin-ajax.php')) . '" class="wds_thickbox button" style="padding-left: 0.4em;" title="Select slider">
253
  <span class="wp-media-buttons-icon wds_media_button_icon" style="vertical-align: text-bottom; background: url(' . WD_S_URL . '/images/wd_slider.png) no-repeat scroll left top rgba(0, 0, 0, 0);"></span>
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.62
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
14
  define('WD_S_DIR', WP_PLUGIN_DIR . "/" . WD_S_NAME);
15
  define('WD_S_URL', plugins_url(WD_S_NAME));
16
 
17
+ define('WD_S_VERSION', '1.1.62');
18
 
19
  function wds_use_home_url() {
20
  $home_url = str_replace("http://", "", home_url());
247
 
248
  function wds_media_button($context) {
249
  global $pagenow;
250
+ if (in_array($pagenow, array('post.php', 'page.php', 'post-new.php', 'post-edit.php', 'admin-ajax.php'))) {
251
  $context .= '
252
  <a onclick="tb_click.call(this); wds_thickDims(); return false;" href="' . add_query_arg(array('action' => 'WDSShortcode', 'TB_iframe' => '1'), admin_url('admin-ajax.php')) . '" class="wds_thickbox button" style="padding-left: 0.4em;" title="Select slider">
253
  <span class="wp-media-buttons-icon wds_media_button_icon" style="vertical-align: text-bottom; background: url(' . WD_S_URL . '/images/wd_slider.png) no-repeat scroll left top rgba(0, 0, 0, 0);"></span>
sliders-insert.php CHANGED
@@ -192,6 +192,7 @@ function wds_insert() {
192
  `text_alignment` varchar(8) NOT NULL,
193
  `link_to_slide` int(4) NOT NULL,
194
  `align_layer` tinyint(1) NOT NULL,
 
195
  PRIMARY KEY (`id`)
196
  ) DEFAULT CHARSET=utf8;";
197
  $wpdb->query($wdslayer);
192
  `text_alignment` varchar(8) NOT NULL,
193
  `link_to_slide` int(4) NOT NULL,
194
  `align_layer` tinyint(1) NOT NULL,
195
+ `static_layer` tinyint(1) NOT NULL,
196
  PRIMARY KEY (`id`)
197
  ) DEFAULT CHARSET=utf8;";
198
  $wpdb->query($wdslayer);
sliders-update.php CHANGED
@@ -159,7 +159,8 @@ function wds_update($version) {
159
  if (version_compare($version, '1.1.61') == -1) {
160
  $wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdslayer` ADD `align_layer` tinyint(1) NOT NULL DEFAULT 0");
161
  }
 
 
 
162
  return;
163
  }
164
-
165
- ?>
159
  if (version_compare($version, '1.1.61') == -1) {
160
  $wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdslayer` ADD `align_layer` tinyint(1) NOT NULL DEFAULT 0");
161
  }
162
+ if (version_compare($version, '1.1.62') == -1) {
163
+ $wpdb->query("ALTER TABLE `" . $wpdb->prefix . "wdslayer` ADD `static_layer` tinyint(1) NOT NULL DEFAULT 0");
164
+ }
165
  return;
166
  }