Slider by WD – Responsive Slider - Version 1.2.11

Version Description

  • Fixed: Callback functionality.
  • Added: GDPR compliance (Privacy suggestion text).
  • Fixed: Bug on circle timer.
Download this release

Release Info

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

Code changes from version 1.2.10 to 1.2.11

Files changed (4) hide show
  1. framework/WDW_S_Library.php +1 -8
  2. js/wds_frontend.js +81 -42
  3. readme.txt +44 -1
  4. slider-wd.php +21 -3
framework/WDW_S_Library.php CHANGED
@@ -1239,13 +1239,6 @@ class WDW_S_Library {
1239
  var wds_current_key_<?php echo $wds; ?> = '<?php echo (isset($current_key) ? $current_key : ''); ?>';
1240
  var wds_current_filmstrip_pos_<?php echo $wds; ?> = wds_current_key_<?php echo $wds; ?> * jQuery(".wds_slideshow_filmstrip_thumbnails_<?php echo $wds; ?>").<?php echo $width_or_height; ?>() / <?php echo $slides_count; ?>;
1241
  var callback_items = new Array();
1242
- <?php
1243
- if ( !empty($callback_items) ) {
1244
- foreach ( $callback_items as $key => $val ) { ?>
1245
- callback_items.push('<?php echo $val; ?>');
1246
- <?php }
1247
- }
1248
- ?>
1249
  var wds_param = {
1250
  wds : <?php echo $wds; ?>,
1251
  carousel : <?php echo $carousel; ?>,
@@ -1293,7 +1286,7 @@ class WDW_S_Library {
1293
  wds_slideshow_effect : 'wds_<?php echo $slideshow_effect; ?>',
1294
  glb_border_radius : '<?php echo $slider->glb_border_radius; ?>',
1295
  wds_current_filmstrip_pos : wds_current_filmstrip_pos_<?php echo $wds; ?>,
1296
- callback_items : callback_items,
1297
  full_width_for_mobile : <?php echo $slider->full_width_for_mobile ?>,
1298
  full_width : <?php echo $slider->full_width ?>,
1299
  wds_glb_margin : 'wds_glb_margin_<?php echo $wds; ?>',
1239
  var wds_current_key_<?php echo $wds; ?> = '<?php echo (isset($current_key) ? $current_key : ''); ?>';
1240
  var wds_current_filmstrip_pos_<?php echo $wds; ?> = wds_current_key_<?php echo $wds; ?> * jQuery(".wds_slideshow_filmstrip_thumbnails_<?php echo $wds; ?>").<?php echo $width_or_height; ?>() / <?php echo $slides_count; ?>;
1241
  var callback_items = new Array();
 
 
 
 
 
 
 
1242
  var wds_param = {
1243
  wds : <?php echo $wds; ?>,
1244
  carousel : <?php echo $carousel; ?>,
1286
  wds_slideshow_effect : 'wds_<?php echo $slideshow_effect; ?>',
1287
  glb_border_radius : '<?php echo $slider->glb_border_radius; ?>',
1288
  wds_current_filmstrip_pos : wds_current_filmstrip_pos_<?php echo $wds; ?>,
1289
+ callback_items : <?php echo json_encode($callback_items); ?>,
1290
  full_width_for_mobile : <?php echo $slider->full_width_for_mobile ?>,
1291
  full_width : <?php echo $slider->full_width ?>,
1292
  wds_glb_margin : 'wds_glb_margin_<?php echo $wds; ?>',
js/wds_frontend.js CHANGED
@@ -55,9 +55,12 @@ jQuery(window).resize(function () {
55
  jQuery(".wds_slider_cont").each(function () {
56
  wds = jQuery(this).attr("data-wds");
57
  wds_resize_slider(wds);
58
- if (typeof wds_params[wds].callback_items["onSliderR"] !== 'undefined' && wds_params[wds].callback_items["onSliderR"] !== null) {
59
- document.write(wds_params[wds].callback_items["onSliderR"]);
60
- }
 
 
 
61
  })
62
  });
63
 
@@ -343,10 +346,13 @@ function wds_fade(wds, current_image_class, next_image_class, direction) {
343
  jQuery(current_image_class).fadeTo(wds_params[wds].wds_transition_duration, 0);
344
  jQuery(next_image_class).fadeTo(wds_params[wds].wds_transition_duration, 1);
345
  }
346
- //$callback_items["onSliderCE"])) echo $callback_items["onSliderCE"];
347
- if (typeof wds_params[wds].callback_items["onSliderCE"] !== 'undefined' && wds_params[wds].callback_items["onSliderCE"] !== null) {
348
- document.write(wds_params[wds].callback_items["onSliderCE"]);
349
- }
 
 
 
350
  }
351
 
352
  /* For browsers that support transitions, but not 3d transforms (only used if primary transition makes use of 3d-transforms).*/
@@ -501,10 +507,12 @@ function wds_grid(wds, cols, rows, ro, tx, ty, sc, op, current_image_class, next
501
  wds_change_image(wds, key[0], key[1], wds_params[wds].wds_data, true, direction);
502
  }
503
  }
504
- //<?php if(isset($callback_items["onSliderCE"])) echo $callback_items["onSliderCE"]; ?>
505
- if (typeof wds_params[wds].callback_items["onSliderCE"] !== 'undefined' && wds_params[wds].callback_items["onSliderCE"] !== null) {
506
- document.write(wds_params[wds].callback_items["onSliderCE"]);
507
- }
 
 
508
  }
509
  }
