Slider by WD – Responsive Slider - Version 1.1.57

Version Description

  • Added: Possibility to change loading icon.
Download this release

Release Info

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

Code changes from version 1.1.56 to 1.1.57

admin/controllers/WDSControllerGoptions_wds.php CHANGED
@@ -45,11 +45,14 @@ class WDSControllerGoptions_wds {
45
 
46
  public function save() {
47
  $wds_register_scripts = (isset($_REQUEST['wds_register_scripts']) ? (int) $_REQUEST['wds_register_scripts'] : 0);
 
48
  if (get_option("wds_register_scripts") !== false) {
49
  update_option("wds_register_scripts", $wds_register_scripts);
 
50
  }
51
  else {
52
  add_option("wds_register_scripts", $wds_register_scripts, 0, 'no');
 
53
  }
54
  $page = WDW_S_Library::get('page');
55
  WDW_S_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => 1), admin_url('admin.php')));
45
 
46
  public function save() {
47
  $wds_register_scripts = (isset($_REQUEST['wds_register_scripts']) ? (int) $_REQUEST['wds_register_scripts'] : 0);
48
+ $loading_gif = (isset($_REQUEST['loading_gif']) ? esc_html($_REQUEST['loading_gif']) : 0);
49
  if (get_option("wds_register_scripts") !== false) {
50
  update_option("wds_register_scripts", $wds_register_scripts);
51
+ update_option("wds_loading_gif", $loading_gif);
52
  }
53
  else {
54
  add_option("wds_register_scripts", $wds_register_scripts, 0, 'no');
55
+ add_option("wds_loading_gif", $loading_gif, 0, 'no');
56
  }
57
  $page = WDW_S_Library::get('page');
58
  WDW_S_Library::spider_redirect(add_query_arg(array('page' => $page, 'task' => 'display', 'message' => 1), admin_url('admin.php')));
admin/models/WDSModelSliders_wds.php CHANGED
@@ -63,7 +63,7 @@ class WDSModelSliders_wds {
63
  return $rows;
64
  }
65
 
66
- public function get_slider_prev_img($slider_id) {
67
  global $wpdb;
68
  $prev_img_url = $wpdb->get_var($wpdb->prepare("SELECT `thumb_url` FROM " . $wpdb->prefix . "wdsslide WHERE slider_id='%d' ORDER BY `order` ASC", $slider_id));
69
  $prev_img_url = $prev_img_url ? $prev_img_url : WD_S_URL . '/images/no-image.png';
63
  return $rows;
64
  }
65
 
66
+ public function get_slider_prev_img($slider_id) {
67
  global $wpdb;
68
  $prev_img_url = $wpdb->get_var($wpdb->prepare("SELECT `thumb_url` FROM " . $wpdb->prefix . "wdsslide WHERE slider_id='%d' ORDER BY `order` ASC", $slider_id));
69
  $prev_img_url = $prev_img_url ? $prev_img_url : WD_S_URL . '/images/no-image.png';
admin/models/WDSModelUninstall_wds.php CHANGED
@@ -26,6 +26,8 @@ class WDSModelUninstall_wds {
26
 
27
  delete_option("wds_version");
28
  delete_option("wds_theme_version");
 
 
29
  }
30
  ////////////////////////////////////////////////////////////////////////////////////////
31
  // Getters & Setters //
26
 
27
  delete_option("wds_version");
28
  delete_option("wds_theme_version");
29
+ delete_option("wds_loading_gif");
30
+ delete_option("wds_register_scripts");
31
  }
32
  ////////////////////////////////////////////////////////////////////////////////////////
33
  // Getters & Setters //
admin/views/WDSViewGoptions_wds.php CHANGED
@@ -24,6 +24,15 @@ class WDSViewGoptions_wds {
24
 
25
  public function display() {
26
  $register_scripts = get_option("wds_register_scripts", 0);
 
 
 
 
 
 
 
 
 
27
  ?>
28
  <div style="clear: both; float: left; width: 99%;">
29
  <div style="float: left; font-size: 14px; font-weight: bold;">
@@ -55,6 +64,24 @@ class WDSViewGoptions_wds {
55
  <input type="radio" id="wds_register_scripts0" name="wds_register_scripts" <?php echo (($register_scripts == 0)? "checked='checked'" : ""); ?> value="0" /><label <?php echo ($register_scripts ? '' : 'class="selected_color"'); ?> for="wds_register_scripts0"><?php _e('No', 'wds'); ?></label>
56
  <div class="spider_description"><?php _e('Helps to decrease page load time. Might not function with some custom themes.', 'wds'); ?></div>
57
  </td>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  </tr>
59
  </tbody>
60
  </table>
24
 
25
  public function display() {
26
  $register_scripts = get_option("wds_register_scripts", 0);
27
+ $wds_loading_gif = get_option("wds_loading_gif", 0);
28
+ $loading_gifs = array(
29
+ 0 => 'Loading default',
30
+ 1 => 'Loading1',
31
+ 2 => 'Loading2',
32
+ 3 => 'Loading3',
33
+ 4 => 'Loading4',
34
+ 5 => 'Loading5',
35
+ );
36
  ?>
37
  <div style="clear: both; float: left; width: 99%;">
38
  <div style="float: left; font-size: 14px; font-weight: bold;">
64
  <input type="radio" id="wds_register_scripts0" name="wds_register_scripts" <?php echo (($register_scripts == 0)? "checked='checked'" : ""); ?> value="0" /><label <?php echo ($register_scripts ? '' : 'class="selected_color"'); ?> for="wds_register_scripts0"><?php _e('No', 'wds'); ?></label>
65
  <div class="spider_description"><?php _e('Helps to decrease page load time. Might not function with some custom themes.', 'wds'); ?></div>
66
  </td>
67
+ </tr>
68
+ <tr>
69
+ <td class="spider_label">
70
+ <label for="loading_gif">Loading icon:</label>
71
+ </td>
72
+ <td>
73
+ <select class="select_icon select_icon_320 select_gif" name="loading_gif" id="loading_gif" onchange="wds_loading_gif(jQuery(this).val(), '<?php echo WD_S_URL ?>')">
74
+ <?php
75
+ foreach ($loading_gifs as $key => $loading_gif) {
76
+ ?>
77
+ <option value="<?php echo $key; ?>" <?php if ($wds_loading_gif == $key) echo 'selected="selected"'; ?>><?php echo $loading_gif; ?></option>
78
+ <?php
79
+ }
80
+ ?>
81
+ </select>
82
+ <img id="load_gif_img" src="<?php echo WD_S_URL . '/images/loading/' . $wds_loading_gif . '.gif'; ?>"></img>
83
+ <div class="spider_description"></div>
84
+ </td>
85
  </tr>
86
  </tbody>
87
  </table>
admin/views/WDSViewSliders_wds.php CHANGED
@@ -1007,7 +1007,7 @@ class WDSViewSliders_wds {
1007
  <div class="spider_description"></div>
1008
  </td>
1009
  </tr>
1010
- <tr>
1011
  <td class="spider_label"><label for="carousel_degree">Background image angle: </label></td>
1012
  <td>
1013
  <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
@@ -1109,7 +1109,7 @@ class WDSViewSliders_wds {
1109
  <input type="hidden" id="left_butt_hov_url" name="left_butt_hov_url" value="<?php echo $row->left_butt_hov_url; ?>" />
1110
  <div class="spider_description">Choose whether to use default navigation buttons or to upload custom ones.</div>
1111
  </td>
1112
- </tr>
1113
  </tbody>
1114
  <tbody class="<?php echo $fv_class; ?>"<?php echo $fv_title; ?>>
1115
  <?php echo $fv_message; ?>
@@ -2135,7 +2135,6 @@ class WDSViewSliders_wds {
2135
  </div>
2136
  </div>
2137
  </div>
2138
-
2139
  <!--------------Slides tab----------->
2140
  <div class="wds_box wds_slides_box">
2141
  <table>
1007
  <div class="spider_description"></div>
1008
  </td>
1009
  </tr>
1010
+ <tr>
1011
  <td class="spider_label"><label for="carousel_degree">Background image angle: </label></td>
1012
  <td>
1013
  <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
1109
  <input type="hidden" id="left_butt_hov_url" name="left_butt_hov_url" value="<?php echo $row->left_butt_hov_url; ?>" />
1110
  <div class="spider_description">Choose whether to use default navigation buttons or to upload custom ones.</div>
1111
  </td>
1112
+ </tr>
1113
  </tbody>
1114
  <tbody class="<?php echo $fv_class; ?>"<?php echo $fv_title; ?>>
1115
  <?php echo $fv_message; ?>
2135
  </div>
2136
  </div>
2137
  </div>
 
2138
  <!--------------Slides tab----------->
2139
  <div class="wds_box wds_slides_box">
2140
  <table>
css/wds_frontend.css CHANGED
@@ -51,11 +51,10 @@ div[id^="wds_container"] video {
51
  .wds_loading_img {
52
  border: none !important;
53
  float: none;
54
- height: 30px;
55
- background-image: url('../images/ajax_loader.gif');
56
  background-position: center center;
57
  background-repeat: no-repeat;
58
- background-size: 30px 30px;
59
  border: medium none !important;
60
  }
61
 
51
  .wds_loading_img {
52
  border: none !important;
53
  float: none;
54
+ height: 40px;
 
55
  background-position: center center;
56
  background-repeat: no-repeat;
57
+ background-size: 40px 40px;
58
  border: medium none !important;
59
  }
60
 
css/wds_tables.css CHANGED
@@ -1208,12 +1208,16 @@ tbody .action_buttons{
1208
  width: 10%;
1209
  height: 32px !important;
1210
  }
 
 
 
 
 
1211
  .overlay {
1212
- display:none;
1213
- width:100%;
1214
- height:100%;
1215
- background-color:rgba(0,0,0,0.6);
1216
-
1217
  }
1218
 
1219
  .tab_image:hover .overlay {
@@ -1817,4 +1821,12 @@ th.sorted a span {
1817
  -webkit-box-sizing: border-box;
1818
  -moz-box-sizing: border-box;
1819
  box-sizing: border-box;
 
 
 
 
 
 
 
 
1820
  }
1208
  width: 10%;
1209
  height: 32px !important;
1210
  }
1211
+
1212
+ .select_gif {
1213
+ width: 28%;
1214
+ }
1215
+
1216
  .overlay {
1217
+ display: none;
1218
+ width: 100%;
1219
+ height: 100%;
1220
+ background-color: rgba(0,0,0,0.6);
 
1221
  }
1222
 
1223
  .tab_image:hover .overlay {
1821
  -webkit-box-sizing: border-box;
1822
  -moz-box-sizing: border-box;
1823
  box-sizing: border-box;
1824
+ }
1825
+
1826
+ #load_gif_img {
1827
+ display: inline-block;
1828
+ vertical-align: middle;
1829
+ width: 40px;
1830
+ height: 40px;
1831
+ padding-left: 15px;
1832
  }
css/wds_tables_320.css CHANGED
@@ -37,7 +37,9 @@
37
  .wds_button-secondary{
38
  padding: 0 9px 1px 34px !important;
39
  }
40
-
 
 
41
  .wds_alternate{
42
  background-color:#F1F1F1;
43
  }
37
  .wds_button-secondary{
38
  padding: 0 9px 1px 34px !important;
39
  }
40
+ .wds_nav_buttons{
41
+ width:100% !important;
42
+ }
43
  .wds_alternate{
44
  background-color:#F1F1F1;
45
  }
frontend/views/WDSViewSlider.php CHANGED
@@ -24,6 +24,7 @@ class WDSViewSlider {
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
  public function display($id, $from_shortcode = 0, $wds = 0) {
26
  $wds_register_scripts = get_option("wds_register_scripts");
 
27
  if ($wds_register_scripts) {
28
  wp_enqueue_style('wds_frontend');
29
  wp_enqueue_style('wds_effects');
@@ -717,6 +718,9 @@ class WDSViewSlider {
717
  text-align: center;
718
  overflow: hidden;
719
  }
 
 
 
720
  <?php
721
  if ($hide_on_mobile) {
722
  ?>
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
  public function display($id, $from_shortcode = 0, $wds = 0) {
26
  $wds_register_scripts = get_option("wds_register_scripts");
27
+ $loading_gif = get_option("wds_loading_gif", 0);
28
  if ($wds_register_scripts) {
29
  wp_enqueue_style('wds_frontend');
30
  wp_enqueue_style('wds_effects');
718
  text-align: center;
719
  overflow: hidden;
720
  }
721
+ #wds_container1_<?php echo $wds; ?> .wds_loading_img {
722
+ background-image: url('<?php echo WD_S_URL ?>/images/loading/<?php echo $loading_gif; ?>.gif');
723
+ }
724
  <?php
725
  if ($hide_on_mobile) {
726
  ?>
images/{ajax_loader.gif → loading/0.gif} RENAMED
File without changes
images/loading/1.gif ADDED
Binary file
images/loading/2.gif ADDED
Binary file
images/loading/3.gif ADDED
Binary file
images/loading/4.gif ADDED
Binary file
images/loading/5.gif ADDED
Binary file
images/loading/ajax_loader_back.gif ADDED
Binary file
js/wds.js CHANGED
@@ -2948,4 +2948,8 @@ function wds_bulk_actions(that) {
2948
  return false;
2949
  }
2950
  return true;
 
 
 
 
2951
  }
2948
  return false;
2949
  }
2950
  return true;
2951
+ }
2952
+
2953
+ function wds_loading_gif(image_name, plagin_url) {
2954
+ jQuery("#load_gif_img").attr('src', plagin_url + '/images/loading/' + image_name + '.gif');
2955
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.56
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -122,6 +122,9 @@ After downloading the ZIP file of the slider plugin,
122
 
123
  == Changelog ==
124
 
 
 
 
125
  = 1.1.56 =
126
  * Fixed: Slider with fixed background.
127
  * Fixed: Buttons styles in backend.
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.57
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
122
 
123
  == Changelog ==
124
 
125
+ = 1.1.57 =
126
+ * Added: Possibility to change loading icon.
127
+
128
  = 1.1.56 =
129
  * Fixed: Slider with fixed background.
130
  * Fixed: Buttons styles in backend.
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.56
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.56');
18
 
19
  function wds_use_home_url() {
20
  $home_url = str_replace("http://", "", home_url());
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.57
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.57');
18
 
19
  function wds_use_home_url() {
20
  $home_url = str_replace("http://", "", home_url());