Untitled

mail@pastecode.io avatar
unknown
php
3 years ago
472 B
1
Indexable
Never
function fancy_lab_pro_header_cart() {
	if( class_exists( 'WooCommerce' )){	?>
		<div id="site-header-cart" class="site-header-cart menu open-on-hover">
			<a href="<?php echo esc_url( wc_get_cart_url() ); ?>"><i class="fas fa-shopping-cart"></i></a>
			<span class="items"><?php echo esc_html( WC()->cart->get_cart_contents_count() ); ?></span>
			<ul class="display-on-hover">
				<li><?php the_widget( 'WC_Widget_Cart', 'title=' ); ?></li>
			</ul>
		</div>
	<?php
	}
}