Slider by WD – Responsive Slider - Version 1.1.18

Version Description

  • Improved: Filemanager load time.
Download this release

Release Info

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

Code changes from version 1.1.17 to 1.1.18

filemanager/js/default.js CHANGED
@@ -29,6 +29,11 @@ var isUploading;
29
  // Public Methods //
30
  ////////////////////////////////////////////////////////////////////////////////////////
31
  jQuery(document).ready(function () {
 
 
 
 
 
32
  filesSelected = [];
33
  filesSelectedML = [];
34
  dragFiles = [];
@@ -51,13 +56,17 @@ jQuery(document).ready(function () {
51
  });
52
  });
53
 
54
-
55
  ////////////////////////////////////////////////////////////////////////////////////////
56
  // Getters & Setters //
57
  ////////////////////////////////////////////////////////////////////////////////////////
58
  ////////////////////////////////////////////////////////////////////////////////////////
59
  // Private Methods //
60
  ////////////////////////////////////////////////////////////////////////////////////////
 
 
 
 
 
61
  function getClipboardFiles() {
62
  return jQuery("form[name=adminForm]").find("input[name=clipboard_file]").val();
63
  }
@@ -100,7 +109,6 @@ function submit(task, sortBy, sortOrder, itemsView, destDir, fileNewName, newDir
100
  break;
101
 
102
  }
103
-
104
 
105
  jQuery("form[name=adminForm]").find("input[name=task]").val(task);
106
 
@@ -114,7 +122,7 @@ function submit(task, sortBy, sortOrder, itemsView, destDir, fileNewName, newDir
114
  jQuery("form[name=adminForm]").find("input[name=items_view]").val(itemsView);
115
  }
116
 
117
- if (destDir != null) {
118
  jQuery("form[name=adminForm]").find("input[name=dir]").val(destDir);
119
  }
120
  if (fileNames != null) {
29
  // Public Methods //
30
  ////////////////////////////////////////////////////////////////////////////////////////
31
  jQuery(document).ready(function () {
32
+ var all_images_count = jQuery(".item_thumb img").length;
33
+ if (all_images_count == 0 || all_images_count <= 24) {
34
+ jQuery("#opacity_div").hide();
35
+ jQuery("#loading_div").hide();
36
+ }
37
  filesSelected = [];
38
  filesSelectedML = [];
39
  dragFiles = [];
56
  });
57
  });
58
 
 
59
  ////////////////////////////////////////////////////////////////////////////////////////
60
  // Getters & Setters //
61
  ////////////////////////////////////////////////////////////////////////////////////////
62
  ////////////////////////////////////////////////////////////////////////////////////////
63
  // Private Methods //
64
  ////////////////////////////////////////////////////////////////////////////////////////
65
+ function loaded() {
66
+ jQuery("#opacity_div").hide();
67
+ jQuery("#loading_div").hide();
68
+ }
69
+
70
  function getClipboardFiles() {
71
  return jQuery("form[name=adminForm]").find("input[name=clipboard_file]").val();
72
  }
109
  break;
110
 
111
  }
 
112
 
113
  jQuery("form[name=adminForm]").find("input[name=task]").val(task);
114
 
122
  jQuery("form[name=adminForm]").find("input[name=items_view]").val(itemsView);
123
  }
124
 
125
+ if (destDir != null) {
126
  jQuery("form[name=adminForm]").find("input[name=dir]").val(destDir);
127
  }
128
  if (fileNames != null) {
filemanager/view.php CHANGED
@@ -203,7 +203,7 @@ class FilemanagerView {
203
  <div id="explorer_body_container">
204
  <div id="explorer_body">
205
  <?php
206
- foreach ($file_manager_data['files'] as $file) {
207
  $file['name'] = esc_html($file['name']);
208
  $file['filename'] = esc_html($file['filename']);
209
  $file['thumb'] = esc_html($file['thumb']);
@@ -232,7 +232,7 @@ class FilemanagerView {
232
  isDir="<?php echo $file['is_dir'] == true ? 'true' : 'false'; ?>">
233
  <span class="item_numbering"><?php echo ++$i; ?></span>
234
  <span class="item_thumb">
235
- <img src="<?php echo $file['thumb']; ?>"/>
236
  </span>
237
  <span class="item_icon">
238
  <img src="<?php echo $file['icon']; ?>"/>
@@ -338,10 +338,6 @@ class FilemanagerView {
338
  });
339
  }
340
  });
341
- jQuery(window).load(function () {
342
- jQuery("#opacity_div").hide();
343
- jQuery("#loading_div").hide();
344
- })
345
  </script>
346
  </div>
347
  </label>
203
  <div id="explorer_body_container">
204
  <div id="explorer_body">
205
  <?php
206
+ foreach ($file_manager_data['files'] as $key => $file) {
207
  $file['name'] = esc_html($file['name']);
208
  $file['filename'] = esc_html($file['filename']);
209
  $file['thumb'] = esc_html($file['thumb']);
232
  isDir="<?php echo $file['is_dir'] == true ? 'true' : 'false'; ?>">
233
  <span class="item_numbering"><?php echo ++$i; ?></span>
234
  <span class="item_thumb">
235
+ <img src="<?php echo $file['thumb']; ?>" <?php echo $key == 24 ? 'onload="loaded()"' : ''; ?> />
236
  </span>
237
  <span class="item_icon">
238
  <img src="<?php echo $file['icon']; ?>"/>
338
  });
339
  }
340
  });
 
 
 
 
341
  </script>
342
  </div>
343
  </label>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://web-dorado.com/products/wordpress-slider-plugin.html
4
  Tags: image slider, slider, slider, image, images, responsive, shortcode, widget, jquery, gallery, swipe, layer
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
- Stable tag: 1.1.17
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -160,6 +160,9 @@ After downloading the ZIP file of the slider plugin,
160
 
161
  == Changelog ==
162
 
 
 
 
163
  = 1.1.17 =
164
  * Fixed: Newly added parameters on duplicate.
165
 
4
  Tags: image slider, slider, slider, image, images, responsive, shortcode, widget, jquery, gallery, swipe, layer
5
  Requires at least: 3.4
6
  Tested up to: 4.4
7
+ Stable tag: 1.1.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
160
 
161
  == Changelog ==
162
 
163
+ = 1.1.18 =
164
+ * Improved: Filemanager load time.
165
+
166
  = 1.1.17 =
167
  * Fixed: Newly added parameters on duplicate.
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.17
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -433,7 +433,7 @@ register_activation_hook(__FILE__, 'wds_activate');
433
 
434
  function wds_install() {
435
  $version = get_option("wds_version");
436
- $new_version = '1.1.17';
437
  if ($version && version_compare($version, $new_version, '<')) {
438
  require_once WD_S_DIR . "/sliders-update.php";
439
  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.18
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
433
 
434
  function wds_install() {
435
  $version = get_option("wds_version");
436
+ $new_version = '1.1.18';
437
  if ($version && version_compare($version, $new_version, '<')) {
438
  require_once WD_S_DIR . "/sliders-update.php";
439
  wds_update($version);