Skip to content

Commit

Permalink
Merge pull request #223 from bigboxwc/release/3.3.0
Browse files Browse the repository at this point in the history
release/3.3.0
  • Loading branch information
spencerfinnell authored Aug 3, 2019
2 parents 0733c25 + da294be commit e4cba5e
Show file tree
Hide file tree
Showing 23 changed files with 214 additions and 196 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [3.3.0] - 2019-08-03

### New

- WooCommerce 3.7 compatibility.
- Updated block editor support.

## [3.2.0] - 2019-04-27

### New
Expand Down
2 changes: 1 addition & 1 deletion app/customize/controls.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function bigbox_customize_controls_enqueue_scripts( $wp_customize ) {

wp_enqueue_style(
'bigbox-customize-controls',
get_template_directory_uri() . '/public/css/customize-controls.min.css',
get_template_directory_uri() . '/public/css/customize-controls-css.min.css',
[],
bigbox_get_theme_version()
);
Expand Down
2 changes: 1 addition & 1 deletion app/integrations/facetwp/template-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function bigbox_facetwp_wp_enqueue_scripts() {

wp_enqueue_style(
"{$stylesheet}-facetwp",
get_template_directory_uri() . '/public/css/facetwp.min.css',
get_template_directory_uri() . '/public/css/facetwp-css.min.css',
[],
$version
);
Expand Down
17 changes: 7 additions & 10 deletions app/integrations/gutenberg/class-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function add_theme_support() {
add_theme_support( 'editor-styles' );

// Add editor style.
add_editor_style( 'public/css/gutenberg.min.css' );
add_editor_style( 'public/css/gutenberg-css.min.css' );

$palette = [];
$colors = bigbox_get_theme_colors();
Expand Down Expand Up @@ -162,6 +162,10 @@ public function inline_editor_css( $settings ) {
$weight_base = bigbox_get_theme_font_weight( 'base' );
$weight_bold = bigbox_get_theme_font_weight( 'bold' );

if ( 'default' === $family ) {
$family = "-apple-system, blinkmacsystemfont, 'Segoe UI', roboto, 'Helvetica Neue', arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'";
}

$config = [];

// Base.
Expand All @@ -173,7 +177,7 @@ public function inline_editor_css( $settings ) {
'declarations' => [
'color' => esc_attr( $gray700 ),
'font-size' => ( $size * 16 ) . 'px',
'font-family' => esc_attr( $family ),
'font-family' => $family,
'font-weight' => $weight_base,
],
];
Expand Down Expand Up @@ -215,12 +219,6 @@ public function inline_editor_css( $settings ) {
'selectors' => [
'.editor-post-title__block .editor-post-title__input',
'a',
'h1',
'h2',
'h3',
'h4',
'h5',
'h6',
],
'declarations' => [
'color' => esc_attr( $gray800 ),
Expand Down Expand Up @@ -255,8 +253,7 @@ public function inline_editor_css( $settings ) {
}

$settings['styles'][] = [
'baseUrl' => null,
'css' => $css->build(),
'css' => $css->build(),
];

return $settings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function bigbox_woocommerce_bookings_enqueue_styles() {

wp_enqueue_style(
$stylesheet,
get_template_directory_uri() . '/public/css/woocommerce-bookings.min.css',
get_template_directory_uri() . '/public/css/woocommerce-bookings-css.min.css',
[],
$version
);
Expand Down
2 changes: 1 addition & 1 deletion app/integrations/woocommerce-brands/template-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function bigbox_woocommerce_brands_enqueue_styles() {

wp_enqueue_style(
$stylesheet,
get_template_directory_uri() . '/public/css/woocommerce-brands.min.css',
get_template_directory_uri() . '/public/css/woocommerce-brands-css.min.css',
[],
$version
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function bigbox_woocommerce_product_vendors_enqueue_styles() {

wp_enqueue_style(
$stylesheet,
get_template_directory_uri() . '/public/css/woocommerce-product-vendors.min.css',
get_template_directory_uri() . '/public/css/woocommerce-product-vendors-css.min.css',
[],
$version
);
Expand Down
2 changes: 1 addition & 1 deletion app/integrations/woocommerce/wc-template-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function woocommerce_subcategory_thumbnail( $category ) {
// End modification.
$small_thumbnail_size = apply_filters( 'subcategory_archive_thumbnail_size', 'woocommerce_thumbnail' );
$dimensions = wc_get_image_size( $small_thumbnail_size );
$thumbnail_id = get_woocommerce_term_meta( $category->term_id, 'thumbnail_id', true );
$thumbnail_id = get_term_meta( $category->term_id, 'thumbnail_id', true );

if ( $thumbnail_id ) {
$image = wp_get_attachment_image_src( $thumbnail_id, $small_thumbnail_size );
Expand Down
2 changes: 1 addition & 1 deletion app/nux/class-setup-guide.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function( $a, $b ) {
public function admin_enqueue_scripts() {
$version = bigbox_get_theme_version();

wp_register_style( 'bigbox-nux', get_template_directory_uri() . '/public/css/nux.min.css', [], $version );
wp_register_style( 'bigbox-nux', get_template_directory_uri() . '/public/css/nux-css.min.css', [], $version );
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/theme/assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function bigbox_enqueue_styles() {
// Base and dynamic styles.
wp_enqueue_style(
$stylesheet,
get_template_directory_uri() . '/public/css/app.min.css',
get_template_directory_uri() . '/public/css/app-css.min.css',
$deps,
$version
);
Expand Down
Loading

0 comments on commit e4cba5e

Please sign in to comment.