Version Description
- 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.
=
Download this release
Release Info
Developer | simonpedge |
Plugin | Slide Anything – Responsive Content / HTML Slider and Carousel |
Version | 2.2.5 |
Comparing to | |
See all releases |
Code changes from version 2.2.4 to 2.2.5
- php/slide-anything-frontend.php +9 -5
- readme.txt +6 -0
- slide-anything.php +1 -1
php/slide-anything-frontend.php
CHANGED
@@ -376,11 +376,15 @@ function slide_anything_shortcode($atts) {
|
|
376 |
$slide_image_color = $slide_data["slide".$i."_image_color"];
|
377 |
$slide_style = "padding:".$slide_data['slide_padding_tb']."% ".$slide_data['slide_padding_lr']."%; ";
|
378 |
$slide_style .= "margin:0px ".$slide_data['slide_margin_lr']."%; ";
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
|
|
|
|
|
|
|
|
384 |
if (strpos($slide_data['slide_min_height_perc'], 'px') !== false) {
|
385 |
$slide_style .= "min-height:".$slide_data['slide_min_height_perc']."; ";
|
386 |
}
|
376 |
$slide_image_color = $slide_data["slide".$i."_image_color"];
|
377 |
$slide_style = "padding:".$slide_data['slide_padding_tb']."% ".$slide_data['slide_padding_lr']."%; ";
|
378 |
$slide_style .= "margin:0px ".$slide_data['slide_margin_lr']."%; ";
|
379 |
+
if (!empty($slide_image_src[0])) {
|
380 |
+
$slide_style .= "background-image:url(\"".$slide_image_src[0]."\"); ";
|
381 |
+
$slide_style .= "background-position:".$slide_image_pos."; ";
|
382 |
+
$slide_style .= "background-size:".$slide_image_size."; ";
|
383 |
+
$slide_style .= "background-repeat:".$slide_image_repeat."; ";
|
384 |
+
}
|
385 |
+
if (!empty($slide_image_color) && ($slide_image_color != "rgba(0,0,0,0)")) {
|
386 |
+
$slide_style .= "background-color:".$slide_image_color."; ";
|
387 |
+
}
|
388 |
if (strpos($slide_data['slide_min_height_perc'], 'px') !== false) {
|
389 |
$slide_style .= "min-height:".$slide_data['slide_min_height_perc']."; ";
|
390 |
}
|
readme.txt
CHANGED
@@ -274,6 +274,9 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
|
|
274 |
= 2.2.4 =
|
275 |
* Bug Fix - Do not display the PRO upgrade notice within the WordPress Dashboard if you have already upgraded to the PRO version.
|
276 |
|
|
|
|
|
|
|
277 |
== Upgrade Notice ==
|
278 |
|
279 |
= 1.0 =
|
@@ -454,3 +457,6 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
|
|
454 |
|
455 |
= 2.2.4 =
|
456 |
* Bug Fix - Do not display the PRO upgrade notice within the WordPress Dashboard if you have already upgraded to the PRO version.
|
|
|
|
|
|
274 |
= 2.2.4 =
|
275 |
* Bug Fix - Do not display the PRO upgrade notice within the WordPress Dashboard if you have already upgraded to the PRO version.
|
276 |
|
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 =
|
457 |
|
458 |
= 2.2.4 =
|
459 |
* Bug Fix - Do not display the PRO upgrade notice within the WordPress Dashboard if you have already upgraded to the PRO version.
|
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.
|
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.5
|
8 |
* License: GPLv2 or later
|
9 |
*/
|
10 |
|