Slider by WD – Responsive Slider - Version 1.2.23

Version Description

  • Fixed: Security issue.
Download this release

Release Info

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

Code changes from version 1.2.22 to 1.2.23

admin/controllers/Sliders.php CHANGED
@@ -361,147 +361,147 @@ class SlidersController_wds {
361
  $slider_id = (isset($_POST['current_id']) ? (int) $_POST['current_id'] : $id);
362
  $slider_data = (isset($_POST['slider_data']) ? stripslashes($_POST['slider_data']) : '');
363
  $params_array = json_decode($slider_data, TRUE);
364
- $del_slide_ids_string = (isset($params_array['del_slide_ids_string']) ? substr(esc_html(stripslashes($params_array['del_slide_ids_string'])), 0, -1) : '');
365
  if ($del_slide_ids_string) {
366
  $wpdb->query('DELETE FROM ' . $wpdb->prefix . 'wdsslide WHERE slider_id=' . $slider_id . ' AND id IN (' . $del_slide_ids_string . ')');
367
  }
368
- $name = ((isset($params_array['name'])) ? esc_html(stripslashes($params_array['name'])) : '');
369
- $published = ((isset($params_array['published'])) ? (int) esc_html(stripslashes($params_array['published'])) : 1);
370
- $full_width = ((isset($params_array['full_width'])) ? (int) esc_html(stripslashes($params_array['full_width'])) : 0);
371
- $auto_height = ((isset($params_array['auto_height'])) ? (int) esc_html(stripslashes($params_array['auto_height'])) : 0);
372
- $width = ((isset($params_array['width'])) ? (int) esc_html(stripslashes($params_array['width'])) : 900);
373
- $height = ((isset($params_array['height'])) ? (int) esc_html((stripslashes($params_array['height']))) : 400);
374
- $align = ((isset($params_array['align'])) ? esc_html(stripslashes($params_array['align'])) : 'center');
375
- $effect = ((isset($params_array['effect'])) ? esc_html(stripslashes($params_array['effect'])) : 'fade');
376
- $time_intervval = ((isset($params_array['time_intervval'])) ? (int) esc_html(stripslashes($params_array['time_intervval'])) : 5);
377
- $autoplay = ((isset($params_array['autoplay'])) ? (int) esc_html(stripslashes($params_array['autoplay'])) : 1);
378
- $shuffle = ((isset($params_array['shuffle'])) ? (int) esc_html(stripslashes($params_array['shuffle'])) : 0);
379
- $music = ((isset($params_array['music'])) ? (int) esc_html(stripslashes($params_array['music'])) : 0);
380
  if ( isset($params_array['music_url']) && WDW_S_Library::validate_audio_file($params_array['music_url']) ) {
381
- $music_url = esc_html(stripslashes($params_array['music_url']));
382
  $music_url = str_replace(site_url(), '{site_url}', $music_url);
383
  }
384
  else {
385
  $music_url = '';
386
  }
387
- $preload_images = ((isset($params_array['preload_images'])) ? (int) esc_html(stripslashes($params_array['preload_images'])) : 1);
388
- $background_color = ((isset($params_array['background_color'])) ? esc_html(stripslashes($params_array['background_color'])) : '000000');
389
- $background_transparent = ((isset($params_array['background_transparent'])) ? (int) esc_html(stripslashes($params_array['background_transparent'])) : 100);
390
- $glb_border_width = ((isset($params_array['glb_border_width'])) ? (int) esc_html(stripslashes($params_array['glb_border_width'])) : 0);
391
- $glb_border_style = ((isset($params_array['glb_border_style'])) ? esc_html(stripslashes($params_array['glb_border_style'])) : 'none');
392
- $glb_border_color = ((isset($params_array['glb_border_color'])) ? esc_html(stripslashes($params_array['glb_border_color'])) : '000000');
393
- $glb_border_radius = ((isset($params_array['glb_border_radius'])) ? esc_html(stripslashes($params_array['glb_border_radius'])) : '');
394
- $glb_margin = ((isset($params_array['glb_margin'])) ? (int) esc_html(stripslashes($params_array['glb_margin'])) : 0);
395
- $glb_box_shadow = ((isset($params_array['glb_box_shadow'])) ? esc_html(stripslashes($params_array['glb_box_shadow'])) : '');
396
- $image_right_click = ((isset($params_array['image_right_click'])) ? (int) esc_html(stripslashes($params_array['image_right_click'])) : 0);
397
- $layer_out_next = ((isset($params_array['layer_out_next'])) ? (int) esc_html(stripslashes($params_array['layer_out_next'])) : 0);
398
- $prev_next_butt = ((isset($params_array['prev_next_butt'])) ? (int) esc_html(stripslashes($params_array['prev_next_butt'])) : 1);
399
- $play_paus_butt = ((isset($params_array['play_paus_butt'])) ? (int) esc_html(stripslashes($params_array['play_paus_butt'])) : 0);
400
- $navigation = ((isset($params_array['navigation'])) ? esc_html(stripslashes($params_array['navigation'])) : 'hover');
401
- $rl_butt_style = ((isset($params_array['rl_butt_style'])) ? esc_html(stripslashes($params_array['rl_butt_style'])) : 'fa-angle');
402
- $rl_butt_size = ((isset($params_array['rl_butt_size'])) ? (int) esc_html(stripslashes($params_array['rl_butt_size'])) : 40);
403
- $pp_butt_size = ((isset($params_array['pp_butt_size'])) ? (int) esc_html(stripslashes($params_array['pp_butt_size'])) : 40);
404
- $butts_color = ((isset($params_array['butts_color'])) ? esc_html(stripslashes($params_array['butts_color'])) : '000000');
405
- $butts_transparent = ((isset($params_array['butts_transparent'])) ? (int) esc_html(stripslashes($params_array['butts_transparent'])) : 100);
406
- $hover_color = ((isset($params_array['hover_color'])) ? esc_html(stripslashes($params_array['hover_color'])) : 'FFFFFF');
407
- $nav_border_width = ((isset($params_array['nav_border_width'])) ? (int) esc_html(stripslashes($params_array['nav_border_width'])) : 0);
408
- $nav_border_style = ((isset($params_array['nav_border_style'])) ? esc_html(stripslashes($params_array['nav_border_style'])) : 'none');
409
- $nav_border_color = ((isset($params_array['nav_border_color'])) ? esc_html(stripslashes($params_array['nav_border_color'])) : 'FFFFFF');
410
- $nav_border_radius = ((isset($params_array['nav_border_radius'])) ? esc_html(stripslashes($params_array['nav_border_radius'])) : '20px');
411
- $nav_bg_color = ((isset($params_array['nav_bg_color'])) ? esc_html(stripslashes($params_array['nav_bg_color'])) : 'FFFFFF');
412
- $bull_position = ((isset($params_array['bull_position'])) ? esc_html(stripslashes($params_array['bull_position'])) : 'bottom');
413
- if (isset($params_array['enable_bullets']) && (esc_html(stripslashes($params_array['enable_bullets'])) == 0)) {
414
  $bull_position = 'none';
415
  }
416
- $bull_style = ((isset($params_array['bull_style']) && $allow) ? esc_html(stripslashes($params_array['bull_style'])) : 'fa-square-o');
417
- $bull_size = ((isset($params_array['bull_size']) && $allow) ? (int) esc_html(stripslashes($params_array['bull_size'])) : 20);
418
- $bull_color = ((isset($params_array['bull_color']) && $allow) ? esc_html(stripslashes($params_array['bull_color'])) : 'FFFFFF');
419
- $bull_act_color = ((isset($params_array['bull_act_color']) && $allow) ? esc_html(stripslashes($params_array['bull_act_color'])) : 'FFFFFF');
420
- $bull_margin = ((isset($params_array['bull_margin']) && $allow) ? (int) esc_html(stripslashes($params_array['bull_margin'])) : 3);
421
- $film_pos = ((isset($params_array['film_pos'])) ? esc_html(stripslashes($params_array['film_pos'])) : 'none');
422
- if (isset($params_array['enable_filmstrip']) && (esc_html(stripslashes($params_array['enable_filmstrip'])) == 0)) {
423
  $film_pos = 'none';
424
  }
425
- $film_thumb_width = ((isset($params_array['film_thumb_width'])) ? (int) esc_html(stripslashes($params_array['film_thumb_width'])) : 100);
426
- $film_thumb_height = ((isset($params_array['film_thumb_height'])) ? (int) esc_html(stripslashes($params_array['film_thumb_height'])) : 50);
427
- $film_bg_color = ((isset($params_array['film_bg_color'])) ? esc_html(stripslashes($params_array['film_bg_color'])) : '000000');
428
- $film_tmb_margin = ((isset($params_array['film_tmb_margin'])) ? (int) esc_html(stripslashes($params_array['film_tmb_margin'])) : 0);
429
- $film_act_border_width = ((isset($params_array['film_act_border_width'])) ? (int) esc_html(stripslashes($params_array['film_act_border_width'])) : 0);
430
- $film_act_border_style = ((isset($params_array['film_act_border_style'])) ? esc_html(stripslashes($params_array['film_act_border_style'])) : 'none');
431
- $film_act_border_color = ((isset($params_array['film_act_border_color'])) ? esc_html(stripslashes($params_array['film_act_border_color'])) : 'FFFFFF');
432
- $film_dac_transparent = ((isset($params_array['film_dac_transparent'])) ? (int) esc_html(stripslashes($params_array['film_dac_transparent'])) : 50);
433
- $built_in_watermark_type = (isset($params_array['built_in_watermark_type']) ? esc_html(stripslashes($params_array['built_in_watermark_type'])) : 'none');
434
- $built_in_watermark_position = (isset($params_array['built_in_watermark_position']) ? esc_html(stripslashes($params_array['built_in_watermark_position'])) : 'middle-center');
435
- $built_in_watermark_size = (isset($params_array['built_in_watermark_size']) ? (int) esc_html(stripslashes($params_array['built_in_watermark_size'])) : 15);
436
- $built_in_watermark_url = (isset($params_array['built_in_watermark_url']) ? esc_html(stripslashes($params_array['built_in_watermark_url'])) : '');
437
  $built_in_watermark_url = str_replace(site_url(), '{site_url}', $built_in_watermark_url);
438
- $built_in_watermark_text = (isset($params_array['built_in_watermark_text']) ? esc_html(stripslashes($params_array['built_in_watermark_text'])) : '10Web.io');
439
- $built_in_watermark_opacity = (isset($params_array['built_in_watermark_opacity']) ? (int) esc_html(stripslashes($params_array['built_in_watermark_opacity'])) : 70);
440
- $built_in_watermark_font_size = (isset($params_array['built_in_watermark_font_size']) ? (int) esc_html(stripslashes($params_array['built_in_watermark_font_size'])) : 20);
441
- $built_in_watermark_font = (isset($params_array['built_in_watermark_font']) ? esc_html(stripslashes($params_array['built_in_watermark_font'])) : '');
442
- $built_in_watermark_color = (isset($params_array['built_in_watermark_color']) ? esc_html(stripslashes($params_array['built_in_watermark_color'])) : 'FFFFFF');
443
  $css = (isset($params_array['css']) ? htmlspecialchars_decode((stripslashes($params_array['css'])), ENT_QUOTES) : '');
444
- $timer_bar_type = (isset($params_array['timer_bar_type']) ? esc_html(stripslashes($params_array['timer_bar_type'])) : 'top');
445
- if (isset($params_array['enable_time_bar']) && (esc_html(stripslashes($params_array['enable_time_bar'])) == 0)) {
446
  $timer_bar_type = 'none';
447
  }
448
- $timer_bar_size = (isset($params_array['timer_bar_size']) ? (int) esc_html(stripslashes($params_array['timer_bar_size'])) : 5);
449
- $timer_bar_color = (isset($params_array['timer_bar_color']) ? esc_html(stripslashes($params_array['timer_bar_color'])) : 'BBBBBB');
450
- $timer_bar_transparent = (isset($params_array['timer_bar_transparent']) ? (int) esc_html(stripslashes($params_array['timer_bar_transparent'])) : 50);
451
- $stop_animation = ((isset($params_array['stop_animation'])) ? (int) esc_html(stripslashes($params_array['stop_animation'])) : 0);
452
- $right_butt_url = (isset($params_array['right_butt_url']) ? esc_html(stripslashes($params_array['right_butt_url'])) : '');
453
  $right_butt_url = str_replace(site_url(), '{site_url}', $right_butt_url);
454
- $left_butt_url = (isset($params_array['left_butt_url']) ? esc_html(stripslashes($params_array['left_butt_url'])) : '');
455
  $left_butt_url = str_replace(site_url(), '{site_url}', $left_butt_url);
456
- $right_butt_hov_url = (isset($params_array['right_butt_hov_url']) ? esc_html(stripslashes($params_array['right_butt_hov_url'])) : '');
457
  $right_butt_hov_url = str_replace(site_url(), '{site_url}', $right_butt_hov_url);
458
- $left_butt_hov_url = (isset($params_array['left_butt_hov_url']) ? esc_html(stripslashes($params_array['left_butt_hov_url'])) : '');
459
  $left_butt_hov_url = str_replace(site_url(), '{site_url}', $left_butt_hov_url);
460
- $rl_butt_img_or_not = (isset($params_array['rl_butt_img_or_not']) ? esc_html(stripslashes($params_array['rl_butt_img_or_not'])) : 'style');
461
- $bullets_img_main_url = (isset($params_array['bullets_img_main_url']) ? esc_html(stripslashes($params_array['bullets_img_main_url'])) : '');
462
  $bullets_img_main_url = str_replace(site_url(), '{site_url}', $bullets_img_main_url);
463
- $bullets_img_hov_url = (isset($params_array['bullets_img_hov_url']) ? esc_html(stripslashes($params_array['bullets_img_hov_url'])) : '');
464
  $bullets_img_hov_url = str_replace(site_url(), '{site_url}', $bullets_img_hov_url);
465
- $bull_butt_img_or_not = (isset($params_array['bull_butt_img_or_not']) ? esc_html(stripslashes($params_array['bull_butt_img_or_not'])) : 'style');
466
- $play_paus_butt_img_or_not = (isset($params_array['play_paus_butt_img_or_not']) ? esc_html(stripslashes($params_array['play_paus_butt_img_or_not'])) : 'style');
467
- $play_butt_url = (isset($params_array['play_butt_url']) ? esc_html(stripslashes($params_array['play_butt_url'])) : '');
468
  $play_butt_url = str_replace(site_url(), '{site_url}', $play_butt_url);
469
- $play_butt_hov_url = (isset($params_array['play_butt_hov_url']) ? esc_html(stripslashes($params_array['play_butt_hov_url'])) : '');
470
  $play_butt_hov_url = str_replace(site_url(), '{site_url}', $play_butt_hov_url);
471
- $paus_butt_url = (isset($params_array['paus_butt_url']) ? esc_html(stripslashes($params_array['paus_butt_url'])) : '');
472
  $paus_butt_url = str_replace(site_url(), '{site_url}', $paus_butt_url);
473
- $paus_butt_hov_url = (isset($params_array['paus_butt_hov_url']) ? esc_html(stripslashes($params_array['paus_butt_hov_url'])) : '');
474
  $paus_butt_hov_url = str_replace(site_url(), '{site_url}', $paus_butt_hov_url);
475
  $start_slide_num = ((isset($params_array['start_slide_num'])) ? (int) stripslashes($params_array['start_slide_num']) : 1);
476
  $effect_duration = ((isset($params_array['effect_duration'])) ? (int) stripslashes($params_array['effect_duration']) : 800);
477
- $carousel = ((isset($params_array['carousel']) && !WDS()->is_free) ? (int) esc_html(stripslashes($params_array['carousel'])) : 0);
478
- $carousel_image_counts = ((isset($params_array['carousel_image_counts']) && !WDS()->is_free) ? (int) esc_html(stripslashes($params_array['carousel_image_counts'])) : 7);
479
- $carousel_image_parameters = ((isset($params_array['carousel_image_parameters']) && !WDS()->is_free) ? esc_html(stripslashes($params_array['carousel_image_parameters'])) : 0.85);
480
- $carousel_fit_containerWidth = ((isset($params_array['carousel_fit_containerWidth']) && !WDS()->is_free) ? (int) esc_html(stripslashes($params_array['carousel_fit_containerWidth'])) : 0);
481
- $carousel_width = ((isset($params_array['carousel_width']) && !WDS()->is_free) ? (int) esc_html(stripslashes($params_array['carousel_width'])) : 1000);
482
- $parallax_effect = ((isset($params_array['parallax_effect']) && !WDS()->is_free) ? (int) esc_html(stripslashes($params_array['parallax_effect'])) : 0);
483
- $mouse_swipe_nav = ((isset($params_array['mouse_swipe_nav'])) ? (int) esc_html(stripslashes($params_array['mouse_swipe_nav'])) : 0);
484
- $bull_hover = ((isset($params_array['bull_hover'])) ? (int) esc_html(stripslashes($params_array['bull_hover'])) : 1);
485
- $touch_swipe_nav = ((isset($params_array['touch_swipe_nav'])) ? (int) esc_html(stripslashes($params_array['touch_swipe_nav'])) : 1);
486
- $mouse_wheel_nav = ((isset($params_array['mouse_wheel_nav'])) ? (int) esc_html(stripslashes($params_array['mouse_wheel_nav'])) : 0);
487
- $keyboard_nav = ((isset($params_array['keyboard_nav'])) ? (int) esc_html(stripslashes($params_array['keyboard_nav'])) : 0);
488
- $show_thumbnail = ((isset($params_array['show_thumbnail'])) ? (int) esc_html(stripslashes($params_array['show_thumbnail'])) : 0);
489
- $thumb_size = ((isset($params_array['thumb_size'])) ? esc_html(stripslashes($params_array['thumb_size'])) : '0.3');
490
- $fixed_bg = ((isset($params_array['fixed_bg'])) ? (int) esc_html(stripslashes($params_array['fixed_bg'])) : 0);
491
- $smart_crop = ((isset($params_array['smart_crop'])) ? (int) esc_html(stripslashes($params_array['smart_crop'])) : 0);
492
- $crop_image_position = ((isset($params_array['crop_image_position'])) ? esc_html(stripslashes($params_array['crop_image_position'])) : 'middle-center');
493
  $javascript = ((isset($params_array['javascript'])) ? $params_array['javascript'] : '');
494
- $carousel_degree = ((isset($params_array['carousel_degree'])) ? (int) esc_html(stripslashes($params_array['carousel_degree'])) : 0);
495
- $carousel_grayscale = ((isset($params_array['carousel_grayscale'])) ? (int) esc_html(stripslashes($params_array['carousel_grayscale'])) : 0);
496
- $carousel_transparency = ((isset($params_array['carousel_transparency'])) ? (int) esc_html(stripslashes($params_array['carousel_transparency'])) : 0);
497
- $bull_back_act_color = ((isset($params_array['bull_back_act_color'])) ? esc_html(stripslashes($params_array['bull_back_act_color'])) : '000000');
498
- $bull_back_color = ((isset($params_array['bull_back_color'])) ? esc_html(stripslashes($params_array['bull_back_color'])) : 'CCCCCC');
499
- $bull_radius = ((isset($params_array['bull_radius'])) ? esc_html(stripslashes($params_array['bull_radius'])) : '20px');
500
- $slider_loop = ((isset($params_array['slider_loop'])) ? (int) esc_html(stripslashes($params_array['slider_loop'])) : 1);
501
- $hide_on_mobile = ((isset($params_array['hide_on_mobile'])) ? (int) esc_html(stripslashes($params_array['hide_on_mobile'])) : 0);
502
- $twoway_slideshow = ((isset($params_array['twoway_slideshow'])) ? (int) esc_html(stripslashes($params_array['twoway_slideshow'])) : 0);
503
- $full_width_for_mobile = ((isset($params_array['full_width_for_mobile'])) ? (int) esc_html(stripslashes($params_array['full_width_for_mobile'])) : 0);
504
- $order_dir = ((isset($params_array['order_dir'])) ? esc_html(stripslashes($params_array['order_dir'])) : 'asc');
505
  $data = array(
506
  'name' => $name,
507
  'published' => $published,
@@ -655,26 +655,26 @@ class SlidersController_wds {
655
  $params_array = json_decode(stripslashes($slide_data), TRUE);
656
  $slide_id = (isset($params_array['id']) ? $params_array['id'] : 0);
657
  if ($slide_id) {
658
- $del_layer_ids_string = ((isset($params_array['slide' . $slide_id . '_del_layer_ids_string']) && !$save_as_copy) ? substr(esc_html(stripslashes($params_array['slide' . $slide_id . '_del_layer_ids_string'])), 0, -1) : '');
659
  if ($del_layer_ids_string) {
660
  $wpdb->query('DELETE FROM ' . $wpdb->prefix . 'wdslayer WHERE id IN (' . $del_layer_ids_string . ')');
661
  }
662
- $title = ((isset($params_array['title' . $slide_id])) ? esc_html(stripslashes($params_array['title' . $slide_id])) : '');
663
- $type = ((isset($params_array['type' . $slide_id])) ? esc_html(stripslashes($params_array['type' . $slide_id])) : '');
664
- $order = ((isset($params_array['order' . $slide_id])) ? esc_html(stripslashes($params_array['order' . $slide_id])) : '');
665
- $published = ((isset($params_array['published' . $slide_id])) ? esc_html(stripslashes($params_array['published' . $slide_id])) : '');
666
- $target_attr_slide = ((isset($params_array['target_attr_slide' . $slide_id])) ? (int) esc_html(stripslashes($params_array['target_attr_slide' . $slide_id])) : 0);
667
- $link = ((isset($params_array['link' . $slide_id])) ? esc_html(stripslashes($params_array['link' . $slide_id])) : (($type == 'video') ? 0 : ''));
668
- $image_url = ((isset($params_array['image_url' . $slide_id])) ? esc_html(stripslashes($params_array['image_url' . $slide_id])) : '');
669
  $image_url = str_replace(site_url(), '{site_url}', $image_url);
670
- $thumb_url = ((isset($params_array['thumb_url' . $slide_id])) ? esc_html(stripslashes($params_array['thumb_url' . $slide_id])) : '');
671
  $thumb_url = str_replace(site_url(), '{site_url}', $thumb_url);
672
- $att_width = ((isset($params_array['att_width' . $slide_id])) ? esc_html(stripslashes($params_array['att_width' . $slide_id])) : '');
673
- $att_height = ((isset($params_array['att_height' . $slide_id])) ? esc_html(stripslashes($params_array['att_height' . $slide_id])) : '');
674
- $video_duration = ((isset($params_array['video_duration' . $slide_id])) ? esc_html(stripslashes($params_array['video_duration' . $slide_id])) : '');
675
- $youtube_rel_video = ((isset($params_array['youtube_rel_video' . $slide_id]) && !WDS()->is_free) ? (int) esc_html(stripslashes($params_array['youtube_rel_video' . $slide_id])) : 0);
676
- $video_loop = ((isset($params_array['video_loop' . $slide_id]) && !WDS()->is_free) ? (int) esc_html(stripslashes($params_array['video_loop' . $slide_id])) : 0);
677
- $fillmode = ((isset($params_array['fillmode' . $slide_id])) ? esc_html(stripslashes($params_array['fillmode' . $slide_id])) : '');
678
  $title_dimension = array();
679
  $title_dimension['title'] = $title;
680
  $title_dimension['att_width'] = $att_width;
@@ -713,74 +713,74 @@ class SlidersController_wds {
713
  public function save_layer_db($slide_id, $slide_id_pr, $params_array) {
714
  global $wpdb;
715
  $save_as_copy = (isset($_POST['save_as_copy']) ? (int) $_POST['save_as_copy'] : 0);
716
- $layer_ids_string = (isset($params_array['slide' . $slide_id . '_layer_ids_string']) ? esc_html(stripslashes($params_array['slide' . $slide_id . '_layer_ids_string'])) : '');
717
  $layer_id_array = explode(',', $layer_ids_string);
718
  foreach ($layer_id_array as $layer_id) {
719
  if ($layer_id) {
720
  $prefix = 'slide' . $slide_id . '_layer' . $layer_id;
721
  $json_string = (isset($params_array[$prefix . '_json']) ? $params_array[$prefix . '_json'] : '');
722
  $params_array_layer = json_decode($json_string, TRUE);
723
- $title = ((isset($params_array_layer['title'])) ? esc_html(stripslashes($params_array_layer['title'])) : '');
724
- $type = ((isset($params_array_layer['type'])) ? esc_html(stripslashes($params_array_layer['type'])) : '');
725
- $depth = ((isset($params_array_layer['depth'])) ? esc_html(stripslashes($params_array_layer['depth'])) : '');
726
  $text = ((isset($params_array_layer['text'])) ? stripcslashes($params_array_layer['text']) : '');
727
- $link = ((isset($params_array_layer['link'])) ? esc_html(stripslashes($params_array_layer['link'])) : '');
728
- $target_attr_layer = ((isset($params_array_layer['target_attr_layer'])) ? (int) esc_html(stripslashes($params_array_layer['target_attr_layer'])) : 0);
729
- $left = ((isset($params_array_layer['left'])) ? esc_html(stripslashes($params_array_layer['left'])) : '');
730
- $top = ((isset($params_array_layer['top'])) ? esc_html(stripslashes($params_array_layer['top'])) : '');
731
- $start = ((isset($params_array_layer['start'])) ? esc_html(stripslashes($params_array_layer['start'])) : '');
732
- $end = ((isset($params_array_layer['end'])) ? esc_html(stripslashes($params_array_layer['end'])) : '');
733
- $published = ((isset($params_array_layer['published'])) ? esc_html(stripslashes($params_array_layer['published'])) : '');
734
- $color = ((isset($params_array_layer['color'])) ? esc_html(stripslashes($params_array_layer['color'])) : '');
735
- $size = ((isset($params_array_layer['size'])) ? esc_html(stripslashes($params_array_layer['size'])) : '');
736
- $ffamily = ((isset($params_array_layer['ffamily'])) ? esc_html(stripslashes($params_array_layer['ffamily'])) : '');
737
- $fweight = ((isset($params_array_layer['fweight'])) ? esc_html(stripslashes($params_array_layer['fweight'])) : '');
738
- $padding = ((isset($params_array_layer['padding'])) ? esc_html(stripslashes($params_array_layer['padding'])) : '');
739
- $fbgcolor = ((isset($params_array_layer['fbgcolor'])) ? esc_html(stripslashes($params_array_layer['fbgcolor'])) : '');
740
- $transparent = ((isset($params_array_layer['transparent'])) ? esc_html(stripslashes($params_array_layer['transparent'])) : '');
741
- $border_width = ((isset($params_array_layer['border_width'])) ? esc_html(stripslashes($params_array_layer['border_width'])) : '');
742
- $border_style = ((isset($params_array_layer['border_style'])) ? esc_html(stripslashes($params_array_layer['border_style'])) : '');
743
- $border_color = ((isset($params_array_layer['border_color'])) ? esc_html(stripslashes($params_array_layer['border_color'])) : '');
744
- $border_radius = ((isset($params_array_layer['border_radius'])) ? esc_html(stripslashes($params_array_layer['border_radius'])) : '');
745
- $shadow = ((isset($params_array_layer['shadow'])) ? esc_html(stripslashes($params_array_layer['shadow'])) : '');
746
- $image_url = ((isset($params_array_layer['image_url'])) ? esc_html(stripslashes($params_array_layer['image_url'])) : '');
747
  $image_url = str_replace(site_url(), '{site_url}', $image_url);
748
- $image_width = ((isset($params_array_layer['image_width'])) ? esc_html(stripslashes($params_array_layer['image_width'])) : '');
749
- $image_height = ((isset($params_array_layer['image_height'])) ? esc_html(stripslashes($params_array_layer['image_height'])) : '');
750
- $image_scale = ((isset($params_array_layer['image_scale'])) ? esc_html(stripslashes($params_array_layer['image_scale'])) : '');
751
- $alt = ((isset($params_array_layer['alt'])) ? esc_html(stripslashes($params_array_layer['alt'])) : '');
752
- $imgtransparent = ((isset($params_array_layer['imgtransparent'])) ? esc_html(stripslashes($params_array_layer['imgtransparent'])) : '');
753
- $social_button = ((isset($params_array_layer['social_button'])) ? esc_html(stripslashes($params_array_layer['social_button'])) : '');
754
- $hover_color = ((isset($params_array_layer['hover_color'])) ? esc_html(stripslashes($params_array_layer['hover_color'])) : '');
755
- $layer_effect_in = ((isset($params_array_layer['layer_effect_in'])) ? esc_html(stripslashes($params_array_layer['layer_effect_in'])) : '');
756
- $layer_effect_out = ((isset($params_array_layer['layer_effect_out'])) ? esc_html(stripslashes($params_array_layer['layer_effect_out'])) : '');
757
- $duration_eff_in = ((isset($params_array_layer['duration_eff_in'])) ? (int) esc_html(stripslashes($params_array_layer['duration_eff_in'])) : 3);
758
- $duration_eff_out = ((isset($params_array_layer['duration_eff_out'])) ? (int) esc_html(stripslashes($params_array_layer['duration_eff_out'])) : 3);
759
 
760
- $hotp_width = ((isset($params_array_layer['hotp_width'])) ? esc_html(stripslashes($params_array_layer['hotp_width'])) : '');
761
- $hotp_fbgcolor = ((isset($params_array_layer['hotp_fbgcolor'])) ? esc_html(stripslashes($params_array_layer['hotp_fbgcolor'])) : '');
762
- $hotp_border_width = ((isset($params_array_layer['hotp_border_width'])) ? esc_html(stripslashes($params_array_layer['hotp_border_width'])) : '');
763
- $hotp_border_style = ((isset($params_array_layer['hotp_border_style'])) ? esc_html(stripslashes($params_array_layer['hotp_border_style'])) : '');
764
- $hotp_border_color = ((isset($params_array_layer['hotp_border_color'])) ? esc_html(stripslashes($params_array_layer['hotp_border_color'])) : '');
765
- $hotp_border_radius = ((isset($params_array_layer['hotp_border_radius'])) ? esc_html(stripslashes($params_array_layer['hotp_border_radius'])) : '');
766
- $hotp_text_position = ((isset($params_array_layer['hotp_text_position'])) ? esc_html(stripslashes($params_array_layer['hotp_text_position'])) : '');
767
- $google_fonts = ((isset($params_array_layer['google_fonts'])) ? (int) esc_html(stripslashes($params_array_layer['google_fonts'])) : 0);
768
- $attr_width = ((isset($params_array_layer['attr_width'])) ? esc_html(stripslashes($params_array_layer['attr_width'])) : '');
769
- $attr_height = ((isset($params_array_layer['attr_height'])) ? esc_html(stripslashes($params_array_layer['attr_height'])) : '');
770
- $add_class = ((isset($params_array_layer['add_class'])) ? esc_html(stripslashes($params_array_layer['add_class'])) : '');
771
- $layer_video_loop = ((isset($params_array_layer['layer_video_loop'])) ? (int) esc_html(stripslashes($params_array_layer['layer_video_loop'])) : 0);
772
- $youtube_rel_layer_video = ((isset($params_array_layer['youtube_rel_layer_video'])) ? (int) esc_html(stripslashes($params_array_layer['youtube_rel_layer_video'])) : 0);
773
- $hotspot_animation = ((isset($params_array_layer['hotspot_animation'])) ? (int) esc_html(stripslashes($params_array_layer['hotspot_animation'])) : 1);
774
- $layer_callback_list = ((isset($params_array_layer['layer_callback_list'])) ? esc_html(stripslashes($params_array_layer['layer_callback_list'])) : '');
775
- $hotspot_text_display = ((isset($params_array_layer['hotspot_text_display'])) ? esc_html(stripslashes($params_array_layer['hotspot_text_display'])) : 'hover');
776
- $hover_color_text = ((isset($params_array_layer['hover_color_text'])) ? esc_html(stripslashes($params_array_layer['hover_color_text'])) : '');
777
- $text_alignment = ((isset($params_array_layer['text_alignment'])) ? esc_html(stripslashes($params_array_layer['text_alignment'])) : 'center');
778
- $link_to_slide = ((isset($params_array_layer['link_to_slide'])) ? (int) esc_html(stripslashes($params_array_layer['link_to_slide'])) : 0);
779
- $align_layer = ((isset($params_array_layer['align_layer'])) ? (int) esc_html(stripslashes($params_array_layer['align_layer'])) : 0);
780
- $static_layer = ((isset($params_array_layer['static_layer'])) ? (int) esc_html(stripslashes($params_array_layer['static_layer'])) : 0);
781
- $infinite_in = ((isset($params_array_layer['infinite_in'])) ? (int) esc_html(stripslashes($params_array_layer['infinite_in'])) : 1);
782
- $infinite_out = ((isset($params_array_layer['infinite_out'])) ? (int) esc_html(stripslashes($params_array_layer['infinite_out'])) : 1);
783
- $min_size = ((isset($params_array_layer['min_size'])) ? (int) esc_html(stripslashes($params_array_layer['min_size'])) : 11);
784
  $title_dimension = array();
785
  $title_dimension['title'] = $title;
786
  $title_dimension['attr_width'] = $attr_width;
361
  $slider_id = (isset($_POST['current_id']) ? (int) $_POST['current_id'] : $id);
362
  $slider_data = (isset($_POST['slider_data']) ? stripslashes($_POST['slider_data']) : '');
363
  $params_array = json_decode($slider_data, TRUE);
364
+ $del_slide_ids_string = (isset($params_array['del_slide_ids_string']) ? substr(sanitize_text_field($params_array['del_slide_ids_string']), 0, -1) : '');
365
  if ($del_slide_ids_string) {
366
  $wpdb->query('DELETE FROM ' . $wpdb->prefix . 'wdsslide WHERE slider_id=' . $slider_id . ' AND id IN (' . $del_slide_ids_string . ')');
367
  }
368
+ $name = ((isset($params_array['name'])) ? sanitize_text_field($params_array['name']) : '');
369
+ $published = ((isset($params_array['published'])) ? (int) sanitize_text_field($params_array['published']) : 1);
370
+ $full_width = ((isset($params_array['full_width'])) ? (int) sanitize_text_field($params_array['full_width']) : 0);
371
+ $auto_height = ((isset($params_array['auto_height'])) ? (int) sanitize_text_field($params_array['auto_height']) : 0);
372
+ $width = ((isset($params_array['width'])) ? (int) sanitize_text_field($params_array['width']) : 900);
373
+ $height = ((isset($params_array['height'])) ? (int) sanitize_text_field($params_array['height']) : 400);
374
+ $align = ((isset($params_array['align'])) ? sanitize_text_field($params_array['align']) : 'center');
375
+ $effect = ((isset($params_array['effect'])) ? sanitize_text_field($params_array['effect']) : 'fade');
376
+ $time_intervval = ((isset($params_array['time_intervval'])) ? (int) sanitize_text_field($params_array['time_intervval']) : 5);
377
+ $autoplay = ((isset($params_array['autoplay'])) ? (int) sanitize_text_field($params_array['autoplay']) : 1);
378
+ $shuffle = ((isset($params_array['shuffle'])) ? (int) sanitize_text_field($params_array['shuffle']) : 0);
379
+ $music = ((isset($params_array['music'])) ? (int) sanitize_text_field($params_array['music']) : 0);
380
  if ( isset($params_array['music_url']) && WDW_S_Library::validate_audio_file($params_array['music_url']) ) {
381
+ $music_url = sanitize_text_field($params_array['music_url']);
382
  $music_url = str_replace(site_url(), '{site_url}', $music_url);
383
  }
384
  else {
385
  $music_url = '';
386
  }
387
+ $preload_images = ((isset($params_array['preload_images'])) ? (int) sanitize_text_field($params_array['preload_images']) : 1);
388
+ $background_color = ((isset($params_array['background_color'])) ? sanitize_text_field($params_array['background_color']) : '000000');
389
+ $background_transparent = ((isset($params_array['background_transparent'])) ? (int) sanitize_text_field($params_array['background_transparent']) : 100);
390
+ $glb_border_width = ((isset($params_array['glb_border_width'])) ? (int) sanitize_text_field($params_array['glb_border_width']) : 0);
391
+ $glb_border_style = ((isset($params_array['glb_border_style'])) ? sanitize_text_field($params_array['glb_border_style']) : 'none');
392
+ $glb_border_color = ((isset($params_array['glb_border_color'])) ? sanitize_text_field($params_array['glb_border_color']) : '000000');
393
+ $glb_border_radius = ((isset($params_array['glb_border_radius'])) ? sanitize_text_field($params_array['glb_border_radius']) : '');
394
+ $glb_margin = ((isset($params_array['glb_margin'])) ? (int) sanitize_text_field($params_array['glb_margin']) : 0);
395
+ $glb_box_shadow = ((isset($params_array['glb_box_shadow'])) ? sanitize_text_field($params_array['glb_box_shadow']) : '');
396
+ $image_right_click = ((isset($params_array['image_right_click'])) ? (int) sanitize_text_field($params_array['image_right_click']) : 0);
397
+ $layer_out_next = ((isset($params_array['layer_out_next'])) ? (int) sanitize_text_field($params_array['layer_out_next']) : 0);
398
+ $prev_next_butt = ((isset($params_array['prev_next_butt'])) ? (int) sanitize_text_field($params_array['prev_next_butt']) : 1);
399
+ $play_paus_butt = ((isset($params_array['play_paus_butt'])) ? (int) sanitize_text_field($params_array['play_paus_butt']) : 0);
400
+ $navigation = ((isset($params_array['navigation'])) ? sanitize_text_field($params_array['navigation']) : 'hover');
401
+ $rl_butt_style = ((isset($params_array['rl_butt_style'])) ? sanitize_text_field($params_array['rl_butt_style']) : 'fa-angle');
402
+ $rl_butt_size = ((isset($params_array['rl_butt_size'])) ? (int) sanitize_text_field($params_array['rl_butt_size']) : 40);
403
+ $pp_butt_size = ((isset($params_array['pp_butt_size'])) ? (int) sanitize_text_field($params_array['pp_butt_size']) : 40);
404
+ $butts_color = ((isset($params_array['butts_color'])) ? sanitize_text_field($params_array['butts_color']) : '000000');
405
+ $butts_transparent = ((isset($params_array['butts_transparent'])) ? (int) sanitize_text_field($params_array['butts_transparent']) : 100);
406
+ $hover_color = ((isset($params_array['hover_color'])) ? sanitize_text_field($params_array['hover_color']) : 'FFFFFF');
407
+ $nav_border_width = ((isset($params_array['nav_border_width'])) ? (int) sanitize_text_field($params_array['nav_border_width']) : 0);
408
+ $nav_border_style = ((isset($params_array['nav_border_style'])) ? sanitize_text_field($params_array['nav_border_style']) : 'none');
409
+ $nav_border_color = ((isset($params_array['nav_border_color'])) ? sanitize_text_field($params_array['nav_border_color']) : 'FFFFFF');
410
+ $nav_border_radius = ((isset($params_array['nav_border_radius'])) ? sanitize_text_field($params_array['nav_border_radius']) : '20px');
411
+ $nav_bg_color = ((isset($params_array['nav_bg_color'])) ? sanitize_text_field($params_array['nav_bg_color']) : 'FFFFFF');
412
+ $bull_position = ((isset($params_array['bull_position'])) ? sanitize_text_field($params_array['bull_position']) : 'bottom');
413
+ if (isset($params_array['enable_bullets']) && ($params_array['enable_bullets']) == 0) {
414
  $bull_position = 'none';
415
  }
416
+ $bull_style = ((isset($params_array['bull_style']) && $allow) ? sanitize_text_field($params_array['bull_style']) : 'fa-square-o');
417
+ $bull_size = ((isset($params_array['bull_size']) && $allow) ? (int) sanitize_text_field($params_array['bull_size']) : 20);
418
+ $bull_color = ((isset($params_array['bull_color']) && $allow) ? sanitize_text_field($params_array['bull_color']) : 'FFFFFF');
419
+ $bull_act_color = ((isset($params_array['bull_act_color']) && $allow) ? sanitize_text_field($params_array['bull_act_color']) : 'FFFFFF');
420
+ $bull_margin = ((isset($params_array['bull_margin']) && $allow) ? (int) sanitize_text_field($params_array['bull_margin']) : 3);
421
+ $film_pos = ((isset($params_array['film_pos'])) ? sanitize_text_field($params_array['film_pos']) : 'none');
422
+ if (isset($params_array['enable_filmstrip']) && ($params_array['enable_filmstrip'] == 0)) {
423
  $film_pos = 'none';
424
  }
425
+ $film_thumb_width = ((isset($params_array['film_thumb_width'])) ? (int) sanitize_text_field($params_array['film_thumb_width']) : 100);
426
+ $film_thumb_height = ((isset($params_array['film_thumb_height'])) ? (int) sanitize_text_field($params_array['film_thumb_height']) : 50);
427
+ $film_bg_color = ((isset($params_array['film_bg_color'])) ? sanitize_text_field($params_array['film_bg_color']) : '000000');
428
+ $film_tmb_margin = ((isset($params_array['film_tmb_margin'])) ? (int) sanitize_text_field($params_array['film_tmb_margin']) : 0);
429
+ $film_act_border_width = ((isset($params_array['film_act_border_width'])) ? (int) sanitize_text_field($params_array['film_act_border_width']) : 0);
430
+ $film_act_border_style = ((isset($params_array['film_act_border_style'])) ? sanitize_text_field($params_array['film_act_border_style']) : 'none');
431
+ $film_act_border_color = ((isset($params_array['film_act_border_color'])) ? sanitize_text_field($params_array['film_act_border_color']) : 'FFFFFF');
432
+ $film_dac_transparent = ((isset($params_array['film_dac_transparent'])) ? (int) sanitize_text_field($params_array['film_dac_transparent']) : 50);
433
+ $built_in_watermark_type = (isset($params_array['built_in_watermark_type']) ? sanitize_text_field($params_array['built_in_watermark_type']) : 'none');
434
+ $built_in_watermark_position = (isset($params_array['built_in_watermark_position']) ? sanitize_text_field($params_array['built_in_watermark_position']) : 'middle-center');
435
+ $built_in_watermark_size = (isset($params_array['built_in_watermark_size']) ? (int) sanitize_text_field($params_array['built_in_watermark_size']) : 15);
436
+ $built_in_watermark_url = (isset($params_array['built_in_watermark_url']) ? sanitize_text_field($params_array['built_in_watermark_url']) : '');
437
  $built_in_watermark_url = str_replace(site_url(), '{site_url}', $built_in_watermark_url);
438
+ $built_in_watermark_text = (isset($params_array['built_in_watermark_text']) ? sanitize_text_field($params_array['built_in_watermark_text']) : '10Web.io');
439
+ $built_in_watermark_opacity = (isset($params_array['built_in_watermark_opacity']) ? (int) sanitize_text_field($params_array['built_in_watermark_opacity']) : 70);
440
+ $built_in_watermark_font_size = (isset($params_array['built_in_watermark_font_size']) ? (int) sanitize_text_field($params_array['built_in_watermark_font_size']) : 20);
441
+ $built_in_watermark_font = (isset($params_array['built_in_watermark_font']) ? sanitize_text_field($params_array['built_in_watermark_font']) : '');
442
+ $built_in_watermark_color = (isset($params_array['built_in_watermark_color']) ? sanitize_text_field($params_array['built_in_watermark_color']) : 'FFFFFF');
443
  $css = (isset($params_array['css']) ? htmlspecialchars_decode((stripslashes($params_array['css'])), ENT_QUOTES) : '');
444
+ $timer_bar_type = (isset($params_array['timer_bar_type']) ? sanitize_text_field($params_array['timer_bar_type']) : 'top');
445
+ if (isset($params_array['enable_time_bar']) && ($params_array['enable_time_bar'] == 0)) {
446
  $timer_bar_type = 'none';
447
  }
448
+ $timer_bar_size = (isset($params_array['timer_bar_size']) ? (int) sanitize_text_field($params_array['timer_bar_size']) : 5);
449
+ $timer_bar_color = (isset($params_array['timer_bar_color']) ? sanitize_text_field($params_array['timer_bar_color']) : 'BBBBBB');
450
+ $timer_bar_transparent = (isset($params_array['timer_bar_transparent']) ? (int) sanitize_text_field($params_array['timer_bar_transparent']) : 50);
451
+ $stop_animation = ((isset($params_array['stop_animation'])) ? (int) sanitize_text_field($params_array['stop_animation']) : 0);
452
+ $right_butt_url = (isset($params_array['right_butt_url']) ? sanitize_text_field($params_array['right_butt_url']) : '');
453
  $right_butt_url = str_replace(site_url(), '{site_url}', $right_butt_url);
454
+ $left_butt_url = (isset($params_array['left_butt_url']) ? sanitize_text_field($params_array['left_butt_url']) : '');
455
  $left_butt_url = str_replace(site_url(), '{site_url}', $left_butt_url);
456
+ $right_butt_hov_url = (isset($params_array['right_butt_hov_url']) ? sanitize_text_field($params_array['right_butt_hov_url']) : '');
457
  $right_butt_hov_url = str_replace(site_url(), '{site_url}', $right_butt_hov_url);
458
+ $left_butt_hov_url = (isset($params_array['left_butt_hov_url']) ? sanitize_text_field($params_array['left_butt_hov_url']) : '');
459
  $left_butt_hov_url = str_replace(site_url(), '{site_url}', $left_butt_hov_url);
460
+ $rl_butt_img_or_not = (isset($params_array['rl_butt_img_or_not']) ? sanitize_text_field($params_array['rl_butt_img_or_not']) : 'style');
461
+ $bullets_img_main_url = (isset($params_array['bullets_img_main_url']) ? sanitize_text_field($params_array['bullets_img_main_url']) : '');
462
  $bullets_img_main_url = str_replace(site_url(), '{site_url}', $bullets_img_main_url);
463
+ $bullets_img_hov_url = (isset($params_array['bullets_img_hov_url']) ? sanitize_text_field($params_array['bullets_img_hov_url']) : '');
464
  $bullets_img_hov_url = str_replace(site_url(), '{site_url}', $bullets_img_hov_url);
465
+ $bull_butt_img_or_not = (isset($params_array['bull_butt_img_or_not']) ? sanitize_text_field($params_array['bull_butt_img_or_not']) : 'style');
466
+ $play_paus_butt_img_or_not = (isset($params_array['play_paus_butt_img_or_not']) ? sanitize_text_field($params_array['play_paus_butt_img_or_not']) : 'style');
467
+ $play_butt_url = (isset($params_array['play_butt_url']) ? sanitize_text_field($params_array['play_butt_url']) : '');
468
  $play_butt_url = str_replace(site_url(), '{site_url}', $play_butt_url);
469
+ $play_butt_hov_url = (isset($params_array['play_butt_hov_url']) ? sanitize_text_field($params_array['play_butt_hov_url']) : '');
470
  $play_butt_hov_url = str_replace(site_url(), '{site_url}', $play_butt_hov_url);
471
+ $paus_butt_url = (isset($params_array['paus_butt_url']) ? sanitize_text_field($params_array['paus_butt_url']) : '');
472
  $paus_butt_url = str_replace(site_url(), '{site_url}', $paus_butt_url);
473
+ $paus_butt_hov_url = (isset($params_array['paus_butt_hov_url']) ? sanitize_text_field($params_array['paus_butt_hov_url']) : '');
474
  $paus_butt_hov_url = str_replace(site_url(), '{site_url}', $paus_butt_hov_url);
475
  $start_slide_num = ((isset($params_array['start_slide_num'])) ? (int) stripslashes($params_array['start_slide_num']) : 1);
476
  $effect_duration = ((isset($params_array['effect_duration'])) ? (int) stripslashes($params_array['effect_duration']) : 800);
477
+ $carousel = ((isset($params_array['carousel']) && !WDS()->is_free) ? (int) sanitize_text_field($params_array['carousel']) : 0);
478
+ $carousel_image_counts = ((isset($params_array['carousel_image_counts']) && !WDS()->is_free) ? (int) sanitize_text_field($params_array['carousel_image_counts']) : 7);
479
+ $carousel_image_parameters = ((isset($params_array['carousel_image_parameters']) && !WDS()->is_free) ? sanitize_text_field($params_array['carousel_image_parameters']) : 0.85);
480
+ $carousel_fit_containerWidth = ((isset($params_array['carousel_fit_containerWidth']) && !WDS()->is_free) ? (int) sanitize_text_field($params_array['carousel_fit_containerWidth']) : 0);
481
+ $carousel_width = ((isset($params_array['carousel_width']) && !WDS()->is_free) ? (int) sanitize_text_field($params_array['carousel_width']) : 1000);
482
+ $parallax_effect = ((isset($params_array['parallax_effect']) && !WDS()->is_free) ? (int) sanitize_text_field($params_array['parallax_effect']) : 0);
483
+ $mouse_swipe_nav = ((isset($params_array['mouse_swipe_nav'])) ? (int) sanitize_text_field($params_array['mouse_swipe_nav']) : 0);
484
+ $bull_hover = ((isset($params_array['bull_hover'])) ? (int) sanitize_text_field($params_array['bull_hover']) : 1);
485
+ $touch_swipe_nav = ((isset($params_array['touch_swipe_nav'])) ? (int) sanitize_text_field($params_array['touch_swipe_nav']) : 1);
486
+ $mouse_wheel_nav = ((isset($params_array['mouse_wheel_nav'])) ? (int) sanitize_text_field($params_array['mouse_wheel_nav']) : 0);
487
+ $keyboard_nav = ((isset($params_array['keyboard_nav'])) ? (int) sanitize_text_field($params_array['keyboard_nav']) : 0);
488
+ $show_thumbnail = ((isset($params_array['show_thumbnail'])) ? (int) sanitize_text_field($params_array['show_thumbnail']) : 0);
489
+ $thumb_size = ((isset($params_array['thumb_size'])) ? sanitize_text_field($params_array['thumb_size']) : '0.3');
490
+ $fixed_bg = ((isset($params_array['fixed_bg'])) ? (int) sanitize_text_field($params_array['fixed_bg']) : 0);
491
+ $smart_crop = ((isset($params_array['smart_crop'])) ? (int) sanitize_text_field($params_array['smart_crop']) : 0);
492
+ $crop_image_position = ((isset($params_array['crop_image_position'])) ? sanitize_text_field($params_array['crop_image_position']) : 'middle-center');
493
  $javascript = ((isset($params_array['javascript'])) ? $params_array['javascript'] : '');
494
+ $carousel_degree = ((isset($params_array['carousel_degree'])) ? (int) sanitize_text_field($params_array['carousel_degree']) : 0);
495
+ $carousel_grayscale = ((isset($params_array['carousel_grayscale'])) ? (int) sanitize_text_field($params_array['carousel_grayscale']) : 0);
496
+ $carousel_transparency = ((isset($params_array['carousel_transparency'])) ? (int) sanitize_text_field($params_array['carousel_transparency']) : 0);
497
+ $bull_back_act_color = ((isset($params_array['bull_back_act_color'])) ? sanitize_text_field($params_array['bull_back_act_color']) : '000000');
498
+ $bull_back_color = ((isset($params_array['bull_back_color'])) ? sanitize_text_field($params_array['bull_back_color']) : 'CCCCCC');
499
+ $bull_radius = ((isset($params_array['bull_radius'])) ? sanitize_text_field($params_array['bull_radius']) : '20px');
500
+ $slider_loop = ((isset($params_array['slider_loop'])) ? (int) sanitize_text_field($params_array['slider_loop']) : 1);
501
+ $hide_on_mobile = ((isset($params_array['hide_on_mobile'])) ? (int) sanitize_text_field($params_array['hide_on_mobile']) : 0);
502
+ $twoway_slideshow = ((isset($params_array['twoway_slideshow'])) ? (int) sanitize_text_field($params_array['twoway_slideshow']) : 0);
503
+ $full_width_for_mobile = ((isset($params_array['full_width_for_mobile'])) ? (int) sanitize_text_field($params_array['full_width_for_mobile']) : 0);
504
+ $order_dir = ((isset($params_array['order_dir'])) ? sanitize_text_field($params_array['order_dir']) : 'asc');
505
  $data = array(
506
  'name' => $name,
507
  'published' => $published,
655
  $params_array = json_decode(stripslashes($slide_data), TRUE);
656
  $slide_id = (isset($params_array['id']) ? $params_array['id'] : 0);
657
  if ($slide_id) {
658
+ $del_layer_ids_string = ((isset($params_array['slide' . $slide_id . '_del_layer_ids_string']) && !$save_as_copy) ? substr(sanitize_text_field($params_array['slide' . $slide_id . '_del_layer_ids_string']), 0, -1) : '');
659
  if ($del_layer_ids_string) {
660
  $wpdb->query('DELETE FROM ' . $wpdb->prefix . 'wdslayer WHERE id IN (' . $del_layer_ids_string . ')');
661
  }
662
+ $title = ((isset($params_array['title' . $slide_id])) ? sanitize_text_field($params_array['title' . $slide_id]) : '');
663
+ $type = ((isset($params_array['type' . $slide_id])) ? sanitize_text_field($params_array['type' . $slide_id]) : '');
664
+ $order = ((isset($params_array['order' . $slide_id])) ? sanitize_text_field($params_array['order' . $slide_id]) : '');
665
+ $published = ((isset($params_array['published' . $slide_id])) ? sanitize_text_field($params_array['published' . $slide_id]) : '');
666
+ $target_attr_slide = ((isset($params_array['target_attr_slide' . $slide_id])) ? (int) sanitize_text_field($params_array['target_attr_slide' . $slide_id]) : 0);
667
+ $link = ((isset($params_array['link' . $slide_id])) ? sanitize_text_field($params_array['link' . $slide_id]) : (($type == 'video') ? 0 : ''));
668
+ $image_url = ((isset($params_array['image_url' . $slide_id])) ? sanitize_text_field($params_array['image_url' . $slide_id]) : '');
669
  $image_url = str_replace(site_url(), '{site_url}', $image_url);
670
+ $thumb_url = ((isset($params_array['thumb_url' . $slide_id])) ? sanitize_text_field($params_array['thumb_url' . $slide_id]) : '');
671
  $thumb_url = str_replace(site_url(), '{site_url}', $thumb_url);
672
+ $att_width = ((isset($params_array['att_width' . $slide_id])) ? sanitize_text_field($params_array['att_width' . $slide_id]) : '');
673
+ $att_height = ((isset($params_array['att_height' . $slide_id])) ? sanitize_text_field($params_array['att_height' . $slide_id]) : '');
674
+ $video_duration = ((isset($params_array['video_duration' . $slide_id])) ? sanitize_text_field($params_array['video_duration' . $slide_id]) : '');
675
+ $youtube_rel_video = ((isset($params_array['youtube_rel_video' . $slide_id]) && !WDS()->is_free) ? (int) sanitize_text_field($params_array['youtube_rel_video' . $slide_id]) : 0);
676
+ $video_loop = ((isset($params_array['video_loop' . $slide_id]) && !WDS()->is_free) ? (int) sanitize_text_field($params_array['video_loop' . $slide_id]) : 0);
677
+ $fillmode = ((isset($params_array['fillmode' . $slide_id])) ? sanitize_text_field($params_array['fillmode' . $slide_id]) : '');
678
  $title_dimension = array();
679
  $title_dimension['title'] = $title;
680
  $title_dimension['att_width'] = $att_width;
713
  public function save_layer_db($slide_id, $slide_id_pr, $params_array) {
714
  global $wpdb;
715
  $save_as_copy = (isset($_POST['save_as_copy']) ? (int) $_POST['save_as_copy'] : 0);
716
+ $layer_ids_string = (isset($params_array['slide' . $slide_id . '_layer_ids_string']) ? sanitize_text_field($params_array['slide' . $slide_id . '_layer_ids_string']) : '');
717
  $layer_id_array = explode(',', $layer_ids_string);
718
  foreach ($layer_id_array as $layer_id) {
719
  if ($layer_id) {
720
  $prefix = 'slide' . $slide_id . '_layer' . $layer_id;
721
  $json_string = (isset($params_array[$prefix . '_json']) ? $params_array[$prefix . '_json'] : '');
722
  $params_array_layer = json_decode($json_string, TRUE);
723
+ $title = ((isset($params_array_layer['title'])) ? sanitize_text_field($params_array_layer['title']) : '');
724
+ $type = ((isset($params_array_layer['type'])) ? sanitize_text_field($params_array_layer['type']) : '');
725
+ $depth = ((isset($params_array_layer['depth'])) ? sanitize_text_field($params_array_layer['depth']) : '');
726
  $text = ((isset($params_array_layer['text'])) ? stripcslashes($params_array_layer['text']) : '');
727
+ $link = ((isset($params_array_layer['link'])) ? sanitize_text_field($params_array_layer['link']) : '');
728
+ $target_attr_layer = ((isset($params_array_layer['target_attr_layer'])) ? (int) sanitize_text_field($params_array_layer['target_attr_layer']) : 0);
729
+ $left = ((isset($params_array_layer['left'])) ? sanitize_text_field($params_array_layer['left']) : '');
730
+ $top = ((isset($params_array_layer['top'])) ? sanitize_text_field($params_array_layer['top']) : '');
731
+ $start = ((isset($params_array_layer['start'])) ? sanitize_text_field($params_array_layer['start']) : '');
732
+ $end = ((isset($params_array_layer['end'])) ? sanitize_text_field($params_array_layer['end']) : '');
733
+ $published = ((isset($params_array_layer['published'])) ? sanitize_text_field($params_array_layer['published']) : '');
734
+ $color = ((isset($params_array_layer['color'])) ? sanitize_text_field($params_array_layer['color']) : '');
735
+ $size = ((isset($params_array_layer['size'])) ? sanitize_text_field($params_array_layer['size']) : '');
736
+ $ffamily = ((isset($params_array_layer['ffamily'])) ? sanitize_text_field($params_array_layer['ffamily']) : '');
737
+ $fweight = ((isset($params_array_layer['fweight'])) ? sanitize_text_field($params_array_layer['fweight']) : '');
738
+ $padding = ((isset($params_array_layer['padding'])) ? sanitize_text_field($params_array_layer['padding']) : '');
739
+ $fbgcolor = ((isset($params_array_layer['fbgcolor'])) ? sanitize_text_field($params_array_layer['fbgcolor']) : '');
740
+ $transparent = ((isset($params_array_layer['transparent'])) ? sanitize_text_field($params_array_layer['transparent']) : '');
741
+ $border_width = ((isset($params_array_layer['border_width'])) ? sanitize_text_field($params_array_layer['border_width']) : '');
742
+ $border_style = ((isset($params_array_layer['border_style'])) ? sanitize_text_field($params_array_layer['border_style']) : '');
743
+ $border_color = ((isset($params_array_layer['border_color'])) ? sanitize_text_field($params_array_layer['border_color']) : '');
744
+ $border_radius = ((isset($params_array_layer['border_radius'])) ? sanitize_text_field($params_array_layer['border_radius']) : '');
745
+ $shadow = ((isset($params_array_layer['shadow'])) ? sanitize_text_field($params_array_layer['shadow']) : '');
746
+ $image_url = ((isset($params_array_layer['image_url'])) ? sanitize_text_field($params_array_layer['image_url']) : '');
747
  $image_url = str_replace(site_url(), '{site_url}', $image_url);
748
+ $image_width = ((isset($params_array_layer['image_width'])) ? sanitize_text_field($params_array_layer['image_width']) : '');
749
+ $image_height = ((isset($params_array_layer['image_height'])) ? sanitize_text_field($params_array_layer['image_height']) : '');
750
+ $image_scale = ((isset($params_array_layer['image_scale'])) ? sanitize_text_field($params_array_layer['image_scale']) : '');
751
+ $alt = ((isset($params_array_layer['alt'])) ? sanitize_text_field($params_array_layer['alt']) : '');
752
+ $imgtransparent = ((isset($params_array_layer['imgtransparent'])) ? sanitize_text_field($params_array_layer['imgtransparent']) : '');
753
+ $social_button = ((isset($params_array_layer['social_button'])) ? sanitize_text_field($params_array_layer['social_button']) : '');
754
+ $hover_color = ((isset($params_array_layer['hover_color'])) ? sanitize_text_field($params_array_layer['hover_color']) : '');
755
+ $layer_effect_in = ((isset($params_array_layer['layer_effect_in'])) ? sanitize_text_field($params_array_layer['layer_effect_in']) : '');
756
+ $layer_effect_out = ((isset($params_array_layer['layer_effect_out'])) ? sanitize_text_field($params_array_layer['layer_effect_out']) : '');
757
+ $duration_eff_in = ((isset($params_array_layer['duration_eff_in'])) ? (int) sanitize_text_field($params_array_layer['duration_eff_in']) : 3);
758
+ $duration_eff_out = ((isset($params_array_layer['duration_eff_out'])) ? (int) sanitize_text_field($params_array_layer['duration_eff_out']) : 3);
759
 
760
+ $hotp_width = ((isset($params_array_layer['hotp_width'])) ? sanitize_text_field($params_array_layer['hotp_width']) : '');
761
+ $hotp_fbgcolor = ((isset($params_array_layer['hotp_fbgcolor'])) ? sanitize_text_field($params_array_layer['hotp_fbgcolor']) : '');
762
+ $hotp_border_width = ((isset($params_array_layer['hotp_border_width'])) ? sanitize_text_field($params_array_layer['hotp_border_width']) : '');
763
+ $hotp_border_style = ((isset($params_array_layer['hotp_border_style'])) ? sanitize_text_field($params_array_layer['hotp_border_style']) : '');
764
+ $hotp_border_color = ((isset($params_array_layer['hotp_border_color'])) ? sanitize_text_field($params_array_layer['hotp_border_color']) : '');
765
+ $hotp_border_radius = ((isset($params_array_layer['hotp_border_radius'])) ? sanitize_text_field($params_array_layer['hotp_border_radius']) : '');
766
+ $hotp_text_position = ((isset($params_array_layer['hotp_text_position'])) ? sanitize_text_field($params_array_layer['hotp_text_position']) : '');
767
+ $google_fonts = ((isset($params_array_layer['google_fonts'])) ? (int) sanitize_text_field($params_array_layer['google_fonts']) : 0);
768
+ $attr_width = ((isset($params_array_layer['attr_width'])) ? sanitize_text_field($params_array_layer['attr_width']) : '');
769
+ $attr_height = ((isset($params_array_layer['attr_height'])) ? sanitize_text_field($params_array_layer['attr_height']) : '');
770
+ $add_class = ((isset($params_array_layer['add_class'])) ? sanitize_text_field($params_array_layer['add_class']) : '');
771
+ $layer_video_loop = ((isset($params_array_layer['layer_video_loop'])) ? (int) sanitize_text_field($params_array_layer['layer_video_loop']) : 0);
772
+ $youtube_rel_layer_video = ((isset($params_array_layer['youtube_rel_layer_video'])) ? (int) sanitize_text_field($params_array_layer['youtube_rel_layer_video']) : 0);
773
+ $hotspot_animation = ((isset($params_array_layer['hotspot_animation'])) ? (int) sanitize_text_field($params_array_layer['hotspot_animation']) : 1);
774
+ $layer_callback_list = ((isset($params_array_layer['layer_callback_list'])) ? sanitize_text_field($params_array_layer['layer_callback_list']) : '');
775
+ $hotspot_text_display = ((isset($params_array_layer['hotspot_text_display'])) ? sanitize_text_field($params_array_layer['hotspot_text_display']) : 'hover');
776
+ $hover_color_text = ((isset($params_array_layer['hover_color_text'])) ? sanitize_text_field($params_array_layer['hover_color_text']) : '');
777
+ $text_alignment = ((isset($params_array_layer['text_alignment'])) ? sanitize_text_field($params_array_layer['text_alignment']) : 'center');
778
+ $link_to_slide = ((isset($params_array_layer['link_to_slide'])) ? (int) sanitize_text_field($params_array_layer['link_to_slide']) : 0);
779
+ $align_layer = ((isset($params_array_layer['align_layer'])) ? (int) sanitize_text_field($params_array_layer['align_layer']) : 0);
780
+ $static_layer = ((isset($params_array_layer['static_layer'])) ? (int) sanitize_text_field($params_array_layer['static_layer']) : 0);
781
+ $infinite_in = ((isset($params_array_layer['infinite_in'])) ? (int) sanitize_text_field($params_array_layer['infinite_in']) : 1);
782
+ $infinite_out = ((isset($params_array_layer['infinite_out'])) ? (int) sanitize_text_field($params_array_layer['infinite_out']) : 1);
783
+ $min_size = ((isset($params_array_layer['min_size'])) ? (int) sanitize_text_field($params_array_layer['min_size']) : 11);
784
  $title_dimension = array();
785
  $title_dimension['title'] = $title;
786
  $title_dimension['attr_width'] = $attr_width;
admin/controllers/WDSControllerGoptions_wds.php CHANGED
@@ -29,8 +29,8 @@ class WDSControllerGoptions_wds {
29
 
30
  public function save_font_family() {
31
  $wds_global_options = json_decode(get_option("wds_global_options"), true);
32
- $possib_add_ffamily = (isset($_REQUEST['possib_add_ffamily']) ? esc_html($_REQUEST['possib_add_ffamily']) : '');
33
- $possib_add_ffamily_google = (isset($_REQUEST['possib_add_ffamily_google']) ? esc_html($_REQUEST['possib_add_ffamily_google']) : '');
34
 
35
  $wds_global_options['possib_add_ffamily'] = $possib_add_ffamily;
36
  $wds_global_options['possib_add_ffamily_google'] = $possib_add_ffamily_google;
@@ -46,22 +46,22 @@ class WDSControllerGoptions_wds {
46
 
47
  public function save() {
48
  $register_scripts = (isset($_REQUEST['register_scripts']) ? (int) $_REQUEST['register_scripts'] : 0);
49
- $loading_gif = (isset($_REQUEST['loading_gif']) ? esc_html($_REQUEST['loading_gif']) : 0);
50
- $default_layer_fweight = (isset($_REQUEST['default_layer_fweight']) ? esc_html($_REQUEST['default_layer_fweight']) : '');
51
- $default_layer_start = (isset($_REQUEST['default_layer_start']) ? esc_html($_REQUEST['default_layer_start']) : 0);
52
- $default_layer_effect_in = (isset($_REQUEST['default_layer_effect_in']) ? esc_html($_REQUEST['default_layer_effect_in']) : '');
53
- $default_layer_duration_eff_in = (isset($_REQUEST['default_layer_duration_eff_in']) ? esc_html($_REQUEST['default_layer_duration_eff_in']) : 0);
54
- $default_layer_infinite_in = (isset($_REQUEST['default_layer_infinite_in']) ? esc_html($_REQUEST['default_layer_infinite_in']) : 1);
55
- $default_layer_end = (isset($_REQUEST['default_layer_end']) ? esc_html($_REQUEST['default_layer_end']) : 0);
56
- $default_layer_effect_out = (isset($_REQUEST['default_layer_effect_out']) ? esc_html($_REQUEST['default_layer_effect_out']) : '');
57
- $default_layer_duration_eff_out = (isset($_REQUEST['default_layer_duration_eff_out']) ? esc_html($_REQUEST['default_layer_duration_eff_out']) : 0);
58
- $default_layer_infinite_out = (isset($_REQUEST['default_layer_infinite_out']) ? esc_html($_REQUEST['default_layer_infinite_out']) : 1);
59
- $default_layer_add_class = (isset($_REQUEST['default_layer_add_class']) ? esc_html($_REQUEST['default_layer_add_class']) : '');
60
- $default_layer_ffamily = (isset($_REQUEST['default_layer_ffamily']) ? esc_html($_REQUEST['default_layer_ffamily']) : '');
61
- $default_layer_google_fonts = (isset($_REQUEST['default_layer_google_fonts']) ? esc_html($_REQUEST['default_layer_google_fonts']) : 0);
62
- $spider_uploader = (isset($_REQUEST['spider_uploader']) ? esc_html($_REQUEST['spider_uploader']) : 0);
63
- $possib_add_ffamily = (isset($_REQUEST['possib_add_ffamily']) ? esc_html($_REQUEST['possib_add_ffamily']) : '');
64
- $possib_add_ffamily_google = (isset($_REQUEST['possib_add_ffamily_google']) ? esc_html($_REQUEST['possib_add_ffamily_google']) : '');
65
  $global_options = array(
66
  'default_layer_fweight' => $default_layer_fweight,
67
  'default_layer_start' => $default_layer_start,
@@ -92,39 +92,39 @@ class WDSControllerGoptions_wds {
92
 
93
 
94
  public function change_layer_options() {
95
- $choose_slider_id = (isset($_REQUEST["choose_slider"]) ? esc_html($_REQUEST['choose_slider']) : '');
96
- $default_layer_ffamily_check = (isset($_REQUEST["default_layer_ffamily_check"]) ? esc_html($_REQUEST['default_layer_ffamily_check']) : 0);
97
- $default_layer_fweight_check = (isset($_REQUEST["default_layer_fweight_check"]) ? esc_html($_REQUEST['default_layer_fweight_check']) : 0);
98
- $default_layer_effect_in_check = (isset($_REQUEST["default_layer_effect_in_check"]) ? esc_html($_REQUEST['default_layer_effect_in_check']) : 0);
99
- $default_layer_effect_out_check = (isset($_REQUEST["default_layer_effect_out_check"]) ? esc_html($_REQUEST['default_layer_effect_out_check']) : 0);
100
- $default_layer_add_class_check = (isset($_REQUEST["default_layer_add_class_check"]) ? esc_html($_REQUEST['default_layer_add_class_check']) : 0);
101
 
102
  $default_array = array();
103
  if ($default_layer_ffamily_check) {
104
- $default_layer_ffamily = (isset($_REQUEST['default_layer_ffamily']) ? esc_html($_REQUEST['default_layer_ffamily']) : '');
105
- $default_layer_google_fonts = (isset($_REQUEST['default_layer_google_fonts']) ? esc_html($_REQUEST['default_layer_google_fonts']) : 0);
106
  array_push($default_array, '`ffamily`="' . $default_layer_ffamily . '"', '`google_fonts`="' . $default_layer_google_fonts . '"');
107
  }
108
  if ($default_layer_fweight_check) {
109
- $default_layer_fweight = (isset($_REQUEST['default_layer_fweight']) ? esc_html($_REQUEST['default_layer_fweight']) : '');
110
  array_push($default_array, '`fweight`="' . $default_layer_fweight . '"');
111
  }
112
  if ($default_layer_effect_in_check) {
113
- $default_layer_start = (isset($_REQUEST['default_layer_start']) ? esc_html($_REQUEST['default_layer_start']) : 0);
114
- $default_layer_effect_in = (isset($_REQUEST['default_layer_effect_in']) ? esc_html($_REQUEST['default_layer_effect_in']) : '');
115
- $default_layer_duration_eff_in = (isset($_REQUEST['default_layer_duration_eff_in']) ? esc_html($_REQUEST['default_layer_duration_eff_in']) : 0);
116
- $default_layer_infinite_in = (isset($_REQUEST['default_layer_infinite_in']) ? esc_html($_REQUEST['default_layer_infinite_in']) : 1);
117
  array_push($default_array, '`start`=' . $default_layer_start, '`layer_effect_in`="' . $default_layer_effect_in . '"', '`duration_eff_in`=' . $default_layer_duration_eff_in, '`infinite_in`=' . $default_layer_infinite_in);
118
  }
119
  if ($default_layer_effect_out_check) {
120
- $default_layer_end = (isset($_REQUEST['default_layer_end']) ? esc_html($_REQUEST['default_layer_end']) : 0);
121
- $default_layer_effect_out = (isset($_REQUEST['default_layer_effect_out']) ? esc_html($_REQUEST['default_layer_effect_out']) : '');
122
- $default_layer_duration_eff_out = (isset($_REQUEST['default_layer_duration_eff_out']) ? esc_html($_REQUEST['default_layer_duration_eff_out']) : 0);
123
- $default_layer_infinite_out = (isset($_REQUEST['default_layer_infinite_out']) ? esc_html($_REQUEST['default_layer_infinite_out']) : 1);
124
  array_push($default_array, '`end`=' . $default_layer_end, 'layer_effect_out="' . $default_layer_effect_out . '"', 'duration_eff_out=' . $default_layer_duration_eff_out, '`infinite_out`=' . $default_layer_infinite_out);
125
  }
126
  if ($default_layer_add_class_check) {
127
- $default_layer_add_class = (isset($_REQUEST['default_layer_add_class']) ? esc_html($_REQUEST['default_layer_add_class']) : '');
128
  array_push($default_array, '`add_class`="' . $default_layer_add_class . '"');
129
  }
130
  global $wpdb;
29
 
30
  public function save_font_family() {
31
  $wds_global_options = json_decode(get_option("wds_global_options"), true);
32
+ $possib_add_ffamily = (isset($_REQUEST['possib_add_ffamily']) ? sanitize_text_field($_REQUEST['possib_add_ffamily']) : '');
33
+ $possib_add_ffamily_google = (isset($_REQUEST['possib_add_ffamily_google']) ? sanitize_text_field($_REQUEST['possib_add_ffamily_google']) : '');
34
 
35
  $wds_global_options['possib_add_ffamily'] = $possib_add_ffamily;
36
  $wds_global_options['possib_add_ffamily_google'] = $possib_add_ffamily_google;
46
 
47
  public function save() {
48
  $register_scripts = (isset($_REQUEST['register_scripts']) ? (int) $_REQUEST['register_scripts'] : 0);
49
+ $loading_gif = (isset($_REQUEST['loading_gif']) ? sanitize_text_field($_REQUEST['loading_gif']) : 0);
50
+ $default_layer_fweight = (isset($_REQUEST['default_layer_fweight']) ? sanitize_text_field($_REQUEST['default_layer_fweight']) : '');
51
+ $default_layer_start = (isset($_REQUEST['default_layer_start']) ? sanitize_text_field($_REQUEST['default_layer_start']) : 0);
52
+ $default_layer_effect_in = (isset($_REQUEST['default_layer_effect_in']) ? sanitize_text_field($_REQUEST['default_layer_effect_in']) : '');
53
+ $default_layer_duration_eff_in = (isset($_REQUEST['default_layer_duration_eff_in']) ? sanitize_text_field($_REQUEST['default_layer_duration_eff_in']) : 0);
54
+ $default_layer_infinite_in = (isset($_REQUEST['default_layer_infinite_in']) ? sanitize_text_field($_REQUEST['default_layer_infinite_in']) : 1);
55
+ $default_layer_end = (isset($_REQUEST['default_layer_end']) ? sanitize_text_field($_REQUEST['default_layer_end']) : 0);
56
+ $default_layer_effect_out = (isset($_REQUEST['default_layer_effect_out']) ? sanitize_text_field($_REQUEST['default_layer_effect_out']) : '');
57
+ $default_layer_duration_eff_out = (isset($_REQUEST['default_layer_duration_eff_out']) ? sanitize_text_field($_REQUEST['default_layer_duration_eff_out']) : 0);
58
+ $default_layer_infinite_out = (isset($_REQUEST['default_layer_infinite_out']) ? sanitize_text_field($_REQUEST['default_layer_infinite_out']) : 1);
59
+ $default_layer_add_class = (isset($_REQUEST['default_layer_add_class']) ? sanitize_text_field($_REQUEST['default_layer_add_class']) : '');
60
+ $default_layer_ffamily = (isset($_REQUEST['default_layer_ffamily']) ? sanitize_text_field($_REQUEST['default_layer_ffamily']) : '');
61
+ $default_layer_google_fonts = (isset($_REQUEST['default_layer_google_fonts']) ? sanitize_text_field($_REQUEST['default_layer_google_fonts']) : 0);
62
+ $spider_uploader = (isset($_REQUEST['spider_uploader']) ? sanitize_text_field($_REQUEST['spider_uploader']) : 0);
63
+ $possib_add_ffamily = (isset($_REQUEST['possib_add_ffamily']) ? sanitize_text_field($_REQUEST['possib_add_ffamily']) : '');
64
+ $possib_add_ffamily_google = (isset($_REQUEST['possib_add_ffamily_google']) ? sanitize_text_field($_REQUEST['possib_add_ffamily_google']) : '');
65
  $global_options = array(
66
  'default_layer_fweight' => $default_layer_fweight,
67
  'default_layer_start' => $default_layer_start,
92
 
93
 
94
  public function change_layer_options() {
95
+ $choose_slider_id = (isset($_REQUEST["choose_slider"]) ? sanitize_text_field($_REQUEST['choose_slider']) : '');
96
+ $default_layer_ffamily_check = (isset($_REQUEST["default_layer_ffamily_check"]) ? sanitize_text_field($_REQUEST['default_layer_ffamily_check']) : 0);
97
+ $default_layer_fweight_check = (isset($_REQUEST["default_layer_fweight_check"]) ? sanitize_text_field($_REQUEST['default_layer_fweight_check']) : 0);
98
+ $default_layer_effect_in_check = (isset($_REQUEST["default_layer_effect_in_check"]) ? sanitize_text_field($_REQUEST['default_layer_effect_in_check']) : 0);
99
+ $default_layer_effect_out_check = (isset($_REQUEST["default_layer_effect_out_check"]) ? sanitize_text_field($_REQUEST['default_layer_effect_out_check']) : 0);
100
+ $default_layer_add_class_check = (isset($_REQUEST["default_layer_add_class_check"]) ? sanitize_text_field($_REQUEST['default_layer_add_class_check']) : 0);
101
 
102
  $default_array = array();
103
  if ($default_layer_ffamily_check) {
104
+ $default_layer_ffamily = (isset($_REQUEST['default_layer_ffamily']) ? sanitize_text_field($_REQUEST['default_layer_ffamily']) : '');
105
+ $default_layer_google_fonts = (isset($_REQUEST['default_layer_google_fonts']) ? sanitize_text_field($_REQUEST['default_layer_google_fonts']) : 0);
106
  array_push($default_array, '`ffamily`="' . $default_layer_ffamily . '"', '`google_fonts`="' . $default_layer_google_fonts . '"');
107
  }
108
  if ($default_layer_fweight_check) {
109
+ $default_layer_fweight = (isset($_REQUEST['default_layer_fweight']) ? sanitize_text_field($_REQUEST['default_layer_fweight']) : '');
110
  array_push($default_array, '`fweight`="' . $default_layer_fweight . '"');
111
  }
112
  if ($default_layer_effect_in_check) {
113
+ $default_layer_start = (isset($_REQUEST['default_layer_start']) ? sanitize_text_field($_REQUEST['default_layer_start']) : 0);
114
+ $default_layer_effect_in = (isset($_REQUEST['default_layer_effect_in']) ? sanitize_text_field($_REQUEST['default_layer_effect_in']) : '');
115
+ $default_layer_duration_eff_in = (isset($_REQUEST['default_layer_duration_eff_in']) ? sanitize_text_field($_REQUEST['default_layer_duration_eff_in']) : 0);
116
+ $default_layer_infinite_in = (isset($_REQUEST['default_layer_infinite_in']) ? sanitize_text_field($_REQUEST['default_layer_infinite_in']) : 1);
117
  array_push($default_array, '`start`=' . $default_layer_start, '`layer_effect_in`="' . $default_layer_effect_in . '"', '`duration_eff_in`=' . $default_layer_duration_eff_in, '`infinite_in`=' . $default_layer_infinite_in);
118
  }
119
  if ($default_layer_effect_out_check) {
120
+ $default_layer_end = (isset($_REQUEST['default_layer_end']) ? sanitize_text_field($_REQUEST['default_layer_end']) : 0);
121
+ $default_layer_effect_out = (isset($_REQUEST['default_layer_effect_out']) ? sanitize_text_field($_REQUEST['default_layer_effect_out']) : '');
122
+ $default_layer_duration_eff_out = (isset($_REQUEST['default_layer_duration_eff_out']) ? sanitize_text_field($_REQUEST['default_layer_duration_eff_out']) : 0);
123
+ $default_layer_infinite_out = (isset($_REQUEST['default_layer_infinite_out']) ? sanitize_text_field($_REQUEST['default_layer_infinite_out']) : 1);
124
  array_push($default_array, '`end`=' . $default_layer_end, 'layer_effect_out="' . $default_layer_effect_out . '"', 'duration_eff_out=' . $default_layer_duration_eff_out, '`infinite_out`=' . $default_layer_infinite_out);
125
  }
126
  if ($default_layer_add_class_check) {
127
+ $default_layer_add_class = (isset($_REQUEST['default_layer_add_class']) ? sanitize_text_field($_REQUEST['default_layer_add_class']) : '');
128
  array_push($default_array, '`add_class`="' . $default_layer_add_class . '"');
129
  }
130
  global $wpdb;
admin/controllers/WDSControllerUninstall_wds.php CHANGED
@@ -16,7 +16,7 @@ class WDSControllerUninstall_wds {
16
  }
17
 
18
  public function execute() {
19
- $task = ((isset($_POST['task'])) ? esc_html(stripslashes($_POST['task'])) : '');
20
  if (method_exists($this, $task)) {
21
  check_admin_referer('nonce_wd', 'nonce_wd');
22
  $this->$task();
16
  }
17
 
18
  public function execute() {
19
+ $task = ((isset($_POST['task'])) ? sanitize_text_field($_POST['task']) : '');
20
  if (method_exists($this, $task)) {
21
  check_admin_referer('nonce_wd', 'nonce_wd');
22
  $this->$task();
admin/models/posts.php CHANGED
@@ -5,13 +5,13 @@
5
  */
6
  class WDSModelposts {
7
  public function get_rows_data() {
8
- $search_value = ((isset($_POST['search_value'])) ? esc_html(stripslashes($_POST['search_value'])) : '');
9
- $category_id = ((isset($_POST['category_id']) && esc_html(stripslashes($_POST['category_id'])) != -1) ? esc_html(stripslashes($_POST['category_id'])) : '');
10
  $category_name = $category_id ? get_the_category_by_ID($category_id) : '';
11
- $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? esc_html(stripslashes($_POST['asc_or_desc'])) : 'ASC');
12
- $order_by = (isset($_POST['order_by']) ? esc_html(stripslashes($_POST['order_by'])) : 'date');
13
  if (isset($_POST['page_number']) && $_POST['page_number']) {
14
- $limit = ((int) $_POST['page_number'] - 1) * 20;
15
  }
16
  else {
17
  $limit = 0;
5
  */
6
  class WDSModelposts {
7
  public function get_rows_data() {
8
+ $search_value = ((isset($_POST['search_value'])) ? sanitize_text_field($_POST['search_value']) : '');
9
+ $category_id = ((isset($_POST['category_id']) && $_POST['category_id'] != -1) ? sanitize_text_field($_POST['category_id']) : '');
10
  $category_name = $category_id ? get_the_category_by_ID($category_id) : '';
11
+ $asc_or_desc = ((isset($_POST['asc_or_desc'])) ? sanitize_text_field($_POST['asc_or_desc']) : 'ASC');
12
+ $order_by = (isset($_POST['order_by']) ? sanitize_text_field($_POST['order_by']) : 'date');
13
  if (isset($_POST['page_number']) && $_POST['page_number']) {
14
+ $limit = ((int) sanitize_text_field($_POST['page_number']) - 1) * 20;
15
  }
16
  else {
17
  $limit = 0;
filemanager/controller.php CHANGED
@@ -207,18 +207,18 @@ class FilemanagerController {
207
 
208
  $msg = '';
209
 
210
- $file_names = explode('**#**', (isset($_REQUEST['clipboard_files']) ? stripslashes($_REQUEST['clipboard_files']) : ''));
211
- $src_dir = (isset($_REQUEST['clipboard_src']) ? stripslashes($_REQUEST['clipboard_src']) : '');
212
  $src_dir = $src_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $src_dir;
213
  $src_dir = htmlspecialchars_decode($src_dir, ENT_COMPAT | ENT_QUOTES);
214
  $src_dir = $this->esc_dir($src_dir);
215
 
216
- $dest_dir = (isset($_REQUEST['clipboard_dest']) ? stripslashes($_REQUEST['clipboard_dest']) : '');
217
  $dest_dir = $dest_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $dest_dir;
218
  $dest_dir = htmlspecialchars_decode($dest_dir, ENT_COMPAT | ENT_QUOTES);
219
  $dest_dir = $this->esc_dir($dest_dir);
220
 
221
- switch ((isset($_REQUEST['clipboard_task']) ? stripslashes($_REQUEST['clipboard_task']) : '')) {
222
  case 'copy':
223
  foreach ($file_names as $file_name) {
224
  $file_name = htmlspecialchars_decode($file_name, ENT_COMPAT | ENT_QUOTES);
207
 
208
  $msg = '';
209
 
210
+ $file_names = explode('**#**', (isset($_REQUEST['clipboard_files']) ? sanitize_text_field($_REQUEST['clipboard_files']) : ''));
211
+ $src_dir = (isset($_REQUEST['clipboard_src']) ? esc_url_raw($_REQUEST['clipboard_src']) : '');
212
  $src_dir = $src_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $src_dir;
213
  $src_dir = htmlspecialchars_decode($src_dir, ENT_COMPAT | ENT_QUOTES);
214
  $src_dir = $this->esc_dir($src_dir);
215
 
216
+ $dest_dir = (isset($_REQUEST['clipboard_dest']) ? esc_url_raw($_REQUEST['clipboard_dest']) : '');
217
  $dest_dir = $dest_dir == '' ? $this->uploads_dir : $this->uploads_dir . '/' . $dest_dir;
218
  $dest_dir = htmlspecialchars_decode($dest_dir, ENT_COMPAT | ENT_QUOTES);
219
  $dest_dir = $this->esc_dir($dest_dir);
220
 
221
+ switch ((isset($_REQUEST['clipboard_task']) ? sanitize_text_field($_REQUEST['clipboard_task']) : '')) {
222
  case 'copy':
223
  foreach ($file_names as $file_name) {
224
  $file_name = htmlspecialchars_decode($file_name, ENT_COMPAT | ENT_QUOTES);
filemanager/view.php CHANGED
@@ -30,7 +30,7 @@ class FilemanagerView {
30
  // Public Methods //
31
  ////////////////////////////////////////////////////////////////////////////////////////
32
  public function display() {
33
- if (isset($_GET['filemanager_msg']) && esc_html($_GET['filemanager_msg']) != '') {
34
  ?>
35
  <div id="file_manager_message" style="height:40px;">
36
  <div style="background-color: #FFEBE8; border: 1px solid #CC0000; margin: 5px 15px 2px; padding: 5px 10px;">
@@ -193,9 +193,9 @@ class FilemanagerView {
193
  <div id="explorer_body" data-files_count="<?php echo $file_manager_data["files_count"]; ?>">
194
  <?php
195
  foreach ($file_manager_data['files'] as $key => $file) {
196
- $file['name'] = esc_html($file['name']);
197
- $file['filename'] = esc_html($file['filename']);
198
- $file['thumb'] = esc_html($file['thumb']);
199
  ?>
200
  <div class="explorer_item" draggable="true"
201
  name="<?php echo $file['name']; ?>"
@@ -252,7 +252,7 @@ class FilemanagerView {
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()->prefix); ?></a>
258
  </div>
@@ -348,11 +348,11 @@ class FilemanagerView {
348
  </div>
349
  </div>
350
  <input type="hidden" name="task" value="" />
351
- <input type="hidden" name="extensions" value="<?php echo (isset($_REQUEST['extensions']) ? esc_html($_REQUEST['extensions']) : 'jpg,jpeg,png,gif'); ?>" />
352
- <input type="hidden" name="callback" value="<?php echo (isset($_REQUEST['callback']) ? esc_html($_REQUEST['callback']) : 'wds_add_image'); ?>" />
353
- <input type="hidden" name="image_for" value="<?php echo (isset($_REQUEST['image_for']) ? esc_html($_REQUEST['image_for']) : 'add_slides'); ?>" />
354
- <input type="hidden" name="slide_id" value="<?php echo (isset($_REQUEST['slide_id']) ? esc_html($_REQUEST['slide_id']) : ''); ?>" />
355
- <input type="hidden" name="layer_id" value="<?php echo (isset($_REQUEST['layer_id']) ? esc_html($_REQUEST['layer_id']) : ''); ?>" />
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; ?>" />
30
  // Public Methods //
31
  ////////////////////////////////////////////////////////////////////////////////////////
32
  public function display() {
33
+ if (isset($_GET['filemanager_msg']) && $_GET['filemanager_msg'] != '') {
34
  ?>
35
  <div id="file_manager_message" style="height:40px;">
36
  <div style="background-color: #FFEBE8; border: 1px solid #CC0000; margin: 5px 15px 2px; padding: 5px 10px;">
193
  <div id="explorer_body" data-files_count="<?php echo $file_manager_data["files_count"]; ?>">
194
  <?php
195
  foreach ($file_manager_data['files'] as $key => $file) {
196
+ $file['name'] = esc_attr($file['name']);
197
+ $file['filename'] = esc_attr($file['filename']);
198
+ $file['thumb'] = esc_attr($file['thumb']);
199
  ?>
200
  <div class="explorer_item" draggable="true"
201
  name="<?php echo $file['name']; ?>"
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']) && $_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()->prefix); ?></a>
258
  </div>
348
  </div>
349
  </div>
350
  <input type="hidden" name="task" value="" />
351
+ <input type="hidden" name="extensions" value="<?php echo (isset($_REQUEST['extensions']) ? esc_attr($_REQUEST['extensions']) : 'jpg,jpeg,png,gif'); ?>" />
352
+ <input type="hidden" name="callback" value="<?php echo (isset($_REQUEST['callback']) ? esc_attr($_REQUEST['callback']) : 'wds_add_image'); ?>" />
353
+ <input type="hidden" name="image_for" value="<?php echo (isset($_REQUEST['image_for']) ? esc_attr($_REQUEST['image_for']) : 'add_slides'); ?>" />
354
+ <input type="hidden" name="slide_id" value="<?php echo (isset($_REQUEST['slide_id']) ? esc_attr($_REQUEST['slide_id']) : ''); ?>" />
355
+ <input type="hidden" name="layer_id" value="<?php echo (isset($_REQUEST['layer_id']) ? esc_attr($_REQUEST['layer_id']) : ''); ?>" />
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; ?>" />
framework/WDW_S_Library.php CHANGED
@@ -290,7 +290,7 @@ class WDW_S_Library {
290
  <input type="search"
291
  id="search_value"
292
  name="search_value"
293
- value="<?php echo esc_html($search_value); ?>"
294
  onkeypress="spider_search(event)" />
295
  <input type="button" value="<?php _e('Search', WDS()->prefix); ?>" onclick="spider_search()" class="button" />
296
  </div>
@@ -430,8 +430,8 @@ class WDW_S_Library {
430
  ?>
431
  </span>
432
  </div>
433
- <input type="hidden" id="page_number" name="page_number" value="<?php echo ((isset($_POST['page_number'])) ? (int) $_POST['page_number'] : 1); ?>" />
434
- <input type="hidden" id="search_or_not" name="search_or_not" value="<?php echo ((isset($_POST['search_or_not'])) ? esc_html($_POST['search_or_not']) : ''); ?>"/>
435
  <?php
436
  }
437
 
@@ -540,8 +540,8 @@ class WDW_S_Library {
540
  ?>
541
  </span>
542
  </div>
543
- <input type="hidden" id="page_number" name="page_number" value="<?php echo ((isset($_POST['page_number'])) ? (int) $_POST['page_number'] : 1); ?>" />
544
- <input type="hidden" id="search_or_not" name="search_or_not" value="<?php echo ((isset($_POST['search_or_not'])) ? esc_html($_POST['search_or_not']) : ''); ?>"/>
545
  <?php
546
  }
547
 
@@ -2427,7 +2427,7 @@ class WDW_S_Library {
2427
  * @return string Top bar html.
2428
  */
2429
  public static function topbar() {
2430
- $page = isset($_GET['page']) ? esc_html($_GET['page']) : '';
2431
  $user_guide_link = 'https://help.10web.io/hc/en-us/articles/';
2432
  $show_content = true;
2433
  $show_guide_link = true;
290
  <input type="search"
291
  id="search_value"
292
  name="search_value"
293
+ value="<?php echo esc_attr($search_value); ?>"
294
  onkeypress="spider_search(event)" />
295
  <input type="button" value="<?php _e('Search', WDS()->prefix); ?>" onclick="spider_search()" class="button" />
296
  </div>
430
  ?>
431
  </span>
432
  </div>
433
+ <input type="hidden" id="page_number" name="page_number" value="<?php echo ((isset($_POST['page_number'])) ? (int) esc_attr($_POST['page_number']) : 1); ?>" />
434
+ <input type="hidden" id="search_or_not" name="search_or_not" value="<?php echo ((isset($_POST['search_or_not'])) ? esc_attr($_POST['search_or_not']) : ''); ?>"/>
435
  <?php
436
  }
437
 
540
  ?>
541
  </span>
542
  </div>
543
+ <input type="hidden" id="page_number" name="page_number" value="<?php echo ((isset($_POST['page_number'])) ? (int) esc_attr($_POST['page_number']) : 1); ?>" />
544
+ <input type="hidden" id="search_or_not" name="search_or_not" value="<?php echo ((isset($_POST['search_or_not'])) ? esc_attr($_POST['search_or_not']) : ''); ?>"/>
545
  <?php
546
  }
547
 
2427
  * @return string Top bar html.
2428
  */
2429
  public static function topbar() {
2430
+ $page = isset($_GET['page']) ? $_GET['page'] : '';
2431
  $user_guide_link = 'https://help.10web.io/hc/en-us/articles/';
2432
  $show_content = true;
2433
  $show_guide_link = true;
readme.txt CHANGED
@@ -2,71 +2,131 @@
2
  Contributors: webdorado,10web
3
  Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gallery slider, images slider, Photo Slider, post slider, slider plugin
4
  Requires at least: 3.4
5
- Tested up to: 5.0
6
  Requires PHP: 5.2
7
- Stable tag: 1.2.22
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Slider by 10Web plugin is the perfect slider solution for Wordpress. Create a great responsive slideshow with Slider by 10Web.
12
-
13
- == Description ==
14
 
 
15
 
16
- https://www.youtube.com/watch?v=xebpM_-GwG0&index=1&list=PLnxWPiY5tLFWQf5XaEYYPZj0gdggUrVxP
17
 
18
- = Useful Links: =
19
- [Special Offer for all Premium Plugins](https://10web.io/plugins-bundle-pricing/)
20
- [WordPress Slider Plugin](https://10web.io/plugins/wordpress-slider/)
21
- [Demo](https://demo.10web.io/slider/)
22
- [User Manual](https://docs.10web.io/docs/slider-wd/indroduction.html)
23
- [Support Forum](https://wordpress.org/support/plugin/slider-wd)
24
 
 
 
 
 
 
 
 
 
 
25
 
26
- Slider by 10Web is a versatile solution to help you add fast loading, responsive and SEO-friendly sliders to your website pages, posts, theme header or any other location. The plugin supports both images and videos on the slides, which further could be spiced up with various transition effects. Filmstrip, carousel and parallax effects of Premium version will have your slides look even better. You can create multi-functional sliders in Premium version, by applying text, image, video, hotspot and social media button layers to the slides. Every feature of the slides, from text size, navigation buttons to slide loading icon, can be customized, giving you a myriad of options to experiment with style and design. It’s by far the easiest solution to create beautiful sliders, which you can add to your website with a shortcode, by inserting into the theme using the PHP function or through widget. Slider by 10Web supports swipe control to make sure your slides look great on touchscreen devices. If you’re looking for power-packed slider plugin which is also user-friendly, go ahead, download it and test the plugin yourself.
27
 
28
- == Benefits ==
29
- * **User engagement** - Sliders are engaging. Once you add beautiful slides to your posts or pages with some high quality images and appealing styling, you may observe improved user engagement rates.
30
- * **Better user experience** - With its swipe control support Slider by 10Web will provide better user experience on your website. No matter the device or the screen size you can make sure your slides will perform as they should.
31
- * **Differentiation** - From simple text color and fonts, to hotspot animation and effect duration, there are almost unlimited styling options you can try. Factor in support for custom CSS and you will have more space and flexibility with the styling of your sliders.
32
- * **High level of personalization** - One of the best things about Slider by 10Web is its flexibility! You can adjust and customize every aspect of your slides.You can play with all the features of the slides and have them match with your website’s design and overall look and feel.
33
- * **Grabbing users’ attention** - Since the sliders can be basically placed anywhere on your website, it’s a great way to bring attention to any information you want to highlight. Whether it’s an announcement, new post, or just one of your recent video tutorials, you can make sure it will catch the eye.
34
- * **Easy to set up, use and customize** - Plugin was developed with users in mind. Anyone from beginners to WordPress profs will be able to easily create and customize the sliders without any coding skills.
35
- * **Get Support** - Ger timely and effective support to all its users. We keep standards high and response time low.
36
 
37
 
38
- == What’s in it ==
 
 
 
 
39
 
40
- = UNLIMITED SLIDES AND SLIDERS =
41
 
42
- Slider by 10Web allows you to add unlimited number of sliders to your website with as many slides as you want. Easily insert the sliders to any of your posts or pages with the generated shortcode.
43
 
44
 
45
- = MULTIPLE LAYERS =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
- The Premium version allows for creation of multi-functional sliders using the available image, text, video , social media and hotspot layers. Apart from uploading video files from your pc, you can also embed media from YouTube, Vimeo, Instagram, Flickr or Dailymotion using the file’s URL.
 
 
 
 
 
 
 
48
 
49
 
50
- = MULTIPLE TRANSITION AND LAYER EFFECTS =
51
 
52
- Slider by 10Web Premium version offers 27 slide transition and 38 mind-blowing layer effects to give your slides a distinct look. You can specify the start/end point of the effects, as well as specify the effect duration.
53
 
 
 
 
 
54
 
55
- = IMAGE WATERMARKING =
 
 
 
56
 
57
- Add text and image watermarks to your slides, by selecting the size, transparency, and one of the available nine watermark positions.
 
 
 
58
 
59
- = SOCIAL SHARING BUTTONS =
60
 
61
- Add a social sharing buttons’ layer to your slides in Premium version. You can customize almost every aspect of the buttons and enable your visitors to share your slides across the major social media platforms, like Facebook, Google +, Twitter, Pinterest and Tumbler.
 
 
 
62
 
63
- = PARALLAX AND CAROUSEL SUPPORT =
64
 
65
- Premium version adds Parallax and carousel support. You can set to display the slides in carousel view, which shows the main image at the foreground, while having the rest of the images at the background. The parallax effect will create modern 3D-like effects on the slides and take them to the next level.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
 
67
- = SLIDER EXPORT/IMPORT =
68
 
69
- If you want to export/import your slides from one website to another, that’s absolutely doable with Slider by 10Web Premium version. You can choose to transfer the slider with pictures and settings, or you can transfer only the settings of the slider and then add your images afterwards.
70
 
71
  = SETTINGS/CUSTOMIZATION =
72
  *Some customizations described here are available in Premium version. Please refer to feature summary for additional info.
@@ -74,27 +134,8 @@ If you want to export/import your slides from one website to another, that’s a
74
  Slider by 10Web has an intuitive drag and drop interface, which makes it easy to create, organize and customize your slides. All the slider options as well as the plugin overview is available at the admin panel. This is basically where you can create the sliders and make the necessary changes as you go. Under the plugin’s global options, you’ll find the default options for layers and some other general settings, such as enabling Slider by 10Web media upload, choosing the loading icon,adding font families, etc. All the other options for customizing the slides can be found under the sliders section, the place where you can actually start adding new slides. The user friendly interface lets you easily add images and videos to the slides, as well as embed media from popular social platforms. Beneath the added slides you’ll find the available layers that you can apply to them, each of the layers coming with its own set of settings. Before you save the final version of the slide you can preview all the changes you’ve made. At the top of the page,you’ll also find a settings icon,where you can configure the settings for the slider you’re working on. From this section you can activate carousel view, give custom styling to bullets and buttons, adjust settings for filmstrip view, as well as configure the settings for watermarking. Also, you can add custom CSS to the slides for the additional styling features.
75
 
76
 
77
- [Premium version adds](https://10web.io/plugins/wordpress-slider/)
78
-
79
- * 27 Transition effects for slider
80
- * 38 Layer effects
81
- * Support for posts in the slides
82
- * Video Slide support (YouTube slider and Vimeo slider)
83
- * Dailymotion, Instagram and Flickr embed
84
- * Layers (text, image and media embed)- Video Manual
85
- * Social sharing buttons layer (Google+, Tumblr, Twitter, Pinterest and Facebook)
86
- * Hotspot layer
87
- * Filmstrip support
88
- * Custom styles for navigation buttons/bullets
89
- * Support for Parallax Slider
90
- * Support for Carousel effect
91
- * Video Slide and layer (mp4)
92
- * Slider Export/Import.
93
-
94
-
95
  ###IMPORTANT:
96
- If you think you found a bug in Slider by 10Web or have any problem/question concerning the plugin, please check out [WordPress Slider Support Forum](https://wordpress.org/support/plugin/slider-wd) in our website. If you do not find a solution here, do not hesitate to [click here to contact us](https://10web.io/contact-us/).
97
-
98
 
99
  == Installation ==
100
 
@@ -446,7 +487,7 @@ The plugin takes the full width of the widget area if the **Boxed Layout** in **
446
 
447
  == Changelog ==
448
 
449
- = 1.2.22 =
450
  * Fixed: Security issue.
451
 
452
  = 1.2.21 =
2
  Contributors: webdorado,10web
3
  Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gallery slider, images slider, Photo Slider, post slider, slider plugin
4
  Requires at least: 3.4
5
+ Tested up to: 5.1
6
  Requires PHP: 5.2
7
+ Stable tag: 1.2.23
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
 
 
 
11
 
12
+ Slider is an functional and yet easy-to-use plugin for creating elegant and mobile-friendly sliders. Create a great responsive slideshow with Slider by 10Web.
13
 
14
+ == Description ==
15
 
16
+ Slider is an functional and yet easy-to-use plugin for creating elegant and mobile-friendly sliders.
 
 
 
 
 
17
 
18
+ = Useful Links: =
19
+
20
+ [Live Demo](https://demo.10web.io/slider/)
21
+
22
+
23
+ [Premium Slider by 10Web](https://10web.io/plugins/wordpress-slider/)
24
+
25
+
26
+ [Special Offer for all Premium Plugins](https://10web.io/plugins-bundle-pricing/)
27
 
 
28
 
29
+ https://www.youtube.com/watch?v=xebpM_-GwG0&index=1&list=PLnxWPiY5tLFWQf5XaEYYPZj0gdggUrVxP
 
 
 
 
 
 
 
30
 
31
 
32
+ Are you having trouble creating the slider you need?
33
+
34
+ Are your sliders visually not appealing enough?
35
+
36
+ Do you waste time trying to find the right slider plugin?
37
 
 
38
 
39
+ == Slider by 10Web Features ==
40
 
41
 
42
+ **Drag & Drop Management**
43
+ Simply drag and drop your slides & layers.
44
+
45
+ **Mobile-Friendly & Responsive**
46
+ Create sliders that look great on any screen.
47
+
48
+ **Wide Slider**
49
+ Let your slider fully cover the width of the browser.
50
+
51
+ **Manageable Layers\***
52
+ Add multiple text, image, video, media, social and hotspot layers.
53
+
54
+ **Customizable Transitions\***
55
+ Pick the transition effect you like the best out of 27 options.
56
+
57
+ **SEO-Optimizable**
58
+ Make your slides rank high on Google.
59
+
60
+ **Video Slides**
61
+ Effortlessly embed Youtube, Vimeo and other videos into your slide.
62
+
63
+ **Carousel\***
64
+ Showcase your content as a carousel to make it more beautiful.
65
+
66
+ **Parallax\***
67
+ Create a feeling of depth for you multilayer sliders with this effect.
68
+
69
+ **Post Slides\***
70
+ Display different post types as a customizable slide.
71
+
72
+ **Rich Fonts**
73
+ Select your text fonts from the list of 700+ of Google fonts.
74
+
75
+ **Intuitive Interface**
76
+ Drag and drop to build amazing photo galleries in a few clicks.
77
 
78
+ _\* Premium version only_
79
+
80
+
81
+ == Top Class Customer Support ==
82
+ * Low response time
83
+ We always respond within a few hours.
84
+ * Quick issue resolution
85
+ Resolving an issue never takes more than 24 hours.
86
 
87
 
 
88
 
89
+ == FEATURED REVIEWS ==
90
 
91
+ > I really love this plugin. Real simple to use and has minimal learning curve.
92
+ > Lots of functionalities and tons of flexibility!.
93
+ > Thank you for making this happen.
94
+ > **by [@travelman83](https://wordpress.org/support/topic/great-plugin-19127/)**
95
 
96
+ > I tried about 10 of these and this was the only one that simply worked easily.
97
+ > It was the only that took my pictures and resized them to exactly the size I wanted with no effort on my part.
98
+ > I simply works really well.
99
+ > **by [@kevdogg](https://wordpress.org/support/topic/works-awesome-62/)**
100
 
101
+ > I use it on almost all my client sites and personal sites.
102
+ > Never had a problem or error. it is a great slider.
103
+ > Recently I upgraded to the paid version and it is wonderful. Now I can do more then ever.
104
+ > **by [@tomsavoca](https://wordpress.org/support/topic/works-great-i-use-it-all-the-time/)**
105
 
 
106
 
107
+ == Steps for creating a beautiful slider ==
108
+ 1. Install the Slider plugin.
109
+ 2. Upload your images.
110
+ 3. Publish your slider.
111
 
 
112
 
113
+ > **[Premium version adds](https://10web.io/plugins/wordpress-slider/)**
114
+ >
115
+ > * 27 Transition Effects
116
+ > * 38 Layer Effects
117
+ > * Post Slides
118
+ > * Video Slides
119
+ > * Dailymotion, Instagram and Flickr Embed
120
+ > * Social Sharing Buttons Layer
121
+ > * Hotspot Layer
122
+ > * Filmstrip
123
+ > * Custom Styles for Navigation Buttons
124
+ > * Parallax Slider
125
+ > * Carousel Effect
126
+ > * Video Slide and Layer
127
+ > * Export/Import.
128
 
 
129
 
 
130
 
131
  = SETTINGS/CUSTOMIZATION =
132
  *Some customizations described here are available in Premium version. Please refer to feature summary for additional info.
134
  Slider by 10Web has an intuitive drag and drop interface, which makes it easy to create, organize and customize your slides. All the slider options as well as the plugin overview is available at the admin panel. This is basically where you can create the sliders and make the necessary changes as you go. Under the plugin’s global options, you’ll find the default options for layers and some other general settings, such as enabling Slider by 10Web media upload, choosing the loading icon,adding font families, etc. All the other options for customizing the slides can be found under the sliders section, the place where you can actually start adding new slides. The user friendly interface lets you easily add images and videos to the slides, as well as embed media from popular social platforms. Beneath the added slides you’ll find the available layers that you can apply to them, each of the layers coming with its own set of settings. Before you save the final version of the slide you can preview all the changes you’ve made. At the top of the page,you’ll also find a settings icon,where you can configure the settings for the slider you’re working on. From this section you can activate carousel view, give custom styling to bullets and buttons, adjust settings for filmstrip view, as well as configure the settings for watermarking. Also, you can add custom CSS to the slides for the additional styling features.
135
 
136
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  ###IMPORTANT:
138
+ If you think you found a bug in Slider by 10Web or have any problem/question concerning the plugin, please check out [WordPress Slider Support Forum](https://wordpress.org/support/plugin/slider-wd) in our website.
 
139
 
140
  == Installation ==
141
 
487
 
488
  == Changelog ==
489
 
490
+ = 1.2.23 =
491
  * Fixed: Security issue.
492
 
493
  = 1.2.21 =
slider-wd.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Slider by 10Web
4
  * Plugin URI: https://10web.io/plugins/wordpress-slider/
5
  * 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.
6
- * Version: 1.2.22
7
  * Author: 10Web
8
  * Author URI: https://10web.io/pricing/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -78,8 +78,8 @@ final class WDS {
78
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
79
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
80
  $this->main_file = plugin_basename(__FILE__);
81
- $this->plugin_version = '1.2.22';
82
- $this->db_version = '1.2.22';
83
  $this->prefix = 'wds';
84
  $this->nicename = __('Slider', $this->prefix);
85
  $this->use_home_url();
@@ -104,7 +104,7 @@ final class WDS {
104
  }
105
 
106
  if ( $site_url != $home_url ) {
107
- $this->front_url = home_url("wp-content/plugins/" . plugin_basename(dirname(__FILE__)));
108
  }
109
  else {
110
  $this->front_url = $this->plugin_url;
3
  * Plugin Name: Slider by 10Web
4
  * Plugin URI: https://10web.io/plugins/wordpress-slider/
5
  * 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.
6
+ * Version: 1.2.23
7
  * Author: 10Web
8
  * Author URI: https://10web.io/pricing/
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
78
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
79
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
80
  $this->main_file = plugin_basename(__FILE__);
81
+ $this->plugin_version = '1.2.23';
82
+ $this->db_version = '1.2.23';
83
  $this->prefix = 'wds';
84
  $this->nicename = __('Slider', $this->prefix);
85
  $this->use_home_url();
104
  }
105
 
106
  if ( $site_url != $home_url ) {
107
+ $this->front_url = home_url(str_replace(site_url(), '', $this->plugin_url));
108
  }
109
  else {
110
  $this->front_url = $this->plugin_url;