Slider by WD – Responsive Slider - Version 1.0.32

Version Description

Added: Option for mouse swipe navigation.

Download this release

Release Info

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

Code changes from version 1.0.30 to 1.0.32

admin/controllers/WDSControllerSliders_wds.php CHANGED
@@ -188,286 +188,108 @@ class WDSControllerSliders_wds {
188
  $carousel_fit_containerWidth = 0;
189
  $carousel_width = 1000;
190
  $parallax_effect = 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
191
 
192
  if (!$slider_id) {
193
- $save = $wpdb->insert($wpdb->prefix . 'wdsslider', array(
194
- 'name' => $name,
195
- 'published' => $published,
196
- 'full_width' => $full_width,
197
- 'width' => $width,
198
- 'height' => $height,
199
- 'bg_fit' => $bg_fit,
200
- 'align' => $align,
201
- 'effect' => $effect,
202
- 'time_intervval' => $time_intervval,
203
- 'autoplay' => $autoplay,
204
- 'shuffle' => $shuffle,
205
- 'music' => $music,
206
- 'music_url' => $music_url,
207
- 'preload_images' => $preload_images,
208
- 'background_color' => $background_color,
209
- 'background_transparent' => $background_transparent,
210
- 'glb_border_width' => $glb_border_width,
211
- 'glb_border_style' => $glb_border_style,
212
- 'glb_border_color' => $glb_border_color,
213
- 'glb_border_radius' => $glb_border_radius,
214
- 'glb_margin' => $glb_margin,
215
- 'glb_box_shadow' => $glb_box_shadow,
216
- 'image_right_click' => $image_right_click,
217
- 'prev_next_butt' => $prev_next_butt,
218
- 'play_paus_butt' => $play_paus_butt,
219
- 'navigation' => $navigation,
220
- 'rl_butt_style' => $rl_butt_style,
221
- 'rl_butt_size' => $rl_butt_size,
222
- 'pp_butt_size' => $pp_butt_size,
223
- 'butts_color' => $butts_color,
224
- 'butts_transparent' => $butts_transparent,
225
- 'hover_color' => $hover_color,
226
- 'nav_border_width' => $nav_border_width,
227
- 'nav_border_style' => $nav_border_style,
228
- 'nav_border_color' => $nav_border_color,
229
- 'nav_border_radius' => $nav_border_radius,
230
- 'nav_bg_color' => $nav_bg_color,
231
- 'bull_position' => $bull_position,
232
- 'bull_style' => $bull_style,
233
- 'bull_size' => $bull_size,
234
- 'bull_color' => $bull_color,
235
- 'bull_act_color' => $bull_act_color,
236
- 'bull_margin' => $bull_margin,
237
- 'film_pos' => $film_pos,
238
- 'film_thumb_width' => $film_thumb_width,
239
- 'film_thumb_height' => $film_thumb_height,
240
- 'film_bg_color' => $film_bg_color,
241
- 'film_tmb_margin' => $film_tmb_margin,
242
- 'film_act_border_width' => $film_act_border_width,
243
- 'film_act_border_style' => $film_act_border_style,
244
- 'film_act_border_color' => $film_act_border_color,
245
- 'film_dac_transparent' => $film_dac_transparent,
246
- 'built_in_watermark_type' => $built_in_watermark_type,
247
- 'built_in_watermark_position' => $built_in_watermark_position,
248
- 'built_in_watermark_size' => $built_in_watermark_size,
249
- 'built_in_watermark_url' => $built_in_watermark_url,
250
- 'built_in_watermark_text' => $built_in_watermark_text,
251
- 'built_in_watermark_opacity' => $built_in_watermark_opacity,
252
- 'built_in_watermark_font_size' => $built_in_watermark_font_size,
253
- 'built_in_watermark_font' => $built_in_watermark_font,
254
- 'built_in_watermark_color' => $built_in_watermark_color,
255
- 'css' => $css,
256
- 'timer_bar_type' => $timer_bar_type,
257
- 'timer_bar_size' => $timer_bar_size,
258
- 'timer_bar_color' => $timer_bar_color,
259
- 'timer_bar_transparent' => $timer_bar_transparent,
260
- 'layer_out_next' => $layer_out_next,
261
- 'spider_uploader' => $spider_uploader,
262
- 'stop_animation' => $stop_animation,
263
- 'right_butt_url' => $right_butt_url,
264
- 'left_butt_url' => $left_butt_url,
265
- 'right_butt_hov_url' => $right_butt_hov_url,
266
- 'left_butt_hov_url' => $left_butt_hov_url,
267
- 'rl_butt_img_or_not' => $rl_butt_img_or_not,
268
- 'bullets_img_main_url' => $bullets_img_main_url,
269
- 'bullets_img_hov_url' => $bullets_img_hov_url,
270
- 'bull_butt_img_or_not' => $bull_butt_img_or_not,
271
- 'play_paus_butt_img_or_not' => $play_paus_butt_img_or_not,
272
- 'play_butt_url' => $play_butt_url,
273
- 'play_butt_hov_url' => $play_butt_hov_url,
274
- 'paus_butt_url' => $paus_butt_url,
275
- 'paus_butt_hov_url' => $paus_butt_hov_url,
276
- 'start_slide_num' => $start_slide_num,
277
- 'effect_duration' => $effect_duration,
278
- 'carousel' => $carousel,
279
- 'carousel_image_counts' => $carousel_image_counts,
280
- 'carousel_image_parameters' => $carousel_image_parameters,
281
- 'carousel_fit_containerWidth' => $carousel_fit_containerWidth,
282
- 'carousel_width' => $carousel_width,
283
- 'parallax_effect' => $parallax_effect,
284
- ), array(
285
- '%s',
286
- '%d',
287
- '%d',
288
- '%d',
289
- '%d',
290
- '%s',
291
- '%s',
292
- '%s',
293
- '%d',
294
- '%d',
295
- '%d',
296
- '%d',
297
- '%s',
298
- '%d',
299
- '%s',
300
- '%d',
301
- '%d',
302
- '%s',
303
- '%s',
304
- '%s',
305
- '%d',
306
- '%s',
307
- '%d',
308
- '%d',
309
- '%d',
310
- '%s',
311
- '%s',
312
- '%d',
313
- '%d',
314
- '%s',
315
- '%d',
316
- '%s',
317
- '%d',
318
- '%s',
319
- '%s',
320
- '%s',
321
- '%s',
322
- '%s',
323
- '%s',
324
- '%d',
325
- '%s',
326
- '%s',
327
- '%d',
328
- '%s',
329
- '%d',
330
- '%d',
331
- '%s',
332
- '%d',
333
- '%d',
334
- '%s',
335
- '%s',
336
- '%d',
337
- '%s',
338
- '%s',
339
- '%s',
340
- '%s',
341
- '%s',
342
- '%s',
343
- '%s',
344
- '%s',
345
- '%s',
346
- '%s',
347
- '%s',
348
- '%d',
349
- '%s',
350
- '%d',
351
- '%d',
352
- '%d',
353
- '%d',
354
- '%s',
355
- '%s',
356
- '%s',
357
- '%s',
358
- '%s',
359
- '%s',
360
- '%s',
361
- '%s',
362
- '%s',
363
- '%s',
364
- '%s',
365
- '%s',
366
- '%s',
367
- '%d',
368
- '%d',
369
- '%d',
370
- '%d',
371
- '%s',
372
- '%d',
373
- '%d',
374
- '%d',
375
- ));
376
- $_POST['current_id'] = (int) $wpdb->get_var('SELECT MAX(`id`) FROM ' . $wpdb->prefix . 'wdsslider');
377
  }
378
  else {
379
- $save = $wpdb->update($wpdb->prefix . 'wdsslider', array(
380
- 'name' => $name,
381
- 'published' => $published,
382
- 'full_width' => $full_width,
383
- 'width' => $width,
384
- 'height' => $height,
385
- 'bg_fit' => $bg_fit,
386
- 'align' => $align,
387
- 'effect' => $effect,
388
- 'time_intervval' => $time_intervval,
389
- 'autoplay' => $autoplay,
390
- 'shuffle' => $shuffle,
391
- 'music' => $music,
392
- 'music_url' => $music_url,
393
- 'preload_images' => $preload_images,
394
- 'background_color' => $background_color,
395
- 'background_transparent' => $background_transparent,
396
- 'glb_border_width' => $glb_border_width,
397
- 'glb_border_style' => $glb_border_style,
398
- 'glb_border_color' => $glb_border_color,
399
- 'glb_border_radius' => $glb_border_radius,
400
- 'glb_margin' => $glb_margin,
401
- 'glb_box_shadow' => $glb_box_shadow,
402
- 'image_right_click' => $image_right_click,
403
- 'prev_next_butt' => $prev_next_butt,
404
- 'play_paus_butt' => $play_paus_butt,
405
- 'navigation' => $navigation,
406
- 'rl_butt_style' => $rl_butt_style,
407
- 'rl_butt_size' => $rl_butt_size,
408
- 'pp_butt_size' => $pp_butt_size,
409
- 'butts_color' => $butts_color,
410
- 'butts_transparent' => $butts_transparent,
411
- 'hover_color' => $hover_color,
412
- 'nav_border_width' => $nav_border_width,
413
- 'nav_border_style' => $nav_border_style,
414
- 'nav_border_color' => $nav_border_color,
415
- 'nav_border_radius' => $nav_border_radius,
416
- 'nav_bg_color' => $nav_bg_color,
417
- 'bull_position' => $bull_position,
418
- 'bull_style' => $bull_style,
419
- 'bull_size' => $bull_size,
420
- 'bull_color' => $bull_color,
421
- 'bull_act_color' => $bull_act_color,
422
- 'bull_margin' => $bull_margin,
423
- 'film_pos' => $film_pos,
424
- 'film_thumb_width' => $film_thumb_width,
425
- 'film_thumb_height' => $film_thumb_height,
426
- 'film_bg_color' => $film_bg_color,
427
- 'film_tmb_margin' => $film_tmb_margin,
428
- 'film_act_border_width' => $film_act_border_width,
429
- 'film_act_border_style' => $film_act_border_style,
430
- 'film_act_border_color' => $film_act_border_color,
431
- 'film_dac_transparent' => $film_dac_transparent,
432
- 'built_in_watermark_type' => $built_in_watermark_type,
433
- 'built_in_watermark_position' => $built_in_watermark_position,
434
- 'built_in_watermark_size' => $built_in_watermark_size,
435
- 'built_in_watermark_url' => $built_in_watermark_url,
436
- 'built_in_watermark_text' => $built_in_watermark_text,
437
- 'built_in_watermark_opacity' => $built_in_watermark_opacity,
438
- 'built_in_watermark_font_size' => $built_in_watermark_font_size,
439
- 'built_in_watermark_font' => $built_in_watermark_font,
440
- 'built_in_watermark_color' => $built_in_watermark_color,
441
- 'css' => $css,
442
- 'timer_bar_type' => $timer_bar_type,
443
- 'timer_bar_size' => $timer_bar_size,
444
- 'timer_bar_color' => $timer_bar_color,
445
- 'timer_bar_transparent' => $timer_bar_transparent,
446
- 'layer_out_next' => $layer_out_next,
447
- 'spider_uploader' => $spider_uploader,
448
- 'stop_animation' => $stop_animation,
449
- 'right_butt_url' => $right_butt_url,
450
- 'left_butt_url' => $left_butt_url,
451
- 'right_butt_hov_url' => $right_butt_hov_url,
452
- 'left_butt_hov_url' => $left_butt_hov_url,
453
- 'rl_butt_img_or_not' => $rl_butt_img_or_not,
454
- 'bullets_img_main_url' => $bullets_img_main_url,
455
- 'bullets_img_hov_url' => $bullets_img_hov_url,
456
- 'bull_butt_img_or_not' => $bull_butt_img_or_not,
457
- 'play_paus_butt_img_or_not' => $play_paus_butt_img_or_not,
458
- 'play_butt_url' => $play_butt_url,
459
- 'play_butt_hov_url' => $play_butt_hov_url,
460
- 'paus_butt_url' => $paus_butt_url,
461
- 'paus_butt_hov_url' => $paus_butt_hov_url,
462
- 'start_slide_num' => $start_slide_num,
463
- 'effect_duration' => $effect_duration,
464
- 'carousel' => $carousel,
465
- 'carousel_image_counts' => $carousel_image_counts,
466
- 'carousel_image_parameters' => $carousel_image_parameters,
467
- 'carousel_fit_containerWidth' => $carousel_fit_containerWidth,
468
- 'carousel_width' => $carousel_width,
469
- 'parallax_effect' => $parallax_effect,
470
- ), array('id' => $slider_id));
471
  }
472
  if ($save !== FALSE) {
473
  return 1;
188
  $carousel_fit_containerWidth = 0;
189
  $carousel_width = 1000;
190
  $parallax_effect = 0;
191
+ $mouse_swipe_nav = ((isset($_POST['mouse_swipe_nav'])) ? (int) esc_html(stripslashes($_POST['mouse_swipe_nav'])) : 0);
192
+
193
+ $data = array(
194
+ 'name' => $name,
195
+ 'published' => $published,
196
+ 'full_width' => $full_width,
197
+ 'width' => $width,
198
+ 'height' => $height,
199
+ 'bg_fit' => $bg_fit,
200
+ 'align' => $align,
201
+ 'effect' => $effect,
202
+ 'time_intervval' => $time_intervval,
203
+ 'autoplay' => $autoplay,
204
+ 'shuffle' => $shuffle,
205
+ 'music' => $music,
206
+ 'music_url' => $music_url,
207
+ 'preload_images' => $preload_images,
208
+ 'background_color' => $background_color,
209
+ 'background_transparent' => $background_transparent,
210
+ 'glb_border_width' => $glb_border_width,
211
+ 'glb_border_style' => $glb_border_style,
212
+ 'glb_border_color' => $glb_border_color,
213
+ 'glb_border_radius' => $glb_border_radius,
214
+ 'glb_margin' => $glb_margin,
215
+ 'glb_box_shadow' => $glb_box_shadow,
216
+ 'image_right_click' => $image_right_click,
217
+ 'prev_next_butt' => $prev_next_butt,
218
+ 'play_paus_butt' => $play_paus_butt,
219
+ 'navigation' => $navigation,
220
+ 'rl_butt_style' => $rl_butt_style,
221
+ 'rl_butt_size' => $rl_butt_size,
222
+ 'pp_butt_size' => $pp_butt_size,
223
+ 'butts_color' => $butts_color,
224
+ 'butts_transparent' => $butts_transparent,
225
+ 'hover_color' => $hover_color,
226
+ 'nav_border_width' => $nav_border_width,
227
+ 'nav_border_style' => $nav_border_style,
228
+ 'nav_border_color' => $nav_border_color,
229
+ 'nav_border_radius' => $nav_border_radius,
230
+ 'nav_bg_color' => $nav_bg_color,
231
+ 'bull_position' => $bull_position,
232
+ 'bull_style' => $bull_style,
233
+ 'bull_size' => $bull_size,
234
+ 'bull_color' => $bull_color,
235
+ 'bull_act_color' => $bull_act_color,
236
+ 'bull_margin' => $bull_margin,
237
+ 'film_pos' => $film_pos,
238
+ 'film_thumb_width' => $film_thumb_width,
239
+ 'film_thumb_height' => $film_thumb_height,
240
+ 'film_bg_color' => $film_bg_color,
241
+ 'film_tmb_margin' => $film_tmb_margin,
242
+ 'film_act_border_width' => $film_act_border_width,
243
+ 'film_act_border_style' => $film_act_border_style,
244
+ 'film_act_border_color' => $film_act_border_color,
245
+ 'film_dac_transparent' => $film_dac_transparent,
246
+ 'built_in_watermark_type' => $built_in_watermark_type,
247
+ 'built_in_watermark_position' => $built_in_watermark_position,
248
+ 'built_in_watermark_size' => $built_in_watermark_size,
249
+ 'built_in_watermark_url' => $built_in_watermark_url,
250
+ 'built_in_watermark_text' => $built_in_watermark_text,
251
+ 'built_in_watermark_opacity' => $built_in_watermark_opacity,
252
+ 'built_in_watermark_font_size' => $built_in_watermark_font_size,
253
+ 'built_in_watermark_font' => $built_in_watermark_font,
254
+ 'built_in_watermark_color' => $built_in_watermark_color,
255
+ 'css' => $css,
256
+ 'timer_bar_type' => $timer_bar_type,
257
+ 'timer_bar_size' => $timer_bar_size,
258
+ 'timer_bar_color' => $timer_bar_color,
259
+ 'timer_bar_transparent' => $timer_bar_transparent,
260
+ 'layer_out_next' => $layer_out_next,
261
+ 'spider_uploader' => $spider_uploader,
262
+ 'stop_animation' => $stop_animation,
263
+ 'right_butt_url' => $right_butt_url,
264
+ 'left_butt_url' => $left_butt_url,
265
+ 'right_butt_hov_url' => $right_butt_hov_url,
266
+ 'left_butt_hov_url' => $left_butt_hov_url,
267
+ 'rl_butt_img_or_not' => $rl_butt_img_or_not,
268
+ 'bullets_img_main_url' => $bullets_img_main_url,
269
+ 'bullets_img_hov_url' => $bullets_img_hov_url,
270
+ 'bull_butt_img_or_not' => $bull_butt_img_or_not,
271
+ 'play_paus_butt_img_or_not' => $play_paus_butt_img_or_not,
272
+ 'play_butt_url' => $play_butt_url,
273
+ 'play_butt_hov_url' => $play_butt_hov_url,
274
+ 'paus_butt_url' => $paus_butt_url,
275
+ 'paus_butt_hov_url' => $paus_butt_hov_url,
276
+ 'start_slide_num' => $start_slide_num,
277
+ 'effect_duration' => $effect_duration,
278
+ 'carousel' => $carousel,
279
+ 'carousel_image_counts' => $carousel_image_counts,
280
+ 'carousel_image_parameters' => $carousel_image_parameters,
281
+ 'carousel_fit_containerWidth' => $carousel_fit_containerWidth,
282
+ 'carousel_width' => $carousel_width,
283
+ 'parallax_effect' => $parallax_effect,
284
+ 'mouse_swipe_nav' => $mouse_swipe_nav,
285
+ );
286
 
287
  if (!$slider_id) {
288
+ $save = $wpdb->insert($wpdb->prefix . 'wdsslider', $data);
289
+ $_POST['current_id'] = (int) $wpdb->insert_id;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
290
  }
291
  else {
292
+ $save = $wpdb->update($wpdb->prefix . 'wdsslider', $data, array('id' => $slider_id));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
293
  }
294
  if ($save !== FALSE) {
295
  return 1;
admin/models/WDSModelSliders_wds.php CHANGED
@@ -199,6 +199,7 @@ class WDSModelSliders_wds {
199
  $row->carousel_fit_containerWidth = 0;
200
  $row->carousel_width = 1000;
201
  $row->parallax_effect = 0;
 
202
  }
203
  return $row;
204
  }
199
  $row->carousel_fit_containerWidth = 0;
200
  $row->carousel_width = 1000;
201
  $row->parallax_effect = 0;
202
+ $row->mouse_swipe_nav = 0;
203
  }
204
  return $row;
205
  }
