From f188a0c96719add739f55396881ede24f695f09c Mon Sep 17 00:00:00 2001 From: Andrew Misplon Date: Mon, 14 Feb 2022 12:00:16 +0200 Subject: [PATCH 1/4] Minor formatting improvements --- .../widgets/call-to-action/call-to-action.php | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/widgets/widgets/call-to-action/call-to-action.php b/widgets/widgets/call-to-action/call-to-action.php index 310406ae4..57cab97db 100644 --- a/widgets/widgets/call-to-action/call-to-action.php +++ b/widgets/widgets/call-to-action/call-to-action.php @@ -1,39 +1,39 @@ __('A Call to Action block', 'siteorigin-panels'), + 'description' => __( 'A Call to Action block', 'siteorigin-panels' ), 'default_style' => 'simple', ), array(), array( 'title' => array( 'type' => 'text', - 'label' => __('Title', 'siteorigin-panels'), + 'label' => __( 'Title', 'siteorigin-panels' ), ), 'subtitle' => array( 'type' => 'text', - 'label' => __('Sub Title', 'siteorigin-panels'), + 'label' => __( 'Sub Title', 'siteorigin-panels' ), ), 'button_text' => array( 'type' => 'text', - 'label' => __('Button Text', 'siteorigin-panels'), + 'label' => __( 'Button Text', 'siteorigin-panels' ), ), 'button_url' => array( 'type' => 'text', - 'label' => __('Button URL', 'siteorigin-panels'), + 'label' => __( 'Button URL', 'siteorigin-panels' ), ), 'button_new_window' => array( 'type' => 'checkbox', - 'label' => __('Open In New Window', 'siteorigin-panels'), + 'label' => __( 'Open In New Window', 'siteorigin-panels' ), ), ) ); - // We need the button style - $this->add_sub_widget('button', __('Button', 'siteorigin-panels'), 'SiteOrigin_Panels_Widget_Button'); + // We need the button style. + $this->add_sub_widget( 'button', __( 'Button', 'siteorigin-panels' ), 'SiteOrigin_Panels_Widget_Button') ; } } \ No newline at end of file From 213f9a25243331e5fcb094ffd1b903aeb18cd411 Mon Sep 17 00:00:00 2001 From: Alex S <17275120+AlexGStapleton@users.noreply.github.com> Date: Wed, 16 Feb 2022 23:39:22 +1000 Subject: [PATCH 2/4] CSS Container: Account for all Row Layouts When Outputting Full Width JS --- inc/renderer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/renderer.php b/inc/renderer.php index 34211b786..5e649fe68 100644 --- a/inc/renderer.php +++ b/inc/renderer.php @@ -118,7 +118,8 @@ public function generate_css( $post_id, $panels_data = false, $layout_data = fal ! empty( $row['style']['row_stretch'] ) && ( $row['style']['row_stretch'] == 'full' || - $row['style']['row_stretch'] == 'stretch' + $row['style']['row_stretch'] == 'full-stretched' || + $row['style']['row_stretch'] == 'full-stretched-padded' ) ) { $this->container['full_width'] = true; From 08381350bb268a7714f991ba20742dbe831e2581 Mon Sep 17 00:00:00 2001 From: Alex S <17275120+AlexGStapleton@users.noreply.github.com> Date: Fri, 18 Feb 2022 01:43:54 +1000 Subject: [PATCH 3/4] CSS Container Breaker: Prevent 1px situation Where Container Doesn't Collapse Correctly --- inc/renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/renderer.php b/inc/renderer.php index 5e649fe68..02177686f 100644 --- a/inc/renderer.php +++ b/inc/renderer.php @@ -109,7 +109,7 @@ public function generate_css( $post_id, $panels_data = false, $layout_data = fal // If the CSS Container Breaker is enabled, and this row is using it, // we need to remove the cell widths on mobile. - $css_container_cutoff = $this->container['css_override'] && isset( $row['style']['row_stretch'] ) && $row['style']['row_stretch'] == 'full' ? ":$panels_mobile_width" : 1920; + $css_container_cutoff = $this->container['css_override'] && isset( $row['style']['row_stretch'] ) && $row['style']['row_stretch'] == 'full' ? ':' . ( $panels_mobile_width + 1 ) : 1920; if ( $this->container['css_override'] && From c6b2ec6de59832ae4b6b74d54f6b8558ccbfa968 Mon Sep 17 00:00:00 2001 From: Andrew Misplon Date: Sat, 19 Feb 2022 17:19:25 +0200 Subject: [PATCH 4/4] Updated changelog --- readme.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/readme.txt b/readme.txt index 65831970c..1f17e3141 100644 --- a/readme.txt +++ b/readme.txt @@ -107,6 +107,10 @@ SiteOrigin Premium includes access to our professional email support service, pe == Changelog == += 2.16.4 - 19 February 2022 = +* Full-Width Containers Using CSS: Restored normal functionality when Standard or Full-Width rows not present. +* Full-Width Containers Using CSS: Resolved a collapse issue when the browser resolution equals the collapse value. + = 2.16.3 - 14 February 2022 = * Fixed Background Images: Change to `scroll` on mobile devices. Resolves iOS bug.