Current Path: > home > codekrsu > > cuddlebuds.lk > wp-content > plugins > woocommerce > src > Internal > Email
Operation : Linux premium131.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 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
EmailColors.php | File | 2906 bytes | May 12 2025 21:07:28. | |
EmailFont.php | File | 1152 bytes | March 03 2025 22:28:12. | |
EmailStyleSync.php | File | 5838 bytes | April 01 2025 15:51:36. | |
OrderPriceFormatter.php | File | 1546 bytes | May 12 2025 21:07:28. |
<?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. * * @param bool|null $email_improvements_enabled Whether the email improvements feature is enabled. * @return array Array of default email colors. */ public static function get_default_colors( ?bool $email_improvements_enabled = null ) { if ( null === $email_improvements_enabled ) { $email_improvements_enabled = FeaturesUtil::feature_is_enabled( 'email_improvements' ); } $base_color_default = '#720eec'; $bg_color_default = '#f7f7f7'; $body_bg_color_default = '#ffffff'; $body_text_color_default = '#3c3c3c'; $footer_text_color_default = '#3c3c3c'; if ( $email_improvements_enabled ) { $base_color_default = '#8526ff'; $bg_color_default = '#ffffff'; $body_bg_color_default = '#ffffff'; $body_text_color_default = '#1e1e1e'; $footer_text_color_default = '#787c82'; if ( wp_is_block_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', ); } }
SILENT KILLER Tool