????JFIF??x?x????'
Server IP : 104.21.112.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/eaabusiness.com/wp-content/plugins/woocommerce/src/Internal/Email/ |
Upload File : |
<?php /** * EmailColors class file */ declare( strict_types = 1 ); namespace Automattic\WooCommerce\Internal\Email; use Automattic\WooCommerce\Utilities\FeaturesUtil; /** * Helper class for email colors. * * @internal Just for internal use. */ class EmailColors { /** * Get default colors for emails. * * @return array Array of default email colors. */ public static function get_default_colors() { $base_color_default = '#720eec'; $bg_color_default = '#f7f7f7'; $body_bg_color_default = '#ffffff'; $body_text_color_default = '#3c3c3c'; $footer_text_color_default = '#3c3c3c'; if ( FeaturesUtil::feature_is_enabled( 'email_improvements' ) ) { $base_color_default = '#8526ff'; $bg_color_default = '#ffffff'; $body_bg_color_default = '#ffffff'; $body_text_color_default = '#1e1e1e'; $footer_text_color_default = '#787c82'; if ( function_exists( 'wc_current_theme_is_fse_theme' ) && wc_current_theme_is_fse_theme() && function_exists( 'wp_get_global_styles' ) ) { $global_styles = wp_get_global_styles( array(), array( 'transforms' => array( 'resolve-variables' ) ) ); $base_color_global = ! empty( $global_styles['elements']['button']['color']['background'] ) ? sanitize_hex_color( $global_styles['elements']['button']['color']['background'] ) : ''; $bg_color_global = ! empty( $global_styles['color']['background'] ) ? sanitize_hex_color( $global_styles['color']['background'] ) : ''; $body_bg_color_global = ! empty( $global_styles['color']['background'] ) ? sanitize_hex_color( $global_styles['color']['background'] ) : ''; $body_text_color_global = ! empty( $global_styles['color']['text'] ) ? sanitize_hex_color( $global_styles['color']['text'] ) : ''; $footer_text_color_global = ! empty( $global_styles['elements']['caption']['color']['text'] ) ? sanitize_hex_color( $global_styles['elements']['caption']['color']['text'] ) : ''; $base_color_default = $base_color_global ? $base_color_global : $base_color_default; $bg_color_default = $bg_color_global ? $bg_color_global : $bg_color_default; $body_bg_color_default = $body_bg_color_global ? $body_bg_color_global : $body_bg_color_default; $body_text_color_default = $body_text_color_global ? $body_text_color_global : $body_text_color_default; $footer_text_color_default = $footer_text_color_global ? $footer_text_color_global : $footer_text_color_default; } } return compact( 'base_color_default', 'bg_color_default', 'body_bg_color_default', 'body_text_color_default', 'footer_text_color_default', ); } }