Woocommerce 3.6.1 template changes
This commit is contained in:
parent
1ab2f98382
commit
d60c6d4428
|
@ -12,7 +12,7 @@
|
||||||
*
|
*
|
||||||
* @see https://docs.woocommerce.com/document/template-structure/
|
* @see https://docs.woocommerce.com/document/template-structure/
|
||||||
* @package WooCommerce/Templates
|
* @package WooCommerce/Templates
|
||||||
* @version 3.4.0
|
* @version 3.6.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
defined( 'ABSPATH' ) || exit;
|
defined( 'ABSPATH' ) || exit;
|
||||||
|
@ -25,10 +25,10 @@ if ( $max_value && $min_value === $max_value ) {
|
||||||
<?php
|
<?php
|
||||||
} else {
|
} else {
|
||||||
/* translators: %s: Quantity. */
|
/* translators: %s: Quantity. */
|
||||||
$labelledby = ! empty( $args['product_name'] ) ? sprintf( __( '%s quantity', 'understrap' ), strip_tags( $args['product_name'] ) ) : '';
|
$label = ! empty( $args['product_name'] ) ? sprintf( __( '%s quantity', 'understrap' ), wp_strip_all_tags( $args['product_name'] ) ) : __( 'Quantity', 'understrap' );
|
||||||
?>
|
?>
|
||||||
<div class="quantity">
|
<div class="quantity">
|
||||||
<label class="sr-only" for="<?php echo esc_attr( $input_id ); ?>"><?php esc_html_e( 'Quantity', 'understrap' ); ?></label>
|
<label class="sr-only" for="<?php echo esc_attr( $input_id ); ?>"><?php echo esc_attr( $label ); ?></label>
|
||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
id="<?php echo esc_attr( $input_id ); ?>"
|
id="<?php echo esc_attr( $input_id ); ?>"
|
||||||
|
@ -40,9 +40,7 @@ if ( $max_value && $min_value === $max_value ) {
|
||||||
value="<?php echo esc_attr( $input_value ); ?>"
|
value="<?php echo esc_attr( $input_value ); ?>"
|
||||||
title="<?php echo esc_attr_x( 'Qty', 'Product quantity input tooltip', 'understrap' ); ?>"
|
title="<?php echo esc_attr_x( 'Qty', 'Product quantity input tooltip', 'understrap' ); ?>"
|
||||||
size="4"
|
size="4"
|
||||||
pattern="<?php echo esc_attr( $pattern ); ?>"
|
inputmode="<?php echo esc_attr( $inputmode ); ?>" />
|
||||||
inputmode="<?php echo esc_attr( $inputmode ); ?>"
|
|
||||||
aria-labelledby="<?php echo esc_attr( $labelledby ); ?>" />
|
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue