Skip to content

Commit

Permalink
Merge pull request #318 from bootscore/5.2.3.0
Browse files Browse the repository at this point in the history
5.2.3.0
  • Loading branch information
justinkruit committed Dec 16, 2022
2 parents 998fec8 + 4b8ef1d commit 7685ca4
Show file tree
Hide file tree
Showing 11 changed files with 77 additions and 38 deletions.
4 changes: 2 additions & 2 deletions js/lib/bootstrap.bundle.min.js

Large diffs are not rendered by default.

16 changes: 12 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
=== bootScore ===

Contributors: Bastian Kreiter, Justin Kruit, Martin Holzer, Tim Groeneveld, Laurent Binder, Patrick, Gustavo Silva, TershiXia, electronicsandprogramming, charly, Alexandros Kourmoulakis, Sven Geiß, ucalegonte, Benhaim Ido, Sean Emerson, Androidacy
Contributors: Bastian Kreiter, Justin Kruit, Martin Holzer, Tim Groeneveld, Laurent Binder, Patrick, Gustavo Silva, TershiXia, electronicsandprogramming, charly, Alexandros Kourmoulakis, Sven Geiß, ucalegonte, Benhaim Ido, Sean Emerson, Androidacy, Tamás Dohány

Tags: featured-images, threaded-comments, translation-ready

Requires at least: 4.5
Tested up to: 6.1
Tested up to: 6.1.1
Requires PHP: 5.6
Stable tag: 5.2.2.1
Stable tag: 5.2.3.0
License: MIT License
License URI: https://github.com/bootscore/bootscore/blob/main/LICENSE

Expand Down Expand Up @@ -57,7 +57,15 @@ bootScore includes support for WooCommerce and Infinite Scroll in Jetpack.

== Changelog ==

= 5.2.2.0 - November 03 2022 =
= 5.2.3.0 - December 16 2022 =

* [UPDATE] WC 7.2.0 templates
* [UPDATE] Bootstrap 5.2.3
* [IMPROVEMENT] Türkçe
* [NEW] Magyar, thanks to iamdtms


= 5.2.2.1 - November 03 2022 =

PHP

