HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/shootinschool/wp-content/themes/splash-child/partials/header/top-bar-cart.php
<?php
if( function_exists('WC')) {
	$woocommerce_shop_page_id = wc_get_cart_url();
	$top_bar_enable_cart = get_theme_mod('top_bar_enable_cart', true);
}
?>

<?php if(!empty($woocommerce_shop_page_id) and $top_bar_enable_cart): ?>
	<?php $items = WC()->cart->cart_contents_count; ?>
	<!--Shop archive-->
	<div class="help-bar-shop normal_font stm-cart-af">
		<a href="<?php echo esc_url($woocommerce_shop_page_id); ?>" title="<?php esc_html_e('Watch shop items', 'splash'); ?>">
			<i class="fa fa-shopping-cart"></i>
			<span class="list-label"><?php esc_html_e('Cart', 'splash'); ?></span>
			<span class="list-badge"><span class="stm-current-items-in-cart"><?php echo esc_attr($items); ?></span></span>
		</a>
	</div>
<?php endif; ?>