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

Version Description

  • Bug Fix: When the 'DOMContentLoaded event' setting was checked, this was not applied to the 'Magnific Popup' (SA PRO only) JavaScript initialize code - only to the Owl Carousel JavaScript initialize code.
Download this release

Release Info

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

Code changes from version 2.3.35 to 2.3.36

php/slide-anything-frontend.php CHANGED
@@ -1144,7 +1144,11 @@ function slide_anything_shortcode($atts) {
1144
  // ### GENERATE JQUERY CODE FOR THE MAGNIFIC POPUP ###
1145
  if (($sa_pro_version) && ($lightbox_count > 0)) {
1146
  $output .= "<script type='text/javascript'>\n";
1147
- $output .= "jQuery(document).ready(function() {\n";
 
 
 
 
1148
  $output .= " jQuery('#".$lightbox_gallery_id."').magnificPopup({\n";
1149
  $output .= " items: [\n";
1150
  $count = 0;
1144
  // ### GENERATE JQUERY CODE FOR THE MAGNIFIC POPUP ###
1145
  if (($sa_pro_version) && ($lightbox_count > 0)) {
1146
  $output .= "<script type='text/javascript'>\n";
1147
+ if ($slide_data['sa_window_onload'] == '1') {
1148
+ $output .= "document.addEventListener('DOMContentLoaded', function() {\n";
1149
+ } else {
1150
+ $output .= "jQuery(document).ready(function() {\n";
1151
+ }
1152
  $output .= " jQuery('#".$lightbox_gallery_id."').magnificPopup({\n";
1153
  $output .= " items: [\n";
1154
  $count = 0;
readme.txt CHANGED
@@ -98,6 +98,9 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
98
 
99
  == Changelog ==
100
 
 
 
 
101
  = 2.3.35 =
102
  * Added the 'Full Slide Links' checkbox (under 'Link/Popup Icons'). When checked then the entire slide area becomes a clickable link.
103
 
@@ -704,3 +707,6 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
704
 
705
  = 2.3.35 =
706
  * Added the 'Full Slide Links' checkbox (under 'Link/Popup Icons'). When checked then the entire slide area becomes a clickable link.
 
 
 
98
 
99
  == Changelog ==
100
 
101
+ = 2.3.36 =
102
+ * Bug Fix: When the 'DOMContentLoaded event' setting was checked, this was not applied to the 'Magnific Popup' (SA PRO only) JavaScript initialize code - only to the Owl Carousel JavaScript initialize code.
103
+
104
  = 2.3.35 =
105
  * Added the 'Full Slide Links' checkbox (under 'Link/Popup Icons'). When checked then the entire slide area becomes a clickable link.
106
 
707
 
708
  = 2.3.35 =
709
  * Added the 'Full Slide Links' checkbox (under 'Link/Popup Icons'). When checked then the entire slide area becomes a clickable link.
710
+
711
+ = 2.3.36 =
712
+ * Bug Fix: When the 'DOMContentLoaded event' setting was checked, this was not applied to the 'Magnific Popup' (SA PRO only) JavaScript initialize code - only to the Owl Carousel JavaScript initialize code.
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.35
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.36
8
  * License: GPLv2 or later
9
  */
10