Version Description
- Bug Fix - Fixed the PHP Warning "explode() expects parameter 2 to be string, array given in wp-content\plugins\slide-anything\php\slide-anything-admin.php on line 824" some users were experiencing.
=
Download this release
Release Info
Developer | simonpedge |
Plugin | Slide Anything – Responsive Content / HTML Slider and Carousel |
Version | 2.2.6 |
Comparing to | |
See all releases |
Code changes from version 2.2.5 to 2.2.6
- php/slide-anything-admin.php +4 -0
- php/slide-anything-frontend.php +62 -14
- readme.txt +6 -0
- slide-anything.php +1 -1
php/slide-anything-admin.php
CHANGED
@@ -659,6 +659,7 @@ function cpt_slider_slides_content($post) {
|
|
659 |
$slide_data[0]['edit_id'] = "sa_slide1_content";
|
660 |
$slide_data[0]['content'] = "Slide content";
|
661 |
$slide_data[0]['del_id'] = "sa_slide1_delete";
|
|
|
662 |
$slide_data[0]['image_id'] = "sa_slide1_image_id";
|
663 |
$slide_data[0]['thumb'] = "slide1_thumb";
|
664 |
$slide_data[0]['image_del'] = "slide1_image_del";
|
@@ -672,6 +673,7 @@ function cpt_slider_slides_content($post) {
|
|
672 |
$slide_data[1]['edit_id'] = "sa_slide2_content";
|
673 |
$slide_data[1]['content'] = "Slide content";
|
674 |
$slide_data[1]['del_id'] = "sa_slide2_delete";
|
|
|
675 |
$slide_data[1]['image_id'] = "sa_slide2_image_id";
|
676 |
$slide_data[1]['thumb'] = "slide2_thumb";
|
677 |
$slide_data[1]['image_del'] = "slide2_image_del";
|
@@ -685,6 +687,7 @@ function cpt_slider_slides_content($post) {
|
|
685 |
$slide_data[2]['edit_id'] = "sa_slide3_content";
|
686 |
$slide_data[2]['content'] = "Slide content";
|
687 |
$slide_data[2]['del_id'] = "sa_slide3_delete";
|
|
|
688 |
$slide_data[2]['image_id'] = "sa_slide3_image_id";
|
689 |
$slide_data[2]['thumb'] = "slide3_thumb";
|
690 |
$slide_data[2]['image_del'] = "slide3_image_del";
|
@@ -741,6 +744,7 @@ function cpt_slider_slides_content($post) {
|
|
741 |
$slide_data[$count]['del_id'] = "sa_slide".$i."_delete";
|
742 |
$slide_data[$count]['thumb'] = "slide".$i."_thumb";
|
743 |
$slide_data[$count]['image_del'] = "slide".$i."_image_del";
|
|
|
744 |
$slide_data[$count]['image_id'] = "sa_slide".$i."_image_id";
|
745 |
$slide_data[$count]['image_pos'] = "sa_slide".$i."_image_pos";
|
746 |
$slide_data[$count]['image_size'] = "sa_slide".$i."_image_size";
|
659 |
$slide_data[0]['edit_id'] = "sa_slide1_content";
|
660 |
$slide_data[0]['content'] = "Slide content";
|
661 |
$slide_data[0]['del_id'] = "sa_slide1_delete";
|
662 |
+
$slide_data[0]['image_data'] = "sa_slide1_image_data";
|
663 |
$slide_data[0]['image_id'] = "sa_slide1_image_id";
|
664 |
$slide_data[0]['thumb'] = "slide1_thumb";
|
665 |
$slide_data[0]['image_del'] = "slide1_image_del";
|
673 |
$slide_data[1]['edit_id'] = "sa_slide2_content";
|
674 |
$slide_data[1]['content'] = "Slide content";
|
675 |
$slide_data[1]['del_id'] = "sa_slide2_delete";
|
676 |
+
$slide_data[1]['image_data'] = "sa_slide2_image_data";
|
677 |
$slide_data[1]['image_id'] = "sa_slide2_image_id";
|
678 |
$slide_data[1]['thumb'] = "slide2_thumb";
|
679 |
$slide_data[1]['image_del'] = "slide2_image_del";
|
687 |
$slide_data[2]['edit_id'] = "sa_slide3_content";
|
688 |
$slide_data[2]['content'] = "Slide content";
|
689 |
$slide_data[2]['del_id'] = "sa_slide3_delete";
|
690 |
+
$slide_data[2]['image_data'] = "sa_slide3_image_data";
|
691 |
$slide_data[2]['image_id'] = "sa_slide3_image_id";
|
692 |
$slide_data[2]['thumb'] = "slide3_thumb";
|
693 |
$slide_data[2]['image_del'] = "slide3_image_del";
|
744 |
$slide_data[$count]['del_id'] = "sa_slide".$i."_delete";
|
745 |
$slide_data[$count]['thumb'] = "slide".$i."_thumb";
|
746 |
$slide_data[$count]['image_del'] = "slide".$i."_image_del";
|
747 |
+
$slide_data[$count]['image_data'] = "sa_slide".$i."_image_data";
|
748 |
$slide_data[$count]['image_id'] = "sa_slide".$i."_image_id";
|
749 |
$slide_data[$count]['image_pos'] = "sa_slide".$i."_image_pos";
|
750 |
$slide_data[$count]['image_size'] = "sa_slide".$i."_image_size";
|
php/slide-anything-frontend.php
CHANGED
@@ -245,24 +245,72 @@ function slide_anything_shortcode($atts) {
|
|
245 |
$slide_data['hero_slider'] = '0';
|
246 |
$slide_data['thumbs_active'] = '0';
|
247 |
if ($sa_pro_version) {
|
248 |
-
|
249 |
-
|
|
|
|
|
|
|
|
|
250 |
$slide_data['hero_slider'] = '0';
|
251 |
}
|
252 |
-
|
253 |
-
|
|
|
|
|
|
|
|
|
254 |
$slide_data['thumbs_active'] = '0';
|
255 |
}
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
}
|
267 |
|
268 |
// REVERSE THE ORDER OF THE SLIDES IF 'Random Order' CHECKBOX IS CHECKED OR
|
245 |
$slide_data['hero_slider'] = '0';
|
246 |
$slide_data['thumbs_active'] = '0';
|
247 |
if ($sa_pro_version) {
|
248 |
+
if (isset($metadata['sa_hero_slider'])) {
|
249 |
+
$slide_data['hero_slider'] = $metadata['sa_hero_slider'][0];
|
250 |
+
if ($slide_data['hero_slider'] != '1') {
|
251 |
+
$slide_data['hero_slider'] = '0';
|
252 |
+
}
|
253 |
+
} else {
|
254 |
$slide_data['hero_slider'] = '0';
|
255 |
}
|
256 |
+
if (isset($metadata['sa_thumbs_active'])) {
|
257 |
+
$slide_data['thumbs_active'] = $metadata['sa_thumbs_active'][0];
|
258 |
+
if ($slide_data['thumbs_active'] != '1') {
|
259 |
+
$slide_data['thumbs_active'] = '0';
|
260 |
+
}
|
261 |
+
} else {
|
262 |
$slide_data['thumbs_active'] = '0';
|
263 |
}
|
264 |
+
if (isset($metadata['sa_thumbs_location'])) {
|
265 |
+
$slide_data['thumbs_location'] = $metadata['sa_thumbs_location'][0];
|
266 |
+
} else {
|
267 |
+
$slide_data['thumbs_location'] = 'inside_bottom';
|
268 |
+
}
|
269 |
+
if (isset($metadata['sa_thumbs_image_size'])) {
|
270 |
+
$slide_data['thumbs_image_size'] = $metadata['sa_thumbs_image_size'][0];
|
271 |
+
} else {
|
272 |
+
$slide_data['thumbs_image_size'] = 'thumbnail';
|
273 |
+
}
|
274 |
+
if (isset($metadata['sa_thumbs_padding'])) {
|
275 |
+
$slide_data['thumbs_padding'] = $metadata['sa_thumbs_padding'][0];
|
276 |
+
} else {
|
277 |
+
$slide_data['thumbs_padding'] = '3';
|
278 |
+
}
|
279 |
+
if (isset($metadata['sa_thumbs_width'])) {
|
280 |
+
$slide_data['thumbs_width'] = $metadata['sa_thumbs_width'][0];
|
281 |
+
} else {
|
282 |
+
$slide_data['thumbs_width'] = '150';
|
283 |
+
}
|
284 |
+
if (isset($metadata['sa_thumbs_height'])) {
|
285 |
+
$slide_data['thumbs_height'] = $metadata['sa_thumbs_height'][0];
|
286 |
+
} else {
|
287 |
+
$slide_data['thumbs_height'] = '85';
|
288 |
+
}
|
289 |
+
if (isset($metadata['sa_thumbs_opacity'])) {
|
290 |
+
$slide_data['thumbs_opacity'] = $metadata['sa_thumbs_opacity'][0];
|
291 |
+
} else {
|
292 |
+
$slide_data['thumbs_opacity'] = '50';
|
293 |
+
}
|
294 |
+
if (isset($metadata['sa_thumbs_border_width'])) {
|
295 |
+
$slide_data['thumbs_border_width'] = $metadata['sa_thumbs_border_width'][0];
|
296 |
+
} else {
|
297 |
+
$slide_data['thumbs_border_width'] = '0';
|
298 |
+
}
|
299 |
+
if (isset($metadata['sa_thumbs_border_color'])) {
|
300 |
+
$slide_data['thumbs_border_color'] = $metadata['sa_thumbs_border_color'][0];
|
301 |
+
} else {
|
302 |
+
$slide_data['thumbs_border_color'] = '#ffffff';
|
303 |
+
}
|
304 |
+
if (isset($metadata['sa_thumbs_resp_tablet'])) {
|
305 |
+
$slide_data['thumbs_resp_tablet'] = $metadata['sa_thumbs_resp_tablet'][0];
|
306 |
+
} else {
|
307 |
+
$slide_data['thumbs_resp_tablet'] = '75';
|
308 |
+
}
|
309 |
+
if (isset($metadata['sa_thumbs_resp_mobile'])) {
|
310 |
+
$slide_data['thumbs_resp_mobile'] = $metadata['sa_thumbs_resp_mobile'][0];
|
311 |
+
} else {
|
312 |
+
$slide_data['thumbs_resp_mobile'] = '50';
|
313 |
+
}
|
314 |
}
|
315 |
|
316 |
// REVERSE THE ORDER OF THE SLIDES IF 'Random Order' CHECKBOX IS CHECKED OR
|
readme.txt
CHANGED
@@ -277,6 +277,9 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
|
|
277 |
= 2.2.5 =
|
278 |
* Bug Fix - Optimise front-end code so that no 'background' CSS rules are displayed if the user does not specify a background image/colour for the slide.
|
279 |
|
|
|
|
|
|
|
280 |
== Upgrade Notice ==
|
281 |
|
282 |
= 1.0 =
|
@@ -460,3 +463,6 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
|
|
460 |
|
461 |
= 2.2.5 =
|
462 |
* Bug Fix - Optimise front-end code so that no 'background' CSS rules are displayed if the user does not specify a background image/colour for the slide.
|
|
|
|
|
|
277 |
= 2.2.5 =
|
278 |
* Bug Fix - Optimise front-end code so that no 'background' CSS rules are displayed if the user does not specify a background image/colour for the slide.
|
279 |
|
280 |
+
= 2.2.6 =
|
281 |
+
* Bug Fix - Fixed the PHP Warning "explode() expects parameter 2 to be string, array given in wp-content\plugins\slide-anything\php\slide-anything-admin.php on line 824" some users were experiencing.
|
282 |
+
|
283 |
== Upgrade Notice ==
|
284 |
|
285 |
= 1.0 =
|
463 |
|
464 |
= 2.2.5 =
|
465 |
* Bug Fix - Optimise front-end code so that no 'background' CSS rules are displayed if the user does not specify a background image/colour for the slide.
|
466 |
+
|
467 |
+
= 2.2.6 =
|
468 |
+
* Bug Fix - Fixed the PHP Warning "explode() expects parameter 2 to be string, array given in wp-content\plugins\slide-anything\php\slide-anything-admin.php on line 824" some users were experiencing.
|
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.6
|
8 |
* License: GPLv2 or later
|
9 |
*/
|
10 |
|