admin/views/WDSViewSliders_wds.php CHANGED
@@ -741,7 +741,17 @@ class WDSViewSliders_wds {
741
  <input type="radio" name="prev_next_butt" id="prev_next_butt_0" value="0" <?php if (!$row->prev_next_butt) echo 'checked="checked"'; ?> /><label for="prev_next_butt_0">No</label>
742
  <div class="spider_description">Choose whether to display Previous and Next buttons or not.</div>
743
  </td>
744
- </tr>
 
 
 
 
 
 
 
 
 
 
745
  <tr>
746
  <td class="spider_label_options">
747
  <label>Show Navigation buttons: </label>
741
  <input type="radio" name="prev_next_butt" id="prev_next_butt_0" value="0" <?php if (!$row->prev_next_butt) echo 'checked="checked"'; ?> /><label for="prev_next_butt_0">No</label>
742
  <div class="spider_description">Choose whether to display Previous and Next buttons or not.</div>
743
  </td>
744
+ </tr>
745
+ <tr>
746
+ <td class="spider_label_options">
747
+ <label>Mouse swipe navigation: </label>
748
+ </td>
749
+ <td>
750
+ <input type="radio" name="mouse_swipe_nav" id="mouse_swipe_nav_1" value="1" <?php if ($row->mouse_swipe_nav) echo 'checked="checked"'; ?> /><label for="mouse_swipe_nav_1">Yes</label>
751
+ <input type="radio" name="mouse_swipe_nav" id="mouse_swipe_nav_0" value="0" <?php if (!$row->mouse_swipe_nav) echo 'checked="checked"'; ?> /><label for="mouse_swipe_nav_0">No</label>
752
+ <div class="spider_description">Choose whether to display Previous and Next buttons or not.</div>
753
+ </td>
754
+ </tr>
755
  <tr>
756
  <td class="spider_label_options">
757
  <label>Show Navigation buttons: </label>
demo_sliders/images/2.png CHANGED
Binary file
frontend/views/WDSViewSlider.php CHANGED
@@ -57,6 +57,7 @@ class WDSViewSlider {
57
 
58
  $enable_slideshow_shuffle = $slider_row->shuffle;
59
  $enable_prev_next_butt = $slider_row->prev_next_butt;
 
60
  $enable_play_paus_butt = $slider_row->play_paus_butt;
61
  if (!$enable_prev_next_butt && !$enable_play_paus_butt) {
62
  $enable_slideshow_autoplay = 1;
@@ -418,6 +419,14 @@ class WDSViewSlider {
418
  width: 100%;
419
  height: 100%;
420
  overflow: hidden;
 
 
 
 
 
 
 
 
421
  }
422
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_slide_bg_<?php echo $wds; ?> {
423
  margin: 0 auto;
@@ -1679,7 +1688,9 @@ class WDSViewSlider {
1679
  <?php
1680
  }
1681
  ?>
1682
- if (<?php echo $enable_prev_next_butt; ?>) {
 
 
1683
  if (typeof jQuery().swiperight !== 'undefined') {
1684
  if (jQuery.isFunction(jQuery().swiperight)) {
1685
  jQuery('#wds_container1_<?php echo $wds; ?>').swiperight(function () {
@@ -1698,7 +1709,6 @@ class WDSViewSlider {
1698
  }
1699
  }
1700
 
1701
- var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
1702
  var wds_click = isMobile ? 'touchend' : 'click';
1703
 
1704
  var mousewheelevt = (/Firefox/i.test(navigator.userAgent)) ? "DOMMouseScroll" : "mousewheel"; /* FF doesn't recognize mousewheel as of FF3.x */
57
 
58
  $enable_slideshow_shuffle = $slider_row->shuffle;
59
  $enable_prev_next_butt = $slider_row->prev_next_butt;
60
+ $mouse_swipe_nav = isset($slider_row->mouse_swipe_nav) ? $slider_row->mouse_swipe_nav : 0;
61
  $enable_play_paus_butt = $slider_row->play_paus_butt;
62
  if (!$enable_prev_next_butt && !$enable_play_paus_butt) {
63
  $enable_slideshow_autoplay = 1;
419
  width: 100%;
420
  height: 100%;
421
  overflow: hidden;
422
+ cursor: <?php echo $mouse_swipe_nav ? '-moz-grab' : 'inherit'; ?>;
423
+ cursor: <?php echo $mouse_swipe_nav ? '-webkit-grab' : 'inherit'; ?>;
424
+ cursor: <?php echo $mouse_swipe_nav ? 'grab' : 'inherit'; ?>;
425
+ }
426
+ #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_slide_container_<?php echo $wds; ?>:active {
427
+ cursor: <?php echo $mouse_swipe_nav ? '-moz-grabbing' : 'inherit'; ?>;
428
+ cursor: <?php echo $mouse_swipe_nav ? '-webkit-grabbing' : 'inherit'; ?>;
429
+ cursor: <?php echo $mouse_swipe_nav ? 'grabbing' : 'inherit'; ?>;
430
  }
431
  #wds_container1_<?php echo $wds; ?> #wds_container2_<?php echo $wds; ?> .wds_slide_bg_<?php echo $wds; ?> {
432
  margin: 0 auto;
1688
  <?php
1689
  }
1690
  ?>
1691
+ var isMobile = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()));
1692
+
1693
+ if (<?php echo $mouse_swipe_nav; ?> || isMobile) {
1694
  if (typeof jQuery().swiperight !== 'undefined') {
1695
  if (jQuery.isFunction(jQuery().swiperight)) {
1696
  jQuery('#wds_container1_<?php echo $wds; ?>').swiperight(function () {
1709
  }
1710
  }
1711
 
 
1712
  var wds_click = isMobile ? 'touchend' : 'click';
1713
 
1714
  var mousewheelevt = (/Firefox/i.test(navigator.userAgent)) ? "DOMMouseScroll" : "mousewheel"; /* FF doesn't recognize mousewheel as of FF3.x */
js/wds.js CHANGED
@@ -115,6 +115,7 @@ function spider_ajax_save(form_id, event) {
115
  post_data["built_in_watermark_size"] = jQuery("#built_in_watermark_size").val();
116
 
117
  post_data["spider_uploader"] = jQuery("input[name=spider_uploader]:checked").val();
 
118
 
119
  /* Css.*/
120
  post_data["css"] = jQuery("#css").val();
115
  post_data["built_in_watermark_size"] = jQuery("#built_in_watermark_size").val();
116
 
117
  post_data["spider_uploader"] = jQuery("input[name=spider_uploader]:checked").val();
118
+ post_data["mouse_swipe_nav"] = jQuery("input[name=mouse_swipe_nav]:checked").val();
119
 
120
  /* Css.*/
121
  post_data["css"] = jQuery("#css").val();
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.30
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -142,6 +142,9 @@ After downloading the ZIP file of the slider plugin,
142
 
143
  == Changelog ==
144
 
 
 
 
145
  = 1.0.30 =
146
  Fixed: Removed editor button from hotspot layer.
147
  Added: Demo sliders page.
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.32
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
142
 
143
  == Changelog ==
144
 
145
+ = 1.0.32 =
146
+ Added: Option for mouse swipe navigation.
147
+
148
  = 1.0.30 =
149
  Fixed: Removed editor button from hotspot layer.
150
  Added: Demo sliders page.
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.30
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -369,6 +369,7 @@ function wds_activate() {
369
  'carousel_fit_containerWidth' => 0,
370
  'carousel_width' => 1000,
371
  'parallax_effect' => 0,
 
372
  )
373
  );
374
  }
@@ -382,7 +383,7 @@ register_activation_hook(__FILE__, 'wds_activate');
382
 
383
  function wds_install() {
384
  $version = get_option("wds_version");
385
- $new_version = '1.0.30';
386
  if ($version && version_compare($version, $new_version, '<')) {
387
  require_once WD_S_DIR . "/sliders-update.php";
388
  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.32
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
369
  'carousel_fit_containerWidth' => 0,
370
  'carousel_width' => 1000,
371
  'parallax_effect' => 0,
372
+ 'mouse_swipe_nav' => 0,
373
  )
374
  );
375
  }
383
 
384
  function wds_install() {
385
  $version = get_option("wds_version");
386
+ $new_version = '1.0.32';
387
  if ($version && version_compare($version, $new_version, '<')) {
388
  require_once WD_S_DIR . "/sliders-update.php";
389
  wds_update($version);
sliders-insert.php CHANGED
@@ -94,6 +94,7 @@ function wds_insert() {
94
  `carousel_fit_containerWidth` tinyint(1) NOT NULL,
95
  `carousel_width` int(4) NOT NULL,
96
  `parallax_effect` tinyint(1) NOT NULL,
 
97
  PRIMARY KEY (`id`)
98
  ) DEFAULT CHARSET=utf8;";
99
  $wpdb->query($wdsslider);
94
  `carousel_fit_containerWidth` tinyint(1) NOT NULL,
95
  `carousel_width` int(4) NOT NULL,
96
  `parallax_effect` tinyint(1) NOT NULL,
97
+ `mouse_swipe_nav` tinyint(1) NOT NULL,
98
  PRIMARY KEY (`id`)
99
  ) DEFAULT CHARSET=utf8;";
100
  $wpdb->query($wdsslider);
sliders-update.php CHANGED
@@ -65,6 +65,10 @@ function wds_update($version) {
65
  // Parallax_effect.
66
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `parallax_effect` tinyint(1) NOT NULL DEFAULT 0");
67
  }
 
 
 
 
68
  return;
69
  }
70
 
65
  // Parallax_effect.
66
  $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `parallax_effect` tinyint(1) NOT NULL DEFAULT 0");
67
  }
68
+ if (version_compare($version, '1.0.32') == -1) {
69
+ // Mouse swipe navigation.
70
+ $wpdb->query("ALTER TABLE " . $wpdb->prefix . "wdsslider ADD `mouse_swipe_nav` tinyint(1) NOT NULL DEFAULT 0");
71
+ }
72
  return;
73
  }
74