Expand Down
2 changes: 1 addition & 1 deletion scss/_bscore_woocommerce.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* bootScore WooCommerce 5.2.2.0 (https://bootscore.me/)
* bootScore WooCommerce 5.2.3.0 (https://bootscore.me/)
*/

@import "bootscore_woocommerce/wc_alerts";
Expand Down
7 changes: 4 additions & 3 deletions scss/bootscore_woocommerce/_wc_qty_btn.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ WooCommerce Quantity Input
.quantity {
width: 140px;

// Hide quantity if product can only be purchased once
&.hidden {
display: none;
// Disable input if product is 1 in stock or limit purchases to 1 item per order
// https://github.com/woocommerce/woocommerce/pull/35767
[max="1"] {
@extend .form-control:disabled;
}
}
3 changes: 0 additions & 3 deletions scss/bootstrap/_carousel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
display: block;
}

/* rtl:begin:ignore */
.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
transform: translateX(100%);
Expand All @@ -53,8 +52,6 @@
transform: translateX(-100%);
}

/* rtl:end:ignore */


//
// Alternate transitions
Expand Down
2 changes: 1 addition & 1 deletion scss/bootstrap/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ $_luminance-list: .0008 .001 .0011 .0013 .0015 .0017 .002 .0022 .0025 .0027 .003
// Return opaque color
// opaque(#fff, rgba(0, 0, 0, .5)) => #808080
@function opaque($background, $foreground) {
@return mix(rgba($foreground, 1), $background, opacity($foreground) * 100);
@return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
}

// scss-docs-start color-functions
Expand Down
3 changes: 3 additions & 0 deletions scss/bootstrap/bootstrap-utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
@import "mixins";
@import "utilities";

// Layout & components
@import "root";

// Helpers
@import "helpers";

Expand Down
2 changes: 1 addition & 1 deletion scss/bootstrap/mixins/_banner.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@mixin bsBanner($file) {
/*!
* Bootstrap #{$file} v5.2.2 (https://getbootstrap.com/)
* Bootstrap #{$file} v5.2.3 (https://getbootstrap.com/)
* Copyright 2011-2022 The Bootstrap Authors
* Copyright 2011-2022 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
Expand Down
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Theme URI: https://bootscore.me/
Author: bootScore
Author URI: https://bootscore.me
Description: A powerful Bootstrap 5 WordPress Starter Theme with WooCommerce Support. <a href="https://bootscore.me/category/documentation/" target="_blank">Documentation</a>. This theme gives you full control whatever you do and the full freedom to design whatever you want. It comes with a wide selection of category, page, post, author and archive templates as well as sidebar, header, footer and 404 widgets. There are no customizer settings in the backend. All settings can only be made by touching the code. Some CSS, HTML, PHP and JS Skills are required to customize it.
Version: 5.2.2.1
Tested up to: 6.1
Version: 5.2.3.0
Tested up to: 6.1.1
Requires PHP: 5.6
License: MIT License
License URI: https://github.com/bootscore/bootscore/blob/main/LICENSE
Expand Down
2 changes: 1 addition & 1 deletion woocommerce/global/form-login.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates
* @version 7.1.0
* @version 7.0.1
*/

// Exit if accessed directly.
Expand Down
70 changes: 50 additions & 20 deletions woocommerce/global/quantity-input.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?php

/**
* Product quantity inputs
*
Expand All @@ -12,29 +11,60 @@
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates
* @version 4.0.0
* @package WooCommerce\Templates
* @version 7.2.0
*/

defined('ABSPATH') || exit;
defined( 'ABSPATH' ) || exit;

if ($max_value && $min_value === $max_value) {
?>
<div class="quantity hidden">
<input type="hidden" id="<?php echo esc_attr($input_id); ?>" class="qty" name="<?php echo esc_attr($input_name); ?>" value="<?php echo esc_attr($min_value); ?>" />
</div>
<?php
/* translators: %s: Quantity. */
$label = ! empty( $args['product_name'] ) ? sprintf( esc_html__( '%s quantity', 'woocommerce' ), wp_strip_all_tags( $args['product_name'] ) ) : esc_html__( 'Quantity', 'woocommerce' );

// In some cases we wish to display the quantity but not allow for it to be changed.
if ( $max_value && $min_value === $max_value ) {
$is_readonly = true;
$input_value = $min_value;
} else {
/* translators: %s: Quantity. */
$label = !empty($args['product_name']) ? sprintf(esc_html__('%s quantity', 'woocommerce'), wp_strip_all_tags($args['product_name'])) : esc_html__('Quantity', 'woocommerce');
$is_readonly = false;
}
?>
<div class="quantity input-group">
<?php do_action('woocommerce_before_quantity_input_field'); ?>
<button type="button" class="input-group-text qty_button minus">-</button>
<label class="screen-reader-text" for="<?php echo esc_attr($input_id); ?>"><?php esc_html_e('Quantity', 'woocommerce'); ?></label>
<input type="number" id="<?php echo esc_attr($input_id); ?>" class="input-text qty text form-control" step="<?php echo esc_attr($step); ?>" min="<?php echo esc_attr($min_value); ?>" max="<?php echo esc_attr(0 < $max_value ? $max_value : ''); ?>" name="<?php echo esc_attr($input_name); ?>" value="<?php echo esc_attr($input_value); ?>" title="<?php echo esc_attr_x('Qty', 'Product quantity input tooltip', 'woocommerce'); ?>" size="4" pattern="<?php echo esc_attr($pattern); ?>" inputmode="<?php echo esc_attr($inputmode); ?>" />
<div class="quantity input-group">
<?php
/**
* Hook to output something before the quantity input field.
*
* @since 7.2.0
*/
do_action( 'woocommerce_before_quantity_input_field' );
?>
<button type="button" class="input-group-text qty_button minus">-</button>
<label class="screen-reader-text" for="<?php echo esc_attr( $input_id ); ?>"><?php echo esc_attr( $label ); ?></label>
<input
type="<?php echo $is_readonly ? 'text' : 'number'; ?>"
<?php wp_readonly( $is_readonly ); ?>
id="<?php echo esc_attr( $input_id ); ?>"
class="input-text qty text form-control <?php echo esc_attr( join( ' ', (array) $classes ) ); ?>"
name="<?php echo esc_attr( $input_name ); ?>"
value="<?php echo esc_attr( $input_value ); ?>"
title="<?php echo esc_attr_x( 'Qty', 'Product quantity input tooltip', 'woocommerce' ); ?>"
size="4"
min="<?php echo esc_attr( $min_value ); ?>"
max="<?php echo esc_attr( 0 < $max_value ? $max_value : '' ); ?>"
<?php if ( ! $is_readonly ): ?>
step="<?php echo esc_attr( $step ); ?>"
placeholder="<?php echo esc_attr( $placeholder ); ?>"
inputmode="<?php echo esc_attr( $inputmode ); ?>"
autocomplete="<?php echo esc_attr( isset( $autocomplete ) ? $autocomplete : 'on' ); ?>"
<?php endif; ?>
/>
<button type="button" class="input-group-text qty_button plus">+</button>
<?php do_action('woocommerce_after_quantity_input_field'); ?>
</div>
<?php
/**
* Hook to output something after quantity input field
*
* @since 3.6.0
*/
do_action( 'woocommerce_after_quantity_input_field' );
?>
</div>
<?php
}

0 comments on commit 7685ca4

Please sign in to comment.