Slider by WD – Responsive Slider - Version 1.1.47

Version Description

  • Fixed: Case sensitive search by name in Filemanager bug.
  • Changed: Show last uploaded files as first in Filemanager.
  • Changed: File manager design.
  • Fixed: Sliders duplicate.
Download this release

Release Info

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

Code changes from version 1.1.46 to 1.1.47

admin/controllers/WDSControllerSliders_wds.php CHANGED
@@ -120,7 +120,7 @@ class WDSControllerSliders_wds {
120
  $pp_butt_size = ((isset($params_array['pp_butt_size'])) ? (int) esc_html(stripslashes($params_array['pp_butt_size'])) : 40);
121
  $butts_color = ((isset($params_array['butts_color'])) ? esc_html(stripslashes($params_array['butts_color'])) : '000000');
122
  $butts_transparent = ((isset($params_array['butts_transparent'])) ? (int) esc_html(stripslashes($params_array['butts_transparent'])) : 100);
123
- $hover_color = ((isset($params_array['hover_color'])) ? esc_html(stripslashes($params_array['hover_color'])) : '000000');
124
  $nav_border_width = ((isset($params_array['nav_border_width'])) ? (int) esc_html(stripslashes($params_array['nav_border_width'])) : 0);
125
  $nav_border_style = ((isset($params_array['nav_border_style'])) ? esc_html(stripslashes($params_array['nav_border_style'])) : 'none');
126
  $nav_border_color = ((isset($params_array['nav_border_color'])) ? esc_html(stripslashes($params_array['nav_border_color'])) : 'FFFFFF');
@@ -830,6 +830,9 @@ class WDSControllerSliders_wds {
830
  'possib_add_ffamily' => $slider_row->possib_add_ffamily,
831
  'possib_add_ffamily_google' => $slider_row->possib_add_ffamily_google,
832
  'slider_loop' => $slider_row->slider_loop,
 
 
 
833
  ));
834
  $new_slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
835
 
120
  $pp_butt_size = ((isset($params_array['pp_butt_size'])) ? (int) esc_html(stripslashes($params_array['pp_butt_size'])) : 40);
121
  $butts_color = ((isset($params_array['butts_color'])) ? esc_html(stripslashes($params_array['butts_color'])) : '000000');
122
  $butts_transparent = ((isset($params_array['butts_transparent'])) ? (int) esc_html(stripslashes($params_array['butts_transparent'])) : 100);
123
+ $hover_color = ((isset($params_array['hover_color'])) ? esc_html(stripslashes($params_array['hover_color'])) : 'FFFFFF');
124
  $nav_border_width = ((isset($params_array['nav_border_width'])) ? (int) esc_html(stripslashes($params_array['nav_border_width'])) : 0);
125
  $nav_border_style = ((isset($params_array['nav_border_style'])) ? esc_html(stripslashes($params_array['nav_border_style'])) : 'none');
126
  $nav_border_color = ((isset($params_array['nav_border_color'])) ? esc_html(stripslashes($params_array['nav_border_color'])) : 'FFFFFF');
830
  'possib_add_ffamily' => $slider_row->possib_add_ffamily,
831
  'possib_add_ffamily_google' => $slider_row->possib_add_ffamily_google,
832
  'slider_loop' => $slider_row->slider_loop,
833
+ 'bull_hover' => $slider_row->bull_hover,
834
+ 'show_thumbnail' => $slider_row->show_thumbnail,
835
+ 'thumb_size' => $slider_row->thumb_size,
836
  ));
837
  $new_slider_id = $wpdb->get_var('SELECT MAX(id) FROM ' . $wpdb->prefix . 'wdsslider');
838
 
css/wds_tables.css CHANGED
@@ -77,51 +77,6 @@ h2.wds_default {
77
  border: none !important;
78
  margin-top: 200px;
79
  width: 30px;
80
- /*-webkit-animation: spin 2.5s infinite linear;
81
- -moz-animation: spin 2.5s infinite linear;
82
- -o-animation: spin 2.5s infinite linear;
83
- animation: spin 2.5s infinite linear;*/
84
- }
85
-
86
- @-moz-keyframes spin {
87
- 0% {
88
- -moz-transform: rotate(0deg);
89
- }
90
- 100% {
91
- -moz-transform: rotate(359deg);
92
- }
93
- }
94
- @-webkit-keyframes spin {
95
- 0% {
96
- -webkit-transform: rotate(0deg);
97
- }
98
- 100% {
99
- -webkit-transform: rotate(359deg);
100
- }
101
- }
102
- @-o-keyframes spin {
103
- 0% {
104
- -o-transform: rotate(0deg);
105
- }
106
- 100% {
107
- -o-transform: rotate(359deg);
108
- }
109
- }
110
- @-ms-keyframes spin {
111
- 0% {
112
- -ms-transform: rotate(0deg);
113
- }
114
- 100% {
115
- -ms-transform: rotate(359deg);
116
- }
117
- }
118
- @keyframes spin {
119
- 0% {
120
- transform: rotate(0deg);
121
- }
122
- 100% {
123
- transform: rotate(359deg);
124
- }
125
  }
126
 
127
  #TB_window,
77
  border: none !important;
78
  margin-top: 200px;
79
  width: 30px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  }
81
 
82
  #TB_window,
css/wds_tables_640.css CHANGED
@@ -1,53 +1,52 @@
1
  @media screen and (max-width: 640px) {
2
-
3
  .wds_layer_depth {
4
  padding: 3px 10px !important;
5
  }
6
 
7
-
8
  .wds_box tbody {
9
  padding-left: 0px !important;
10
  }
11
 
12
- .wds_button-secondary{
13
  padding: 0 9px 1px 37px;
14
  }
15
-
16
- .wds_button_wrap .wds_button-secondary{
17
- width:100%
18
  }
19
-
20
- .action_buttons{
21
  margin: 0 2px 0 0;
22
  font-size: 12px;
23
  background-repeat: no-repeat;
24
  background-color: #00A0D2;
25
  border-bottom: 3px solid #258AA6;
26
  text-align:center;
27
- width: 100%
28
  }
29
 
30
- .wds_buttons .action_buttons{
31
  padding: 0 18px 1px 43px;
32
- font-size:12px
33
  }
34
-
35
- .wds_buttons{
36
- float:none;
37
  }
38
-
39
- .last{
40
- margin-right:0
41
  }
42
-
43
- .buttons_conteiner{
44
- margin:10px !important;
45
  }
46
 
47
- tbody .action_buttons{
48
  padding: 0 10px 1px 32px;
49
  }
50
- .bgcolor td{
 
51
  padding: 10px !important;
52
  }
53
 
@@ -55,159 +54,170 @@
55
  padding: 10px !important;
56
  }
57
 
58
- .delete{
59
- background-repeat:no-repeat;
60
- background-color:#00A0D2;
61
  border-bottom: 3px solid #1D88A5;
62
  }
63
 
64
- .tab_image, .new_tab_image{
65
- width:100%;
66
- height:100% ;
67
- cursor:pointer
 
68
  }
69
 
70
- .new_tab_image{
71
- height: 132px ;
72
  top: 2px;
73
  }
74
 
75
- .tab_link, .new_tab_link{
76
- width:100% !important;
77
- height:100% !important;
 
78
  }
79
 
80
-
81
- #slide_add_buttons{
82
- width:100%;
83
  }
84
-
85
- #layer_add_buttons .action_buttons{
86
  padding: 0 7px 1px 32px;
87
  }
88
-
89
- .wds_preview_wrapper{
90
- width:98% !important;
91
  }
92
-
93
- .slider_title_conteiner{
94
  padding: 8px 0px 8px 0;
95
  width: 99%;
96
  margin-left: 1%;
97
  }
98
-
99
  #name {
100
  width: 73%;
101
  }
102
-
103
- .layer_table{
104
  display: block !important;
105
- width:100% !Important
106
  }
107
 
108
  .mobile_hide {
109
  display: none !important;
110
  }
111
-
112
- .layer_table_left, .layer_table_right{
113
- float:none !important;
114
- width:100% !important;
 
115
  }
116
 
117
  .wds_textarea {
118
- width: 197px ;
119
  }
120
-
121
- #TB_window{
122
- width:100% !important;
123
- left:0 !important;
124
  margin-left: 0 !important;
125
  }
126
-
127
- #add_embed, .wds_resize_image , .wds_exports, .wds_editor, #add_embed_help{
128
- width:93% !important;
 
 
 
 
129
  left:0 !important;
130
- margin-left: 0 !important;
131
  height: auto;
132
  }
133
- #add_embed input[type="text"], .wds_resize_image input[type="text"] , .wds_exports input[type="text"], .wds_editor input[type="text"]{
134
- width:94% !important;
 
 
 
 
135
  }
136
-
137
  #TB_window,
138
  #TB_iframeContent {
139
  width: 100% !important;
140
  height: 500px !important;
141
  }
142
-
143
  #TB_window {
144
- top:3%;
145
  margin-top:0 !important;
146
- left: 1% !important
147
  }
148
-
149
-
150
  .wds_settings_box {
151
- margin-top:15px !important
152
  }
153
-
154
  .non_selectable {
155
- display:none
156
  }
157
 
158
-
159
- .slide_add_buttons_wrap, .layer_add_buttons_wrap, .wds_button_wrap {
 
160
  width: 48.6%;
161
  }
