CS: fix up embedded PHP inconsistencies introduced in the mean time.

This commit is contained in:
jrfnl 2018-02-27 11:18:50 +01:00
parent b26b6ebfa4
commit ec877e48c3
6 changed files with 30 additions and 29 deletions

View File

@ -142,6 +142,7 @@ function _s_post_thumbnail() {
?>
</a>
<?php endif; // End is_singular().
<?php
endif; // End is_singular().
}
endif;

View File

@ -226,7 +226,7 @@ if ( ! function_exists( '_s_woocommerce_cart_link' ) ) {
?>
<a class="cart-contents" href="<?php echo esc_url( wc_get_cart_url() ); ?>" title="<?php esc_attr_e( 'View your shopping cart', '_s' ); ?>">
<?php /* translators: number of items in the mini cart. */ ?>
<span class="amount"><?php echo wp_kses_data( WC()->cart->get_cart_subtotal() ); ?></span> <span class="count"><?php echo wp_kses_data( sprintf( _n( '%d item', '%d items', WC()->cart->get_cart_contents_count(), '_s' ), WC()->cart->get_cart_contents_count() ) );?></span>
<span class="amount"><?php echo wp_kses_data( WC()->cart->get_cart_subtotal() ); ?></span> <span class="count"><?php echo wp_kses_data( sprintf( _n( '%d item', '%d items', WC()->cart->get_cart_contents_count(), '_s' ), WC()->cart->get_cart_contents_count() ) ); ?></span>
</a>
<?php
}