|
Server : LiteSpeed System : Linux server354.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : getfsxkz ( 1681) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/getfsxkz/theaztech.org/wp-content/themes/bloglo/woocommerce/cart/header-widget/ |
Upload File : |
<?php
/**
* Header Cart Widget icon.
*
* @package Bloglo
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$bloglo_cart_count = WC()->cart->get_cart_contents_count();
$bloglo_cart_icon = apply_filters( 'bloglo_wc_cart_widget_icon', 'shopping-bag' );
?>
<a href="<?php echo esc_url( wc_get_cart_url() ); ?>" class="bloglo-cart">
<?php echo bloglo()->icons->get_svg( $bloglo_cart_icon ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
<?php if ( $bloglo_cart_count > 0 ) { ?>
<span class="bloglo-cart-count"><?php echo esc_html( $bloglo_cart_count ); ?></span>
<?php } ?>
</a>