162
 
163
- .layer_add_buttons_wrap .action_buttons, .slide_add_buttons_wrap .action_buttons {
 
164
  width: 100%;
165
  text-align:center;
166
  background-repeat:no-repeat;
167
  background-color: #00A0D2;
168
  border-bottom: 3px solid #258AA6;
169
  }
170
-
171
  .buttons_div input {
172
  width: 32%;
173
  }
174
-
175
  .buttons_div {
176
- float:none;
177
  }
178
-
179
  .wds_tab_label {
180
  width: 100%
181
  }
182
-
183
  .tab_button_wrap {
184
- float:left;
185
  width: 48.7%;
186
  margin-right: 2px
187
  }
188
-
189
- .tab_button_wrap .wds_button-secondary{
190
- width:100%;
191
- text-align:center;
192
  }
193
-
194
  .tab_conteiner{
195
- padding:5px 0 15px;
196
- float:none;
197
  }
198
-
199
- .wds_subtab_wrap{
200
- width:24%;
201
- height:130px;
202
- float:left;
203
- margin:2px
204
  }
205
-
206
  .wds_nav_tabs {
207
  height: auto;
208
  width: auto;
209
  position: relative;
210
  }
 
211
  .wds_nav_tabs ul {
212
  display: none;
213
  width: 150px;
@@ -217,8 +227,8 @@
217
  top: -15px;
218
  margin:0;
219
  }
220
-
221
- .wds_menu_icon{
222
  width: 33px;
223
  height: 25px;
224
  background-image: url("../images/sliderwdpng/menu.png");
@@ -226,44 +236,45 @@
226
  position: absolute;
227
  top: -26px;
228
  }
229
-
230
  .wds_nav_tabs .wds_active {
231
  border-color: none;
232
  border-width: 0;
233
  border-style: none;
234
- margin: 0 ;
235
-
236
  }
237
- .wds_reset_button{
238
- position:static;
239
- text-align:center;
 
240
  }
241
-
242
- input[type=radio]{
243
- margin-top:5px
244
  }
 
245
  .select_icon_320 {
246
- font-size:12px !Important
247
  }
248
-
249
- .layer_table_left .thickbox {
250
  width: 100% !important;
251
  display: block;
252
- text-align:center
253
  }
254
-
255
- .layer_table_left .wds_editor_btn{
256
- position:static !important;
257
  }
258
-
259
- .wds_640{
260
- display:table-cell !Important
261
  }
262
-
263
  .default_buttons {
264
- width:90px !important
265
  }
266
-
267
  .spider_options_cont,
268
  .spider_bull_options_cont,
269
  .spider_pp_options_cont,
1
  @media screen and (max-width: 640px) {
 
2
  .wds_layer_depth {
3
  padding: 3px 10px !important;
4
  }
5
 
 
6
  .wds_box tbody {
7
  padding-left: 0px !important;
8
  }
9
 
10
+ .wds_button-secondary {
11
  padding: 0 9px 1px 37px;
12
  }
13
+
14
+ .wds_button_wrap .wds_button-secondary {
15
+ width: 100%;
16
  }
17
+
18
+ .action_buttons {
19
  margin: 0 2px 0 0;
20
  font-size: 12px;
21
  background-repeat: no-repeat;
22
  background-color: #00A0D2;
23
  border-bottom: 3px solid #258AA6;
24
  text-align:center;
25
+ width: 100%;
26
  }
27
 
28
+ .wds_buttons .action_buttons {
29
  padding: 0 18px 1px 43px;
30
+ font-size: 12px;
31
  }
32
+
33
+ .wds_buttons {
34
+ float: none;
35
  }
36
+
37
+ .last {
38
+ margin-right: 0;
39
  }
40
+
41
+ .buttons_conteiner {
42
+ margin: 10px !important;
43
  }
44
 
45
+ tbody .action_buttons {
46
  padding: 0 10px 1px 32px;
47
  }
48
+
49
+ .bgcolor td {
50
  padding: 10px !important;
51
  }
52
 
54
  padding: 10px !important;
55
  }
56
 
57
+ .delete {
58
+ background-repeat: no-repeat;
59
+ background-color: #00A0D2;
60
  border-bottom: 3px solid #1D88A5;
61
  }
62
 
63
+ .tab_image,
64
+ .new_tab_image {
65
+ width: 100%;
66
+ height: 100%;
67
+ cursor: pointer;
68
  }
69
 
70
+ .new_tab_image {
71
+ height: 132px;
72
  top: 2px;
73
  }
74
 
75
+ .tab_link,
76
+ .new_tab_link {
77
+ width: 100% !important;
78
+ height: 100% !important;
79
  }
80
 
81
+ #slide_add_buttons {
82
+ width: 100%;
 
83
  }
84
+
85
+ #layer_add_buttons .action_buttons {
86
  padding: 0 7px 1px 32px;
87
  }
88
+
89
+ .wds_preview_wrapper {
90
+ width: 98% !important;
91
  }
92
+
93
+ .slider_title_conteiner {
94
  padding: 8px 0px 8px 0;
95
  width: 99%;
96
  margin-left: 1%;
97
  }
98
+
99
  #name {
100
  width: 73%;
101
  }
102
+
103
+ .layer_table {
104
  display: block !important;
105
+ width:100% !important;
106
  }
107
 
108
  .mobile_hide {
109
  display: none !important;
110
  }
111
+
112
+ .layer_table_left,
113
+ .layer_table_right {
114
+ float: none !important;
115
+ width: 100% !important;
116
  }
117
 
118
  .wds_textarea {
119
+ width: 197px;
120
  }
121
+
122
+ #TB_window {
123
+ width: 100% !important;
124
+ left: 0 !important;
125
  margin-left: 0 !important;
126
  }
127
+
128
+ #add_embed,
129
+ .wds_resize_image,
130
+ .wds_exports,
131
+ .wds_editor,
132
+ #add_embed_help {
133
+ width: 93% !important;
134
  left:0 !important;
135
+ margin-left: 0 !important;
136
  height: auto;
137
  }
138
+
139
+ #add_embed input[type="text"],
140
+ .wds_resize_image input[type="text"],
141
+ .wds_exports input[type="text"],
142
+ .wds_editor input[type="text"] {
143
+ width: 94% !important;
144
  }
145
+
146
  #TB_window,
147
  #TB_iframeContent {
148
  width: 100% !important;
149
  height: 500px !important;
150
  }
151
+
152
  #TB_window {
153
+ top: 3%;
154
  margin-top:0 !important;
 
155
  }
156
+
 
157
  .wds_settings_box {
158
+ margin-top: 15px !important;
159
  }
160
+
161
  .non_selectable {
162
+ display: none;
163
  }
164
 
165
+ .slide_add_buttons_wrap,
166
+ .layer_add_buttons_wrap,
167
+ .wds_button_wrap {
168
  width: 48.6%;
169
  }
170
 
171
+ .layer_add_buttons_wrap .action_buttons,
172
+ .slide_add_buttons_wrap .action_buttons {
173
  width: 100%;
174
  text-align:center;
175
  background-repeat:no-repeat;
176
  background-color: #00A0D2;
177
  border-bottom: 3px solid #258AA6;
178
  }
179
+
180
  .buttons_div input {
181
  width: 32%;
182
  }
183
+
184
  .buttons_div {
185
+ float: none;
186
  }
187
+
188
  .wds_tab_label {
189
  width: 100%
190
  }
191
+
192
  .tab_button_wrap {
193
+ float: left;
194
  width: 48.7%;
195
  margin-right: 2px
196
  }
197
+
198
+ .tab_button_wrap .wds_button-secondary {
199
+ width: 100%;
200
+ text-align: center;
201
  }
202
+
203
  .tab_conteiner{
204
+ padding: 5px 0 15px;
205
+ float: none;
206
  }
207
+
208
+ .wds_subtab_wrap {
209
+ width: 24%;
210
+ height: 130px;
211
+ float: left;
212
+ margin: 2px
213
  }
214
+
215
  .wds_nav_tabs {
216
  height: auto;
217
  width: auto;
218
  position: relative;
219
  }
220
+
221
  .wds_nav_tabs ul {
222
  display: none;
223
  width: 150px;
227
  top: -15px;
228
  margin:0;
229
  }
230
+
231
+ .wds_menu_icon {
232
  width: 33px;
233
  height: 25px;
234
  background-image: url("../images/sliderwdpng/menu.png");
236
  position: absolute;
237
  top: -26px;
238
  }
239
+
240
  .wds_nav_tabs .wds_active {
241
  border-color: none;
242
  border-width: 0;
243
  border-style: none;
244
+ margin: 0;
 
245
  }
246
+
247
+ .wds_reset_button {
248
+ position: static;
249
+ text-align: enter;
250
  }
251
+
252
+ input[type=radio] {
253
+ margin-top: 5px;
254
  }
255
+
256
  .select_icon_320 {
257
+ font-size: 12px !Important;
258
  }
259
+
260
+ .layer_table_left .thickbox {
261
  width: 100% !important;
262
  display: block;
263
+ text-align: center;
264
  }
265
+
266
+ .layer_table_left .wds_editor_btn {
267
+ position: static !important;
268
  }
269
+
270
+ .wds_640 {
271
+ display: table-cell !important;
272
  }
