Version Description
- 27 July 2022 =
- Features: Resolved PHP 8 error when Features Per Row is empty.
Download this release
Release Info
Developer | SiteOrigin |
Plugin | SiteOrigin Widgets Bundle |
Version | 1.38.2 |
Comparing to | |
See all releases |
Code changes from version 1.38.1 to 1.38.2
- readme.txt +5 -2
- so-widgets-bundle.php +2 -2
- widgets/features/tpl/default.php +4 -3
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Tags: widget, button, slider, hero, google maps, image, carousel, lottie, featur
|
|
3 |
Requires at least: 4.2
|
4 |
Tested up to: 6.0
|
5 |
Requires PHP: 5.6.20
|
6 |
-
Stable tag: 1.38.
|
7 |
-
Build time: 2022-07-
|
8 |
License: GPLv3 or later
|
9 |
Contributors: gpriday, braam-genis, alexgso
|
10 |
Donate link: https://siteorigin.com/downloads/premium/
|
@@ -105,6 +105,9 @@ The Widgets Bundle global interface is available at Plugins > SiteOrigin Widgets
|
|
105 |
|
106 |
== Changelog ==
|
107 |
|
|
|
|
|
|
|
108 |
= 1.38.1 - 20 July 2022 =
|
109 |
* Contact Form: Resolved a notice if Name and Message fields aren't included.
|
110 |
* Post Carousel: Improved partially visible posts navigation.
|
3 |
Requires at least: 4.2
|
4 |
Tested up to: 6.0
|
5 |
Requires PHP: 5.6.20
|
6 |
+
Stable tag: 1.38.2
|
7 |
+
Build time: 2022-07-27T18:27:35+02:00
|
8 |
License: GPLv3 or later
|
9 |
Contributors: gpriday, braam-genis, alexgso
|
10 |
Donate link: https://siteorigin.com/downloads/premium/
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
+
= 1.38.2 - 27 July 2022 =
|
109 |
+
* Features: Resolved PHP 8 error when Features Per Row is empty.
|
110 |
+
|
111 |
= 1.38.1 - 20 July 2022 =
|
112 |
* Contact Form: Resolved a notice if Name and Message fields aren't included.
|
113 |
* Post Carousel: Improved partially visible posts navigation.
|
so-widgets-bundle.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: SiteOrigin Widgets Bundle
|
4 |
Description: A highly customizable collection of widgets, ready to be used anywhere, neatly bundled into a single plugin.
|
5 |
-
Version: 1.38.
|
6 |
Text Domain: so-widgets-bundle
|
7 |
Domain Path: /lang
|
8 |
Author: SiteOrigin
|
@@ -12,7 +12,7 @@ License: GPL3
|
|
12 |
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
13 |
*/
|
14 |
|
15 |
-
define( 'SOW_BUNDLE_VERSION', '1.38.
|
16 |
define( 'SOW_BUNDLE_BASE_FILE', __FILE__ );
|
17 |
|
18 |
// Allow JS suffix to be pre-set.
|
2 |
/*
|
3 |
Plugin Name: SiteOrigin Widgets Bundle
|
4 |
Description: A highly customizable collection of widgets, ready to be used anywhere, neatly bundled into a single plugin.
|
5 |
+
Version: 1.38.2
|
6 |
Text Domain: so-widgets-bundle
|
7 |
Domain Path: /lang
|
8 |
Author: SiteOrigin
|
12 |
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
|
13 |
*/
|
14 |
|
15 |
+
define( 'SOW_BUNDLE_VERSION', '1.38.2' );
|
16 |
define( 'SOW_BUNDLE_BASE_FILE', __FILE__ );
|
17 |
|
18 |
// Allow JS suffix to be pre-set.
|
widgets/features/tpl/default.php
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
<?php
|
|
|
2 |
if ( ! empty( $instance['features'] ) ) {
|
3 |
-
$last_row = floor( ( count( $instance['features'] ) - 1 ) / $
|
4 |
}
|
5 |
?>
|
6 |
|
@@ -9,8 +10,8 @@ if ( ! empty( $instance['features'] ) ) {
|
|
9 |
<?php if( isset( $instance['features'] ) ) : ?>
|
10 |
<?php foreach( $instance['features'] as $i => $feature ) : ?>
|
11 |
<div
|
12 |
-
class="sow-features-feature sow-icon-container-position-<?php echo esc_attr( $feature['container_position'] ) ?> <?php if ( floor( $i / $
|
13 |
-
style="display: flex; flex-direction: <?php echo $this->get_feature_flex_direction( $feature['container_position'] ); ?>; float: left; width: <?php echo round( 100 / $
|
14 |
>
|
15 |
|
16 |
<?php if ( ! empty( $feature['more_url'] ) && $instance['icon_link'] && empty( $instance['link_feature'] ) ) : ?>
|
1 |
<?php
|
2 |
+
$per_row = ! empty( $instance['per_row'] ) ? $instance['per_row'] : 3;
|
3 |
if ( ! empty( $instance['features'] ) ) {
|
4 |
+
$last_row = floor( ( count( $instance['features'] ) - 1 ) / $per_row );
|
5 |
}
|
6 |
?>
|
7 |
|
10 |
<?php if( isset( $instance['features'] ) ) : ?>
|
11 |
<?php foreach( $instance['features'] as $i => $feature ) : ?>
|
12 |
<div
|
13 |
+
class="sow-features-feature sow-icon-container-position-<?php echo esc_attr( $feature['container_position'] ) ?> <?php if ( floor( $i / $per_row ) == $last_row ) echo 'sow-features-feature-last-row'; ?>"
|
14 |
+
style="display: flex; flex-direction: <?php echo $this->get_feature_flex_direction( $feature['container_position'] ); ?>; float: left; width: <?php echo round( 100 / $per_row, 3 ); ?>%;"
|
15 |
>
|
16 |
|
17 |
<?php if ( ! empty( $feature['more_url'] ) && $instance['icon_link'] && empty( $instance['link_feature'] ) ) : ?>
|