510
 
@@ -927,7 +935,7 @@ function wds_change_image_when_loaded(wds, current_key, key, wds_data, from_effe
927
  });
928
  if (!jQuery(".wds_ctrl_btn_" + wds).hasClass("fa-play")) {
929
  /* Begin circle timer on next.*/
930
- circle_timer(0);
931
  }
932
  else {
933
  wds_params[wds].curent_time_deggree = 0;
@@ -1153,9 +1161,12 @@ function wds_cube(wds, tz, ntx, nty, nrx, nry, wrx, wry, current_image_class, ne
1153
  jQuery(".wds_slideshow_image_spun2_" + wds).css('overflow', 'hidden');
1154
  jQuery(".wds_slideshow_image_wrap_" + wds).css('overflow', 'hidden');
1155
  jQuery(".wds_slide_bg_" + wds).css('perspective', 'none');
1156
- if (typeof wds_params[wds].callback_items["onSliderCE"] !== 'undefined' && wds_params[wds].callback_items["onSliderCE"] !== null) {
1157
- document.write(wds_params[wds].callback_items["onSliderCE"]);
1158
- }
 
 
 
1159
  }
1160
  }
1161
 
@@ -1408,9 +1419,12 @@ function wds_grid3d(wds, cols, rows, tz, wrx, wry, nty, ntx, nry, nrx, current_i
1408
  wds_change_image(wds, key[0], key[1], wds_params[wds].wds_data, true, direction);
1409
  }
1410
  }
1411
- if (typeof wds_params[wds].callback_items["onSliderCE"] !== 'undefined' && wds_params[wds].callback_items["onSliderCE"] !== null) {
1412
- document.write(wds_params[wds].callback_items["onSliderCE"]);
1413
- }
 
 
 
1414
  }
1415
  }
1416
 
@@ -1665,9 +1679,12 @@ function wds_parallelSlide(wds, ni_left, ni_top, tx, ty, current_image_class, ne
1665
  wds_change_image(wds, key[0], key[1], wds_params[wds].wds_data, true, direction);
1666
  }
1667
  }
1668
- if (typeof wds_params[wds].callback_items["onSliderCE"] !== 'undefined' && wds_params[wds].callback_items["onSliderCE"] !== null) {
1669
- document.write(wds_params[wds].callback_items["onSliderCE"]);
1670
- }
 
 
 
1671
  }
1672
  }
1673
 
@@ -2148,9 +2165,12 @@ function wds_full_width( wds ) {
2148
  }
2149
 
