PluginProbe
YayMail – WooCommerce Email Customizer / trunk
YayMail – WooCommerce Email Customizer vtrunk
4.4.4 4.4.3 4.4.2 4.4.1 trunk 1.9.6 2.1.4 2.1.5 3.2.2 3.2.6 3.2.7.1 3.2.8.1 3.2.9 3.3 3.3.1 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4 3.4.1 3.4.2 3.4.3 All 55 releases
yaymail / src / Constants / YayMailStyles.php

YayMailStyles.php in YayMail – WooCommerce Email Customizer trunk, at src/Constants/YayMailStyles.php

56 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace YayMail\Constants;
4
5 use YayMail\Utils\SingletonTrait;
6
7 /**
8 * YayMail Styles constants class
9 */
10 class YayMailStyles {
11 use SingletonTrait;
12
13 protected function __construct() {
14 $this->define_constants();
15 }
16
17 protected function define_constants() {
18 if ( ! defined( 'YAYMAIL_COLOR_TEXT_DEFAULT' ) ) {
19 define( 'YAYMAIL_COLOR_TEXT_DEFAULT', '#636363' );
20 }
21
22 if ( ! defined( 'YAYMAIL_COLOR_BACKGROUND_DEFAULT' ) ) {
23 define( 'YAYMAIL_COLOR_BACKGROUND_DEFAULT', '#f9f9f9' );
24 }
25
26 if ( ! defined( 'YAYMAIL_COLOR_WC_DEFAULT' ) ) {
27 define( 'YAYMAIL_COLOR_WC_DEFAULT', '#873EFF' );
28 }
29
30 if ( ! defined( 'YAYMAIL_COLOR_WP_DEFAULT' ) ) {
31 // WordPress admin default theme color (matches the frontend's WP_PRIMARY_COLOR).
32 define( 'YAYMAIL_COLOR_WP_DEFAULT', '#3858e9' );
33 }
34
35 if ( ! defined( 'YAYMAIL_COLOR_BORDER_DEFAULT' ) ) {
36 define( 'YAYMAIL_COLOR_BORDER_DEFAULT', '#e5e5e5' );
37 }
38
39 if ( ! defined( 'YAYMAIL_DEFAULT_FAMILY' ) ) {
40 define( 'YAYMAIL_DEFAULT_FAMILY', 'Helvetica,Roboto,Arial,sans-serif' );
41 }
42
43 if ( ! defined( 'YAYMAIL_COLOR_CONTENT_BACKGROUND_DEFAULT' ) ) {
44 define( 'YAYMAIL_COLOR_CONTENT_BACKGROUND_DEFAULT', '#ffffff' );
45 }
46
47 if ( ! defined( 'YAYMAIL_COLOR_CONTENT_TEXT_DEFAULT' ) ) {
48 define( 'YAYMAIL_COLOR_CONTENT_TEXT_DEFAULT', '#000000' );
49 }
50
51 if ( ! defined( 'YAYMAIL_COLOR_TITLE_DEFAULT' ) ) {
52 define( 'YAYMAIL_COLOR_TITLE_DEFAULT', '#873EFF' );
53 }
54 }
55 }
56