at path:
ROOT
/
wp-content
/
themes
/
sinatra
/
woocommerce
/
cart
/
header-widget.php
run:
R
W
Run
header-widget
DIR
2025-12-13 10:19:27
R
W
Run
cart.php
7.42 KB
2024-10-16 22:06:05
R
W
Run
Delete
Rename
cross-sells.php
1.48 KB
2024-10-16 22:06:05
R
W
Run
Delete
Rename
header-widget.php
629 By
2024-10-16 22:06:05
R
W
Run
Delete
Rename
proceed-to-checkout-button.php
1.14 KB
2024-10-16 22:06:05
R
W
Run
Delete
Rename
error_log
up
📄
header-widget.php
Save
<?php /** * Header Cart Widget. * * @package Sinatra */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } $sinatra_cart_count = WC()->cart->get_cart_contents_count(); $sinatra_cart_icon = apply_filters( 'sinatra_wc_cart_widget_icon', 'shopping-cart' ); ?> <a href="<?php echo esc_url( wc_get_cart_url() ); ?>" class="si-cart"> <?php echo sinatra()->icons->get_svg( $sinatra_cart_icon ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> <?php if ( $sinatra_cart_count > 0 ) { ?> <span class="si-cart-count"><?php echo esc_html( $sinatra_cart_count ); ?></span> <?php } ?> </a>