2150
  function wds_ready_func( wds ) {
2151
- if (typeof wds_params[wds].callback_items["onSliderI"] !== 'undefined' && wds_params[wds].callback_items["onSliderI"] !== null) {
2152
- wds_params[wds].callback_items["onSliderI"];
2153
- }
 
 
 
2154
  if (wds_params[wds].enable_slideshow_autoplay && wds_params[wds].stop_animation) {
2155
  jQuery("#wds_container1_"+wds).mouseover(function(e) {
2156
  wds_stop_animation( wds );
@@ -2334,9 +2354,12 @@ function wds_ready_func( wds ) {
2334
  if ( wds_params[wds].carousel == 1 ) {
2335
  wds_carousel[wds].prev();
2336
  }
2337
- if (typeof wds_params[wds].callback_items["onSwipeS"] !== 'undefined' && wds_params[wds].callback_items["onSwipeS"] !== null) {
2338
- document.write(wds_params[wds].callback_items["onSwipeS"]);
2339
- }
 
 
 
2340
  return false;
2341
  });
2342
  }
@@ -2352,9 +2375,12 @@ function wds_ready_func( wds ) {
2352
  if ( wds_params[wds].carousel == 1 ) {
2353
  wds_carousel[wds].next();
2354
  }
2355
- if (typeof wds_params[wds].callback_items["onSwipeS"] !== 'undefined' && wds_params[wds].callback_items["onSwipeS"] !== null) {
2356
- document.write(wds_params[wds].callback_items["onSwipeS"]);
2357
- }
 
 
 
2358
  return false;
2359
  });
2360
  }
@@ -2456,7 +2482,7 @@ function wds_ready_func( wds ) {
2456
  if (wds_params[wds].timer_bar_type != 'none') {
2457
  if (wds_params[wds].timer_bar_type != 'top') {
2458
  if (wds_params[wds].timer_bar_type != 'bottom') {
2459
- circle_timer(wds, 0);
2460
  }
2461
  }
2462
  }
@@ -2506,23 +2532,36 @@ function wds_ready_func( wds ) {
2506
  jQuery(".wds_slideshow_filmstrip_left_"+wds+" i, .wds_slideshow_filmstrip_right_"+wds+" i").animate({opacity: 0, filter: "Alpha(opacity=0)"}, 700, "swing");
2507
  });
2508
  jQuery("#wds_container1_"+wds).hover(function() {
2509
- if (typeof wds_params[wds].callback_items["onSliderHover"] !== 'undefined' && wds_params[wds].callback_items["onSliderHover"] !== null) {
2510
- document.write(wds_params[wds].callback_items["onSliderHover"]);
 
 
2511
  }
 
2512
  }, function () {
2513
- if (typeof wds_params[wds].callback_items["onSliderBlur"] !== 'undefined' && wds_params[wds].callback_items["onSliderBlur"] !== null) {
2514
- document.write(wds_params[wds].callback_items["onSliderBlur"]);
2515
- }
 
 
 
2516
  });
2517
  jQuery("#wds_slideshow_play_pause_"+wds).on("click", ".fa-play", function() {
2518
- if (typeof wds_params[wds].callback_items["onSliderPlay"] !== 'undefined' && wds_params[wds].callback_items["onSliderPlay"] !== null) {
2519
- document.write(wds_params[wds].callback_items["onSliderPlay"]);
2520
- }
 
 
 
2521
  });
2522
  jQuery("#wds_slideshow_play_pause_"+wds).on("click", ".fa-pause", function() {
2523
- if (typeof wds_params[wds].callback_items["onSliderPause"] !== 'undefined' && wds_params[wds].callback_items["onSliderPause"] !== null) {
2524
- document.write(wds_params[wds].callback_items["onSliderPause"]);
2525
- }
 
 
 
 
2526
  });
2527
  }
2528
 
55
  jQuery(".wds_slider_cont").each(function () {
56
  wds = jQuery(this).attr("data-wds");
57
  wds_resize_slider(wds);
58
+ jQuery.each( wds_params[wds].callback_items, function( index, value ) {
59
+ if ( index === 'onSliderR' && value !== '' ) {
60
+ var wds_callback_f = new Function( wds_params[wds].callback_items.onSliderR );
61
+ wds_callback_f();
62
+ }
63
+ });
64
  })
65
  });
66
 
346
  jQuery(current_image_class).fadeTo(wds_params[wds].wds_transition_duration, 0);
347
  jQuery(next_image_class).fadeTo(wds_params[wds].wds_transition_duration, 1);
348
  }
349
+
350
+ jQuery.each( wds_params[wds].callback_items, function( index, value ) {
351
+ if ( index === 'onSliderCE' && value !== '' ) {
352
+ var wds_callback_f = new Function( wds_params[wds].callback_items.onSliderCE );
353
+ wds_callback_f();
354
+ }
355
+ });
356
  }
357
 
358
  /* For browsers that support transitions, but not 3d transforms (only used if primary transition makes use of 3d-transforms).*/
507
  wds_change_image(wds, key[0], key[1], wds_params[wds].wds_data, true, direction);
