$attributes['priceColorValue'],
);
unset( $attributes['priceColorValue'] );
}
if ( isset( $attributes['iconColorValue'] ) && ! isset( $attributes['iconColor'] ) ) {
$attributes['iconColor'] = array(
'color' => $attributes['iconColorValue'],
);
unset( $attributes['iconColorValue'] );
}
if ( isset( $attributes['productCountColorValue'] ) && ! isset( $attributes['productCountColor'] ) ) {
$attributes['productCountColor'] = array(
'color' => $attributes['productCountColorValue'],
);
unset( $attributes['productCountColorValue'] );
}
return $attributes;
}
/**
* Get the SVG icon for the mini cart.
*
* @param string $icon_name The name of the icon.
* @param string $icon_color The color of the icon.
* @return string The SVG icon.
*/
public static function get_svg_icon( $icon_name, $icon_color = 'currentColor' ) {
// Default "Cart" icon.
$icon = '';
if ( isset( $icon_name ) ) {
if ( 'bag' === $icon_name ) {
$icon = '';
} elseif ( 'bag-alt' === $icon_name ) {
$icon = '';
}
}
return $icon;
}
}