Cleanup: Remoción masiva de restos de WordPress y consolidación de archivos GKACHELE™

This commit is contained in:
komkida91
2026-01-27 18:00:16 +01:00
parent d9aad67066
commit 7083aa3893
874 changed files with 137670 additions and 137443 deletions

View File

@@ -0,0 +1,32 @@
<?php
/**
* Template part for displaying Header Cart.
*/
$enable_cart = get_theme_mod( 'enable_cart',abiz_get_default_option( 'enable_cart' ));
if ( $enable_cart == '1' && class_exists( 'WooCommerce' ) ) { ?>
<li class="cart-wrapper">
<button type="button" class="cart-icon-wrap header-cart">
<i class="fa fa-shopping-bag"></i>
<?php
$count = WC()->cart->cart_contents_count;
$cart_url = wc_get_cart_url();
if ( $count > 0 ) {
?>
<span><?php echo esc_html( $count ); ?></span>
<?php
}
else {
?>
<span><?php esc_html_e('0','abiz'); ?></span>
<?php
}
?>
</button>
<div class="shopping-cart">
<ul class="shopping-cart-items">
<?php get_template_part('woocommerce/cart/mini','cart'); ?>
</ul>
</div>
</li>
<?php }