273
+
274
  .default_buttons {
275
+ width: 90px !important;
276
  }
277
+
278
  .spider_options_cont,
279
  .spider_bull_options_cont,
280
  .spider_pp_options_cont,
filemanager/UploadHandler.php CHANGED
@@ -23,8 +23,8 @@ require_once(WD_S_DIR . '/filemanager/controller.php');
23
  $controller = new FilemanagerController();
24
 
25
  $upload_handler = new UploadHandler(array(
26
- 'upload_dir' => $controller->uploads_dir . (isset($_GET['dir']) ? esc_html($_GET['dir']) : ''),
27
- 'accept_file_types' => '/\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|zip)$/i'
28
  ));
29
 
30
  class UploadHandler {
@@ -105,15 +105,6 @@ class UploadHandler {
105
  }
106
  $this->options += array(
107
  'image_versions' => array(
108
- // Uncomment the following version to restrict the size of
109
- // uploaded images:
110
- /*
111
- '' => array(
112
- 'max_width' => 1920,
113
- 'max_height' => 1200,
114
- 'jpeg_quality' => 95
115
- ),
116
- */
117
  // Uncomment the following to create medium sized images:
118
  /*
119
  'medium' => array(
@@ -239,9 +230,9 @@ class UploadHandler {
239
  }
240
 
241
  protected function get_file_size($file_path, $clear_stat_cache = false) {
242
- if ($clear_stat_cache) {
243
  clearstatcache(true, $file_path);
244
- }
245
  return $this->fix_integer_overflow(filesize($file_path));
246
 
247
  }
@@ -507,7 +498,7 @@ class UploadHandler {
507
  // into different directories or replacing hidden system files.
508
  // Also remove control characters and spaces (\x00..\x20) around the filename:
509
  $name = trim(stripslashes($name), ".\x00..\x20");
510
- $name = str_replace(' ', '_', $name);
511
  // Use a timestamp for empty filenames:
512
  if (!$name) {
513
  $name = str_replace('.', '-', microtime(true));
@@ -881,20 +872,6 @@ class UploadHandler {
881
  }
882
 
883
  public function get($print_response = true) {
884
- /*if (isset($_GET['import']) && $_GET['import'] == 'true') {
885
- $file_names = explode('**@**', (isset($_REQUEST['file_namesML']) ? stripslashes($_REQUEST['file_namesML']) : ''));
886
- foreach ($file_names as $index => $value) {
887
- $file_name_array = explode('/', $value);
888
- $files[] = $this->handle_file_import(
889
- $value,
890
- end($file_name_array),
891
- 0,
892
- ""
893
- );
894
- }
895
- header('Location: ' . add_query_arg(array('action' => 'addImage', 'width' => '650', 'height' => '500', 'task' => 'show_file_manager', 'extensions' => 'jpg,jpeg,png,gif', 'callback' => $_REQUEST['callback'], 'image_for' => $_REQUEST['image_for'], 'slide_id' => $_REQUEST['slide_id'], 'dir' => $_REQUEST['redir'], 'TB_iframe' => '1'), admin_url('admin-ajax.php')));
896
- exit;
897
- }*/
898
  if ($print_response && isset($_GET['download'])) {
899
  return $this->download();
900
  }
23
  $controller = new FilemanagerController();
24
 
25
  $upload_handler = new UploadHandler(array(
26
+ 'upload_dir' => $controller->uploads_dir . (isset($_GET['dir']) ? str_replace('\\', '', ($_GET['dir'])) : ''),
27
+ 'accept_file_types' => '/\.(gif|jpe?g|png|bmp|mp4|flv|webm|ogg|mp3|wav|pdf|zip)$/i'
28
  ));
29
 
30
  class UploadHandler {
105
  }
106
  $this->options += array(
107
  'image_versions' => array(
 
 
 
 
 
 
 
 
 
108
  // Uncomment the following to create medium sized images:
109
  /*
110
  'medium' => array(
230
  }
231
 
232
  protected function get_file_size($file_path, $clear_stat_cache = false) {
233
+ /*if ($clear_stat_cache) {
234
  clearstatcache(true, $file_path);
235
+ }*/
236
  return $this->fix_integer_overflow(filesize($file_path));
237
 
238
  }
498
  // into different directories or replacing hidden system files.
499
  // Also remove control characters and spaces (\x00..\x20) around the filename:
500
  $name = trim(stripslashes($name), ".\x00..\x20");
501
+ $name = str_replace(" ", "_", $name);
502
  // Use a timestamp for empty filenames:
503
  if (!$name) {
504
  $name = str_replace('.', '-', microtime(true));
872
  }
873
 
874
  public function get($print_response = true) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
875
  if ($print_response && isset($_GET['download'])) {
876
  return $this->download();
877
  }
filemanager/controller.php CHANGED
@@ -26,13 +26,10 @@ class FilemanagerController {
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
 
@@ -46,7 +43,7 @@ class FilemanagerController {
46
  return $row;
47
  }
48
 
49
- public function execute() {
50
  $task = isset($_REQUEST['task']) ? stripslashes(esc_html($_REQUEST['task'])) : 'display';
51
  if (method_exists($this, $task)) {
52
  $this->$task();
@@ -74,11 +71,12 @@ class FilemanagerController {
74
  }
75
 
76
  public function make_dir() {
77
- $input_dir = (isset($_REQUEST['dir']) ? stripslashes(esc_html($_REQUEST['dir'])) : '');
 
78
  $cur_dir_path = $input_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $input_dir;
79
 
80
  $new_dir_path = $cur_dir_path . '/' . (isset($_REQUEST['new_dir_name']) ? stripslashes(esc_html($_REQUEST['new_dir_name'])) : '');
81
-
82
  $msg = '';
83
  if (file_exists($new_dir_path) == true) {
84
  $msg = "Directory already exists.";
@@ -93,15 +91,16 @@ class FilemanagerController {
93
  }
94
 
95
  public function rename_item() {
96
- $input_dir = (isset($_REQUEST['dir']) ? stripslashes(esc_html($_REQUEST['dir'])) : '');
 
97
  $cur_dir_path = $input_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $input_dir;
98
- $cur_dir_path = htmlspecialchars_decode($cur_dir_path, ENT_COMPAT | ENT_QUOTES);
99
 
100
  $file_names = explode('**#**', (isset($_REQUEST['file_names']) ? stripslashes(esc_html($_REQUEST['file_names'])) : ''));
101
  $file_name = $file_names[0];
102
  $file_name = htmlspecialchars_decode($file_name, ENT_COMPAT | ENT_QUOTES);
103
 
104
  $file_new_name = (isset($_REQUEST['file_new_name']) ? stripslashes(esc_html($_REQUEST['file_new_name'])) : '');
 
105
 
106
  $file_path = $cur_dir_path . '/' . $file_name;
107
  $thumb_file_path = $cur_dir_path . '/thumb/' . $file_name;
@@ -113,13 +112,13 @@ class FilemanagerController {
113
  }
114
  elseif (is_dir($file_path) == true) {
115
  if (rename($file_path, $cur_dir_path . '/' . $file_new_name) == false) {
116
- $msg = "Can't rename the file.";
117
  }
118
  }
119
  elseif ((strrpos($file_name, '.') !== false)) {
120
  $file_extension = substr($file_name, strrpos($file_name, '.') + 1);
121
  if (rename($file_path, $cur_dir_path . '/' . $file_new_name . '.' . $file_extension) == false) {
122
- $msg = "Can't rename the file.";
123
  }
124
  rename($thumb_file_path, $cur_dir_path . '/thumb/' . $file_new_name . '.' . $file_extension);
125
  rename($original_file_path, $cur_dir_path . '/.original/' . $file_new_name . '.' . $file_extension);
@@ -135,9 +134,9 @@ class FilemanagerController {
135
  }
136
 
137
  public function remove_items() {
138
- $input_dir = (isset($_REQUEST['dir']) ? stripslashes(esc_html($_REQUEST['dir'])) : '');
 
139
  $cur_dir_path = $input_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $input_dir;
140
- $cur_dir_path = htmlspecialchars_decode($cur_dir_path, ENT_COMPAT | ENT_QUOTES);
141
 
142
  $file_names = explode('**#**', (isset($_REQUEST['file_names']) ? stripslashes(esc_html($_REQUEST['file_names'])) : ''));
143
 
@@ -168,6 +167,8 @@ class FilemanagerController {
168
  }
169
 
170
  public function paste_items() {
 
 
171
  $msg = '';
172
 
173
  $file_names = explode('**#**', (isset($_REQUEST['clipboard_files']) ? stripslashes($_REQUEST['clipboard_files']) : ''));
@@ -266,7 +267,6 @@ class FilemanagerController {
266
  exit;
267
  }
268
 
269
-
270
  ////////////////////////////////////////////////////////////////////////////////////////
271
  // Getters & Setters //
272
  ////////////////////////////////////////////////////////////////////////////////////////
26
  public function __construct() {
27
  global $WD_S_UPLOAD_DIR;
28
  $upload_dir = wp_upload_dir();
 
 
29
  $this->uploads_dir = ABSPATH . $WD_S_UPLOAD_DIR;
30
  if (file_exists($this->uploads_dir) == FALSE) {
31
  mkdir($this->uploads_dir);
32
  }
 
33
  $this->uploads_url = site_url() . '/' . $WD_S_UPLOAD_DIR;
34
  }
35
 
43
  return $row;
44
  }
45
 
46
+ public function execute() {
47
  $task = isset($_REQUEST['task']) ? stripslashes(esc_html($_REQUEST['task'])) : 'display';
48
  if (method_exists($this, $task)) {
49
  $this->$task();
71
  }
72
 
73
  public function make_dir() {
74
+ $input_dir = (isset($_REQUEST['dir']) ? str_replace('\\', '', esc_html($_REQUEST['dir'])) : '');
75
+ $input_dir = htmlspecialchars_decode($input_dir, ENT_COMPAT | ENT_QUOTES);
76
  $cur_dir_path = $input_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $input_dir;
77
 
78
  $new_dir_path = $cur_dir_path . '/' . (isset($_REQUEST['new_dir_name']) ? stripslashes(esc_html($_REQUEST['new_dir_name'])) : '');
79
+ $new_dir_path = htmlspecialchars_decode($new_dir_path, ENT_COMPAT | ENT_QUOTES);
80
  $msg = '';
81
  if (file_exists($new_dir_path) == true) {
82
  $msg = "Directory already exists.";
91
  }
92
 
93
  public function rename_item() {
94
+ $input_dir = (isset($_REQUEST['dir']) ? str_replace('\\', '', esc_html($_REQUEST['dir'])) : '');
95
+ $input_dir = htmlspecialchars_decode($input_dir, ENT_COMPAT | ENT_QUOTES);
96
  $cur_dir_path = $input_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $input_dir;
 
97
 
98
  $file_names = explode('**#**', (isset($_REQUEST['file_names']) ? stripslashes(esc_html($_REQUEST['file_names'])) : ''));
99
  $file_name = $file_names[0];
100
  $file_name = htmlspecialchars_decode($file_name, ENT_COMPAT | ENT_QUOTES);
101
 
102
  $file_new_name = (isset($_REQUEST['file_new_name']) ? stripslashes(esc_html($_REQUEST['file_new_name'])) : '');
103
+ $file_new_name = htmlspecialchars_decode($file_new_name, ENT_COMPAT | ENT_QUOTES);
104
 
105
  $file_path = $cur_dir_path . '/' . $file_name;
106
  $thumb_file_path = $cur_dir_path . '/thumb/' . $file_name;
112
  }
113
  elseif (is_dir($file_path) == true) {
114
  if (rename($file_path, $cur_dir_path . '/' . $file_new_name) == false) {
115
+ $msg = "Can't rename the file.";
116
  }
117
  }
118
  elseif ((strrpos($file_name, '.') !== false)) {
119
  $file_extension = substr($file_name, strrpos($file_name, '.') + 1);
120
  if (rename($file_path, $cur_dir_path . '/' . $file_new_name . '.' . $file_extension) == false) {
121
+ $msg = "Can't rename the file.";
122
  }
123
  rename($thumb_file_path, $cur_dir_path . '/thumb/' . $file_new_name . '.' . $file_extension);
124
  rename($original_file_path, $cur_dir_path . '/.original/' . $file_new_name . '.' . $file_extension);
134
  }
135
 
136
  public function remove_items() {
137
+ $input_dir = (isset($_REQUEST['dir']) ? str_replace('\\', '', ($_REQUEST['dir'])) : '');
138
+ $input_dir = htmlspecialchars_decode($input_dir, ENT_COMPAT | ENT_QUOTES);
139
  $cur_dir_path = $input_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $input_dir;
 
140
 
141
  $file_names = explode('**#**', (isset($_REQUEST['file_names']) ? stripslashes(esc_html($_REQUEST['file_names'])) : ''));
142
 
167
  }
168
 
169
  public function paste_items() {
170
+ $input_dir = (isset($_REQUEST['dir']) ? str_replace('\\', '', ($_REQUEST['dir'])) : '');
171
+ $input_dir = htmlspecialchars_decode($input_dir, ENT_COMPAT | ENT_QUOTES);
172
  $msg = '';
173
 
174
  $file_names = explode('**#**', (isset($_REQUEST['clipboard_files']) ? stripslashes($_REQUEST['clipboard_files']) : ''));
267
  exit;
268
  }
269
 
 
270
  ////////////////////////////////////////////////////////////////////////////////////////
271
  // Getters & Setters //
272
  ////////////////////////////////////////////////////////////////////////////////////////
filemanager/css/default.css CHANGED
@@ -1,162 +1,113 @@
1
  .spider_ajax_loading {
2
  border: none !important;
3
- -webkit-animation: spin 2.5s infinite linear;
4
- -moz-animation: spin 2.5s infinite linear;
5
- -o-animation: spin 2.5s infinite linear;
6
- animation: spin 2.5s infinite linear;
7
- }
8
-
9
- @-moz-keyframes spin {
10
- 0% {
11
- -moz-transform: rotate(0deg);
12
- }
13
- 100% {
14
- -moz-transform: rotate(359deg);
15
- }
16
- }
17
- @-webkit-keyframes spin {
18
- 0% {
19
- -webkit-transform: rotate(0deg);
20
- }
21
- 100% {
22
- -webkit-transform: rotate(359deg);
23
- }
24
- }
25
- @-o-keyframes spin {
26
- 0% {
27
- -o-transform: rotate(0deg);
28
- }
29
- 100% {
30
- -o-transform: rotate(359deg);
31
- }
32
- }
33
- @-ms-keyframes spin {
34
- 0% {
35
- -ms-transform: rotate(0deg);
36
- }
37
- 100% {
38
- -ms-transform: rotate(359deg);
39
- }
40
- }
41
- @keyframes spin {
42
- 0% {
43
- transform: rotate(0deg);
44
- }
45
- 100% {
46
- transform: rotate(359deg);
47
- }
48
  }
49
 
50
  html {
51
- overflow: hidden !important;
52
 
53
- /*deny selecting text*/
54
- cursor: default;
55
- -webkit-touch-callout: none;
56
- -webkit-user-select: none;
57
- -khtml-user-select: none;
58
- -moz-user-select: none;
59
- -ms-user-select: none;
60
- user-select: none;
61
  }
62
 
63
- /* set joomla messages margin to 0 */
64
  body {
65
- margin: 0 !important;
66
  }
67
 
68
  #system-message, #system-message ul {
69
- margin: 0;
70
  }
71
 
72
-
73
  /* font-size */
74
  html, body, div, span, th, td, a {
75
- font-size: 12px !important;
76
  }
77
 
78
-
79
  /* default tags */
80
  .clickable {
81
- cursor: pointer !important;
82
  }
83
 
84
-
85
  /* wrapper */
86
  #wrapper {
87
- position: absolute;
88
- top: 0;
89
- bottom: 0;
90
- left: 0;
91
- right: 0;
92
  }
93
 
94
  #file_manager,
95
  #uploader,
96
  #importer {
97
- position: absolute;
98
- top: 0;
99
- bottom: 0;
100
- left: 0;
101
- right: 0;
102
- margin: 0;
103
- padding: 0;
104
  }
105
 
106
-
107
  /* file manager */
108
  /* ctrls bar */
109
  .ctrls_bar {
110
- display: table-row;
111
- position: absolute;
112
- z-index: 1;
113
- left: 0;
114
- right: 0;
115
- margin: 0;
116
- border: solid 1px #e8e9ea;
117
- background-color: #f5f6f7;
118
- padding: 4px;
119
- height: 32px;
120
  }
121
 
122
  .ctrls_bar_header {
123
- top: 0;
124
  }
125
 
126
  .ctrls_bar_footer {
127
- bottom: 0;
128
  }
129
 
130
  .ctrls_bar .ctrls_left {
131
- float: left;
132
- margin: 0;
133
- padding: 0;
134
- margin-left: 5px;
135
  }
136
 
137
  .ctrls_bar .ctrls_right {
138
- float: right;
139
- margin: 0;
140
- padding: 0;
141
  }
142
 
143
  .ctrls_bar .ctrls_right_img {
144
- float: right;
145
- margin: 0;
146
- padding: 0;
147
  margin-right: 10px;
148
  }
149
 
150
  .ctrl_bar_divider {
151
- display: table-cell;
152
- margin: 0;
153
- background-image: url("../images/btn_icons/divider.png");
154
- background-repeat: no-repeat;
155
- width: 16px !important;
156
- height: 32px !important;
157
- padding: 0;
158
- vertical-align: middle;
159
- cursor: default;
160
  }
161
 
162
  .upload_thumb_dim {
@@ -174,7 +125,7 @@ html, body, div, span, th, td, a {
174
 
175
  .upload_thumb {
176
  color: #808080;
177
- font-size: 16px !important;
178
  }
179
 
180
  .ctrl_bar_btn {
@@ -190,20 +141,20 @@ html, body, div, span, th, td, a {
190
  }
191
 
192
  .ctrl_bar_btn:hover {
193
- outline: solid 1px #C6C6C6;
194
- text-decoration: none;
195
  }
196
 
197
  .ctrl_bar_btn.btn_up {
198
- background-image: url("../images/btn_icons/up.png");
199
  }
200
 
201
  .ctrl_bar_btn.btn_make_dir {
202
- background-image: url("../images/btn_icons/create_dir.png");
203
  }
204
 
205
  .ctrl_bar_btn.btn_rename_item {
206
- background-image: url("../images/btn_icons/rename.png");
207
  }
208
 
209
  .ctrl_bar_btn.btn_copy {
@@ -240,8 +191,8 @@ html, body, div, span, th, td, a {
240
  color: #F5F6F7;
241
  cursor: pointer;
242
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
243
- height: 30px !important;
244
- font-size: 14px !important;
245
  }
246
 
247
  .ctrl_bar_btn.btn_upload_files, .ctrl_bar_btn.btn_import_files:hover {
@@ -264,12 +215,12 @@ html, body, div, span, th, td, a {
264
  box-sizing: border-box;
265
  cursor: pointer;
266
  white-space: nowrap;
267
- padding: 0 10px;
268
  font-size: 14px !important;
269
  }
270
 
271
  .ctrl_bar_btn.btn_secondary {
272
- background: linear-gradient(to bottom, #FEFEFE, #F4F4F4) repeat scroll 0 0 #F3F3F3;
273
  border-color: #BBBBBB;
274
  color: #333333 !important;
275
  text-shadow: 0 1px 0 #FFFFFF;
@@ -303,7 +254,6 @@ html, body, div, span, th, td, a {
303
  background-image: url("../images/btn_icons/back.png");
304
  }
305
 
306
-
307
  /* sort icons */
308
  .sort_order_asc {
309
  display: inline-block !important;
@@ -335,7 +285,6 @@ html, body, div, span, th, td, a {
335
  cursor: pointer;
336
  }
337
 
338
-
339
  /* path */
340
  #path {
341
  display: table-row;
@@ -371,7 +320,6 @@ html, body, div, span, th, td, a {
371
  text-decoration: none;
372
  }
373
 
374
-
375
  #file_names_span {
376
  display: none;
377
  padding: 0 4px;
@@ -392,7 +340,6 @@ html, body, div, span, th, td, a {
392
  overflow: hidden;
393
  }
394
 
395
-
396
  /* uploader */
397
  #uploader,
398
  #importer {
@@ -437,6 +384,7 @@ html, body, div, span, th, td, a {
437
  right: 0;
438
  font-size: 24pt !important;
439
  color: #c0c0c0;
 
440
  }
441
 
442
  #btnBrowseContainer {
@@ -529,9 +477,8 @@ html, body, div, span, th, td, a {
529
  user-select: none;
530
  }
531
 
532
-
533
- .ctrl_bar_search_upload{
534
- display:table-cell;
535
  }
536
 
537
  @media screen and (max-width: 640px){
@@ -566,7 +513,6 @@ display:table-cell;
566
  .ctrls_bar_footer .ctrls_right{
567
  margin-right:5px !important;
568
  }
569
-
570
  }
571
 
572
  @media screen and (max-width: 350px){
@@ -575,5 +521,83 @@ display:table-cell;
575
  margin-left:5px !important;
576
  margin-bottom:2px;
577
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
578
 
 
 
 
 
579
  }
1
  .spider_ajax_loading {
2
  border: none !important;
3
+ margin-top: 200px;
4
+ width: 30px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  }
6
 
7
  html {
8
+ overflow: hidden !important;
9
 
10
+ /*deny selecting text*/
11
+ cursor: default;
12
+ -webkit-touch-callout: none;
13
+ -webkit-user-select: none;
14
+ -khtml-user-select: none;
15
+ -moz-user-select: none;
16
+ -ms-user-select: none;
17
+ user-select: none;
18
  }
19
 
 
20
  body {
21
+ margin: 0 !important;
22
  }
23
 
24
  #system-message, #system-message ul {
25
+ margin: 0;
26
  }
27
 
 
28
  /* font-size */
29
  html, body, div, span, th, td, a {
30
+ font-size: 12px !important;
31
  }
32
 
 
33
  /* default tags */
34
  .clickable {
35
+ cursor: pointer !important;
36
  }
37
 
 
38
  /* wrapper */
39
  #wrapper {
40
+ position: absolute;
41
+ top: 0;
42
+ bottom: 0;
43
+ left: 0;
44
+ right: 0;
45
  }
46
 
47
  #file_manager,
48
  #uploader,
49
  #importer {
50
+ position: absolute;
51
+ top: 0;
52
+ bottom: 0;
53
+ left: 0;
54
+ right: 0;
55
+ margin: 0;
56
+ padding: 0;
57
  }
58
 
 
59
  /* file manager */
60
  /* ctrls bar */
61
  .ctrls_bar {
62
+ display: table-row;
63
+ position: absolute;
64
+ z-index: 1;
65
+ left: 0;
66
+ right: 0;
67
+ margin: 0;
68
+ border: solid 1px #e8e9ea;
69
+ background-color: #f5f6f7;
70
+ padding: 4px;
71
+ height: 32px;
72
  }
73
 
74
  .ctrls_bar_header {
75
+ top: 0;
76
  }
77
 
78
  .ctrls_bar_footer {
79
+ bottom: 0;
80
  }
81
 
82
  .ctrls_bar .ctrls_left {
83
+ float: left;
84
+ margin: 0;
85
+ padding: 0;
 
86
  }
87
 
88
  .ctrls_bar .ctrls_right {
89
+ float: right;
90
+ margin: 0 auto;
91
+ padding: 0;
92
  }
93
 
94
  .ctrls_bar .ctrls_right_img {
95
+ float: right;
96
+ margin: 0;
97
+ padding: 0;
98
  margin-right: 10px;
99
  }
100
 
101
  .ctrl_bar_divider {
102
+ display: table-cell;
103
+ margin: 0;
104
+ background-image: url("../images/btn_icons/divider.png");
105
+ background-repeat: no-repeat;
106
+ width: 16px !important;
107
+ height: 32px !important;
108
+ padding: 0;
109
+ vertical-align: middle;
110
+ cursor: default;
111
  }
112
 
113
  .upload_thumb_dim {
125
 
126
  .upload_thumb {
127
  color: #808080;
128
+ font-size: 15px !important;
129
  }
130
 
131
  .ctrl_bar_btn {
141
  }
142
 
143
  .ctrl_bar_btn:hover {
144
+ outline: solid 1px #C6C6C6;
145
+ text-decoration: none;
146
  }
147
 
148
  .ctrl_bar_btn.btn_up {
149
+ background-image: url("../images/btn_icons/up.png");
150
  }
151
 
152
  .ctrl_bar_btn.btn_make_dir {
153
+ background-image: url("../images/btn_icons/create_dir.png");
154
  }
155
 
156
  .ctrl_bar_btn.btn_rename_item {
157
+ background-image: url("../images/btn_icons/rename.png");
158
  }
159
 
160
  .ctrl_bar_btn.btn_copy {
191
  color: #F5F6F7;
192
  cursor: pointer;
193
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
194
+ height: 32px !important;
195
+ font-size: 13px !important;
196
  }
197
 
198
  .ctrl_bar_btn.btn_upload_files, .ctrl_bar_btn.btn_import_files:hover {
215
  box-sizing: border-box;
216
  cursor: pointer;
217
  white-space: nowrap;
218
+ padding: 0 5px;
219
  font-size: 14px !important;
220
  }
221
 
222
  .ctrl_bar_btn.btn_secondary {
223
+ background: linear-gradient(to bottom, #FEFEFE, #fff) repeat scroll 0 0 #F3F3F3;
224
  border-color: #BBBBBB;
225
  color: #333333 !important;
226
  text-shadow: 0 1px 0 #FFFFFF;
254
  background-image: url("../images/btn_icons/back.png");
255
  }
256
 
 
257
  /* sort icons */
258
  .sort_order_asc {
259
  display: inline-block !important;
285
  cursor: pointer;
286
  }
287
 
 
288
  /* path */
289
  #path {
290
  display: table-row;
320
  text-decoration: none;
321
  }
322
 
 
323
  #file_names_span {
324
  display: none;
325
  padding: 0 4px;
340
  overflow: hidden;
341
  }
342
 
 
343
  /* uploader */
344
  #uploader,
345
  #importer {
384
  right: 0;
385
  font-size: 24pt !important;
386
  color: #c0c0c0;
387
+ line-height: 33px;
388
  }
389
 
390
  #btnBrowseContainer {
477
  user-select: none;
478
  }
479
 
480
+ .ctrl_bar_search_upload {
481
+ display: table-cell;
 
482
  }
483
 
484
  @media screen and (max-width: 640px){
513
  .ctrls_bar_footer .ctrls_right{
514
  margin-right:5px !important;
515
  }
 
516
  }
517
 
518
  @media screen and (max-width: 350px){
521
  margin-left:5px !important;
522
  margin-bottom:2px;
523
  }
524
+ }
525
+
526
+ .wd-btn {
527
+ padding: 0 10px 0px 10px !important;
528
+ margin: 0;
529
+ text-decoration: none;
530
+ font-size: 13px !important;
531
+ height: 30px;
532
+ cursor: pointer;
533
+ -webkit-appearance: none;
534
+ white-space: nowrap;
535
+ -webkit-box-sizing: border-box;
536
+ -moz-box-sizing: border-box;
537
+ box-sizing: border-box;
538
+ line-height: 13px;
539
+ }
540
+
541
+ a.wd-btn {
542
+ color: #fff;
543
+ line-height: 28px;
544
+ }
545
+
546
+ .wd-btn:focus,
547
+ .wd-search-btn:focus,
548
+ .wd-reset-btn:focus {
549
+ outline: none !important;
550
+ }
551
+
552
+ .wd-btn-secondary {
553
+ background-color: #FFFFFF;
554
+ color: #686;
555
+ border: 1px solid #ddd;
556
+ }
557
+
558
+ .wd-btn-primary {
559
+ background-color: #00A0D2;
560
+ color: #fff;
561
+ border: 1px solid #00A0D2;
562
+ }
563
+
564
+ a.wd-btn-primary:hover,
565
+ a.wd-btn-primary:active,
566
+ a.wd-btn-primary:link {
567
+ color: #fff;
568
+ }
569
+
570
+ .wd-btn-icon {
571
+ padding: 0px 10px 1px 36px !important;
572
+ color: #fff;
573
+ background-repeat: no-repeat;
574
+ background-position: 10% 50%;
575
+ }
576
+
577
+ .wd-btn-icon-add {
578
+ padding: 0px 10px 1px 42px !important;
579
+ background-repeat: no-repeat;
580
+ background-position: 10% 50%;
581
+ }
582
+
583
+ .wd-btn-uplaod {
584
+ background-image: url("../images/btn_icons/upload.png");
585
+ }
586
+
587
+ .wd-btn-add {
588
+ background-image: url("../images/icons/add-new.png");
589
+ }
590
+
591
+ .wd-btn-apply {
592
+ background-image: url("../images/icons/apply.png");
593
+ }
594
+
595
+ .wd-btn-cancel {
596
+ background-image: url("../images/icons/cancel.png");
597
+ }
598
 
599
+ .wd-not-image {
600
+ padding: 0px 10px 1px 10px !important;
601
+ background-repeat: no-repeat;
602
+ background-position: 10% 50%;
603
  }
filemanager/images/btn_icons/import.png CHANGED
Binary file
filemanager/images/btn_icons/imports.png ADDED
Binary file
filemanager/images/btn_icons/upload.png CHANGED
Binary file
filemanager/images/btn_icons/uploads.png ADDED
Binary file
filemanager/images/icons/add-new.png ADDED
Binary file
filemanager/images/icons/apply.png ADDED
Binary file
filemanager/images/icons/cancel.png ADDED
Binary file
filemanager/images/icons/checkout-option.png ADDED
Binary file
filemanager/images/icons/close-red.png ADDED
Binary file
filemanager/images/icons/delete.png ADDED
Binary file
filemanager/images/icons/edit.png ADDED
Binary file
filemanager/images/icons/media.png ADDED
Binary file
filemanager/images/icons/save.png ADDED
Binary file
filemanager/js/default.js CHANGED
@@ -552,9 +552,10 @@ function onBtnCancelClick(event, obj) {
552
  }
553
 
554
  function onBtnSelectAllClick() {
555
- jQuery(".explorer_item").addClass("explorer_item_select");
 
556
  filesSelected = [];
557
- jQuery(".explorer_item").each(function() {
558
  var objName = jQuery(this).attr("name");
559
  if (filesSelected.indexOf(objName) == -1) {
560
  filesSelected.push(objName);
552
  }
553
 
554
  function onBtnSelectAllClick() {
555
+ jQuery(".explorer_item").removeClass("explorer_item_select");
556
+ jQuery(".explorer_item:visible").addClass("explorer_item_select");
557
  filesSelected = [];
558
+ jQuery(".explorer_item:visible").each(function() {
559
  var objName = jQuery(this).attr("name");
560
  if (filesSelected.indexOf(objName) == -1) {
561
  filesSelected.push(objName);
filemanager/model.php CHANGED
@@ -43,7 +43,7 @@ class FilemanagerModel {
43
  $data = array();
44
  $data['session_data'] = $session_data;
45
  $data['path_components'] = $this->get_path_components();
46
- $data['dir'] = (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : '');
47
  $data['files'] = $this->get_files($session_data['sort_by'], $session_data['sort_order']);
48
  $data['extensions'] = (isset($_REQUEST['extensions']) ? esc_html($_REQUEST['extensions']) : '');
49
  $data['callback'] = (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : '');
@@ -98,9 +98,10 @@ class FilemanagerModel {
98
  $icons_dir_url = WD_S_URL . '/filemanager/images/file_icons';
99
  $valid_types = explode(',', isset($_REQUEST['extensions']) ? strtolower(esc_html($_REQUEST['extensions'])) : '*');
100
  $image_for = isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : '';
101
- $parent_dir = $this->controller->get_uploads_dir() . (isset($_REQUEST['dir']) ? '/' . esc_html($_REQUEST['dir']) : '');
102
- $parent_dir_url = $this->controller->get_uploads_url() . (isset($_REQUEST['dir']) ? '/' . esc_html($_REQUEST['dir']) : '');
103
-
 
104
  if ($image_for == 'nav_right_but' || $image_for == 'nav_right_hov_but' || $image_for == 'nav_left_but' || $image_for == 'nav_left_hov_but') {
105
  if (!is_dir($parent_dir)) {
106
  mkdir($parent_dir, 0777);
@@ -118,7 +119,7 @@ class FilemanagerModel {
118
  $file = array();
119
  $file['is_dir'] = TRUE;
120
  $file['name'] = $file_name;
121
- $file['filename'] = $file_name;
122
  $file['type'] = '';
123
  $file['thumb'] = $icons_dir_url . '/dir.png';
124
  $file['icon'] = $icons_dir_url . '/dir.png';
@@ -131,7 +132,8 @@ class FilemanagerModel {
131
  $file = array();
132
  $file['is_dir'] = FALSE;
133
  $file['name'] = $file_name;
134
- $file['filename'] = substr($file_name, 0, strrpos($file_name, '.'));
 
135
  $file_extension = explode('.', $file_name);
136
  $file['type'] = strtolower(end($file_extension));
137
  $icon = $icons_dir_url . '/' . $file['type'] . '.png';
@@ -158,60 +160,6 @@ class FilemanagerModel {
158
  $result = array_merge($dirs, $files);
159
  return $result;
160
  }
161
-
162
- /*function get_media_library_files($sort_by, $sort_order) {
163
- $icons_dir_path = WD_S_DIR . '/filemanager/images/file_icons';
164
- $icons_dir_url = WD_S_URL . '/filemanager/images/file_icons';
165
- $valid_types = explode(',', isset($_REQUEST['extensions']) ? strtolower(esc_html($_REQUEST['extensions'])) : '*');
166
- $upload_dir = wp_upload_dir();
167
- $parent_dir = $upload_dir['basedir'];
168
- $parent_dir_url = $upload_dir['baseurl'];
169
-
170
- $query_images_args = array(
171
- 'post_type' => 'attachment', 'post_mime_type' =>'image', 'post_status' => 'inherit', 'posts_per_page' => -1,
172
- );
173
-
174
- $query_images = new WP_Query( $query_images_args );
175
-
176
- $files = array();
177
- $upload_dir = wp_upload_dir();
178
-
179
- foreach ($query_images->posts as $image) {
180
- $file_meta = wp_get_attachment_metadata($image->ID);
181
- if (isset($file_meta['file'])) {
182
- $file = array();
183
- $file['is_dir'] = FALSE;
184
- $file_name_array = explode('/', $file_meta['file']);
185
- $file_name = end($file_name_array);
186
- $file['name'] = $file_name;
187
- $file['path'] = $file_meta['file'];
188
- $file['filename'] = substr($file_name, 0, strrpos($file_name, '.'));
189
- $file_type_array = explode('.', $file_name);
190
- $file['type'] = strtolower(end($file_type_array));
191
- // $file['thumb'] = wp_get_attachment_thumb_url($image->ID);
192
- if (!empty($file_meta['sizes']) && $file_meta['sizes']['thumbnail']['file']) {
193
- $file_pos = strrpos($file_meta['file'], '/');
194
- $sub_folder = substr($file_meta['file'], 0, $file_pos);
195
- $file['thumb'] = $upload_dir['baseurl'] . '/' . $sub_folder . '/' . $file_meta['sizes']['thumbnail']['file'];
196
- }
197
- else {
198
- $file['thumb'] = $upload_dir['baseurl'] . '/' . $file_meta['file'];
199
- }
200
- $file['icon'] = $file['thumb'];
201
- if (($valid_types[0] != '*') && (in_array($file['type'], $valid_types) == FALSE)) {
202
- continue;
203
- }
204
- $file_size_kb = (int)(@filesize($parent_dir . '/' . $file_meta['file']) / 1024);
205
- if (!$file_size_kb) continue;
206
- $file['size'] = $file_size_kb . ' KB';
207
- $file['date_modified'] = date('d F Y, H:i', filemtime($parent_dir . '/' . $file_meta['file']));
208
- // $image_info = getimagesize(htmlspecialchars_decode($parent_dir . '/' . $file_meta['file'], ENT_COMPAT | ENT_QUOTES));
209
- $file['resolution'] = $this->is_img($file['type']) ? $file_meta['width'] . ' x ' . $file_meta['height'] . ' px' : '';
210
- $files[] = $file;
211
- }
212
- }
213
- return $files;
214
- }*/
215
 
216
  private function get_sorted_file_names($parent_dir, $sort_by, $sort_order) {
217
  $file_names = scandir($parent_dir);
43
  $data = array();
44
  $data['session_data'] = $session_data;
45
  $data['path_components'] = $this->get_path_components();
46
+ $data['dir'] = $this->controller->get_uploads_dir() . (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : '');
47
  $data['files'] = $this->get_files($session_data['sort_by'], $session_data['sort_order']);
48
  $data['extensions'] = (isset($_REQUEST['extensions']) ? esc_html($_REQUEST['extensions']) : '');
49
  $data['callback'] = (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : '');
98
  $icons_dir_url = WD_S_URL . '/filemanager/images/file_icons';
99
  $valid_types = explode(',', isset($_REQUEST['extensions']) ? strtolower(esc_html($_REQUEST['extensions'])) : '*');
100
  $image_for = isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : '';
101
+ $dir = (isset($_REQUEST['dir']) ? '/' . htmlspecialchars_decode(stripslashes(esc_html($_REQUEST['dir'])), ENT_COMPAT | ENT_QUOTES) : '');
102
+ $parent_dir = $this->controller->get_uploads_dir() . $dir;
103
+ $parent_dir_url = $this->controller->get_uploads_url() . $dir;
104
+
105
  if ($image_for == 'nav_right_but' || $image_for == 'nav_right_hov_but' || $image_for == 'nav_left_but' || $image_for == 'nav_left_hov_but') {
106
  if (!is_dir($parent_dir)) {
107
  mkdir($parent_dir, 0777);
119
  $file = array();
120
  $file['is_dir'] = TRUE;
121
  $file['name'] = $file_name;
122
+ $file['filename'] = str_replace("_", " ", $file_name);
123
  $file['type'] = '';
124
  $file['thumb'] = $icons_dir_url . '/dir.png';
125
  $file['icon'] = $icons_dir_url . '/dir.png';
132
  $file = array();
133
  $file['is_dir'] = FALSE;
134
  $file['name'] = $file_name;
135
+ $filename = substr($file_name, 0, strrpos($file_name, '.'));
136
+ $file['filename'] = str_replace("_", " ", $filename);
137
  $file_extension = explode('.', $file_name);
138
  $file['type'] = strtolower(end($file_extension));
139
  $icon = $icons_dir_url . '/' . $file['type'] . '.png';
160
  $result = array_merge($dirs, $files);
161
  return $result;
162
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
 
164
  private function get_sorted_file_names($parent_dir, $sort_by, $sort_order) {
165
  $file_names = scandir($parent_dir);
filemanager/view.php CHANGED
@@ -68,7 +68,7 @@ class FilemanagerView {
68
  var messageFilesUploadComplete = "<?php echo 'Files upload complete'; ?>";
69
 
70
  var root = "<?php echo addslashes($this->controller->get_uploads_dir()); ?>";
71
- var dir = "<?php echo (isset($_REQUEST['dir']) ? addslashes(esc_html($_REQUEST['dir'])) : ''); ?>";
72
  var dirUrl = "<?php echo $this->controller->get_uploads_url() . (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) . '/' : ''); ?>";
73
  var callback = "<?php echo (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : ''); ?>";
74
  var image_for = "<?php echo (isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : ''); ?>";
@@ -101,7 +101,7 @@ class FilemanagerView {
101
  <div id="wrapper">
102
  <div id="opacity_div" style="background-color: rgba(0, 0, 0, 0.2); position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99998;"></div>
103
  <div id="loading_div" style="text-align: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;">
104
- <img src="<?php echo WD_S_URL . '/images/ajax_loader.gif'; ?>" class="spider_ajax_loading" style="margin-top: 200px; width:50px;">
105
  </div>
106
  <div id="file_manager">
107
  <div class="ctrls_bar ctrls_bar_header">
@@ -116,8 +116,8 @@ class FilemanagerView {
116
  <a class="ctrl_bar_btn btn_remove_items" onclick="onBtnRemoveItemsClick(event, this);" title="<?php echo 'Remove items'; ?>"></a>
117
  <span class="ctrl_bar_divider"></span>
118
  <span class="ctrl_bar_search_upload">
119
- <span class="ctrl_bar_btn btn_primary">
120
- <a class="ctrl_bar_btn btn_upload_files" onclick="onBtnShowUploaderClick(event, this);"><?php echo 'Upload files'; ?></a>
121
  </span>
122
  <span class="ctrl_bar_divider"></span>
123
  <span id="search_by_name" class="ctrl_bar_btn">
@@ -136,7 +136,7 @@ class FilemanagerView {
136
  ?>
137
  <a class="path_component path_dir"
138
  onclick="onPathComponentClick(event, this, '<?php echo addslashes($path_component['path']); ?>');">
139
- <?php echo $path_component['name']; ?></a>
140
  <a class="path_component path_separator"><?php echo '/'; ?></a>
141
  <?php
142
  }
@@ -245,16 +245,16 @@ class FilemanagerView {
245
  </div>
246
  <div class="ctrls_bar ctrls_bar_footer">
247
  <div class="ctrls_left">
248
- <a class="ctrl_bar_btn btn_open btn_primary none_select" onclick="onBtnSelectAllClick();"><?php echo 'Select All'; ?></a>
249
  </div>
250
  <div class="ctrls_right">
251
  <span id="file_names_span">
252
  <span>
253
  </span>
254
  </span>
255
- <a class="ctrl_bar_btn btn_open btn_primary none_select" onclick="onBtnOpenClick(event, this);"><?php echo ((isset($_REQUEST['image_for']) && esc_html($_REQUEST['image_for']) == 'add_slides') ? 'Add selected images to slider' : 'Add image to slider'); ?></a>
256
  <span class="ctrl_bar_empty_devider"></span>
257
- <a class="ctrl_bar_btn btn_cancel btn_secondary none_select" onclick="onBtnCancelClick(event, this);"><?php echo 'Cancel'; ?></a>
258
  </div>
259
  </div>
260
  </div>
@@ -271,8 +271,8 @@ class FilemanagerView {
271
  </div>
272
  <div class="ctrls_right_img upload_thumb">
273
  Image Maximum Dimensions:
274
- <input type="text" class="upload_thumb_dim" name="upload_img_width" id="upload_img_width" value="<?php echo /*$bwg_options->upload_img_width;*/ 1200; ?>" /> x
275
- <input type="text" class="upload_thumb_dim" name="upload_img_height" id="upload_img_height" value="<?php echo /*$bwg_options->upload_img_height;*/ 1200; ?>" /> px
276
  </div>
277
  </div>
278
  <label for="jQueryUploader">
@@ -308,13 +308,15 @@ class FilemanagerView {
308
  jQuery("#uploader_progress_text").text(messageFilesUploadComplete);
309
  jQuery("#uploader_progress_text").addClass("uploader_text");
310
  });
 
 
311
  }
312
  },
313
  stop: function (e, data) {
314
  onBtnBackClick();
315
  },
316
  done: function (e, data) {
317
- jQuery.each(data.result.files, function (index, file) {
318
  if (file.error) {
319
  alert(errorLoadingFile + ' :: ' + file.error);
320
  }
@@ -325,6 +327,8 @@ class FilemanagerView {
325
  jQuery("#uploaded_files ul").prepend(jQuery("<li class=uploaded_item>" + file.name + " (<?php echo 'Uploaded' ?>)" + "</li>"));
326
  }
327
  });
 
 
328
  }
329
  });
330
  </script>
@@ -352,7 +356,7 @@ class FilemanagerView {
352
  <input type="hidden" name="sort_by" value="<?php echo $sort_by; ?>" />
353
  <input type="hidden" name="sort_order" value="<?php echo $sort_order; ?>" />
354
  <input type="hidden" name="items_view" value="<?php echo $items_view; ?>" />
355
- <input type="hidden" name="dir" value="<?php echo (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) : ''); ?>" />
356
  <input type="hidden" name="file_names" value="" />
357
  <input type="hidden" name="file_namesML" value="" />
358
  <input type="hidden" name="file_new_name" value="" />
68
  var messageFilesUploadComplete = "<?php echo 'Files upload complete'; ?>";
69
 
70
  var root = "<?php echo addslashes($this->controller->get_uploads_dir()); ?>";
71
+ var dir = "<?php echo (isset($_REQUEST['dir']) ? trim(esc_html($_REQUEST['dir'])) : ''); ?>";
72
  var dirUrl = "<?php echo $this->controller->get_uploads_url() . (isset($_REQUEST['dir']) ? esc_html($_REQUEST['dir']) . '/' : ''); ?>";
73
  var callback = "<?php echo (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : ''); ?>";
74
  var image_for = "<?php echo (isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : ''); ?>";
101
  <div id="wrapper">
102
  <div id="opacity_div" style="background-color: rgba(0, 0, 0, 0.2); position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99998;"></div>
103
  <div id="loading_div" style="text-align: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;">
104
+ <img src="<?php echo WD_S_URL . '/images/ajax_loader.gif'; ?>" class="spider_ajax_loading">
105
  </div>
106
  <div id="file_manager">
107
  <div class="ctrls_bar ctrls_bar_header">
116
  <a class="ctrl_bar_btn btn_remove_items" onclick="onBtnRemoveItemsClick(event, this);" title="<?php echo 'Remove items'; ?>"></a>
117
  <span class="ctrl_bar_divider"></span>
118
  <span class="ctrl_bar_search_upload">
119
+ <span class="ctrl_bar_btn">
120
+ <a id="upload_images" class="ctrl_bar_btn wd-btn wd-btn-primary wd-btn-icon wd-btn-uplaod" onclick="onBtnShowUploaderClick(event, this);"><?php _e('Upload files', 'wds'); ?></a>
121
  </span>
122
  <span class="ctrl_bar_divider"></span>
123
  <span id="search_by_name" class="ctrl_bar_btn">
136
  ?>
137
  <a class="path_component path_dir"
138
  onclick="onPathComponentClick(event, this, '<?php echo addslashes($path_component['path']); ?>');">
139
+ <?php echo str_replace('\\', '', $path_component['name']); ?></a>
140
  <a class="path_component path_separator"><?php echo '/'; ?></a>
141
  <?php
142
  }
245
  </div>
246
  <div class="ctrls_bar ctrls_bar_footer">
247
  <div class="ctrls_left">
248
+ <a id="select_all_images" class="ctrl_bar_btn wd-btn wd-btn-primary wd-not-image none_select" onclick="onBtnSelectAllClick();"><?php _e('Select All', 'wds'); ?></a>
249
  </div>
250
  <div class="ctrls_right">
251
  <span id="file_names_span">
252
  <span>
253
  </span>
254
  </span>
255
+ <a class="ctrl_bar_btn btn_open wd-btn wd-btn-primary wd-btn-icon-add wd-btn-add none_select" onclick="onBtnOpenClick(event, this);"><?php echo ((isset($_REQUEST['image_for']) && esc_html($_REQUEST['image_for']) == 'add_slides') ? 'Add selected images to slider' : 'Add image to slider'); ?></a>
256
  <span class="ctrl_bar_empty_devider"></span>
257
+ <a class="ctrl_bar_btn btn_cancel wd-btn wd-btn-primary wd-btn-icon wd-btn-cancel none_select" onclick="onBtnCancelClick(event, this);"><?php _e('Cancel', 'wds'); ?></a>
258
  </div>
259
  </div>
260
  </div>
271
  </div>
272
  <div class="ctrls_right_img upload_thumb">
273
  Image Maximum Dimensions:
274
+ <input type="text" class="upload_thumb_dim" name="upload_img_width" id="upload_img_width" value="1200" /> x
275
+ <input type="text" class="upload_thumb_dim" name="upload_img_height" id="upload_img_height" value="1200" /> px
276
  </div>
277
  </div>
278
  <label for="jQueryUploader">
308
  jQuery("#uploader_progress_text").text(messageFilesUploadComplete);
309
  jQuery("#uploader_progress_text").addClass("uploader_text");
310
  });
311
+ jQuery("#opacity_div").show();
312
+ jQuery("#loading_div").show();
313
  }
314
  },
315
  stop: function (e, data) {
316
  onBtnBackClick();
317
  },
318
  done: function (e, data) {
319
+ jQuery.each(data.files, function (index, file) {
320
  if (file.error) {
321
  alert(errorLoadingFile + ' :: ' + file.error);
322
  }
327
  jQuery("#uploaded_files ul").prepend(jQuery("<li class=uploaded_item>" + file.name + " (<?php echo 'Uploaded' ?>)" + "</li>"));
328
  }
329
  });
330
+ jQuery("#opacity_div").hide();
331
+ jQuery("#loading_div").hide();
332
  }
333
  });
334
  </script>
356
  <input type="hidden" name="sort_by" value="<?php echo $sort_by; ?>" />
357
  <input type="hidden" name="sort_order" value="<?php echo $sort_order; ?>" />
358
  <input type="hidden" name="items_view" value="<?php echo $items_view; ?>" />
359
+ <input type="hidden" name="dir" value="<?php echo (isset($_REQUEST['dir']) ? str_replace('\\', '', ($_REQUEST['dir'])) : ''); ?>" />
360
  <input type="hidden" name="file_names" value="" />
361
  <input type="hidden" name="file_namesML" value="" />
362
  <input type="hidden" name="file_new_name" value="" />
images/wdhny.jpg DELETED
Binary file
js/wds.js CHANGED
@@ -2528,7 +2528,7 @@ function wds_add_slide() {
2528
  slide_upload_by = ' <a href="' + uploader_href_for_add_slide + '" class="action_buttons edit_slide thickbox thickbox-preview" title="Add/Edit Image" onclick="return false;">Add/Edit Image</a>';
2529
  update_thumb_by = ' <input type="button" class="action_buttons edit_thumb wds_free_button" id="button_image_url' + slideID + '" onclick="alert(\'This functionality is disabled in free version.\'); return false;" value="Edit Thumbnail" />';
2530
  edit_slide_by = ' <a href="' + uploader_href_for_add_slide + '" class="wds_change_thumbnail thickbox thickbox-preview" title="Add/Edit Image" onclick="return false;"></a>';
2531
- 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>';
2532
  }
2533
  else {
2534
  slide_upload_by = ' <input id="button_image_url' + slideID + '" class="action_buttons edit_slide" type="button" value="Add/Edit Image" onclick="spider_media_uploader(\'' + slideID + '\', event); return false;" />';
2528
  slide_upload_by = ' <a href="' + uploader_href_for_add_slide + '" class="action_buttons edit_slide thickbox thickbox-preview" title="Add/Edit Image" onclick="return false;">Add/Edit Image</a>';
2529
  update_thumb_by = ' <input type="button" class="action_buttons edit_thumb wds_free_button" id="button_image_url' + slideID + '" onclick="alert(\'This functionality is disabled in free version.\'); return false;" value="Edit Thumbnail" />';
2530
  edit_slide_by = ' <a href="' + uploader_href_for_add_slide + '" class="wds_change_thumbnail thickbox thickbox-preview" title="Add/Edit Image" onclick="return false;"></a>';
2531
+ img_layer_upload_by = ' <a href="' + (!fv ? uploader_href_for_add_layer : "") + '" class="' + (!fv ? "" : "wds_free_button") + ' action_buttons add_image_layer button-small" title="Add Image Layer" onclick="' + (!fv ? "" : "alert('This functionality is disabled in free version.')") + '; return false;">Add Image Layer</a>';
2532
  }
2533
  else {
2534
  slide_upload_by = ' <input id="button_image_url' + slideID + '" class="action_buttons edit_slide" type="button" value="Add/Edit Image" onclick="spider_media_uploader(\'' + slideID + '\', event); return false;" />';
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.46
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -160,6 +160,12 @@ After downloading the ZIP file of the slider plugin,
160
 
161
  == Changelog ==
162
 
 
 
 
 
 
 
163
  = 1.1.46 =
164
  * Changed: Updated Font Awesome to 4.6.3 version.
165
  * Fixed: Slider margin responsiveness.
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.47
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.47 =
164
+ * Fixed: Case sensitive search by name in Filemanager bug.
165
+ * Changed: Show last uploaded files as first in Filemanager.
166
+ * Changed: File manager design.
167
+ * Fixed: Sliders duplicate.
168
+
169
  = 1.1.46 =
170
  * Changed: Updated Font Awesome to 4.6.3 version.
171
  * Fixed: Slider margin responsiveness.
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.46
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.46');
18
 
19
  function wds_use_home_url() {
20
  $home_url = str_replace("http://", "", home_url());
@@ -180,7 +180,7 @@ function wds_shortcode($params) {
180
  ob_start();
181
  wds_front_end($params['id']);
182
  if ( is_admin() ) {
183
- return ob_get_clean();
184
  }
185
  else {
186
  return str_replace(array("\r\n", "\n", "\r"), '', ob_get_clean());
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.47
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.47');
18
 
19
  function wds_use_home_url() {
20
  $home_url = str_replace("http://", "", home_url());
180
  ob_start();
181
  wds_front_end($params['id']);
182
  if ( is_admin() ) {
183
+ // return ob_get_clean();
184
  }
185
  else {
186
  return str_replace(array("\r\n", "\n", "\r"), '', ob_get_clean());
sliders-notices.php CHANGED
@@ -204,7 +204,7 @@ class WDS_Notices {
204
  $promo_close = add_query_arg(array($this->prefix . '_admin_notice_ignore' => 'new_year_promo'));
205
  $notices['new_year_promo'] = array(
206
  'title' => __('Hey! How\'s It Going?', $this->prefix),
207
- 'msg' => '<div class="hny" style="background-image: url(' . $this->plugin_url . '/images/wdhny.jpg);"><a href="' . $this->promo_link . '" target="_blank"></a></div>',
208
  'link' => '<li><span class="dashicons dashicons-dismiss"></span><a href="' . $promo_close . '">' . __('Never show again', $this->prefix) . '</a></li>',
209
  'start' => '2015-12-31',
210
  'end' => '2016-01-01',
204
  $promo_close = add_query_arg(array($this->prefix . '_admin_notice_ignore' => 'new_year_promo'));
205
  $notices['new_year_promo'] = array(
206
  'title' => __('Hey! How\'s It Going?', $this->prefix),
207
+ 'msg' => '<div class="hny" style=""><a href="' . $this->promo_link . '" target="_blank"></a></div>',
208
  'link' => '<li><span class="dashicons dashicons-dismiss"></span><a href="' . $promo_close . '">' . __('Never show again', $this->prefix) . '</a></li>',
209
  'start' => '2015-12-31',
210
  'end' => '2016-01-01',