508
  }
509
  }
510
+ jQuery.each( wds_params[wds].callback_items, function( index, value ) {
511
+ if ( index === 'onSliderCE' && value !== '' ) {
512
+ var wds_callback_f = new Function( wds_params[wds].callback_items.onSliderCE );
513
+ wds_callback_f();
514
+ }
515
+ });
516
  }
517
  }
518
 
935
  });
936
  if (!jQuery(".wds_ctrl_btn_" + wds).hasClass("fa-play")) {
937
  /* Begin circle timer on next.*/
938
+ wds_circle_timer(0);
939
  }
940
  else {
941
  wds_params[wds].curent_time_deggree = 0;
1161
  jQuery(".wds_slideshow_image_spun2_" + wds).css('overflow', 'hidden');
1162
  jQuery(".wds_slideshow_image_wrap_" + wds).css('overflow', 'hidden');
1163
  jQuery(".wds_slide_bg_" + wds).css('perspective', 'none');
1164
+ jQuery.each( wds_params[wds].callback_items, function( index, value ) {
1165
+ if ( index === 'onSliderCE' && value !== '' ) {
1166
+ var wds_callback_f = new Function( wds_params[wds].callback_items.onSliderCE );
1167
+ wds_callback_f();
1168
+ }
1169
+ });
1170
  }
1171
  }
1172
 
1419
  wds_change_image(wds, key[0], key[1], wds_params[wds].wds_data, true, direction);
1420
  }
1421
  }
1422
+ jQuery.each( wds_params[wds].callback_items, function( index, value ) {
1423
+ if ( index === 'onSliderCE' && value !== '' ) {
1424
+ var wds_callback_f = new Function( wds_params[wds].callback_items.onSliderCE );
1425
+ wds_callback_f();
1426
+ }
1427
+ });
1428
  }
1429
  }
1430
 
1679
  wds_change_image(wds, key[0], key[1], wds_params[wds].wds_data, true, direction);
1680
  }
1681
  }
1682
+ jQuery.each( wds_params[wds].callback_items, function( index, value ) {
1683
+ if ( index === 'onSliderCE' && value !== '' ) {
1684
+ var wds_callback_f = new Function( wds_params[wds].callback_items.onSliderCE );
1685
+ wds_callback_f();
1686
+ }
1687
+ });
1688
  }
1689
  }
1690
 
2165
  }
2166
 
2167
  function wds_ready_func( wds ) {
2168
+ jQuery.each( wds_params[wds].callback_items, function( index, value ) {
2169
+ if ( index === 'onSliderI' && value !== '' ) {
2170
+ var wds_callback_f = new Function( wds_params[wds].callback_items.onSliderI );
2171
+ wds_callback_f();
2172
+ }
2173
+ });
2174
  if (wds_params[wds].enable_slideshow_autoplay && wds_params[wds].stop_animation) {
2175
  jQuery("#wds_container1_"+wds).mouseover(function(e) {
2176
  wds_stop_animation( wds );
2354
  if ( wds_params[wds].carousel == 1 ) {
2355
  wds_carousel[wds].prev();
2356
  }
2357
+ jQuery.each( wds_params[wds].callback_items, function( index, value ) {
2358
+ if ( index === 'onSwipeS' && value !== '' ) {
2359
+ var wds_callback_f = new Function( wds_params[wds].callback_items.onSwipeS );
2360
+ wds_callback_f();
2361
+ }
2362
+ });
2363
  return false;
2364
  });
2365
  }
2375
  if ( wds_params[wds].carousel == 1 ) {
2376
  wds_carousel[wds].next();
2377
  }
2378
+ jQuery.each( wds_params[wds].callback_items, function( index, value ) {
2379
+ if ( index === 'onSwipeS' && value !== '' ) {
2380
+ var wds_callback_f = new Function( wds_params[wds].callback_items.onSwipeS );
2381
+ wds_callback_f();
2382
+ }
2383
+ });
2384
  return false;
2385
  });
2386
  }
2482
  if (wds_params[wds].timer_bar_type != 'none') {
2483
  if (wds_params[wds].timer_bar_type != 'top') {
2484
  if (wds_params[wds].timer_bar_type != 'bottom') {
2485
+ wds_circle_timer(wds, 0);
2486
  }
2487
  }
2488
  }
