Astra_Woocommerce::header_cart_icon_class( array $classes )

Header Cart Icon Class


Description


Parameters

$classes

(array) (Required) Default argument array.


Return

(array;)


Source

File: inc/compatibility/woocommerce/class-astra-woocommerce.php

		public function header_cart_icon_class( $classes ) {

			if ( false === Astra_Builder_Helper::$is_header_footer_builder_active && ! defined( 'ASTRA_EXT_VER' ) ) {
				return $classes;
			}

			$header_cart_icon_style = astra_get_option( 'woo-header-cart-icon-style' );

			$classes[]                  = 'ast-menu-cart-' . $header_cart_icon_style;
			$header_cart_icon_has_color = astra_get_option( 'woo-header-cart-icon-color' );
			if ( ! empty( $header_cart_icon_has_color ) && ( 'none' !== $header_cart_icon_style ) ) {
				$classes[] = 'ast-menu-cart-has-color';
			}

			return $classes;
		}

User Contributed Notes

You must log in before being able to contribute a note or feedback.