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

Version Description

  • When thumbnail pagination and popup options are used together (PRO version only) there was an issue - the popup images or popup YouTube video thumbs were not be used to set the thumbnail images.

=

Download this release

Release Info

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

Code changes from version 2.3.25 to 2.3.26

php/slide-anything-frontend.php CHANGED
@@ -699,7 +699,18 @@ function slide_anything_shortcode($atts) {
699
  $output .= "<div class='owl-thumbs' data-slider-id='".esc_attr($slide_data['css_id'])."'>";
700
  for ($i = 1; $i <= $slide_data['num_slides']; $i++) {
701
  // get background image for the thumb (slide image background)
702
- if ($slide_data["slide".$i."_image_id"] != 0) {
 
 
 
 
 
 
 
 
 
 
 
703
  $thumb_image_src = wp_get_attachment_image_src($slide_data["slide".$i."_image_id"], $slide_data['thumbs_image_size']);
704
  $thumb_image_src = $thumb_image_src[0];
705
  } else {
699
  $output .= "<div class='owl-thumbs' data-slider-id='".esc_attr($slide_data['css_id'])."'>";
700
  for ($i = 1; $i <= $slide_data['num_slides']; $i++) {
701
  // get background image for the thumb (slide image background)
702
+ if (($slide_data["slide".$i."_popup_type"] == 'IMAGE') &&
703
+ ($slide_data["slide".$i."_popup_background"] != 'no') &&
704
+ ($slide_data["slide".$i."_popup_image"] != '')) {
705
+ $thumb_image_arr = wp_get_attachment_image_src($slide_data["slide".$i."_popup_imageid"], $slide_data["slide".$i."_popup_background"]);
706
+ $thumb_image_src = $thumb_image_arr[0];
707
+ } elseif (($slide_data["slide".$i."_popup_type"] == 'VIDEO') &&
708
+ ($slide_data["slide".$i."_popup_video_type"] == "youtube") &&
709
+ ($slide_data["slide".$i."_image_id"] == '99999999')) {
710
+ $thumb_image_src = array();
711
+ $popup_video_id = $slide_data["slide".$i."_popup_video_id"];
712
+ $thumb_image_src = "https://img.youtube.com/vi/".$popup_video_id."/hqdefault.jpg";
713
+ } elseif ($slide_data["slide".$i."_image_id"] != 0) {
714
  $thumb_image_src = wp_get_attachment_image_src($slide_data["slide".$i."_image_id"], $slide_data['thumbs_image_size']);
715
  $thumb_image_src = $thumb_image_src[0];
716
  } else {
readme.txt CHANGED
@@ -371,6 +371,9 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
371
  = 2.3.25 =
372
  * Small Bug Fix: If the 'lazy load images' option was enabled and a slide content was blank then a PHP warning message was being displayed.
373
 
 
 
 
374
  == Upgrade Notice ==
375
 
376
  = 1.0 =
@@ -643,4 +646,7 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
643
  * Small Bug Fix to fix a conflict with the 'Photonic Gallery & Lightbox' plugin. The slide 'Add Media' button was not working when this plugin is installed.
644
 
645
  = 2.3.25 =
646
- * Small Bug Fix: If the 'lazy load images' option was enabled and a slide content was blank then a PHP warning message was being displayed.
 
 
 
371
  = 2.3.25 =
372
  * Small Bug Fix: If the 'lazy load images' option was enabled and a slide content was blank then a PHP warning message was being displayed.
373
 
374
+ = 2.3.26 =
375
+ * When thumbnail pagination and popup options are used together (PRO version only) there was an issue - the popup images or popup YouTube video thumbs were not be used to set the thumbnail images.
376
+
377
  == Upgrade Notice ==
378
 
379
  = 1.0 =
646
  * Small Bug Fix to fix a conflict with the 'Photonic Gallery & Lightbox' plugin. The slide 'Add Media' button was not working when this plugin is installed.
647
 
648
  = 2.3.25 =
649
+ * Small Bug Fix: If the 'lazy load images' option was enabled and a slide content was blank then a PHP warning message was being displayed.
650
+
651
+ = 2.3.26 =
652
+ * When thumbnail pagination and popup options are used together (PRO version only) there was an issue - the popup images or popup YouTube video thumbs were not be used to set the thumbnail images.
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.25
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.26
8
  * License: GPLv2 or later
9
  */
10