'', 'type-2' => '', 'type-3' => '', 'type-4' => '', 'type-5' => '', 'type-6' => '', ]); $class = 'ct-header-cart'; $item_visibility = blocksy_default_akg('header_cart_visibility', $atts, [ 'tablet' => true, 'mobile' => true, ]); $class .= ' ' . blocksy_visibility_classes($item_visibility); $badge_output = ''; if (blocksy_default_akg('has_cart_badge', $atts, 'yes') !== 'yes') { $badge_output = 'data-skip-badge'; } $has_cart_dropdown = blocksy_default_akg( 'has_cart_dropdown', $atts, 'yes' ) === 'yes'; $cart_drawer_type = blocksy_default_akg('cart_drawer_type', $atts, 'dropdown'); $cart_total_class = 'ct-label'; $cart_subtotal_visibility = blocksy_default_akg( 'cart_subtotal_visibility', $atts, [ 'desktop' => true, 'tablet' => true, 'mobile' => true, ] ); $cart_total_class .= ' ' . blocksy_visibility_classes($cart_subtotal_visibility); $has_subtotal = ( blocksy_some_device($cart_subtotal_visibility) || is_customize_preview() ); $cart_total_position = blocksy_expand_responsive_value( blocksy_akg('cart_total_position', $atts, 'left') ); $icon_type = blocksy_default_akg('mini_cart_type', $atts, 'type-1'); if (empty($icon_type)) { $icon_type = 'type-1'; } $item_class = 'ct-cart-item'; $url = wc_get_cart_url(); $auto_open_output = ''; if ($has_cart_dropdown && $cart_drawer_type === 'offcanvas') { $item_class .= ' ct-offcanvas-trigger'; $url = '#woo-cart-panel'; $auto_open_cart = blocksy_default_akg('auto_open_cart', $atts, [ 'archive' => false, 'product' => false, ]); $components = []; if ($auto_open_cart['archive']) { $components[] = 'archive'; } if ($auto_open_cart['product']) { $components[] = 'product'; } if (! empty($components)) { $auto_open_output = 'data-auto-open="' . implode(':', $components) . '"'; } } $url = apply_filters('blocksy:header:cart:url', $url); ob_start(); $data_count_output = ''; $current_count = 0; if (WC()->cart) { $current_count = WC()->cart->get_cart_contents_count(); } if (intval($current_count) > 0) { $data_count_output = 'style="--counter: \'' . esc_attr($current_count) . '\'"'; } ?> data-label="" aria-label="" > cart) { ?> cart->get_cart_subtotal(); ?> 'ct-cart-content'], $content ); } return; } ?>
> 'ct-cart-content'], $content ); } ?>