| @@ -1,8 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace YayMail\Elements; |
| 3 | 3 | |
| 4 | 4 | use YayMail\Abstracts\BaseElement; |
| 5 | +use YayMail\Constants\AttributesData; | |
| 5 | 6 | use YayMail\Utils\SingletonTrait; |
| 6 | 7 | use YayMail\Utils\TemplateHelpers; |
| 7 | 8 | /** |
| 8 | 9 | * EmailHeading Elements |
| @@ -67,9 +68,16 @@ | ||
| 67 | 68 | 'background_color' => [ |
| 68 | 69 | 'value_path' => 'background_color', |
| 69 | 70 | 'component' => 'Color', |
| 70 | 71 | 'title' => __( 'Background color', 'yaymail' ), |
| 71 | - 'default_value' => isset( $attributes['background_color'] ) ? $attributes['background_color'] : YAYMAIL_COLOR_WC_DEFAULT, | |
| 72 | + 'default_value' => isset( $attributes['background_color'] ) ? $attributes['background_color'] : yaymail_get_default_brand_color(), | |
| 73 | + 'type' => 'style', | |
| 74 | + ], | |
| 75 | + 'border' => [ | |
| 76 | + 'value_path' => 'border', | |
| 77 | + 'component' => 'Border', | |
| 78 | + 'title' => __( 'Border', 'yaymail' ), | |
| 79 | + 'default_value' => isset( $attributes['border'] ) ? $attributes['border'] : AttributesData::BORDER_DEFAULT, | |
| 72 | 80 | 'type' => 'style', |
| 73 | 81 | ], |
| 74 | 82 | 'content_breaker' => [ |
| 75 | 83 | 'component' => 'LineBreaker', |