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