PluginProbe
YayMail – WooCommerce Email Customizer / 4.4.5
YayMail – WooCommerce Email Customizer v4.4.5
4.4.6 4.4.5 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 All 57 releases
← All changes | src/Elements/Heading.php +9 -1 4.4.1 → 4.4.5 View file →
@@ -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',