PluginProbe
YayMail – WooCommerce Email Customizer / 4.3.2
YayMail – WooCommerce Email Customizer v4.3.2
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
← All changes | src/Elements/Button.php +2 -12 trunk4.3.2 View file →
@@ -61,25 +61,15 @@
61 61 [
62 62 'title' => __( 'Button position', 'yaymail' ),
63 63 ]
64 64 ),
65 - 'width' => ElementsHelper::get_button_width_selector( $attributes ),
66 - 'custom_width' => ElementsHelper::get_dimension(
65 + 'width' => ElementsHelper::get_dimension(
67 66 $attributes,
68 67 [
69 - 'value_path' => 'custom_width',
70 - 'title' => __( 'Custom width', 'yaymail' ),
71 68 'default_value' => '50',
72 69 'min' => 0,
73 70 'max' => 100,
74 71 'unit' => '%',
75 - 'conditions' => [
76 - 'condition_1' => [
77 - 'attribute' => 'width',
78 - 'comparison' => '==',
79 - 'value' => 'custom',
80 - ],
81 - ],
82 72 ]
83 73 ),
84 74 'height' => ElementsHelper::get_dimension(
85 75 $attributes,
@@ -107,9 +97,9 @@
107 97 $attributes,
108 98 [
109 99 'value_path' => 'button_background_color',
110 100 'title' => __( 'Background color', 'yaymail' ),
111 - 'default_value' => yaymail_get_default_brand_color(),
101 + 'default_value' => YAYMAIL_COLOR_WC_DEFAULT,
112 102 ]
113 103 ),
114 104 'text_color' => ElementsHelper::get_color(
115 105 $attributes,