is_woocommerce_active() || is_admin() || !is_object( WC()->cart ) ) { return; } $order_count = WC()->cart->get_cart_contents_count(); $is_empty = WC()->cart->is_empty(); $sub_total = WC()->cart->get_cart_subtotal(); $cart_id = uniqid( 'cart-' ); if ( defined( 'ELEMENTOR_VERSION' ) && is_callable( 'Elementor\Plugin::instance' ) ){ $show_icon = ($show_icon === 'yes') ? 'lqd-module-show-icon' : 'lqd-module-hide-icon'; $show_counter = ($show_counter === 'yes') ? 'lqd-module-show-badge' : 'lqd-module-hide-badge'; } else { $icon_opts = liquid_get_icon( $atts ); $icon = !empty( $icon_opts['type'] ) && ! empty( $icon_opts['icon'] ) ? $icon_opts['icon'] : 'lqd-icn-ess icon-ld-cart'; $show_icon = $atts['show_icon']; $show_counter = $atts['show_counter']; } $cart_text = $atts['cart_text']; $icon_text = $atts['icon_text']; $icon_text_align = $atts['icon_text_align']; $icon_style = $atts['icon_style']; $counter_style = $atts['counter_style']; $trigger_class = array( 'ld-module-trigger', 'collapsed', $icon_text_align, $show_icon, $icon_style, $counter_style ); ?>
', $order_count ); ?>