2532
  jQuery(".wds_slideshow_filmstrip_left_"+wds+" i, .wds_slideshow_filmstrip_right_"+wds+" i").animate({opacity: 0, filter: "Alpha(opacity=0)"}, 700, "swing");
2533
  });
2534
  jQuery("#wds_container1_"+wds).hover(function() {
2535
+ jQuery.each( wds_params[wds].callback_items, function( index, value ) {
2536
+ if ( index === 'onSliderHover' && value !== '' ) {
2537
+ var wds_callback_f = new Function( wds_params[wds].callback_items.onSliderHover );
2538
+ wds_callback_f();
2539
  }
2540
+ });
2541
  }, function () {
2542
+ jQuery.each( wds_params[wds].callback_items, function( index, value ) {
2543
+ if ( index === 'onSliderBlur' && value !== '' ) {
2544
+ var wds_callback_f = new Function( wds_params[wds].callback_items.onSliderBlur );
2545
+ wds_callback_f();
2546
+ }
2547
+ });
2548
  });
2549
  jQuery("#wds_slideshow_play_pause_"+wds).on("click", ".fa-play", function() {
2550
+ jQuery.each( wds_params[wds].callback_items, function( index, value ) {
2551
+ if ( index === 'onSliderPlay' && value !== '' ) {
2552
+ var wds_callback_f = new Function( wds_params[wds].callback_items.onSliderPlay );
2553
+ wds_callback_f();
2554
+ }
2555
+ });
2556
  });
2557
  jQuery("#wds_slideshow_play_pause_"+wds).on("click", ".fa-pause", function() {
2558
+ jQuery.each( wds_params[wds].callback_items, function( index, value ) {
2559
+ if ( index === 'onSliderPause' && value !== '' ) {
2560
+ var wds_callback_f = new Function( wds_params[wds].callback_items.onSliderPause );
2561
+ wds_callback_f();
2562
+ }
2563
+ });
2564
+
2565
  });
2566
  }
2567
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gall
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
  Requires PHP: 5.2
7
- Stable tag: 1.2.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -393,6 +393,44 @@ Moreover, it can be turned into custom post types slider or a content slider wit
393
 
394
  The good part of this is that you can have a text slider with its picture slide, while keeping up with responsive post slider if compared with other post slider or banner slider plugins. This image slideshow plugin has all the necessary features for creating various kinds of wonderful CSS3 slider.
395
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
396
 
397
  == Screenshots ==
398
  1. Slider WD - Slider 1
@@ -405,6 +443,11 @@ The good part of this is that you can have a text slider with its picture slide,
405
 
406
  == Changelog ==
407
 
 
 
 
 
 
408
  = 1.2.10 =
409
  * Updated: WD Library (added GDPR Compliance).
410
 
4
  Requires at least: 3.4
5
  Tested up to: 4.9
6
  Requires PHP: 5.2
7
+ Stable tag: 1.2.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
393
 
394
  The good part of this is that you can have a text slider with its picture slide, while keeping up with responsive post slider if compared with other post slider or banner slider plugins. This image slideshow plugin has all the necessary features for creating various kinds of wonderful CSS3 slider.
395
 
