Slide Anything – Responsive Content / HTML Slider and Carousel - Version 2.3.18

Version Description

  • Call the JavaScript 'window resize' event when the Owl Carousel 'initialized' event is executed - this resolves an issue some uses have been experiencing with slides not being sized correctly after page load

=

Download this release

Release Info

Developer simonpedge
Plugin Icon 128x128 Slide Anything – Responsive Content / HTML Slider and Carousel
Version 2.3.18
Comparing to
See all releases

Code changes from version 2.3.17 to 2.3.18

php/slide-anything-frontend.php CHANGED
@@ -1013,8 +1013,12 @@ function slide_anything_shortcode($atts) {
1013
  }
1014
  $output .= " }\n";
1015
  }
1016
-
1017
-
 
 
 
 
1018
 
1019
  $output .= " });\n";
1020
  $output .= "</script>\n";
1013
  }
1014
  $output .= " }\n";
1015
  }
1016
+
1017
+ // CALL THE WINDOW RESIZE EVENT AFTER THE OWL CAROUSEL SLIDER HAS BEEN INITIALIZED
1018
+ $output .= " var resize_".$id." = jQuery('.owl-carousel');\n";
1019
+ $output .= " resize_".$id.".on('initialized.owl.carousel', function(e) {\n";
1020
+ $output .= " window.dispatchEvent(new Event('resize'));\n";
1021
+ $output .= " });\n";
1022
 
1023
  $output .= " });\n";
1024
  $output .= "</script>\n";
readme.txt CHANGED
@@ -347,6 +347,9 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
347
  = 2.3.17 =
348
  * Small Bug Fix: Click to Advance feature was not working properly with multiple sliders on the page
349
 
 
 
 
350
  == Upgrade Notice ==
351
 
352
  = 1.0 =
@@ -595,4 +598,7 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
595
  * Small Bug Fix: Using the Slide Anything shortcode with an incorrect ID sometimes did not display an error message - this has been resolved
596
 
597
  = 2.3.17 =
598
- * Small Bug Fix: Click to Advance feature was not working properly with multiple sliders on the page
 
 
 
347
  = 2.3.17 =
348
  * Small Bug Fix: Click to Advance feature was not working properly with multiple sliders on the page
349
 
350
+ = 2.3.18 =
351
+ * Call the JavaScript 'window resize' event when the Owl Carousel 'initialized' event is executed - this resolves an issue some uses have been experiencing with slides not being sized correctly after page load
352
+
353
  == Upgrade Notice ==
354
 
355
  = 1.0 =
598
  * Small Bug Fix: Using the Slide Anything shortcode with an incorrect ID sometimes did not display an error message - this has been resolved
599
 
600
  = 2.3.17 =
601
+ * Small Bug Fix: Click to Advance feature was not working properly with multiple sliders on the page
602
+
603
+ = 2.3.18 =
604
+ * Call the JavaScript 'window resize' event when the Owl Carousel 'initialized' event is executed - this resolves an issue some uses have been experiencing with slides not being sized correctly after page load
slide-anything.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://wordpress.org/plugins/slide-anything/
5
  * Description: Slide Anything allows you to create a carousel/slider where the content for each slide can be anything you want - images, text, HTML, and even shortcodes. This plugin uses the Owl Carousel jQuery plugin, and lets you create beautiful, touch enabled, responsive carousels and sliders.
6
  * Author: Simon Edge
7
- * Version: 2.3.17
8
  * License: GPLv2 or later
9
  */
10
 
4
  * Plugin URI: https://wordpress.org/plugins/slide-anything/
5
  * Description: Slide Anything allows you to create a carousel/slider where the content for each slide can be anything you want - images, text, HTML, and even shortcodes. This plugin uses the Owl Carousel jQuery plugin, and lets you create beautiful, touch enabled, responsive carousels and sliders.
6
  * Author: Simon Edge
7
+ * Version: 2.3.18
8
  * License: GPLv2 or later
9
  */
10