Slider by WD – Responsive Slider - Version 1.0.22

Version Description

Download this release

Release Info

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

Code changes from version 1.0.21 to 1.0.22

filemanager/controller.php CHANGED
@@ -24,18 +24,16 @@ class FilemanagerController {
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
 
26
  public function __construct() {
27
- global $WD_S_UPLOAD_DIR;
28
  $upload_dir = wp_upload_dir();
29
  //$bwg_options = $this->get_options_data();
30
  //$this->uploads_dir = (($bwg_options->images_directory . '/photo-gallery') ? ABSPATH . $bwg_options->images_directory . '/photo-gallery' : WD_S_DIR . '/filemanager/uploads');
31
- $this->uploads_dir = ABSPATH . $WD_S_UPLOAD_DIR;
32
- //echo $this->uploads_dir;
33
- if (file_exists($this->uploads_dir) == FALSE) {
34
  mkdir($this->uploads_dir);
35
  }
36
  //$this->uploads_url = (($bwg_options->images_directory . '/photo-gallery') ? site_url() . '/' . $bwg_options->images_directory . '/photo-gallery' : WD_S_URL . '/filemanager/uploads');
37
- $this->uploads_url = site_url() . '/' . $WD_S_UPLOAD_DIR;
38
- //exit;
39
  }
40
 
41
  ////////////////////////////////////////////////////////////////////////////////////////
24
  ////////////////////////////////////////////////////////////////////////////////////////
25
 
26
  public function __construct() {
27
+ global $WD_S_UPLOAD_DIR;
28
  $upload_dir = wp_upload_dir();
29
  //$bwg_options = $this->get_options_data();
30
  //$this->uploads_dir = (($bwg_options->images_directory . '/photo-gallery') ? ABSPATH . $bwg_options->images_directory . '/photo-gallery' : WD_S_DIR . '/filemanager/uploads');
31
+ $this->uploads_dir = ABSPATH . $WD_S_UPLOAD_DIR;
32
+ if (file_exists($this->uploads_dir) == FALSE) {
 
33
  mkdir($this->uploads_dir);
34
  }
35
  //$this->uploads_url = (($bwg_options->images_directory . '/photo-gallery') ? site_url() . '/' . $bwg_options->images_directory . '/photo-gallery' : WD_S_URL . '/filemanager/uploads');
36
+ $this->uploads_url = site_url() . '/' . $WD_S_UPLOAD_DIR;
 
37
  }
38
 
39
  ////////////////////////////////////////////////////////////////////////////////////////
filemanager/model.php CHANGED
@@ -47,7 +47,6 @@ class FilemanagerModel {
47
  $data['path_components'] = $this->get_path_components();
48
  $data['dir'] = (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : '');
49
  $data['files'] = $this->get_files($session_data['sort_by'], $session_data['sort_order']);
50
- /*$data['media_library_files'] = ($this->controller->get_options_data()->enable_ML_import ? $this->get_media_library_files($session_data['sort_by'], $session_data['sort_order']) : array());*/
51
  $data['extensions'] = (isset($_REQUEST['extensions']) ? esc_html($_REQUEST['extensions']) : '');
52
  $data['callback'] = (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : '');
53
  $data['image_for'] = (isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : '');
47
  $data['path_components'] = $this->get_path_components();
48
  $data['dir'] = (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : '');
49
  $data['files'] = $this->get_files($session_data['sort_by'], $session_data['sort_order']);
 
50
  $data['extensions'] = (isset($_REQUEST['extensions']) ? esc_html($_REQUEST['extensions']) : '');
51
  $data['callback'] = (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : '');
52
  $data['image_for'] = (isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : '');
filemanager/view.php CHANGED
@@ -40,7 +40,6 @@ class FilemanagerView {
40
  <?php
41
  $_GET['filemanager_msg'] = '';
42
  }
43
- //$bwg_options = $this->controller->get_options_data();
44
  $file_manager_data = $this->model->get_file_manager_data();
45
  $items_view = $file_manager_data['session_data']['items_view'];
46
  $sort_by = $file_manager_data['session_data']['sort_by'];
@@ -77,6 +76,17 @@ class FilemanagerView {
77
  var layer_id = "<?php echo (isset($_REQUEST['layer_id']) ? esc_html($_REQUEST['layer_id']) : ''); ?>";
78
  var sortBy = "<?php echo $sort_by; ?>";
79
  var sortOrder = "<?php echo $sort_order; ?>";
 
 
 
 
 
 
 
 
 
 
 
80
  </script>
81
  <script src="<?php echo WD_S_URL; ?>/filemanager/js/default.js?ver=<?php echo get_option("wd_bwg_version"); ?>"></script>
82
  <link href="<?php echo WD_S_URL; ?>/filemanager/css/default.css?ver=<?php echo get_option("wd_bwg_version"); ?>" type="text/css" rel="stylesheet">
@@ -117,12 +127,10 @@ class FilemanagerView {
117
  <span class="ctrl_bar_btn btn_primary">
118
  <a class="ctrl_bar_btn btn_upload_files" onclick="onBtnShowUploaderClick(event, this);"><?php echo 'Upload files'; ?></a>
119
  </span>
120
- <?php if (/*$bwg_options->enable_ML_import*/FALSE) { ?>
121
- <span class="ctrl_bar_divider"></span>
122
- <span class="ctrl_bar_btn btn_primary">
123
- <a class="ctrl_bar_btn btn_import_files" onclick="onBtnShowImportClick(event, this);"><?php echo 'Media library'; ?></a>
124
  </span>
125
- <?php } ?>
126
  </div>
127
  <div class="ctrls_right">
128
  <a class="ctrl_bar_btn btn_view_thumbs" onclick="onBtnViewThumbsClick(event, this);" title="<?php echo 'View thumbs'; ?>"></a>
@@ -257,82 +265,6 @@ class FilemanagerView {
257
  </div>
258
  </div>
259
  </div>
260
- <!--<div id="importer" style="display: none;">
261
- <div id="importer_bg"></div>
262
- <div class="ctrls_bar ctrls_bar_header">
263
- <div class="ctrls_left upload_thumb">
264
- Thumbnail Maximum Dimensions:
265
- <input type="text" class="upload_thumb_dim" name="importer_thumb_width" id="importer_thumb_width" value="<?php echo /*$bwg_options->upload_thumb_width;*/ 300; ?>" /> x
266
- <input type="text" class="upload_thumb_dim" name="importer_thumb_height" id="importer_thumb_height" value="<?php echo /*$bwg_options->upload_thumb_height;*/ 300;?>" /> px
267
- </div>
268
- <div class="ctrls_right">
269
- <a class="ctrl_bar_btn btn_back" onclick="onBtnBackClick(event, this);" title="<?php echo 'Back'; ?>"></a>
270
- </div>
271
- <div class="ctrls_right_img upload_thumb">
272
- Image Maximum Dimensions:
273
- <input type="text" class="upload_thumb_dim" name="importer_img_width" id="importer_img_width" value="<?php echo /*$bwg_options->upload_img_width;*/ 1200;?>" /> x
274
- <input type="text" class="upload_thumb_dim" name="importer_img_height" id="importer_img_height" value="<?php echo /*$bwg_options->upload_img_height;*/ 1200;?>" /> px
275
- </div>
276
- </div>
277
- <div id="importer_body_wrapper">
278
- <div id="importer_body_container">
279
- <div id="importer_body">
280
- <?php
281
- foreach ($file_manager_data['media_library_files'] as $file) {
282
- $file['name'] = esc_html($file['name']);
283
- $file['filename'] = esc_html($file['filename']);
284
- $file['thumb'] = esc_html($file['thumb']);
285
- ?>
286
- <div class="importer_item" draggable="true"
287
- name="<?php echo $file['name']; ?>"
288
- path="<?php echo $file['path']; ?>"
289
- filename="<?php echo $file['filename']; ?>"
290
- filethumb="<?php echo $file['thumb']; ?>"
291
- filesize="<?php echo $file['size']; ?>"
292
- filetype="<?php echo strtoupper($file['type']); ?>"
293
- date_modified="<?php echo $file['date_modified']; ?>"
294
- fileresolution="<?php echo $file['resolution']; ?>"
295
- onmouseover="onFileMOverML(event, this);"
296
- onmouseout="onFileMOutML(event, this);"
297
- onclick="onFileClickML(event, this);"
298
- ondblclick="onFileDblClickML(event, this);"
299
- isDir="<?php echo $file['is_dir'] == true ? 'true' : 'false'; ?>">
300
- <span class="item_numbering"><?php echo ++$i; ?></span>
301
- <span class="item_thumb">
302
- <img src="<?php echo $file['thumb']; ?>"/>
303
- </span>
304
- <span class="item_icon">
305
- <img src="<?php echo $file['icon']; ?>"/>
306
- </span>
307
- <span class="item_name">
308
- <?php echo $file['name']; ?>
309
- </span>
310
- <span class="item_size">
311
- <?php echo $file['size']; ?>
312
- </span>
313
- <span class="item_date_modified">
314
- <?php echo $file['date_modified']; ?>
315
- </span>
316
- </div>
317
- <?php
318
- }
319
- ?>
320
- </div>
321
- </div>
322
- </div>
323
- <div class="ctrls_bar ctrls_bar_footer">
324
- <div class="ctrls_left">
325
- <a class="ctrl_bar_btn btn_open btn_primary none_select" onclick="onBtnSelectAllMediLibraryClick();"><?php echo 'Select All'; ?></a>
326
- </div>
327
- <div class="ctrls_right">
328
- <span id="file_names_span">
329
- <span>
330
- </span>
331
- </span>
332
- <a class="ctrl_bar_btn btn_open btn_primary none_select" onclick="onBtnImportClick(event, this);">Import selected images</a>
333
- </div>
334
- </div>
335
- </div>-->
336
  <div id="uploader">
337
  <div id="uploader_bg"></div>
338
  <div class="ctrls_bar ctrls_bar_header">
40
  <?php
41
  $_GET['filemanager_msg'] = '';
42
  }
 
43
  $file_manager_data = $this->model->get_file_manager_data();
44
  $items_view = $file_manager_data['session_data']['items_view'];
45
  $sort_by = $file_manager_data['session_data']['sort_by'];
76
  var layer_id = "<?php echo (isset($_REQUEST['layer_id']) ? esc_html($_REQUEST['layer_id']) : ''); ?>";
77
  var sortBy = "<?php echo $sort_by; ?>";
78
  var sortOrder = "<?php echo $sort_order; ?>";
79
+ jQuery(document).ready(function () {
80
+ jQuery("#search_by_name .search_by_name").on("input keyup", function() {
81
+ var search_by_name = jQuery(this).val();
82
+ jQuery("#explorer_body .explorer_item").each(function() {
83
+ jQuery(this).hide();
84
+ if (jQuery(this).find(".item_name").html().trim().toLowerCase().indexOf(search_by_name) !== -1) {
85
+ jQuery(this).show();
86
+ }
87
+ });
88
+ });
89
+ });
90
  </script>
91
  <script src="<?php echo WD_S_URL; ?>/filemanager/js/default.js?ver=<?php echo get_option("wd_bwg_version"); ?>"></script>
92
  <link href="<?php echo WD_S_URL; ?>/filemanager/css/default.css?ver=<?php echo get_option("wd_bwg_version"); ?>" type="text/css" rel="stylesheet">
127
  <span class="ctrl_bar_btn btn_primary">
128
  <a class="ctrl_bar_btn btn_upload_files" onclick="onBtnShowUploaderClick(event, this);"><?php echo 'Upload files'; ?></a>
129
  </span>
130
+ <span class="ctrl_bar_divider"></span>
131
+ <span id="search_by_name" class="ctrl_bar_btn">
132
+ <input type="search" placeholder="Search" class="ctrl_bar_btn search_by_name">
 
133
  </span>
 
134
  </div>
135
  <div class="ctrls_right">
136
  <a class="ctrl_bar_btn btn_view_thumbs" onclick="onBtnViewThumbsClick(event, this);" title="<?php echo 'View thumbs'; ?>"></a>
265
  </div>
266
  </div>
267
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
268
  <div id="uploader">
269
  <div id="uploader_bg"></div>
270
  <div class="ctrls_bar ctrls_bar_header">
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.21
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -139,6 +139,9 @@ After downloading the ZIP file of the slider plugin,
139
 
140
  == Changelog ==
141
 
 
 
 
142
  = 1.0.21 =
143
  Changed: Featured plugins page.
144
 
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.22
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
139
 
140
  == Changelog ==
141
 
142
+ = 1.2.22 =
143
+ New: Search by name in file manager.
144
+
145
  = 1.0.21 =
146
  Changed: Featured plugins page.
147
 
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.21
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -339,7 +339,7 @@ register_activation_hook(__FILE__, 'wds_activate');
339
 
340
  function wds_install() {
341
  $version = get_option("wds_version");
342
- $new_version = '1.0.20';
343
  if ($version && version_compare($version, $new_version, '<')) {
344
  require_once WD_S_DIR . "/sliders-update.php";
345
  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.22
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
339
 
340
  function wds_install() {
341
  $version = get_option("wds_version");
342
+ $new_version = '1.0.22';
343
  if ($version && version_compare($version, $new_version, '<')) {
344
  require_once WD_S_DIR . "/sliders-update.php";
345
  wds_update($version);