PHPCS fixes for cart.php template
This commit is contained in:
parent
a5562cc31d
commit
68ee7d6fde
|
@ -32,10 +32,10 @@ do_action( 'woocommerce_before_cart' ); ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="product-remove"> </th>
|
<th class="product-remove"> </th>
|
||||||
<th class="product-thumbnail"> </th>
|
<th class="product-thumbnail"> </th>
|
||||||
<th class="product-name"><?php _e( 'Product', 'woocommerce' ); ?></th>
|
<th class="product-name"><?php esc_html_e( 'Product', 'woocommerce' ); ?></th>
|
||||||
<th class="product-price"><?php _e( 'Price', 'woocommerce' ); ?></th>
|
<th class="product-price"><?php esc_html_e( 'Price', 'woocommerce' ); ?></th>
|
||||||
<th class="product-quantity"><?php _e( 'Quantity', 'woocommerce' ); ?></th>
|
<th class="product-quantity"><?php esc_html_e( 'Quantity', 'woocommerce' ); ?></th>
|
||||||
<th class="product-subtotal"><?php _e( 'Total', 'woocommerce' ); ?></th>
|
<th class="product-subtotal"><?php esc_html_e( 'Total', 'woocommerce' ); ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -53,13 +53,13 @@ do_action( 'woocommerce_before_cart' ); ?>
|
||||||
|
|
||||||
<td class="product-remove">
|
<td class="product-remove">
|
||||||
<?php
|
<?php
|
||||||
echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf(
|
echo esc_html( apply_filters( 'woocommerce_cart_item_remove_link', sprintf(
|
||||||
'<a href="%s" class="remove" aria-label="%s" data-product_id="%s" data-product_sku="%s">×</a>',
|
'<a href="%s" class="remove" aria-label="%s" data-product_id="%s" data-product_sku="%s">×</a>',
|
||||||
esc_url( WC()->cart->get_remove_url( $cart_item_key ) ),
|
esc_url( WC()->cart->get_remove_url( $cart_item_key ) ),
|
||||||
__( 'Remove this item', 'woocommerce' ),
|
__( 'Remove this item', 'woocommerce' ),
|
||||||
esc_attr( $product_id ),
|
esc_attr( $product_id ),
|
||||||
esc_attr( $_product->get_sku() )
|
esc_attr( $_product->get_sku() )
|
||||||
), $cart_item_key );
|
), $cart_item_key ) );
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
@ -129,7 +129,7 @@ do_action( 'woocommerce_before_cart' ); ?>
|
||||||
|
|
||||||
<?php if ( wc_coupons_enabled() ) { ?>
|
<?php if ( wc_coupons_enabled() ) { ?>
|
||||||
<div class="coupon">
|
<div class="coupon">
|
||||||
<label for="coupon_code"><?php _e( 'Coupon:', 'woocommerce' ); ?></label> <input type="text" name="coupon_code" class="input-text" id="coupon_code" value="" placeholder="<?php esc_attr_e( 'Coupon code', 'woocommerce' ); ?>" /> <input type="submit" class="button" name="apply_coupon" value="<?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?>" />
|
<label for="coupon_code"><?php esc_html_e( 'Coupon:', 'woocommerce' ); ?></label> <input type="text" name="coupon_code" class="input-text" id="coupon_code" value="" placeholder="<?php esc_attr_e( 'Coupon code', 'woocommerce' ); ?>" /> <input type="submit" class="button" name="apply_coupon" value="<?php esc_attr_e( 'Apply coupon', 'woocommerce' ); ?>" />
|
||||||
<?php do_action( 'woocommerce_cart_coupon' ); ?>
|
<?php do_action( 'woocommerce_cart_coupon' ); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
Loading…
Reference in New Issue