Version Description
- February 10 2015 =
- Fixed fatal error on RTL sites.
- Made setting to enable tablet layout. Disabled by default.
Download this release
Release Info
Developer | gpriday |
Plugin | Page Builder by SiteOrigin |
Version | 2.3.1 |
Comparing to | |
See all releases |
Code changes from version 2.3 to 2.3.1
- readme.txt +6 -2
- settings/settings.php +7 -0
- siteorigin-panels.php +4 -5
readme.txt
CHANGED
@@ -2,7 +2,7 @@
|
|
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.4.2
|
5 |
-
Stable tag: 2.
|
6 |
License: GPLv3
|
7 |
License URI: http://www.gnu.org/licenses/gpl.html
|
8 |
Donate link: http://siteorigin.com/page-builder/#donate
|
@@ -95,7 +95,11 @@ We've tried to ensure that Page Builder is compatible with most plugin widgets.
|
|
95 |
|
96 |
== Changelog ==
|
97 |
|
98 |
-
= 2.3 -
|
|
|
|
|
|
|
|
|
99 |
* Delete preview panels data if there are no widgets.
|
100 |
* Added a collapse order field.
|
101 |
* Added custom row ID field.
|
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.4.2
|
5 |
+
Stable tag: 2.3.1
|
6 |
License: GPLv3
|
7 |
License URI: http://www.gnu.org/licenses/gpl.html
|
8 |
Donate link: http://siteorigin.com/page-builder/#donate
|
95 |
|
96 |
== Changelog ==
|
97 |
|
98 |
+
= 2.3.1 - February 10 2015 =
|
99 |
+
* Fixed fatal error on RTL sites.
|
100 |
+
* Made setting to enable tablet layout. Disabled by default.
|
101 |
+
|
102 |
+
= 2.3 - February 10 2015 =
|
103 |
* Delete preview panels data if there are no widgets.
|
104 |
* Added a collapse order field.
|
105 |
* Added custom row ID field.
|
settings/settings.php
CHANGED
@@ -118,6 +118,7 @@ class SiteOrigin_Panels_Settings {
|
|
118 |
|
119 |
// The layout fields
|
120 |
$defaults['responsive'] = true;
|
|
|
121 |
$defaults['tablet-width'] = 1024;
|
122 |
$defaults['mobile-width'] = 780;
|
123 |
$defaults['margin-bottom'] = 30;
|
@@ -242,6 +243,12 @@ class SiteOrigin_Panels_Settings {
|
|
242 |
'description' => __('Collapse widgets, rows and columns on mobile devices.', 'siteorigin-panels'),
|
243 |
);
|
244 |
|
|
|
|
|
|
|
|
|
|
|
|
|
245 |
$fields['layout']['fields']['tablet-width'] = array(
|
246 |
'type' => 'number',
|
247 |
'unit' => 'px',
|
118 |
|
119 |
// The layout fields
|
120 |
$defaults['responsive'] = true;
|
121 |
+
$defaults['tablet-layout'] = false;
|
122 |
$defaults['tablet-width'] = 1024;
|
123 |
$defaults['mobile-width'] = 780;
|
124 |
$defaults['margin-bottom'] = 30;
|
243 |
'description' => __('Collapse widgets, rows and columns on mobile devices.', 'siteorigin-panels'),
|
244 |
);
|
245 |
|
246 |
+
$fields['layout']['fields']['tablet-layout'] = array(
|
247 |
+
'type' => 'checkbox',
|
248 |
+
'label' => __('Use Tablet Layout', 'siteorigin-panels'),
|
249 |
+
'description' => __('Collapses columns differently on tablet devices.', 'siteorigin-panels'),
|
250 |
+
);
|
251 |
+
|
252 |
$fields['layout']['fields']['tablet-width'] = array(
|
253 |
'type' => 'number',
|
254 |
'unit' => 'px',
|
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.3
|
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.3');
|
15 |
if ( ! defined('SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
|
16 |
define('SITEORIGIN_PANELS_JS_SUFFIX', '.min');
|
17 |
}
|
@@ -738,7 +738,8 @@ function siteorigin_panels_generate_css($post_id, $panels_data = false){
|
|
738 |
}
|
739 |
|
740 |
if ( $settings['responsive'] ) {
|
741 |
-
|
|
|
742 |
// Tablet Responsive
|
743 |
$css->add_cell_css($post_id, $grid_id, false, '', array(
|
744 |
'width' => '50%'
|
@@ -941,8 +942,6 @@ function siteorigin_panels_render( $post_id = false, $enqueue_css = true, $panel
|
|
941 |
}
|
942 |
}
|
943 |
|
944 |
-
if( is_rtl() ) $panels_data = siteorigin_panels_make_rtl( $panels_data );
|
945 |
-
|
946 |
// Create the skeleton of the grids
|
947 |
$grids = array();
|
948 |
if( !empty( $panels_data['grids'] ) && !empty( $panels_data['grids'] ) ) {
|
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.3.1
|
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.3.1');
|
15 |
if ( ! defined('SITEORIGIN_PANELS_JS_SUFFIX' ) ) {
|
16 |
define('SITEORIGIN_PANELS_JS_SUFFIX', '.min');
|
17 |
}
|
738 |
}
|
739 |
|
740 |
if ( $settings['responsive'] ) {
|
741 |
+
|
742 |
+
if( $settings['tablet-layout'] && $cell_count >= 3 && $panels_tablet_width > $panels_mobile_width ) {
|
743 |
// Tablet Responsive
|
744 |
$css->add_cell_css($post_id, $grid_id, false, '', array(
|
745 |
'width' => '50%'
|
942 |
}
|
943 |
}
|
944 |
|
|
|
|
|
945 |
// Create the skeleton of the grids
|
946 |
$grids = array();
|
947 |
if( !empty( $panels_data['grids'] ) && !empty( $panels_data['grids'] ) ) {
|