Astra_Woocommerce::svg_cart_icon( string $cart_total_label_position, string $cart_label_markup, string $cart_info_markup, string $cart_icon )
Header Cart icon
Description
Parameters
- $cart_total_label_position
-
(string) (Required) Cart total label position.
- $cart_label_markup
-
(string) (Required) Cart label markup.
- $cart_info_markup
-
(string) (Required) Cart info markup.
- $cart_icon
-
(string) (Required) Cart icon.
Return
(void)
Source
File: inc/compatibility/woocommerce/class-astra-woocommerce.php
public function svg_cart_icon( $cart_total_label_position, $cart_label_markup, $cart_info_markup, $cart_icon ) { // Remove Default cart icon added by theme. add_filter( 'astra_woo_default_header_cart_icon', '__return_false' ); /* translators: 1: Cart Title Markup, 2: Cart Icon Markup */ /** @psalm-suppress InvalidArrayOffset */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort printf( '<div class="ast-addon-cart-wrap ast-desktop-cart-position-%1$s ast-cart-mobile-position-%2$s ast-cart-tablet-position-%3$s "> %4$s %5$s </div>', ( $cart_total_label_position['desktop'] ) ? $cart_total_label_position['desktop'] : '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ( $cart_total_label_position['mobile'] ) ? $cart_total_label_position['mobile'] : '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ( $cart_total_label_position['tablet'] ) ? $cart_total_label_position['tablet'] : '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ( '' !== $cart_label_markup ) ? $cart_info_markup : '', // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ( $cart_icon ) ? $cart_icon : '' // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ); }
Expand full source code Collapse full source code View on Trac