Version Description
- Removed the change added in version 2.2.8 (so reverted back to version 2.2.7)
=
Download this release
Release Info
Developer | simonpedge |
Plugin | Slide Anything – Responsive Content / HTML Slider and Carousel |
Version | 2.2.9 |
Comparing to | |
See all releases |
Code changes from version 2.2.8 to 2.2.9
- php/slide-anything-frontend.php +4 -4
- readme.txt +7 -1
- slide-anything.php +1 -1
php/slide-anything-frontend.php
CHANGED
@@ -998,8 +998,8 @@ function slide_anything_shortcode($atts) {
|
|
998 |
function remove_javascript_from_content($slide_content) {
|
999 |
if ($slide_content != '') {
|
1000 |
$dom = new DOMDocument();
|
1001 |
-
|
1002 |
-
|
1003 |
$script = $dom->getElementsByTagName('script');
|
1004 |
$remove = array();
|
1005 |
foreach($script as $item) {
|
@@ -1019,8 +1019,8 @@ function set_slide_images_to_lazy_load($slide_content) {
|
|
1019 |
|
1020 |
// 2) FOR EACH <IMG> TAG WITHIN THE SLIDE CONTENT, ADD THE 'owl-lazy' CLASS
|
1021 |
$dom = new DOMDocument();
|
1022 |
-
|
1023 |
-
|
1024 |
$imgs = $dom->getElementsByTagName('img');
|
1025 |
foreach ($imgs as $img) {
|
1026 |
$curr_class = $img->getAttribute('class');
|
998 |
function remove_javascript_from_content($slide_content) {
|
999 |
if ($slide_content != '') {
|
1000 |
$dom = new DOMDocument();
|
1001 |
+
$dom->loadHTML($slide_content);
|
1002 |
+
//$dom->loadHTML($slide_content, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
|
1003 |
$script = $dom->getElementsByTagName('script');
|
1004 |
$remove = array();
|
1005 |
foreach($script as $item) {
|
1019 |
|
1020 |
// 2) FOR EACH <IMG> TAG WITHIN THE SLIDE CONTENT, ADD THE 'owl-lazy' CLASS
|
1021 |
$dom = new DOMDocument();
|
1022 |
+
$dom->loadHTML(mb_convert_encoding($slide_content, 'HTML-ENTITIES', 'UTF-8'));
|
1023 |
+
//$dom->loadHTML(mb_convert_encoding($slide_content, 'HTML-ENTITIES', 'UTF-8'), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
|
1024 |
$imgs = $dom->getElementsByTagName('img');
|
1025 |
foreach ($imgs as $img) {
|
1026 |
$curr_class = $img->getAttribute('class');
|
readme.txt
CHANGED
@@ -289,6 +289,9 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
|
|
289 |
= 2.2.8 =
|
290 |
* Bug Fix: Omit DOCTYPE from HTML front-end code generated.
|
291 |
|
|
|
|
|
|
|
292 |
== Upgrade Notice ==
|
293 |
|
294 |
= 1.0 =
|
@@ -480,4 +483,7 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
|
|
480 |
* Added Showcase Carousel support, which is a new Slide Anything PRO feature.
|
481 |
|
482 |
= 2.2.8 =
|
483 |
-
* Bug Fix: Omit DOCTYPE from HTML front-end code generated.
|
|
|
|
|
|
289 |
= 2.2.8 =
|
290 |
* Bug Fix: Omit DOCTYPE from HTML front-end code generated.
|
291 |
|
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 =
|
483 |
* Added Showcase Carousel support, which is a new Slide Anything PRO feature.
|
484 |
|
485 |
= 2.2.8 =
|
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)
|
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.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.2.9
|
8 |
* License: GPLv2 or later
|
9 |
*/
|
10 |
|