芝麻web文件管理V1.00
编辑当前文件:/home/paymbalq/www/wp-content/plugins/woocommerce/src/Blocks/Utils/MiniCartUtils.php
$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; } }