Server IP : 15.235.198.142 / Your IP : 216.73.216.190 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/kiwigrass_LIVE/wp-content/plugins/woocommerce/src/Blocks/Utils/ |
Upload File : |
<?php namespace Automattic\WooCommerce\Blocks\Utils; /** * Utility methods used for the Mini Cart block. */ class MiniCartUtils { /** * Migrate attributes to color panel component format. * * @param array $attributes Any attributes that currently are available from the block. * @return array Reformatted attributes that are compatible with the color panel component. */ public static function migrate_attributes_to_color_panel( $attributes ) { if ( isset( $attributes['priceColorValue'] ) && ! isset( $attributes['priceColor'] ) ) { $attributes['priceColor'] = array( 'color' => $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; } }