Skip to content

Commit

Permalink
Branch 2.20.2 (#74)
Browse files Browse the repository at this point in the history
* Issue 66 - Fix Transparent color palette issues (#71)

* fix translucent palette colors

* fix alpha hsla conversion

* add blog post border radius control (#70)

* fix sticky header not responsing to control (#73)

* Issue 65 - Dreamhost Issue with Crio and PHP 8.1+ (#69)

* fix deprecated errors

* remove errro_log

* fix the edit button for logos

* update versions

* update changelog

* update versions for stable
  • Loading branch information
jamesros161 authored May 8, 2023
1 parent b6908b5 commit 57fd784
Show file tree
Hide file tree
Showing 14 changed files with 51 additions and 9 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "boldgrid-theme-framework",
"version": "2.20.1",
"version": "2.20.2",
"description": "BoldGrid Theme Framework",
"main": "index.js",
"engines": {
Expand Down
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/assets/js/customizer/customizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ] );
} );
} );

Expand Down
1 change: 1 addition & 0 deletions src/assets/scss/boldgrid/blog/design/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ main {
article.post {
display: flex;
flex-direction: column;
overflow: hidden;
.entry-header {
display: flex;
flex-direction: column;
Expand Down
2 changes: 1 addition & 1 deletion src/boldgrid-theme-framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>
* Author URI: https://www.boldgrid.com/
* Text Domain: bgtfw
Expand Down
2 changes: 1 addition & 1 deletion src/includes/class-boldgrid-framework-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down
2 changes: 1 addition & 1 deletion src/includes/class-boldgrid-framework-compile-colors.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/includes/class-boldgrid-framework-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) . ')';
Expand Down
2 changes: 1 addition & 1 deletion src/includes/configs/customizer-options/edit.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
),
Expand Down
19 changes: 19 additions & 0 deletions src/includes/configs/customizer/controls/blog-page.controls.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
7 changes: 7 additions & 0 deletions src/includes/configs/customizer/sections.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 57fd784

Please sign in to comment.