Version Description
- Bug Fix: Fixed issue with 'Autohide Arrows' not working properly with Showcase Carousels
=
Download this release
Release Info
Developer | simonpedge |
Plugin | Slide Anything – Responsive Content / HTML Slider and Carousel |
Version | 2.3.1 |
Comparing to | |
See all releases |
Code changes from version 2.2.9 to 2.3.1
- owl-carousel/sa-owl-theme.css +5 -4
- php/slide-anything-frontend.php +9 -3
- readme.txt +13 -1
- slide-anything.php +1 -1
owl-carousel/sa-owl-theme.css
CHANGED
@@ -198,16 +198,17 @@
|
|
198 |
}
|
199 |
.white > #showcase_nav,
|
200 |
.black > #showcase_nav {
|
|
|
|
|
|
|
|
|
|
|
201 |
display:none !important;
|
202 |
}
|
203 |
.white:hover > #showcase_nav,
|
204 |
.black:hover > #showcase_nav {
|
205 |
display:block !important;
|
206 |
}
|
207 |
-
#showcase_nav {
|
208 |
-
display:block !important;
|
209 |
-
z-index:2 !important;
|
210 |
-
}
|
211 |
#showcase_nav div,
|
212 |
#showcase_nav button {
|
213 |
position:absolute;
|
198 |
}
|
199 |
.white > #showcase_nav,
|
200 |
.black > #showcase_nav {
|
201 |
+
display:block !important;
|
202 |
+
z-index:2 !important;
|
203 |
+
}
|
204 |
+
.white > #showcase_nav.autohide_arrows,
|
205 |
+
.black > #showcase_nav.autohide_arrows {
|
206 |
display:none !important;
|
207 |
}
|
208 |
.white:hover > #showcase_nav,
|
209 |
.black:hover > #showcase_nav {
|
210 |
display:block !important;
|
211 |
}
|
|
|
|
|
|
|
|
|
212 |
#showcase_nav div,
|
213 |
#showcase_nav button {
|
214 |
position:absolute;
|
php/slide-anything-frontend.php
CHANGED
@@ -640,7 +640,11 @@ function slide_anything_shortcode($atts) {
|
|
640 |
|
641 |
// SHOWCASE CAROUSEL - NAVIGATION CONTAINER
|
642 |
if ($slide_data['showcase_slider'] == '1') {
|
643 |
-
$
|
|
|
|
|
|
|
|
|
644 |
}
|
645 |
|
646 |
|
@@ -1005,7 +1009,8 @@ function remove_javascript_from_content($slide_content) {
|
|
1005 |
foreach($script as $item) {
|
1006 |
$item->parentNode->removeChild($item);
|
1007 |
}
|
1008 |
-
|
|
|
1009 |
}
|
1010 |
return $slide_content;
|
1011 |
}
|
@@ -1030,8 +1035,9 @@ function set_slide_images_to_lazy_load($slide_content) {
|
|
1030 |
$img->setAttribute('class', 'owl-lazy');
|
1031 |
}
|
1032 |
}
|
1033 |
-
$slide_content = $dom->saveHTML();
|
1034 |
|
|
|
|
|
1035 |
return $slide_content;
|
1036 |
}
|
1037 |
?>
|
640 |
|
641 |
// SHOWCASE CAROUSEL - NAVIGATION CONTAINER
|
642 |
if ($slide_data['showcase_slider'] == '1') {
|
643 |
+
if ($slide_data['autohide_arrows'] == 'true') {
|
644 |
+
$output .= "<div id='showcase_nav' class='owl-nav autohide_arrows'></div>\n";
|
645 |
+
} else {
|
646 |
+
$output .= "<div id='showcase_nav' class='owl-nav'></div>\n";
|
647 |
+
}
|
648 |
}
|
649 |
|
650 |
|
1009 |
foreach($script as $item) {
|
1010 |
$item->parentNode->removeChild($item);
|
1011 |
}
|
1012 |
+
//$slide_content = $dom->saveHTML();
|
1013 |
+
$slide_content = preg_replace('~<(?:!DOCTYPE|/?(?:html|body))[^>]*>\s*~i', '', $dom->saveHTML());
|
1014 |
}
|
1015 |
return $slide_content;
|
1016 |
}
|
1035 |
$img->setAttribute('class', 'owl-lazy');
|
1036 |
}
|
1037 |
}
|
|
|
1038 |
|
1039 |
+
//$slide_content = $dom->saveHTML();
|
1040 |
+
$slide_content = preg_replace('~<(?:!DOCTYPE|/?(?:html|body))[^>]*>\s*~i', '', $dom->saveHTML());
|
1041 |
return $slide_content;
|
1042 |
}
|
1043 |
?>
|
readme.txt
CHANGED
@@ -292,6 +292,12 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
|
|
292 |
= 2.2.9 =
|
293 |
* Removed the change added in version 2.2.8 (so reverted back to version 2.2.7)
|
294 |
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
== Upgrade Notice ==
|
296 |
|
297 |
= 1.0 =
|
@@ -486,4 +492,10 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
|
|
486 |
* Bug Fix: Omit DOCTYPE from HTML front-end code generated.
|
487 |
|
488 |
= 2.2.9 =
|
489 |
-
* Removed the change added in version 2.2.8 (so reverted back to version 2.2.7)
|
|
|
|
|
|
|
|
|
|
|
|
292 |
= 2.2.9 =
|
293 |
* Removed the change added in version 2.2.8 (so reverted back to version 2.2.7)
|
294 |
|
295 |
+
= 2.3.0 =
|
296 |
+
* Remove HTML elements (HTML, DOCTYPE & BODY tags) from front-end code generated when the 'Lazy Load Images' or 'Remove JavaScript Content' options are selected for a slider
|
297 |
+
|
298 |
+
= 2.3.1 =
|
299 |
+
* Bug Fix: Fixed issue with 'Autohide Arrows' not working properly with Showcase Carousels
|
300 |
+
|
301 |
== Upgrade Notice ==
|
302 |
|
303 |
= 1.0 =
|
492 |
* Bug Fix: Omit DOCTYPE from HTML front-end code generated.
|
493 |
|
494 |
= 2.2.9 =
|
495 |
+
* Removed the change added in version 2.2.8 (so reverted back to version 2.2.7)
|
496 |
+
|
497 |
+
= 2.3.0 =
|
498 |
+
* Remove HTML elements (HTML, DOCTYPE & BODY tags) from front-end code generated when the 'Lazy Load Images' or 'Remove JavaScript Content' options are selected for a slider
|
499 |
+
|
500 |
+
= 2.3.1 =
|
501 |
+
* Bug Fix: Fixed issue with 'Autohide Arrows' not working properly with Showcase Carousels
|
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.
|
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.1
|
8 |
* License: GPLv2 or later
|
9 |
*/
|
10 |
|