| 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 |
|