396
+ = Can I post links on slider images using this slider plugin? =
397
+
398
+ You can post a redirection link on the image, allowing the user to get to the mentioned post or page upon clicking on the slide. Please note, that with this WordPress responsive slider plugin, you need to use *http://* and *https://* for external links.
399
+
400
+ = Why is my watermark not showing on image? =
401
+ Watermark may not work because of the following reasons:
402
+
403
+ * If you add slider images by embedding them from an external link,
404
+ * If your GD2 library is switched off on your server,
405
+ * If the image you have uploaded is larger than the slider dimensions you have set in settings.
406
+ The last point means that if you have placed the watermark on the angles of the image, it will not be visible because the slider image will be cut off.
407
+
408
+ So, please try the following:
409
+ * Make sure to upload images in slider plugin, instead of embedding it from an external URL,
410
+ * make sure to have your server’s GD2 library on,
411
+ * resize the slideshow images and set the same dimensions as in **Slider Settings** before uploading.
412
+
413
+ If you post a watermark on the slider plugin and it does not appear on the image, you can check the watermark position firstly. Please open **Slide Options** section, and use **Fillmode** to change the appearance of the slide background. By changing the fillmode option, you can see in which mode the watermark looks good on WordPress responsive slider images.
414
+
415
+ = Can I post social media buttons to slides using WordPress responsive slider ? =
416
+ Premium version of Slider WD plugin allows you to place social media layers. Under each image of your slider, you’ll see **Add Social Media Button Layer** button.
417
+
418
+ Press it to add to your slide. You also are able to customize these buttons using layer settings.
419
+
420
+ = Can I add custom navigation buttons? =
421
+
422
+ You can add your own custom navigation images instead of buttons in WordPress responsive slider plugin. You can also manage default buttons by customizing sizes, colors, border and background colors.
423
+
424
+ To add custom buttons in slider plugin please enter **Settings > Navigation** section and find **Image for next / previous buttons.** Select **Custom** and upload images for each button.
425
+
426
+ = Does WordPress responsive slider allow to post the same layer on different images? =
427
+
428
+ Slider plugin lets you use the same text layer, image layer, video layer for all slider images. After adding the layer, you can mark the **Static layer** option and the layer will be visible on all slides.
429
+
430
+ = Does slider plugin take the full width if I post it as a widget? =
431
+ The plugin takes the full width of the widget area if the **Boxed Layout** in **Slider Settings** is checked. Please note that the option you can find in the **Global Options** section, rather than in the widget settings.
432
+
433
+
434
 
435
  == Screenshots ==
436
  1. Slider WD - Slider 1
443
 
444
  == Changelog ==
445
 
446
+ = 1.2.11 =
447
+ * Fixed: Callback functionality.
448
+ * Added: GDPR compliance (Privacy suggestion text).
449
+ * Fixed: Bug on circle timer.
450
+
451
  = 1.2.10 =
452
  * Updated: WD Library (added GDPR Compliance).
453
 
slider-wd.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Slider WD
5
  * Plugin URI: https://web-dorado.com/products/wordpress-slider-plugin.html
6
  * Description: This is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.
7
- * Version: 1.2.10
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -79,8 +79,8 @@ final class WDS {
79
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
80
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
81
  $this->main_file = plugin_basename(__FILE__);
82
- $this->plugin_version = '1.2.10';
83
- $this->db_version = '1.2.10';
84
  $this->prefix = 'wds';
85
  $this->nicename = __('Slider WD', $this->prefix);
86
  $this->use_home_url();
@@ -177,8 +177,26 @@ final class WDS {
177
  // Enqueue block editor assets for Gutenberg.
178
  add_filter('tw_get_block_editor_assets', array($this, 'register_block_editor_assets'));
179
  add_action( 'enqueue_block_editor_assets', array($this, 'enqueue_block_editor_assets') );
 
 
 
 
180
  }
181
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
182
  /**
183
  * Wordpress init actions.
184
  */
4
  * Plugin Name: Slider WD
5
  * Plugin URI: https://web-dorado.com/products/wordpress-slider-plugin.html
6
  * Description: This is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.
7
+ * Version: 1.2.11
8
  * Author: WebDorado
9
  * Author URI: https://web-dorado.com/wordpress-plugins-bundle.html
10
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
79
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
80
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
81
  $this->main_file = plugin_basename(__FILE__);
82
+ $this->plugin_version = '1.2.11';
83
+ $this->db_version = '1.2.11';
84
  $this->prefix = 'wds';
85
  $this->nicename = __('Slider WD', $this->prefix);
86
  $this->use_home_url();
177
  // Enqueue block editor assets for Gutenberg.
178
  add_filter('tw_get_block_editor_assets', array($this, 'register_block_editor_assets'));
179
  add_action( 'enqueue_block_editor_assets', array($this, 'enqueue_block_editor_assets') );
180
+
181
+ // Privacy policy.
182
+ add_action( 'admin_init', array($this, 'add_privacy_policy_content') );
183
+
184
  }
185
 
186
+ function add_privacy_policy_content() {
187
+ if ( ! function_exists( 'wp_add_privacy_policy_content' ) ) {
188
+ return;
189
+ }
190
+
191
+ $content = __( 'Your name, email address and IP address are collected and stored in our website database when you comment on and/or rate images on our website.', $this->prefix );
192
+
193
+ wp_add_privacy_policy_content(
194
+ $this->nicename,
195
+ wp_kses_post( wpautop( $content, false ) )
196
+ );
197
+ }
198
+
199
+
200
  /**
201
  * Wordpress init actions.
202
  */