Version Description
- 21 February 2017 =
- Fixed how widget wrapper IDs are generated.
Download this release
Release Info
Developer | gpriday |
Plugin | Page Builder by SiteOrigin |
Version | 2.4.25 |
Comparing to | |
See all releases |
Code changes from version 2.4.24 to 2.4.25
- readme.txt +5 -2
- siteorigin-panels.php +3 -24
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Tags: page builder, responsive, widget, widgets, builder, page, admin, gallery, content, cms, pages, post, css, layout, grid
|
3 |
Requires at least: 4.0
|
4 |
Tested up to: 4.7.2
|
5 |
-
Stable tag: 2.4.
|
6 |
-
Build time: 2017-02-
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
Donate link: https://siteorigin.com/downloads/contribution/
|
@@ -96,6 +96,9 @@ We've tried to ensure that Page Builder is compatible with most plugin widgets.
|
|
96 |
|
97 |
== Changelog ==
|
98 |
|
|
|
|
|
|
|
99 |
= 2.4.24 - 3 February 2017 =
|
100 |
* Add row ID to style wrapper instead of actual row.
|
101 |
* Use more specific selectors for padding CSS.
|
2 |
Tags: page builder, responsive, widget, widgets, builder, page, admin, gallery, content, cms, pages, post, css, layout, grid
|
3 |
Requires at least: 4.0
|
4 |
Tested up to: 4.7.2
|
5 |
+
Stable tag: 2.4.25
|
6 |
+
Build time: 2017-02-21T09:54:44+02:00
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
Donate link: https://siteorigin.com/downloads/contribution/
|
96 |
|
97 |
== Changelog ==
|
98 |
|
99 |
+
= 2.4.25 - 21 February 2017 =
|
100 |
+
* Fixed how widget wrapper IDs are generated.
|
101 |
+
|
102 |
= 2.4.24 - 3 February 2017 =
|
103 |
* Add row ID to style wrapper instead of actual row.
|
104 |
* Use more specific selectors for padding CSS.
|
siteorigin-panels.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Page Builder by SiteOrigin
|
4 |
Plugin URI: https://siteorigin.com/page-builder/
|
5 |
Description: A drag and drop, responsive page builder that simplifies building your website.
|
6 |
-
Version: 2.4.
|
7 |
Author: SiteOrigin
|
8 |
Author URI: https://siteorigin.com
|
9 |
License: GPL3
|
@@ -11,7 +11,7 @@ License URI: http://www.gnu.org/licenses/gpl.html
|
|
11 |
Donate link: http://siteorigin.com/page-builder/#donate
|
12 |
*/
|
13 |
|
14 |
-
define('SITEORIGIN_PANELS_VERSION', '2.4.
|
15 |
if ( ! defined('SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
|
16 |
define('SITEORIGIN_PANELS_JS_SUFFIX', '.min');
|
17 |
}
|
@@ -738,7 +738,6 @@ function siteorigin_panels_get_current_admin_panels_data( ){
|
|
738 |
* @return string
|
739 |
*/
|
740 |
function siteorigin_panels_generate_css($post_id, $panels_data = false){
|
741 |
-
// Exit if we don't have panels data
|
742 |
if( empty($panels_data) ) {
|
743 |
$panels_data = get_post_meta( $post_id, 'panels_data', true );
|
744 |
$panels_data = apply_filters( 'siteorigin_panels_data', $panels_data, $post_id );
|
@@ -989,26 +988,6 @@ function siteorigin_panels_render( $post_id = false, $enqueue_css = true, $panel
|
|
989 |
$panels_data = apply_filters( 'siteorigin_panels_data', $panels_data, $post_id );
|
990 |
if( empty( $panels_data ) || empty( $panels_data['grids'] ) ) return '';
|
991 |
|
992 |
-
// Filter the widgets to add indexes
|
993 |
-
if ( !empty( $panels_data['widgets'] ) ) {
|
994 |
-
$last_gi = 0;
|
995 |
-
$last_ci = 0;
|
996 |
-
$last_wi = 0;
|
997 |
-
foreach ( $panels_data['widgets'] as $wid => &$widget_info ) {
|
998 |
-
|
999 |
-
if ( $widget_info['panels_info']['grid'] != $last_gi ) {
|
1000 |
-
$last_gi = $widget_info['panels_info']['grid'];
|
1001 |
-
$last_ci = 0;
|
1002 |
-
$last_wi = 0;
|
1003 |
-
}
|
1004 |
-
elseif ( $widget_info['panels_info']['cell'] != $last_ci ) {
|
1005 |
-
$last_ci = $widget_info['panels_info']['cell'];
|
1006 |
-
$last_wi = 0;
|
1007 |
-
}
|
1008 |
-
$widget_info['panels_info']['cell_index'] = $last_wi++;
|
1009 |
-
}
|
1010 |
-
}
|
1011 |
-
|
1012 |
// Create the skeleton of the grids
|
1013 |
$grids = array();
|
1014 |
if( !empty( $panels_data['grids'] ) && !empty( $panels_data['grids'] ) ) {
|
@@ -1564,7 +1543,7 @@ function siteorigin_panels_process_panels_data( $panels_data ){
|
|
1564 |
// Filter the widgets to add indexes
|
1565 |
if ( $widget['panels_info']['grid'] != $last_gi ) {
|
1566 |
$last_gi = $widget['panels_info']['grid'];
|
1567 |
-
$last_ci =
|
1568 |
$last_wi = 0;
|
1569 |
}
|
1570 |
elseif ( $widget['panels_info']['cell'] != $last_ci ) {
|
3 |
Plugin Name: Page Builder by SiteOrigin
|
4 |
Plugin URI: https://siteorigin.com/page-builder/
|
5 |
Description: A drag and drop, responsive page builder that simplifies building your website.
|
6 |
+
Version: 2.4.25
|
7 |
Author: SiteOrigin
|
8 |
Author URI: https://siteorigin.com
|
9 |
License: GPL3
|
11 |
Donate link: http://siteorigin.com/page-builder/#donate
|
12 |
*/
|
13 |
|
14 |
+
define('SITEORIGIN_PANELS_VERSION', '2.4.25');
|
15 |
if ( ! defined('SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
|
16 |
define('SITEORIGIN_PANELS_JS_SUFFIX', '.min');
|
17 |
}
|
738 |
* @return string
|
739 |
*/
|
740 |
function siteorigin_panels_generate_css($post_id, $panels_data = false){
|
|
|
741 |
if( empty($panels_data) ) {
|
742 |
$panels_data = get_post_meta( $post_id, 'panels_data', true );
|
743 |
$panels_data = apply_filters( 'siteorigin_panels_data', $panels_data, $post_id );
|
988 |
$panels_data = apply_filters( 'siteorigin_panels_data', $panels_data, $post_id );
|
989 |
if( empty( $panels_data ) || empty( $panels_data['grids'] ) ) return '';
|
990 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
991 |
// Create the skeleton of the grids
|
992 |
$grids = array();
|
993 |
if( !empty( $panels_data['grids'] ) && !empty( $panels_data['grids'] ) ) {
|
1543 |
// Filter the widgets to add indexes
|
1544 |
if ( $widget['panels_info']['grid'] != $last_gi ) {
|
1545 |
$last_gi = $widget['panels_info']['grid'];
|
1546 |
+
$last_ci = $widget['panels_info']['cell'];
|
1547 |
$last_wi = 0;
|
1548 |
}
|
1549 |
elseif ( $widget['panels_info']['cell'] != $last_ci ) {
|