Astra_Edd::header_cart_icon_class( array $classes )

Header Cart Icon Class


Description


Parameters

$classes

(array) (Required) Default argument array.


Return

(array;)


Source

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

		public function header_cart_icon_class( $classes ) {

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

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

			$classes[]                  = 'ast-edd-menu-cart-' . $header_cart_icon_style;
			$header_cart_icon_has_color = astra_get_option( 'edd-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.