diff --git a/README.md b/README.md index 4b4b9441..55a891ef 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,12 @@ Crio is a WordPress SuperTheme that allows front-end designers, developers and o ## Changelog ## +### 2.20.2 ### +* Improvement: Add Border Radius to Blog > Blog Page > Border [#60](https://github.com/BoldGrid/crio/issues/60) +* Bug Fix: Selecting transparent color color palette causes css syntax error[#66](https://github.com/BoldGrid/crio/issues/66) +* Bug Fix: Customizer Sticky Header Background doesn't change in live preview[#67](https://github.com/BoldGrid/crio/issues/67) +* Bug Fix: Dreamhost Issue with Crio and PHP 8.1+ [#65](https://github.com/BoldGrid/crio/issues/65) + ### 2.20.1 ### * Bug Fix: Fix missing CSS for the PPB Post List widget when updating to 2.20.0. diff --git a/package.json b/package.json index afadb901..1aa87bdd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "boldgrid-theme-framework", - "version": "2.20.1", + "version": "2.20.2", "description": "BoldGrid Theme Framework", "main": "index.js", "engines": { diff --git a/readme.txt b/readme.txt index aeb0392f..bef97408 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: news, blog, e-commerce, sticky-post, theme-options, threaded-comments, ful Requires PHP: 5.6 Requires at least: 4.8 Tested up to: 6.2 -Stable tag: 2.20.1 +Stable tag: 2.20.2 License: GPL-3.0-or-later License URI: https://www.gnu.org/licenses/gpl-3.0-standalone.html @@ -22,6 +22,12 @@ This version changes the way the color palette CSS is generated. If you are usin ## Changelog ## +== 2.20.2 == +* Improvement: Add Border Radius to Blog > Blog Page > Border [#60](https://github.com/BoldGrid/crio/issues/60) +* Bug Fix: Selecting transparent color color palette causes css syntax error[#66](https://github.com/BoldGrid/crio/issues/66) +* Bug Fix: Customizer Sticky Header Background doesn't change in live preview[#67](https://github.com/BoldGrid/crio/issues/67) +* Bug Fix: Dreamhost Issue with Crio and PHP 8.1+ [#65](https://github.com/BoldGrid/crio/issues/65) + == 2.20.1 == * Bug Fix: Fix missing CSS for the PPB Post List widget when updating to 2.20.0. diff --git a/src/assets/js/customizer/customizer.js b/src/assets/js/customizer/customizer.js index 7baf2d56..9ddc2148 100644 --- a/src/assets/js/customizer/customizer.js +++ b/src/assets/js/customizer/customizer.js @@ -583,7 +583,7 @@ BOLDGRID.Customizer.Util.getInitialPalettes = function( option ) { /* Header Background Color */ api( 'bgtfw_header_color', function( value ) { value.bind( function() { - colorPreview.outputColor( 'bgtfw_header_color', '#masthead, #navi', [ 'background-color', 'text-default' ] ); + colorPreview.outputColor( 'bgtfw_header_color', '#masthead, #navi, #masthead-sticky', [ 'background-color', 'text-default' ] ); } ); } ); diff --git a/src/assets/scss/boldgrid/blog/design/_base.scss b/src/assets/scss/boldgrid/blog/design/_base.scss index f19a1ae7..5c744517 100644 --- a/src/assets/scss/boldgrid/blog/design/_base.scss +++ b/src/assets/scss/boldgrid/blog/design/_base.scss @@ -81,6 +81,7 @@ main { article.post { display: flex; flex-direction: column; + overflow: hidden; .entry-header { display: flex; flex-direction: column; diff --git a/src/boldgrid-theme-framework.php b/src/boldgrid-theme-framework.php index 608c49aa..329808c7 100644 --- a/src/boldgrid-theme-framework.php +++ b/src/boldgrid-theme-framework.php @@ -3,7 +3,7 @@ * Plugin Name: BoldGrid Theme Framework * Plugin URI: https://www.boldgrid.com/docs/configuration-file * Description: BoldGrid Theme Framework is a library that allows you to easily make BoldGrid themes. Please see our reference guide for more information: https://www.boldgrid.com/docs/configuration-file - * Version: 2.20.1 + * Version: 2.20.2 * Author: BoldGrid.com * Author URI: https://www.boldgrid.com/ * Text Domain: bgtfw diff --git a/src/includes/class-boldgrid-framework-api.php b/src/includes/class-boldgrid-framework-api.php index 6ef90010..f379f835 100644 --- a/src/includes/class-boldgrid-framework-api.php +++ b/src/includes/class-boldgrid-framework-api.php @@ -898,7 +898,7 @@ public static function display_sidebar() { foreach ( $conditions as $condition ) { // Split [params]method to useable strings. preg_match( '/^\[.*\]/', $condition, $matches ); - $type = ! empty( $matches[0] ) ? $matches[0] : null; + $type = ! empty( $matches[0] ) ? $matches[0] : ''; $param = str_replace( array( '[', ']' ), '', $type ); $is_page_template = ( strpos( $condition, 'is_page_template' ) !== false ); switch ( $param ) { diff --git a/src/includes/class-boldgrid-framework-compile-colors.php b/src/includes/class-boldgrid-framework-compile-colors.php index 23d9ac83..a9a3ba6a 100644 --- a/src/includes/class-boldgrid-framework-compile-colors.php +++ b/src/includes/class-boldgrid-framework-compile-colors.php @@ -634,7 +634,7 @@ public function rgba_to_hsla( $rgba_array, $luminosity_adjust = 0 ) { $r = intval( $rgba_array[0] ); $g = intval( $rgba_array[1] ); $b = intval( $rgba_array[2] ); - $a = isset( $rgba_array[3] ) ? intval( $rgba_array[3] ) : 1; + $a = isset( $rgba_array[3] ) ? $rgba_array[3] : 1; $r /= 255; $g /= 255; diff --git a/src/includes/class-boldgrid-framework-styles.php b/src/includes/class-boldgrid-framework-styles.php index cbeb138a..9cd355b7 100644 --- a/src/includes/class-boldgrid-framework-styles.php +++ b/src/includes/class-boldgrid-framework-styles.php @@ -619,7 +619,7 @@ public function get_css_vars( $inline_css = '' ) { $dark_hsla_array = $helper->rgba_to_hsla( $value_rgba_array, -10 ); $darker_hsla_array = $helper->rgba_to_hsla( $value_rgba_array, -20 ); - $value_raw = str_replace( array( 'rgb(', ')' ), array( '', '' ), $value ); + $value_raw = "$value_rgba_array[0], $value_rgba_array[1], $value_rgba_array[2]"; $value_light = 'hsla(' . implode( ',', $light_hsla_array ) . ')'; $value_lighter = 'hsla(' . implode( ',', $lighter_hsla_array ) . ')'; $value_dark = 'hsla(' . implode( ',', $dark_hsla_array ) . ')'; diff --git a/src/includes/configs/customizer-options/edit.config.php b/src/includes/configs/customizer-options/edit.config.php index 98dd6cac..7c63397f 100644 --- a/src/includes/configs/customizer-options/edit.config.php +++ b/src/includes/configs/customizer-options/edit.config.php @@ -15,7 +15,7 @@ 'custom_logo' => array( 'edit_vars' => array( array( - 'selector' => array( '.custom-logo' ), + 'selector' => array( '.custom-logo-link' ), 'label' => esc_html__( 'Change Logo', 'crio' ), 'description' => esc_html__( 'Upload or change your site logo.', 'crio' ), ), diff --git a/src/includes/configs/customizer/controls/blog-page.controls.php b/src/includes/configs/customizer/controls/blog-page.controls.php index f8f39509..22cde275 100644 --- a/src/includes/configs/customizer/controls/blog-page.controls.php +++ b/src/includes/configs/customizer/controls/blog-page.controls.php @@ -1994,6 +1994,25 @@ ), 'sanitize_callback' => array( $bgtfw_color_sanitize, 'sanitize_palette_selector' ), ), + 'bgtfw_blog_border_radius' => array( + 'type' => 'kirki-generic', + 'transport' => 'postMessage', + 'section' => 'bgtfw_blog_border_radius_section', + 'settings' => 'bgtfw_blog_border_radius', + 'label' => '', + 'default' => '', + 'sanitize_callback' => array( 'Boldgrid_Framework_Customizer_Generic', 'sanitize' ), + 'choices' => array( + 'name' => 'boldgrid_controls', + 'type' => 'BorderRadius', + 'settings' => array( + 'responsive' => Boldgrid_Framework_Customizer_Generic::$device_sizes, + 'control' => array( + 'selectors' => array( '.palette-primary.archive .post, .palette-primary.blog .post' ), + ), + ), + ), + ), 'bgtfw_blog_shadow' => array( 'type' => 'kirki-generic', 'transport' => 'postMessage', diff --git a/src/includes/configs/customizer/sections.config.php b/src/includes/configs/customizer/sections.config.php index ad5301f3..1d3ce2a4 100644 --- a/src/includes/configs/customizer/sections.config.php +++ b/src/includes/configs/customizer/sections.config.php @@ -551,6 +551,13 @@ 'description' => esc_html__( 'Change the border of your blog posts.', 'crio' ), 'capability' => 'edit_theme_options', ), + 'bgtfw_blog_border_radius_section' => array( + 'title' => __( 'Border Radius', 'crio' ), + 'panel' => 'bgtfw_blog_blog_page_panel', + 'section' => 'bgtfw_pages_blog_blog_page_advanced', + 'description' => esc_html__( 'Change the border radius of your blog posts.', 'crio' ), + 'capability' => 'edit_theme_options', + ), 'bgtfw_blog_shadow_section' => array( 'title' => __( 'Box Shadow', 'crio' ), 'panel' => 'bgtfw_blog_blog_page_panel', diff --git a/src/includes/customizer/class-boldgrid-framework-customizer-generic.php b/src/includes/customizer/class-boldgrid-framework-customizer-generic.php index 2900948e..045600a4 100644 --- a/src/includes/customizer/class-boldgrid-framework-customizer-generic.php +++ b/src/includes/customizer/class-boldgrid-framework-customizer-generic.php @@ -150,6 +150,9 @@ public function directional_control_styles( $control ) { $css = ''; $selector = implode( ',', $control['choices']['settings']['control']['selectors'] ); foreach ( $defaults as $config_set ) { + if ( ! is_array( $config_set ) ) { + continue; + } foreach ( $config_set['media'] as $media_device ) { $media_prefix = $this->create_media_prefix( $media_device ); $control_css = $this->get_directional_css( $control, $config_set ); diff --git a/style.css b/style.css index b5a934ba..c80314f2 100644 --- a/style.css +++ b/style.css @@ -4,7 +4,7 @@ Author: BoldGrid Theme URI: https://www.boldgrid.com/themes/crio/ Author URI: https://www.boldgrid.com/ Description: Crio is a WordPress SuperTheme that allows front-end designers, developers and other web professionals to create without bounds or restrictions. Crio's advanced customization options are completely integrated with the WordPress Customizer API, providing you with a powerful, but familiar interface to customize your website. Our integration gives you granular control over many elements straight from the Customizer, and even device previews so you can see how your site looks on different devices. Crio’s unique color palette system keeps colors consistent across your site. Drag and drop colors in your palette to increase or decrease the usage of that color throughout your website. Use the advanced controls to create a custom Header, Footer, or Blog Page layout. Be Bold and stand above the rest with Prime by BoldGrid! -Version: 2.20.1 +Version: 2.20.2 Requires at least: 5.5 Tested up to: 6.2 Requires PHP: 5.6