Slider by WD – Responsive Slider - Version 1.0.29

Version Description

Fixed: Multiple sliders in a page.

Download this release

Release Info

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

Code changes from version 1.0.28 to 1.0.29

admin/views/WDSViewSliders_wds.php CHANGED
@@ -1768,7 +1768,7 @@ class WDSViewSliders_wds {
1768
  <?php
1769
  if (!$row->spider_uploader) {
1770
  ?>
1771
- <input type="button" class="button-primary" id="button_image_url<?php echo $slide_row->id; ?>" onclick="spider_media_uploader('<?php echo $slide_row->id; ?>', event, false); return false;" value="Add Image from Media Library" />
1772
  <?php
1773
  }
1774
  else {
@@ -1808,7 +1808,7 @@ class WDSViewSliders_wds {
1808
  switch ($layer->type) {
1809
  case 'text': {
1810
  ?>
1811
- <span id="<?php echo $prefix; ?>" class="wds_draggable_<?php echo $slide_row->id; ?> wds_draggable ui-draggable" onclick="wds_showhide_layer('<?php echo $prefix; ?>_tbody', 1)"
1812
  style="<?php echo $layer->image_width ? 'width: ' . $layer->image_width . '%; ' : ''; ?><?php echo $layer->image_height ? 'height: ' . $layer->image_height . '%; ' : ''; ?>word-break: <?php echo ($layer->image_scale ? 'keep-all' : 'break-all'); ?>; display: inline-block; position: absolute; left: <?php echo $layer->left; ?>px; top: <?php echo $layer->top; ?>px; z-index: <?php echo $layer->depth; ?>; color: #<?php echo $layer->color; ?>; font-size: <?php echo $layer->size; ?>px; line-height: 1.25em; font-family: <?php echo $layer->ffamily; ?>; font-weight: <?php echo $layer->fweight; ?>; padding: <?php echo $layer->padding; ?>; background-color: <?php echo WDW_S_Library::spider_hex2rgba($layer->fbgcolor, (100 - $layer->transparent) / 100); ?>; border: <?php echo $layer->border_width; ?>px <?php echo $layer->border_style; ?> #<?php echo $layer->border_color; ?>; border-radius: <?php echo $layer->border_radius; ?>; box-shadow: <?php echo $layer->shadow; ?>"><?php echo str_replace(array("\r\n", "\r", "\n"), "<br>", $layer->text); ?></span>
1813
  <?php
1814
  break;
@@ -1913,6 +1913,7 @@ class WDSViewSliders_wds {
1913
  </td>
1914
  <td>
1915
  <textarea id="<?php echo $prefix; ?>_text" name="<?php echo $prefix; ?>_text" style="width: 222px; height: 60px; resize: vertical;" onkeyup="wds_new_line('<?php echo $prefix; ?>');"><?php echo $layer->text; ?></textarea>
 
1916
  <div class="spider_description"></div>
1917
  </td>
1918
  <td class="spider_label">
1768
  <?php
1769
  if (!$row->spider_uploader) {
1770
  ?>
1771
+ <input type="button" class="button-primary" id="button_image_url<?php echo $slide_row->id; ?>" onclick="spider_media_uploader('<?php echo $slide_row->id; ?>', event, false); return false;" value="Add Image" />
1772
  <?php
1773
  }
1774
  else {
1808
  switch ($layer->type) {
1809
  case 'text': {
1810
  ?>
1811
+ <span id="<?php echo $prefix; ?>" class="wds_draggable_<?php echo $slide_row->id; ?> wds_draggable ui-draggable" data-type="wds_text_parent" onclick="wds_showhide_layer('<?php echo $prefix; ?>_tbody', 1)"
1812
  style="<?php echo $layer->image_width ? 'width: ' . $layer->image_width . '%; ' : ''; ?><?php echo $layer->image_height ? 'height: ' . $layer->image_height . '%; ' : ''; ?>word-break: <?php echo ($layer->image_scale ? 'keep-all' : 'break-all'); ?>; display: inline-block; position: absolute; left: <?php echo $layer->left; ?>px; top: <?php echo $layer->top; ?>px; z-index: <?php echo $layer->depth; ?>; color: #<?php echo $layer->color; ?>; font-size: <?php echo $layer->size; ?>px; line-height: 1.25em; font-family: <?php echo $layer->ffamily; ?>; font-weight: <?php echo $layer->fweight; ?>; padding: <?php echo $layer->padding; ?>; background-color: <?php echo WDW_S_Library::spider_hex2rgba($layer->fbgcolor, (100 - $layer->transparent) / 100); ?>; border: <?php echo $layer->border_width; ?>px <?php echo $layer->border_style; ?> #<?php echo $layer->border_color; ?>; border-radius: <?php echo $layer->border_radius; ?>; box-shadow: <?php echo $layer->shadow; ?>"><?php echo str_replace(array("\r\n", "\r", "\n"), "<br>", $layer->text); ?></span>
1813
  <?php
1814
  break;
1913
  </td>
1914
  <td>
1915
  <textarea id="<?php echo $prefix; ?>_text" name="<?php echo $prefix; ?>_text" style="width: 222px; height: 60px; resize: vertical;" onkeyup="wds_new_line('<?php echo $prefix; ?>');"><?php echo $layer->text; ?></textarea>
1916
+ <input type="button" class="wds_editor_btn button-secondary" onclick="alert('This functionality is disabled in free version.')" value="Editor" />
1917
  <div class="spider_description"></div>
1918
  </td>
1919
  <td class="spider_label">
css/wds_frontend.css CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  div[id^="wds_container"] * {
2
  -moz-user-select: none;
3
  -khtml-user-select: none;
@@ -81,6 +85,14 @@ div[id^="wds_container"] .wds_right_btn_cont {
81
  vertical-align: middle;
82
  }
83
 
 
 
 
 
 
 
 
 
84
  @-webkit-keyframes wdszoom0 { 100% { background-size: 170%; }}
85
  @-webkit-keyframes wdszoom70 { 100% { background-size: 100%; }}
86
  @-moz-keyframes wdszoom0 { 100% { background-size: 170%; }}
1
+ .wds_more {
2
+ font-size: 12px;
3
+ }
4
+
5
  div[id^="wds_container"] * {
6
  -moz-user-select: none;
7
  -khtml-user-select: none;
85
  vertical-align: middle;
86
  }
87
 
88
+ span[data-type="wds_text_parent"] * {
89
+ color: inherit;
90
+ font-family: inherit;
91
+ font-size: inherit;
92
+ margin: inherit;
93
+ padding: inherit;
94
+ }
95
+
96
  @-webkit-keyframes wdszoom0 { 100% { background-size: 170%; }}
97
  @-webkit-keyframes wdszoom70 { 100% { background-size: 100%; }}
98
  @-moz-keyframes wdszoom0 { 100% { background-size: 170%; }}
css/wds_tables.css CHANGED
@@ -564,7 +564,8 @@
564
  .wds_add_video,
565
  .wds_resize_image,
566
  .wds_import,
567
- .wds_exports {
 
568
  display: none;
569
  padding: 10px;
570
  height: 60px;
@@ -588,6 +589,31 @@
588
  margin-left: -240px;
589
  }
590
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
591
  .wds_import {
592
  margin-left: -185px;
593
  }
@@ -935,4 +961,11 @@
935
  position: absolute;
936
  right: 40px;
937
  z-index: 1;
 
 
 
 
 
 
 
938
  }
564
  .wds_add_video,
565
  .wds_resize_image,
566
  .wds_import,
567
+ .wds_exports,
568
+ .wds_editor {
569
  display: none;
570
  padding: 10px;
571
  height: 60px;
589
  margin-left: -240px;
590
  }
591
 
592
+ .wds_editor {
593
+ background-color: transparent;
594
+ border: none;
595
+ margin-left: -247px;
596
+ margin-top: -110px;
597
+ width: 465px;
598
+ height: 225px;
599
+ resize: vertical;
600
+ }
601
+
602
+ .wds_editor_btn {
603
+ position: absolute;
604
+ margin-left: 5px !important;
605
+ }
606
+
607
+ .wds_editor_insert_btn {
608
+ background-color: #FFFFFF;
609
+ padding: 5px;
610
+ text-align: right;
611
+ }
612
+
613
+ #wp-template_text-wrap {
614
+ background-color: #FFFFFF;
615
+ }
616
+
617
  .wds_import {
618
  margin-left: -185px;
619
  }
961
  position: absolute;
962
  right: 40px;
963
  z-index: 1;
964
+ }
965
+
966
+ span[data-type="wds_text_parent"] * {
967
+ color: inherit;
968
+ font-family: inherit;
969
+ font-size: inherit;
970
+ margin: inherit;
971
  }
frontend/views/WDSViewSlider.php CHANGED
@@ -803,25 +803,25 @@ class WDSViewSlider {
803
  filter: "Alpha(opacity=<?php echo ($layer->layer_effect_in != 'none') ? '0' : '100'; ?>)" !important;
804
  }
805
  </style>
806
- <span class="wds_layer_<?php echo $layer->id; ?>" id="<?php echo $prefix; ?>" wds_fsize="<?php echo $layer->size; ?>"
807
  style="<?php echo $layer->image_width ? 'width: ' . $layer->image_width . '%; ' : ''; ?>
808
- <?php echo $layer->image_height ? 'height: ' . $layer->image_height . '%; ' : ''; ?>
809
- word-break: <?php echo ($layer->image_scale ? 'normal' : 'break-all'); ?>;
810
- text-align: initial; <?php echo $layer->link ? 'cursor: pointer; ' : ''; ?>
811
- opacity: 1;
812
- filter: 'Alpha(opacity=100)';
813
- display: inline-block;
814
- position: absolute;
815
- left: <?php echo $left_percent; ?>%;
816
- top: <?php echo $top_percent; ?>%;
817
- z-index: <?php echo $layer->depth; ?>;
818
- color: #<?php echo $layer->color; ?>;
819
- font-family: <?php echo $layer->ffamily; ?>;
820
- font-weight: <?php echo $layer->fweight; ?>;
821
- background-color: <?php echo WDW_S_Library::spider_hex2rgba($layer->fbgcolor, (100 - $layer->transparent) / 100); ?>;
822
- border: <?php echo $layer->border_width; ?>px <?php echo $layer->border_style; ?> #<?php echo $layer->border_color; ?>;
823
- border-radius: <?php echo $layer->border_radius; ?>;
824
- box-shadow: <?php echo $layer->shadow; ?>"
825
  onclick="<?php echo $layer->link ? 'window.open(\'' . $layer->link . '\', \'' . ($layer->target_attr_layer ? '_blank' : '_self') . '\');' : ''; ?>event.stopPropagation();"><?php echo str_replace(array("\r\n", "\r", "\n"), "<br>", $layer->text); ?></span>
826
  <?php
827
  break;
@@ -1611,15 +1611,15 @@ class WDSViewSlider {
1611
  if ("<?php echo $current_image_url; ?>" != '') {
1612
  jQuery("<img/>").attr("src", "<?php echo $current_image_url; ?>").load(function() {
1613
  jQuery(this).remove();
1614
- wds_ready();
1615
  });
1616
  }
1617
  else {
1618
  jQuery(document).ready(function () {
1619
- wds_ready();
1620
  });
1621
  }
1622
- function wds_ready() {
1623
  <?php
1624
  if ($enable_slideshow_autoplay && $slider_row->stop_animation) {
1625
  ?>
803
  filter: "Alpha(opacity=<?php echo ($layer->layer_effect_in != 'none') ? '0' : '100'; ?>)" !important;
804
  }
805
  </style>
806
+ <span class="wds_layer_<?php echo $layer->id; ?>" data-type="wds_text_parent" id="<?php echo $prefix; ?>" wds_fsize="<?php echo $layer->size; ?>"
807
  style="<?php echo $layer->image_width ? 'width: ' . $layer->image_width . '%; ' : ''; ?>
808
+ <?php echo $layer->image_height ? 'height: ' . $layer->image_height . '%; ' : ''; ?>
809
+ word-break: <?php echo ($layer->image_scale ? 'normal' : 'break-all'); ?>;
810
+ text-align: initial; <?php echo $layer->link ? 'cursor: pointer; ' : ''; ?>
811
+ opacity: 1;
812
+ filter: 'Alpha(opacity=100)';
813
+ display: inline-block;
814
+ position: absolute;
815
+ left: <?php echo $left_percent; ?>%;
816
+ top: <?php echo $top_percent; ?>%;
817
+ z-index: <?php echo $layer->depth; ?>;
818
+ color: #<?php echo $layer->color; ?>;
819
+ font-family: <?php echo $layer->ffamily; ?>;
820
+ font-weight: <?php echo $layer->fweight; ?>;
821
+ background-color: <?php echo WDW_S_Library::spider_hex2rgba($layer->fbgcolor, (100 - $layer->transparent) / 100); ?>;
822
+ border: <?php echo $layer->border_width; ?>px <?php echo $layer->border_style; ?> #<?php echo $layer->border_color; ?>;
823
+ border-radius: <?php echo $layer->border_radius; ?>;
824
+ box-shadow: <?php echo $layer->shadow; ?>"
825
  onclick="<?php echo $layer->link ? 'window.open(\'' . $layer->link . '\', \'' . ($layer->target_attr_layer ? '_blank' : '_self') . '\');' : ''; ?>event.stopPropagation();"><?php echo str_replace(array("\r\n", "\r", "\n"), "<br>", $layer->text); ?></span>
826
  <?php
827
  break;
1611
  if ("<?php echo $current_image_url; ?>" != '') {
1612
  jQuery("<img/>").attr("src", "<?php echo $current_image_url; ?>").load(function() {
1613
  jQuery(this).remove();
1614
+ wds_ready_<?php echo $wds; ?>();
1615
  });
1616
  }
1617
  else {
1618
  jQuery(document).ready(function () {
1619
+ wds_ready_<?php echo $wds; ?>();
1620
  });
1621
  }
1622
+ function wds_ready_<?php echo $wds; ?>() {
1623
  <?php
1624
  if ($enable_slideshow_autoplay && $slider_row->stop_animation) {
1625
  ?>
js/wds.js CHANGED
@@ -2318,7 +2318,7 @@ function wds_add_slide() {
2318
  img_layer_upload_by = ' <a href="' + (!fv ? uploader_href_for_add_layer : "") + '" class="button-' + (!fv ? "primary thickbox thickbox-preview" : "secondary wds_free_button") + ' button button-small" title="Add Image Layer" onclick="' + (!fv ? "" : "alert('This functionality is disabled in free version.')") + '; return false;">Add Image Layer</a>';
2319
  }
2320
  else {
2321
- slide_upload_by = ' <input id="button_image_url' + slideID + '" class="button-primary" type="button" value="Add Image from Media Library" onclick="spider_media_uploader(\'' + slideID + '\', event); return false;" />';
2322
  img_layer_upload_by = ' <input class="button-' + (!fv ? "primary" : "secondary wds_free_button") + ' button button-small" type="button" value="Add Image Layer" onclick="' + (!fv ? "wds_add_layer(\'image\', \'' + slideID + '\', \'\', event)" : "alert('This functionality is disabled in free version.')") + '; return false;" />';
2323
  }
2324
  jQuery("#slide_ids_string").val(jQuery("#slide_ids_string").val() + slideID + ',');
2318
  img_layer_upload_by = ' <a href="' + (!fv ? uploader_href_for_add_layer : "") + '" class="button-' + (!fv ? "primary thickbox thickbox-preview" : "secondary wds_free_button") + ' button button-small" title="Add Image Layer" onclick="' + (!fv ? "" : "alert('This functionality is disabled in free version.')") + '; return false;">Add Image Layer</a>';
2319
  }
2320
  else {
2321
+ slide_upload_by = ' <input id="button_image_url' + slideID + '" class="button-primary" type="button" value="Add Image" onclick="spider_media_uploader(\'' + slideID + '\', event); return false;" />';
2322
  img_layer_upload_by = ' <input class="button-' + (!fv ? "primary" : "secondary wds_free_button") + ' button button-small" type="button" value="Add Image Layer" onclick="' + (!fv ? "wds_add_layer(\'image\', \'' + slideID + '\', \'\', event)" : "alert('This functionality is disabled in free version.')") + '; return false;" />';
2323
  }
2324
  jQuery("#slide_ids_string").val(jQuery("#slide_ids_string").val() + slideID + ',');
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.28
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -140,6 +140,8 @@ After downloading the ZIP file of the slider plugin,
140
 
141
  == Changelog ==
142
 
 
 
143
 
144
  = 1.0.28 =
145
  Fixed: Embed slide as first slide.
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.29
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
140
 
141
  == Changelog ==
142
 
143
+ = 1.0.29 =
144
+ Fixed: Multiple sliders in a page.
145
 
146
  = 1.0.28 =
147
  Fixed: Embed slide as first slide.
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.28
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -364,7 +364,7 @@ register_activation_hook(__FILE__, 'wds_activate');
364
 
365
  function wds_install() {
366
  $version = get_option("wds_version");
367
- $new_version = '1.0.28';
368
  if ($version && version_compare($version, $new_version, '<')) {
369
  require_once WD_S_DIR . "/sliders-update.php";
370
  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.29
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
364
 
365
  function wds_install() {
366
  $version = get_option("wds_version");
367
+ $new_version = '1.0.29';
368
  if ($version && version_compare($version, $new_version, '<')) {
369
  require_once WD_S_DIR . "/sliders-update.php";
370
  wds_update($version);