| @@ -28,9 +28,9 @@ | ||
| 28 | 28 | 'icon' => self::$icon, |
| 29 | 29 | 'group' => 'general', |
| 30 | 30 | 'available' => false, |
| 31 | 31 | 'disabled_reason' => [ |
| 32 | - 'html' => __( 'This element is available in YayMail Pro', 'yaymail' ), | |
| 32 | + 'html' => self::get_pro_upgrade_text(), | |
| 33 | 33 | ], |
| 34 | 34 | 'position' => 145, |
| 35 | 35 | 'children' => isset( $attributes['children'] ) ? $attributes['children'] : [], |
| 36 | 36 | 'status_info' => [ |
| @@ -53,8 +53,22 @@ | ||
| 53 | 53 | 'value_path' => 'background_color', |
| 54 | 54 | 'component' => 'Color', |
| 55 | 55 | 'title' => __( 'Background color', 'yaymail' ), |
| 56 | 56 | 'default_value' => isset( $attributes['background_color'] ) ? $attributes['background_color'] : '#fff', |
| 57 | + 'type' => 'style', | |
| 58 | + ], | |
| 59 | + 'background_image' => [ | |
| 60 | + 'value_path' => 'background_image', | |
| 61 | + 'component' => 'BackgroundImage', | |
| 62 | + 'title' => __( 'Background image', 'yaymail' ), | |
| 63 | + 'default_value' => isset( $attributes['background_image'] ) ? $attributes['background_image'] : [ | |
| 64 | + 'url' => '', | |
| 65 | + 'position' => 'default', | |
| 66 | + 'x_position' => 0, | |
| 67 | + 'y_position' => 0, | |
| 68 | + 'repeat' => 'default', | |
| 69 | + 'size' => 'default', | |
| 70 | + ], | |
| 57 | 71 | 'type' => 'style', |
| 58 | 72 | ], |
| 59 | 73 | 'direction' => [ |
| 60 | 74 | 'value_path' => 'direction', |