Slider by WD – Responsive Slider - Version 1.0.25

Version Description

Fixed: security issue.
Changed: Manage buttons position.

Download this release

Release Info

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

Code changes from version 1.0.24 to 1.0.25

admin/models/WDSModelSliders_wds.php CHANGED
@@ -73,8 +73,10 @@ class WDSModelSliders_wds {
73
  public function get_rows_data() {
74
  global $wpdb;
75
  $where = ((isset($_POST['search_value'])) ? 'WHERE name LIKE "%' . esc_html(stripslashes($_POST['search_value'])) . '%"' : '');
76
- $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? esc_html(stripslashes($_POST['asc_or_desc'])) : 'asc');
77
- $order_by = ' ORDER BY `' . ((isset($_POST['order_by']) && esc_html(stripslashes($_POST['order_by'])) != '' && esc_html(stripslashes($_POST['order_by'])) != 'order') ? esc_html(stripslashes($_POST['order_by'])) : 'id') . '` ' . $asc_or_desc;
 
 
78
  if (isset($_POST['page_number']) && $_POST['page_number']) {
79
  $limit = ((int) $_POST['page_number'] - 1) * 20;
80
  }
73
  public function get_rows_data() {
74
  global $wpdb;
75
  $where = ((isset($_POST['search_value'])) ? 'WHERE name LIKE "%' . esc_html(stripslashes($_POST['search_value'])) . '%"' : '');
76
+ $asc_or_desc = ((isset($_POST['asc_or_desc']) && esc_html($_POST['asc_or_desc']) == 'desc') ? 'desc' : 'asc');
77
+ $order_by_arr = array('id', 'name', 'published');
78
+ $order_by = ((isset($_POST['order_by']) && in_array(esc_html($_POST['order_by']), $order_by_arr)) ? esc_html($_POST['order_by']) : 'id');
79
+ $order_by = ' ORDER BY `' . $order_by . '` ' . $asc_or_desc;
80
  if (isset($_POST['page_number']) && $_POST['page_number']) {
81
  $limit = ((int) $_POST['page_number'] - 1) * 20;
82
  }
admin/views/WDSViewSliders_wds.php CHANGED
@@ -399,7 +399,7 @@ class WDSViewSliders_wds {
399
  <?php wp_nonce_field('nonce_wd', 'nonce_wd'); ?>
400
  <span class="slider-icon"></span>
401
  <h2><?php echo $page_title; ?></h2>
402
- <div class="wds_buttons" style="float: right; position: relative; z-index: 50;">
403
  <input class="button-secondary" type="button" onclick="if (wds_check_required('name', 'Name')) {return false;};
404
  spider_set_input_value('task', 'save');
405
  spider_ajax_save('sliders_form', event);" value="Save" />
@@ -410,30 +410,6 @@ class WDSViewSliders_wds {
410
  spider_set_input_value('task', 'duplicate');
411
  spider_set_input_value('sub_tab', '');
412
  spider_ajax_save('sliders_form', event);" value="Save as Copy" />
413
- <?php
414
- if ($row->spider_uploader) {
415
- ?>
416
- <a href="<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_slides', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-primary thickbox thickbox-preview" title="Add Images" onclick="return false;">
417
- Add Images
418
- </a>
419
- <?php
420
- }
421
- else {
422
- ?>
423
- <input type="button" class="button-primary" id="button_image_url" onclick="spider_media_uploader('button_image_url', event, true); return false;" value="Add Images" />
424
- <?php
425
- }
426
- ?>
427
- <input class="button-secondary wds_free_button" type="button" value="Add Posts" onclick="alert('This functionality is disabled in free version.')" />
428
- <input class="button-primary" type="button" onclick="if (wds_check_required('name', 'Name')) {return false;};
429
- spider_set_input_value('task', 'set_watermark');
430
- spider_ajax_save('sliders_form', event);" value="Set Watermark" />
431
- <input class="button-secondary" type="button" onclick="if (wds_check_required('name', 'Name')) {return false;};
432
- spider_set_input_value('task', 'reset_watermark');
433
- spider_ajax_save('sliders_form', event);" value="Reset Watermark" />
434
- <input class="button-secondary" type="button" onclick="if (wds_check_required('name', 'Name')) {return false;};
435
- spider_set_input_value('task', 'reset');
436
- spider_ajax_save('sliders_form', event);" value="Reset Settings" />
437
  <input type="button" class="button-secondary wds_free_button" onclick="alert('This functionality is disabled in free version.')" value="Export" />
438
  <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel')" value="Cancel" />
439
  </div>
@@ -443,6 +419,11 @@ class WDSViewSliders_wds {
443
  <div class="wds_clear"></div>
444
  </div>
445
  <div>
 
 
 
 
 
446
  <!--------------Settings tab----------->
447
  <div class="wds_box wds_settings_box">
448
  <div class="wds_nav_tabs">
@@ -1711,7 +1692,35 @@ class WDSViewSliders_wds {
1711
  <!--------------Slides tab----------->
1712
  <div class="wds_box wds_slides_box">
1713
  <table>
1714
- <thead><tr><td colspan="4">&nbsp;</td></tr></thead>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1715
  <tbody style="display: block;">
1716
  <tr>
1717
  <td class="spider_label"><label for="name">Slider name: <span style="color:#FF0000;">*</span> </label></td>
399
  <?php wp_nonce_field('nonce_wd', 'nonce_wd'); ?>
400
  <span class="slider-icon"></span>
401
  <h2><?php echo $page_title; ?></h2>
402
+ <div class="wds_buttons">
403
  <input class="button-secondary" type="button" onclick="if (wds_check_required('name', 'Name')) {return false;};
404
  spider_set_input_value('task', 'save');
405
  spider_ajax_save('sliders_form', event);" value="Save" />
410
  spider_set_input_value('task', 'duplicate');
411
  spider_set_input_value('sub_tab', '');
412
  spider_ajax_save('sliders_form', event);" value="Save as Copy" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
413
  <input type="button" class="button-secondary wds_free_button" onclick="alert('This functionality is disabled in free version.')" value="Export" />
414
  <input class="button-secondary" type="submit" onclick="spider_set_input_value('task', 'cancel')" value="Cancel" />
415
  </div>
419
  <div class="wds_clear"></div>
420
  </div>
421
  <div>
422
+ <div class="wds_reset_button">
423
+ <input class="button-primary" type="button" onclick="if (wds_check_required('name', 'Name')) {return false;};
424
+ spider_set_input_value('task', 'reset');
425
+ spider_ajax_save('sliders_form', event);" value="Reset Settings" />
426
+ </div>
427
  <!--------------Settings tab----------->
428
  <div class="wds_box wds_settings_box">
429
  <div class="wds_nav_tabs">
1692
  <!--------------Slides tab----------->
1693
  <div class="wds_box wds_slides_box">
1694
  <table>
1695
+ <thead>
1696
+ <tr>
1697
+ <td colspan="4">
1698
+ <div class="wds_buttons">
1699
+ <?php
1700
+ if ($row->spider_uploader) {
1701
+ ?>
1702
+ <a href="<?php echo add_query_arg(array('action' => 'addImage', 'width' => '700', 'height' => '550', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => 'wds_add_image', 'image_for' => 'add_slides', 'TB_iframe' => '1'), admin_url('admin-ajax.php')); ?>" class="button-primary thickbox thickbox-preview" title="Add Images" onclick="return false;">
1703
+ Add Images
1704
+ </a>
1705
+ <?php
1706
+ }
1707
+ else {
1708
+ ?>
1709
+ <input type="button" class="button-primary" id="button_image_url" onclick="spider_media_uploader('button_image_url', event, true); return false;" value="Add Images" />
1710
+ <?php
1711
+ }
1712
+ ?>
1713
+ <input class="button-secondary wds_free_button" type="button" value="Add Posts" onclick="alert('This functionality is disabled in free version.')" />
1714
+ <input class="button-secondary" type="button" onclick="if (wds_check_required('name', 'Name')) {return false;};
1715
+ spider_set_input_value('task', 'set_watermark');
1716
+ spider_ajax_save('sliders_form', event);" value="Set Watermark" />
1717
+ <input class="button-secondary" type="button" onclick="if (wds_check_required('name', 'Name')) {return false;};
1718
+ spider_set_input_value('task', 'reset_watermark');
1719
+ spider_ajax_save('sliders_form', event);" value="Reset Watermark" />
1720
+ </div>
1721
+ </td>
1722
+ </tr>
1723
+ </thead>
1724
  <tbody style="display: block;">
1725
  <tr>
1726
  <td class="spider_label"><label for="name">Slider name: <span style="color:#FF0000;">*</span> </label></td>
css/wds_tables.css CHANGED
@@ -911,3 +911,28 @@
911
  font-weight: inherit !important;
912
  text-decoration: none;
913
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
911
  font-weight: inherit !important;
912
  text-decoration: none;
913
  }
914
+
915
+ #add_embed_help {
916
+ height: 200px;
917
+ width: 672px;
918
+ top: 40%;
919
+ }
920
+
921
+ #add_embed input[type="text"] {
922
+ width: 500px;
923
+ }
924
+
925
+ .wds_buttons {
926
+ float: right;
927
+ font-weight: normal;
928
+ position: relative;
929
+ }
930
+
931
+ .wds_reset_button {
932
+ display: none;
933
+ font-weight: normal;
934
+ margin: 10px 0;
935
+ position: absolute;
936
+ right: 40px;
937
+ z-index: 1;
938
+ }
framework/WDW_S_Library.php CHANGED
@@ -16,7 +16,6 @@ class WDW_S_Library {
16
  public function __construct() {
17
  }
18
 
19
-
20
  ////////////////////////////////////////////////////////////////////////////////////////
21
  // Public Methods //
22
  ////////////////////////////////////////////////////////////////////////////////////////
@@ -535,6 +534,7 @@ class WDW_S_Library {
535
  $b = hexdec($b);
536
  return 'rgba(' . $r . ', ' . $g . ', ' . $b . ', ' . number_format($transparent, 2, ".", "") . ')';
537
  }
 
538
  public static function spider_redirect($url) {
539
  $url = html_entity_decode(wp_nonce_url($url, 'nonce_wd', 'nonce_wd'));
540
  ?>
16
  public function __construct() {
17
  }
18
 
 
19
  ////////////////////////////////////////////////////////////////////////////////////////
20
  // Public Methods //
21
  ////////////////////////////////////////////////////////////////////////////////////////
534
  $b = hexdec($b);
535
  return 'rgba(' . $r . ', ' . $g . ', ' . $b . ', ' . number_format($transparent, 2, ".", "") . ')';
536
  }
537
+
538
  public static function spider_redirect($url) {
539
  $url = html_entity_decode(wp_nonce_url($url, 'nonce_wd', 'nonce_wd'));
540
  ?>
frontend/views/WDSViewSlider.php CHANGED
@@ -1365,7 +1365,7 @@ class WDSViewSlider {
1365
  var next_image_class = "#wds_image_id_<?php echo $wds; ?>_" + wds_data_<?php echo $wds; ?>[key]["id"];
1366
  <?php if ($slider_row->preload_images) { ?>
1367
  if (!wds_data_<?php echo $wds; ?>[key]["is_video"]) {
1368
- jQuery(next_image_class).find("div").css("background-image", 'url("' + wds_data_<?php echo $wds; ?>[key]["image_url"] + '")');
1369
  }
1370
  <?php } ?>
1371
  var current_slide_layers_count = wds_data_<?php echo $wds; ?>[current_key]["slide_layers_count"];
1365
  var next_image_class = "#wds_image_id_<?php echo $wds; ?>_" + wds_data_<?php echo $wds; ?>[key]["id"];
1366
  <?php if ($slider_row->preload_images) { ?>
1367
  if (!wds_data_<?php echo $wds; ?>[key]["is_video"]) {
1368
+ jQuery(next_image_class).find(".wds_slideshow_image_<?php echo $wds; ?>").css("background-image", 'url("' + wds_data_<?php echo $wds; ?>[key]["image_url"] + '")');
1369
  }
1370
  <?php } ?>
1371
  var current_slide_layers_count = wds_data_<?php echo $wds; ?>[current_key]["slide_layers_count"];
js/wds.js CHANGED
@@ -1549,6 +1549,12 @@ function wds_change_tab(that, box) {
1549
  jQuery(that).parent().addClass("wds_active");
1550
  jQuery(".wds_box").removeClass("wds_active");
1551
  jQuery("." + box).addClass("wds_active");
 
 
 
 
 
 
1552
  }
1553
 
1554
  function wds_change_nav(that, box) {
1549
  jQuery(that).parent().addClass("wds_active");
1550
  jQuery(".wds_box").removeClass("wds_active");
1551
  jQuery("." + box).addClass("wds_active");
1552
+ if (box == "wds_settings_box") {
1553
+ jQuery(".wds_reset_button").show();
1554
+ }
1555
+ else {
1556
+ jQuery(".wds_reset_button").hide();
1557
+ }
1558
  }
1559
 
1560
  function wds_change_nav(that, box) {
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.24
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -139,6 +139,10 @@ After downloading the ZIP file of the slider plugin,
139
 
140
  == Changelog ==
141
 
 
 
 
 
142
  = 1.0.24 =
143
  Changed: YouTube, Vimeo embed.
144
  New: Instagram, Flickr and Dailymotion embed.
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.25
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
139
 
140
  == Changelog ==
141
 
142
+ = 1.0.25 =
143
+ Fixed: security issue.
144
+ Changed: Manage buttons position.
145
+
146
  = 1.0.24 =
147
  Changed: YouTube, Vimeo embed.
148
  New: Instagram, Flickr and Dailymotion embed.
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.24
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -334,7 +334,7 @@ register_activation_hook(__FILE__, 'wds_activate');
334
 
335
  function wds_install() {
336
  $version = get_option("wds_version");
337
- $new_version = '1.0.24';
338
  if ($version && version_compare($version, $new_version, '<')) {
339
  require_once WD_S_DIR . "/sliders-update.php";
340
  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.25
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
334
 
335
  function wds_install() {
336
  $version = get_option("wds_version");
337
+ $new_version = '1.0.25';
338
  if ($version && version_compare($version, $new_version, '<')) {
339
  require_once WD_S_DIR . "/sliders-update.php";
340
  wds_update($version);