cart->get_cart_contents_count(); $bloghash_cart_icon = apply_filters( 'bloghash_wc_cart_widget_icon', 'shopping-cart-2' ); $bloghash_header_widgets = bloghash_option( 'header_widgets' ); $style_for_cart = ''; foreach ( $bloghash_header_widgets as $widget ) { // Check if the widget type is 'cart' if ( $widget['type'] === 'cart' ) { // Check if 'style' key exists and then access the 'style' from the 'values' array if ( isset( $widget['values']['style'] ) ) { $style_for_cart = $widget['values']['style']; } else { // Optionally handle the case where 'style' does not exist // For example, you could assign a default style $style_for_cart = 'default-style'; // This is just an example, adjust as needed } break; // Stop the loop if the cart widget is found } } ?> icons->get_svg( $bloghash_cart_icon ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> 0 ) { ?>